Skip to content

Autofix produces erroneous code #31

@kaevupoiss

Description

@kaevupoiss

This plugin combines declarations into shorthands:

inset-block-start: 10px;
inset-block-end: 15px;
inset-inline-start: 20px;
inset-inline-end: 25px;

/* becomes */

inset-block: 10px 15px;
inset-inline: 20px 25px;

But the following case is not supported by browsers and as a consequence break the styles.

inset-block-start: unset;
inset-block-end: 15px;
inset-inline-start: 20px;
inset-inline-end: unset;

/* becomes */

inset-block: unset 15px;
inset-inline: 20px unset;

What to do:

  • Check declarations for these global values: inherit, initial, revert, revert-layer and unset. Do not merge if any of them includes these.

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