[Webkit-unassigned] [Bug 169245] @media rules ignored in user agent style sheet html.css

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 26 10:55:09 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=169245

--- Comment #9 from Antti Koivisto <koivisto at iki.fi> ---
RuleSets for user agent stylesheets are shared between all documents. This is a major optimization that we don't want to lose. To allow media queries on UA sheets we would need to add a new type of UA sheet that is resolved per-document. Simplest approach would probably be have a different file (that is, not html4.css) for rules like this. Implementation for this should not be difficult at all.

Alternatively we could move media queries later in the style pipeline. For example we could generate RuleSets for all media queries and then pick between them at style resolution time. This is a bigger refactoring.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170626/b6c8d7cf/attachment.html>


More information about the webkit-unassigned mailing list