Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 81271bfa460b42717ff00896249179b4427716f2
      
https://github.com/WebKit/WebKit/commit/81271bfa460b42717ff00896249179b4427716f2
  Author: Taher Ali <[email protected]>
  Date:   2026-05-01 (Fri, 01 May 2026)

  Changed paths:
    R 
LayoutTests/platform/gtk/svg/as-background-image/svg-as-background-4-expected.png
    R 
LayoutTests/platform/mac-tahoe-wk2-pixel/svg/as-background-image/svg-as-background-4-expected.png
    R 
LayoutTests/platform/mac/svg/as-background-image/svg-as-background-4-expected.png

  Log Message:
  -----------
  svg-as-background-4 pixel expectations are stale after 311723@main
https://bugs.webkit.org/show_bug.cgi?id=313662
rdar://175864899

Reviewed by Rob Buis.

311723@main stopped suppressing the viewBox-derived intrinsic ratio for
SVGs with preserveAspectRatio="none", which exposed a pre-existing
incorrect rendering for SVGs with percentage-only dimensions used as
background images.

Per CSS Images 3 ยง5.2, natural dimensions "are not a function of the
context in which the object is used." SVG percentage dimensions are
context-dependent and do not constitute natural dimensions. When an SVG
has no natural dimensions but has a viewBox, the default sizing algorithm
resolves the size as a contain constraint.

This PR removes stale pixel expectations for svg-as-background-4. The sizing
behavior is covered by WPT background-size-vector-027.html

* 
LayoutTests/platform/gtk/svg/as-background-image/svg-as-background-4-expected.png:
 Removed.
* 
LayoutTests/platform/mac-tahoe-wk2-pixel/svg/as-background-image/svg-as-background-4-expected.png:
 Removed.
* 
LayoutTests/platform/mac/svg/as-background-image/svg-as-background-4-expected.png:
 Removed.

Canonical link: https://commits.webkit.org/312431@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to