Skip to content

review

368925a
Select commit
Loading
Failed to load commit list.
Merged

HTML: correct naturalWidth and naturalHeight for SVG #59304

review
368925a
Select commit
Loading
Failed to load commit list.
Community-TC Integration / wpt-chrome-dev-results-without-changes succeeded Apr 22, 2026 in 4m 11s

Community-TC (pull_request)

Collect results for all tests affected by a pull request in chrome but without the changes in the PR.

Details

View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster

Task Status

Started: 2026-04-22T15:46:44.929Z
Resolved: 2026-04-22T15:50:12.677Z
Task Execution Time: 3 minutes, 27 seconds, 748 milliseconds
Task Status: completed
Reason Resolved: completed
TaskId: eaflMCxJQnqcMbJvwBYyvg
RunId: 0

Artifacts

- public/logs/live_backing.log
- public/logs/live.log
- public/results/checkrun.md
- public/results/wpt_report.json.gz
- public/results/wpt_screenshot.txt.gz

WPT Command: python3 ./wpt run --channel=dev --no-fail-on-unexpected --log-wptreport=../artifacts/wpt_report.json --log-wptscreenshot=../artifacts/wpt_screenshot.txt --affected task_head --log-mach-level=info --log-mach=- -y --no-pause --no-restart-on-unexpected --install-fonts --verify-log-full --no-headless --enable-swiftshader --install-browser --install-webdriver chrome


[taskcluster 2026-04-22 15:46:45.001Z] Task ID: eaflMCxJQnqcMbJvwBYyvg
[taskcluster 2026-04-22 15:46:45.002Z] Worker ID: 3087096317890352086
[taskcluster 2026-04-22 15:46:45.002Z] Worker Group: us-east4-b
[taskcluster 2026-04-22 15:46:45.002Z] Worker Node Type: projects/757942385826/machineTypes/n2-standard-4
[taskcluster 2026-04-22 15:46:45.002Z] Worker Pool: proj-wpt/ci
[taskcluster 2026-04-22 15:46:45.002Z] Worker Version: 46.1.0
[taskcluster 2026-04-22 15:46:45.002Z] Public IP: 34.48.29.134
[taskcluster 2026-04-22 15:46:45.002Z] Hostname: proj-wpt-ci-jexdzhdxr06de1eydlupiq

ac811f28856d - Started downloading
8f84a9f2102e - Started downloading
ac811f28856d - Downloaded in 0.005 seconds
40516d781e70 - Started downloading
44ebbf800033 - Started downloading
44ebbf800033 - Downloaded in 0.008 seconds
a8884b21e40e - Started downloading
8f84a9f2102e - Downloaded in 0.181 seconds
4f4fb700ef54 - Started downloading
4f4fb700ef54 - Downloaded in 0.002 seconds
79c347416ee8 - Started downloading

...(819 lines hidden)...

  FAIL SVG image, with natural width being negative, and aspect ratio from viewBox - assert_equals: naturalWidth expected 300 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:329:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:326:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width being negative, and aspect ratio from viewBox (when not rendered) - assert_equals: naturalWidth when not rendered expected 300 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:361:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:348:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural height being negative, and aspect ratio from viewBox - assert_equals: naturalWidth expected 300 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:329:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:326:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural height being negative, and aspect ratio from viewBox (when not rendered) - assert_equals: naturalWidth when not rendered expected 300 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:361:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:348:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width and height being negative, and aspect ratio from viewBox - assert_equals: naturalWidth expected 300 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:329:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:326:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width and height being negative, and aspect ratio from viewBox (when not rendered) - assert_equals: naturalWidth when not rendered expected 300 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:361:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:348:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width being negative (with srcset/1x) - assert_equals: naturalWidth expected 300 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:329:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:326:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width being negative (with srcset/1x) (when not rendered) - assert_equals: naturalWidth when not rendered expected 300 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:361:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:348:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural height being negative (with srcset/1x) - assert_equals: naturalHeight expected 150 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:330:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:326:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural height being negative (with srcset/1x) (when not rendered) - assert_equals: naturalHeight when not rendered expected 150 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:363:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:348:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width being negative, and aspect ratio from viewBox (with srcset/1x) - assert_equals: naturalWidth expected 300 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:329:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:326:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width being negative, and aspect ratio from viewBox (with srcset/1x) (when not rendered) - assert_equals: naturalWidth when not rendered expected 300 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:361:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:348:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural height being negative, and aspect ratio from viewBox (with srcset/1x) - assert_equals: naturalWidth expected 300 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:329:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:326:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural height being negative, and aspect ratio from viewBox (with srcset/1x) (when not rendered) - assert_equals: naturalWidth when not rendered expected 300 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:361:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:348:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width and height being negative, and aspect ratio from viewBox (with srcset/1x) - assert_equals: naturalWidth expected 300 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:329:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:326:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width and height being negative, and aspect ratio from viewBox (with srcset/1x) (when not rendered) - assert_equals: naturalWidth when not rendered expected 300 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:361:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:348:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width being negative (with srcset/2x) - assert_equals: naturalWidth expected 150 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:329:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:326:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width being negative (with srcset/2x) (when not rendered) - assert_equals: naturalWidth when not rendered expected 150 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:361:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:348:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural height being negative (with srcset/2x) - assert_equals: naturalHeight expected 75 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:330:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:326:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural height being negative (with srcset/2x) (when not rendered) - assert_equals: naturalHeight when not rendered expected 75 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:363:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:348:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width being negative, and aspect ratio from viewBox (with srcset/2x) - assert_equals: naturalWidth expected 150 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:329:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:326:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered) - assert_equals: naturalWidth when not rendered expected 150 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:361:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:348:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural height being negative, and aspect ratio from viewBox (with srcset/2x) - assert_equals: naturalWidth expected 150 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:329:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:326:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural height being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered) - assert_equals: naturalWidth when not rendered expected 150 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:361:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:348:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width and height being negative, and aspect ratio from viewBox (with srcset/2x) - assert_equals: naturalWidth expected 150 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:329:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:326:5
    at Array.forEach (<anonymous>)
  FAIL SVG image, with natural width and height being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered) - assert_equals: naturalWidth when not rendered expected 150 but got 0
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:361:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.tentative.html:348:5
    at Array.forEach (<anonymous>)
/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight.html
  FAIL HTMLImageElement.prototype.naturalWidth/naturalHeight, SVG image, no natural dimensions - assert_equals: naturalWidth expected 0 but got 300
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight.html:36:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight.html:33:5
    at Array.forEach (<anonymous>)
  FAIL HTMLImageElement.prototype.naturalWidth/naturalHeight, SVG image, width in pixels; height unspecified - assert_equals: naturalHeight expected 0 but got 150
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight.html:37:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight.html:33:5
    at Array.forEach (<anonymous>)
  FAIL HTMLImageElement.prototype.naturalWidth/naturalHeight, SVG image, width in pixels; percentage height - assert_equals: naturalHeight expected 0 but got 150
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight.html:37:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight.html:33:5
    at Array.forEach (<anonymous>)
  FAIL HTMLImageElement.prototype.naturalWidth/naturalHeight, SVG image, width/height unspecified; viewBox - assert_equals: naturalWidth expected 0 but got 200
    at Test.<anonymous> (http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight.html:36:7)
    at Test.step (http://web-platform.test:8000/resources/testharness.js:2869:25)
    at test (http://web-platform.test:8000/resources/testharness.js:633:30)
    at http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight.html:33:5
    at Array.forEach (<anonymous>)
 0:34.06 INFO Got 2 unexpected results, with 0 unexpected passes
 0:34.06 wptserve INFO Stopped http server on 127.0.0.1:8001
 0:34.07 wptserve INFO Stopped http server on 127.0.0.1:8000
 0:34.07 wptserve INFO Stopped http server on 127.0.0.1:8002
 0:34.07 wptserve INFO Stopped http server on 127.0.0.1:8444
 0:34.08 wptserve INFO Stopped http server on 127.0.0.1:8445
 0:34.08 wptserve INFO Stopped http server on 127.0.0.1:8003
 0:34.08 wptserve INFO Stopped http server on 127.0.0.1:8446
 0:34.08 wptserve INFO Stopped http server on 127.0.0.1:8443
 0:34.08 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
 0:34.08 wptserve INFO Stopped http server on 127.0.0.1:9000
 0:34.46 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
 0:34.46 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
 0:34.51 INFO Removed font: Ahem.ttf
 0:34.53 INFO Closing logging queue
 0:34.53 INFO queue closed
 0:34.53 INFO Tolerating 2 unexpected results
[taskcluster 2026-04-22 15:50:10.926Z] === Task Finished ===
[taskcluster 2026-04-22 15:50:11.908Z] Successful task run with exit code: 0 completed in 206.909 seconds