Content: Issue with "z-index": Syntax code block doesn't include 'revert' in the valid Global values

Created on 12 Mar 2021  路  3Comments  路  Source: mdn/content

MDN URL: https://developer.mozilla.org/en-US/docs/Web/CSS/z-index

What information was incorrect, unhelpful, or incomplete?

Within the code block that shows possible global values we see the following:

/* Global values */
z-index: inherit;
z-index: initial;
z-index: unset;

Yet it seems we can also use the global revert here as well:

Specific section or headline?

Syntax

What did you expect to see?

  /* Global values */
  z-index: inherit;
  z-index: initial;
+ z-index: revert;
  z-index: unset;

Did you test this? If so, how?



MDN Content page report details

CSS P2

Most helpful comment

I'm not convinced that we ever added revert to any property page's global values (I think we just added it to the all page).

It would be good to start off by checking this, and if not, writing some kind of a script that could crawl through the css property pages and add it to all of them that need it.

All 3 comments

I can add it 馃憤

I'm not convinced that we ever added revert to any property page's global values (I think we just added it to the all page).

It would be good to start off by checking this, and if not, writing some kind of a script that could crawl through the css property pages and add it to all of them that need it.

agreed, seems like a job for a script. Then we can just keep an eye out for any that got missed. I've fixed a couple of syntax boxes that had something odd in them recently.

If we could compare a list of the pages this script caught with a list of all property pages then I could go round the ones that didn't get updated and find out why.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tjcchen picture tjcchen  路  3Comments

jakseb picture jakseb  路  3Comments

lychyi picture lychyi  路  3Comments

Ryuno-Ki picture Ryuno-Ki  路  5Comments

yukulele picture yukulele  路  4Comments