-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathshape-outside-inset-029.html
More file actions
56 lines (56 loc) · 2.05 KB
/
shape-outside-inset-029.html
File metadata and controls
56 lines (56 loc) · 2.05 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: left float, inset, px units</title>
<link rel="author" title="Brad Werth" href="mailto:bwerth@mozilla.com">
<link rel="help" href="https://umn0mtkzgkj46tygt32g.julianrbryant.com/TR/css-shapes-1/#funcdef-inset">
<link rel="help" href="https://umn0mtkzgkj46tygt32g.julianrbryant.com/TR/css-shapes-1/#shape-outside-property">
<link rel="help" href="https://umn0mtkzgkj46tygt32g.julianrbryant.com/TR/css-shapes-1/#shape-margin-property">
<link rel="match" href="reference/shape-outside-inset-010-ref.html"/>
<meta name="flags" content="ahem" />
<meta name="assert" content="The test verfies that text flows around a
right float with a shape-outside defined as
an inset irregular elliptically rounded
rectangle in px units with a shape-margin.">
</head>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
#container {
position: relative;
margin-left: 25px;
}
#test-container {
width: 200px;
height: 200px;
font: 25px/1 Ahem;
background-color: red;
color: green;
text-align: right;
}
#test-shape {
float: right;
width: 200px;
height: 200px;
shape-margin: 10px;
shape-outside: inset(60px 10px 60px 110px round 70px 0px 0px 10px / 10px 0px 0px 20px);
}
#static-shape {
position: absolute;
left: 100px;
width: 100px;
height: 100px;
top: 50px;
background-color: green;
}
</style>
<body>
<p>The test passes if there is a green square and no red.</p>
<div id="container">
<div id="test-container">
<div id="test-shape"></div>
XXXXXXXX XXXXXXXX XXXX XXXX XXXX XXXX XXXXXXXX XXXXXXXX
</div>
<div id="static-shape"></div>
</div>
</body>
</html>