Closed Bug 1634075 Opened 4 years ago Closed 4 years ago

[lwtheme with image, light text] Text in gCal alert has drop shadow

Categories

(Toolkit Graveyard :: Notifications and Alerts, defect)

defect

Tracking

(firefox-esr68 unaffected, firefox75 unaffected, firefox76 unaffected, firefox77+ fixed)

RESOLVED FIXED
mozilla77
Tracking Status
firefox-esr68 --- unaffected
firefox75 --- unaffected
firefox76 --- unaffected
firefox77 + fixed

People

(Reporter: mconca, Assigned: Gijs)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files, 1 obsolete file)

Attached file (deleted) β€”

On the latest NIghtly (77.0a1 2020-04-29) all of my Google Calendar alerts have fuzzy text, it looks like a drop shadow. This is reproducible in the console by alert("Text"). See attached example.

Component: General → Notifications and Alerts
Product: Firefox → Toolkit

Thanks for filing!
Couldn't reproduce this yet. Tested on Linux and Windows 10 with latest Nightly (clean profile).

I can't reproduce by just firing an alert() on current nightly on a bmo page on Windows 10... so unsure what's going on.

Mike, if you inspect the alert text with the browser toolbox (ctrl-alt-shift-i), does the CSS pane's computed style tab list a text-shadow rule? If so, can you take a screenshot of where it came from?

Flags: needinfo?(mconca)
Attachment #9144358 - Attachment is private: true
Attached image fuzzy.jpg (deleted) β€”
Attached image image.png (deleted) β€”

There is definitely a text shadow rule.

Flags: needinfo?(mconca)

That rule only applies for lwthemes that include images. The text-shadow is white for light coloured backgrounds (to make sure dark text stands out, so you wouldn't notice it in this dialog which is dark-text-on-light-background anyway) and black for dark coloured backgrounds (to make sure light text stands out, which looks really bad here). It should be disabled inside the prompts.

I imagine Mike would have seen this before if this wasn't a recent regression.

Summary: Text in gCal alert has drop shadow → [lwtheme with image, light text] Text in gCal alert has drop shadow

[Tracking Requested - why for this release]:
Unusable prompts with some themes

(still digging to find an actual regressor, but this regressed second half of april)

Regressed by: 1583696
Has Regression Range: --- → yes

These styles:

https://searchfox.org/mozilla-central/rev/7fd1c1c34923ece7ad8c822bee062dd0491d64dc/toolkit/content/xul.css#579-582

Are supposed to stop this, but they don't anymore, because the actual prompt element is no longer a XUL element after the patch from bug 1583696

Matt, :ntim is sick, can you take a look please?

Flags: needinfo?(MattN+bmo)

I guess we can just add the html| namespace to that existing selector? Paul is this something you could take? I have too much going on this week with the Fx76 release and the merge coming up.

Flags: needinfo?(MattN+bmo) → needinfo?(pbz)

I can take and ask Paul for review.

Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Flags: needinfo?(pbz)

Bah, actually, there are other issues, e.g. alert("hi".repeat(1000)) gets you a scrollbar on 76 but text escaping the box on nightly (both before and after my patch).

Things that were broken:

  • prompts become unreadable when using dark-background lwthemes, because they
    keep the window text-shadow (due to the namespace change of tabmodalprompt)
    = prompts with long text without word-wrap possibilities
    (e.g. alert("x".repeat(1000))) cause the text to escape its container.
Attachment #9144433 - Attachment is obsolete: true
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/0af74082185e
back out changeset 0aa77ee04caa (bug 1583696) over regressions with overly long non-wrapping prompt text and visual appearance with lightweight themes, r=MattN
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77

Is this related to Bug 1633708 perhaps?

Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: