Bug 199451 - scrollLeft can become positive in vertical-rl writing-mode when -webkit-scrollbar is used
Summary: scrollLeft can become positive in vertical-rl writing-mode when -webkit-scrol...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Scrolling (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 161611
  Show dependency treegraph
 
Reported: 2019-07-03 09:59 PDT by Frédéric Wang (:fredw)
Modified: 2019-07-03 09:59 PDT (History)
2 users (show)

See Also:


Attachments
testcase (1.89 KB, text/html)
2019-07-03 09:59 PDT, Frédéric Wang (:fredw)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric Wang (:fredw) 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)