News for hackers. Stuff that matters.
Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by p0w3n3d on Monday February 16, 2026 @01:37AM (#47031616)
Live demo for input:user-invalid does not work on my phone.

It'd always been the same: those ugly patches of JavaScript were being added to maintain compatibility with all the browsers... That's why the newest CSS tricks were always out of reach for us

Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by szszrk on Monday February 16, 2026 @05:00AM (#47033109)
yeah, it doesn't work on desktop Firefox or desktop Chrome-based browser either.

That one is a dud. Most others work for me, though.

Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by folbec on Monday February 16, 2026 @09:27AM (#47035383)
there is a bug in the CSS :

explicit border:2px solid var(--border); on the input which takes priority over the class :

.demo-uv-input:user-invalid { border-color: var(--red-muted); background: rgba(239,68,68,.04); }

YMMV but when corrected it works for me on latest Edge, Chrome, Firefox (Windows versions)

Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by selimco on Monday February 16, 2026 @05:23AM (#47033299)
The drop cap example is also broken for me on the latest Firefox version. It still requires a manually set line-height of 1.
Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by throwaway290 on Monday February 16, 2026 @05:32AM (#47033392)
Also broken on latest Safari & iOS. They should add screenshots how it supposed to look
Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by p0w3n3d on Monday February 16, 2026 @07:12AM (#47034070)
however, it would defeat the purpose of the live demo...
Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by throwaway290 on Monday February 16, 2026 @11:24PM (#47043693)
They can have both like MDN...