W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2017

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

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Mon, 11 Sep 2017 18:33:21 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-328618382-1505154792-sysbot+gh@w3.org>
A hearty +1.

The current work-around is to set an invalid `media` attribute (I use `media="only none"`) to effectively disable the stylesheet, but (a) that's hacky, and (b) Chrome doesn't currently support live re-loading by changing the `media` attribute, so you have to re-insert the `<link>` (or `<style>`) node into the DOM after mutating the attribute.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1799#issuecomment-328618382 using your GitHub account
Received on Monday, 11 September 2017 18:33:15 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:17 UTC