Re: [csswg-drafts] [cssom-1] How to serialize specified value of properties with a var()? (#6484)

Can you please also clarify *normalizing whitespace* in: 

> Simplifications that might occur in other properties, such as dropping comments, normalizing whitespace, reserializing numeric tokens from their value, etc., must not occur.

Does it mean preserving collapsed whitespaces? This is what Firefox seems to be doing, but not Chrome.

I guess *reserializing numeric tokens from their value* means serializing eg. `.1` as is instead of `0.1`.

To rephrase one last time the issue described in my previous comments... I do not understand the reasons for serializing `style.cssText = 'color: var(--color) '` without the leading whitespace and with the trailing whitespace, whereas this input is parsed with *consume a declaration*, which removes both, and in the meantime, the result is the same for `style.color = ' var(--color) '`, whereas the input is parsed with *parse a list of component values*, which does not remove any whitespace.

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


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

Received on Wednesday, 18 May 2022 08:25:48 UTC