Video player controls menu list positioning is being effected by parent css transform
Reported by
sal....@appitierre.com,
Jun 26 2018
|
||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Steps to reproduce the problem:
1. Add a css transform to the parent element containing the video eg:```body { transform: translate(0, 0) }```
2. Click the menu options (...)
3. Menu options will not appear in correct position, in some cases will scroll you to the bottom of the page
What is the expected behavior?
Menu options should appear in correct position even if parent element has css transforms applied
What went wrong?
I believe this is due to the -internal-media-controls-overflow-menu-list element having a css position fixed. This means the element is not being positioned relative to the window but to the closest parent element with the css transform applied.
While this is layout behaviour is in line with the css transform spec, I can imagine not being allowed to use a video element inside a parent with transforms is going to break a fair amount of websites. Have confirmed that clicking on the video options button in Slack's web app causes the whole page to scroll somewhere seemingly random.
Did this work before? Yes 66
Does this work in other browsers? Yes
Chrome version: 67.0.3396.99 Channel: stable
OS Version: OS X 10.13.5
Flash Version:
Using position absolute on -internal-media-controls-overflow-menu-list fixes the issue. Have tried to select this via CSS but nothing seems to work.
,
Jun 26 2018
[Mac triage] Could you please upload a test case (as an html file)?
,
Jun 26 2018
Uhm, the description is pretty self-evident and trivial to reproduce. Not sure why a test case is needed, but here it goes.
,
Jun 27 2018
The test case above is exactly the issue I have described. Thank you woxxom for making the test file.
,
Jun 27 2018
Able to reproduce the issue on chrome reported version 67.0.3396.99 and latest chrome 69.0.3473.0 using Mac 10.13.5, Windows-10 and Ubuntu 14.04. This issue is seen from introduction of #modern-media-controls flag enabled from M-64 milestone. Hence considering this issue as Non-Regression and marking it as Untriaged. Thanks!
,
Jun 28 2018
,
Jul 6
|
||||
►
Sign in to add a comment |
||||
Comment 1 by viswa.karala@chromium.org
, Jun 26 2018