diff options
Diffstat (limited to 'files/fr/web/css/_colon_where/index.md')
-rw-r--r-- | files/fr/web/css/_colon_where/index.md | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/files/fr/web/css/_colon_where/index.md b/files/fr/web/css/_colon_where/index.md new file mode 100644 index 0000000000..3e9f501aba --- /dev/null +++ b/files/fr/web/css/_colon_where/index.md @@ -0,0 +1,50 @@ +--- +title: ':where()' +slug: 'Web/CSS/:where' +tags: + - CSS + - Experimental + - Pseudo-classe + - Reference + - Sélecteur +translation_of: 'Web/CSS/:where' +--- +<div>{{CSSRef}}{{Draft}}{{SeeCompatTable}}</div> + +<p>La pseudo-classe fonctionnelle <strong><code>:where()</code></strong> prend comme argument une liste de sélecteurs et cible tout élément qui peut être sélectionné par l'un des sélecteurs de la liste.</p> + +<p>La différence entre <code>:where()</code> et {{CSSxRef(":is", ":is()")}} est la suivante : <code>:where()</code> aura toujours <a href="/fr/docs/Apprendre/CSS/Introduction_à_CSS/La_cascade_et_l_héritage#Spécificité">une spécificité</a> nulle tandis que <code>:is()</code> prend la spécificité du sélecteur passé en argument le plus spécifique.</p> + +<h2 id="Syntaxe">Syntaxe</h2> + +{{CSSSyntax}} + +<h2 id="Spécifications">Spécifications</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Spécification</th> + <th scope="col">État</th> + <th scope="col">Commentaires</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName("CSS4 Selectors", "#zero-matches", ":where()")}}</td> + <td>{{Spec2("CSS4 Selectors")}}</td> + <td>Définition initiale.</td> + </tr> + </tbody> +</table> + +<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2> + +<p>{{Compat("css.selectors.where")}}</p> + +<h2 id="Voir_aussi">Voir aussi</h2> + +<ul> + <li>{{CSSxRef(":is", ":is()")}} {{Experimental_Inline}}</li> + <li><a href="/fr/docs/Web/Web_Components">Les composants web</a></li> +</ul> |