Repository navigation
Meet the contents spine's lines flush at every marker, centred, and join a changed run as one bar - #6113
Merged
Conversation
…ithout a waist Magnified at 2x in Firefox and Chromium, three junctions on the contents spine were off: - A thread's bare ring kept the paper hairline its disc needed once Both took the disc away, so the spine and the lens stopped a pixel short of it on both sides, and below the filled marker of a section with a thread, while every other marker meets the line. A thread's halo is now none, in forced colours too. - Each changed section's stretch ended in round caps at the next marker, so where two changed sections met the bar pinched to a waist, on the map and in the outline. Each stretch now runs its caps half its width past its ends, which lie under a marker on the map, so a changed run is one bar. - A ring's paper fill ran under its own stroke, leaving a dark fringe where a changed stretch leaves the ring in the dark scheme. The fill now stops inside the stroke; the filled marker for where you are keeps its fill under the stroke, so it has no seam. The contents marks test found a mark on the map by its marker's box shadow, which a bare ring no longer has. It now reads the marker's ring colour, and says that where the reader is, the filled marker stands in for a thread's ring, which the map has drawn since Both.
A fresh review of the magnified junctions found two more faults. The On me disc kept a paper hairline round it, so it became the only mark the rule, the lens and a changed stretch stopped short of. And a section's 6px marker stood half a pixel off the 1px spine, which Firefox and Chromium both round to a whole device pixel to the right at 2x, so plain rings, sections' thread rings and On me discs sat a pixel right of the line while subsections and where you are stood centred. The disc's halo is now the tint alone, and a section's marker is 7px, so every marker is an odd number of pixels across and centres on the spine.
leaf-agent
approved these changes
Nov 16, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 16, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 16, 2026
#6184) #6113 deliberately widened a section's marker on the contents map's spine from 6px to 7px, so every marker is an odd number of pixels across and centres on the 1px spine instead of standing half a pixel off it. `test_a_contents_spine_maps_the_document_until_the_user_enters_it`, a nightly journey that #6113's own CI didn't run, still expected 6px and has failed since. This updates its expected widths to 7px; its other assertions, including that every marker centres on the spine, are unchanged. It also corrects the `toc.css` header, which still described the top-level markers as 6px rings. Nothing on screen changes beyond what #6113 already shipped. Run by node id, the journey fails on main with `['9px', '7px', '3px', '3px', '7px', '7px', '7px'] == ['9px', '6px', ...]` and passes with this change. Closes #6175 — automated triage --------- Co-authored-by: leaf-agent <[email protected]>
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.
Where the contents spine's lines meet its circles, several junctions drew badly at 2x in both Firefox and Chromium. This fixes four of them:
Worth weighing: since #6098, the filled marker for where you are replaces a thread's ring, so a thread in the section being read shows only in its link's preview. The contents marks test used to find marks by the marker's box shadow. It now reads the ring colour and states that behaviour.
max-sixty asked for this review on the contents marks Leaf page. The page shows each junction on main and fixed, magnified. A fresh reviewer, given only the magnified captures, found the hairline on the disc and the off-centre markers after my first pass, and then measured every marker within a tenth of a device pixel of the line.
Tests: the two contents marks tests pass. Before-and-after stills cover the map and the outline, in both schemes, in Firefox and Chromium.