Re: [csswg-drafts] [css-contain-3] "container width" and "container height" units (#5888)

Agenda+ to discuss and get resolution on the [the specified approach](https://drafts.csswg.org/css-contain-3/#container-lengths).

- The unit names are:

  - `qw`: 1/100th of the container `width`
  - `qh`: 1/100th of the container `height`
  - `qi`: 1/100th of the container `inline-size`
  - `qb`: 1/100th of the container `block-size`
  - `qmin`: the smaller of `qw` and `qh`
  - `qmax`: the larger of `qw` and `qh`

- Each unit is resolved in relation to the nearest ancestor with an appropriate `container-type` for the given dimension (where logical units are resolved based on the container's writing mode). That means a `qi` unit will resolve against the nearest ancestor with `container-type` of `size` or `inline-size`, and a `qb` unit will resolve against the nearest ancestor with `container-type` of `size` or `block-size` -- so the different axis units can resolve against different containers, and the `qmin`/`qmax` units will use the smaller/larger value, even if they come from different containers.
- If no eligible query container is available, then use the small viewport size for that axis.


-- 
GitHub Notification of comment by mirisuzanne
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5888#issuecomment-923610722 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 21 September 2021 04:20:52 UTC