mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15: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
|
@ -0,0 +1,75 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<title>CSS Test: inset with no extent and inline content - inset(50% 50% 50% 50%)</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-004-ref.htm" rel="match">
|
||||
<meta content="ahem" name="flags">
|
||||
<meta content="This test verifies that a shape with no extent allow inline
|
||||
content to flow through all of the float’s box." name="assert">
|
||||
<!-- This test is derived from Example 3 in this version of the spec:
|
||||
http://www.w3.org/TR/2013/WD-css-shapes-1-20131203/ -->
|
||||
<style type="text/css">
|
||||
.container {
|
||||
width: 400px;
|
||||
font-family: Ahem;
|
||||
font-size: 20px;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
#test {
|
||||
color: green;
|
||||
}
|
||||
#test-float-left {
|
||||
shape-outside: inset(50% 50% 50% 50%);
|
||||
float: left;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
#failure {
|
||||
color: red;
|
||||
z-index: -1;
|
||||
}
|
||||
#test, #failure {
|
||||
position: absolute;
|
||||
top: 70px;
|
||||
}
|
||||
#square{
|
||||
position: absolute;
|
||||
top: 70px;
|
||||
width: 196px;
|
||||
height: 196px;
|
||||
border: 1px solid black;
|
||||
z-index: 10;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
The test passes if there are two columns of six green horizontal bars of the same
|
||||
size inside the square and two columns of six matching green bars outside and to the
|
||||
right of the square. There should be no red.
|
||||
</p>
|
||||
<div class="container" id="test">
|
||||
<div id="test-float-left"></div>
|
||||
XXXX XXXX
|
||||
XXXX XXXX
|
||||
XXXX XXXX
|
||||
XXXX XXXX
|
||||
XXXX XXXX XXXX XXXX
|
||||
XXXX XXXX XXXX XXXX
|
||||
XXXX XXXX XXXX XXXX
|
||||
XXXX XXXX XXXX XXXX
|
||||
</div>
|
||||
<div class="container" id="failure">
|
||||
XXXX XXXX XXXX XXXX
|
||||
XXXX XXXX XXXX XXXX
|
||||
XXXX XXXX XXXX XXXX
|
||||
XXXX XXXX XXXX XXXX
|
||||
XXXX XXXX XXXX XXXX
|
||||
XXXX XXXX XXXX XXXX
|
||||
</div>
|
||||
<div id="square"></div>
|
||||
|
||||
</body></html>
|
Loading…
Add table
Add a link
Reference in a new issue