[


  • ::spelling-error (Pseudo-Elements) - CSS 中文开发手册
    这是一种实验技术
    由于该技术的规格不稳定,请查看各种浏览器的兼容性表格以供使用。另外请注意,随着规范的变化,实验技术的语法和行为在未来版本的浏览器中可能会发生变化。
    ::spelling-errorCSS 伪元素表示浏览器已经被标记为不正确拼写的文本片段。
    ::spelling-error { color: red; }
  • 只有一小部分CSS属性可以::spelling-error在其选择器中使用:
    colorbackground-colorcursortext-emphasis-colortext-shadowoutline和它的远郊text-decoration及其相关性质
    规范

Specification

Status

Comment

CSS Pseudo-Elements Level 4The definition of '::spelling-error' in that specification.

Working Draft

Initial definition

  • 浏览器兼容性

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

?

?

?

?

?

?