Skip to content

Commit 4aaf531

Browse files
committed
[css-position] position: fixed always establishes a stacking context
Clarifies that an element with 'position: fixed' always establishes a new stacking context. (This is different from 'position: absolute', where 'z-index' determines if the element establishes a stacking context or not.)
1 parent 0f6d5c4 commit 4aaf531

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

css-position/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,8 +1976,8 @@ Layered presentation</h2>
19761976

19771977
<dt><dfn>auto</dfn></dt>
19781978
<dd>
1979-
The stack level of the generated box in the current stacking context is 0. The box
1980-
does not establish a new stacking context unless it is the root element.
1979+
The stack level of the generated box in the current stacking context is 0.
1980+
If the box has 'position: fixed' or if it is the root, it also establishes a new stacking context.
19811981
</dl>
19821982

19831983
In the following example, the stack levels of the boxes (named with their "id"

0 commit comments

Comments
 (0)