<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>205059</bug_id>
          
          <creation_ts>2019-12-10 05:58:59 -0800</creation_ts>
          <short_desc>Scroll Behavior: In quirk mode, the scroll-behavior value of &lt;body&gt; is from &lt;html&gt;</short_desc>
          <delta_ts>2021-12-16 00:45:07 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>188043</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="cathiechen">cathiechen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jonlee</cc>
    
    <cc>rik</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1597149</commentid>
    <comment_count>0</comment_count>
    <who name="cathiechen">cathiechen</who>
    <bug_when>2019-12-10 05:58:59 -0800</bug_when>
    <thetext>In quirk mode, to perform a window scroll, the document()-&gt;scrollingElement() is &lt;body&gt;, while the scroll-behavior value is from &lt;html&gt;.

See: https://github.com/w3c/csswg-drafts/issues/2977</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1802476</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-10-10 13:11:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/84078714&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1824580</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-12-15 16:37:52 -0800</bug_when>
    <thetext>Cathie, could you clarify the bug here?

From my testing, we correctly use the value of `scroll-behavior` from the &lt;html&gt; element in non-quirks mode, and correctly do not propagate the value from the body.

In quirks mode, we also don&apos;t allow the value of `scroll-behavior` on the body to affect window or scrollingElement scrolls, but are you saying that we should?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1824581</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-12-15 16:38:10 -0800</bug_when>
    <thetext>A testcase showing the bug would be useful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1824697</commentid>
    <comment_count>4</comment_count>
      <attachid>447333</attachid>
    <who name="cathiechen">cathiechen</who>
    <bug_when>2021-12-16 00:21:34 -0800</bug_when>
    <thetext>Created attachment 447333
scroll-behavior.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1824699</commentid>
    <comment_count>5</comment_count>
      <attachid>447334</attachid>
    <who name="cathiechen">cathiechen</who>
    <bug_when>2021-12-16 00:34:38 -0800</bug_when>
    <thetext>Created attachment 447334
scroll-behavior.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1824701</commentid>
    <comment_count>6</comment_count>
    <who name="cathiechen">cathiechen</who>
    <bug_when>2021-12-16 00:45:07 -0800</bug_when>
    <thetext>Hi Simon,

Just uploaded a test case.

I mean, `document.scrollingElement` is `&lt;body&gt;` element, but it takes `&lt;html&gt;` value instead, it seems a little weird.
We had an issue to discuss this in github. https://github.com/w3c/csswg-drafts/issues/2977</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>447333</attachid>
            <date>2021-12-16 00:21:34 -0800</date>
            <delta_ts>2021-12-16 00:34:38 -0800</delta_ts>
            <desc>scroll-behavior.html</desc>
            <filename>scroll-behavior-001.html</filename>
            <type>text/html</type>
            <size>390</size>
            <attacher name="cathiechen">cathiechen</attacher>
            
              <data encoding="base64">PGh0bWwgc3R5bGU9InNjcm9sbC1iZWhhdmlvcjogc21vb3RoOyI+CiAgICA8Ym9keSBzdHlsZT0i
c2Nyb2xsLWJlaGF2aW9yOiBhdXRvOyI+CiAgICAgICAgPGlucHV0IHZhbHVlPSJnb1RvQm90dG9t
IiB0eXBlPSJidXR0b24iIG9uY2xpY2s9ImRvY3VtZW50LnNjcm9sbGluZ0VsZW1lbnQuc2Nyb2xs
VG8oMCwgMTAwMCkiPgogICAgICAgIDxkaXYgc3R5bGU9ImhlaWdodDogMjAwJTsgYmFja2dyb3Vu
ZDogbGluZWFyLWdyYWRpZW50KCNlNjY0NjUsICM5MTk4ZTUpOyI+PC9kaXY+CiAgICAgICAgPGlu
cHV0IHZhbHVlPSJnb1RvVG9wIiB0eXBlPSJidXR0b24iIG9uY2xpY2s9ImRvY3VtZW50LnNjcm9s
bGluZ0VsZW1lbnQuc2Nyb2xsVG8oMCwgMCkiPgogICAgPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>447334</attachid>
            <date>2021-12-16 00:34:38 -0800</date>
            <delta_ts>2021-12-16 00:34:38 -0800</delta_ts>
            <desc>scroll-behavior.html</desc>
            <filename>scroll-behavior-001.html</filename>
            <type>text/html</type>
            <size>483</size>
            <attacher name="cathiechen">cathiechen</attacher>
            
              <data encoding="base64">PEhUTUw+CiAgICA8c3R5bGU+CiAgICAgICAgaHRtbCB7CiAgICAgICAgICAgIHNjcm9sbC1iZWhh
dmlvcjogc21vb3RoOwogICAgICAgIH0KICAgICAgICBib2R5IHsKICAgICAgICAgICAgc2Nyb2xs
LWJlaGF2aW9yOiBhdXRvOwogICAgICAgIH0gICAgICAgIAogICAgPC9zdHlsZT4KICAgIDxib2R5
PgogICAgICAgIDxpbnB1dCB2YWx1ZT0iZ29Ub0JvdHRvbSIgdHlwZT0iYnV0dG9uIiBvbmNsaWNr
PSJkb2N1bWVudC5zY3JvbGxpbmdFbGVtZW50LnNjcm9sbFRvKDAsIDIwMDApIj4KICAgICAgICA8
ZGl2IHN0eWxlPSJoZWlnaHQ6IDIwMDBweDsgYmFja2dyb3VuZDogbGluZWFyLWdyYWRpZW50KCNl
NjY0NjUsICM5MTk4ZTUpOyI+PC9kaXY+CiAgICAgICAgPGlucHV0IHZhbHVlPSJnb1RvVG9wIiB0
eXBlPSJidXR0b24iIG9uY2xpY2s9ImRvY3VtZW50LnNjcm9sbGluZ0VsZW1lbnQuc2Nyb2xsVG8o
MCwgMCkiPgogICAgPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>