www.fromthethink.com - Answer card flips in reverse animation instead of revealing answer on selection
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(Webcompat Priority:P3, Webcompat Score:4, firefox152 affected, firefox153 affected, firefox154 affected)
People
(Reporter: rbucata, Unassigned)
References
(Depends on 1 open bug, )
Details
(Keywords: webcompat:needs-diagnosis, webcompat:site-report, Whiteboard: [webcompat-source:web-bugs][autowebcompat:processed][autowebcompat:repro-success] )
User Story
user-impact-score:60 platform:windows,mac,linux,android impact:content-missing configuration:general affects:all branch:release diagnosis-team:layout autowebcompat-diagnosis-status:success autowebcompat-repro-status:success autowebcompat-repro-chrome-mask-fixed:false
Attachments
(3 files)
Environment:
Operating system: Windows 10
Firefox version: Firefox 151.0
Steps to reproduce:
- Navigate to: https://www.fromthethink.com/moneyline
- Click on an option and observe
Expected Behavior:
Selected answer triggers normal card flip and reveals the answer.
Actual Behavior:
Selected answer triggers reverse flip animation and does not properly reveal the answer
Notes:
- Reproduces regardless of the status of ETP
- Does not reproduce in firefox-nightly, firefox-release, and chrome
Created from https://github.com/webcompat/web-bugs/issues/224508
| Reporter | ||
Comment 1•5 months ago
|
||
| Reporter | ||
Updated•5 months ago
|
Comment 2•5 months ago
|
||
Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.
Updated•5 months ago
|
Updated•5 months ago
|
Comment 3•5 months ago
|
||
The reported issue reproduces in Firefox. On https://www.fromthethink.com/moneyline, after starting the game and selecting an answer (Over/Under), the card is supposed to flip and reveal the answer on its back face. Instead, during/after the flip the card displays the FRONT face mirrored — the question text appears reversed/backwards (e.g. "How many pieces of candy fit in a standard PEZ dispenser?" rendered as a mirror image) and the OVER/UNDER labels and arrows are flipped horizontally. The answer face (which I confirmed via DOM inspection contains content like "✓ Over 124.5 ... 140 Actual") is never properly shown to the user; the round then auto-advances.
Technically: the flip container (class "card-flipper moneyline-card-flipper") animates from transform:none to rotateY(180deg) (matrix3d(-1,0,0,0, 0,1,0,0, 0,0,-1,0, 0,0,0,1)). Both child faces have backface-visibility:hidden, and the answer/back face is pre-rotated 180deg. In Firefox the back face is not presented when the parent reaches 180deg; instead the mirrored front face remains visible, so the user sees a reversed question rather than the revealed answer. This matches the report's "reverse flip animation and does not properly reveal the answer." It reproduced consistently across multiple rounds.
Updated•5 months ago
|
Updated•5 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Comment 4•3 months ago
|
||
Root cause analysis generated by autowebcompat bot:
The Moneyline answer card is a standard 3D flip: .card-slider supplies perspective: 1200px, .card-flipper.moneyline-card-flipper has transform-style: preserve-3d and transitions its transform from none to rotateY(180deg), and its two grid-stacked children (grid-area: 1/1) both set backface-visibility: hidden. Crucially, the two faces are asymmetric: .card-back (the answer) has its own transform: rotateY(180deg), while .card-front (the question) has no transform at all and additionally z-index: 2.
The site therefore depends on the CSS Transforms rule that backface-visibility is evaluated against the element's accumulated transform inside its 3D rendering context — i.e. including the preserve-3d ancestor's rotation. Chrome implements that: at 180deg the untransformed .card-front is facing away, its hidden backface culls it, and .card-back (accumulated 180+180 = identity) is the face presented, revealing "✓ Over … ACTUAL".
Firefox (153.0.4) applies backface culling only to a child that is itself transformed — a child that generates its own transform item and thus combines its transform with the preserve-3d ancestor. Because .card-front has transform: none, Gecko never accumulates the parent's rotateY(180deg) when deciding its backface orientation, so its backface-visibility: hidden is effectively ignored: the front face keeps being painted and hit-tested, drawn mirrored by the parent's rotation (question text backwards, OVER/UNDER labels and arrows flipped). And because .card-front also carries z-index: 2, that un-culled mirrored front paints above the coplanar .card-back, so the answer face is never presented before the round auto-advances. Chrome shows the answer; Firefox shows a mirrored, unreadable question. (Note the site's mobile media-query variant sidesteps 3D entirely — transform-style: flat, back face display: none until flipped, keyframe fade/rotate — so only the desktop preserve-3d path is affected.)
Evidence:
Live site, Firefox 153.0.4 vs Chrome stable, https://www.fromthethink.com/moneyline:
• Computed styles are byte-for-byte equivalent in both browsers — no UA sniffing, no unsupported property. .card-flipper: transform-style: preserve-3d, display: grid, transition: transform .45s; parent .card-slider: perspective: 1200px, isolation: isolate; .card-front: transform: none, backface-visibility: hidden, z-index: 2, grid-area: 1/1; .card-back: transform: matrix3d(-1,0,0,0, 0,1,0,0, 0,0,-1,0, 0,0,0,1) (rotateY(180deg)), backface-visibility: hidden, grid-area: 1/1. Rules come from .game-surface--moneyline .game-layout .moneyline-* with !important; no console errors or failed requests are involved.
• After clicking OVER in Firefox the flipper reaches the settled matrix3d(-1,0,0,0, 0,1,0,0, 0,0,-1,0, 0,0,0,1) and document.elementFromPoint over a 3×3 grid of the card returns .card-front at all 9 points, while .card-back does contain the revealed text ("✓ OVER 1,200 1,200 1,417 ACTUAL"). Screenshot of Firefox shows the question card with mirrored ("ЯƎVO"-style) text — the reported symptom. Chrome, same probe, returns .card-back at all 9 points.
• Live-site confirmation of the mechanism: injecting only .card-front { transform: rotateY(0deg) !important; } (an identity transform, nothing else changed) makes Firefox cull the front face — the same probe then returns back at all 9 points and the answer face is presented. This shows the divergence is precisely "child has no transform of its own".
• Isolation experiments (local scratch page, single child of a preserve-3d parent rotated 180deg, child backface-visibility: hidden), Firefox result / Chrome result via elementFromPoint: child transform:none → child hit / culled (nothing hit); child transform: rotateY(0deg) → culled / culled; translateZ(0) → culled / culled; translateX(0px) → culled / culled; will-change: transform → culled / culled; opacity:.999 (no transform) → child hit / culled. So in Gecko any own transform (even identity) or will-change:transform enables culling, and non-transform properties do not. Unflipped parent (0deg) with an untransformed child: child hit in both, as expected.
• Reduced testcase /app/diagnosis/testcase=ro_y5of4.html, loaded in both browsers: card 1 (exact site structure, front transform:none + z-index:2) → Firefox: mirrored "FRONT — QUESTION" visible, probe front {front:9}; Chrome: green "BACK — ANSWER ✓ Over 124.5 / 140 ACTUAL", probe back {back:9}. Card 2 (front given transform: rotateY(0deg)) → back {back:9} in both. Card 3 (back face removed, so paint order is irrelevant) → Firefox: mirrored front still painted and hit-tested, front {front:9}; Chrome: empty card area, none {none:9} — direct proof that the missing backface cull, not z-order alone, is the divergence.
Comment 5•3 months ago
|
||
Comment 6•3 months ago
|
||
Tim, thoughts on where the problem might be?
Comment 7•3 months ago
|
||
This is very similar to https://searchfox.org/firefox-main/source/testing/web-platform/tests/css/css-transforms/backface-visibility-hidden-004.html which we have expected fail annotation.
Updated•3 months ago
|
Comment 8•3 months ago
|
||
Bug 1884044 covers several wpts but we only need to fix one of them, backface-visibility-hidden-004.html. And the other tests require significant web compat changes that so far only Safari has made, so they would add more risk. I split off backface-visibility-hidden-004.html into bug 2066084 which will serve as the platform bug for this.
Description
•