←back to thread

197 points OuterVale | 1 comments | | HN request time: 0.196s | source
Show context
groby_b ◴[] No.46227954[source]
It is extremely funny to me that the list thinks the mistake about !important was using the exclamation mark sigil, and not the concept of a single priority level.

In the words of one of my CS profs, from a few decades ago: "There are only 3 numbers - zero, one, and infinity. And 'one' is often a mistake"

replies(3): >>46228440 #>>46230777 #>>46232341 #
semolino ◴[] No.46230777[source]
This is what Cascade Layers was designed to solve:

https://developer.mozilla.org/en-US/docs/Learn_web_developme...

A lingering bit of weirdness is that all !important declarations, no matter the layer they appear on, are interpreted as being part of their own implicit layer.

replies(1): >>46282351 #
1. groby_b ◴[] No.46282351[source]
An excellent illustration of the German word "verschlimmbessern"