fredsa / gwt-dnd

Library providing easy to use mouse or touch based drag-and-drop capabilities to GWT
44 stars 40 forks source link

Warning rebinding DragClientBundle - encountered '=' was expecting... #184

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Allan,

I'm getting the following warning, not sure if it's even a bug or not.
It happens in Quirks mode at least.
I'm using GWT 2.6.1 and gwt-dnd 3.3.3
This is on Mac (Mavericks) running in Eclipse Development mode
Using Firefox 26

[DEBUG] [ycpapp] - Rebinding 
com.allen_sauer.gwt.dnd.client.util.DragClientBundle
    [DEBUG] [ycpapp] - Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
        [DEBUG] [ycpapp] - Preparing method css
            [INFO] [ycpapp] - The following problems were detected
                [WARN] [ycpapp] - Line 63 column 30: encountered "=". Was expecting one of: "+" "-" "," "/" ")" <STRING> <IDENT> <NUMBER> <URL> <PERCENTAGE> <PT> <MM> <CM> <PC> <IN> <PX> <EMS> <EXS> <DEG> <RAD> <GRAD> <MS> <SECOND> <HZ> <KHZ> <DIMEN> <HASH> <UNICODERANGE> <FUNCTION> 

Original issue reported on code.google.com by martijn....@gmail.com on 8 Dec 2014 at 10:29

norbertroamsys commented 9 years ago

The line https://github.com/fredsa/gwt-dnd/blob/master/DragDrop/src/com/allen_sauer/gwt/dnd/client/util/gwt-dnd.css#L63: filter: alpha(opacity = 30) causes the problem. It seems to be a weakness of the GWT Resource Parser because it should be valid CSS. Am I right by saying that it is only needed for IE support? If true the best solution may be to remove the alpha style. Can this be done? Would be nice!

fredsa commented 9 years ago

Right, that alpha filter for there IE only.

It looks like IE8 and below only support alpha filter. Once we get to IE9+ targets we could drop it.

mcimbora commented 8 years ago

It should be enough to wrap the alpha inside literal [1] function, i.e. filter: literal("alpha(opacity = 30)")

[1] http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html#Literal_function