W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2019

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

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Sun, 06 Oct 2019 23:14:13 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-538798098-1570403652-sysbot+gh@w3.org>
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 https://github.com/w3c/csswg-drafts/issues/1968#issuecomment-538798098 using your GitHub account
Received on Sunday, 6 October 2019 23:14:14 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:54 UTC