Bug-Report: CSS Minification & @container queries with named containers
-
Breeze v2.0.22, WordPress v6.1.2
Breeze strips out the white-space between the container name and the opening parenthesis. This causes @container queries to stop working.
Example:
.container { container-type: inline-size; container-name: contain; } @container contain (min-width: 200px) { h1 { background: red; } }
With CSS Minification turned on the container query becomes:
@container contain(min-width:200px) { ... }
The missing white-space causes the container query to fail. I’ve verified this by going into DevTools and restoring the space; the CSS works again.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Bug-Report: CSS Minification & @container queries with named containers’ is closed to new replies.