diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-05-18 10:32:26 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-05-18 17:13:18 +0200 |
commit | 7149a6a29de6d1c351eedf1404369aa5f9efbd09 (patch) | |
tree | 5161224c61d7d107be3c072622bd6e8dbb282691 /components/script/layout_wrapper.rs | |
parent | 853b688d0b1e5caff55685ef0cb029b3ebe151ed (diff) | |
download | servo-7149a6a29de6d1c351eedf1404369aa5f9efbd09.tar.gz servo-7149a6a29de6d1c351eedf1404369aa5f9efbd09.zip |
ol[type=…] and li[type=…] preshints need to be case-sensitive
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r-- | components/script/layout_wrapper.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs index 0e9dffd28ab..62e5158f321 100644 --- a/components/script/layout_wrapper.rs +++ b/components/script/layout_wrapper.rs @@ -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()), |