Skip to ContentTIL (Today I learned)
TIL #30
You can target Inverted Colors Mode mode in CSS

TIL #29
You can use JavaScript (Vibration API) to vibrate devices

TIL #28
You can disable all form elements in a fieldset by setting the disabled attribute on the fieldset.

TIL #27
You can list all pseudo elements of an element in the CSS pane in Firefox Developer Tools.

TIL #26
You can emulate dark mode and reduced motion in Chrome Dev Tools.

TIL #25
You can instruct browsers to print pages in landscape orientation (Chrome/Opera only).

TIL #24
You can change the filename of a downloadable file by defining a value in the download attribute.

TIL #23
The bullet or number of a list-item can be selected and styled with the ::marker pseudo-element.

TIL #22
If an input element has the attribute value autocomplete="new-password", browsers can suggest securely-generated passwords.

TIL #21
You can use the CSS Paint API to create background images in CSS.

TIL #20
You can search the elements panel in Developer Tools not only for strings but also selectors.

TIL #19
The webkitdirectory attribute allows users to select directories instead of files. (desktop browsers only)

TIL #18
You can do responsive preloading because preload link elements accept the media attribute like any other link element.

TIL #17
It's possible to identify how many separate fingers are touching the screen.

TIL #16
SVGs are focusable in Internet Explorer. We can set focusable="false" to prevent that.

TIL #15
macOS uses Papyrus as the default font when you define the generic font family “fantasy”.

TIL #14
text-decoration doesn't have to be a solid line. There's also dotted, dashed, double, and wavy.

TIL #13
text-decoration is a shorthand property for text-decoration-line, text-decoration-color, and text-decoration-style.

TIL #12
Overflowing block-level elements with overflow set to scroll or auto are focusable in Firefox.

TIL #11
You can use conditional comments to target specific versions of Outlook.

TIL #10
You can turn the outline of an element to the _inside_ by setting the outline-offset property to a negative value. (Not supported in IE)

TIL #9
You can center a flex-item vertically and horizontally by applying margin: auto; to it.

TIL #8
If you press CMD/Ctrl and click on a property or property value in the style panel, @ChromeDevTools jumps directly to the respective css/scss file and line.

TIL #7
About the @at-root directive. It moves nested styles out from within a parent selector or nested directive.

TIL #6
IE 11 requires a unit to be added to the third argument (flex-basis) of the flex property.

TIL #5
You can use `navigator.connection` to get information about the connection like round-trip time, bandwidth, connection type (e.g. 3g, 4g) or if Data-Saver is enabled.

TIL #4
The grid-auto-flow property takes up to two values. row, column, dense, row dense, or column dense.

TIL #3
You can pass an `options` object, which only has a single property, to the `focus()` method to prevent scrolling on focus.

TIL #2
There's a tab-size property. It controls the width of the tab (U+0009) character.

TIL #1
How to get a random background-color (or any other value) each time I compile Sass.
