[csswg-drafts] @require, a "dependent @important", if the required CSS file fails to load, all the declarations in the container file also fail.

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

== @require, a "dependent @important", if the required CSS file fails to load, all the declarations in the container file also fail. ==
CSS files can be strongly dependent on other CSS files, it wouldn't make senses to still render based on the declarations if the CSS file they depend on fails to load.

**Users would rather even see a completely unstyled document**, than see a document which is "half" rendered in a mess.

So sometimes CSS files need to be made _"atomic"_ — either they all succeed, or they all fail.

So I'd like to see something like @require, a "dependent @important" available.

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

Received on Saturday, 18 August 2018 07:30:56 UTC