Changeset 282201 in webkit
- Timestamp:
- Sep 9, 2021 1:16:24 AM (10 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-position/sticky/position-sticky-contained-by-display-table-expected.html (added)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-position/sticky/position-sticky-contained-by-display-table.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderBoxModelObject.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r282199 r282201 1 2021-09-09 Martin Robinson <mrobinson@webkit.org> 2 3 Position sticky does not work within table cells 4 https://bugs.webkit.org/show_bug.cgi?id=155496 5 6 Reviewed by Simon Fraser. 7 8 * web-platform-tests/css/css-position/sticky/position-sticky-contained-by-display-table-ref.html: Added. 9 * web-platform-tests/css/css-position/sticky/position-sticky-contained-by-display-table.html: Added. 10 1 11 2021-09-09 Youenn Fablet <youenn@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r282199 r282201 1 2021-09-09 Martin Robinson <mrobinson@webkit.org> 2 3 Position sticky does not work within table cells 4 https://bugs.webkit.org/show_bug.cgi?id=155496 5 6 Reviewed by Simon Fraser. 7 8 When computing the content box rect of a sticky container, do not include 9 intrinsic padding. Instead, use the values computed from CSS. The instrinsic 10 padding should not limit the movement area of a position:sticky item. 11 12 * web-platform-tests/css/css-position/sticky/position-sticky-contained-by-display-table-ref.html: Added. 13 * web-platform-tests/css/css-position/sticky/position-sticky-contained-by-display-table.html: Added. 14 15 Test: imported/w3c/web-platform-tests/css/css-position/sticky/position-sticky-contained-by-display-table.html 16 17 * rendering/RenderBoxModelObject.cpp: 18 (WebCore::RenderBoxModelObject::computeStickyPositionConstraints const): Use CSS computed 19 values which do not include intrinsic padding. 20 1 21 2021-09-09 Youenn Fablet <youenn@apple.com> 2 22 -
trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp
r282143 r282201 467 467 // we use the content box rectangle of the containing block, which is what should constrain the 468 468 // movement. 469 containerContentRect = containingBlock->co ntentBoxRect();469 containerContentRect = containingBlock->computedCSSContentBoxRect(); 470 470 } else { 471 471 containerContentRect = containingBlock->layoutOverflowRect();
Note: See TracChangeset
for help on using the changeset viewer.