CSSCounterStyleRule: system プロパティ
Baseline
2023
Newly available
Since September 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
system は CSSCounterStyleRule インターフェイスのプロパティで、 system 記述子の値を取得または設定します。この記述子に値が設定されていない場合、この属性は空文字列を返します。
値
文字列です。
例
次の例は @counter-style ルールを示しています。 JavaScript では myRules[0] がこの @counter-style ルールであり、 system を返すと "fixed" という値が得られます。
css
@counter-style box-corner {
system: fixed;
symbols: ◰ ◳ ◲ ◱;
suffix: ": ";
}
js
let myRules = document.styleSheets[0].cssRules;
console.log(myRules[0].system); // "fixed"
仕様書
| Specification |
|---|
| CSS Counter Styles Level 3> # dom-csscounterstylerule-system> |
ブラウザーの互換性
Loading…