-
Notifications
You must be signed in to change notification settings - Fork 8k
/
index.md
66 lines (45 loc) · 1.18 KB
/
index.md
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
---
title: "::spelling-error"
slug: 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
```css
::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
{{Specifications}}
## Compatibilité des navigateurs
{{Compat}}
## Voir aussi
- {{cssxref("::grammar-error")}}