You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"By default, rules in author style sheets have more weight than rules in user style sheets. Precedence is reversed, however, for "!important" rules. All user and author rules have more weight than rules in the UA's default style sheet." [CSS 2.1, §6.4]
L'objectif est: "CSS attempts to create a balance of power between author and user style sheets." [CSS 2.1, §6.4.2] Donc, l'usage de "!important" devrait être limité aux feuilles de style utilisateur, donc aux dispositifs d'accessibilité.
Universellement reconnu comme une mauvaise pratique: il FAUT s'en passer quand c'est possible, c'est à dire presque toujours.
https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity
The text was updated successfully, but these errors were encountered: