Skip to content

rtlcss is not working when there is a ignore comment /*rtl:ignore*/ on an empty selector #350

@kongweian1

Description

@kongweian1

Problem

ignore comment /*rtl:ignore*/ on an empty selector (.first-selector), then everything is broken.

example code

/* rtl:ignore */
.first-selector {
}

.second-selector {
  padding-right: 6%;
}

.third-selector {
  padding-right: 6%;
}

.fourth-selector {
  padding-right: 6%;
}

try it in playground

fail case
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions