mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Update web-platform-tests to revision 66dc9c93f2c8ebd7c8fdc28fae20d92713c97806
This commit is contained in:
parent
e488ea750b
commit
12f4ae132e
1651 changed files with 8123 additions and 14152 deletions
|
@ -12,7 +12,7 @@
|
|||
<style type="text/css">
|
||||
#content {
|
||||
color: transparent;
|
||||
font: 100px Ahem;
|
||||
font: 100px/1 Ahem;
|
||||
}
|
||||
#content::first-line {
|
||||
background-image: url("support/cat.png"); /* 98 w. by 99px h. */
|
||||
|
@ -28,4 +28,4 @@ onload = () => {
|
|||
requestAnimationFrame(() => requestAnimationFrame(takeScreenshot));
|
||||
};
|
||||
</script>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
document.getElementById("test").style.backgroundSize = "15px auto";
|
||||
test(function() {
|
||||
assert_equals(getComputedStyle(document.getElementById("test"), null).getPropertyValue("background-size"),
|
||||
"15px auto", "background-size supporting value");
|
||||
"15px", "background-size supporting value");
|
||||
}, "background-size_length_auto");
|
||||
|
||||
document.getElementById("test").style.backgroundSize = "15px 15px";
|
||||
|
@ -117,7 +117,7 @@
|
|||
document.getElementById("test").style.backgroundSize = "50% auto";
|
||||
test(function() {
|
||||
assert_equals(getComputedStyle(document.getElementById("test"), null).getPropertyValue("background-size"),
|
||||
"50% auto", "background-size supporting value");
|
||||
"50%", "background-size supporting value");
|
||||
}, "background-size_percentage_auto");
|
||||
|
||||
document.getElementById("test").style.backgroundSize = "50% 15px";
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
<!doctype html>
|
||||
<title>CSS Test Reference</title>
|
||||
<style>
|
||||
body { margin: 0 }
|
||||
.first {
|
||||
width: 100px;
|
||||
height: 50px;
|
||||
background: lime;
|
||||
}
|
||||
.space {
|
||||
height: 50px;
|
||||
}
|
||||
.second {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background: lime;
|
||||
}
|
||||
</style>
|
||||
<div class="first"></div>
|
||||
<div class="space"></div>
|
||||
<div class="second"></div>
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<title>CSS Test: background-size: cover with zero-sized background positioning area.</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#valdef-background-size-cover">
|
||||
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/4049">
|
||||
<link rel="help" href=" https://bugzilla.mozilla.org/show_bug.cgi?id=1559094">
|
||||
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
|
||||
<link rel="author" href="https://mozilla.org" title="Mozilla">
|
||||
<link rel="match" href="background-size-cover-003-ref.html">
|
||||
<style>
|
||||
body { margin: 0 }
|
||||
div {
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-position: top left;
|
||||
background-origin: content-box;
|
||||
background-image: url(/images/green-100x50.png);
|
||||
}
|
||||
#test1 {
|
||||
height: 0;
|
||||
width: 100px;
|
||||
padding-bottom: 100px;
|
||||
}
|
||||
|
||||
#test2 {
|
||||
height: 100px;
|
||||
width: 0;
|
||||
padding-right: 100px;
|
||||
}
|
||||
#test3 {
|
||||
height: 0;
|
||||
width: 0;
|
||||
padding-right: 100px;
|
||||
padding-bottom: 100px;
|
||||
}
|
||||
</style>
|
||||
<div id="test1"></div>
|
||||
<div id="test2"></div>
|
||||
<div id="test3"></div>
|
|
@ -14,8 +14,8 @@
|
|||
<script>
|
||||
test_computed_value("background-image", "none");
|
||||
|
||||
test_computed_value("background-image", 'url("http://www.example.com/")');
|
||||
test_computed_value("background-image", 'none, url("http://www.example.com/")');
|
||||
test_computed_value("background-image", 'url("http://{{host}}/")');
|
||||
test_computed_value("background-image", 'none, url("http://{{host}}/")');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -4,7 +4,7 @@
|
|||
<style type="text/css">
|
||||
#content {
|
||||
color: transparent;
|
||||
font: 100px Ahem;
|
||||
font: 100px/1 Ahem;
|
||||
background-image: url("../support/cat.png"); /* 98 w. by 99px h. */
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue