CSS - ::grammar-error

The ::grammar-error CSS pseudo-element represents a text segment which the browser has flagged as having grammatical error(s).

Description  

The ::grammar-error CSS pseudo-element represents a text segment which the browser has flagged as having grammatical error(s).

Only a small subset of CSS properties can be used in a rule using ::grammar-error in its selector: color, background-color, cursor, text-emphasis-color, text-shadow, outline and its longhands, text-decoration and its associated properties.

Browser Compatibility  

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? ? ? ? ?

See Also  

Specifications  

Specification Status Comment
CSS Pseudo-Elements Level 4
The definition of '::grammar-error' in that specification.
Working Draft Initial definition

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/css/::grammar-error

CSS CSS Pseudo-element Experimental NeedsBrowserCompatibility NeedsExample NeedsMobileBrowserCompatibility Pseudo-element Reference Web