Closed Bug 2034373 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 59304 - HTML: correct naturalWidth and naturalHeight for SVG

Categories

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

task

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 59304 into mozilla-central (this bug is closed when the sync is complete).

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

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

HTML: correct naturalWidth and naturalHeight for SVG

The change from the tentative version is that image density does not impact the 300 x 150 fallback so when intrinsic dimensions are missing we use the same values in the API and rendering.

This complements https://github.com/whatwg/html/pull/12382.

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 1 tests and 258 subtests

Status Summary

Firefox

OK : 1
PASS: 200
FAIL: 58

Chrome

OK : 1
PASS: 180
FAIL: 78

Safari

OK : 1
PASS: 128
FAIL: 130

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.html [wpt.fyi]
    • SVG image, no natural dimensions (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, no natural dimensions (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image with width/height attrs, no natural dimensions (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image with width/height attrs, no natural dimensions (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image with width attr, no natural dimensions (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image with width attr, no natural dimensions (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image with height attr, no natural dimensions (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image with height attr, no natural dimensions (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, percengage natural dimensions (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, percengage natural dimensions (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, negative percengage natural dimensions (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, negative percengage natural dimensions (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, with natural width (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • 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: FAIL, Safari: FAIL)
    • 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: FAIL, Safari: FAIL)
    • SVG image, with natural width of 0 (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural height of 0 (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural height of 0 (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural width being negative (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • 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: FAIL)
    • 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: FAIL, Safari: FAIL)
    • SVG image, no natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, negative percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, negative percengage natural dimensions, 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: FAIL)
    • SVG image, with natural width being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural height being negative, and aspect ratio from viewBox (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural height being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, no natural dimensions, viewBox with 0 width/height (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, no natural dimensions, viewBox with 0 width/height (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, no natural dimensions, viewBox with 0 width (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, no natural dimensions, viewBox with 0 width (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, no natural dimensions, viewBox with 0 height (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, no natural dimensions, viewBox with 0 height (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: PASS)
    • SVG image, with natural width, viewBox with 0 width/height (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • 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: FAIL, Safari: FAIL)
    • 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: FAIL, Safari: FAIL)
    • 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: FAIL, Safari: FAIL)
    • 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: FAIL, Safari: FAIL)
    • 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: FAIL, Safari: FAIL)
    • 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 being negative, and aspect ratio from viewBox (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural width and height being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
    • SVG image, with natural width matching default concrete object size (with srcset/2x): FAIL (Chrome: FAIL, Safari: FAIL)
    • 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: FAIL, Safari: FAIL)
    • SVG image, with natural height matching default concrete object size (with srcset/2x) (when not rendered): FAIL (Chrome: FAIL, Safari: FAIL)
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
You need to log in before you can comment on or make changes to this bug.