Closed Bug 378879 Opened 17 years ago Closed 4 months ago

HTML text input in a scaled foreignObject scrolls vertically when selected

Categories

(Core :: SVG, defect)

x86
Windows XP
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jwatt, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file, 1 obsolete file)

Attached image testcase (obsolete) —
When an HTML text input inside a scaled foreignObject is selected it often scrolls vertically. roc suggests in bug 356999 comment 5 that this could be due to rounding error in mouse event coordinates. This would seem to be backed up by the fact that the input scrolls up when text is selected using the mouse, but the input does not scroll when text selected using the keyboard. Actually, if the input has been scrolled up due to mouse interaction, keyboard interaction (such as using shift+arrow to extend a selection) will force it to scroll back down again. Scrolling caused by mouse interaction seems to be reset by keyboard interaction. (Dragging and dropping text seems to be the exception, where the interaction is via the mouse but the input is scrolled down, then again the actual insertion of the dropped text is probably going through the same code paths as keyboard input).
Attached file testcase
Fix testcase to specify a height on the <svg>.
Attachment #262890 - Attachment is obsolete: true
Assignee: general → nobody
QA Contact: ian → general
Severity: normal → S3

Seems OK now.

Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: