Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #12839 - notriddle:11818_sequential_layout_bug, r=<try>
Fix a cached style cascade bug that only manifested in sequential mode When copying cached styles, keep the `writing_mode` up to date. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11818 (github issue number if applicable). - [...] There are tests for these changes NOTE TO THE REVIEWER: This PR contains a test that works, but I need to run the test in sequential mode (couldn't figure out how to make it show up in parallel mode). What do I need to do to make the test harness pass `-y1` to Servo? <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12839) <!-- Reviewable:end -->
- Loading branch information
Showing
9 changed files
with
97 additions
and
18 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
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> |