Skip to content

Adding a Mend(0):l class breaks Mend(0):lc and Mx(0) #580

Open
@maheshbansod

Description

@maheshbansod

Describe the bug A clear and concise description of what the bug is.

Adding the classes Mend(0):l on something and Mend(0):lc on something else causes the Mend(0):lc to stop working. If you put Mx(0) instead of Mend(0):lc , then Mx(0) doesn't get margin-right 0.

This happens because the style generated is something like this:

.Mend(0px):l:left, .Mx(0), .Mend(0):lc:last-child {
   margin-right: 0
}

Anything that is grouped with :left doesn't work. See this code pen: https://codepen.io/pranavjindal999/pen/OJwzNpX

I understand that this is probably not the correct use of :l - we encountered this only by mistake: used :l instead of :lc.
It makes sense that they're grouped together (since margin-right: 0 is the common property) but, in this case, this breaks any classes that is grouped with it.

To Reproduce Steps to reproduce the behavior:

  1. Create different divs with the classes mentioned above (Mx(0), Mend(0):lc , Mend(0):l )
  2. Notice that the styles for Mx(0) & Mend(0):lc aren't getting applied on the respective element.

Expected behavior A clear and concise description of what you expected to happen.

Anything with :left shouldn't be grouped with anything else.

Additional context Add any other context about the problem here.

  • OS: [e.g. iOS8.1]
  • Package [e.g. atomizer]
  • Version [e.g. 3.0.0]

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