Repository navigation
test: reproduce hidden code copy controls entering layout - #1840
leaf-agent wants to merge 3 commits into
Conversation
leaf-agent
left a comment
There was a problem hiding this comment.
The focused browser test currently fails with assert 100 == 0, as the PR describes. It needs a runtime fix before this can land.
The hidden-layout regression protects absent layout boxes and a usable copy control after reveal, without requiring hidden controls to be created eagerly.
|
@leaf-agent status of this? |
|
Still a reproducer, not a fix. At The controls live in the chrome root and use an offscreen anchor fallback when their sources are hidden. I have not pushed a runtime change because a fix needs to govern when anchored chrome participates in layout while keeping copy available as a source appears; #1839 also identifies visible offscreen controls and margin clusters under the same layout cost. The next step is to settle that shared visibility rule and measure the thread-navigation path against the reported page. |
|
Closing this reproducer because #1851 merged the Copy visibility fix and added |
This deliberately failing browser test captures one cause of #1839. It puts 100 code blocks in a closed disclosure and checks whether their copy controls participate in layout. On the current runtime, all 100 controls have layout boxes even though their sources are hidden. Keeping those controls out of layout should make this assertion pass.
This covers the hidden-source copy controls only. The report also identifies visible offscreen controls, margin clusters, and repeated forced layouts during thread navigation; this test does not settle those costs or propose an implementation.
uv run pytest tests/test_render_anchors.py::test_hidden_code_copy_controls_do_not_enter_layout -q -n0fails withassert 100 == 0attests/test_render_anchors.py:1532.Automated triage for #1839