Re: [csswg-drafts] [cssom] Parsing value should not be seen as side effects free (#6451)

Shorthand expansion is not done in "parse a CSS value", it happens in https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-setproperty

> 8. If _property_ is a shorthand property, then for each longhand property _longhand_ that _property_ maps to, in canonical order, follow these substeps:
>     1. Let _longhand result_ be the result of [set the CSS declaration](https://drafts.csswg.org/cssom/#set-a-css-declaration) _longhand_ with the appropriate value(s) from _component value list_, with the _important_ flag set if _priority_ is not the empty string, and unset otherwise, and with the list of declarations being the [declarations](https://drafts.csswg.org/cssom/#cssstyledeclaration-declarations).
>     2. If _longhand_ result is true, let _updated_ be true. 

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


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

Received on Wednesday, 14 July 2021 23:44:13 UTC