Skip to content

Commit 94f9961

Browse files
committed
[css3-color] Describe the effect of opacity on z-ordering more clearly and make it clear that "treated as" does not imply a change in the computed value.
This is already reflected in http://www.w3.org/Style/2011/REC-css3-color-20110607-errata.html and was resolved in http://lists.w3.org/Archives/Public/www-style/2011Jul/0094.html
1 parent 9d4f860 commit 94f9961

2 files changed

Lines changed: 13 additions & 16 deletions

File tree

css3-color/Overview.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -539,15 +539,13 @@ <h3 id=transparency><span class=secno>3.2. </span>Transparency: the ‘<a
539539
between pieces of content inside of it. For the same reason,
540540
implementations must create a new stacking context for any element with
541541
opacity less than 1. If an element with opacity less than 1 is not
542-
positioned, implementations must paint the layer it creates, within its
543-
parent stacking context, at the same stacking order that would be used if
544-
it were a positioned element with ‘<code class=css>z-index: 0</code>
545-
and ‘<code class=css>opacity: 1</code>’. If an element with opacity
546-
less than 1 is positioned, the ‘<code class=property>z-index</code>
547-
property applies as described in <a href="#CSS21"
548-
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>, except that ‘<code
549-
class=css>auto</code>’ is treated as ‘<code class=css>0</code>
550-
since a new stacking context is always created. See <a
542+
positioned, then it is painted on the same layer, within its parent
543+
stacking context, as positioned elements with stack level 0. If an element
544+
with opacity less than 1 is positioned, the ‘<code
545+
class=property>z-index</code>’ property applies as described in <a
546+
href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>, except that if
547+
the used value is ‘<code class=css>auto</code>’ then the element
548+
behaves exactly as if it were ‘<code class=css>0</code>’. See <a
551549
href="http://www.w3.org/TR/CSS21/visuren.html#layers">section 9.9</a> and
552550
<a href="http://www.w3.org/TR/CSS21/zindex.html">Appendix E</a> of <a
553551
href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a> for more

css3-color/Overview.src.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -346,14 +346,13 @@ <h3 id="transparency">Transparency: the 'opacity' property</h3>
346346
in z-order between pieces of content inside of it. For the same
347347
reason, implementations must create a new stacking context for
348348
any element with opacity less than 1. If an element with
349-
opacity less than 1 is not positioned, implementations must
350-
paint the layer it creates, within its parent stacking context,
351-
at the same stacking order that would be used if it were a
352-
positioned element with ''z-index: 0'' and ''opacity: 1''. If an
349+
opacity less than 1 is not positioned, then it is painted on the
350+
same layer, within its parent stacking context,
351+
as positioned elements with stack level 0. If an
353352
element with opacity less than 1 is positioned, the 'z-index'
354-
property applies as described in [[!CSS21]], except that ''auto''
355-
is treated as ''0'' since a new stacking context is always
356-
created. See <a
353+
property applies as described in [[!CSS21]], except that
354+
if the used value is ''auto'' then the element behaves exactly as
355+
if it were ''0''. See <a
357356
href="http://www.w3.org/TR/CSS21/visuren.html#layers">section
358357
9.9</a> and <a
359358
href="http://www.w3.org/TR/CSS21/zindex.html">Appendix E</a> of

0 commit comments

Comments
 (0)