mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Auto merge of #8341 - bholley:state_hint_selector_ordering, r=pcwalton
Fix restyle hints to handle non-last psuedo-selectors, and track pristine state values rather than changesets <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8341) <!-- Reviewable:end -->
This commit is contained in:
commit
65c3185b20
9 changed files with 63 additions and 51 deletions
|
@ -203,7 +203,7 @@ class ServoRefTestExecutor(ProcessTestExecutor):
|
|||
debug_args, command = browser_command(
|
||||
self.binary,
|
||||
[render_arg(self.browser.render_backend), "--hard-fail", "--exit",
|
||||
"-u", "Servo/wptrunner", "-Z", "disable-text-aa",
|
||||
"-u", "Servo/wptrunner", "-Z", "disable-text-aa,load-webfonts-synchronously",
|
||||
"--output=%s" % output_path, full_url],
|
||||
self.debug_info)
|
||||
|
||||
|
|
|
@ -19,11 +19,15 @@ fieldset:enabled div {
|
|||
fieldset:enabled > div {
|
||||
background-color: yellow;
|
||||
}
|
||||
fieldset:enabled ~ div {
|
||||
|
||||
/* Add an unnecessary :first-child to make sure that restyle hints see
|
||||
* non-rightmost pseudo-selectors.
|
||||
* */
|
||||
fieldset:enabled:first-child ~ div {
|
||||
color: pink;
|
||||
background-color: purple;
|
||||
}
|
||||
fieldset:enabled + div {
|
||||
fieldset:enabled:first-child + div {
|
||||
color: brown;
|
||||
background-color: orange;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue