Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 281997d

Browse files
TalbotGtabatkins
authored andcommitted
Corrected and improved absolute_length_units.html (#17017)
1 parent 33a405b commit 281997d

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

css/css-values/absolute_length_units.html

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,39 @@
33
<!-- Submitted from TestTWF Paris -->
44
<head>
55

6-
<title>CSS Values and Units Test: elements should be the real world size given in mm, cm, inches...</title>
7-
<meta name="assert" content="elements are not displayed with the real world size units they should be, when specified in millimeters, centimeters, inches, ...">
8-
<link rel="author" title="Marc Bourlon" href="mailto:[email protected]">
9-
<link rel="help" href="http://www.w3.org/TR/css3-values/#viewport-relative-lengths" title="5.1.2. Viewport-percentage lengths: the 'vw', 'vh', 'vmin', 'vmax' units">
6+
<meta charset="UTF-8">
107

11-
<style type="text/css">
8+
<title>CSS Values and Units Test: elements should be the real world size given in mm, cm, inches...</title>
9+
<link rel="author" title="Marc Bourlon" href="mailto:[email protected]">
10+
<link rel="help" href="https://www.w3.org/TR/css3-values/#absolute-lengths" title="5.2 Absolute lengths: the cm, mm, Q, in, pt, pc, px units">
1211

13-
* { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; font-size: 13px; }
12+
<style type="text/css">
1413

15-
.s1mm { background: #F00; width: 1mm; height: 1mm; }
16-
.s10mm { background: #66F; width: 10mm; height: 10mm; }
17-
.s1cm { background: #E90; width: 1cm; height: 1cm; }
18-
.s254cm { background: #D0D; width: 2.54cm; height: 2.54cm; }
19-
.s1in { background: #00F; width: 1in; height: 1in; }
14+
.s1mm { background-color: fuchsia; width: 1mm; height: 1mm; }
15+
.s10mm { background-color: olive; width: 10mm; height: 10mm; }
16+
.s1cm { background-color: orange; width: 1cm; height: 1cm; }
17+
.s254cm { background-color: gray; width: 2.54cm; height: 2.54cm; }
18+
.s1in { background-color: blue; width: 1in; height: 1in; }
2019

21-
.inline { float: left; }
20+
.inline { float: left; }
2221

23-
.newline { clear: left; }
22+
.newline { clear: left; }
2423

25-
p { clear: both; margin: 10px 0; }
24+
p { clear: both; margin: 10px 0; }
2625

27-
</style>
26+
</style>
2827

2928
</head>
3029
<body>
3130

3231
<p>
33-
This should be 1mm (width) by 1mm (height) size
32+
There should be a 1mm (width) by 1mm (height) fuchsia square:
3433
</p>
3534

3635
<div class="s1mm"></div>
3736

3837
<p>
39-
This is 10 1mm x 1mm divs, so it should be 10mm (width) by 1mm (height) size
38+
There should be a 10mm (width) by 1mm (height) fuchsia stripe:
4039
</p>
4140

4241
<div class="s1mm newline inline"></div>
@@ -51,25 +50,25 @@
5150
<div class="s1mm inline"></div>
5251

5352
<p>
54-
This should be 10mm (width) by 10mm (height) size.
53+
There should be a 10mm (width) by 10mm (height) olive square:
5554
</p>
5655

5756
<div class="s10mm newline "></div>
5857

5958
<p>
60-
This should be 1cm (width) by 1cm (height) size. So, same width as the line above.
59+
There should be a 1cm (width) by 1cm (height) orange square. So, same width above:
6160
</p>
6261

6362
<div class="s1cm newline "></div>
6463

6564
<p>
66-
This should be 2.54cm (width) by 2.54cm (height) size.
65+
There should be a 2.54cm (width) by 2.54cm (height) gray square:
6766
</p>
6867

6968
<div class="s254cm newline "></div>
7069

7170
<p>
72-
This should be 1in (width) by 1in (height) size. So, same size as above.
71+
There should be a 1in (width) by 1in (height) blue square. So, same width as above:
7372
</p>
7473

7574
<div class="s1in"></div>

0 commit comments

Comments
 (0)