Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[css-flex] Allow indefinite size flex items to be definite wrt resolv…
…ing percentages inside them https://bugs.webkit.org/show_bug.cgi?id=212264 Reviewed by Manuel Rego Casasnovas. LayoutTests/imported/w3c: * web-platform-tests/css/css-flexbox/percentage-heights-003-expected.txt: There were 3 subtests marked as failures. All of them work fine now. Source/WebCore: Implement w3c/csswg-drafts@5b5db39 which modified the way percentages were resolved in flexible items with indefinite sizes. From now on we can pretend that they're really definite. This allows us to mark 3 tests which were testing percentages in flex items as correct. Based on Blink's crrev.com/1247184 by <cbiesinger@chromium.org> This is a reland of r263399 which got reverted due to bug 214655. This same patch was previously relanded in r262124 which got reverted due to the bug fixed in r263389. * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution): Do only check flex container main size definiteness when computing the main size for percentage resolution, no need to check flex basis at all. LayoutTests: * css3/flexbox/definite-main-size-expected.txt: Updated expectation. * css3/flexbox/definite-main-size.html: Updated comment. Canonical link: https://commits.webkit.org/229065@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
7 changed files
with
52 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,9 @@ | ||
|
||
FAIL .flexbox 1 assert_equals: | ||
<div class="flexbox column" style="height: 0"> | ||
<div> | ||
<span data-expected-height="100"></span> | ||
</div> | ||
</div> | ||
height expected 100 but got 0 | ||
FAIL .flexbox 2 assert_equals: | ||
<div class="flexbox column-wrap" style="height: 0"> | ||
<div> | ||
<span data-expected-height="50"></span> | ||
</div> | ||
<div> | ||
<span data-expected-height="50"></span> | ||
</div> | ||
</div> | ||
height expected 50 but got 0 | ||
PASS .flexbox 1 | ||
PASS .flexbox 2 | ||
PASS .flexbox 3 | ||
PASS .flexbox 4 | ||
PASS .flexbox 5 | ||
PASS .flexbox 6 | ||
FAIL .flexbox 7 assert_equals: | ||
<div class="flexbox vert-wm"> | ||
<div class="horiz-wm"> | ||
<span data-expected-height="100"></span> | ||
</div> | ||
</div> | ||
height expected 100 but got 0 | ||
PASS .flexbox 7 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters