Closed Bug 2052766 Opened 4 months ago Closed 2 months ago

[wpt-sync] Sync PR 61080 - HTML: img width/height when not rendered are density-corrected

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 61080 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/61080
Details from upstream follow.

Anne van Kesteren <annevk@annevk.nl> wrote:

HTML: img width/height when not rendered are density-corrected

An available img that is not being rendered reports its density-corrected natural width and height (matching naturalWidth/naturalHeight), per the current specification; the width/height content attributes and rendered size do not apply.

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 3 tests and 29 subtests

Status Summary

Firefox

OK : 3
PASS: 228
FAIL: 73

Chrome

OK : 3
PASS: 248
FAIL: 53

Safari

OK : 3
PASS: 277
FAIL: 24

Links

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

  • /html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.html [wpt.fyi]
    • SVG image, no natural dimensions (with srcset/2x): FAIL
    • SVG image, no natural dimensions (with srcset/2x) (when not rendered): FAIL
    • SVG image with width/height attrs, no natural dimensions (with srcset/2x): FAIL
    • SVG image with width/height attrs, no natural dimensions (with srcset/2x) (when not rendered): FAIL
    • SVG image with width attr, no natural dimensions (with srcset/2x): FAIL
    • SVG image with width attr, no natural dimensions (with srcset/2x) (when not rendered): FAIL
    • SVG image with height attr, no natural dimensions (with srcset/2x): FAIL
    • SVG image with height attr, no natural dimensions (with srcset/2x) (when not rendered): FAIL
    • SVG image, percengage natural dimensions (with srcset/2x): FAIL
    • SVG image, percengage natural dimensions (with srcset/2x) (when not rendered): FAIL
    • SVG image, negative percengage natural dimensions (with srcset/2x): FAIL
    • SVG image, negative percengage natural dimensions (with srcset/2x) (when not rendered): FAIL
    • SVG image, with natural width (with srcset/2x): FAIL
    • SVG image, with natural height (with srcset/2x): FAIL
    • SVG image, with natural width of 0 (with srcset/2x): FAIL
    • SVG image, with natural width of 0 (with srcset/2x) (when not rendered): FAIL
    • SVG image, with natural height of 0 (with srcset/2x): FAIL
    • SVG image, with natural height of 0 (with srcset/2x) (when not rendered): FAIL
    • SVG image, no natural dimensions, and aspect ratio from viewBox (with srcset/2x): FAIL
    • SVG image, no natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL
    • SVG image, percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x): FAIL
    • SVG image, percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL
    • SVG image, negative percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x): FAIL
    • SVG image, negative percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL
    • SVG image, no natural dimensions, viewBox with 0 width/height (with srcset/2x): FAIL
    • SVG image, no natural dimensions, viewBox with 0 width/height (with srcset/2x) (when not rendered): FAIL
    • SVG image, no natural dimensions, viewBox with 0 width (with srcset/2x): FAIL
    • SVG image, no natural dimensions, viewBox with 0 width (with srcset/2x) (when not rendered): FAIL
    • SVG image, no natural dimensions, viewBox with 0 height (with srcset/2x): FAIL
    • SVG image, no natural dimensions, viewBox with 0 height (with srcset/2x) (when not rendered): FAIL
    • SVG image, with natural width, viewBox with 0 width/height (with srcset/2x): FAIL
    • SVG image, with natural width, viewBox with 0 width (with srcset/2x): FAIL
    • SVG image, with natural width, viewBox with 0 height (with srcset/2x): FAIL
    • SVG image, with natural height, viewBox with 0 width/height (with srcset/2x): FAIL
    • SVG image, with natural height, viewBox with 0 width (with srcset/2x): FAIL
    • SVG image, with natural height, viewBox with 0 height (with srcset/2x): FAIL
    • SVG image, with natural width matching default concrete object size (with srcset/2x): FAIL
    • SVG image, with natural height matching default concrete object size (with srcset/2x): FAIL
  • /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
  • /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

New Tests That Don't Pass

  • /html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.html [wpt.fyi]
    • raster image (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, no natural dimensions (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, no natural dimensions (with srcset/2x) (when not rendered): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image with width/height attrs, no natural dimensions (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image with width/height attrs, no natural dimensions (with srcset/2x) (when not rendered): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image with width attr, no natural dimensions (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image with width attr, no natural dimensions (with srcset/2x) (when not rendered): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image with height attr, no natural dimensions (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image with height attr, no natural dimensions (with srcset/2x) (when not rendered): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, percengage natural dimensions (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, percengage natural dimensions (with srcset/2x) (when not rendered): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, negative percengage natural dimensions (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, negative percengage natural dimensions (with srcset/2x) (when not rendered): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural width (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural width (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural height (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural height (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural width of 0 (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural width of 0 (with srcset/2x) (when not rendered): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural height of 0 (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural height of 0 (with srcset/2x) (when not rendered): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural width being negative (with srcset/2x): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, with natural width being negative (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, with natural height being negative (with srcset/2x): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, with natural height being negative (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, no natural dimensions, and aspect ratio from viewBox (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, no natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, negative percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, negative percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural width, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural height, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural width being negative, and aspect ratio from viewBox (with srcset/2x): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, with natural width being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, with natural height being negative, and aspect ratio from viewBox (with srcset/2x): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, with natural height being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, no natural dimensions, viewBox with 0 width/height (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, no natural dimensions, viewBox with 0 width/height (with srcset/2x) (when not rendered): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, no natural dimensions, viewBox with 0 width (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, no natural dimensions, viewBox with 0 width (with srcset/2x) (when not rendered): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, no natural dimensions, viewBox with 0 height (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, no natural dimensions, viewBox with 0 height (with srcset/2x) (when not rendered): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural width, viewBox with 0 width/height (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural width, viewBox with 0 width/height (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural width, viewBox with 0 width (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural width, viewBox with 0 width (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural width, viewBox with 0 height (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural width, viewBox with 0 height (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural height, viewBox with 0 width/height (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural height, viewBox with 0 width/height (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural height, viewBox with 0 width (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural height, viewBox with 0 width (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural height, viewBox with 0 height (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural height, viewBox with 0 height (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural width and height (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural width and height, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural width and height being negative, and aspect ratio from viewBox (with srcset/2x): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, with natural width and height being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, with natural width matching default concrete object size (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural width matching default concrete object size (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural height matching default concrete object size (with srcset/2x): FAIL (Chrome: PASS, Safari: PASS)
    • SVG image, with natural height matching default concrete object size (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural width matching default concrete object size, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural height matching default concrete object size, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural width and height matching default concrete object size (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
  • /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)
    • 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)
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.