-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: csscounterstyle-pad 번역 * fix: renamed word decorator
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}} |