Changeset 272360 in webkit
- Timestamp:
- Feb 3, 2021 11:59:45 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r272359 r272360 1 2021-02-03 Rob Buis <rbuis@igalia.com> 2 3 Handle aspect-ratio: auto m/n for replaced elements 4 https://bugs.webkit.org/show_bug.cgi?id=221323 5 6 Reviewed by Simon Fraser. 7 8 replaced-element-030.html now passes. 9 10 * TestExpectations: 11 1 12 2021-02-03 Peng Liu <peng.liu6@apple.com> 2 13 -
trunk/LayoutTests/TestExpectations
r272315 r272360 4449 4449 webkit.org/b/214463 imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/intrinsic-size-010.html [ ImageOnlyFailure ] 4450 4450 webkit.org/b/214463 imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/intrinsic-size-011.html [ ImageOnlyFailure ] 4451 webkit.org/b/214463 imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/replaced-element-030.html [ ImageOnlyFailure ]4452 4451 webkit.org/b/214463 imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/replaced-element-031.html [ ImageOnlyFailure ] 4453 4452 webkit.org/b/214463 imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/replaced-element-032.html [ ImageOnlyFailure ] -
trunk/Source/WebCore/ChangeLog
r272359 r272360 1 2021-02-03 Rob Buis <rbuis@igalia.com> 2 3 Handle aspect-ratio: auto m/n for replaced elements 4 https://bugs.webkit.org/show_bug.cgi?id=221323 5 6 Reviewed by Simon Fraser. 7 8 In the aspect-ratio: auto m/n case, replaced elements with natural aspect ratio 9 should use that aspect-ratio instead of the provided aspect ratio [1]. 10 11 [1] https://drafts.csswg.org/css-sizing-4/#ratios 12 13 * rendering/RenderBox.cpp: 14 (WebCore::RenderBox::computeLogicalWidthInFragment const): 15 1 16 2021-02-03 Peng Liu <peng.liu6@apple.com> 2 17 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r272309 r272360 2549 2549 2550 2550 // Width calculations 2551 if (shouldComputeLogicalWidthFromAspectRatio() && style().logicalWidth().isAuto()) { 2551 if (treatAsReplaced) { 2552 computedValues.m_extent = logicalWidthLength.value() + borderAndPaddingLogicalWidth(); 2553 } else if (shouldComputeLogicalWidthFromAspectRatio() && style().logicalWidth().isAuto()) { 2552 2554 computedValues.m_extent = computeLogicalWidthFromAspectRatio(fragment); 2553 } else if (treatAsReplaced) {2554 computedValues.m_extent = logicalWidthLength.value() + borderAndPaddingLogicalWidth();2555 2555 } else { 2556 2556 LayoutUnit preferredWidth = computeLogicalWidthInFragmentUsing(MainOrPreferredSize, styleToUse.logicalWidth(), containerWidthInInlineDirection, cb, fragment);
Note: See TracChangeset
for help on using the changeset viewer.