Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sammygill authored and pull[bot] committed Dec 4, 2023
1 parent ca90284 commit 1002748
Show file tree
Hide file tree
Showing 16 changed files with 663 additions and 0 deletions.
@@ -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 css/css-flexbox/align-items-baseline-column-vert-lr-grid-item.html
@@ -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 css/css-flexbox/align-items-baseline-column-vert-lr-items.html
@@ -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>
@@ -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>
@@ -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 css/css-flexbox/align-items-baseline-column-vert-rl-grid-item.html
@@ -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 css/css-flexbox/align-items-baseline-column-vert-rl-items.html
@@ -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>
@@ -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>
@@ -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>

0 comments on commit 1002748

Please sign in to comment.