REGRESSION (309405@main): CSS stretch and anonymous wrappers#64983
Closed
annevk wants to merge 1 commit into
Closed
REGRESSION (309405@main): CSS stretch and anonymous wrappers#64983annevk wants to merge 1 commit into
annevk wants to merge 1 commit into
Conversation
https://bugs.webkit.org/show_bug.cgi?id=314885 rdar://176398251 Reviewed by NOBODY (OOPS!). Stretch height calculation should work in the same way as percentage height calculation, by skipping anonymous wrappers. Not doing this properly caused at least one website to not render its iframe at viewport height. Fix is verified with new tests and behavior matches Chromium and Gecko (though the latter only when stretch keyword support is enabled). Tests: imported/w3c/web-platform-tests/css/css-sizing/stretch/stretch-anonymous-block-001.html imported/w3c/web-platform-tests/css/css-sizing/stretch/stretch-quirk-002.html Upstream: web-platform-tests/wpt#59896
Collaborator
|
EWS run on current version of this PR (hash 0b3ed4d) Details
|
bfgeek
reviewed
May 15, 2026
| void mapAbsoluteToLocalPoint(OptionSet<MapCoordinatesMode>, TransformState&) const override; | ||
|
|
||
| bool skipContainingBlockForPercentHeightCalculation(const RenderBox& containingBlock, bool isPerpendicularWritingMode) const; | ||
| bool skipContainingBlockForPercentageOrStretchHeightCalculation(const RenderBox& containingBlock, bool isPerpendicularWritingMode) const; |
There was a problem hiding this comment.
I saw this go past the WPT importer - the tests are correct, however you are going to skip past things in quirks mode that aren't correct.
Percentages in quirks mode skip past all auto height things (which is what this function does), stretch should not (we don't want to expand that quirk to stretch).
stretch can resolve against the as due to the "body fills the viewport" quirk it can resolve as definite.
Contributor
Author
There was a problem hiding this comment.
Yeah that’s what the failing test on the bot is pointing out as well. Thanks for the heads up!
Contributor
Author
|
Fixed by https://commits.webkit.org/313359@main. |
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.
0b3ed4d
0b3ed4d