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

Re: [csswg-drafts] scroll-policy: ease horizontal scrolling by wheel in vertical writing mode (#4380)

From: 張俊芝 via GitHub <sysbot+gh@w3.org>
Date: Wed, 09 Oct 2019 13:02:48 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-539990899-1570626167-sysbot+gh@w3.org>
> > the other reason is that it just tells browsers to maximise easing the content scrolling, no matter in what way they like
> I think that absent good reasons (e.g. allowing UA flexibility for performance reasons), it's better to specify behavior as specifically as possible. This ensures maximum interoperability. In other words, if we allow UAs to implement this feature in "no matter in what way they like" then multiple conforming browsers might behave differently. This makes life difficult for web authors. We should specify exactly how and what should happen for each value.

I think `scroll-policy` can only suggest it, in order to be **technically correct**, because wheel scroll even doesn't necessarily trigger content scroll according to the spec, the default action of wheel scroll is undefined according to the spec. Even almost all browsers default wheel scroll's action to content scroll, users can still change the default action by configuring the browsers, so I think `scroll-policy` can only suggest how to behave for any browsers that already use wheel scroll as content scroll, nothing is mandatory.

Fortunately, although it's **technically correct** for the CSS to just suggest how to behave, I believe in the real world, almost all browsers will do the same.

GitHub Notification of comment by Zhang-Junzhi
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4380#issuecomment-539990899 using your GitHub account
Received on Wednesday, 9 October 2019 13:02:50 UTC

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