|
Lines 1-3
a/Source/WebCore/ChangeLog_sec1
|
|
|
1 |
2022-02-09 Antti Koivisto <antti@apple.com> |
| 2 |
|
| 3 |
[CSS Container Queries] Implement inline-size containment |
| 4 |
https://bugs.webkit.org/show_bug.cgi?id=236354 |
| 5 |
|
| 6 |
Reviewed by NOBODY (OOPS!). |
| 7 |
|
| 8 |
"Giving an element inline-size containment applies size containment to the inline-axis sizing |
| 9 |
of its principal box. This means the inline-axis intrinsic sizes of the principal box are |
| 10 |
determined as if the element had no content." |
| 11 |
|
| 12 |
https://drafts.csswg.org/css-contain-3/#containment-inline-size |
| 13 |
|
| 14 |
* rendering/RenderBlockFlow.cpp: |
| 15 |
(WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths const): |
| 16 |
|
| 17 |
Compute inline axis preferred width as if the block had no content. |
| 18 |
|
| 19 |
* rendering/style/RenderStyle.cpp: |
| 20 |
(WebCore::RenderStyle::effectiveContainment const): |
| 21 |
* rendering/style/RenderStyleConstants.h: |
| 22 |
|
| 23 |
For completeness, add an enum value for inline-size containment. It can only be set by 'container' |
| 24 |
property for now. |
| 25 |
|
| 26 |
* style/StyleScope.cpp: |
| 27 |
(WebCore::Style::Scope::updateQueryContainerState): |
| 28 |
|
| 29 |
Ignore block axis for inline-size containers. |
| 30 |
|
| 1 |
2022-02-08 Antti Koivisto <antti@apple.com> |
31 |
2022-02-08 Antti Koivisto <antti@apple.com> |
| 2 |
|
32 |
|
| 3 |
[CSS Container Queries] Track query containers so they can be invalidated on size change |
33 |
[CSS Container Queries] Track query containers so they can be invalidated on size change |