Skip to content

Expected style "zIndex: 1px" to be unitless #660

@wu0407

Description

@wu0407

Bug report

Description / Observed Behavior

The Zindex in style has no unit, but the warning in the console is "Expected style "zIndex: 1px" to be unitless".
I try to set Zindex as int or string, it has the same result in the console under debug mode.

Expected Behavior

no warning

Reproduction

<div
      style={{
        display: "flex",
        flexDirection: "column",
        alignItems: "center",
        justifyContent: "center",
        // gap: "32px",
        padding: "20px 30px",
        width: "1349.5px",
        height: "390px",
        position: "relative",
        zIndex: 1,
        overflow: "hidden",
      }}
    >

Additional Context

satori: 0.20.0
nextjs: 15.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions