Urgent.News

What's breaking now, across thousands of outlets.

Tech

Field notes: The resolution of the cascade, from start to finish

El artículo del jueves describió el orden en que el navegador resuelve los conflictos de CSS: primero origen e importancia, luego el orden de las capas, después la especificidad y, por último, el source order , con la herencia por debajo de todo. Describir un orden es una cosa. Verlo funcionar en un conflicto real es otra. Esto es eso. También disponible en Inglés La preparación (The Setup) Un…

Translated from Spanish Read in Spanish

The article explains how CSS conflicts are resolved in a browser, using a specific example with six competing declarations for the same property. The conflict resolution process involves five stages: origin and importance, layer order, specificity, source order, and inheritance. In this case, the user's stylesheet with "!important" and a simple "button" selector takes precedence, overriding the author's styles, to ensure accessibility overrides can be applied.

The article then walks through the subsequent stages, demonstrating how the layer order, specificity, and source order are considered in turn, until the final color is determined. The example illustrates how the algorithm works as a series of elimination gates, with most conflicts being resolved early on.

Written by urgent.news from Dev.to's report — not a translation of it. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Field Notes: Watching the Cascade Resolve, Start to Finish

Thursday's piece described the order the browser resolves conflicting CSS in: origin and importance first, then layer order, then specificity, then source order, with inheritance underneath all of it.

  • User-origin !important declarations take precedence over author-origin !important declarations
  • Layer order determines winner after removing !important declarations
  • Source order decides when same layer and specificity

I Built a Kawaii Native GUI with Nim and SDL3

Native GUI demos often look like settings panels, administrative dashboards, or collections of standard controls. Those examples are useful, but they leave another question unanswered: can the same…

Two great new repairable gadgets

Hi, friends! Welcome to Installer No. 141, your guide to the best and Verge-iest stuff in the world. (If you're new here, welcome, I'm newish here too, and also you can read all the old editions at…

More from Saturday 22 August →