CSSCounterStyleRule: range プロパティ
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.
range
は CSSCounterStyleRule
インターフェイスのプロパティで、 range
記述子の値を取得または設定します。この記述子に値が設定されていない場合、この属性は空文字列を返します。
値
文字列です。
例
次の例は @counter-style
ルールを示しています。 JavaScript では myRules[0]
がこの @counter-style
ルールであり、 range
を返すと "2 4, 7 9" という値が得られます。
css
@counter-style range-multi-example {
system: cyclic;
symbols: "\25A0" "\25A1";
range:
2 4,
7 9;
}
js
let myRules = document.styleSheets[0].cssRules;
console.log(myRules[0].range); // "2 4, 7 9"
仕様書
Specification |
---|
CSS Counter Styles Level 3 # dom-csscounterstylerule-range |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
range |
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.