Skip to content

[Bug] tab-counter vanishing on active tab #3821

@jeff-etched

Description

@jeff-etched

Abstract

The tab-counter element in a tab-item disappears when the tab becomes the active one.

Steps to reproduce

  1. Start Firefox with clean profile.
  2. Install TST. (Appearance left as default "Proton")
  3. Create and collapse a tab tree and at least one other tab not in that tree.
  4. Switch between the collapsed tree root and the other tab
  5. Select No Decoration and repeat step 4.
  6. Specify an active tab background color in User Style Sheets and repeat step 4

Specifying only a background-color for tab-item.active .background (as per the snippet example):

tab-item.active .background { background-color: steelblue; }

Expected result

The tab-counter on a collapsed tree remains when the tree is selected, both in the default config and with a style sheet background color specified. For configurations with hidden tab-twisties, there is currently no visual distinction between an active tab that is a leaf node or a collapsed parent.

Actual result

The tab-counter of the collapsed root tab disappears when the tree is selected and the close button appears. Notably, if the 'crop with ".."' option is selected, it is apparent that the tab-counter is being pushed to the left and not rendered, not simply rendered over, due to whitespace appearing between the ellipses and the X.

Only with No Decoration and no User Style Sheet specified does the text element remain visible.

is selected, the tab-counter of the collapses tree becomes visible.

Environment

  • Platform (OS): x86_64 Tuxedo Linux 24.04.3 LTS (Ubuntu derivative with KDE Plasma 6.5.2 Wayland)
  • Version of Firefox: 146.0
  • Version (or revision) of Tree Style Tab: 4.2.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions