LayoutTests/ChangeLog

 12021-02-12 Sergio Villar Senin <svillar@igalia.com>
 2
 3 [css-flexbox] Another WPT test import
 4 https://bugs.webkit.org/show_bug.cgi?id=221813
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 Imported the most recent changes in flexbox WPT tests. This implies deleting a local test that
 9 was upstreamed to WPT, so it does not make sense to have a duplicate.
 10
 11 * TestExpectations: Removed a test that is currently passing. Adding a new expected failure.
 12 * css3/flexbox/percentage-descendants-of-skipped-flex-item-expected.html: Removed.
 13 * css3/flexbox/percentage-descendants-of-skipped-flex-item.html: Removed.
 14
1152021-02-10 Sergio Villar Senin <svillar@igalia.com>
216
317 Crash in InsertTextCommand::doApply

LayoutTests/imported/w3c/ChangeLog

 12021-02-12 Sergio Villar Senin <svillar@igalia.com>
 2
 3 [css-flexbox] Another WPT test import
 4 https://bugs.webkit.org/show_bug.cgi?id=221813
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 * web-platform-tests/css/css-flexbox/flexbox-min-width-auto-005-expected.html: Added.
 9 * web-platform-tests/css/css-flexbox/flexbox-min-width-auto-005.html: Added.
 10 * web-platform-tests/css/css-flexbox/flexbox-min-width-auto-006-expected.html: Added.
 11 * web-platform-tests/css/css-flexbox/flexbox-min-width-auto-006.html: Added.
 12 * web-platform-tests/css/css-flexbox/percentage-descendant-of-anonymous-flex-item-expected.html: Added.
 13 * web-platform-tests/css/css-flexbox/percentage-descendant-of-anonymous-flex-item.html: Added.
 14 * web-platform-tests/css/css-flexbox/radiobutton-min-size-expected.txt: Updated expectations.
 15 * web-platform-tests/css/css-flexbox/radiobutton-min-size.html: Updated.
 16 * web-platform-tests/css/css-flexbox/support/40x20-green.png: Added.
 17 * web-platform-tests/css/css-flexbox/support/w3c-import.log:
 18 * web-platform-tests/css/css-flexbox/w3c-import.log:
 19
1202021-02-11 Said Abou-Hallawa <said@apple.com>
221
322 Unreviewed, reverting r270578.

LayoutTests/TestExpectations

@@webkit.org/b/210093 imported/w3c/web-platform-tests/css/css-flexbox/select-eleme
39283928webkit.org/b/210093 imported/w3c/web-platform-tests/css/css-flexbox/select-element-zero-height-002.html [ ImageOnlyFailure ]
39293929webkit.org/b/210144 imported/w3c/web-platform-tests/css/css-flexbox/anonymous-flex-item-005.html [ ImageOnlyFailure ]
39303930webkit.org/b/210478 imported/w3c/web-platform-tests/css/css-flexbox/percentage-heights-006.html [ ImageOnlyFailure ]
3931 webkit.org/b/212046 imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-005.xht [ ImageOnlyFailure ]
39323931webkit.org/b/212046 imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-007.xht [ ImageOnlyFailure ]
39333932webkit.org/b/212046 imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-width-flex-items-007.xht [ ImageOnlyFailure ]
39343933webkit.org/b/212046 imported/w3c/web-platform-tests/css/css-flexbox/overflow-area-001.html [ ImageOnlyFailure ]

@@webkit.org/b/221481 imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-
40534052webkit.org/b/221481 imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-height-auto-002c.html [ ImageOnlyFailure ]
40544053webkit.org/b/221481 imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-002a.html [ ImageOnlyFailure ]
40554054webkit.org/b/221481 imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-002c.html [ ImageOnlyFailure ]
 4055webkit.org/b/221481 imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-005.html [ ImageOnlyFailure ]
40564056webkit.org/b/221481 imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-026.html [ ImageOnlyFailure ]
40574057webkit.org/b/221481 imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-029.html [ ImageOnlyFailure ]
40584058webkit.org/b/221481 imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-width-flex-items-015.html [ ImageOnlyFailure ]

LayoutTests/css3/flexbox/percentage-descendants-of-skipped-flex-item-expected.html

1 <!DOCTYPE html>
2 <button style="width: 200px; height: 100px;">
3  <div style="width: 200px; height: 100%; background-color: green;"></div>
4 </button>

LayoutTests/css3/flexbox/percentage-descendants-of-skipped-flex-item.html

1 <!DOCTYPE html>
2 <link href="resources/flexbox.css" rel="stylesheet">
3 <style>
4 .flexbox {
5  width: 200px;
6  height: 200px;
7 }
8 </style>
9 <div class="flexbox column">
10  <div style="height: 50%;">
11  <button style="width: 200px; height: 100%;">
12  <div style="width: 200px; height: 100%; background-color: green;"></div>
13  </button>
14  </div>
15 </div>

LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-005-expected.html

 1<!DOCTYPE html>
 2<title>CSS Reference</title>
 3<link rel="author" title="Sergio Villar Senin" href="mailto:svillar@igalia.com" />
 4<style>
 5div {
 6 background-color: green;
 7 height: 50px;
 8 width: 100px;
 9}
 10span {
 11 display: inline-block;
 12 background-color: green;
 13 height: 50px;
 14 width: 40px;
 15}
 16br { margin: 50px; }
 17</style>
 18
 19<p>Test passes if there is <strong>no red</strong> visible on the page.</p>
 20<div></div>
 21
 22<br>
 23
 24<span></span>

LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-005.html

 1<!DOCTYPE html>
 2<title>CSS Flexible Box Test: Aspect ratio handling of images</title>
 3<link rel="author" title="Sergio Villar Senin" href="mailto:svillar@igalia.com" />
 4<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#min-size-auto" />
 5<link rel="match" href="reference/flexbox-min-width-auto-005-ref.html" />
 6<meta name="assert" content="Test that min-width:auto does not incorrectly stretch items with aspect ratio" />
 7
 8<style>
 9.reference-overlapped-red {
 10 position: absolute;
 11 background-color: red;
 12 width: 100px;
 13 height: 50px;
 14 z-index: -1;
 15}
 16.constrained-flex {
 17 display: flex;
 18 height: 50px;
 19}
 20br { margin: 50px; }
 21</style>
 22
 23<p>Test passes if there is <strong>no red</strong> visible on the page.</p>
 24
 25<div class="reference-overlapped-red"></div>
 26<div class="constrained-flex">
 27 <img src="support/40x20-green.png" />
 28</div>
 29
 30<br>
 31
 32<div class="reference-overlapped-red" style="width: 40px;"></div>
 33<div style="display: flex">
 34 <div class="constrained-flex">
 35 <img src="support/40x20-green.png" />
 36 </div>
 37</div>

LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-006-expected.html

 1<!DOCTYPE html>
 2<title>CSS Reference</title>
 3<link rel="author" title="Sergio Villar Senin" href="mailto:svillar@igalia.com" />
 4<style>
 5.box {
 6 width: 100px;
 7 height: 100px;
 8 border: 1px solid black;
 9}
 10#green-square {
 11 background: green;
 12 margin-top: 40px;
 13 width: 20px;
 14 height: 20px;
 15}
 16#green-rectange {
 17 background: green;
 18 width: 60px;
 19 height: 100px;
 20}
 21</style>
 22
 23<p>Test passes if there are a (vertically centered) 20x20 and a 60x100 green boxes enclosed on each 100x100 square.</p>
 24<div class="box">
 25 <div id="green-square"></div>
 26</div>
 27
 28<br>
 29
 30<div class="box">
 31 <div id="green-rectange"></div>
 32</div>

LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-006.html

 1<!DOCTYPE html>
 2<title>CSS Flexible Box Test: Aspect ratio handling of images</title>
 3<link rel="author" title="Sergio Villar Senin" href="mailto:svillar@igalia.com" />
 4<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#min-size-auto" />
 5<link rel="match" href="reference/flexbox-min-width-auto-006-ref.html" />
 6<meta name="assert" content="Test that min-width:auto does not incorrectly stretch items with aspect ratio" />
 7
 8<style>
 9#reference-overlapped-red {
 10 position: relative;
 11 background-color: red;
 12 width: 10px;
 13 height: 10px;
 14 top: 40px;
 15 z-index: -1;
 16}
 17.constrained-width-flex {
 18 width: 100px;
 19 display: flex;
 20 border: 1px solid black;
 21}
 22.constrained-height-flex {
 23 display: flex;
 24 height: 100px;
 25}
 26</style>
 27
 28<p>Test passes if there are a (vertically centered) 20x20 and a 60x100 green boxes enclosed on each 100x100 square.</p>
 29
 30<div class="constrained-width-flex">
 31 <div class="constrained-height-flex">
 32 <img src="data:image/svg+xml,
 33 <svg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'>
 34 <rect width='100%' height='100%' fill='green'/>
 35 </svg>"/>
 36 </div>
 37</div>
 38
 39<br>
 40
 41<div class="constrained-width-flex">
 42 <div class="constrained-height-flex">
 43 <img src="support/60x60-green.png"/>
 44 </div>
 45</div>

LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/percentage-descendant-of-anonymous-flex-item-expected.html

 1<!DOCTYPE html>
 2<meta charset="utf-8">
 3<title>CSS Flexbox Test: percentage heights in descendants of anonymous flex items</title>
 4<link rel="author" title="Sergio Villar Senin" href="mailto:svillar@igalia.com">
 5<p>The test PASS if you see a 200x100 green rectangle inside a button.</p>
 6<button style="width: 200px; height: 100px;">
 7 <div style="width: 200px; height: 100%; background-color: green;"></div>
 8</button>

LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/percentage-descendant-of-anonymous-flex-item.html

 1<!DOCTYPE html>
 2<meta charset="utf-8">
 3<title>CSS Flexbox Test: percentage heights in descendants of anonymous flex items</title>
 4<link href="resources/flexbox.css" rel="stylesheet">
 5<link rel="author" title="Sergio Villar Senin" href="mailto:svillar@igalia.com">
 6<link rel="match" href="reference/percentage-descendant-of-anonymous-flex-item-ref.html">
 7<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-items">
 8<style>
 9.flexbox {
 10 width: 200px;
 11 height: 200px;
 12}
 13</style>
 14<!--
 15 Both Blink and WebKit implement buttons as flexboxes, which in this case, wrap the child in an anonymous box.
 16 Anonymous boxes are skipped when computing percentage heights but we need to ensure that their children with
 17 percentage heights are properly sized.
 18-->
 19<p>The test PASS if you see a 200x100 green rectangle inside a button.</p>
 20<div class="flexbox column">
 21 <div style="height: 50%;">
 22 <button style="width: 200px; height: 100%;">
 23 <div style="width: 200px; height: 100%; background-color: green;"></div>
 24 </button>
 25 </div>
 26</div>

LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/radiobutton-min-size-expected.txt

@@You should see two identical-looking lines, both with a radio button at the begi
44Text
55Text
66
7 FAIL two radio button sizes are identical assert_equals: width should be equal expected 0 but got 12
 7FAIL two radio button widths are identical assert_equals: width should be equal expected 0 but got 12
88

LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/radiobutton-min-size.html

@@var check = document.getElementById("check");
3636
3737test(function() {
3838 assert_equals(ref.offsetWidth, check.offsetWidth, "width should be equal");
39  assert_equals(ref.offsetHeight, check.offsetHeight,
40  "height should be equal");
41 }, "two radio button sizes are identical");
 39}, "two radio button widths are identical");
4240</script>

LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/support/40x20-green.png

Exception raised during decoding git binary patch:
Error running git apply --directory=/tmp
with patch:
diff --git a/PrettyPatch20260325-4014-161vrfk.bin b/PrettyPatch20260325-4014-161vrfk.bin
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 0
HcmV?d00001

...
error: invalid path '/tmp/PrettyPatch20260325-4014-161vrfk.bin'

/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:924:in `run_git_apply_on_patch'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:935:in `extract_contents_from_git_binary_literal_chunk'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:950:in `extract_contents_from_remote'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:713:in `initialize'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:845:in `new'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:845:in `block in parse'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:845:in `collect'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:845:in `parse'
/var/www/bugs.webkit.org/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb:21:in `prettify'
/var/www/html/PrettyPatch/prettify.rb:30:in `<main>'

LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/support/w3c-import.log

@@List of files:
2626/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/support/200x200-green.png
2727/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/support/20x50-green.png
2828/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/support/300x150-green.png
 29/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/support/40x20-green.png
2930/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/support/60x60-gg-rr.png
3031/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/support/60x60-green.png
3132/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/support/README

LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/w3c-import.log

@@List of files:
823823/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-003.html
824824/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-004-expected.html
825825/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-004.html
 826/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-005-expected.html
 827/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-005.html
 828/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-006-expected.html
 829/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-006.html
826830/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flexbox-order-from-lowest.html
827831/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flexbox-order-only-flexitems-expected.html
828832/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flexbox-order-only-flexitems.html

@@List of files:
15181522/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/overflow-top-left.html
15191523/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/padding-overflow-crash-expected.html
15201524/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/padding-overflow-crash.html
 1525/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/percentage-descendant-of-anonymous-flex-item-expected.html
 1526/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/percentage-descendant-of-anonymous-flex-item.html
15211527/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/percentage-heights-000.html
15221528/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/percentage-heights-001.html
15231529/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/percentage-heights-002-expected.html