- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Wed, 07 Sep 2022 09:45:12 +0000
- To: public-css-archive@w3.org
I do not know if it can be defined as a serialization principle but I think that a shorthand should serialize if (this serialization would round trip and) its reset-only sub-properties are declared with their initial value or the `initial` keyword. Firefox does not serialize the shorthand when a reset-only sub-property is declared with `initial`. It could even be defined that reset-only sub-properties should be declared with a value *equivalent* to their initial value. ```js style.border = '1px solid black' style.borderImageOutset = '0' console.log(style.border) // Chrome/Firefox: '1px solid black style.borderImageOutset = '0px' console.log(style.border) // Chrome/Firefox: '' ``` -- GitHub Notification of comment by cdoublev Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/878#issuecomment-1239160454 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 7 September 2022 09:45:14 UTC