Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / ietestcenter / css3 / bordersbackgrounds / border-radius-sum-of-radii-001.htm
blob6c1f60d9563e5743434e4a629f94983f693297eb
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 -->
29 <html xmlns="http://www.w3.org/1999/xhtml">
30 <head>
31 <title>CSS Test: Different variations on the sum of border-radius for adjacent corners</title>
32 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
33 <link rel="help" href="http://www.w3.org/TR/css3-background/#border-radius" />
34 <meta name="flags" content="" />
35 <meta name="assert" content="If the sum of any two adjacent corner radii exceeds the size of the border box, all the corner radii are reduced proportionally until none of them overlap." />
36 <style type="text/css">
37 div
39 border: 10px red solid;
40 width: 80px;
41 height: 80px;
43 #reference1
45 border-radius: 30px 75px 15px 15px;
47 #test1
49 margin-top: -100px;
50 border-color: black;
51 border-radius: 60px 150px 30px 30px;
53 #reference2
55 border-radius: 0px 100px 0px 20px;
57 #test2
59 margin-top: -100px;
60 border-color: black;
61 border-radius: 0px 150px 0px 30px;
63 #reference3
65 border-radius: 100px 0px 20px 0px;
67 #test3
69 margin-top: -100px;
70 border-color: black;
71 border-radius: 150px 0px 30px 0px;
73 #reference4
75 border-radius: 41.67px 58.31px 25px 25px;
77 #test4
79 margin-top: -100px;
80 border-color: black;
81 border-radius: 50px 70px 30px 30px;
83 #reference5
85 border-radius: 50px 50px 10px 10px;
87 #test5
89 margin-top: -100px;
90 border-color: black;
91 border-radius: 150px 150px 30px 30px;
93 #reference6
95 border-radius: 25px 41.67px 58.31px 25px;
97 #test6
99 margin-top: -100px;
100 border-color: black;
101 border-radius: 30px 50px 70px 30px;
103 #reference7
105 border-radius: 25px 25px 41.67px 58.31px;
107 #test7
109 margin-top: -100px;
110 border-color: black;
111 border-radius: 30px 30px 50px 70px;
113 #reference8
115 border-radius: 58.31px 25px 25px 41.67px;
117 #test8
119 margin-top: -100px;
120 border-color: black;
121 border-radius: 70px 30px 30px 50px;
123 </style>
124 </head>
125 <body>
126 <p>Test passes if there are no squares on the page and there is no red visible on the page.</p>
127 <table>
128 <tr>
129 <td>
130 <div id="reference1"></div>
131 <div id="test1"></div>
132 </td>
133 <td>
134 <div id="reference2"></div>
135 <div id="test2"></div>
136 </td>
137 </tr>
138 <tr>
139 <td>
140 <div id="reference3"></div>
141 <div id="test3"></div>
142 </td>
143 <td>
144 <div id="reference4"></div>
145 <div id="test4"></div>
146 </td>
147 </tr>
148 <tr>
149 <td>
150 <div id="reference5"></div>
151 <div id="test5"></div>
152 </td>
153 <td>
154 <div id="reference6"></div>
155 <div id="test6"></div>
156 </td>
157 </tr>
158 <tr>
159 <td>
160 <div id="reference7"></div>
161 <div id="test7"></div>
162 </td>
163 <td>
164 <div id="reference8"></div>
165 <div id="test8"></div>
166 </td>
167 </tr>
168 </table>
169 </body>
170 </html>