[wpt-sync] Sync PR 62710 - HTML: test negative zero dimension attributes
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 62710 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62710
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
HTML: test negative zero dimension attributes
The rules for parsing non-negative integers run the rules for parsing integers and then reject the result only if it is less than zero. Negative zero is not less than zero, so
-0and-0.5parse as 0 rather than being ignored in favor of the natural dimensions.Follow-up to #61080.
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=93324
| Assignee | ||
Comment 2•2 months ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 32 subtests
Status Summary
Firefox
OK : 2
PASS: 36
FAIL: 13
Chrome
OK : 2
PASS: 44
FAIL: 5
Safari
OK : 2
PASS: 43
FAIL: 6
Links
Details
Firefox-only Failures
- /html/semantics/embedded-content/the-img-element/width-height-attribute-parsing.html [wpt.fyi]
- width and height attribute value "+10":
FAIL - width and height attribute value "50%":
FAIL - width and height attribute value "1.9":
FAIL - width and height attribute value "0.5":
FAIL - width and height attribute value "-0":
FAIL - width and height attribute value "-0.5":
FAIL
- width and height attribute value "+10":
- /html/semantics/forms/the-input-element/image-width-height.html [wpt.fyi]
- width and height attribute value "+10" when not rendered:
FAIL - width and height attribute value "50%" when not rendered:
FAIL - width and height attribute value "1.9" when not rendered:
FAIL - width and height attribute value "0.5" when not rendered:
FAIL - width and height attribute value "-0" when not rendered:
FAIL - width and height attribute value "-0.5" when not rendered:
FAIL
- width and height attribute value "+10" when not rendered:
New Tests That Don't Pass
- /html/semantics/embedded-content/the-img-element/width-height-attribute-parsing.html [wpt.fyi]
- width and height attribute value "+10":
FAIL(Chrome:PASS, Safari:PASS) - width and height attribute value "50%":
FAIL(Chrome:PASS, Safari:PASS) - width and height attribute value "1.9":
FAIL(Chrome:PASS, Safari:PASS) - width and height attribute value "0.5":
FAIL(Chrome:PASS, Safari:PASS) - width and height attribute value "-0":
FAIL(Chrome:PASS, Safari:PASS) - width and height attribute value "-0.5":
FAIL(Chrome:PASS, Safari:PASS) - unparseable width attribute falls back to the density-corrected natural width:
FAIL(Chrome:FAIL, Safari:FAIL)
- width and height attribute value "+10":
- /html/semantics/forms/the-input-element/image-width-height.html [wpt.fyi]
- width and height attribute value "+10" when not rendered:
FAIL(Chrome:PASS, Safari:PASS) - width and height attribute value "50%" when not rendered:
FAIL(Chrome:PASS, Safari:PASS) - width and height attribute value "1.9" when not rendered:
FAIL(Chrome:PASS, Safari:PASS) - width and height attribute value "0.5" when not rendered:
FAIL(Chrome:PASS, Safari:PASS) - width and height attribute value "-0" when not rendered:
FAIL(Chrome:PASS, Safari:PASS) - width and height attribute value "-0.5" when not rendered:
FAIL(Chrome:PASS, Safari:PASS)
- width and height attribute value "+10" when not rendered:
Comment 4•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e95a5c3b5fa6
https://hg.mozilla.org/mozilla-central/rev/d14a1bb154cc
Description
•