Closed Bug 1539720 Opened 5 years ago Closed 8 months ago

caret clamping in scrolled elements is broken

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox-esr102 --- wontfix
firefox-esr115 --- wontfix
firefox116 --- wontfix
firefox117 --- wontfix
firefox118 --- fixed

People

(Reporter: heycam, Assigned: emilio)

References

Details

(Keywords: regression)

Attachments

(2 files)

Bug 335560 added clamping to the caret position so that if you are scrolled to the edge of an element, and the caret is inside that element but outside of the visual overflow rect of the scrolled element, the caret is clamped to be just inside the rect so that it will still be visible if the scroll frame is clipped.

This regressed some time here in March 2015:

https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=c5b90c003be8&tochange=993eb76a8bd6

(Aside: why isn't that using the scrollable overflow rect instead of visual overflow?)

Blocks: 335560
Attached file test

This is the test I was using. Click on an "x" and press End to move to the end of the line. The caret isn't visible.

Severity: normal → S3
Duplicate of this bug: 1602305
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/970525aa04f1
Fix caret overflow adjustment computations. r=masayuki
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a6a541637edd
Fix test_reftests_with_caret.html failures. r=emilio CLOSED TREE
No longer blocks: 335560
Depends on: 335560
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5841f85bd162
Fix caret overflow adjustment computations. r=masayuki
Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/autoland/rev/4a20acf7c387
Annotate new reftests as failing with drawSnapshot.
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: