diff options
author | Oriol Brufau <obrufau@igalia.com> | 2024-09-12 17:10:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-12 15:10:11 +0000 |
commit | b048bf80a40afe275d1052e57ba1bcd7701db03c (patch) | |
tree | a3d6d2f4ab05584abb7c218605322a8921d44cf1 /components/script/dom/htmltablerowelement.rs | |
parent | 4839cdf1764eac2b520692d2b9c3da002b509d01 (diff) | |
download | servo-b048bf80a40afe275d1052e57ba1bcd7701db03c.tar.gz servo-b048bf80a40afe275d1052e57ba1bcd7701db03c.zip |
Accept zero values on some `width`/`height` attributes on table elements (#33425)
We were incorrectly using `AttrValue::from_nonzero_dimension` to parse
some attributes, instead of `AttrValue::from_dimension`.
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/dom/htmltablerowelement.rs')
-rw-r--r-- | components/script/dom/htmltablerowelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmltablerowelement.rs b/components/script/dom/htmltablerowelement.rs index 6179c1fe063..0d0d6610ce5 100644 --- a/components/script/dom/htmltablerowelement.rs +++ b/components/script/dom/htmltablerowelement.rs @@ -182,7 +182,7 @@ impl VirtualMethods for HTMLTableRowElement { fn parse_plain_attribute(&self, local_name: &LocalName, value: DOMString) -> AttrValue { match *local_name { local_name!("bgcolor") => AttrValue::from_legacy_color(value.into()), - local_name!("height") => AttrValue::from_nonzero_dimension(value.into()), + local_name!("height") => AttrValue::from_dimension(value.into()), _ => self .super_type() .unwrap() |