New wpt failures in /css/css-flexbox/align-content_stretch.html
Categories
(Core :: Layout: Flexbox, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox78 | --- | fixed |
People
(Reporter: wpt-sync, Assigned: dholbert)
References
Details
(Whiteboard: [wpt], [wptsync upstream])
Attachments
(2 external files)
Syncing wpt PR 23170 found new untriaged test failures in CI
Tests Affected
New Tests That Don't Pass
/css/css-flexbox/align-content_stretch.html: FAIL [Gecko-windows10-64-debug, Gecko-windows10-64-opt, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt, Gecko-windows7-32-debug, Gecko-windows7-32-opt], PASS [Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-android-em-7.0-x86_64-opt-geckoview, Gecko-linux1804-64-asan-opt, Gecko-linux1804-64-debug, Gecko-linux1804-64-opt, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, GitHub] (Chrome: PASS, Safari: PASS)
CI Results
Gecko CI (Treeherder)
GitHub PR Head
Notes
These updates will be on mozilla-central once bug 1632174 lands.
Note: this bug is for tracking fixing the issues and is not
owned by the wpt sync bot.
This bug is linked to the relevant tests by an annotation in
https://github.com/web-platform-tests/wpt-metadata. These annotations
can be edited using the wpt interop dashboard
https://jgraham.github.io/wptdash/
If this bug is split into multiple bugs, please also update the
annotations, otherwise we are unable to track which wpt issues are
already triaged. Resolving as duplicate or closing this issue should
be cause the bot to automatically update or remove the annotation.
Comment 1•6 years ago
|
||
Looks like Chrome and Safari pass these. Can you give this a priority, Daniel?
| Assignee | ||
Comment 2•6 years ago
|
||
We pass this as well, on all platforms but Windows. The failure here is just fringe around the numeral "2". It's 1px (or maybe a half pixel?) higher in the testcase as compared to the reference case.
The difference amounts:
Found 66 pixels different, maximum difference per channel 255 [Windows 7]
Found 77 pixels different, maximum difference per channel 255 [Windows 10]
Found 82 pixels different, maximum difference per channel 255 [Windows 10 WebRender]
So: not a serious bug, no more significant than P3 definitely. (and entirely possible that it's a test bug or an artifact that we'd be comfortable papering over with a fuzzy annotation)
| Assignee | ||
Comment 3•6 years ago
•
|
||
Actually I can sort of reproduce this locally -- the testcase[1] has the whole light-blue div placed higher than in the reference case[2]. I have 200% pixel-scaling applied at a system level, BTW, which I think is why I can reproduce it. (And the Win10 failure is probably due to some amount of pixel scaling there as well).
The failure is due to imprecise & hardcoded rounding in the reference case -- i.e. this is a bug in the test. tl;dr the testcase has 16.666px of space between each flex item, while the reference gives those spaces hard-coded sizes of 17px and 16px.
Facts:
- The flex container has
height:200px - All three flex items have
height: 50px, so they're collectively 150px tall. - So that leaves 50px of packing space in the flex container.
- This is distributed equally among the three flex lines (effectively as blank space below each flex item)
- So all three flex lines get
50px / 3, which is16.666667px - BUT, the reference case is styled as having explicit spacers of height
17pxand16px. This is clearly bogus, especially on systems with HiDPI where 16.6666px can be pixel-snapped to a closer value than17px.
We could use calc() to produce the correct heights in the reference case, but really we should just fix the numbers so they produce whole pixel sizes rather than fractional sizes.
[1] http://wpt.live/css/css-flexbox/align-content_stretch.html
[2] http://wpt.live/css/css-flexbox/reference/align-content_space-stretch-ref.html
| Assignee | ||
Comment 4•6 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #3)
[1] http://wpt.live/css/css-flexbox/align-content_stretch.html
[2] http://wpt.live/css/css-flexbox/reference/align-content_space-stretch-ref.html
One other bits of cleanup we might as well do while we're here, too: we should rename these files ^^ so they're consistent.
The reference case has a stray _space snippet in its filename, for no good reason -- I think this was due to a naming mistake when generating tests for the "space-around" & "space-between" values, and then "stretch")
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 5•6 years ago
|
||
This file is only used as a reference case for one testcase, which is
"align-content_stretch.html". The file names are inconsistent right now, which
is obviously a mistake, so let's just fix it.
(The "_space" in the reference case's filename doesn't make any sense; it was
likely just a copypaste error that came from one of the related tests for other
align-content values like "space-around" and "space-between".)
| Assignee | ||
Comment 6•6 years ago
|
||
Before this change, this test ends up with 50px of spacing, divided 3 ways
(with one share going after each flex item). That means we should be expecting
spacing of 50px/3 = 16.666px -- but the reference case was instead expecting
arbitrarily-rounded amounts, expecting 17px of spacing in one spot and 16px in
another spot (which may or may not match actual UA behavior, particularly on a
HiDPI display where pixel-snapping might not need to round to whole CSS
pixels).
This patch just increases the size of the container so that we end up with
60px of extra space, which gives us nice round number of pixels for each share
of the space: 60px/3 = 20px of space between each flex item.
(This is consistent with the neighboring test "align-content_space-around.html"
which also uses a 210px-tall container for the same reason.)
Depends on D73548
| Assignee | ||
Comment 7•6 years ago
|
||
I left a note about this on https://github.com/web-platform-tests/wpt/pull/23170#issuecomment-622974129 , BTW -- that's the github-issue where this WPT test was introduced, it looks like.
| Assignee | ||
Comment 8•6 years ago
|
||
Comment 10•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c5c98cf87bbf
https://hg.mozilla.org/mozilla-central/rev/42838759a8f6
| Reporter | ||
Comment 11•6 years ago
|
||
| Reporter | ||
Updated•6 years ago
|
| Reporter | ||
Comment 12•6 years ago
|
||
Description
•