Re: [csswg-drafts] [cssom-view] The values of ScrollTop and ScrollLeft have been made implementation-defined, the spec needs to standard-define them. (#2704)

When calculating the x-coordinate of leftward overflow direction scrolling box,
https://drafts.csswg.org/cssom-view/#scroll-an-element says:
> If box has leftward overflow direction
>    Let x be min(0, max(x, element padding edge width - element scrolling area width)).

It somehow expects x to be negative, otherwise x will always be 0. So the default scroll position is expected on the right side.


Regarding the upward overflow direction scrolling box, the default scroll position is expected on the bottom side.
> If box has upward overflow direction
>     Let y be min(0, max(y, element padding edge height - element scrolling area height)).

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

Received on Tuesday, 2 July 2019 14:59:46 UTC