Bug 215531 - background-size: cover is wrong for abnormally large/thin SVG images
Summary: background-size: cover is wrong for abnormally large/thin SVG images
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-08-14 18:36 PDT by Dean Jackson
Modified: 2020-08-14 19:18 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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