W3C home > Mailing lists > Public > www-style@w3.org > May 2014

Re: [cssom-view] scope of the 'scroll-behavior' property

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 26 May 2014 21:50:50 +1200
Message-ID: <CAOp6jLZ0EjJadE_fzxvUOtbER6WHMPXaGRd+irMB33FRFsgKCw@mail.gmail.com>
To: Simon Pieters <simonp@opera.com>
Cc: "L. David Baron" <dbaron@dbaron.org>, www-style <www-style@w3.org>
On Mon, May 26, 2014 at 8:44 PM, Simon Pieters <simonp@opera.com> wrote:

> On Sun, 25 May 2014 23:54:54 +0200, Robert O'Callahan <
> robert@ocallahan.org> wrote:
>
>  On Sat, May 24, 2014 at 12:09 AM, L. David Baron <dbaron@dbaron.org>
>> wrote:
>>
>>  Oh, I had assumed that 'auto' represented the user/system default,
>>> not backstop to 'scroll-behavior'.  Is it intentional that those are
>>> completely ignored?
>>>
>>>
>> Yes, it seems to me that scroll-behavior should have an 'auto' value which
>> is the initial value.
>>
>
> It was the API's "auto" value that was under discussion. Currently the CSS
> property does not have an "auto" value.


Yes, I was referring to the CSS property. It seems to me having an 'auto'
value for that property that falls back to UA/platform defaults would be
better than making 'smooth' do that. In particular it seems that currently
"smooth" in the JS API overrides UA defaults but CSS scroll-behavior:smooth
does not override UA defaults. It would be better if they were consistent.


>  But then I'm not sure what the use-cases are for the "initial" and
>> "smooth"
>> values of scroll-behavior.
>>
>
> "instant" is the initial value, and gives the same behavior as we have
> today.
>
> "smooth" allows the UA to do the scroll over a period of time in a
> UA-defined manner for scrolls triggered from navigation and from the
> scrolling APIs (unless the script specified "instant" or "smooth"
> explicitly).
>

> For use cases, please see http://www.w3.org/mid/op.
> ww4mdlp2idj3kv@simons-macbook-pro.local
>

Thanks. I guess that makes sense though it means scroll-behavior is a very
narrowly-useful property. I'm not sure it's worth having to be honest,
assuming we add the JS API.

Rob
-- 
Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w
Received on Monday, 26 May 2014 09:51:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:27 UTC