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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15588</bug_id>
          
          <creation_ts>2012-01-16 19:53:04 +0000</creation_ts>
          <short_desc>Define the &quot;top of the document&quot; in a semantic way.</short_desc>
          <delta_ts>2013-06-14 19:06:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-indicated-part-of-the-document</bug_file_loc>
          <status_whiteboard>CSSOM</status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          <blocked>21621</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>kennyluck</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62785</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-01-16 19:53:04 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html
Multipage: http://www.whatwg.org/C#the-indicated-part-of-the-document
Complete: http://www.whatwg.org/c#the-indicated-part-of-the-document

Comment:
Define the &quot;top of the document&quot; in a semantic way.

Posted from: 114.43.115.138 by kennyluck@csail.mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0.1) Gecko/20100101 Firefox/9.0.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62786</commentid>
    <comment_count>1</comment_count>
    <who name="Kang-Hao (Kenny) Lu">kennyluck</who>
    <bug_when>2012-01-16 20:03:51 +0000</bug_when>
    <thetext>For two cases:

1. Vertical writing (IE9 scrolls a document in vertical writing to the before side, WebKit always the top side.)
2. Screen readers

I would hope we just remove #top though, if that doesn&apos;t break sites.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63791</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-02-07 00:28:10 +0000</bug_when>
    <thetext>#top is used by half the Web.

I don&apos;t really understand what&apos;s unambiguous about &quot;top of the document&quot;. Can you elaborate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69286</commentid>
    <comment_count>3</comment_count>
    <who name="Kang-Hao (Kenny) Lu">kennyluck</who>
    <bug_when>2012-06-20 10:58:39 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; #top is used by half the Web.
&gt; 
&gt; I don&apos;t really understand what&apos;s unambiguous about &quot;top of the document&quot;. Can
&gt; you elaborate?

The non-interoperability as described in comment 1 (vertical writing). But if you feel like the best way to resolve this is to file a bug then feel free to WONTFIX this.

Am I right that you assume IE9 is right and WebKit is wrong? I can&apos;t quite tell that from the prose but I assume the &quot;before&quot; side is more of a natural interpretation?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70955</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:48:59 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18244 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74383</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-09-25 03:25:10 +0000</bug_when>
    <thetext>Do you have a testcase showing what you mean? I&apos;m not really understanding the problem here. Vertical text isn&apos;t properly specced yet, is it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74399</commentid>
    <comment_count>6</comment_count>
      <attachid>1187</attachid>
    <who name="Kang-Hao (Kenny) Lu">kennyluck</who>
    <bug_when>2012-09-25 04:44:53 +0000</bug_when>
    <thetext>Created attachment 1187
#top and vertical writing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74400</commentid>
    <comment_count>7</comment_count>
    <who name="Kang-Hao (Kenny) Lu">kennyluck</who>
    <bug_when>2012-09-25 04:59:47 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Do you have a testcase showing what you mean? 

Here you go. (I have no idea why the attachment prompts for download...)

&gt; I&apos;m not really understanding the problem here. 

In WebKit, if you click the link, the window scrolls to the physical top. In IE, it scrolls to the logical before-start side (beginning of the document).

The spec seems to indicate WebKit is right, and I am just slightly opposed to that.

For what it&apos;s worth, in Firefox and Opera, the window scrolls to the top-start, observing &apos;direction&apos; (you need to tweak the attached test case a bit), which seems more &quot;semantic&quot; (beginning of the document). 

&gt; Vertical text isn&apos;t properly specced yet, is it?

I don&apos;t think that&apos;s relevant. It&apos;s just a matter of whether #top is semantic or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77340</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-29 22:21:07 +0000</bug_when>
    <thetext>Where you scroll to when scrolling to the top of the document is a CSSOM issue, I&apos;d say. Not sure how to fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82373</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-01-30 23:26:29 +0000</bug_when>
    <thetext>Right now the spec relies on:
   http://dev.w3.org/csswg/cssom-view/#element-scrolling-members
...which says to use the top left. But it doesn&apos;t really handle the &quot;top of the document&quot; concept.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84941</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-03-25 19:33:59 +0000</bug_when>
    <thetext>zcorpan, this may be relevant to your new interests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88511</commentid>
    <comment_count>11</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-05-31 12:37:39 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; For two cases:
&gt; 
&gt; 1. Vertical writing (IE9 scrolls a document in vertical writing to the
&gt; before side, WebKit always the top side.)

Actually WebKit scrolls to the bottom if the attached test case is modified with &lt;html dir=rtl&gt;. It seems to not scroll in the other direction at all.

I have specified that the appropriate corner be scrolled to. HTML needs to hook in to &apos;beginning of the document&apos;, though.

https://dvcs.w3.org/hg/csswg/rev/6102bc601fb4

&gt; 2. Screen readers

I haven&apos;t specified anything for this. I&apos;m not sure CSSOM View is the right place to define what to do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89041</commentid>
    <comment_count>12</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-10 23:18:57 +0000</bug_when>
    <thetext>I&apos;ll hook into &quot;beginning of the document&quot;. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89042</commentid>
    <comment_count>13</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-06-10 23:51:39 +0000</bug_when>
    <thetext>Currently the HTML spec invokes &quot;scroll an element into view&quot; with the &quot;top of the document&quot; which is bogus since that&apos;s not an element.

Instead, for the #top case, invoke http://dev.w3.org/csswg/cssom-view/#scroll-to-the-beginning-of-the-document</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89331</commentid>
    <comment_count>14</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-06-14 19:06:29 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7979.
Check-in comment: Finally clean up how we scroll to the top of a document
http://html5.org/tools/web-apps-tracker?from=7978&amp;to=7979</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1187</attachid>
            <date>2012-09-25 04:44:53 +0000</date>
            <delta_ts>2012-09-25 04:44:53 +0000</delta_ts>
            <desc>#top and vertical writing</desc>
            <filename>vertical-writing-mode-and-hash-top.html</filename>
            <type>text/html</type>
            <size>766</size>
            <attacher name="Kang-Hao (Kenny) Lu">kennyluck</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+DQo8c3R5bGU+IA0KOnJvb3QgeyANCiAgbGluZS1oZWlnaHQ6IDEwMDsg
DQogIC1tcy13cml0aW5nLW1vZGU6IHRiLXJsOyANCiAgLXdlYmtpdC13cml0aW5nLW1vZGU6IHZl
cnRpY2FsLXJsOyANCiAgLW1zLXdyaXRpbmctbW9kZTogdmVydGljYWwtcmw7DQogIC1vLXdyaXRp
bmctbW9kZTogdmVydGljYWwtcmw7DQogIHdyaXRpbmctbW9kZTogdmVydGljYWwtcmw7ICAgDQog
IHdoaXRlLXNwYWNlOiBub3dyYXA7fTwvc3R5bGU+DQo8YnIgLz4NCjxhIGhyZWY9IiN0b3AiPnRv
cCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9w
IHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3Ag
dG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0
b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRv
cCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9w
IHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3Ag
dG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0
b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRvcCB0b3AgdG9wIHRv
cCB0b3AgdG9wIHRvcCB0b3AgdG9wIDxhPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>