servo/components
bors-servo 7a7bdf51ad Auto merge of #11726 - sjmelia:7720_add_target_selector, r=mbrubeck
Issue 7720: Add target selector and update when scrolling to fragment

<!-- Please describe your changes on the following line: -->
Add the target pseudo selector and set/unset it during scrolling to fragment. This change is not complete as no repaint is triggered after the selector is added - it will only take effect after a repaint is triggered by e.g. hovering over another element. (See manual test)

I would like some help because i'm not sure how to resolve this; I can only think to call window.reflow.

I added a manual test case, don't think this counts really! I think the applicable automated test is in /tests/wpt/web-platform-tests/dom/nodes/Element-matches.html but it currently fails, I think due to the above.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #7720  (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11726)
<!-- Reviewable:end -->
2016-08-03 14:53:30 -05:00
..
canvas Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
canvas_traits Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
compositing Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
constellation Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
devtools Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
devtools_traits Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
gfx Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
gfx_traits Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
layout Auto merge of #12330 - stshine:flexitem, r=pcwalton 2016-08-03 09:24:31 -05:00
layout_thread Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
layout_traits Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
msg Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
net Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
net_traits Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
plugins Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
profile Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
profile_traits Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
range Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
script Auto merge of #11726 - sjmelia:7720_add_target_selector, r=mbrubeck 2016-08-03 14:53:30 -05:00
script_layout_interface Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
script_traits Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
servo Update WR to fix extra printlns. 2016-08-04 01:45:50 +10:00
style Issue 7720: Add target selector and update when scrolling to fragment 2016-08-03 13:23:10 +01:00
style_traits All our Cargo.toml files should contain an MPL-2.0 license field. 2016-07-14 10:26:34 -05:00
util Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00
webdriver_server Update cargo.lock for wr2, pin ipc-channel. 2016-08-03 10:44:10 +02:00