Changeset 272309 in webkit
- Timestamp:
- Feb 3, 2021 6:04:58 AM (18 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/grid-items/grid-img-item-percent-max-height-001-expected.html (added)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/grid-items/grid-img-item-percent-max-height-001.html (added)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/grid-items/w3c-import.log (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderBox.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r272302 r272309 1 2021-02-03 Ziran Sun <zsun@igalia.com> 2 3 [css-grid] max-height percentages are wrongly resolved for replaced grid items 4 https://bugs.webkit.org/show_bug.cgi?id=220733 5 6 Reviewed by Manuel Rego Casasnovas. 7 8 The following tests are imported from WPT. 9 * web-platform-tests/css/css-grid/grid-items/grid-img-item-percent-max-height-001-expected.html: Added. 10 * web-platform-tests/css/css-grid/grid-items/grid-img-item-percent-max-height-001.html: Added. 11 1 12 2021-02-03 Ziran Sun <zsun@igalia.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-grid/grid-items/w3c-import.log
r271745 r272309 20 20 /LayoutTests/imported/w3c/web-platform-tests/css/css-grid/grid-items/explicitly-sized-grid-item-as-table.html 21 21 /LayoutTests/imported/w3c/web-platform-tests/css/css-grid/grid-items/grid-automatic-minimum-intrinsic-aspect-ratio-001.html 22 /LayoutTests/imported/w3c/web-platform-tests/css/css-grid/grid-items/grid-img-item-percent-max-height-001.html 22 23 /LayoutTests/imported/w3c/web-platform-tests/css/css-grid/grid-items/grid-inline-items-001-expected.xht 23 24 /LayoutTests/imported/w3c/web-platform-tests/css/css-grid/grid-items/grid-inline-items-001.html -
trunk/Source/WebCore/ChangeLog
r272308 r272309 1 2021-02-03 Ziran Sun <zsun@igalia.com> 2 3 [css-grid] max-height percentages are wrongly resolved for replaced grid items 4 https://bugs.webkit.org/show_bug.cgi?id=220733 5 6 Reviewed by Manuel Rego Casasnovas. 7 8 Make replacedMinMaxLogicalHeightComputesAsNone check the override cb height. If the 9 override height is indefinite, this function should return true. Otherwise returns false. 10 11 This is an import of Chromium changes at 12 https://chromium-review.googlesource.com/c/chromium/src/+/2100771 13 and 14 https://chromium-review.googlesource.com/c/chromium/src/+/2287370. 15 The Chromium code checks on Quirks mode. In WebKit, this check doesn't seem making any 16 impact. 17 Test percentage-max-height-001.html already works in WebKit without this change. Test 18 percentage-max-height-002.html is not ported as it still doesn't work even with this 19 change. This change intends to fix the grid bug raised. 20 21 Test grid-img-item-percent-max-height-001.html was ported to WPT at 22 https://github.com/web-platform-tests/wpt/commit/4816b3d70f98777afd1757995af84c3adc67d433 23 24 Test: imported/w3c/web-platform-tests/css/css-grid/grid-items/grid-img-item-percent-max-height-001.html 25 26 * rendering/RenderBox.cpp: 27 (WebCore::RenderBox::replacedMinMaxLogicalHeightComputesAsNone const): 28 1 29 2021-02-03 Ziran Sun <zsun@igalia.com> 2 30 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r272049 r272309 3248 3248 return true; 3249 3249 3250 if (logicalHeight.isPercentOrCalculated() && hasOverridingContainingBlockContentLogicalHeight()) 3251 return overridingContainingBlockContentLogicalHeight() == LayoutUnit(-1); 3252 3250 3253 // Make sure % min-height and % max-height resolve to none if the containing block has auto height. 3251 3254 // Note that the "height" case for replaced elements was handled by hasReplacedLogicalHeight, which is why
Note: See TracChangeset
for help on using the changeset viewer.