Repository navigation
Retire two more !important rules and share draw mode's crosshair - #4324
Merged
Merged
Conversation
A quoted playground hides its controls, presets and the boxes that held only controls with the hidden attribute, which the theme's [hidden] already makes outrank any display the page states; the important class rule is gone. The Leaf mark's state tones add no specificity (.lf-dot:where(.working)), so the forced palette's later rule replaces each tone without importance. Draw mode's crosshair is one rule for the document and every shadow tree: the style query integration.css already ran for shadow trees now also serves the document, and chrome.css keeps only region capture's crosshair. The startup layer's comment now says where the layer sits: first in lf-base. Computed faces match HEAD on 13 corpus pages in Chromium and 3 in Firefox, in screen, draw and print; the mark's tones match under forced colours. Co-Authored-By: Claude Opus 5.5 <[email protected]>
leaf-agent
approved these changes
Oct 27, 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.
A follow-up to #4302, from a second review of the
!importantrules it kept. Two more go, and draw mode's crosshair becomes one rule instead of two. Nothing visible changes.initial/lf-playground.jssetshiddenon a quotation's controls, its presets and the boxes that held only controls. Leaf's[hidden]rule already beats any display the page states, so the important class rule inwidgets.cssand itslf-playground-control-boxmarker are gone..lf-dot:where(.working)and so on, which match the same elements as.lf-dot.workingbut add no specificity. The forced palette's later.lf-dotrule now replaces every tone on order, without!important.integration.cssalready reached shadow trees through a style query on--lf-draw-mode. That sheet also reaches the document, so dropping:hostfrom its selectors lets one rule serve both, andchrome.csskeeps only region capture's crosshair.theme.cssnow says the layer is first insidelf-base, not first in the theme.Computed styles for every element, shadow trees included, match main on 13 corpus pages in Chromium and 3 in Firefox, in screen, draw mode and print. The mark's tones match under forced colours. The quoted-playground and draw-mode browser tests pass, apart from
test_draw_mode_leaves_chrome_controls_usable, which times out waiting for.lf-fp-on-useron main too.