- From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
- Date: Tue, 20 Aug 2019 00:08:52 +0000
- To: public-css-archive@w3.org
@matthew-dean The `type` attribute for stylesheets already exists. Just like with scripts, unrecognized values prevent the styles from being applied ([demo](https://codepen.io/AmeliaBR/pen/e25ad978ad45b31fdad739c951946d68?editors=1000)). So it is actually a very good tool to use for this purpose (preventing a scoped stylesheet to be loaded by legacy browsers that don't recognize the new scoping mechanism, without needing to edit the stylesheet itself to add an `@scope{}` rule). It would still be complemented by other attributes to define what the scope/namespace should be. The type attribute could be optional, in case an author for some reason *wanted* the scoped stylesheet to be loaded as a document-level stylesheet in older browsers. -- GitHub Notification of comment by AmeliaBR Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4061#issuecomment-522800371 using your GitHub account
Received on Tuesday, 20 August 2019 00:08:53 UTC