Open Bug 1625721 Opened 5 years ago Updated 3 years ago

Split arrow panel styles and load them as a shadow DOM stylesheet

Categories

(Toolkit :: Themes, task, P3)

task

Tracking

()

mozilla77
Tracking Status
firefox77 --- affected

People

(Reporter: ntim, Unassigned)

References

(Blocks 3 open bugs)

Details

Attachments

(1 file)

We should split out styles from xul.css and popup.css into a new file.

The biggest benefit is that we can get rid of these duplicated styles:

https://searchfox.org/mozilla-central/rev/3a9dbc403f33cca1ff43326d78340add7d996350/browser/base/content/browser.css#1030-1103

This works very nicely and is a really good clean up, but it breaks the transform animation on the temporary cui-widget-panels. I'm guessing this is because the CSS for the animation is now only loaded in the shadow root, and since the temporary panels are dynamically appended, the CSS doesn't have time to load in time for the transition.

Priority: -- → P3
Assignee: nobody → ntim.bugs
Status: NEW → ASSIGNED
Blocks: 1625720
Pushed by ntim.bugs@gmail.com: https://hg.mozilla.org/integration/autoland/rev/6c312e49ee09 Split out arrow panel styles and load them as shadow DOM stylesheet. r=dao
Flags: needinfo?(ntim.bugs)
Pushed by ntim.bugs@gmail.com: https://hg.mozilla.org/integration/autoland/rev/8a0b7de7386c Split out arrow panel styles and load them as shadow DOM stylesheet. r=dao
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Regressions: 1632004
Regressions: 1632034
Blocks: 1632175
Regressions: 1632484
Regressions: 1632784
Regressions: 1633356
Depends on: 1634865
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

The backout of bug 1625720 and bug 1625721 also fixed the border of arrow panels which didn't have the proper fill under the border, especially under the border-radius:
https://screenshots.mattn.ca/compare/?oldProject=mozilla-central&oldRev=5daf558349272b05cee2c9097a9499ff4d7363e6&newProject=mozilla-central&newRev=71cb60d53ecd0c357f004df14c673184f85b91f7

Assignee: ntim.bugs → nobody
Status: REOPENED → NEW

To clarify what happened, this bug was reopened because changeset 8a0b7de7386c was backed out in bug 1634865 for causing regressions such as bug 1633356.

Blocks: 1631726
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: