[csswg-drafts] Clarification on how non-calc() math functions serialize as specified values when nested in calc. (#12059)

weinig has just created a new issue for https://github.com/w3c/csswg-drafts:

== Clarification on how non-calc() math functions serialize as specified values when nested in calc. ==
There is a WTP test, https://wpt.fyi/results/css/css-values/calc-complex-unresolved-serialize.html, that asserts that the specified value serialization of the following:

```calc(pow(2, sign(1em - 18px)))```

should maintain the outer `calc`, and be serialize as it is:

```calc(pow(2, sign(1em - 18px)))```

In WebKit, we currently remove the outer `calc()` and serialize it as `pow(2, sign(1em - 18px))`.

I can't figure out which is correct. 

(cc @tabatkins)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12059 using your GitHub account


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

Received on Tuesday, 8 April 2025 16:40:19 UTC