Bug 215531

Summary: background-size: cover is wrong for abnormally large/thin SVG images
Product: WebKit Reporter: Dean Jackson <dino>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=206753

Description Dean Jackson 2020-08-14 18:36:13 PDT
See the results of the following tests:

  imported/w3c/web-platform-tests/css/css-backgrounds/background-size/vector/tall--contain--height.html [ ImageOnlyFailure ]
  imported/w3c/web-platform-tests/css/css-backgrounds/background-size/vector/tall--contain--width.html [ ImageOnlyFailure ]
  imported/w3c/web-platform-tests/css/css-backgrounds/background-size/vector/wide--contain--height.html [ ImageOnlyFailure ]
  imported/w3c/web-platform-tests/css/css-backgrounds/background-size/vector/wide--contain--width.html [ ImageOnlyFailure ]

They reference a background-image that is SVG with only one dimension, but with correct (if weird) proportions.
According to CSS, their intrinsic size should be scaled down to provide the other dimension. We're not doing that.
Comment 1 Radar WebKit Bug Importer 2020-08-14 18:36:36 PDT
<rdar://problem/67112504>
Comment 2 Dean Jackson 2020-08-14 18:47:58 PDT
See also webkit.org/b/206753