Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / ietestcenter / css3 / bordersbackgrounds / border-radius-shorthand-001.htm
blobcd8a3240338fa3611a379a4756f73243a01c7d5c
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: 'Border-radius' shorthand is used to set all four 'border-[*]-radius' properties.</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="'Border-radius' shorthand sets all four 'border-[*]-radius' properties." />
36 <style type="text/css">
37 div
39 width: 200px;
40 height: 200px;
42 #reference1
44 border: 10px solid red;
45 border-top-left-radius: 40px;
46 border-top-right-radius: 40px;
47 border-bottom-right-radius: 40px;
48 border-bottom-left-radius: 40px;
50 #test1
52 margin-top: -220px;
53 border: 10px solid black;
54 border-radius : 40px;
56 #reference2
58 border: 10px solid red;
59 border-top-left-radius: 2em 0.5em;
60 border-top-right-radius: 1em 3em;
61 border-bottom-right-radius: 4em 0.5em;
62 border-bottom-left-radius: 1em 3em;
64 #test2
66 margin-top: -220px;
67 border: 10px solid black;
68 border-radius: 2em 1em 4em / 0.5em 3em;
70 </style>
71 </head>
72 <body>
73 <p>Test passes if there are two black boxes with rounded corners and red is not visible on the page.</p>
74 <table>
75 <td>
76 <div id="reference1"></div>
77 <div id="test1"></div>
78 </td>
79 <td>
80 <div id="reference2"></div>
81 <div id="test2"></div>
82 </td>
83 </table>
84 </body>
85 </html>