Re: [css3-color] Interaction of 'opacity' and z-ordering rules

On Tuesday 2008-05-13 17:00 -0700, L. David Baron wrote:
> I propose addressing  these issues by adding the following paragraph
> to the end of section 3.2 of
> :

Let me try that again:

  # Since an element with opacity less than 1 is composited from a
  # single offscreen image, content outside of it cannot be layered
  # in z-order between pieces of content inside of it.  For the same
  # reason, implementations must create a new stacking context for
  # any element with opacity less than 1.  If an element with
  # opacity less than 1 is not positioned, implementations must
  # paint the layer it creates, within its parent stacking context,
  # at the same stacking order that would be used if it were a
  # positioned element with 'z-index: 0' and 'opacity: 1'.  If an
  # element with opacity less than 1 is positioned, the 'z-index'
  # property applies as described in [[CSS21]], except that 'auto'
  # is treated as '0' since a new stacking context is always
  # created.  See <a
  # href="">section
  # 9.9</a> and <a
  # href="">Appendix E</a> of
  # [[CSS21]] for more information on stacking contexts.  The rules
  # in this paragraph do not apply to SVG elements, since SVG has
  # its own <a
  # href="">rendering
  # model</a> [[SVG11]].


L. David Baron                       
Mozilla Corporation             

Received on Wednesday, 14 May 2008 01:23:22 UTC