Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / ietestcenter / css3 / valuesandunits / units-000.htm
blob5d61085eee5c16738e53f9a4420a79052cdc0c34
1 <!DOCTYPE html PUBLIC "-//W3C//DTD//XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <!--
3 Internet Explorer Test Pages Copyright © 2012 Microsoft Corporation. All rights reserved.
5 Redistribution and use in source and binary forms, with or without modification,
6 are permitted provided that the following conditions are met:
8 Redistributions of source code must retain the above copyright notice, this list of
9 conditions and the following disclaimer.
11 Redistributions in binary form must reproduce the above copyright notice, this list of
12 conditions and the following disclaimer in the documentation and/or other materials
13 provided with the distribution.
15 Neither the name of the Microsoft Corporation nor the names of its contributors may be
16 used to endorse or promote products derived from this software without specific prior
17 written permission.
19 THIS SOFTWARE IS PROVIDED BY MICROSOFT CORPORATION "AS IS" AND ANY EXPRESS OR IMPLIED
20 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
21 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MICROSOFT CORPORATION
22 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
25 OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 POSSIBILITY OF SUCH DAMAGE.
28 -->
30 <!-- This test case has been modified to use 20px instead of 16px font-size to work
31 around font rendering issues for the Ahem font in Blink. -->
33 <html xmlns="http://www.w3.org/1999/xhtml">
34 <head>
35 <title>CSS Test: All unit and function values</title>
36 <script src="../../../resources/ahem.js"></script>
37 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
38 <link rel="help" href="http://www.w3.org/TR/CSS21/" />
39 <meta name="flags" content="" />
40 <meta name="assert" content="Verifying that all unit values and functions are supported." />
41 <style type="text/css">
42 html { font-size: 20px; }
43 body { font-size: 16px; }
44 body div
46 font: 20px/1em Ahem;
47 color: green;
48 height: 20px;
50 #parent
52 height: 340px;
54 #parent
56 background: red;
57 position: relative;
58 overflow: hidden;
59 width: 1.25in;
61 #div1:before
63 color: green;
64 counter-increment: div1 123456;
65 content: counter(div1);
67 #div2
69 border-right: solid green 3.175cm;
70 height: 20px;
71 width: 0;
73 #div3
75 border-right: solid green 31.75mm;
76 height: 20px;
77 width: 0;
79 #div4
81 border-right: solid green 1.25in;
82 height: 20px;
83 width: 0;
85 #div5
87 border-right: solid green 90pt;
88 height: 20px;
89 width: 0;
91 #div6
93 border-right: solid green 7.5pc;
94 height: 20px;
95 width: 0;
97 #div7
99 border-right: solid green 6em;
100 height: 20px;
101 width: 0;
103 #div8
105 border-right: solid green 7.5ex;
106 height: 20px;
107 width: 0;
109 #div9
111 border-right: solid green 6rem;
112 height: 20px;
113 width: 0;
115 #div10
117 border-right: solid green 100vw;
118 height: 20px;
119 width: 0;
121 #div11
123 border-right: solid green 100vh;
124 height: 20px;
125 width: 0;
127 #div12
129 border-right: solid green 100vmin;
130 height: 20px;
131 width: 0;
133 #div13
135 border-right: solid green 6ch;
136 height: 20px;
137 width: 0;
139 #div14
141 border-right: solid green calc(0.625in*2);
142 height: 20px;
143 width: 0;
145 #div15:before
147 color: green;
148 content: "123456";
150 #div16
152 width: 0.625in;
154 #div16 div
156 background: green;
157 height: 20px;
158 width: 200%;
160 #div17:before
162 color: green;
163 content: attr(align);
165 </style>
166 </head>
167 <body>
168 <p>Test passes if there is no red visible on the page.</p>
169 <div id="parent">
170 <div id="div1"></div>
171 <div id="div2"></div>
172 <div id="div3"></div>
173 <div id="div4"></div>
174 <div id="div5"></div>
175 <div id="div6"></div>
176 <div id="div7"></div>
177 <div id="div8"></div>
178 <div id="div9"></div>
179 <div id="div10"></div>
180 <div id="div11"></div>
181 <div id="div12"></div>
182 <div id="div13"></div>
183 <div id="div14"></div>
184 <div id="div15"></div>
185 <div id="div16"><div></div></div>
186 <div align="div17a" id="div17"></div>
187 </div>
188 </body>
189 </html>