zlacker

[parent] [thread] 9 comments
1. Metabo+(OP)[view] [source] 2025-12-05 23:54:01
104 :nth-child(3n){list-style:"Fizz"}:nth-child(5n){list-style:"Buzz"}:nth-child(15n){list-style:"FizzBuzz"}

data:text/html,<style>:nth-child(3n){list-style:"Fizz"}:nth-child(5n){list-style:"Buzz"}:nth-child(15n){list-style:"FizzBuzz"}</style><ol id=o><script>o.innerHTML='<li>'.repeat(99)</script>

replies(2): >>Metabo+E3 >>cefqrn+56
2. Metabo+E3[view] [source] 2025-12-06 00:23:57
>>Metabo+(OP)
103 :nth-child(3n){list-style:"Fizz"}:nth-child(5n){list-style:"Buzz"}:nth-child(15n){list-style:"FizzBuzz"
replies(1): >>Metabo+N3
◧◩
3. Metabo+N3[view] [source] [discussion] 2025-12-06 00:24:46
>>Metabo+E3
98 :nth-child(5n){list-style:""}:nth-child(3n){list-style:"Fizz"}:nth-child(5n)::after{content:"Buzz"
replies(1): >>Metabo+T5
◧◩◪
4. Metabo+T5[view] [source] [discussion] 2025-12-06 00:40:51
>>Metabo+N3
95 :nth-child(5n){list-style:}:nth-child(3n){list-style:"Fizz"}:nth-child(5n)::after{content:"Buzz
replies(1): >>Metabo+b6
5. cefqrn+56[view] [source] 2025-12-06 00:43:19
>>Metabo+(OP)
89: :nth-child(3n)::marker{content:"Fizz"var(--b,)}:nth-child(5n){list-style:"Buzz";--b:"Buzz

with help from @bulmenisaurus

◧◩◪◨
6. Metabo+b6[view] [source] [discussion] 2025-12-06 00:44:12
>>Metabo+T5
68 :nth-child(3n){list-style:"Fizz"}:nth-child(5n)::after{content:"Buzz
replies(2): >>eurlei+b8 >>bulmen+vC
◧◩◪◨⬒
7. eurlei+b8[view] [source] [discussion] 2025-12-06 01:06:01
>>Metabo+b6
67 :nth-child(3n){list-style:"Fizz"}:nth-child(5n):after{content:"Buzz
replies(1): >>Metabo+fm
◧◩◪◨⬒⬓
8. Metabo+fm[view] [source] [discussion] 2025-12-06 03:26:52
>>eurlei+b8
thank you sir! i can improve the html op css was 152, we have the whole page at 144

data:text/html,<ol id=o><script>o.innerHTML='<li>'.repeat(100)</script><style>:nth-child(3n){list-style:"Fizz"}:nth-child(5n):after{content:"Buzz

replies(1): >>throwa+do
◧◩◪◨⬒⬓⬔
9. throwa+do[view] [source] [discussion] 2025-12-06 03:47:25
>>Metabo+fm
Your code is showing the numbers 5, 10, 20. that's not correct, is it?

Yours prints 1. 2. Fizz 4. 5. Buzz Fizz 7.

But it should be 1. 2. Fizz 4. Buzz Fizz 7.

◧◩◪◨⬒
10. bulmen+vC[view] [source] [discussion] 2025-12-06 07:17:33
>>Metabo+b6
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"
[go to top]