<?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>24634</bug_id>
          
          <creation_ts>2014-02-12 21:43:40 +0000</creation_ts>
          <short_desc>[WebDriver Spec]: 10.1.1 needs clarity regarding the BODY tag special case</short_desc>
          <delta_ts>2014-07-10 10:45:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Browser Test/Tools WG</product>
          <component>WebDriver</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>20860</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Luke Inman-Semerau">luke.semerau</reporter>
          <assigned_to name="David Burns :automatedtester">dburns</assigned_to>
          <cc>ato</cc>
    
    <cc>botalov.andrey</cc>
    
    <cc>dburns</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Browser Testing and Tools WG">public-browser-tools-testing</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100443</commentid>
    <comment_count>0</comment_count>
    <who name="Luke Inman-Semerau">luke.semerau</who>
    <bug_when>2014-02-12 21:43:40 +0000</bug_when>
    <thetext>&quot;The exception to this would be the BODY element, which is generally assumed to always be displayed by users of the WebDriver spec&quot;

generally? when?

&lt;body&gt;&lt;/body&gt;

this element has 0 height / width. should it be &apos;visible&apos;

&lt;body style=&quot;display:none&quot;&gt;....&lt;/body&gt;

this element is explicitly invisible and should not be considered visible.

We aught to define the cases when body can be considered invisible (also style=&quot;visibility:hidden&quot; ?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101398</commentid>
    <comment_count>1</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2014-02-25 20:07:06 +0000</bug_when>
    <thetext>Add a MUST on that BODY is always visible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102334</commentid>
    <comment_count>2</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2014-03-13 23:11:39 +0000</bug_when>
    <thetext>Fixed in https://dvcs.w3.org/hg/webdriver/rev/81cc3d3b5f5f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103041</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Botalov">botalov.andrey</who>
    <bug_when>2014-03-27 20:27:22 +0000</bug_when>
    <thetext>Why body should always be considered visible?

IMO body doesn&apos;t look visible in case of:
&lt;body style=&quot;display:none&quot;&gt;....&lt;/body&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103044</commentid>
    <comment_count>4</comment_count>
    <who name="Luke Inman-Semerau">luke.semerau</who>
    <bug_when>2014-03-27 20:43:10 +0000</bug_when>
    <thetext>view the browser on an html page with that.

What do you see? You see a big blank white page... you &quot;see&quot; it! :)  body is &apos;specail&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103045</commentid>
    <comment_count>5</comment_count>
    <who name="Luke Inman-Semerau">luke.semerau</who>
    <bug_when>2014-03-27 20:43:50 +0000</bug_when>
    <thetext>special*  ha!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108841</commentid>
    <comment_count>6</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2014-07-10 10:44:58 +0000</bug_when>
    <thetext>Allow me to shed some light on why the body should always be considered visible.

In the CSS specification the HTML and BODY elements are considered special snowflakes.  Based on an order of preference (which always prefers the ancestral element, that is the HTML element) if background-color or background-image is set, that gets transposed on to the browser&apos;s painting canvas.

In effect this means that what you see on the screen in a document containing &lt;body&gt;&lt;/body&gt; (empty body) is always visible because the default value of background-color for the BODY element is &quot;transparent&quot;, which the CSS spec defines as user agent specific behaviour.  In the case of desktop browsers that means falling back to base.css (or the equivalent) which defines the colour white to be the default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108842</commentid>
    <comment_count>7</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2014-07-10 10:45:30 +0000</bug_when>
    <thetext>The relevant spec prose around this is defined here:

    http://dev.w3.org/csswg/css-backgrounds/#special-backgrounds</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>