Open Bug 1175351 Opened 9 years ago Updated 3 years ago

Inserting element into a container that has display: table cause scroll event to be fired on contained textarea

Categories

(Core :: DOM: Events, defect, P5)

38 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: xrsquared, Unassigned)

Details

Attachments

(1 file)

Attached file testcase.html
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20150602115007

Steps to reproduce:

Add a DOM element into a div that is styled to be display: table or display: flex, which also contains a textarea.

The attached test case can be used to reproduce the bug:
1. Open the console
2. Click on "Add an element"
Nothing messages should show up in the console
3. Click on "Add some text"
4. Scroll down in the textarea
5. Clear the console
6. Click on "Add an Element"
The message "scroll event fired" should show up in the console


Actual results:

Scroll event fired on the textarea if the textarea is not scrolled to the top.


Expected results:

Scroll event not fire on the textarea. The scroll event doesn't fire for Safari 8 and Chrome 42.
Component: Untriaged → DOM: Events
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: