::spelling-error
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
허용되는 속성
CSS 속성의 일부만이 ::spelling-error
과 해당 선택자 내에서 함께 사용될 수 있습니다.
color
background-color
cursor
caret-color
outline
와 하위 속성들text-decoration
및 그에 연관된 속성들text-emphasis-color
text-shadow
구문
css
::spelling-error {
/* ... */
}
예제
간단한 문서 철자 확인
이 예제에서는 지원하는 브라우저는 표시된 스타일로 모든 철자 오류를 강조 표시해야 합니다.
HTML
html
<p contenteditable spellcheck="true">
My friends are coegdfgfddffbgning to the party tonight.
</p>
CSS
css
::spelling-error {
text-decoration: wavy red underline;
}
결과
명세서
Specification |
---|
CSS Pseudo-Elements Module Level 4 # selectordef-spelling-error |
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
::spelling-error |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.