http://dev.w3.org/csswg/css3-conditional/#processing introduces the concept of grouping rules, and allows for them to be nested. In particular, this change affects @media (and is needed for @supports as well).
Created attachment 182420 [details] Patch
Comment on attachment 182420 [details] Patch Attachment 182420 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/15830071
Comment on attachment 182420 [details] Patch Attachment 182420 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/15833079 New failing tests: fast/text/international/hindi-spacing.html
Created attachment 182450 [details] Patch
Comment on attachment 182450 [details] Patch Looks good, it even cleans up code duplication.
Comment on attachment 182450 [details] Patch Clearing flags on attachment: 182450 Committed r139594: <http://trac.webkit.org/changeset/139594>
All reviewed patches have been landed. Closing bug.