mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +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
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue