Skip to content

Inconsistent convertedRoot / nodes #23

@guivr

Description

@guivr

Current Behavior

When converting:

.a:first-child {
  flex: 1 1 0%;
}

.a {
  font-family: Inter;
}

The nodes found in result.convertedRoot are different than when converting:

.a {
  font-family: Inter;
}

.a:first-child {
  flex: 1 1 0%;
}

The order seems to matter and it loses all the styles related to :first-child

It would also be nice to have an explanation on the docs about what's the difference between convertedRoot and nodes as they sometime differ.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions