From ece9394f7400be729ac819a673d533c7a74104ea Mon Sep 17 00:00:00 2001 From: Vivi <89691274+givvemee@users.noreply.github.com> Date: Mon, 20 May 2024 20:15:26 +0900 Subject: [PATCH] =?UTF-8?q?csscounterstyle-pad=20=EB=B2=88=EC=97=AD=20(#20?= =?UTF-8?q?454)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: csscounterstyle-pad 번역 * fix: renamed word decorator --- .../web/api/csscounterstylerule/pad/index.md | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 files/ko/web/api/csscounterstylerule/pad/index.md diff --git a/files/ko/web/api/csscounterstylerule/pad/index.md b/files/ko/web/api/csscounterstylerule/pad/index.md new file mode 100644 index 00000000000000..574835faf5e704 --- /dev/null +++ b/files/ko/web/api/csscounterstylerule/pad/index.md @@ -0,0 +1,39 @@ +--- +title: "CSSCounterStyleRule: pad 속성" +slug: Web/API/CSSCounterStyleRule/pad +l10n: + sourceCommit: 59b1cd1f520971b89ccf521d53a1d9d3bf4c0756 +--- + +{{APIRef("CSS Counter Styles")}} + +{{domxref("CSSCounterStyleRule")}} 인터페이스의 **`pad`** 속성은 {{cssxref("@counter-style/pad", "pad")}} 설명자의 값을 호출하거나 지정합니다. 만일 설명자에 지정된 값이 없다면, 이 속성은 빈 문자열을 반환합니다. + +## 값 + +문자열입니다. + +## 예제 + +다음 예제는 {{cssxref("@counter-style")}} 의 규칙을 보여줍니다. JavaScript에서, `myRules[0]` 은 이 `@counter-style` 규칙이며, `pad` 를 반환하면 "0" 값을 얻을 수 있습니다. + +```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" +``` + +## 명세서 + +{{Specifications}} + +## 브라우저 호환성 + +{{Compat}}