W3C home > Mailing lists > Public > www-style@w3.org > April 2011

[css21] background-color of canvas

From: Jack Smiley <zxcv_890@hotmail.com>
Date: Thu, 7 Apr 2011 12:23:31 -0700
Message-ID: <SNT106-W39E656B4E4EE7B83B67AC6B6A40@phx.gbl>
To: <www-style@w3.org>

How is the color of the canvas determined when the colors of the html and body elements are not specified? In section 14.2, "The background", the spec says that the background of the root element becomes the background of the canvas and
covers the entire canvas. It also says that for documents whose root element is an HTML "HTML" element  that has computed values of 'transparent' for 'background-color' and 'none'
for 'background-image',
user agents must instead use the computed value of the background properties
from that element's first HTML "BODY" element when painting backgrounds for the canvas. However, if the background properties (color and image) are left unspecified for both the html and body elements, they will receive their initial values of 'transparent' and 'none'. So how does this translate into a white background for the canvas? Shouldn't the spec say something like, "If the background properties of html and body are unspecified, the canvas background should be painted white." Or is this just one of those unspecified things that's left up to the browser implementers?
Thank you.
Received on Thursday, 7 April 2011 19:23:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:45 UTC