Repository navigation
layout: Implement the percentage height calculation quirk - #39869
Conversation
|
🔨 Triggering try run (#18499706860) for Linux (WPT) |
|
🔨 Triggering try run (#18500659741) for Linux (WPT) |
|
Test results for linux-wpt from try job (#18499706860): Flaky unexpected result (36)
Stable unexpected results that are known to be intermittent (26)
Stable unexpected results (4)
|
|
|
|
@Loirooriol It looks like this improved things quite a bit. Would you be willing to rebase this and update expected test results? |
a02e380 to
a553b4e
Compare
|
🔨 Triggering try run (#38817496058) for Linux (WPT) |
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#63742) with upstreamable changes. |
a553b4e to
518a643
Compare
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#63742) title and body. |
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#63742). |
518a643 to
82be464
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#63742). |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#63742) title and body. |
|
Test results for linux-wpt from try job (#38817496058): Flaky unexpected result (20)
Stable unexpected results that are known to be intermittent (10)
Stable unexpected results (3)
|
|
|
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#63742) title and body. |
1 similar comment
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#63742) title and body. |
82be464 to
4299dae
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#63742). |
https://quirks.spec.whatwg.org/#the-percentage-height-calculation-quirk In quirks mode, when a percentage in the block axis would resolve against an indefinite size, instead of behaving as auto, it can sometimes iterate the containing block chain to try to find a definite basis. This patch implements this behavior by adjusting the containing block established for the contents, so no iteration is actually needed. Signed-off-by: Oriol Brufau <[email protected]>
4299dae to
c2a23bf
Compare
|
🤖 This change no longer contains upstreamable changes to WPT; closed existing upstream pull request (web-platform-tests/wpt#63742). |
|
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! ❤️ |
|
@servo-highfive monthly update answer
|
https://quirks.spec.whatwg.org/#the-percentage-height-calculation-quirk
In quirks mode, when a percentage in the block axis would resolve against an indefinite size, instead of behaving as auto, it can sometimes iterate the containing block chain to try to find a definite basis.
This patch implements this behavior by adjusting the containing block established for the contents, so no iteration is actually needed.
Testing: various tests improve. These are the remaining failures in
/quirks/percentage-height-calculation.html:calc()containing percentages. Blink and WebKit do the same, and the consensus in Should we do percentage height quirk for calc()? whatwg/quirks#48 seems to go this way.<body>when it's the document's body element. So arguably some subtests are wrong, in fact one of them fails on all browsers./css/css-flexbox/percentage-size-quirks-005.htmlis now failing because we apply the quirk tostretch. Restricting it to percentages would add too much complexity. This is being discussed in w3c/csswg-drafts#12421Fixes: #23038
Part of #11709