W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2017

[csswg-drafts] [css-media-queries] How do media queries with calc() where it can be resolved early serialize?

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Fri, 10 Nov 2017 15:21:25 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-272965879-1510327282-sysbot+gh@w3.org>
emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-media-queries] How do media queries with calc() where it can be resolved early serialize? ==
It's not clear to me from the spec text that media queries serialize with the specified or the "computed" value when integers or numbers are involved.

In particular, should these two serialize identically?

```html
<!doctype html>
<style>
  @media (min-aspect-ratio: 1 / 1) { }
  @media (min-aspect-ratio: calc(1) / calc(1)) { }
</style>
<script>
  alert(document.styleSheets[0].cssRules[0].cssText)
  alert(document.styleSheets[0].cssRules[1].cssText)
</script>
```

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1968 using your GitHub account
Received on Friday, 10 November 2017 15:21:27 UTC

This archive was generated by hypermail 2.3.1 : Friday, 10 November 2017 15:21:28 UTC