WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
233193
Re-add 'style' to contain:strict and contain:content CSS properties
https://bugs.webkit.org/show_bug.cgi?id=233193
Summary
Re-add 'style' to contain:strict and contain:content CSS properties
Rob Buis
Reported
2021-11-16 08:13:52 PST
Re-add 'style' to contain:strict and contain:content CSS properties.
Attachments
Patch
(6.22 KB, patch)
2021-11-16 10:59 PST
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Patch
(6.11 KB, patch)
2021-11-16 14:47 PST
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Patch
(6.11 KB, patch)
2021-11-16 22:48 PST
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Rob Buis
Comment 1
2021-11-16 08:14:41 PST
This is fixed in the spec, implemented in chromium and Firefox has verbally agreed to do it as well:
https://groups.google.com/a/chromium.org/g/blink-dev/c/oMVBKemrTDQ?pli=1
Rob Buis
Comment 2
2021-11-16 10:59:35 PST
Created
attachment 444411
[details]
Patch
Rob Buis
Comment 3
2021-11-16 14:47:08 PST
Created
attachment 444436
[details]
Patch
Radar WebKit Bug Importer
Comment 4
2021-11-16 15:23:22 PST
<
rdar://problem/85478069
>
Brent Fulgham
Comment 5
2021-11-16 15:26:12 PST
Comment on
attachment 444436
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=444436&action=review
r=me
> Source/WebCore/ChangeLog:9 > + The chsange was done in chromium and Firefox has verbally agreed to make the change as well [3].
Nit: change
Rob Buis
Comment 6
2021-11-16 22:48:38 PST
Created
attachment 444482
[details]
Patch
EWS
Comment 7
2021-11-16 23:55:06 PST
Committed
r285918
(
244327@main
): <
https://commits.webkit.org/244327@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 444482
[details]
.
Darin Adler
Comment 8
2021-11-17 09:29:51 PST
Comment on
attachment 444482
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=444482&action=review
> Source/WebCore/rendering/style/RenderStyle.h:1673 > static OptionSet<Containment> initialContainment() { return OptionSet<Containment> { }; } > - static OptionSet<Containment> strictContainment() { return OptionSet<Containment> { Containment::Size, Containment::Layout, Containment::Paint }; } > - static OptionSet<Containment> contentContainment() { return OptionSet<Containment> { Containment::Layout, Containment::Paint }; } > + static OptionSet<Containment> strictContainment() { return OptionSet<Containment> { Containment::Size, Containment::Layout, Containment::Paint, Containment::Style }; } > + static OptionSet<Containment> contentContainment() { return OptionSet<Containment> { Containment::Layout, Containment::Paint, Containment::Style }; }
Not sure we have to name the OptionSet type twice. I think we can just use braces inside the function without naming the type?
Rob Buis
Comment 9
2021-11-17 09:41:27 PST
Comment on
attachment 444482
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=444482&action=review
>> Source/WebCore/rendering/style/RenderStyle.h:1673 >> + static OptionSet<Containment> contentContainment() { return OptionSet<Containment> { Containment::Layout, Containment::Paint, Containment::Style }; } > > Not sure we have to name the OptionSet type twice. I think we can just use braces inside the function without naming the type?
I had that change locally but wanted to keep the patch simple. Note that methods in RenderStyle returning OptionSet do this inconsistently already before my patch. Maybe somebody can make it consistent.
Darin Adler
Comment 10
2021-11-17 09:43:52 PST
(In reply to Rob Buis from
comment #9
)
> Maybe somebody can make it consistent.
As you probably know, this is the kind of thing I often do.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug