Closed
Bug 1592185
Opened 6 years ago
Closed 4 years ago
[wpt-sync] Sync PR 19969 - This patch adds a wpt test case included in the patch in WebKit below.
Categories
(Core :: Layout, task, P4)
Core
Layout
Tracking
()
RESOLVED
INVALID
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 19969 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/19969
Details from upstream follow.
Joonghun Park <jh718.park@samsung.com> wrote:
This patch adds a wpt test case included in the patch in WebKit below.
Always min-width should win over max-width.
https://bugs.webkit.org/show_bug.cgi?id=198032Reviewed by Darin Adler.
In the spec, https://www.w3.org/TR/CSS21/visudet.html#min-max-widths,
the following algorithm describes how the two properties influence
the used value of the 'width' property.
- The tentative used width is calculated (without 'min-width' and 'max-width')
following the rules under "Calculating widths and margins" above.- If the tentative used width is greater than 'max-width',
the rules above are applied again, but this time using the computed value of 'max-width'
as the computed value for 'width'.- If the resulting width is smaller than 'min-width', the rules above are applied again,
but this time using the value of 'min-width' as the computed value for 'width'.LayoutTests/imported/w3c:
- web-platform-tests/css/css-sizing/min-width-max-width-precedence-expected.txt: Added.
- web-platform-tests/css/css-sizing/min-width-max-width-precedence.html: Added.
Source/WebCore:
- rendering/RenderBlock.cpp:
(WebCore::RenderBlock::computePreferredLogicalWidths):git-svn-id: http://svn.webkit.org/repository/webkit/trunk@245966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Assignee | ||
Updated•6 years ago
|
Component: web-platform-tests → Layout
Product: Testing → Core
Assignee | ||
Updated•4 years ago
|
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•