Open Bug 1389779 Opened 7 years ago Updated 2 years ago

scrollIntoView() does not work on option elements

Categories

(Core :: Layout: Scrolling and Overflow, defect, P3)

55 Branch
defect

Tracking

()

UNCONFIRMED
Tracking Status
firefox57 --- wontfix

People

(Reporter: simon, Unassigned)

Details

Attachments

(1 file)

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

Steps to reproduce:

Calling HtmlOptionElement.scrollIntoView() should scroll to option element. See attached testcase, which also includes a workaround using scrollTop

Works fine on Google Chrome 60 (Linux) and Microsoft Edge (Windows 10)


Actual results:

nothing


Expected results:

Text I'm visible should be visible in select element.
Component: Untriaged → DOM: CSS Object Model
Product: Firefox → Core
Priority: -- → P3

That's because this nsListControlFrame is a scroll frame but doesn't have LayoutFrameType::Scroll, so https://searchfox.org/mozilla-central/rev/f3616b887b8627d8ad841bb1a11138ed658206c5/layout/base/PresShell.cpp#3720 skips it. Should be easy-ish to fix but we should look for similar usages of LayoutFrameType::Scroll.

Component: DOM: CSS Object Model → Layout: Scrolling and Overflow
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: