W3C home > Mailing lists > Public > www-style@w3.org > July 2012

Re: [css4-images] element() and non-static children

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sun, 29 Jul 2012 12:04:27 -0700
Message-ID: <CALRQH79hToBx_YoHxCzTp5QaGZmWP8+XatGnRa4P=z9aX=KkUQ@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style@w3.org
On Sun, Jul 29, 2012 at 10:48 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> On Sun, Jul 29, 2012 at 10:21 AM, Andrew Fedoniouk
> <news@terrainformatica.com> wrote:
>> What if the element used as a source for the element() function
>> contain position:absolute|relative children?
>>
>> Will such children be rendered at all?
>>
>> If "yes" then will its "decorated bounding box" be extended to
>> include all positioned or floated children?
>
> The spec already defines this.  Yes, they're rendered (they're
> children, and nothing says they don't).  No, they don't have any
> effect on the decorated bounding box (it's defined as the smallest
> axis-aligned rectangle containing all the border-image areas of the
> fragments of the principal box).  However, if a box is split into
> fragments, and an abspos child is outside the fragment but inside the
> bounding box, it'll be rendered.
>
> ~TJ

What is the z-index value of such element then?
Let's assume that element used in element() (let it be A element) is in
some container that has z-index:10 and the A element has children:
B with z-index:1 and C with z-index:20. What would be the rendering
order of this setup:
1. B -> A -> C or
2. A -> B -> C ?
(note that element A is position:static by itself)

And related question:
What if the element A has opacity:0.5? Will the rendering contain
pixels rendered by its containers? Or opacity shall be ignored as other
transformations?

-- 
Andrew Fedoniouk.

http://terrainformatica.com
Received on Sunday, 29 July 2012 19:04:55 GMT

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