Re: [csswg-drafts] [css-syntax] Review requested of new Parsing text (#8834)

  > You just need something that can spot that `a:hover { color: blue; }` is not a valid declaration, so it can get parsed properly as a rule.

Understood, thanks. 

Assuming that *consume an at-rule* receives `@import` following a style rule, it would return nothing if *valid in the context* includes looking at the rules preceding `@import`. But `CSSStyleSheet.insertRule()` involves *consume an at-rule* and *insert a CSS rule*, which must throw `HierarchyRequestError` in this situation.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8834#issuecomment-1675880933 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 12 August 2023 12:08:29 UTC