Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit 9ee3de7

Browse files
author
Gérard Talbot
committed
[css21] floats-145 ; modified the test so that a
reference file could be more reliable. More info: https://lists.w3.org/Archives/Public/public-css-testsuite/2016Apr/0033.html and servo/servo#10458 (comment) Credits should go to Patrick Walton.
1 parent ed091c6 commit 9ee3de7

File tree

2 files changed

+35
-23
lines changed

2 files changed

+35
-23
lines changed

css21/floats-clear/floats-145-ref.xht

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,20 @@
88
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
99

1010
<style type="text/css"><![CDATA[
11-
div
12-
{
13-
border-bottom: green solid 1em;
14-
display: inline;
15-
}
11+
img
12+
{
13+
margin-top: 90px;
14+
vertical-align: top;
15+
}
1616
]]></style>
1717

1818
</head>
1919

2020
<body>
2121

22-
<div>Test passes if there is a green bar and <strong>no red</strong>.</div>
22+
<p>Test passes if there is a blue bar.</p>
23+
24+
<div><img src="support/swatch-blue.png" width="330" height="30" alt="Image download support must be enabled" /></div>
2325

2426
</body>
25-
</html>
27+
</html>

css21/floats-clear/floats-145.xht

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,37 @@
33
<head>
44
<title>CSS Test: Bottom margins on floats</title>
55
<link rel="author" title="Ian Hickson" href="mailto:[email protected]"/>
6+
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
67
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/float/045.html" type="text/html"/>
8+
<link rel="bookmark" href="https://github.com/servo/servo/pull/10458#issuecomment-210204244" />
9+
<link rel="bookmark" href="http://lists.w3.org/Archives/Public/public-css-testsuite/2016Apr/0028.html" title="About floats-145" />
710
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" />
811
<link rel="match" href="floats-145-ref.xht" />
912

10-
<style type="text/css">
11-
div {
12-
float: left;
13-
background: green;
14-
}
15-
span {
16-
float: left;
17-
background: white;
18-
margin: 0 0 1em 0;
19-
}
20-
</style>
13+
<style type="text/css"><![CDATA[
14+
div
15+
{
16+
background-color: blue;
17+
float: left;
18+
font: 30px/3 Ahem; /* computes to 30px/90px */
19+
}
20+
21+
span
22+
{
23+
background-color: white;
24+
color: white;
25+
float: left;
26+
margin-bottom: 1em;
27+
}
28+
]]></style>
29+
2130
</head>
31+
2232
<body>
23-
<div>
24-
<span>Test passes if there is a green bar and <strong>no red</strong>.</span>
25-
<!-- (note: the "no red anywhere" clause is just for consistency with other tests, this test has no red. -->
26-
</div>
33+
34+
<p>Test passes if there is a blue bar.</p>
35+
36+
<div><span>Text sample</span></div>
37+
2738
</body>
2839
</html>
29-

0 commit comments

Comments
 (0)