This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12168 - Shouldn't you have a rule somewhere like body { background: white } or html { background: white }?
Summary: Shouldn't you have a rule somewhere like body { background: white } or html {...
Status: CLOSED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-23 21:53 UTC by contributor
Modified: 2011-08-04 05:00 UTC (History)
7 users (show)

See Also:


Attachments

Description contributor 2011-02-23 21:53:16 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#fonts-and-colors

Comment:
Shouldn't you have a rule somewhere like body { background: white } or html {
background: white }?

Posted from: 68.175.61.233
Comment 1 Boris Zbarsky 2011-02-23 22:24:32 UTC
No, because the default background color is a user preference...
Comment 2 Aryeh Gregor 2011-02-24 00:14:27 UTC
:link and :visited color are also user preferences in Firefox, but the spec still gives the expected defaults in case the user didn't specify a preference.  If the user wants to change the default rendering, they could install a user stylesheet and decide that p should have margin: 0, but that doesn't mean the spec shouldn't say what p's expected margins are.

(I don't know why these preferences even exist in Firefox if the "Allow pages to choose their own colors, instead of my selections above" box is unchecked, by the way.  On most pages they'll either do nothing or make the page illegible if the author can set their own colors.)
Comment 3 Ian 'Hixie' Hickson 2011-05-05 08:13:56 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: The default background isn't white, it's transparent. The white you're seeing is the default CSS canvas background. The spec already requires this ("The canvas' background is expected to be white.").
Comment 4 Aryeh Gregor 2011-05-05 23:25:50 UTC
Oh, I didn't see that sentence (or understand what it meant until you explained it).  That's fine by me.
Comment 5 Michael[tm] Smith 2011-08-04 05:00:53 UTC
mass-moved component to LC1