Skip to content

Commit

Permalink
selectors: Don't serialize :nth-child(-n) as -1n.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Apr 7, 2018
1 parent ecf71d7 commit 1eab592
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
1 change: 1 addition & 0 deletions components/selectors/parser.rs
Expand Up @@ -1021,6 +1021,7 @@ impl<Impl: SelectorImpl> ToCss for Component<Impl> {
(0, 0) => dest.write_char('0'),

(1, 0) => dest.write_char('n'),
(-1, 0) => dest.write_str("-n"),
(_, 0) => write!(dest, "{}n", a),

(0, _) => write!(dest, "{}", b),
Expand Down
25 changes: 0 additions & 25 deletions tests/wpt/metadata/css/selectors/anplusb-selector-parsing.html.ini

This file was deleted.

0 comments on commit 1eab592

Please sign in to comment.