Closed Bug 1753761 Opened 2 years ago Closed 2 years ago

Eliminate preprocessor %includes from compact theme stylesheets

Categories

(Firefox :: Theme, task)

task
Points:
1

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: sfoster, Assigned: bigiri)

References

Details

(Whiteboard: [fidefe-2022-mr1-css-linting])

Attachments

(2 files)

Replace the %includes with either @import or by inlining the included stylesheet. See bug 1659584 for details. This bug should cover:

  • browser/themes/{platform}/compacttheme.css
    • browser/themes/shared/compacttheme.inc.css
Blocks: 1753762
No longer blocks: 1753762
No longer depends on: 1753757
Whiteboard: [fidefe-2022-mr1-css-linting]
Assignee: nobody → bigiri
Status: NEW → ASSIGNED

Replaced preprocessor includes with platform media queries.

How can I test this? Also, do the media queries -moz-windows-compositor: 0 and -moz-windows-glass restrict the platform to Windows?

Flags: needinfo?(sfoster)
Attachment #9266056 - Attachment description: WIP: Bug 1753761 - Remove preprocessor includes from compact theme stylesheets → Bug 1753761 - Remove preprocessor includes from compact theme stylesheets r=Dao!

(In reply to Bernard Igiri from comment #2)

How can I test this? Also, do the media queries -moz-windows-compositor: 0 and -moz-windows-glass restrict the platform to Windows?

I answered in phabricator. I would think -moz-windows-compositor: 0 and -moz-windows-glass would only match for windows, but I think regardless all the contents of the windows/compactheme.css should go inside a @media ( moz-platform: windows ) block. Meaning those should nest inside.

compactheme.css is loaded when you pick the dark or light theme. You can confirm that by checking in the inspector for rules that apply to #urlbar. Obviously the bulk of this stylesheet is overrides for windows, so you'll want to check there to verify.

Flags: needinfo?(sfoster)
Attachment #9266056 - Attachment description: Bug 1753761 - Remove preprocessor includes from compact theme stylesheets r=Dao! → WIP: Bug 1753761 - Remove preprocessor includes from compact theme stylesheets r=Dao!

Renamed compactthemes.inc.css to a more accurate name.

Depends on D140052

Attachment #9267073 - Attachment description: WIP: Bug 1753761 - Remove preprocessor includes from compact theme stylesheets r=Dao! → Bug 1753761 - Rename compacttheme.inc.css r=Dao!
Attachment #9266056 - Attachment description: WIP: Bug 1753761 - Remove preprocessor includes from compact theme stylesheets r=Dao! → Bug 1753761 - Remove preprocessor includes from compact theme stylesheets r=Dao!
Pushed by bigiri@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/006e488e84ad
Remove preprocessor includes from compact theme stylesheets r=dao
https://hg.mozilla.org/integration/autoland/rev/334ecc769a3a
Rename compacttheme.inc.css r=dao,Itiel
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: