Bug 237761 - [CSS Container Queries] Only apply inline-size containment when it is allowed
Summary: [CSS Container Queries] Only apply inline-size containment when it is allowed
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antti Koivisto
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-11 01:40 PST by Antti Koivisto
Modified: 2022-03-11 03:53 PST (History)
8 users (show)

See Also:


Attachments
Patch (9.86 KB, patch)
2022-03-11 01:44 PST, Antti Koivisto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2022-03-11 01:40:41 PST
"Giving an element inline-size containment has no effect if any of the following are true:

if the element does not generate a principal box (as is the case with display: contents or display: none)
if its inner display type is table
if its principal box is an internal table box
if its principal box is an internal ruby box or a non-atomic inline-level box"

https://drafts.csswg.org/css-contain-3/#containment-inline-size
Comment 1 Antti Koivisto 2022-03-11 01:44:20 PST
Created attachment 454453 [details]
Patch
Comment 2 EWS 2022-03-11 03:52:40 PST
Committed r291154 (248314@main): <https://commits.webkit.org/248314@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 454453 [details].
Comment 3 Radar WebKit Bug Importer 2022-03-11 03:53:15 PST
<rdar://problem/90153807>