Skip to content

Commit fc67fe4

Browse files
committed
Add test for the clear attribute presentational hints on BR elements
1 parent 3c78379 commit fc67fe4

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<div style="max-width: 100px; height: 100px; background: green;"></div>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>The clear attribute applies the clear CSS property.</title>
4+
<link rel="author" title="Psychpsyo" href="mailto:psychpsyo@gmail.com">
5+
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3">
6+
<link rel=match href="./br-clear-presentational-hints-ref.html">
7+
<style>
8+
body {
9+
line-height: 0;
10+
}
11+
.test > div {
12+
width: 25px;
13+
height: 50px;
14+
background: green;
15+
}
16+
</style>
17+
<div style="max-width: 100px; display: flex;">
18+
<div class="test">
19+
<div style="float:right"></div>
20+
<br clear="all">
21+
<div></div>
22+
</div>
23+
<div class="test">
24+
<div style="float:right"></div>
25+
<br clear="both">
26+
<div></div>
27+
</div>
28+
<div class="test">
29+
<div style="float:right"></div>
30+
<br clear="right">
31+
<div></div>
32+
</div>
33+
<div class="test">
34+
<div style="float:left"></div>
35+
<br clear="left">
36+
<div></div>
37+
</div>
38+
</div>

0 commit comments

Comments
 (0)