Open Bug 2044288 Opened 5 months ago Updated 4 months ago

www.kuaishou.com - Missing video thumbnails for some video sections

Categories

(Web Compatibility :: Site Reports, defect, P2)

Desktop
Windows 10

Tracking

(Webcompat Priority:P3, Webcompat Score:1)

ASSIGNED
Webcompat Priority P3
Webcompat Score 1

People

(Reporter: rbucata, Assigned: twisniewski)

References

(Depends on 1 open bug, )

Details

(4 keywords, Whiteboard: [webcompat-source:web-bugs])

User Story

user-impact-score:0
platform:windows,mac,linux,android
impact:site-broken
configuration:general
affects:all
branch:release
diagnosis-team:layout

Attachments

(2 files, 2 external files, 1 obsolete file)

Environment:
Operating system: Windows 10
Firefox version: Firefox 151.0

Steps to reproduce:

  1. Navigate to: https://www.kuaishou.com/?isHome=1&source=NewReco
  2. Scroll and observe

Expected Behavior:
Video thumbnails are present

Actual Behavior:
Video thumbnails are missing

Notes:

  • Reproduces regardless of the status of ETP
  • Reproduces in firefox-nightly, and firefox-release
  • Does not reproduce in chrome

Created from https://github.com/webcompat/web-bugs/issues/222893

Attached video Chr vs ff —

Some other sections are missing thumbnails even in Chrome.

User Story: (updated)
Webcompat Priority: --- → P3
Webcompat Score: --- → 1

The img tags are there and loaded, but the container has 0px. Also, clicking on it doesn't work.

Severity: -- → S2
User Story: (updated)
Webcompat Priority: P3 → P2
Webcompat Score: 1 → 7
Priority: -- → P2
User Story: (updated)
Webcompat Priority: P2 → P1
Webcompat Score: 7 → 9
Attached file testcase.html —

Daniel, does the test case show off a known bug?

User Story: (updated)
Flags: needinfo?(dholbert)

Hmm, so here's what I see at first glance:

  • the colorful area here (missing in Firefox) is an absos element, sized to fill its abspos-containing-block (inset:0)
  • the abspos-containing block is formed by a position:relative; display:inline element (it's a which is inline by default)
  • the only in-flow content in that containing block (the only thing to give it some nonzero size) is a display:block child (which happens to be a ::before pseudo-element, but the fact that we're using a pseudo is probably irrelevant).

So this is related to bug 489100 (not a regression from that bug, and not fixed by it, but a similar situation). The different thing here is the display:block child, i.e. the presence of an IB-split. TYLin, do you know if our inline-abspos-CB stuff is supposed to treat IB-splits as inflating the size of the containing block or not?

FWIW Safari 26.4 agrees with our rendering, but that might just be because we've got the same bug...

Flags: needinfo?(dholbert) → needinfo?(aethanyc)

I filed a platform bug 2047061. The testcase there gathers more rendering difference between us and Google Chrome.

TYLin, do you know if our inline-abspos-CB stuff is supposed to treat IB-splits as inflating the size of the containing block or not?

Per current spec, the block frame in inline is not supposed to be used when computing the containing block rect. Google Chrome might use other ways to compute the rect. See https://github.com/w3c/csswg-drafts/issues/8284

Flags: needinfo?(aethanyc)

Given that the site is depending on nonstandard Chrome-only behavior (which may get specced but we're waiting on that), the simplest thing right now might be to ship an intervention to unbreak this site; and we can update to match Chrome when their behavior gets specced (maybe not too far out, given the recent-ish activity [February of this year] on the CSSWG issue that TYLin linked).

At first glance, this seems to work as a sitepatch here (tested using Stylus):

.video-card-main { display: block }

Tom, would you mind crafting that into a sitepatch?

Flags: needinfo?(twisniewski)

Note, it's somewhat hard to test this site thoroughly because a good fraction of the time [in Firefox as well as Chrome] I just get back some error-code JSON like this, instead of any web content:

{"result":2,"error_msg":null,"request_id":"781240965671024873"}

Other times the pageload just times out. But occasionally the site does actually load and I'm able to test this.

On Android I only see a "use the app" page, so I'll make a desktop-only intervention for now.

Flags: needinfo?(twisniewski)
Keywords: leave-open

Actually, while working on the intervention, the site seems to be struggling, so I'm not sure whether I can write an automated test for it. I'll post a patch without one for now and revisit it later.

Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
Attachment #9596990 - Flags: approval-mozilla-release?

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: Google's World Cup mini-games will have obvious layout issues, and kuaishou.com's World Cup-themed main page will have broken video thumbnails.
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing: 1) On a desktop build, visit https://www.kuaishou.com/?isHome=1&source=NewReco and verify that the video thumbnails eventually load (the site is currently struggling, so may need to be refreshed a few times to not see an error page)
  1. On an Android build, visit google.com, search for "World Cup 2026", scroll down until you see a blue soccer ball icon on the lower-right, click it, and confirm that the close button on the subsequent popup is positioned in a reasonable spot on the top-left of the popup.
  • Risk associated with taking this patch: low
  • Explanation of risk level: These patches only affect our webcompat intervention, and CSS on two sites (carefully crafted to reduce any chance of breakage).
  • String changes made/needed?: none
  • Is Android affected?: yes
Pushed by twisniewski@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/41d78d98ee1b https://hg.mozilla.org/integration/autoland/rev/74e66e9ce8cd add a desktop-only CSS webcompat intervention for www.kuaishou.com; r=ksenia,webcompat-reviewers,dholbert

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: kuaishou.com's World Cup-themed main page will have broken video thumbnails.
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing: 1) On a desktop build, visit https://www.kuaishou.com/?isHome=1&source=NewReco and verify that the video thumbnails eventually load (the site is currently struggling, so may need to be refreshed a few times to not see an error page)
  • Risk associated with taking this patch: low
  • Explanation of risk level: These patches only affect our webcompat intervention, and CSS on two sites (carefully crafted to reduce any chance of breakage).
  • String changes made/needed?: none
  • Is Android affected?: yes

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: kuaishou.com's World Cup-themed main page will have broken video thumbnails.
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing: 1) On a desktop build, visit https://www.kuaishou.com/?isHome=1&source=NewReco and verify that the video thumbnails eventually load (the site is currently struggling, so may need to be refreshed a few times to not see an error page)
  • Risk associated with taking this patch: low
  • Explanation of risk level: These patches only affect our webcompat intervention addon, and CSS on one sites (crafted to reduce any chance of breakage).
  • String changes made/needed?: none
  • Is Android affected?: yes
Attachment #9597514 - Flags: approval-mozilla-release?

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: kuaishou.com's World Cup-themed main page will have broken video thumbnails.
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing: 1) On a desktop build, visit https://www.kuaishou.com/?isHome=1&source=NewReco and verify that the video thumbnails eventually load (the site is currently struggling, so may need to be refreshed a few times to not see an error page)
  • Risk associated with taking this patch: low
  • Explanation of risk level: These patches only affect our webcompat intervention addon, and CSS on one sites (crafted to reduce any chance of breakage).
  • String changes made/needed?: none
  • Is Android affected?: no
User Story: (updated)
Webcompat Priority: P1 → P3
Webcompat Score: 9 → 1
Attachment #9596990 - Attachment is obsolete: true
Attachment #9596990 - Flags: approval-mozilla-release?
Attachment #9597514 - Flags: approval-mozilla-release? → approval-mozilla-release+
Attachment #9597514 - Flags: approval-mozilla-release+
QA Whiteboard: [qa-ver-needed-c154/b153]
User Story: (updated)
Flags: qe-verify+

Reproduced the issue in Release 152.0.1 using Windows 10.
Verified - Fixed in Release 152.0.2, Beta 153.0b2 and the latest Nightly build 154.0a1 (2026-06-21). The video thumbnails are loaded accordingly in the mentioned Fx versions.
@Thomas, is there anything left to do on your side? I ask because I noticed the bug was not marked as Resolved yet.
Thanks!

QA Whiteboard: [qa-ver-needed-c154/b153] → [qa-ver-done-c154/b153]
Flags: qe-verify+ → needinfo?(twisniewski)
QA Contact: ailea

Thanks! We leave bugs open for tracking while we are only shipping a webcompat intervention for them, as the underlying problems aren't truly resolved. I think we're fine here for now, until either the site fixes the bug, or we adopt Chrome's behavior.

Flags: needinfo?(twisniewski)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: