4 comments

  • myfonj36 minutes ago
    Some caveats worth mentioning yet missing there:<p>1. many, MANY implementation bugs in `background-clip: text` across browsers, especially Firefox [1], basically safe only for simple cases with no additional transforms or filters.<p>2. `color: transparent` ensures the text will be invisible in every browser that does supports the `transparent` keyword (i.e. basically every single one, presumably) but not support background-clip:text yet, or fail to load or interpret the background-image (like in high contrast&#x2F;forced colours mode). Use `-webit-text-fill-color: transparent` instead. (Yes, that vendor prefix is necessary, and yes, it is de-facto standardised and implemented in Chrome and Firefox [2]. And yes, it is as absurd as it gets.)<p>3. Touching the `letter-spacing` turns off all ligatures, logically. Could be a good thing, actually, but worth knowing. (Anthropic used to use negative letter-spacing thorough its webpages, but now it seems they abandoned that.)<p>[1] <a href="https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=1656784" rel="nofollow">https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=1656784</a> [2] <a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;CSS&#x2F;Reference&#x2F;Properties&#x2F;-webkit-text-fill-color" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;CSS&#x2F;Reference&#x2F;P...</a>
  • addedlovely38 minutes ago
    Was expecting to see text-wrap:balance there. Solve away your orphans! <a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;CSS&#x2F;Reference&#x2F;Properties&#x2F;text-wrap" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;CSS&#x2F;Reference&#x2F;P...</a>
  • sixtyj1 hour ago
    I always tell myself that I should use backwards-compatible CSS only.<p>I vividly remember IE and many hacks to have css elements properly working in it…<p>Imho this is a reason why markdown and other rich-textual formats appeared.<p>Btw is there a some “w3schools” for recent CSS?
    • mostlysimilar58 minutes ago
      &gt; Btw is there a some “w3schools” for recent CSS?<p>No better resource than MDN: <a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;</a><p>I also like <a href="https:&#x2F;&#x2F;css-tricks.com" rel="nofollow">https:&#x2F;&#x2F;css-tricks.com</a>
  • searchstefano2 hours ago
    CSS has come a long way. On several sites I’ve been able to completely remove JS for things like popups, mobile menus, and open&#x2F;close interactions.<p>The fact that modern CSS and native browser APIs can handle so much of this makes the web feel simpler and more capable at the same time.