---
title: "CSS Articles: Selectors, Units and New Properties"
description: "CSS articles with live demos: the :has() selector, lh and rlh units, scrollbar-gutter, content-visibility and native nesting, plus browser support."
canonical: "https://www.trevorlasn.com/topics/css"
author: "Trevor I. Lasn"
last-updated: "2026-11-08"
---

# CSS Articles: Selectors, Units and New Properties

CSS articles with live demos: the :has() selector, lh and rlh units, scrollbar-gutter, content-visibility and native nesting, plus browser support.

14 current articles on CSS, newest first. See [every topic](https://www.trevorlasn.com/topics.md).

## 2025

- [CSS :interest-source and :interest-target Pseudo-Classes](https://www.trevorlasn.com/blog/css-interest-pseudo-classes.md): Style connected UI with the :interest-source and :interest-target pseudo-classes. Interactive examples of tooltips, forms and navigation without JavaScript. (2025-11-12)
- [::details-content: Style Expandable Content, No Wrappers](https://www.trevorlasn.com/blog/details-content-pseudo-element.md): The ::details-content pseudo-element lets you style the expandable content of details elements separately from the summary, no divs needed. (2025-11-11)
- [View Transitions API: Smooth animations between DOM states](https://www.trevorlasn.com/blog/view-transitions-api.md): Create animated transitions between different states of your app without complex animation libraries. (2025-11-11)

## 2024

- [CSS scrollbar-width and scrollbar-gutter Explained](https://www.trevorlasn.com/blog/css-scrollbar-width-and-scrollbar-gutter.md): Use scrollbar-width to thin or hide scrollbars and scrollbar-gutter to prevent layout shift. Browser support, examples, and gotchas. (2024-12-19)
- [CSS ::target-text for Text Highlighting](https://www.trevorlasn.com/blog/css-target-text.md): A look at how browsers can highlight text fragments using CSS ::target-text, making text sharing and navigation more user-friendly (2024-12-17)
- [align-content: The Simplest Way to Center Content with CSS](https://www.trevorlasn.com/blog/css-align-content-in-block-layouts.md): Finally, we can center things in block layouts without flexbox gymnastics (2024-12-13)
- [CSS :user-valid and :user-invalid for Friendlier Form Errors](https://www.trevorlasn.com/blog/css-user-valid-and-user-invalid-pseudo-classes.md): The new pseudo-classes :user-valid and :user-invalid give us a smarter way to style form validation states based on user interaction (2024-12-12)
- [CSS @supports: Write Future-Proof CSS](https://www.trevorlasn.com/blog/detect-css-features-with-supports-property.md): Use CSS @supports to check whether a browser supports a feature such as grid, and give other browsers a fallback. How it works, with multiple conditions. (2024-12-06)
- [CSS Supports Nesting Now](https://www.trevorlasn.com/blog/css-supports-nesting-now.md): CSS nesting is finally supported in all major browsers. Write cleaner, organized stylesheets without Sass or Less (2024-12-06)
- [CSS content-visibility: Skip Rendering Offscreen Content](https://www.trevorlasn.com/blog/css-content-visibility.md): content-visibility: auto lets the browser skip layout and paint for offscreen elements until they are needed. How to use it with contain-intrinsic-size. (2024-12-05)
- [CSS :has() - The Parent Selector We've Always Wanted](https://www.trevorlasn.com/blog/has-css-functional-pseudo-class.md): Transform your CSS with :has(), the game-changing selector that finally lets us style elements based on their children. (2024-12-04)
- [LH and RLH: The CSS Units That Make Vertical Spacing Easy](https://www.trevorlasn.com/blog/css-lh-and-rlh-units.md): Exploring new CSS line-height units that eliminate guesswork from vertical rhythm (2024-12-03)
- [CSSOM: How the CSS Object Model Works in the Browser](https://www.trevorlasn.com/blog/css-object-model-cssom.md): The CSSOM, or CSS Object Model, is the browser's map of every style rule. How it is built beside the DOM, how it computes styles, and how to keep it fast. (2024-10-25)
- [Open Dyslexic Font: Improve Your Web Accessibility](https://www.trevorlasn.com/blog/open-dyslexic-font.md): How to implement the Open-Dyslexic font to enhance readability for users with dyslexia (2024-10-12)
