Open
Bug 1389779
Opened 8 years ago
Updated 3 years ago
scrollIntoView() does not work on option elements
Categories
(Core :: Layout: Scrolling and Overflow, defect, P3)
Tracking
()
UNCONFIRMED
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | wontfix |
People
(Reporter: simon, Unassigned)
Details
Attachments
(1 file)
|
1.12 KB,
text/html
|
Details |
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.
Updated•8 years ago
|
Component: Untriaged → DOM: CSS Object Model
Product: Firefox → Core
Updated•8 years ago
|
Priority: -- → P3
Updated•8 years ago
|
status-firefox57:
--- → wontfix
Comment 1•3 years ago
|
||
Comment 2•3 years ago
|
||
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
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•