We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When a rule is interleaved between declarations and triggers an "invalid rule error", the spec splits the declarations:
If an invalid rule error was returned If decls is not empty, append decls to rules, and set decls to a fresh empty list of declarations.
decls
rules
An invalid rule error is produced in a nested context from any list of tokens that:
:
}
;
{}
Examples: {}, . {}, div: hover {}, undeclared-ns|* {}.
. {}
div: hover {}
undeclared-ns|* {}
If I am not mistaken, this intentionally takes space for future selector syntaxes. #8738 (comment) touches on that.
It might be useful to add a note, since that is not what the current version of Chrome and FF does:
const sheet = new CSSStyleSheet sheet.insertRule(` style { color: green; . {} color: orange; undeclared-ns|style {} color: red; } `) sheet.cssRules[0].cssText; // style { color: red; }
There does not seem to be any corresponding test on WPT.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When a rule is interleaved between declarations and triggers an "invalid rule error", the spec splits the declarations:
An invalid rule error is produced in a nested context from any list of tokens that:
:
}
and;
{}
-blockExamples:
{}
,. {}
,div: hover {}
,undeclared-ns|* {}
.If I am not mistaken, this intentionally takes space for future selector syntaxes. #8738 (comment) touches on that.
It might be useful to add a note, since that is not what the current version of Chrome and FF does:
There does not seem to be any corresponding test on WPT.
The text was updated successfully, but these errors were encountered: