[csswg-drafts] [CSS-import] import only in moment when we need it.

Mlocik97-issues has just created a new issue for https://github.com/w3c/csswg-drafts:

== [CSS-import] import only in moment when we need it. ==
* please tag the issue title with the spec's shortname, like `[css-foo]`
* please link to the spec section you're talking about, or at least the spec

I'm suggesting this feature because I think, it's awkward when browser is downloading all styles included print styles, also in situation when user will not print page. So I want add something like "only-if" rule to @import...

like we have:
`@import url("print.css") print;`
I think we can have:
`@import url("print.css) only-if("print");`

or something like that. 
It mean print.css will be downloaded only after user on page click on print button.

(sry for my bad English).

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3050 using your GitHub account

Received on Friday, 24 August 2018 17:10:44 UTC