Skip to content

Commit f02c9c3

Browse files
authored
1 parent f40dc05 commit f02c9c3

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Flexbox: an empty editable flex container reserves a line's block size in a vertical writing mode</title>
4+
<style>
5+
#target {
6+
width: 20px;
7+
height: 100px;
8+
margin: 0;
9+
background: green;
10+
}
11+
</style>
12+
<p>Test passes if there is a filled green rectangle below and no red.</p>
13+
<div id="target"></div>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Flexbox: an empty editable flex container reserves a line's block size in a vertical writing mode</title>
4+
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#flex-containers">
5+
<link rel="match" href="flex-container-line-if-empty-vertical-writing-mode-ref.html">
6+
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
7+
<style>
8+
#target {
9+
display: flex;
10+
writing-mode: vertical-rl;
11+
height: 100px;
12+
font: 20px/1 Ahem;
13+
margin: 0;
14+
border: 0;
15+
padding: 0;
16+
outline: 0;
17+
background: green;
18+
}
19+
</style>
20+
<p>Test passes if there is a filled green rectangle below and no red.</p>
21+
<!-- An editable flex container "has a line if empty", so with no in-flow items it must still reserve one
22+
line along its block axis. In vertical-rl the block axis is horizontal, so the box must be one line
23+
(20px) wide. -->
24+
<div id="target" contenteditable></div>

0 commit comments

Comments
 (0)