Skip to content

Optimization #16

Description

@argyleink
  • should check if :root is in the stylesheet already or not
  • should check if that existing :root has props already before injecting
:root {
  --red: red;
}

p {
  color: var(--blue);
}

should be:

:root {
  --red: red;
  --blue: blue;
}

p {
  color: var(--blue);
}

not:

:root {
  --red: red;
}

:root {
  --blue: blue;
}

p {
  color: var(--blue);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions