Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / shapes / shape-outside-floats / shape-outside-floats-inset-rounded-top-right-expected.html
blobb809fdad841836c6e227851d253dc2b94d115168
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .container {
6 position: relative;
7 font: 20px/1 Ahem, sans-serif;
8 width: 500px;
9 height: 200px;
10 border: 1px solid black;
13 .rounded-rect {
14 width: 320px;
15 height: 160px;
16 border-top-right-radius: 200px 40px;
17 border: 1px solid blue;
20 #left-rounded-rect-outline {
21 position: absolute;
22 top: 20px;
25 .left-rounded-rect-float-line {
26 float: left;
27 clear: left;
28 height: 20px;
30 </style>
31 <body>
32 <div class="container">
33 X<br/>
34 <div id="left-rounded-rect-outline" class="rounded-rect"></div>
35 <!-- generated right-rounded-rect-float-line divs will be inserted here -->
36 &nbsp;X<br/>
37 X<br/>
39 </div>
40 <script src="../resources/rounded-rectangle.js"></script>
41 <script src="../resources/subpixel-utils.js"></script>
42 <script>
43 genLeftRoundedRectFloatShapeOutsideRefTest({
44 roundedRect: {x: 0, y: 20, width: 322, height: 160, rx: 200, ry: 40},
45 containerWidth: 500,
46 containerHeight: 200,
47 lineHeight: 20,
48 floatElementClassSuffix: "rounded-rect-float-line",
49 insertElementIdSuffix: "rounded-rect-outline",
50 corner: "upper"
51 });
52 </script>
54 <p>Requires Ahem font. There is a 0px size inset applied on the right float with 60px/40px top right radius.<br>
55 The black squares should trace the right side of the rounded rectangle's blue outline.
56 The second line contains a non-break space in order to avoid rounding/painting problems in the test.</p>
57 <p>Issue <a href="https://code.google.com/p/chromium/issues/detail?id=338523">338523</a>: [CSS Shapes] Support inset for shape-outside</p>
59 </body>
60 </html>