Re: [csswg-drafts] [mediaqueries] How do media queries with calc() where it can be resolved early serialize? (#1968)

I was linking to the computed value section because it says:

> with used value time information, a math function always simplifies down to a single numeric value.

Which to me _seemed_ to imply that simplifying the computed value to a single numeric value (which I expect to mean "drops the calc from the internal representation") was also a valid part of the simplification algorithm referenced from that section.

But if the calc going away is only meant to be a serialization tweak, not part of the simplification algorithm, that's good to know. No further questions spec-wise I guess...

I assume then this is only observable from typed OM... Is that right? My reading of the spec says that `line-height: calc(1px)` is supposed to be a math function value in typed OM, not a `CSSUnitValue`, which is 100% not what Blink does... Blink drops the calc() at parse-time. Are there tests for this?

GitHub Notification of comment by emilio
Please view or discuss this issue at using your GitHub account

Received on Sunday, 6 October 2019 23:14:14 UTC