mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
ol[type=…] and li[type=…] preshints need to be case-sensitive
This commit is contained in:
parent
853b688d0b
commit
7149a6a29d
7 changed files with 53 additions and 19 deletions
|
@ -706,7 +706,10 @@ impl<'le> ::selectors::Element for ServoLayoutElement<'le> {
|
|||
_ => true,
|
||||
}
|
||||
},
|
||||
|
||||
NonTSPseudoClass::ServoCaseSensitiveTypeAttr(ref expected_value) => {
|
||||
self.get_attr_enum(&ns!(), &local_name!("type"))
|
||||
.map_or(false, |attr| attr == expected_value)
|
||||
}
|
||||
NonTSPseudoClass::ReadOnly =>
|
||||
!self.element.get_state_for_layout().contains(pseudo_class.state_flag()),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue