card label is placed at different position and stacking order in Firefox vs. other browsers at www3.animeflv.net
Categories
(Core :: Layout: Positioned, defect)
Tracking
()
People
(Reporter: dholbert, Assigned: twisniewski)
References
()
Details
(4 keywords)
User Story
platform:windows,mac,linux impact:content-missing configuration:general affects:all branch:release user-impact-score:15
Attachments
(8 files)
STR:
- Load https://www3.animeflv.net/
- Scroll down to the larger thumbnails with title "Últimos animes agregados"
EXPECTED RESULTS:
The green diagonal card labels should be in front of the thumbnail images, with the top edge being just a bit higher than the image's top edge.
ACTUAL RESULTS:
The green diagonal card labels are behind the thumbnail images, and their top edge are higher than they should be (by ~1 line-height or so).
This was originally filed as https://webcompat.com/issues/60176 which we associated with bug 1573990, but there's more going on, since Chrome aligned with our behavior for bug 1573990 and yet we still disagree with Chrome on this particular scenario here.
| Reporter | ||
Comment 1•2 years ago
|
||
Here's a reduced testcase, as a slightly-modified version of ksenia's codepen reduction on the github issue.
| Reporter | ||
Updated•2 years ago
|
| Reporter | ||
Comment 2•2 years ago
|
||
| Reporter | ||
Comment 3•2 years ago
|
||
There's definitely some weird interop differences in this area. Here's a testcase where everyone seems to agree, to get things started...
| Reporter | ||
Updated•2 years ago
|
| Reporter | ||
Comment 4•2 years ago
•
|
||
In this one, Safari and Firefox agree (and match the behavior on testcase 3), but Chrome changes behavior -- they change the abspos CB width to fit the black-bordered-box (the CB of the inline-that-forms-an-abspos-cb), and they increase the height of the abspos containing block to fit the new block child.
| Reporter | ||
Comment 5•2 years ago
|
||
This one (with multiple lines of text) is a case where we're the odd one out; we seem to only use the first line of text to define the abspos CB, whereas Chrome and Safari seem to use the union of all of the lines.
| Reporter | ||
Comment 6•1 year ago
•
|
||
Here's a testcase from bug 1926971 which I think is a version of this same bug (likely similar to testcase 2 here RE stacking-order-differences).
As noted in bug 1926971 comment 5, if you try hovering the rects in this testcase:
- Firefox: neither rect changes color.
- WebKit (and Chrome 100-and-older): only the lower rect changes color when hovered (i.e. WebKit needs z-index to be set on the display:inline wrapper in order for that rect to be sufficiently-in-the-foreground to be hoverable)
- Chrome (101-and-newer) both rects change color (individually) when they are hovered.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Reporter | ||
Comment 7•1 year ago
|
||
Comment on attachment 9404833 [details]
testcase 1 (for positioning difference) [fixed by Bug 1931466]
We agree with Chrome on testcase 1 now (and we agree on the vertical placement of the green labels -- the second half of the actual/expected results).
mozregression --find-fix shows that we fixed that part in Bug 1931466.
So: we can use this bug to just focus on the stacking-order issues from here on out.
| Reporter | ||
Comment 8•1 year ago
•
|
||
This CSS intervention seems to work for www3.animeflv.net:
.Anime > a {
display: block;
}
(The underlying issue here has to do with stacking order inside of a display:inline element that's serving as an absolutely-positioned containing block. The a element here happens to be display:inline element by default, but they don't actually make use of that display value; it's just a wrapper element.)
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 9•1 year ago
|
||
Updated•1 year ago
|
Comment 10•1 year ago
|
||
Comment 11•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•7 months ago
|
| Assignee | ||
Comment 12•5 months ago
|
||
Their site has changed over to www4. instead of www3., so we'll have to update our intervention.
| Assignee | ||
Comment 13•5 months ago
|
||
Comment 14•5 months ago
|
||
Comment 15•5 months ago
|
||
| bugherder | ||
Updated•4 months ago
|
Updated•4 months ago
|
Updated•4 months ago
|
Description
•