Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Flexbox: an empty editable flex container reserves a line's block size in a vertical writing mode</title>
<style>
#target {
width: 20px;
height: 100px;
margin: 0;
background: green;
}
</style>
<p>Test passes if there is a filled green rectangle below and no red.</p>
<div id="target"></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Flexbox: an empty editable flex container reserves a line's block size in a vertical writing mode</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#flex-containers">
<link rel="match" href="flex-container-line-if-empty-vertical-writing-mode-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
#target {
display: flex;
writing-mode: vertical-rl;
height: 100px;
font: 20px/1 Ahem;
margin: 0;
border: 0;
padding: 0;
outline: 0;
background: green;
}
</style>
<p>Test passes if there is a filled green rectangle below and no red.</p>
<!-- An editable flex container "has a line if empty", so with no in-flow items it must still reserve one
line along its block axis. In vertical-rl the block axis is horizontal, so the box must be one line
(20px) wide. -->
<div id="target" contenteditable></div>
Loading