Skip to content

Commit 8e1e9f6

Browse files
authored
1 parent 39d85b5 commit 8e1e9f6

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!DOCTYPE html>
2+
<link rel="help" href="https://www.w3.org/TR/css-text-4/#text-indent-property">
3+
<meta name="assert" content="Floats are not part of lines, so if a float is too wide to fit any inline content beside it, the first formatted line goes below it">
4+
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
5+
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
6+
<style>
7+
.container {
8+
position: relative;
9+
width: 100px;
10+
height: 100px;
11+
font-family: Ahem;
12+
line-height: 50px;
13+
text-indent: 50px;
14+
color: green;
15+
background-color: red;
16+
}
17+
18+
.abs_pos {
19+
position: absolute;
20+
top: 50px;
21+
width: 50px;
22+
height: 50px;
23+
background-color: green;
24+
}
25+
26+
.float_box {
27+
float: left;
28+
width: 100px;
29+
height: 50px;
30+
background-color: green;
31+
}
32+
33+
.container::first-line {
34+
font-size: 50px;
35+
}
36+
</style>
37+
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
38+
<div class=container>
39+
<div class=abs_pos></div>
40+
<div class=float_box></div>x
41+
</div>

0 commit comments

Comments
 (0)