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

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