summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/regions/shape-inside/shape-inside-on-regions-inline-content-basic-overflow-shape-top-offset.html
blob: 3ada1573fd391b46b0f1904cd61e7d0359d3dfd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE HTML>
<html>
<head>
    <style>
        #rectangle {
            font: 20px Ahem, sans-serif;
            -webkit-font-smoothing: none;
            line-height: 20px;
            -webkit-flow-into: flow;
        }
        #region {
            -webkit-flow-from: flow;
            width: 200px;
            height: 200px;
            shape-inside: rectangle(50px, 50px, 100px, 100px);
            border: 2px solid green;
        }
        #border {
            position: absolute;
            top: 58px;
            left: 58px;
            width: 100px;
            height: 100px;
            border: 2px solid blue;
        }
    </style>
</head>
<body>
    <div id="rectangle">
       X X X X X X X X X X X X X X X X X X X X X X X
    </div>

    <div id="page">
        <div id="border"></div>
        <div id="region"></div>
    </div>
    <p style="margin-top: 100px;">Requires Ahem font. The shape-inside on the region is illustrated by the blue rectangle. The content should wrap inside the the blue rectangle, the overflow should start on the left under the content box.</p>
    <p>Bug <a href="http://webkit.org/b/116252">116252</a> [CSS Regions][CSS Exclusions] shape-inside on regions should respect positioned shapes and overflow</p>
</body>
</html>