mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
Move transform_optimization.html to wpt reftests.
This commit is contained in:
parent
9216468a86
commit
5df2375d35
4 changed files with 25 additions and 1 deletions
|
@ -603,6 +603,18 @@
|
|||
"url": "/_mozilla/css/stacking_context_rtl.html"
|
||||
}
|
||||
],
|
||||
"css/transform_optimization.html": [
|
||||
{
|
||||
"path": "css/transform_optimization.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/transform_optimization_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/transform_optimization.html"
|
||||
}
|
||||
],
|
||||
"css/transform_simple_a.html": [
|
||||
{
|
||||
"path": "css/transform_simple_a.html",
|
||||
|
@ -2144,6 +2156,18 @@
|
|||
"url": "/_mozilla/css/stacking_context_rtl.html"
|
||||
}
|
||||
],
|
||||
"css/transform_optimization.html": [
|
||||
{
|
||||
"path": "css/transform_optimization.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/transform_optimization_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/transform_optimization.html"
|
||||
}
|
||||
],
|
||||
"css/transform_simple_a.html": [
|
||||
{
|
||||
"path": "css/transform_simple_a.html",
|
||||
|
|
30
tests/wpt/mozilla/tests/css/transform_optimization.html
Normal file
30
tests/wpt/mozilla/tests/css/transform_optimization.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='transform_optimization_ref.html'>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
#outer {
|
||||
position: absolute;
|
||||
background-color: transparent;
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
transform: translateX(300px);
|
||||
}
|
||||
#inner {
|
||||
position: absolute;
|
||||
width: 400px;
|
||||
height: 100px;
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="outer">
|
||||
<div id="inner">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
23
tests/wpt/mozilla/tests/css/transform_optimization_ref.html
Normal file
23
tests/wpt/mozilla/tests/css/transform_optimization_ref.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
#inner {
|
||||
position: absolute;
|
||||
left: 300px;
|
||||
width: 400px;
|
||||
height: 100px;
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="outer">
|
||||
<div id="inner">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue