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

[css3-background] "Margins are always transparent" missing

From: Gérard Talbot <www-style@gtalbot.org>
Date: Tue, 9 Apr 2013 22:14:30 -0400
Message-ID: <f174375f5dd4e9625de96659b1d97b59.squirrel@ed-sh-cp3.entirelydigital.com>
To: "W3C www-style mailing list" <www-style@w3.org>
Hello,

One particular statement from CSS 2.1 seems to be missing from CSS 3
Backgrounds and Borders spec.

"
'background' refers to the background of the content, padding and border
areas. (...) Margins are always transparent.
"
CSS 2.1, section 14.2 The background
http://www.w3.org/TR/CSS21/colors.html#background


"
The background style of the content, padding, and border areas of a box is
specified by the 'background' property of the generating element. Margin
backgrounds are always transparent.
"
CSS 2.1, section 8.1 Box dimensions
http://www.w3.org/TR/CSS21/box.html#box-dimensions


The background (background-color and/or background-image) of an element
never paints its margin area ... except for the root element, this being
the only exception in this case ("The background of the root element
becomes the background of the canvas and covers the entire canvas").

I can not find a similar statement anywhere in CSS 3 Backgrounds and
Borders spec.

Actual
------
Each box has a rectangular content area, a band of padding around the
content, a border around the padding, and a margin outside the border.
(The margin may actually be negative, but margins have no influence on the
background and border.)

Proposed
--------
Each box has a rectangular content area, a band of padding around the
content, a border around the padding, and a margin outside the border.
<ins>Margins are always transparent.</ins> (The margin may actually be
negative, but margins have no influence on the background and border.)

coming from
CSS Backgrounds and Borders, section 1. Introduction
http://www.w3.org/TR/css3-background/#introduction

Gérard
-- 
CSS 2.1 Test suite RC6, March 23rd 2011
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Wednesday, 10 April 2013 02:15:00 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 April 2013 02:15:01 UTC