Instead of cloning the quirks.css UA style sheet for each document that might need it and toggling its enabled bit, let's always keep it enabled but use a media query to control whether the rules apply. This will let us avoid cloning the style sheet for basically every HTML document and help us in bug 77999 with rule processor caching.
I had a patch to add this media query, but I think it's easier just to add and remove the (non-cloned) quirks sheet from the style set as needed.
Summary: control quirks mode UA style sheet rules with a media query → control quirks mode UA style sheet rules without needing to clone quirk.css
https://treeherder.mozilla.org/#/jobs?repo=try&revision=1c45d3c5a917 - getting a random test failure.
Depends on: 1170888
Created attachment 8614478 [details] [diff] [review] Add and remove quirk.css rather than enable and disable a clone of it. https://treeherder.mozilla.org/#/jobs?repo=try&revision=e49ffc6b6ad2
Assignee: nobody → cam
Status: NEW → ASSIGNED
Attachment #8614478 - Flags: review?(jwatt)
Attachment #8614478 - Flags: review?(jwatt) → review+
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
status-firefox41: affected → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.