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/htmltableelement.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/htmltableelement.rs')
-rw-r--r-- | components/script/dom/htmltableelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmltableelement.rs b/components/script/dom/htmltableelement.rs index b13113042fa..c835413c987 100644 --- a/components/script/dom/htmltableelement.rs +++ b/components/script/dom/htmltableelement.rs @@ -521,7 +521,7 @@ impl VirtualMethods for HTMLTableElement { match *local_name { local_name!("border") => AttrValue::from_u32(value.into(), 1), local_name!("width") => AttrValue::from_nonzero_dimension(value.into()), - local_name!("height") => AttrValue::from_nonzero_dimension(value.into()), + local_name!("height") => AttrValue::from_dimension(value.into()), local_name!("bgcolor") => AttrValue::from_legacy_color(value.into()), _ => self .super_type() |