Re: [csswg-drafts] [css-syntax-3] New parsing algorithms do not handle `}` tokens correctly in style attributes (#11113)

This resonated with me somewhat, so after some digging, it seems the related changes, listed below in chronological order, followed a [comment from me](https://github.com/w3c/csswg-drafts/issues/8738#issuecomment-1543436068):

  - 59e4322
  - c7ce041
  - [`ea43cbf`](https://github.com/w3c/csswg-drafts/commit/ea43cbf4474e7d16364064f70abe9c6b83bb248b#diff-860e2ab30b86b485b231b59004b75a2077abf2d9ddb7c134281128ee1d0defceL2242)
  - ed19498630cb8b4c7a5e7a5be8c25158ae43983d

In a `nested` context, `}` would indeed close the parent rule:

```css
style {
  background:red;
}
/* trash */
; background:limegreen
```

An orphan `}` in the `style` attribute (or the input of `CSSStyleDeclaration.cssText`) can only be a typo that the new algos do not forgive.

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


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

Received on Saturday, 16 November 2024 10:57:27 UTC