Devtools Style editor - Style sheet could not be loaded [ x ] close button has wrong color with dark theme
Categories
(DevTools :: Style Editor, defect, P3)
Tracking
(firefox-esr78 unaffected, firefox88 wontfix, firefox89 wontfix, firefox90 verified)
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | unaffected |
firefox88 | --- | wontfix |
firefox89 | --- | wontfix |
firefox90 | --- | verified |
People
(Reporter: cfogel, Assigned: GPR)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: good-first-bug, regression)
Attachments
(5 files)
Affected versions
- 88.0a1(2021-03-25), 87.0b2
Affected platforms
- Windows 10;
Steps to reproduce
- not sure how to trigger it consistently, happened slow-loading internet spikes;
- Launch Firefox, enable DevTools set it to dark theme;
- Open the Stylesheet tab;
- Load any webpage;
Expected result
- Stylesheet error - [ x ] close button is visible;
Actual result
- with the current color scheme the [ x ] close button is not visible on Dark Theme (dark grey background + black icon);
Regression range
- cannot get a proper regression range until the message can be consistently triggered;
- Last good: 2019-09-27 build that I managed to confirm;
Additional notes
- attached "good version" screenshot;
- attached recording to best illustrate the issue on the next comment.
Reporter | ||
Updated•3 years ago
|
Reporter | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Comment 2•3 years ago
•
|
||
Thank you Cristian for the report, I can reproduce it on my machine Win10 + Fx Nightly
Edit: the description has changed, not clear how to reproduce now.
Honza
Comment 3•3 years ago
•
|
||
Cristian, the description is talking about "the eye icon appears pixelated or deformed at times while loading" also in bug 1701555.
Cloned description?
Reporter | ||
Comment 4•3 years ago
|
||
Indeed, cloned and jumped over the section when updating data for this bug.
Thanks Honza for pointing it out, have updated the initial comment with correct description.
Comment 5•3 years ago
|
||
Is there any page I could load to see the "Stylesheet could not be loaded" error?
Reporter | ||
Comment 6•3 years ago
|
||
With the initial report it was noticed it on https://www.stirileprotv.ro, https://www.bbc.com/and some links from the Pocket-newtab.
Nothing consistent and reproducible 100% of the time though.
Updated•3 years ago
|
Comment 7•3 years ago
•
|
||
Attaching a test case found here as well as regression range made on Windows 10x64. It seems that the test case must be saved locally in order to reproduce the issue.
Last good revision: 5e43a93a9dc5eac61977cd87cf45d8d27565dcf5
First bad revision: c9a470a98696c8524f73d97d0255abc2a52ffa62
Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=5e43a93a9dc5eac61977cd87cf45d8d27565dcf5&tochange=c9a470a98696c8524f73d97d0255abc2a52ffa62
Updated•3 years ago
|
Comment 8•3 years ago
•
|
||
Thank you Alexandru!
Note that the test case in comment #7 needs to be loaded through the file: protocol
This change might caused the problem. We should look at what CSS was broken by that.
https://hg.mozilla.org/integration/autoland/rev/8dae0f4af8f85654c68b853133d658aacdb9ea20
Honza
Assignee | ||
Comment 9•3 years ago
|
||
Hello, I would like to work on this bug.
Comment 10•3 years ago
|
||
Thank you for the help Gagah.
Please don't forget to look at the comment #8 and see why this bug happened in the first place.
Assignee | ||
Comment 11•3 years ago
|
||
So the regression happens because messageCloseButton
is changed from div
to button
. It makes currentColor
in messageCloseButton
css using inherit color
from default firefox button style.
The fix is pretty simple, just add color: inherit
or color: currentColor
for messageCloseButton
css to explicitly inherit or use color
from its parent.
The next problem is background-color
for .messageCloseButton:hover
is hardcoded to gray
. What color/variable should I use to change this background-color
?
Assignee | ||
Comment 12•3 years ago
|
||
Hello, I still need information about background-color
for .messageCloseButton:hover
because currently it's hardcorded to gray
and the background color is blending with the cross color.
Comment 13•3 years ago
|
||
Julian, can you please help here, thank you!
Comment 14•3 years ago
|
||
Reusing the variables we use on the main toolbar should be fine here.
For fill
(https://searchfox.org/mozilla-central/rev/a8773ba2a8f015e0525f219a7e55087b04d30258/devtools/client/shared/components/NotificationBox.css#98) you can use var(--theme-icon-color)
.
For background-color
(https://searchfox.org/mozilla-central/rev/a8773ba2a8f015e0525f219a7e55087b04d30258/devtools/client/shared/components/NotificationBox.css#102), you can use var(--theme-button-active-background)
.
We also need to remove filter: invert(1)
at https://searchfox.org/mozilla-central/rev/a8773ba2a8f015e0525f219a7e55087b04d30258/devtools/client/shared/components/NotificationBox.css#103
Those variables automatically change depending on the theme.
Assignee | ||
Comment 15•3 years ago
|
||
Thanks for the information! Now I can continue to work on the fix.
Assignee | ||
Comment 16•3 years ago
|
||
Comment 17•3 years ago
|
||
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c95906cdbbea Change message close button fill and hover background color. r=jdescottes
Comment 18•3 years ago
|
||
bugherder |
Comment 19•3 years ago
|
||
Should we nominate this for Beta uplift?
Comment 20•3 years ago
|
||
We can let it ride the trains, it's a minor visual nit and it regressed in 85.
Updated•3 years ago
|
Comment 21•3 years ago
|
||
I have reproduced this bug using the test case from comment 7, on an affected Nightly build 2021-03-28.
The issue is verified as fixed on Beta 90.0b4 under Win 10 x64.
Description
•