mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16: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
|
@ -0,0 +1,68 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Test: Background Intrinsic Sizes: Intrinsic Width and Height (Raster)</title>
|
||||
<link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background-properties">
|
||||
<link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-size">
|
||||
<link rel="match" href="reference/background-intrinsic-ref.htm">
|
||||
<meta name="flags" content="svg">
|
||||
<meta name="assert" content="A background with an intrinsic width and height is drawn at that size.">
|
||||
<style type="text/css">
|
||||
/* Setup. Use 5:6 ratio because it's weird and unlikely to be hard-coded anywhere. */
|
||||
div {
|
||||
position: relative;
|
||||
}
|
||||
.cover, .limit {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
margin: 0.5em;
|
||||
background: green; /* Used to match reference; remove for debugging. */
|
||||
}
|
||||
.control {
|
||||
position: absolute;
|
||||
top: 10px; bottom: 10px;
|
||||
left: 10px; right: 10px;
|
||||
}
|
||||
.cover .control {
|
||||
background: red;
|
||||
}
|
||||
.limit .control {
|
||||
background: green;
|
||||
}
|
||||
.test {
|
||||
/* 80x100 bgpos area */
|
||||
height: 80px;
|
||||
width: 60px;
|
||||
padding: 10px;
|
||||
border: 10px solid transparent;
|
||||
}
|
||||
|
||||
/* Test */
|
||||
.cover .test {
|
||||
background: no-repeat url(support/green-portrait.png);
|
||||
}
|
||||
.limit .test {
|
||||
background: no-repeat url(support/red-portrait.png);
|
||||
}
|
||||
.control {
|
||||
width: 40px;
|
||||
height: 60px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>There must be two green boxes below and no red.</p>
|
||||
|
||||
<div class="cover">
|
||||
<div class="control"></div>
|
||||
<div class="test"></div>
|
||||
</div>
|
||||
|
||||
<div class="limit">
|
||||
<div class="test"></div>
|
||||
<div class="control"></div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue