Re: [csswg-drafts] [cssom-view-1] Clarify/specify scrollLeft value in right-to-left mode (#1354)

Here is a more general with different CSS direction and writing-mode: https://people.igalia.com/fwang/scrollLeft-scrollTop.html

From the spec:
"The x-coordinate increases rightwards, and the y-coordinate increases downwards."
 ( https://drafts.csswg.org/cssom-view/#scrolling-area-origin )
So WebKit, Gecko and Blink are consistent here. And IE's old behavior did not match the current spec.

Additionally the scrolling area x,y coordinates are converted before performing a scroll so that
- x is nonnegative in rightward overflow direction
- x is nonpositive in leftward overflow  direction
- y nonnegative in downwards overflow  direction
- y nonpositive in upwards overflow  direction
( https://drafts.csswg.org/cssom-view/#scroll-an-element )

So WebKit and Gecko are now consistent and match the spec. Blink's behavior does not match the spec.

-- 
GitHub Notification of comment by fred-wang
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1354#issuecomment-508161610 using your GitHub account

Received on Wednesday, 3 July 2019 16:19:55 UTC