Repository navigation
layout: Implement the stretch quirks for <html> and <body> - #48942
Merged
Merged
Conversation
|
🔨 Triggering try run (#38810386201) for Linux (WPT) |
Loirooriol
force-pushed
the
stretch-height-quirks
branch
from
October 15, 2026 21:49
55e6584 to
1a162d7
Compare
|
Test results for linux-wpt from try job (#38810386201): Flaky unexpected result (11)
Stable unexpected results that are known to be intermittent (11)
Stable unexpected results (5)
|
|
|
Loirooriol
force-pushed
the
stretch-height-quirks
branch
from
October 15, 2026 22:11
1a162d7 to
bb46165
Compare
Loirooriol
commented
Oct 15, 2026
Loirooriol
left a comment
Contributor
Author
There was a problem hiding this comment.
@dcoapp recheck
In quirks mode, by default, the `<html>` should fill the viewport, and the `<body>` should fill the `<html>`. This is different than `stretch`, because if the contents are larger, they should be sized normally like for `fit-content`. Therefore, this patch adds a new `Size::QuirkyStretch`, which is only allowed as a preferred block size. Then we use it as the automatic block size when needed. https://quirks.spec.whatwg.org/#the-html-element-fills-the-viewport-quirk https://quirks.spec.whatwg.org/#the-body-element-fills-the-html-element-quirk Signed-off-by: Oriol Brufau <[email protected]>
Loirooriol
force-pushed
the
stretch-height-quirks
branch
from
October 15, 2026 22:21
bb46165 to
a54ceca
Compare
Loirooriol
marked this pull request as ready for review
October 15, 2026 22:41
mrobinson
approved these changes
Oct 16, 2026
|
Someone thinks this change could be added to the monthly blog post! To help with this, we need someone to answer the following questions: 😄
If this change is part of a broader feature/project please make sure the PR description contains a Please add Thanks for helping us prepare the monthly blog post! ❤️ |
Contributor
Author
|
@servo-highfive monthly update answer
|
5 of 7 tasks
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.
In quirks mode, by default, the
<html>should fill the viewport, and the<body>should fill the<html>. This is different thanstretch, because if the contents are larger, they should be sized normally like forfit-content. Therefore, this patch adds a newSize::QuirkyStretch, which is only allowed as a preferred block size. Then we use it as the automatic block size when needed.Spec links:
Testing: Various tests improve. One test fails because we don't implement
calc-size()Part of #11709