W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2021

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

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Wed, 14 Jul 2021 23:44:11 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-880281269-1626306249-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:39 UTC