Closed Bug 2072947 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62710 - HTML: test negative zero dimension attributes

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
158 Branch
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 -0 and -0.5 parse as 0 rather than being ignored in favor of the natural dimensions.

Follow-up to #61080.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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

GitHub PR Head
GitHub PR Base

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
  • /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

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)
  • /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)
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.