Alternatives to the !important Keyword | CSS-Tricks

Cascade layers, specificity tricks, smarter ordering, and even some clever selector hacks can often replace !important with something cleaner, more predictable, and far less embarrassing to explain to your future self.

CSS-Tricks

The Different Ways to Select “<html>” in CSS, by @dxnny.fun (@csstricks):

https://css-tricks.com/the-different-ways-to-select-html-in-css/

#html #css #selectors

The Different Ways to Select <html> in CSS | CSS-Tricks

Sure, we can select the <html> element in CSS with, you know, a simple element selector, html. But what other (trivial and perhaps useless) ways can we do it?

CSS-Tricks
Selectors Level 5

Style Headings using the CSS :heading pseudo-class

Use the :heading pseudo-class to style all headings (h1-h6) with a single CSS rule. Reduce repetition in design systems and component libraries while maintaining consistency.

Always Twisted

Phil Mongredien writing for the Guardian. (below)

I don't get paid a dime to dj or run a community radio station, so I'm entitled to sit on the fence.
#dj #djs #selectors

https://www.theguardian.com/commentisfree/2026/feb/16/the-hill-i-will-die-on-being-a-dj-isnt-a-proper-job?CMP=Share_iOSApp_Other

The hill I will die on: ‘Being a DJ’ isn’t a proper job

In what other field is a couple of hours’ work taking the credit for somebody else’s brilliance so venerated, says Guardian Opinion joint production editor Phil Mongredien

The Guardian

Событийный цикл в asyncio: как Python-код работает поверх механизмов Linux

Большая статья для тех, кто, как и я, споткнулся об asyncio и так не разгадал до конца "магию" событийного цикла. Попробовал распутать этот клубок через подробный рассказ (в как можно более доступной форме) о внутренних механизмах Линукса и самого asyncio, которые лежат в основе событийного. К концу статьи, надеюсь, магия исчезнет, а останется ясное понимание фундамента. Погружаемся

https://habr.com/ru/articles/995032/

#asyncio #python #epoll #selectors #асинхронность #event_loop #eventloop #linux #сокеты

Событийный цикл в asyncio: как Python-код работает поверх механизмов Linux

Статья для тех, кто, как и я, споткнулся об asyncio и так и не понял его до конца. Введение Моё знакомство с asyncio началось довольно типично и болезненно. На тот момент я уверенно владел базовым...

Хабр
Focus rings with nested contrast-color()?

As I was playing around with contrast-color(), I got a wild idea that you could use contrast-color() to invert its return value by nesting it: contrast-color(contrast-color(var(--some-color)). When would this be useful? Uh… Good question. I couldn’t come up with an example right away but after a bit I found one sitting right under my nose….

daverupert.com

How to Style the New “::search-text” and Other Highlight-y Pseudo-Elements, by @dxnny.fun (@csstricks):

https://css-tricks.com/how-to-style-the-new-search-text-and-other-highlight-pseudo-elements/

#howtos #css #selectors

Styling ::search-text and Other Highlight-y Pseudo-Elements | CSS-Tricks

The new ::search-text pseudo (Chrome 144) matches are yellow while the current target (::search-text:current) is orange, but ::search-text enables us to change that.

CSS-Tricks

From the archives:

Custom Properties: Questioning “:root”:

https://meiert.com/blog/questioning-root/

#css #customproperties #selectors

Custom Properties: Questioning “:root” · Jens Oliver Meiert

For custom properties (aka CSS variables) we got into the habit of declaring variables in a rule with a <code>:root</code> selector. Yet unless you’re working in an environment in which style sheets serve several document types (and roots), question this use of <code>:root</code>.

𝗰𝘀𝘀-𝘀𝗲𝗹𝗲𝗰𝘁𝗼𝗿𝘀:

#CSS #Selectors #Visual #CSS-selectors

https://thewhale.cc/posts/css-selectors

Here's a visual guide to the most popular CSS selectors.