top | item 46169352

(no title)

Metaboat | 2 months ago

95 :nth-child(5n){list-style:}:nth-child(3n){list-style:"Fizz"}:nth-child(5n)::after{content:"Buzz

discuss

order

Metaboat|2 months ago

68 :nth-child(3n){list-style:"Fizz"}:nth-child(5n)::after{content:"Buzz

bulmenisaurus|2 months ago

This version fails for numbers like 5, showing "5. Buzz". In the case of a number divisible by 5 but not 3 nothing prevents the 5 in the ::marker from rendering.

Edit: it looks like your version can be fixed into a working 85:

  :nth-child(5n){list-style:'';&:after{content:"Buzz"}}:nth-child(3n){list-style:"Fizz"

eurleif|2 months ago

67 :nth-child(3n){list-style:"Fizz"}:nth-child(5n):after{content:"Buzz