Skip to content

Duplicate Code in lost-column: none #285

@peterramsing

Description

@peterramsing

Thanks @artisin for this note: #211 (comment)

From @artisin:

I was looking at the tests and it appears that lost-column: none; creates a duplicate of the a:nth-child(1n) rule. Based on the code above it looks like that duplicate should be a a:nth-child(n) rule.

it('provides none rule', function() {
  check(
    'a { lost-column: none; }',
    'a { width: auto; }\n' +
    'a:last-child { float: none; clear: none; margin-right: 0; width: auto; }\n' +
    //duplicate, looking at the code above this should be `a:nth-child(n)` ???
    'a:nth-child(1n) { float: none; clear: none; margin-right: 0; width: auto; }\n' +
    'a:nth-child(1n + 1) { float: none; clear: none; margin-right: 0; width: auto; }\n' +
    //duplicate
    'a:nth-child(1n) { float: none; clear: none; margin-right: 0; width: auto; }'
  );
});

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions