::grammar-error

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格

::grammar-error 伪元素应用于浏览器标识为语法错误的文本段

只有一小部分的 css 能够应用在::grammar-error 的选择器中

Specifications

Specification
CSS Pseudo-Elements Module Level 4
# selectordef-grammar-error

Browser compatibility

BCD tables only load in the browser

See also