W3C home > Mailing lists > Public > www-style@w3.org > November 2010

Layers. Z-index

From: Ruslan Fayzrakhmanov <ruslanrf@gmail.com>
Date: Mon, 29 Nov 2010 14:17:16 +0100
Message-ID: <AANLkTikLOb7OrTKFqmMS9geHYivgxg79wu=v=nr5QNU3@mail.gmail.com>
To: www-style@w3.org

I think that now it is quite difficult to talk about 3rd dimention. Because
actually the z-index and Stacking Contexts, they just used to order elements
for drawing and not to form a real layers. As I understand the current
"layers" can be represented only as a tree of Stacking Contexts.

The problem is that there are no global ordering of the Stacking Contexts.

I am working on the representation of the visualized information and
actually now I am interested in visual representation of web pages.

<div id="A" style="position:relative; z-index:0; width:...;height:...">
  <div id="A1" style="position:relative; z-index:0;
  <div id="A2" style="position:relative; z-index:1;
<div id="B" style="position:relative; z-index:0;

In this example, for instance we cannot say that element A and B on the same
layer 0. Because then we have to say that A1 and A2 at the layer 0 as well.
So, if we want to define the elements A1 and A2 as elements of different
layers we have to assert that elements A and B are in different layers and
layer of B is above elements A, A1 and A2.

Do you have any idea about how we can represent the web page as a set of
boxes in the 3d space?

The best regards
Received on Monday, 29 November 2010 13:18:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:41 UTC