This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://dev.w3.org/csswg/cssom/#concept-css-style-sheet-disabled-flag [[ disabled flag ]] https://www.w3.org/Bugs/Public/show_bug.cgi?id=14703#c18
Seems like the disabled flag gets set for alternate stylesheets in Gecko/Presto, but in WebKit/Blink the style sheet is not added at all and the disabled flag says false. http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2495 For media attribute, Gecko/Presto/WebKit/Blink add the style sheet and let .disabled be false. http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2496 What does IE do?
What does Webkit/Blink do when the alternate stylesheet set is switched to?
I can't seem to find a way to switch stylesheet sets in WebKit/Blink, either by UI or with JS...
Well, the question is what the behavior should be in a UA that _does_ allow such switching and how it should impact the CSSOM. Clearly if you never allow switching to alternate sheets, not loading them at all becomes a feasible optimization... ;)
We discussed this a bit in #whatwg and pondered about the idea of dropping alternative stylesheets altogether. [[ # [22:14] <annevk> zcorpan: that API is kinda hopeless, nobody is really interested # [22:14] <Hixie_> yeah, alternative style sheets in general have rather failed # [22:14] <zcorpan> maybe we should drop it # [22:15] <Hixie_> as much as it would pain me to agree, yeah # [22:15] <annevk> There's a lot of potential simplicity gain there # [22:15] <Hixie_> yeah # [22:15] <Hixie_> should see if mozilla would drop it # [22:15] <Hixie_> i think it's very sad that we'd remove it, but it is a lot of complexity for something that virtually nobody uses ]] http://krijnhoetmer.nl/irc-logs/whatwg/20130827
Rune has improved the situation in Blink somewhat (that happened before the idea of dropping alternative stylesheets came up), e.g. now alternative stylesheets are added to document.styleSheets. For now I think I won't drop alternative stylesheets but specify the API assuming that it is supported. The specific APIs that only Gecko supports can be marked at risk until they are implemented in some other engine.
https://github.com/w3c/csswg-drafts/commit/e5353d078e686136fdb28c7de37ffd375cd6d79f removed the API for alternative stylesheets.