Bug 243517 - scrollIntoView() does not work on option elements
Summary: scrollIntoView() does not work on option elements
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 15
Hardware: All All
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2022-08-03 15:44 PDT by Ahmad Saleem
Modified: 2022-08-19 00:06 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2022-08-03 15:44:19 PDT
Hi Team,

Came across another interesting test case from Mozilla Bugzilla, where Safari 15.6 is failing similar to Firefox but Chrome is showing desired behavior.

Test Case (Changed into JSFiddle) - https://jsfiddle.net/5zuhsp24/show

Test Case (from Mozilla Bug) - https://bug1389779.bmoattachments.org/attachment.cgi?id=8896610

Mozilla Bug - https://bugzilla.mozilla.org/show_bug.cgi?id=1389779

___

STEPS TO REPRODUCE:

1) Open JSFiddle & Run

EXPECTED RESULTS:

In "Bug" Select, you should see text "I'm visible" similar to other like "workaround"

ACTUAL RESULT:

"I'm visible" is not showing up in scrollIntoView()

** Other Browsers **

Firefox Nightly 105 - Bug exists and it is same as Safari 15.6

Chrome Canary 106 - Bug does not exist and both "scrollIntoView()" and "workaround" show "I'm visible" text.

___

I think fixing this would be great so "no" workarounds are required.

Thanks for your continuous support.
Comment 1 Radar WebKit Bug Importer 2022-08-10 15:45:16 PDT
<rdar://problem/98475444>
Comment 2 Karl Dubost 2022-08-17 00:50:55 PDT
seeAlso https://bugzilla.mozilla.org/show_bug.cgi?id=1389779
Comment 3 Simon Fraser (smfr) 2022-08-17 22:22:57 PDT
Pull request: https://github.com/WebKit/WebKit/pull/3438
Comment 4 EWS 2022-08-19 00:06:19 PDT
Committed 253585@main (98069e5b6777): <https://commits.webkit.org/253585@main>

Reviewed commits have been landed. Closing PR #3438 and removing active labels.