Tag Archives: css

Stealing your browser history with the W3C Ambient Light Sensor API

A few years ago window.getComputedStyle and the like where adjusted to return the default color of links, instead of the actual color on screen. Security and privacy were the driving factors behind that decision: by styling :visited links with a … Continue reading

Elsewhere , , , , Leave a comment


Nice scroll effect on the BADASS Films website: The effect is achieved by placing a duplicate (but clipped) list on top of another one, in combination with scroll velocity calculation to define the slant of the list. BADASS &rarr

Elsewhere , , , Leave a comment

Breaking the CSS Grid (and how to fix it)

Dave Rupert lists two scenarios in which the CSS Grid can be broken, and how to fix it: Overflow-x Elements break the Grid Form Controls break the Grid To easily fix these, Dave has whipped up a small CSS snippet … Continue reading

Elsewhere , , Leave a comment

CSS Grid Playground

CSS Grid Playground is a ten part tutorial by Mozilla. With resources like this (amongst others) – and proper browser support – there’s no reason not to use Grid Layout. CSS Grid Playground → 💁‍♂️ CSS Grid Gotchas And Stumbling … Continue reading

Elsewhere , , , Leave a comment

Inside a super fast CSS Engine: Quantum CSS (aka Stylo)

Great writeup on how Firefox’s new CSS Engine “Quantum CSS” works. Also sports a clear and in-depth explanation of the rendering pipeline, with some nice illustrations to go along. You may have heard of Project Quantum… it’s a major rewrite … Continue reading

Elsewhere , , , , Leave a comment

The Difference Between Explicit and Implicit Grids

Grid Layout finally gives us the ability to define grids in CSS and place items into grid cells. This on its own is great, but the fact that we don’t have to specify each track and we don’t have to … Continue reading

Elsewhere , , , Leave a comment

Masonry Layout with CSS Grid and grid-auto-flow: dense;

By setting grid-auto-flow: dense;, the Grid auto-placement algorithm will attempt to fill in holes earlier in the grid if smaller items come up later, resulting in a Masonry-like layout. (click for demo) (via) 💁‍♂️ Do note that the result isn’t … Continue reading

Elsewhere , Leave a comment

Morphing Page Transition

A simple morphing page transition effect where an SVG path gets morphed into another while the current page moves up. Whilst the intro/splash screen is translated vertically over a distance of 200vh the shaped in the SVG at the bottom … Continue reading

Elsewhere , , , Leave a comment

CSS Utility Classes and “Separation of Concerns”

Haha, now this sounds all too familiar: Over the last several years, the way I write CSS has transitioned from a very “semantic” approach to something much more like what is often called “functional CSS.” The author lists 5 stages … Continue reading

Elsewhere , 1 Comment

Removing that ugly :focus ring (and keeping it too)

David Gilbertson: You click a button and see a blue border telling you that you’ve clicked on something that you know perfectly well you’ve just clicked on — because you just clicked on it. So it’s clear: the outline must go. But … Continue reading

Elsewhere , , Leave a comment