Skip to content

Autofix loses !important declarations #36

@ktym4a

Description

@ktym4a

When autofixing physical properties to logical properties, the plugin incorrectly handles !important declarations.

Input CSS

body { left: 0; right: 0 !important; }

Current output

body { inset-inline: 0; }

Expected output

body { inset-inline-start: 0; inset-inline-end: 0 !important; }

The autofix should preserve the !important declaration. When properties have different importance levels, they should not be merged into shorthand properties.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions