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/style/attr.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/style/attr.rs')
-rw-r--r-- | components/style/attr.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/style/attr.rs b/components/style/attr.rs index d1e97703e5e..535d9109151 100644 --- a/components/style/attr.rs +++ b/components/style/attr.rs @@ -379,6 +379,15 @@ impl ::std::ops::Deref for AttrValue { } } +impl PartialEq<Atom> for AttrValue { + fn eq(&self, other: &Atom) -> bool { + match *self { + AttrValue::Atom(ref value) => value == other, + _ => other == &**self, + } + } +} + /// https://html.spec.whatwg.org/multipage/#rules-for-parsing-non-zero-dimension-values pub fn parse_nonzero_length(value: &str) -> LengthOrPercentageOrAuto { match parse_length(value) { |