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

RE: [css21] repeated background image extension into border area.

From: Brian Manthos <brianman@microsoft.com>
Date: Wed, 17 Aug 2011 23:04:17 +0000
To: Jack Smiley <zxcv_890@hotmail.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <9710FCC2E88860489239BE0308AC5D17122C5A@TK5EX14MBXC264.redmond.corp.microsoft.com>
My understanding:
Content renders over Border renders over Background-image renders over Background-color.

I don't see how this is in conflict from the results you've described or in conflict with the spec.  The spec is saying it covers the "content box/area" *not* that it covers the content painted inside that box.

And yes, the image is behind the border whether it is transparent, semitransparent, or opaque.

-Brian

From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of Jack Smiley
Sent: Wednesday, August 17, 2011 3:41 PM
To: www-style@w3.org
Subject: [css21] repeated background image extension into border area.

Hi All,
In section 14.2.1 (Background properties), under background-repeat, the spec says:

"If a background image is specified, this property specifies whether the image is repeated (tiled), and how. All tiling covers the content, padding and border areas of a box."

However, when I tried this, the image is not covering the border area -- it only covers the content and padding areas. However, I should say that when I set border-color to the value "transparent," the background image does cover the border area as well, which leads me to think that maybe the image is *behind* the border color. But if this is true, it would be the oppose of what happens in the content and padding areas, where the background image is rendered in front of the background color, which is well documented in the spec: "When the image is available, it is rendered on top of the background color." (14.2.1, background-image). I don't see it documented anywhere that the reverse applies for the border area. Any pointers?

Jack
Received on Wednesday, 17 August 2011 23:04:52 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:43 GMT