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 {...
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
Depends on:
Reported: 2011-02-23 21:53 UTC by contributor
Modified: 2011-08-04 05:00 UTC (History)
7 users (show)

See Also:


Description contributor 2011-02-23 21:53:16 UTC

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

Posted from:
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:

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