Re: [csswg-drafts] [css-color] Eager evaluation of calc() for specified value serialization of non-rgb() colors (#10830)

> @weinig is it really consistent with other properties? Specified values do generally preserve calc-ness (simplified):
> 
> ```js
> document.body.style.zIndex = "calc(1 + 1)"
> document.body.style.zIndex // calc(2)
> ```

I’m not entirely sure what you are asking, because I agree, and think preserving calc() is the right thing to do. 

The issue is that WPT currently assumes calc() is not preserved, and I want to fix the tests, and was just checking before I made the change. 

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


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

Received on Wednesday, 4 September 2024 20:19:37 UTC