Repository navigation
layout: Give caret and text selection rectangles a consistent height / position - #47937
Merged
jdm merged 1 commit intoSep 16, 2026
Merged
Conversation
…/ position This change ensures that visible selection rectangles and carets have a consistent height: - Selection rectangles paint the entire height of the line box so the rectangle height should be consistent across the entire selected contents of the line. - Carets now paint the line gap height of the font metrics of the text fragment they are attached to. From a high level, this behavior matches Chromium. Signed-off-by: Martin Robinson <[email protected]>
mrobinson
force-pushed
the
selection-consistent-caret-and-rect-height
branch
from
September 11, 2026 04:47
fb8d624 to
5598a52
Compare
SimonSapin
approved these changes
Sep 15, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Sep 15, 2026
RichardTjokroutomo
pushed a commit
to RichardTjokroutomo/servo
that referenced
this pull request
Oct 6, 2026
…/ position (servo#47937) This change ensures that visible selection rectangles and carets have a consistent height: - Selection rectangles paint the entire height of the line box so the rectangle height should be consistent across the entire selected contents of the line. - Carets now paint the line gap height of the font metrics of the text fragment they are attached to. From a high level, this behavior matches Chromium. Testing: This change adds a Servo-specific WPT-style text. Fixes: servo#36924. Fixes: servo#47553. Signed-off-by: Martin Robinson <[email protected]>
hhhwsqhhh
pushed a commit
to hhhwsqhhh/servo
that referenced
this pull request
Oct 12, 2026
…/ position (servo#47937) This change ensures that visible selection rectangles and carets have a consistent height: - Selection rectangles paint the entire height of the line box so the rectangle height should be consistent across the entire selected contents of the line. - Carets now paint the line gap height of the font metrics of the text fragment they are attached to. From a high level, this behavior matches Chromium. Testing: This change adds a Servo-specific WPT-style text. Fixes: servo#36924. Fixes: servo#47553. Signed-off-by: Martin Robinson <[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.
This change ensures that visible selection rectangles and carets have a
consistent height:
rectangle height should be consistent across the entire selected
contents of the line.
text fragment they are attached to.
From a high level, this behavior matches Chromium.
Testing: This change adds a Servo-specific WPT-style text.
Fixes: #36924.
Fixes: #47553.