W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2019

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

From: cathiechen via GitHub <sysbot+gh@w3.org>
Date: Tue, 02 Jul 2019 14:59:44 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-507715677-1562079583-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:50 UTC