MDN self-hosted library · e01.org

CSSCounterStyleRule: pad property

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
@counter-style box-corner {
  system: numeric;
  symbols: "0" "1" "2" "3" "4" "5";
  pad: 2 "0";
}
js
let myRules = document.styleSheets[0].cssRules;
console.log(myRules[0].pad); // "0"