CSS ::grammar-error Pseudo-element
Example
Style a text that the browser has flagged as grammatically incorrect:
::grammar-error {
text-decoration: underline red;
color: red;
}
Try it Yourself »
Definition and Usage
The CSS ::grammar-error
pseudo-element is used to
style a text that the browser has flagged as grammatically incorrect.
Note: The following properties can be used with ::grammar-error:
- color
- background-color
- cursor
- caret-color
- outline
- text-decoration
- text-emphasis-color
- text-shadow
Version: | CSS Pseudo-elements Module Level 4 |
---|
Browser Support
The numbers in the table specifies the first browser version that fully supports the pseudo-element.
Pseudo-element | |||||
---|---|---|---|---|---|
::grammar-error | 121 | 121 | No | 17.4 | 107 |
CSS Syntax
::grammar-error {
css declarations;
}
Related Pages
CSS tutorial: CSS Pseudo-elements