Closed Bug 2094661 Opened 17 days ago Closed 1 day ago

Remove pre-Nova styles from `content-area.css`

Categories

(Firefox :: Tabbed Browser, task, P2)

task
Points:
1

Tracking

()

RESOLVED FIXED
164 Branch
Tracking Status
firefox164 --- fixed

People

(Reporter: sthompson, Assigned: kcochrane)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fidefe-nova-cleanup])

Attachments

(1 external file)

Remove the browser.nova.enabled conditions from browser/themes/shared/tabbrowser/content-area.css, keeping only the Nova styling of the content area, split view panels and tab dialog overlays.

Two rules in this file were put in place by other teams and are already tracked separately, so they are out of scope here:

  • the private browsing --tabpanel-background-color override on :root[privatebrowsingmode="temporary"] (bug 2094325)
  • the --button-border-radius override on moz-button in #selection-shortcut-action-panel (bug 2094229)

Content area borders and rounding:

  • Unwrap the large top-level @media -moz-pref("browser.nova.enabled") block: #navigator-toolbox (background transition, overflow: clip), #browser and #tabbrowser-tabbox flex layout, and #tabbrowser-tabpanels > :not(.split-view-panel) .browserContainer (rounded start corners, separator borders toward the toolbox and sidebars, macOS scrollbar insets, fullscreen handling).
  • #navigator-toolbox: reduce @media -moz-pref("sidebar.verticalTabs") or -moz-pref("browser.nova.enabled") to an unconditional border-bottom-style: none.
  • .browserContainer: inside the sidebar.revamp block, delete the pre-Nova @media not -moz-pref("browser.nova.enabled") corner radii for a shown sidebar and for AI windows.

Split view panels:

  • #tabbrowser-tabpanels[splitview] .split-view-splitter and the [splitview-selected-column="0"] / [splitview-selected-column="1"] margin overrides, which sit inside the same top-level Nova block as the rules above.
  • The top-level Nova block for split view panels: .split-view-panel > .browserContainer radius, border and macOS scrollbar insets; .split-view-panel.deck-selected > .browserContainer border color and outline width; the notification-message border placement; and the split-view-footer insets.
  • #tabbrowser-tabpanels[splitview]: fold the Nova border-radius on .split-view-panel:not(.deck-selected) into its base rule.
  • In browser/components/tabbrowser/test/browser/tabs/browser_tab_splitview_content_size.js, remove the SpecialPowers.pushPrefEnv calls that set browser.nova.enabled to true in test_selecting_a_panel_does_not_resize_content and test_selecting_a_panel_does_not_move_its_dialog.

Tab dialog overlays (.dialogOverlay[topmost="true"]):

  • Delete the pre-Nova @media not -moz-pref("browser.nova.enabled") rule that rounds the overlay inside .browserSidebarContainer:not(.responsive-mode) when the sidebar is shown.
  • Unwrap the Nova block: no radius for non-split panels by default, start corner radii matching the content area when a sidebar or AI window is open, radii for split view panels (selected and not selected), and no radius in fullscreen.
Duplicate of this bug: 2094247
Duplicate of this bug: 2094248
Duplicate of this bug: 2094250
Assignee: nobody → kcochrane
Status: NEW → ASSIGNED
Blocks: 2101574
Pushed by kcochrane@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f1b5e489532a https://hg.mozilla.org/integration/autoland/rev/d70c01bb058d Remove pre-Nova styles from content-area.css r=desktop-theme-reviewers,tabbrowser-reviewers,jsudiaman,tgiles
Status: ASSIGNED → RESOLVED
Closed: 1 day ago
Resolution: --- → FIXED
Target Milestone: --- → 164 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: