Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

[userChrome.css] What exactly causes "navigator-toolbox" to expand even if children are absolute positioned?

  • 1 відповідь
  • 1 має цю проблему
  • 8 переглядів
  • Остання відповідь від cor-el

more options

Here is current Firefox UI layout for 95.x: https://i.imgur.com/fDeWGc4.png

I'm trying to understand what causes it to expand even when its child `toolbar#nav-var` is set to be positioned absolutely. It no longer should contribute to the parent height or layout yet it still does. My frist thought was it is JS script that calculate the height and sets it however, there are no direct in-line height changes at all.

Here is the test css:

toolbox#navigator-toolbox > toolbar#nav-bar { position: absolute!important; height: 0!important; min-height: 0!important; }

toolbox#navigator-toolbox > toolbar#nav-bar:focus-within, toolbox#navigator-toolbox > toolbar#nav-bar:hover, toolbox#navigator-toolbox > toolbar#nav-bar:focus { position: absolute!important; height: inherit!important; min-height: inherit!important; }

Using CTRL+L shotrcut combination you can force the nav-bar inputbox to be `focused` which sets custom style that reveals it. Since it is positioned absolutely it should not contribute to layout yet when it appears, the render viewport shifts and `toolbox#navigator-toolbox` height automatically increases.

Here is current Firefox UI layout for 95.x: https://i.imgur.com/fDeWGc4.png I'm trying to understand what causes it to expand even when its child `toolbar#nav-var` is set to be positioned absolutely. It no longer should contribute to the parent height or layout yet it still does. My frist thought was it is JS script that calculate the height and sets it however, there are no direct in-line height changes at all. Here is the test css: toolbox#navigator-toolbox > toolbar#nav-bar { position: absolute!important; height: 0!important; min-height: 0!important; } toolbox#navigator-toolbox > toolbar#nav-bar:focus-within, toolbox#navigator-toolbox > toolbar#nav-bar:hover, toolbox#navigator-toolbox > toolbar#nav-bar:focus { position: absolute!important; height: inherit!important; min-height: inherit!important; } Using CTRL+L shotrcut combination you can force the nav-bar inputbox to be `focused` which sets custom style that reveals it. Since it is positioned absolutely it should not contribute to layout yet when it appears, the render viewport shifts and `toolbox#navigator-toolbox` height automatically increases.

Усі відповіді (1)

more options

Try to ask at the Firefox CSS subreddit forum.