The following WPT test fails on WebKit: https://wpt.live/css/css-flexbox/quirks-auto-block-size-with-percentage-item.html This test will pass if strict mode its enabled instead of quirks: --- a/css/css-flexbox/quirks-auto-block-size-with-percentage-item.html +++ b/css/css-flexbox/quirks-auto-block-size-with-percentage-item.html @@ -1,4 +1,4 @@ -<!-- quirks mode --> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> <link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#the-height-property"> <meta name="assert" content="The percentage height resolution quirk isn't applied to flexboxes."> This passes on both Firefox and Chrome. See also bug 210243
I believe that this Safari-only test failure is also because of this bug: https://wpt.fyi/results/quirks/percentage-height-quirk-excludes-flex-grid-001.html
Created attachment 434108 [details] Patch
Created attachment 434116 [details] Patch
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Created attachment 434160 [details] Patch
Safari Technology Preview 153 is only browser failing this test: https://wpt.fyi/results/quirks/percentage-height-quirk-excludes-flex-grid-001.html?label=experimental&label=master&aligned Is something planned or in queue? Thanks!
<rdar://problem/122574943>
We pass css-flexbox/quirks-auto-block-size-with-percentage-item.html now but looks like we are failing the row flexbox portion of https://wpt.fyi/results/quirks/percentage-height-quirk-excludes-flex-grid-001.html
(In reply to Sammy Gill from comment #8) > We pass css-flexbox/quirks-auto-block-size-with-percentage-item.html now but > looks like we are failing the row flexbox portion of > https://wpt.fyi/results/quirks/percentage-height-quirk-excludes-flex-grid- > 001.html NOTE - I tried this PR in the past and have background discussion as well (it is based of Rob's patch): https://github.com/WebKit/WebKit/pull/16581 It leads to failing `datalist-searchinput-appearance.html` test with just change in 'DumpTree' output but rendering-wise, we don't have any issue.