mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
selectors: Don't serialize :nth-child(-n) as -1n.
This commit is contained in:
parent
ecf71d77cd
commit
1eab5927a5
2 changed files with 1 additions and 25 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue