- From: Andrew Fedoniouk <news@terrainformatica.com>
- Date: Sun, 29 Jul 2012 12:04:27 -0700
- 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 UTC