Links
All links in: css (all links)
-
If statements in CSS today
Lea Verou explains how we could do if statements, that are coming to CSS, today.
She explored various very clever ways to do it.
Great point on abstractions:
Ugliness is only acceptable if it’s encapsulated and not exposed to component users.
-
Masonry and reading order
CSS can lay things out for you automatically, which is cool but could mean reading order and visual order end up not matching. Luckily, Rachel and others at the CSS Working Group are working on a solution, that lets developers choose which order makes most sense:
There’s a proposal however that aims to deal with this, that would let developers indicate to the browser that they want to follow the “visual” flow of items rather than source order. This is currently named reading-order-items, and I recently added a draft of the proposal to the CSS Display Level 4 editor’s draft. The specification deals with reordering both in an automatic sense, but also the reordering you might want to do when placing items on the grid.