Skip to content

[css-conditional-5] How to resolve cq* values against a container size resolved at used value time? #14384

Description

@cdoublev

For example:

<div id=container style="container-type: inline-size; width: min-content;">
  <div id=element style="height: 10cqw">height?</div>
</div>
<script>
  getComputedStyle(element).height; // ?
</script>

<length> in height must compute to an absolute value, but min-content resolves at used value time. Should the computed/used height resolve to 0px?

https://drafts.csswg.org/css-conditional-5/#container-lengths

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions