Open Bug 1175351 Opened 6 years ago Updated 6 years ago

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


(Core :: DOM: Events, defect)

38 Branch
Not set





(Reporter: xrsquared, Unassigned)



(1 file)

580 bytes, text/html
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
You need to log in before you can comment on or make changes to this bug.