Repository navigation
Conversation
Author
|
Closing this PR because the existing two-dimensional sizes=auto WPT already covers the object-fit candidate-selection behavior that prompted it. This PR measures naturalWidth directly, but the underlying implementation work is already tracked in Chromium issue 572724710. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add four tentative testharness cases for lazy
sizes=autoimages with width and height attributes in a square CSS box. A single width-descriptor candidate makes the density-correctednaturalWidthobservable independently of candidate choice and device pixel ratio.Chrome 158.0.8127.37 and Playwright Firefox 159.0 passed two cases locally. Both returned 20 CSS pixels for landscape cover (expected 40) and portrait contain (expected 10). Chrome Canary 160.0.8183.0 passed all four with
SrcsetTwoDimensionalSizesenabled.Related to Chromium 572724710 and whatwg/html#13053.