aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/css/_doublecolon_spelling-error/index.md
blob: 8405cdfc659654f36f4bddd60f56e70ab7cbf960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
title: '::spelling-error'
slug: Web/CSS/::spelling-error
tags:
  - CSS
  - Experimental
  - Pseudo-element
  - Reference
translation_of: Web/CSS/::spelling-error
---
{{CSSRef}}{{SeeCompatTable}}

Le pseudo-élément **`::spelling-error`** représente une portion de texte que le navigateur signale comme étant mal orthographiée.

```css
::spelling-error {
  color: red;
}
```

## Propriétés autoriséees

Seul un sous-ensemble restreint de propriétés CSS peut être utilisé dans une règle dont le sélecteur contient `::spelling-error` :

- {{cssxref("color")}},
- {{cssxref("background-color")}},
- {{cssxref("cursor")}},
- {{cssxref("caret-color")}}
- {{cssxref("outline")}} et les propriétés détaillées correspondantes,
- {{cssxref("text-decoration")}} et les propriétés détaillées correspondantes.
- {{cssxref("text-emphasis-color")}},
- {{cssxref("text-shadow")}}

## Syntaxe

    ::spelling-error

## Exemples

### CSS

```css
p::spelling-error { color:red }
```

### HTML

```html
<p>
  Alice devina tout de suite qu’il cherch l’éventail
  et la paire de gants.
</p>
```

### Résultat

{{EmbedLiveSample("Exemples","250","100")}}

## Spécifications

| Spécification                                                                                                        | État                                         | Commentaires        |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- | ------------------- |
| {{SpecName('CSS4 Pseudo-Elements', '#selectordef-spelling-error', '::spelling-error')}} | {{Spec2('CSS4 Pseudo-Elements')}} | Définition initiale |

## Compatibilité des navigateurs

{{Compat("css.selectors.spelling-error")}}

## Voir aussi

- {{cssxref("::grammar-error")}}