mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
Move clip_a.html to wpt reftests.
This commit is contained in:
parent
468df737d2
commit
cee4879dd1
4 changed files with 25 additions and 1 deletions
|
@ -803,6 +803,18 @@
|
|||
"url": "/_mozilla/css/class-namespaces.html"
|
||||
}
|
||||
],
|
||||
"css/clip_a.html": [
|
||||
{
|
||||
"path": "css/clip_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/clip_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/clip_a.html"
|
||||
}
|
||||
],
|
||||
"css/counters_nested_a.html": [
|
||||
{
|
||||
"path": "css/counters_nested_a.html",
|
||||
|
@ -5076,6 +5088,18 @@
|
|||
"url": "/_mozilla/css/class-namespaces.html"
|
||||
}
|
||||
],
|
||||
"css/clip_a.html": [
|
||||
{
|
||||
"path": "css/clip_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/clip_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/clip_a.html"
|
||||
}
|
||||
],
|
||||
"css/counters_nested_a.html": [
|
||||
{
|
||||
"path": "css/counters_nested_a.html",
|
||||
|
|
53
tests/wpt/mozilla/tests/css/clip_a.html
Normal file
53
tests/wpt/mozilla/tests/css/clip_a.html
Normal file
|
@ -0,0 +1,53 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='clip_ref.html'>
|
||||
<!-- Tests that various `clip` values per CSS 2.1 work. -->
|
||||
<style>
|
||||
section {
|
||||
position: absolute;
|
||||
padding: 32px;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
background: green;
|
||||
border: solid 32px red;
|
||||
}
|
||||
section:before {
|
||||
content: "";
|
||||
display: block;
|
||||
padding: 0;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
background: blue;
|
||||
}
|
||||
#a {
|
||||
top: 0;
|
||||
left: 0;
|
||||
clip: rect(auto, auto, auto, auto);
|
||||
}
|
||||
#b {
|
||||
top: 192px;
|
||||
left: 0;
|
||||
clip: rect(32px, auto, auto, 128px);
|
||||
}
|
||||
#c {
|
||||
top: 0;
|
||||
left: 192px;
|
||||
clip: rect(32px, 128px, 64px, 0);
|
||||
}
|
||||
#d {
|
||||
top: 192px;
|
||||
left: 192px;
|
||||
clip: rect(64px, 0, 64px, 0);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section id=a></section>
|
||||
<section id=b></section>
|
||||
<section id=c></section>
|
||||
<section id=d></section>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
70
tests/wpt/mozilla/tests/css/clip_ref.html
Normal file
70
tests/wpt/mozilla/tests/css/clip_ref.html
Normal file
|
@ -0,0 +1,70 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Tests that various `clip` values per CSS 2.1 work. -->
|
||||
<style>
|
||||
section {
|
||||
position: absolute;
|
||||
}
|
||||
#a {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 192px;
|
||||
height: 192px;
|
||||
background: red;
|
||||
}
|
||||
#b {
|
||||
top: 32px;
|
||||
left: 32px;
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
background: green;
|
||||
}
|
||||
#c {
|
||||
top: 64px;
|
||||
left: 64px;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
background: blue;
|
||||
}
|
||||
#d {
|
||||
top: 32px;
|
||||
left: 192px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background: red;
|
||||
}
|
||||
#e {
|
||||
top: 32px;
|
||||
left: 224px;
|
||||
width: 96px;
|
||||
height: 32px;
|
||||
background: green;
|
||||
}
|
||||
#f {
|
||||
top: 224px;
|
||||
left: 128px;
|
||||
width: 64px;
|
||||
height: 160px;
|
||||
background: red;
|
||||
}
|
||||
#g {
|
||||
top: 224px;
|
||||
left: 128px;
|
||||
width: 32px;
|
||||
height: 128px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section id=a></section>
|
||||
<section id=b></section>
|
||||
<section id=c></section>
|
||||
<section id=d></section>
|
||||
<section id=e></section>
|
||||
<section id=f></section>
|
||||
<section id=g></section>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue