Re: [css3-backgrounds] Percentage sizes and fixed backgrounds on the root element

On 02/10/2011 11:12 AM, Sylvain Galineau wrote:
> [fantasai:]
>> The behavior you want is most definitely the more reasonable
>> interpretation. :) It's actually already in the spec:
>>
>> http://www.w3.org/TR/css3-background/#background-positioning-area
>>     # If the 'background-attachment' value for this image is 'fixed', then
>>     # this property has no effect: in this case the background positioning
>>     # area is the initial containing block [CSS21].
>>
>> http://www.w3.org/TR/CSS21/colors.html#propdef-background-position
>>     # If the background image is fixed within the viewport (see the
>>     # 'background-attachment' property), the image is placed relative to
>>     # the viewport instead of the element's padding box.
>>
>> I'll make a link from the instance of "background positioning area" you're
>> quoting to its definition (partially quoted above); that should help. Are
>> there any other clarifications you'd like to see?
>
> That works ! While we're at it, what is the behavior of background-clip in
> this case ? I assume it's ignored but it wouldn't hurt to be explicit.

I'm guessing the definition of background-clip has the answer:
   http://www.w3.org/TR/css3-background/#the-background-clip
:p

~fantasai

Received on Thursday, 10 February 2011 22:50:02 UTC