Tabs do not shrink to pinned tab width when option is selected under Tab Scrolling flag

Description of the issue:

When the Tab Scrolling experiment is set to “Enabled - tabs shrink to pinned tab width”, tabs do not shrink to the pinned tab width (they are slightly wider)

Steps to Reproduce (add as many as necessary): 1. 2. 3.

  1. Go to brave://flags
  2. Find the #scrollable-tabstrip flag and set it to “Enabled - tabs shrink to pinned tab width”
  3. Open tabs until there are too many and the scrolling activates. The tab size remains slightly larger than the pinned tab

Actual Result (gifs and screenshots are welcome!):

The first tab is a pinned tab, the rest are normal tabs, notice that the unpinned tabs are not the same width as the pinned tabs

Expected result:

The tabs shrink to the width of the pinned tab.

Example in Thorium with the same flag:
image

Reproduces how often:

Every time

Operating System and Brave Version(See the About Brave page in the main menu):

Windows 11

Version 1.78.102 Chromium: 136.0.7103.113 (Official Build) (64-bit)

Additional Information:

n/a