HTML / JS / CSS notes
"Once, only god and I knew what this code did. But now..."
Cross-browser behaviours: fractional pixels
When manipulating CSS values directly, be careful of how precise your numbers are, as different b...
Incorrect event object properties in Chrome DevTools
When logging some object types in the Chrome DevTools console, you can get misleading results. Co...
CSS relative colors
Relative colors in CSS Until fairly recently, there was no way to define a CSS colour as being a...
Fade animations on HTML elements
Sometimes, fading in an element (for example, using jQuery's fadeIn() method, or setting an eleme...
HTML: Strict vs Quirks mode
What even is "strict mode"? Strict mode is a declaration you make at the top of a HTML document,...
Inconsistent image load event firing
Due to some inconsistencies in browser event behaviour, trying to detect when an image has finish...