Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
95 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
prefs: [layout.threads:1] | ||
[direction_style_caching.html] | ||
type: reftest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 changes: 19 additions & 0 deletions
19
tests/wpt/mozilla/tests/css/direction_style_caching_ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |