Re: [csswg-drafts] [cssom] "Unset by default. "

>From the CSSOM's point of view, the difficulty is how this would interact with CSS style sheet set, which currently also uses the disabled flag.

It may already be a problem for `StyleSheet.disabled`, but this is a bigger problem if we need to synchronize the flag with the `disabled` attribute on the element, because the existence of CSS style sheet set feature means some of the stylesheet may be disabled when they are added even if they don't have `disabled` attribute (when they have `title` attribute), and the `disabled` attribute may be added / removed surprisingly when preferred CSS style sheet set is changed.

If we think CSS style sheet set isn't widely used (i.e. there are very few pages have `title` attribute set on `<link rel="stylesheet">` and `<style>`), then it's probably not a big problem we need to worry about, and we can just have their `disabled` attribute set when that happens.

As far as I know, currently only Firefox still allows users to switch style sheet set from user interface (and even I wasn't aware of this feature before I worked on the style system and hit some test failures around that), so probably it isn't a very famous feature nowadays.

This may need working group resolution I guess. I can do the edit work if we agree the proceed with that solution.

-- 
GitHub Notification of comment by upsuper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1799#issuecomment-377912962 using your GitHub account

Received on Monday, 2 April 2018 11:42:48 UTC