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:
bors-servo 2015-11-07 09:53:19 +05:30
commit 65c3185b20
9 changed files with 63 additions and 51 deletions

View file

@ -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)

View file

@ -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;
}