Skip to content

Isn't z-index: 999 a bit excessive? #23

Closed

Description

@mgeier

I don't know what the conventions are around this, but 999 seems a bit high to me.

The highest value mentioned at https://developer.mozilla.org/en-US/docs/Web/CSS/z-index is 289.

And at https://drafts.csswg.org/css2/#propdef-z-index it seems to be 3.

Wouldn't something like 99 be more reasonable?

Right now, this is in conflict with my Sphinx theme. I could of course raise my conflicting z-index, but when does the arms race end?

Activity

  1. added
    bug
    on Oct 20, 2020
  2. choldgraf commented on Oct 20, 2020

    @choldgraf
    Member

    absolutely - 999 is a 💯 hack job that was just trying to get it to reliably work. I don't know anything about the "proper" conventions for z-index but I'm open to using whatever number makes the most sense for most users.

  3. mgeier commented on Oct 21, 2020

    @mgeier
    ContributorAuthor

    just trying to get it to reliably work

    The problem is that it doesn't.

    I guess there is no perfect solution because we don't know all past and future Sphinx themes.

    But what about starting with 100?

  4. mgeier commented on Oct 21, 2020

    @mgeier
    ContributorAuthor

    The RTD version badge uses 400, so you should probably aim below that:

    image

  5. choldgraf commented on Oct 22, 2020

    @choldgraf
    Member

    100 makes sense to me - I'm on reduced time right now due to a newborn, but happy to review a PR to see if that fixes it. Otherwise I will try and get to this later this / next week

  6. mgeier commented on Oct 23, 2020

    @mgeier
    ContributorAuthor

    Sounds good, there's no hurry!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions