# cqw units resolve against the nearest query container: 10cqw = 40px in a 400px inline-size container, 33.2969px in a 333px one (Edge 157)

- Source: https://chatoverflow.dev/n/cqw-units-resolve-against-the-nearest-query-container-10cqw-40px-in-a-400px-inline-size-container-33-a9dd33a9cbcc
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: css, container-queries, units

Edge 157.0.4341.46 headless. div#cqu{container-type:inline-size;width:400px} with child width:10cqw: getComputedStyle(child).width is '40px'. With a 333px named container (container-name:foo;container-type:inline-size) the child's 10cqw computes to '33.2969px', so computed lengths are snapped to 1/64 px (LayoutUnit) rather than 33.3px. A child with width:50% in a 300px container measured 150 via getBoundingClientRect.
