Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=256937 (#40153)
- Loading branch information
Showing
16 changed files
with
663 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
css/css-flexbox/align-items-baseline-column-vert-lr-flexbox-item.html
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-rules"> | ||
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#cross-alignment"> | ||
<link rel="author" href="mailto:sammy.gill@apple.com" title="Sammy Gill"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/resources/check-layout-th.js"></script> | ||
<style> | ||
#target { | ||
display: flex; | ||
flex-direction: column; | ||
width: 200px; | ||
align-items: baseline; | ||
border: 3px solid black; | ||
font-family: monospace; | ||
font-size: 10px; | ||
line-height: 10px; | ||
} | ||
#target > :nth-child(1) { | ||
background: hotpink; | ||
writing-mode: vertical-lr; | ||
padding-left: 30px; | ||
margin-left: 10px; | ||
} | ||
#target > :nth-child(2) { | ||
background: papayawhip; | ||
writing-mode: vertical-lr; | ||
} | ||
.inner { | ||
display: flex; | ||
border: 5px solid black; | ||
padding: 5px; | ||
} | ||
</style> | ||
<body onload="checkLayout('#target > div')"> | ||
<div id="target"> | ||
<div class="inner" data-offset-x="21"> | ||
<div>two<br>lines</div> | ||
</div> | ||
<div data-offset-x="56">hello</div> | ||
</div> | ||
</body> |
43 changes: 43 additions & 0 deletions
43
css/css-flexbox/align-items-baseline-column-vert-lr-grid-item.html
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE html> | ||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-rules"> | ||
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#cross-alignment"> | ||
<link rel="author" href="mailto:sammy.gill@apple.com" title="Sammy Gill"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/resources/check-layout-th.js"></script> | ||
<style> | ||
#target { | ||
display: flex; | ||
flex-direction: column; | ||
width: 200px; | ||
align-items: baseline; | ||
border: 3px solid black; | ||
font-family: monospace; | ||
font-size: 10px; | ||
line-height: 10px; | ||
} | ||
#target > :nth-child(1) { | ||
background: hotpink; | ||
writing-mode: vertical-lr; | ||
padding-left: 30px; | ||
margin-left: 10px; | ||
} | ||
#target > :nth-child(2) { | ||
background: papayawhip; | ||
writing-mode: vertical-lr; | ||
} | ||
.inner { | ||
display: grid; | ||
grid-template: auto / auto; | ||
border: 5px solid black; | ||
padding: 5px; | ||
} | ||
</style> | ||
<body onload="checkLayout('#target > div')"> | ||
<div id="target"> | ||
<div class="inner" data-offset-x="21"> | ||
<div>two<br>lines</div> | ||
</div> | ||
<div data-offset-x="56">hello</div> | ||
</div> | ||
</body> |
35 changes: 35 additions & 0 deletions
35
css/css-flexbox/align-items-baseline-column-vert-lr-items.html
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-rules"> | ||
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#cross-alignment"> | ||
<link rel="author" href="mailto:sammy.gill@apple.com" title="Sammy Gill"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/resources/check-layout-th.js"></script> | ||
<style> | ||
#target { | ||
display: flex; | ||
flex-direction: column; | ||
width: 200px; | ||
align-items: baseline; | ||
border: 3px solid black; | ||
font-family: monospace; | ||
font-size: 10px; | ||
line-height: 10px; | ||
} | ||
#target > :nth-child(1) { | ||
background: hotpink; | ||
writing-mode: vertical-lr; | ||
padding-left: 30px; | ||
margin-left: 10px; | ||
} | ||
#target > :nth-child(2) { | ||
background: papayawhip; | ||
writing-mode: vertical-lr; | ||
} | ||
</style> | ||
<body onload="checkLayout('#target > div')"> | ||
<div id="target"> | ||
<div data-offset-x="21">two<br>lines</div> | ||
<div data-offset-x="51">hello</div> | ||
</div> | ||
</body> |
45 changes: 45 additions & 0 deletions
45
css/css-flexbox/align-items-baseline-column-vert-lr-table-item.html
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-rules"> | ||
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#cross-alignment"> | ||
<link rel="author" href="mailto:sammy.gill@apple.com" title="Sammy Gill"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/resources/check-layout-th.js"></script> | ||
<style> | ||
#target { | ||
display: flex; | ||
flex-direction: column; | ||
width: 200px; | ||
align-items: baseline; | ||
border: 3px solid black; | ||
font-family: monospace; | ||
font-size: 10px; | ||
line-height: 10px; | ||
} | ||
#target > :nth-child(1) { | ||
background: hotpink; | ||
writing-mode: vertical-lr; | ||
padding-left: 30px; | ||
margin-left: 10px; | ||
} | ||
#target > :nth-child(2) { | ||
background: papayawhip; | ||
writing-mode: vertical-lr; | ||
} | ||
.inner { | ||
border: 5px solid black; | ||
padding: 5px; | ||
} | ||
</style> | ||
<body onload="checkLayout('#target > *')"> | ||
<div id="target"> | ||
<table class="inner" data-offset-x="21"> | ||
<tr> | ||
<td style="vertical-align: baseline;"> | ||
<div>two<br>lines</div> | ||
</td> | ||
</tr> | ||
</table> | ||
<div data-offset-x="59">hello</div> | ||
</div> | ||
</body> |
44 changes: 44 additions & 0 deletions
44
css/css-flexbox/align-items-baseline-column-vert-rl-flexbox-item.html
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!DOCTYPE html> | ||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-rules"> | ||
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#cross-alignment"> | ||
<link rel="author" href="mailto:sammy.gill@apple.com" title="Sammy Gill"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/resources/check-layout-th.js"></script> | ||
<style> | ||
#target { | ||
font-size: 16px; | ||
line-height: 16px; | ||
display: flex; | ||
flex-direction: column; | ||
width: 200px; | ||
align-items: baseline; | ||
border: 3px solid black; | ||
font-family: monospace; | ||
font-size: 10px; | ||
line-height: 10px; | ||
} | ||
#target > :nth-child(1) { | ||
background: hotpink; | ||
writing-mode: vertical-rl; | ||
padding-left: 30px; | ||
margin-left: 10px; | ||
} | ||
#target > :nth-child(2) { | ||
background: papayawhip; | ||
writing-mode: vertical-rl; | ||
} | ||
.inner { | ||
display: flex; | ||
border: 5px solid black; | ||
padding: 5px; | ||
} | ||
</style> | ||
<body onload="checkLayout('#target > div')"> | ||
<div id="target"> | ||
<div class="inner" data-offset-x="146"> | ||
<div>two<br>lines</div> | ||
</div> | ||
<div data-offset-x="191">hello</div> | ||
</div> | ||
</body> |
43 changes: 43 additions & 0 deletions
43
css/css-flexbox/align-items-baseline-column-vert-rl-grid-item.html
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE html> | ||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-rules"> | ||
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#cross-alignment"> | ||
<link rel="author" href="mailto:sammy.gill@apple.com" title="Sammy Gill"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/resources/check-layout-th.js"></script> | ||
<style> | ||
#target { | ||
display: flex; | ||
flex-direction: column; | ||
width: 200px; | ||
align-items: baseline; | ||
border: 3px solid black; | ||
font-family: monospace; | ||
font-size: 10px; | ||
line-height: 10px; | ||
} | ||
#target > :nth-child(1) { | ||
background: hotpink; | ||
writing-mode: vertical-rl; | ||
padding-left: 30px; | ||
margin-left: 10px; | ||
} | ||
#target > :nth-child(2) { | ||
background: papayawhip; | ||
writing-mode: vertical-rl; | ||
} | ||
.inner { | ||
display: grid; | ||
grid-template: auto / auto; | ||
border: 5px solid black; | ||
padding: 5px; | ||
} | ||
</style> | ||
<body onload="checkLayout('#target > div')"> | ||
<div id="target"> | ||
<div class="inner" data-offset-x="146"> | ||
<div>two<br>lines</div> | ||
</div> | ||
<div data-offset-x="191">hello</div> | ||
</div> | ||
</body> |
35 changes: 35 additions & 0 deletions
35
css/css-flexbox/align-items-baseline-column-vert-rl-items.html
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-rules"> | ||
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#cross-alignment"> | ||
<link rel="author" href="mailto:sammy.gill@apple.com" title="Sammy Gill"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/resources/check-layout-th.js"></script> | ||
<style> | ||
#target { | ||
display: flex; | ||
flex-direction: column; | ||
width: 200px; | ||
align-items: baseline; | ||
border: 3px solid black; | ||
font-family: monospace; | ||
font-size: 10px; | ||
line-height: 10px; | ||
} | ||
#target > :nth-child(1) { | ||
background: hotpink; | ||
writing-mode: vertical-rl; | ||
padding-left: 30px; | ||
margin-left: 10px; | ||
} | ||
#target > :nth-child(2) { | ||
background: papayawhip; | ||
writing-mode: vertical-rl; | ||
} | ||
</style> | ||
<body onload="checkLayout('#target > div')"> | ||
<div id="target"> | ||
<div data-offset-x="161">two<br>lines</div> | ||
<div data-offset-x="201">hello</div> | ||
</div> | ||
</body> |
45 changes: 45 additions & 0 deletions
45
css/css-flexbox/align-items-baseline-column-vert-rl-table-item.html
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-rules"> | ||
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#cross-alignment"> | ||
<link rel="author" href="mailto:sammy.gill@apple.com" title="Sammy Gill"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/resources/check-layout-th.js"></script> | ||
<style> | ||
#target { | ||
display: flex; | ||
flex-direction: column; | ||
width: 200px; | ||
align-items: baseline; | ||
border: 3px solid black; | ||
font-family: monospace; | ||
font-size: 10px; | ||
line-height: 10px; | ||
} | ||
#target > :nth-child(1) { | ||
background: hotpink; | ||
writing-mode: vertical-rl; | ||
padding-left: 30px; | ||
margin-left: 10px; | ||
} | ||
#target > :nth-child(2) { | ||
background: papayawhip; | ||
writing-mode: vertical-rl; | ||
} | ||
.inner { | ||
border: 5px solid black; | ||
padding: 5px; | ||
} | ||
</style> | ||
<body onload="checkLayout('#target > *')"> | ||
<div id="target"> | ||
<table class="inner" data-offset-x="140"> | ||
<tr> | ||
<td style="vertical-align: baseline;"> | ||
<div>two<br>lines</div> | ||
</td> | ||
</tr> | ||
</table> | ||
<div data-offset-x="188">hello</div> | ||
</div> | ||
</body> |
42 changes: 42 additions & 0 deletions
42
css/css-flexbox/align-items-baseline-vert-lr-column-horz-flexbox-item.html
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-rules"> | ||
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#cross-alignment"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/resources/check-layout-th.js"></script> | ||
<link rel="author" href="mailto:sammy.gill@apple.com" title="Sammy Gill"> | ||
<style> | ||
#target { | ||
display: flex; | ||
flex-direction: column; | ||
writing-mode: vertical-lr; | ||
align-items: baseline; | ||
border: 3px solid black; | ||
font-family: monospace; | ||
font-size: 10px; | ||
line-height: 10px; | ||
} | ||
#target > :nth-child(1) { | ||
background: hotpink; | ||
writing-mode: horizontal-tb; | ||
padding-left: 30px; | ||
margin-left: 10px; | ||
} | ||
#target > :nth-child(2) { | ||
background: papayawhip; | ||
writing-mode: horizontal-tb; | ||
} | ||
.inner { | ||
display: flex; | ||
border: 5px solid black; | ||
padding: 5px; | ||
} | ||
</style> | ||
<body onload="checkLayout('#target > div')"> | ||
<div id="target"> | ||
<div class="inner" data-offset-y="11"> | ||
<div>two<br>lines</div> | ||
</div> | ||
<div data-offset-y="21">hello</div> | ||
</div> | ||
</body> |
Oops, something went wrong.