8000 [mediaqueries] How do media queries with calc() where it can be resolved early serialize? · Issue #1968 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

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

@emilio

Description

@emilio

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?

<!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>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0