<?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>18344</bug_id>
          
          <creation_ts>2012-07-20 15:14:06 +0000</creation_ts>
          <short_desc>Appendix E imprecise about background propagation to canvas</short_desc>
          <delta_ts>2012-12-04 00:53:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSS Level 2</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anton P">antonsforums</reporter>
          <assigned_to name="Bert Bos">bert</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71256</commentid>
    <comment_count>0</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-07-20 15:14:06 +0000</bug_when>
    <thetext>E.2 says:

  # The canvas is transparent if contained within another, and given a
  # UA-defined color if it is not. It is infinite in extent and
  # contains the root element. Initially, the viewport is anchored with
  # its top left corner at the canvas origin.
  #
  # The painting order for the descendants of an element generating a
  # stacking context (see the &apos;z-index&apos; property) is:
  #
  # 1. If the element is a root element:
  #    1. background color of element over the entire canvas.
  #    2. background image of element, over the entire canvas, anchored
  #       at the origin that would be used if it was painted for the
  #       root element.

and E.3 (Notes) says:

  # The background of the root element is only painted once, over the
  # whole canvas.


This fails to account for the special situation for the HTML BODY element described in 14.2:

  # The background of the root element becomes the background of the
  # canvas and covers the entire canvas, anchored (for
  # &apos;background-position&apos;) at the same point as it would be if it was
  # painted only for the root element itself. The root element does not
  # paint this background again.
  #
  # For HTML documents, however, we recommend that authors specify the
  # background for the BODY element rather than the HTML element.
  # For documents whose root element is an HTML &quot;HTML&quot; element or
  # an XHTML &quot;html&quot; element that has computed values of &apos;transparent&apos;
  # for &apos;background-color&apos; and &apos;none&apos; for &apos;background-image&apos;, user
  # agents must instead use the computed value of the background
  # properties from that element&apos;s first HTML &quot;BODY&quot; element or XHTML
  # &quot;body&quot; element child when painting backgrounds for the canvas, and
  # must not paint a background for that child element. Such
  # backgrounds must also be anchored at the same point as they would
  # be if they were painted only for the root element.


E.2 should acknowledge 14.2 somehow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71257</commentid>
    <comment_count>1</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-07-20 15:17:26 +0000</bug_when>
    <thetext>Reported by Anton Prowse

Conversation begins:
Bug description:
http://lists.w3.org/Archives/Public/www-style/2012Jul/0478.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71258</commentid>
    <comment_count>2</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-07-20 15:18:36 +0000</bug_when>
    <thetext>Proposal A:

In E.2, prepend the following existing prose:

   # The painting order for the descendants of an element generating a
   # stacking context (see the &apos;z-index&apos; property) is:
   #
   # 1. If the element is a root element:
   #    1. background color of element over the entire canvas.
   #    2. background image of element, over the entire canvas, anchored
   #       at the origin that would be used if it was painted for the
   #       root element.

with:

   | The background color and image of a child element of a root
   | element is sometimes painted over the entire canvas instead of that
   | of the root element itself.  This happens _in some situations with
   | HTML and XHTML documents_&lt;link to 14.2&gt;.  When this happens, no
   | background is painted for that child element.  User agents must
   | apply these rules instead of the ones below whenever the
   | latter concern the elements and backgrounds in question.

In E.3 (Notes), delete:

   # The background of the root element is only painted once, over the
   # whole canvas.


Note: the editorial device used in this proposal (that of explicitly 
discussing background propagation prior to the painting order algorithm 
whilst leaving the algorithm written in a manner which focuses the more 
typical general case) is deliberate, since it aids the proposal for Bug 17782.

Proposal: http://lists.w3.org/Archives/Public/www-style/2012Jul/0478.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>