NEW306237
Style queries are buggy inside a `display: contents` container
https://bugs.webkit.org/show_bug.cgi?id=306237
Summary Style queries are buggy inside a `display: contents` container
Benoît Rouleau
Reported 2026-01-25 17:30:47 PST
Created attachment 478133 [details] Reproduction of the bug CSS container style queries behave super strangely when the container it is querying either has `display: contents` or is inside a `display: contents` wrapper. I am seeing all kinds of weirdness in a real project, but I managed to create a simple reproduction that hopefully allows you to find and fix the root cause for all of it. Check out the attached file. Thank you!
Attachments
Reproduction of the bug (713 bytes, text/html)
2026-01-25 17:30 PST, Benoît Rouleau
no flags
Alexey Proskuryakov
Comment 1 2026-01-26 18:11:22 PST
Thank you for the report! Is this the same as bug 301871?
Benoît Rouleau
Comment 2 2026-01-27 06:04:05 PST
Ah, probably. Sorry for my bad searching skills!
Radar WebKit Bug Importer
Comment 3 2026-02-01 17:31:11 PST
Note You need to log in before you can comment on or make changes to this bug.