Bug 237761

Summary: [CSS Container Queries] Only apply inline-size containment when it is allowed
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: CSSAssignee: Antti Koivisto <koivisto>
Status: RESOLVED FIXED    
Severity: Normal CC: changseok, esprehn+autocc, ews-watchlist, glenn, graouts, kondapallykalyan, pdr, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

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>