[Vimeo] The highlights for the options in the drop-down menus are misplaced and have incorrect color/opacity
Categories
(Core :: Layout, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox64 | --- | unaffected |
firefox65 | --- | unaffected |
firefox66 | --- | disabled |
firefox67 | --- | disabled |
firefox68 | --- | fixed |
People
(Reporter: tbabos, Assigned: hiro)
References
Details
(Keywords: regression)
Attachments
(4 files, 1 obsolete file)
[Affected versions]
66.0a1 (2018-01-09)
[Affected platforms]
Windows 7/10 x64
Windows 8 x32
Mac OS 10.13
[Steps to reproduce]
- Launch latest Firefox Nightly
- Go to https://vimeo.com/join#_=_
- Hover over "Features" or "Watch" to reveal the drop-down menus
- Hover over slightly faster on all the options from the drop-down menus
[Expected result]
The options should be highlighted (with a barely visible white color) accordingly.
[Actual result]
The highlights for the options are misplaced and are displayed with different color or opacity (depending on the image from the background of the site).
[Regression-Range]
Last good revision: 2d8ce84e0107c99974201c1b67864786b22f3ff8
First bad revision: 94ecc40729d0302ee3953dbab0d280d4a6b174c4
Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=2d8ce84e0107c99974201c1b67864786b22f3ff8&tochange=94ecc40729d0302ee3953dbab0d280d4a6b174c4
Hiroyuki Ikezoe, can you please take a look at this?
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Thanks. That's interesting. I will check this when I have time.
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Comment 3•6 years ago
|
||
So the problem here is that the animated background-color is rgba(0, 0, 0, 0) in the case where the animated value is equal to the static background-color value of the target element. To be honest I didn't know the fact at all. :/
I am not sure we need really to make the background-color be rgba(0, 0, 0, 0) case, but using the static background-color fixes the issue.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=8bb1f2a4cb4430196e9385c111928b293a08b98f
Assignee | ||
Comment 4•6 years ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #3)
So the problem here is that the animated background-color is rgba(0, 0, 0, 0) in the case where the animated value is equal to the static background-color value of the target element.
I was totally looking at the wrong case. :/ Actually the animated value is 'transparent', it's not related to the static background-color.
Assignee | ||
Comment 6•6 years ago
|
||
Setting P3 for now since the feature regressed this is available only on nightly.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 10•6 years ago
|
||
Might be worth bumping the priority of this (or disabling OMTA background-color temporarily). It appears to be confusing folks working on DevTools and Firefox FE occasionally (I just saw another person mentioning this in DevTools slack).
Assignee | ||
Comment 11•6 years ago
|
||
I will not have time for this for a while, I am going to disable it in nightly too.
Assignee | ||
Comment 12•6 years ago
|
||
It causes flicker in some cases.
Comment 13•6 years ago
|
||
The bugs for this feature are a mess. As far as I can tell we have:
- Bug 1510030 - For Web Render only (although it would be good to make the bug title say that)
- Bug 1504065 - For non-Web Render and is marked as fixed although now we are disabling it
We should probably:
- File a meta bug for enabling background-color animations on non-WebRender
- File a separate bug for disabling it on Nightly and attach the patch to that bug
- Keep this bug open and make it block the meta bug
- Also make bug 1510120 and bug 1504065 block the new meta bug
- Add a "[WebRender]" prefix or somehow mention WebRender in the title of bug 1510030 so that we can tell it apart from bug 1504065
Comment 14•6 years ago
|
||
If you like, you could even have two separate bugs for enabling OMTA background-color on Nightly and on Release and make this bug block turning it back on in Nightly.
Comment 15•6 years ago
|
||
(In reply to Brian Birtles (:birtles) from comment #13)
The bugs for this feature are a mess. As far as I can tell we have:
- Bug 1510030 - For Web Render only (although it would be good to make the bug title say that)
- Bug 1504065 - For non-Web Render and is marked as fixed although now we are disabling it
We should probably:
- File a meta bug for enabling background-color animations on non-WebRender
- File a separate bug for disabling it on Nightly and attach the patch to that bug
- Keep this bug open and make it block the meta bug
- Also make bug 1510120 and bug 1504065 block the new meta bug
- Add a "[WebRender]" prefix or somehow mention WebRender in the title of bug 1510030 so that we can tell it apart from bug 1504065
I've gone ahead and made the the above changes.
Hiro, would you mind re-attaching this patch to bug 1535533 instead? Thanks.
Updated•6 years ago
|
Assignee | ||
Comment 16•6 years ago
|
||
Here is a test case that you can see the issue easily.
When opening this file, you will see a gray rectangle and soon after you will see the rectangle changes to black. That's the problem.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 17•6 years ago
|
||
(In reply to Brian Birtles (:birtles) from comment #15)
(In reply to Brian Birtles (:birtles) from comment #13)
The bugs for this feature are a mess. As far as I can tell we have:
- Bug 1510030 - For Web Render only (although it would be good to make the bug title say that)
- Bug 1504065 - For non-Web Render and is marked as fixed although now we are disabling it
We should probably:
- File a meta bug for enabling background-color animations on non-WebRender
- File a separate bug for disabling it on Nightly and attach the patch to that bug
- Keep this bug open and make it block the meta bug
- Also make bug 1510120 and bug 1504065 block the new meta bug
- Add a "[WebRender]" prefix or somehow mention WebRender in the title of bug 1510030 so that we can tell it apart from bug 1504065
I've gone ahead and made the the above changes.
Hiro, would you mind re-attaching this patch to bug 1535533 instead? Thanks.
Instead, I did a bit investigate what causes the black rectangle. That's because, as far as I can tell, nsDisplayBackgroundColor::GetOpaqueRegion returns the rectangle as an opaque region and the region is subtracted later.
:mattwoodrow, in the attaching patch we treat the background display item is not opaque if the display item has a background-color animation even if the alpha channel value is 1.0 at that moment. Does it sound the right thing to do? Is there anything we still need to care?
Comment 18•6 years ago
|
||
Assignee | ||
Comment 19•6 years ago
|
||
Thank you, mattwoodrow!
I tried to write a reftest but it doesn't fail without the fix. I can actually see the black rectangle there just before the reftest harness takes a snapshot, it's gone on the snapshot, though I did fix some of issues that causes style flushes in the reftest harnes (bug 1441713, bug 1442063 and bug 1447874), it seems to there is(are) something invoking style flush.
Anyways, I will go without any test cases here.
Assignee | ||
Comment 20•6 years ago
|
||
Comment 21•6 years ago
|
||
Comment 22•6 years ago
|
||
bugherder |
Comment 23•6 years ago
|
||
Hiro, can you confirm that this is still a nightly-only feature and as such that it is disabled on 67? Thanks
Assignee | ||
Comment 24•6 years ago
|
||
Yes, this feature has been disabled on any betas and releases now.
Updated•6 years ago
|
Description
•