mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
script: Update rust-selectors
to get :active
support.
I couldn't find the place in the spec where the precise behavior of `:active` is described, so I don't set it. However, all the machinery to keep track of its status is in place. Improves YouTube.
This commit is contained in:
parent
f4b526cfb4
commit
6567c269cf
6 changed files with 35 additions and 3 deletions
|
@ -1754,6 +1754,10 @@ impl<'a> ::selectors::Element for Root<Element> {
|
|||
let node = NodeCast::from_ref(&**self);
|
||||
node.get_hover_state()
|
||||
}
|
||||
fn get_active_state(&self) -> bool {
|
||||
let node = NodeCast::from_ref(&**self);
|
||||
node.get_active_state()
|
||||
}
|
||||
fn get_focus_state(&self) -> bool {
|
||||
// TODO: Also check whether the top-level browsing context has the system focus,
|
||||
// and whether this element is a browsing context container.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue