Repository navigation
layout: Fixes for the percentage height quirk - #49366
Conversation
|
🔨 Triggering try run (#40689394413) for Linux (WPT) |
|
Test results for linux-wpt from try job (#40689394413): Flaky unexpected result (15)
Stable unexpected results that are known to be intermittent (6)
|
|
✨ Try run (#40689394413) succeeded. |
ad35774 to
373d636
Compare
|
🔨 Triggering try run (#40741206159) for Linux (WPT) |
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#64322) with upstreamable changes. |
|
Test results for linux-wpt from try job (#40741206159): Flaky unexpected result (19)
Stable unexpected results that are known to be intermittent (10)
|
|
✨ Try run (#40741206159) succeeded. |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#64322) title and body. |
373d636 to
a0f8425
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#64322). |
a0f8425 to
35df446
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#64322). |
This implements 4 changes: - Restricts the quirk to elements that have a percentage in `height`. E.g. `100%` won't be quirky in `height: auto; min-height: 100%`, but it will in `height: 0%; min-height: 100%`. This matches the spec and Gecko, though Blink and WebKit only enforce it on replaced elements. - More concretely, it requires a `<percentage>`, as opposed to a `<length-percentage>` containing a percentage. E.g. `calc(100% + 1px)` won't be quirky, but `100%`, `calc(100%)` and `calc(100% + 0px)` will. This matches the spec and Gecko, but not Blink and WebKit. - Restricts the quirk to percentage resolution. E.g. `height: stretch` won't be quirky. This matches Blink, the spec is unclear. - Restricts the quirk to sizing purposes. E.g. `top: 100%` won't be quirky. This matches the spec, Blink and WebKit, but not Gecko. Signed-off-by: Oriol Brufau <[email protected]>
35df446 to
7023ab8
Compare
|
Updated the new tests, they were failing on other browsers because of https://html.spec.whatwg.org/multipage/rendering.html#margin-collapsing-quirks, which we don't implement. |
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#64322). |
This implements 4 changes:
height. E.g.100%won't be quirky inheight: auto; min-height: 100%, but it will inheight: 0%; min-height: 100%. This matches the spec and Gecko, though Blink and WebKit only enforce it on replaced elements.How does height percentage quirk affect min/max-height? whatwg/quirks#95
<percentage>, as opposed to a<length-percentage>containing a percentage. E.g.calc(100% + 1px)won't be quirky, but100%,calc(100%)andcalc(100% + 0px)will. This matches the spec and Gecko, but not Blink and WebKit.Should we do percentage height quirk for calc()? whatwg/quirks#48
height: stretchwon't be quirky. This matches Blink, the spec is unclear.[css-sizing][quirks] Should
stretchbe affected by percentage height calculation quirk? w3c/csswg-drafts#12421top: 100%won't be quirky. This matches the spec, Blink and WebKit, but not Gecko.Percentage height quirk doesn't affect relpos positioning, right? whatwg/quirks#94
Testing: 2 existing tests improve, also adding new tests
Fixes: #49025