Rebases z-index values. This is unsafe as it could potentially clash with other stylesheets, or JavaScript injected styles. However, it is safe if your stacking context has wholly been extracted into CSS.

.box {
    z-index: 5000;
.box {
    z-index: 1;

⚠ Risk of breakage

This transform may be unsafe in certain situations, because of the following condition(s):

  • Assumes concatenation
  • Changes semantics

For more information, see our advanced transforms guide.

Latest release v4.0.2 · Changelog · Distributed under the MIT License.