CSSCounterStyleRule: negative 속성
Baseline 2023Newly available
Since September 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
CSSCounterStyleRule
인터페이스의 negative
속성은 negative
설명자의 값을 호출하거나 지정합니다. 만일 설명자에 지정된 값이 없다면, 이 속성은 빈 문자열을 반환합니다.
값
문자열입니다.
예제
다음 예제는 @counter-style
의 규칙을 보여줍니다. JavaScript에서, myRules[0]
은 이 @counter-style
규칙이며, negative
를 반환하면 "-" 값을 얻을 수 있습니다.
css
@counter-style neg {
system: numeric;
symbols: "0" "1" "2" "3" "4" "5" "6" "7" "8" "9";
negative: "-";
}
js
let myRules = document.styleSheets[0].cssRules;
console.log(myRules[0].negative); // "-"
명세서
Specification |
---|
CSS Counter Styles Level 3 # dom-csscounterstylerule-negative |
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
negative |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full 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.