Re: [svgwg] stacking context / rendering order requirements are mostly not Web compatible

It is possible I've misread the spec.  I was going based on this from the same section:

> With the exception of the ‘foreignObject’ element, the back to front stacking order for a stacking context created by an SVG element is:
> 
> 1. the background and borders of the element forming the stacking context, if any
> 2. child stacking contexts created by descendants with negative stack levels, primarily ordered by most negative first, then by tree order
> 3. descendants with 'z-index: auto' or 'z-index: 0', in tree order
> 4. child stacking contexts created by descendants with positive stack levels, primarily ordered by lowest index first, then by tree order
 
and mentally substituting "non-negative stack levels" for "positive stack levels" in step 4.  But I think I was wrong to do that, as stack level zero elements would be handled in step 3.  The key thing here is that step 3 includes both elements that do and do not induce stacking contexts, which I missed.

-- 
GitHub Notification of comment by heycam
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/463#issuecomment-390093571 using your GitHub account

Received on Friday, 18 May 2018 04:49:18 UTC