Bug 199451

Summary: scrollLeft can become positive in vertical-rl writing-mode when -webkit-scrollbar is used
Product: WebKit Reporter: Frédéric Wang (:fredw) <fred.wang>
Component: ScrollingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, cathiechen, karlcow, simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 161611    
Attachments:
Description Flags
testcase none

Frédéric Wang (:fredw)
Reported 2019-07-03 09:59:02 PDT
Created attachment 373393 [details] testcase See the attached testcase. The elements have writing-mode vertical-rl and so scrollLeft goes from 0 (right) to left -200 (left). However, when using -webkit-scrollbar, it is possible to make scrollLeft take a positive value. Note that this issue does not seem to happen with other writing-mode / direction values or when -webkit-scrollbar is not set: https://people.igalia.com/fwang/scrollLeft-scrollTop.html For now Cathie added a workround to https://w3c-test.org/css/cssom-view/scrollIntoView-vertical-rl-writing-mode.html to make the test pass in WebKit (it seems -webkit-scrollbar is used when using WebKit's layout test runner)
Attachments
testcase (1.89 KB, text/html)
2019-07-03 09:59 PDT, Frédéric Wang (:fredw)
no flags
Ahmad Saleem
Comment 1 2024-09-08 11:35:50 PDT
Firefox Nightly 132 and Safari Technology Preview 202 match in scrollbar placement while Chrome Canary 130 differ.
Note You need to log in before you can comment on or make changes to this bug.