aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2024-09-12 17:10:11 +0200
committerGitHub <noreply@github.com>2024-09-12 15:10:11 +0000
commitb048bf80a40afe275d1052e57ba1bcd7701db03c (patch)
treea3d6d2f4ab05584abb7c218605322a8921d44cf1 /tests
parent4839cdf1764eac2b520692d2b9c3da002b509d01 (diff)
downloadservo-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 'tests')
-rw-r--r--tests/wpt/meta/html/rendering/dimension-attributes.html.ini27
-rw-r--r--tests/wpt/meta/html/rendering/non-replaced-elements/tables/table-column-width.html.ini2
-rw-r--r--tests/wpt/meta/html/rendering/non-replaced-elements/tables/table-row-height.html.ini2
3 files changed, 0 insertions, 31 deletions
diff --git a/tests/wpt/meta/html/rendering/dimension-attributes.html.ini b/tests/wpt/meta/html/rendering/dimension-attributes.html.ini
index f3eaf8cdf25..77e01e40099 100644
--- a/tests/wpt/meta/html/rendering/dimension-attributes.html.ini
+++ b/tests/wpt/meta/html/rendering/dimension-attributes.html.ini
@@ -1702,30 +1702,3 @@
[<source height="0px"> mapping to <img> height property]
expected: FAIL
-
- [<table height="0"> mapping to <table> height property]
- expected: FAIL
-
- [<table height="0%"> mapping to <table> height property]
- expected: FAIL
-
- [<table height="0px"> mapping to <table> height property]
- expected: FAIL
-
- [<tr height="0"> mapping to <tr> height property]
- expected: FAIL
-
- [<tr height="0%"> mapping to <tr> height property]
- expected: FAIL
-
- [<tr height="0px"> mapping to <tr> height property]
- expected: FAIL
-
- [<col width="0"> mapping to <col> width property]
- expected: FAIL
-
- [<col width="0%"> mapping to <col> width property]
- expected: FAIL
-
- [<col width="0px"> mapping to <col> width property]
- expected: FAIL
diff --git a/tests/wpt/meta/html/rendering/non-replaced-elements/tables/table-column-width.html.ini b/tests/wpt/meta/html/rendering/non-replaced-elements/tables/table-column-width.html.ini
deleted file mode 100644
index 751d06fa211..00000000000
--- a/tests/wpt/meta/html/rendering/non-replaced-elements/tables/table-column-width.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[table-column-width.html]
- expected: FAIL
diff --git a/tests/wpt/meta/html/rendering/non-replaced-elements/tables/table-row-height.html.ini b/tests/wpt/meta/html/rendering/non-replaced-elements/tables/table-row-height.html.ini
deleted file mode 100644
index cf21f0ef4ff..00000000000
--- a/tests/wpt/meta/html/rendering/non-replaced-elements/tables/table-row-height.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[table-row-height.html]
- expected: FAIL