Re: [csswg-drafts] [cssom-1] Trim the name argument `CSSStyleDeclaration.setProperty()` (#11418)

  > Now this does not prevent trimming whitespaces and comments.

No. The name would be escaped before tokenization and trimming whitespaces/comments.

  > And I don't really see the benefit of changing them all.

Still not really a benefit but...

```js
CSS.supports(' /**/ color: green') // true
CSS.supports(' /**/ color', 'green') // false
```

But this escaping thing already makes it inconsistent how a declaration is parsed in a stylesheet anyway, so I am closing this issue.

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


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

Received on Tuesday, 18 February 2025 03:47:22 UTC