mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab
This commit is contained in:
parent
1a81b18b9f
commit
2c9faf5363
91915 changed files with 5979820 additions and 0 deletions
119
tests/wpt/css-tests/css-shapes-1_dev/html/shape-outside-008.htm
Normal file
119
tests/wpt/css-tests/css-shapes-1_dev/html/shape-outside-008.htm
Normal file
|
@ -0,0 +1,119 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<title>CSS Test: Shape smaller than float content area - 2 floats</title>
|
||||
<link href="mailto:rhauck@adobe.com" rel="author" title="Rebecca Hauck">
|
||||
<link href="http://www.w3.org/TR/css-shapes-1/#relation-to-box-model-and-float-behavior" rel="help">
|
||||
<link href="http://www.w3.org/TR/css-shapes-1/#supported-basic-shapes" rel="help">
|
||||
<link href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property" rel="help">
|
||||
<link href="reference/shape-outside-008-ref.htm" rel="match">
|
||||
<meta content="ahem" name="flags">
|
||||
<meta content="This test verifies that inline content only wraps around the
|
||||
shapes, and otherwise overlays the rest of the float margin
|
||||
boxes when two floats are stacked next to each other." name="assert">
|
||||
<!-- This test is derived from Example 5 in this version of the spec:
|
||||
http://www.w3.org/TR/2013/WD-css-shapes-1-20131203/ -->
|
||||
<style type="text/css">
|
||||
.container {
|
||||
width: 260px;
|
||||
font-family: Ahem;
|
||||
font-size: 15px;
|
||||
line-height: 2em;
|
||||
border: 1px solid black;
|
||||
padding-left: 2px;
|
||||
}
|
||||
#test {
|
||||
color: green;
|
||||
}
|
||||
.test-float-left {
|
||||
shape-outside: polygon(0 70px, 50px 120px, 0 120px);
|
||||
float: left;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
#test, #failure-container {
|
||||
position: absolute;
|
||||
top: 70px;
|
||||
}
|
||||
#margin-line {
|
||||
position: absolute;
|
||||
top: 100px;
|
||||
width: 263px;
|
||||
border-bottom: 1px solid black;
|
||||
}
|
||||
.fail {
|
||||
position: absolute;
|
||||
height: 15px;
|
||||
background-color: red;
|
||||
z-index: -1;
|
||||
}
|
||||
#bar-1 {
|
||||
top: 8px;
|
||||
left: 3px;
|
||||
width: 255px;
|
||||
}
|
||||
#bar-2 {
|
||||
top: 38px;
|
||||
left: 3px;
|
||||
width: 255px;
|
||||
}
|
||||
#bar-3 {
|
||||
top: 68px;
|
||||
left: 23px;
|
||||
width: 225px;
|
||||
}
|
||||
#bar-4 {
|
||||
top: 98px;
|
||||
left: 123px;
|
||||
width: 135px;
|
||||
}
|
||||
#bar-5 {
|
||||
top: 128px;
|
||||
left: 153px;
|
||||
width: 105px;
|
||||
}
|
||||
.triangle {
|
||||
position: absolute;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: lightblue;
|
||||
clip-path: polygon(0% 50%, 50% 100%, 0 100%);;
|
||||
|
||||
}
|
||||
#triangle-1 {
|
||||
top: 90px;
|
||||
margin-left: 2px;
|
||||
}
|
||||
#triangle-2 {
|
||||
top: 120px;
|
||||
margin-left: 102px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
The test passes if one green bar is inside the top rectangle, four green bars
|
||||
are in the bottom rectangle, and none intersect the triangles. There should be no
|
||||
red.
|
||||
</p>
|
||||
<div class="container" id="test">
|
||||
<div class="test-float-left"></div>
|
||||
XXXXXXXXXXXXXXXXX
|
||||
<div class="test-float-left"></div>
|
||||
XXXXXXXXXXXXXXXXX
|
||||
XXXXXXXXXXXXXXX
|
||||
XXXXXXXXX
|
||||
XXXXXXX
|
||||
</div>
|
||||
<div id="margin-line"></div>
|
||||
<div id="failure-container">
|
||||
<div class="fail" id="bar-1"></div>
|
||||
<div class="fail" id="bar-2"></div>
|
||||
<div class="fail" id="bar-3"></div>
|
||||
<div class="fail" id="bar-4"></div>
|
||||
<div class="fail" id="bar-5"></div>
|
||||
</div>
|
||||
<div class="triangle" id="triangle-1"></div>
|
||||
<div class="triangle" id="triangle-2"></div>
|
||||
|
||||
</body></html>
|
Loading…
Add table
Add a link
Reference in a new issue