diff --git a/chrome/autohide_bookmarks_and_main_toolbars.css b/chrome/autohide_bookmarks_and_main_toolbars.css index ab34ffe..6bbfb9f 100644 --- a/chrome/autohide_bookmarks_and_main_toolbars.css +++ b/chrome/autohide_bookmarks_and_main_toolbars.css @@ -83,7 +83,7 @@ See the above repository for updates as well as full license text. */ :root[window-modal-open] #urlbar[popover], #mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts,#selection-shortcut-action-panel,#chat-shortcuts-options-panel,#tab-preview-panel)) ~ toolbox #urlbar[popover], #navigator-toolbox:is(:hover,:focus-within) #urlbar[popover], -#urlbar-container > #urlbar[popover]:is([focused],[open]){ +:where(:root[sessionrestored]) #urlbar-container > #urlbar[popover]:is([focused],[open]){ opacity: 1; pointer-events: auto; transition-delay: 100ms; diff --git a/chrome/autohide_main_toolbar.css b/chrome/autohide_main_toolbar.css index 09128d4..1d069b8 100644 --- a/chrome/autohide_main_toolbar.css +++ b/chrome/autohide_main_toolbar.css @@ -69,7 +69,7 @@ See the above repository for updates as well as full license text. */ transition-delay: 0ms; transform: translateY(0); } -#urlbar-container > #urlbar[popover]:is([focused],[open]){ +:where(:root[sessionrestored]) #urlbar-container > #urlbar[popover]:is([focused],[open]){ transition-duration: 100ms; /* Faster when focused */ } /* This ruleset is separate, because not having :has support breaks other selectors as well */ diff --git a/chrome/autohide_toolbox.css b/chrome/autohide_toolbox.css index c36d29a..9ef7e4f 100644 --- a/chrome/autohide_toolbox.css +++ b/chrome/autohide_toolbox.css @@ -46,7 +46,7 @@ See the above repository for updates as well as full license text. */ :root[window-modal-open] #urlbar[popover], #mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts,#selection-shortcut-action-panel,#chat-shortcuts-options-panel,#tab-preview-panel), > #tab-group-editor > [panelopen]) ~ toolbox #urlbar[popover], #navigator-toolbox:is(:hover,:focus-within,[movingtab]) #urlbar[popover], -#urlbar-container > #urlbar[popover]:is([focused],[open]){ +:where(:root[sessionrestored]) #urlbar-container > #urlbar[popover]:is([focused],[open]){ pointer-events: auto; opacity: 1; transition-delay: 33ms;