Comment

Comment by tannhaeuser

I love it how grid is used as polyfill:

> My favorite trick of doing this before was using CSS grid. You’d take the text inside the textarea and propagate it to a hidden psuedo element overlaid exactly on top. That stack technique is a classic:

    .grid {
      display: grid;
      grid: stack;
      > *, &::after {
        grid-area: stack;
      }
    }
So much for the hope to start clean with flex, grid, and co.

(Btw, there's a typo: psuedo -> pseudo)

parent tannhaeuser 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton