::grammar-error 伪元素应用于浏览器标识为语法错误的文本段
只有一小部分的 css 能够应用在::grammar-error 的选择器中
- color
- background-color
- cursor
- text-emphasis-color
- text-shadow
- outline and its longhands
- text-decoration and its associated properties
规范
浏览器兼容性
参见
- ::spelling-error
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
