Repository navigation
fix: stop a tab panel's name rule restyling every section, and update two tests for #6088 - #6167
Merged
Merged
Conversation
… two tests for #6088 #6088 (name every widget by the markup it opens with) turned three browser tests red on main in push run 43850158443. Each passes on its parent 66ce9db and fails from 1740bb5. - test_resolving_a_thread_restyles_what_focus_marks: a resolve restyled 264 elements on a 4-section page and 404 on a 24-section one. The culprit is the nested `& + *` rule in tabs.css that sets the top margin of the block after a tab panel's name. Nesting desugars `&` into an :is() holding a complex selector, and Chromium then restyled every section when the focus mark moved. The rule is now written out flat, matching the same elements (computed margin and --lf-frame-start are unchanged on a row strip and a side list), and the count no longer grows with the page. - test_the_g_chord_selects_a_visible_tab_hint: #6088 gave each tab an id (lf-tab-<panel id>) so its panel can be aria-labelledby it, and a go-to hint names its member's own id before aria-controls. The hint still selects and focuses the tab; the test now addresses it by that id. - test_design_mode_reads_each_shape_of_control_into_the_anchor_its_routes_carry: the "generated words stay out of the anchor" subtest relied on the queue's `summary="pages"` attribute being generated text. #6088 made the summary authored markup in the panel's header, so "Backup pages" is now the page's own words, and the subtest's premise is gone. It is removed. Refs #3985
This was referenced Nov 16, 2026
Merged
max-sixty
pushed a commit
that referenced
this pull request
Nov 16, 2026
…ng the label attribute (#6172)
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#6088 (name every widget by the markup it opens with) turned three browser tests red on
mainin push run 43850158443. Each one passes on #6088's parent66ce9db8fand fails from1740bb536on, including currentmain. One of the three is a real performance regression intabs.css. The other two are tests whose premise #6088 changed on purpose. With this change, all three pass locally, along with the 43 tests intests/browser/widgets/test_tabs.pyandtests/browser/navigation/test_tabs.py.test_resolving_a_thread_restyles_what_focus_marks. Resolving a thread restyled 264 elements on a page of 4 sections and 404 on a page of 24, so the cost grew with the page. Reverting Name every widget by the markup it opens with, and retire x-name #6088's stylesheets one at a time narrowed it totabs.css. Within that file, the culprit is the nested& + *rule that sets the top margin of the block after a tab panel's name. Nesting expands&into an:is()that holds a complex selector. Written out flat, the rule matches the same elements and the test passes. On a row strip and on a side list, the following block's computedmargin-block-startand--lf-frame-startare the same before and after the change, so nothing on screen changes.test_the_g_chord_selects_a_visible_tab_hint. Name every widget by the markup it opens with, and retire x-name #6088 gave each tab an id (lf-tab-<panel id>) so that its panel can bearia-labelledbythe tab. A go-to hint'sdata-lf-go-to-targetuses the member's own id beforearia-controls, so the hint now nameslf-tab-tab-bathinstead oftab-bath. The hint still selects and focuses the tab. The test now addresses the tab by its new id.test_design_mode_reads_each_shape_of_control_into_the_anchor_its_routes_carry. Its "generated words stay out of the anchor" subtest relied on the queue'ssummary="pages"attribute being generated text. Name every widget by the markup it opens with, and retire x-name #6088 moved the summary into authored markup in the panel's<header>, so "Backup pages" is now the page's own words, and the subtest's premise no longer holds. This change removes the subtest.A fourth new failure in that run is not part of this PR:
test_a_package_feed_keeps_a_rewrite_where_a_card_wouldlost the end of a typed rewrite across a reload. It passes unloaded, and it is tracked separately from #3985.Refs #3985 — automated triage