[csswg-drafts] [css-fonts] [palettes] Properties in CSSFontPaletteValuesRule don't need to be mutable (#6645)

litherum has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-fonts] [palettes] Properties in CSSFontPaletteValuesRule don't need to be mutable ==
Making the properties mutable adds significant implementation complexity because of shadow dom. For example, if you add the same sheet to two different shadow roots, and then one of them modifies it, the other one shouldn't appear modified.

I can't actually think of a situation where anyone would actually _want_ to modify the attributes in `CSSFontPaletteValuesRule` from script, rather than replacing the whole rule. We should just modify the attributes to be `readonly`.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6645 using your GitHub account


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

Received on Tuesday, 21 September 2021 06:15:31 UTC