Bug 238329 - [CSS Container Queries] Inconsistent query application in grid
Summary: [CSS Container Queries] Inconsistent query application in grid
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Apple Silicon) macOS 12
: P2 Major
Assignee: Nobody
URL: https://cdpn.io/pen/debug/bGagRKK/abb...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-24 09:01 PDT by Scott Kellum
Modified: 2022-09-26 14:09 PDT (History)
3 users (show)

See Also:


Attachments
A > 600px container query being applied to an element with the width of 302px (44.27 KB, image/png)
2022-03-24 09:01 PDT, Scott Kellum
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Kellum 2022-03-24 09:01:04 PDT
Created attachment 455646 [details]
A > 600px container query being applied to an element with the width of 302px

Queries are applied irregularly to elements on the page that are rendered with CSS Grid.

In the demo below, when one element on the grid row matches the CQ criteria, the styles apply to all elements on that grid row. This means that even though column three can be 400px, it will still be styled with the above 600px media query.

Replicated here:
Problem exists on both an Intel 12" MacBook and M1 Mac Mini.
https://cdpn.io/pen/debug/bGagRKK/abb869e42204412d0090a4267580b2ce


ALSO pages inside iframes don’t update live. A full-page refresh is required for the queries to take effect making it difficult to test in CodePen.
https://codepen.io/scottkellum/pen/bGagRKK/abb869e42204412d0090a4267580b2ce?editors=0100
Comment 1 Radar WebKit Bug Importer 2022-03-24 16:10:32 PDT
<rdar://problem/90800006>