Parsing media query "@media" does not support operators like "and", "not", "only" and so on. The parser ignores the whole rule, when it contains such an operator.
Example:
@media screen and (min--moz-device-pixel-ratio:0) { .channel-list a { padding: 2px 10px 5px; line-height: 17px; } }
Anonymous
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Is there a workaround for this?
No workaround known so far.
My time is really limited at the moment, don't expect any progress in the next weeks.
But feel free to provide a patch....
I currently need this as well.
I wrote a patch that now makes it possible to parse such media queries.
Unfortunately I never attended a compiler building lecture nevertheless I did the following:
(had some problems with code too large exceptions so I used direct string literals instead of tokens https://java.net/jira/browse/JAVACC-261)
The code is not yet production ready but solves all given problems in a stable way. It will need more testing and maturing further the w3c should integrate the new media queries in the SAC API.
Hi Manuel,
many thanks for your patch. Will work on this during the next days.
Thanks!
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Is this bug now fixed in a stable version?
I would guess no
Hi all brave css-parsers,
sorry for the long delay with this issues. My spare time during the last weeks was really limited (as always) and there was a lot of things to do in the HtmlUnit/Wetator area.
Based on Manuels patch i finally have created a fist version of the media query support. If you like, you can download the latest snapshot and test it.
If possible i will spend some more time on finishing and will release a new version soon.
Thanks for your patience
An updated snapshot is available (again some unicode fixes).
Any feedback?
Last edit: RBRi 2015-03-06
@RBRi: Sorry, but I won't have the time to test the snapshot.
release is available