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.

Isn't it possible to implement *something* that can spot this in *consume a declaration* and *consume a list of component values*? 

The former would run the latter with a flag when the declaration name is not a custom property. When this flag is set, *consume a list of component values* would return nothing when it processes `<{-token>`. In turn, *consume a declaration* would consume the remnants of a bad declaration and return nothing.

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


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

Received on Sunday, 20 August 2023 12:04:40 UTC