Skip to content

z-index rendering order not supported by any browser #483

Closed

Description

@ewilligers

Spec text
https://svgwg.org/svg2-draft/render.html#ZIndexProperty

Failing test
https://wpt.fyi/results/svg/rendering/order

This feature is already marked at-risk. Should we drop it from SVG 2?

I suspect browsers have backwards compatibility concerns.

Activity

  1. birtles commented on Jul 9, 2018

    @birtles
    Contributor

    @jwatt were we still looking at doing this?

  2. AmeliaBR commented on Jul 9, 2018

    @AmeliaBR
    Contributor

    I suspect browsers have backwards compatibility concerns.

    There shouldn't be an backwards compatibility issues as spec'd, except for possible rare cases of "zombie CSS" where authors had CSS rules that applied non-zero z-index values to SVG elements despite it not having an effect. "Stacking contexts" in SVG layout would have very few side effects (does not change layout, only layering), and the default z-index layering, with or without stacking contexts, is the source order layering.

    As I understood it, the main obstacle for implementation has been no one willing to tackle digging through all sorts of old code, that made all sorts of assumptions about rendering order matching source order, to find all the places that need to be updated.

    This feature is already marked at-risk. Should we drop it from SVG 2?

    Unless we can get two implementer commitments—for implementing by the end of 2018—then, yes, we should defer to 2.1.

    Which is disappointing to me, because this is a very important accessibility feature (being able to preserve a semantic and sensible DOM source order based on content, independent from drawing layers), and it is frequently requested by web authors who are surprised that z-index doesn't work with SVG groups and shapes.

  3. added a commit that references this issue on Jul 9, 2018
    9093be7
  4. jwatt commented on Jul 10, 2018

    @jwatt
    Collaborator

    @birtles I'd like to do it but it's not on any roadmap currently. I don't imagine we'll implement it this year.

  5. TheShaperr commented on Mar 3, 2020

    @TheShaperr

    Almost two years later, any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions