mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add test for #11818
This commit is contained in:
parent
ad4b9aab45
commit
0809809c23
7 changed files with 95 additions and 17 deletions
|
@ -211,8 +211,8 @@ class ServoRefTestExecutor(ProcessTestExecutor):
|
|||
for stylesheet in self.browser.user_stylesheets:
|
||||
command += ["--user-stylesheet", stylesheet]
|
||||
|
||||
for pref in test.environment.get('prefs', {}):
|
||||
command += ["--pref", pref]
|
||||
for pref, value in test.environment.get('prefs', {}).iteritems():
|
||||
command += ["--pref", "%s=%s" % (pref, value)]
|
||||
|
||||
if viewport_size:
|
||||
command += ["--resolution", viewport_size]
|
||||
|
|
|
@ -1344,6 +1344,18 @@
|
|||
"url": "/_mozilla/css/data_img_a.html"
|
||||
}
|
||||
],
|
||||
"css/direction_style_caching.html": [
|
||||
{
|
||||
"path": "css/direction_style_caching.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/direction_style_caching_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/direction_style_caching.html"
|
||||
}
|
||||
],
|
||||
"css/empty_cells_a.html": [
|
||||
{
|
||||
"path": "css/empty_cells_a.html",
|
||||
|
@ -10552,6 +10564,18 @@
|
|||
"url": "/_mozilla/css/data_img_a.html"
|
||||
}
|
||||
],
|
||||
"css/direction_style_caching.html": [
|
||||
{
|
||||
"path": "css/direction_style_caching.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/direction_style_caching_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/direction_style_caching.html"
|
||||
}
|
||||
],
|
||||
"css/empty_cells_a.html": [
|
||||
{
|
||||
"path": "css/empty_cells_a.html",
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
prefs: [layout.threads:1]
|
||||
[direction_style_caching.html]
|
||||
type: reftest
|
28
tests/wpt/mozilla/tests/css/direction_style_caching.html
Normal file
28
tests/wpt/mozilla/tests/css/direction_style_caching.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>Style caching with directions</title>
|
||||
<link rel="match" href="direction_style_caching_ref.html">
|
||||
<style>
|
||||
.wrapper {
|
||||
width: 200px;
|
||||
}
|
||||
p { margin: 0 }
|
||||
.a p, .b p {
|
||||
width: 100px;
|
||||
height: 1px;
|
||||
background: red;
|
||||
}
|
||||
.b {
|
||||
direction: rtl;
|
||||
}
|
||||
</style>
|
||||
<div class=wrapper>
|
||||
<div class=a><p></p></div>
|
||||
<div class=a><p></p></div>
|
||||
<div class=a><p></p></div>
|
||||
<div class=a><p></p></div>
|
||||
<div class=b><p></p></div>
|
||||
<div class=b><p></p></div>
|
||||
<div class=b><p></p></div>
|
||||
<div class=b><p></p></div>
|
||||
</div>
|
19
tests/wpt/mozilla/tests/css/direction_style_caching_ref.html
Normal file
19
tests/wpt/mozilla/tests/css/direction_style_caching_ref.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
.wrapper {
|
||||
width: 200px;
|
||||
}
|
||||
p { margin: 0 }
|
||||
.a p, .b p {
|
||||
width: 100px;
|
||||
height: 4px;
|
||||
background: red;
|
||||
}
|
||||
.b p {
|
||||
margin-left: 100px;
|
||||
}
|
||||
</style>
|
||||
<div class=wrapper>
|
||||
<div class=a><p></p></div>
|
||||
<div class=b><p></p></div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue