From 9ffa82421521377e1eb86ab73cbaf09ac0cada70 Mon Sep 17 00:00:00 2001 From: alattalatta Date: Fri, 11 Mar 2022 23:04:14 +0900 Subject: Remove {{page}} macro from CSS/HTML/HTTP docs (#4286) * Update Using CSS Transforms * Remove {{page}} from * Remove {{page}} from * Remove {{page}} from * Remove {{page}} from img-src * Remove {{page}} from script-src * Remove {{page}} from display --- .../css_transforms/using_css_transforms/index.html | 80 --- .../css_transforms/using_css_transforms/index.md | 541 +++++++++++++++++++ files/ko/web/css/display/index.html | 594 ++++++++++++++++----- files/ko/web/html/element/input/date/index.html | 10 +- files/ko/web/html/element/input/index.html | 54 -- files/ko/web/html/element/track/index.html | 14 +- .../content-security-policy/img-src/index.html | 4 +- .../content-security-policy/script-src/index.html | 7 +- 8 files changed, 1037 insertions(+), 267 deletions(-) delete mode 100644 files/ko/web/css/css_transforms/using_css_transforms/index.html create mode 100644 files/ko/web/css/css_transforms/using_css_transforms/index.md (limited to 'files') diff --git a/files/ko/web/css/css_transforms/using_css_transforms/index.html b/files/ko/web/css/css_transforms/using_css_transforms/index.html deleted file mode 100644 index 1c29e3b1e3..0000000000 --- a/files/ko/web/css/css_transforms/using_css_transforms/index.html +++ /dev/null @@ -1,80 +0,0 @@ ---- -title: CSS 변형 사용하기 -slug: Web/CSS/CSS_Transforms/Using_CSS_transforms -tags: - - 3D - - Advanced - - CSS - - CSS Transforms - - Graphics - - Guide -translation_of: Web/CSS/CSS_Transforms/Using_CSS_transforms ---- -
{{CSSRef}}
- -

CSS 변형(transform)은 좌표공간을 변형함으로써 일반적인 문서 흐름을 방해하지 않고 콘텐츠의 형태와 위치를 바꿉니다. 본 가이드는 변형 사용법의 기초를 제시합니다.

- -

CSS 변형은 HTML 요소에 선형 아핀 변형(affine linear transformation)을 적용하는 여러 개의 CSS 속성을 조합해 구현합니다. 변형은 평면과 3D 공간에서의 회전, 확대, 이동, 비틀기를 포함합니다.

- -
-

박스 모델에 따라 배치된 요소만 transform을 적용할 수 있습니다. 한 가지 예를 들자면, display: block속성을 가진 요소는 박스 모델을 따릅니다. 

-
- -

CSS 변형 속성

- -

CSS 변형을 정의할 때 중요한 두 가지 속성은 {{cssxref("transform")}}과 {{cssxref("transform-origin")}}입니다.

- -
-
{{cssxref("transform-origin")}}
-
원점의 위치를 지정합니다. 기본값은 요소의 중심이며 변경할 수 있습니다. 회전, 확대, 비틀기 등 하나의 점을 기준으로 하는 변형에서 사용합니다.
-
{{cssxref("transform")}}
-
요소에 적용할 변형을 지정합니다. 여러 개의 변형 목록을 공백으로 구분하여 대입하면 순차적으로 합성한 결과물을 적용합니다. 합성은 오른쪽부터 왼쪽으로 진행합니다.
-
- -

예제

- -

다음 이미지는 변형하지 않은 MDN 로고입니다.

- -

MDN Logo

- -

회전

- -

MDN 로고를 90도 회전합니다.

- -
<img style="transform: rotate(90deg);
-            transform-origin: bottom left;"
-     src="https://mdn.mozillademos.org/files/12539/Screen%20Shot%202016-02-16%20at%2015.53.54.png">
- -

{{EmbedLiveSample('회전', 'auto', 240) }}

- -

비틀고 옮기기

- -

MDN 로고를 10도 비틀고 X축으로 150픽셀 옮깁니다.

- -
<img style="transform: skewx(10deg) translatex(150px);
-            transform-origin: bottom left;"
-     src="https://mdn.mozillademos.org/files/12539/Screen%20Shot%202016-02-16%20at%2015.53.54.png">
- -

{{EmbedLiveSample('비틀고_옮기기') }}

- -

3D 전용 CSS 속성

- -

3D 공간에서의 CSS 변환은 좀 더 복잡합니다. 우선 원근감을 부여해 3D 공간을 설정한 후에, 2D 요소가 그 안에서 어떻게 행동할지 설정해야 합니다..

- -

원근

- -

처음으로 정할 항목은 {{cssxref("perspective")}}입니다. 우리가 입체라고 느낄 수 있는 건 원근감 덕분입니다. 요소가 관찰자에서 멀어질 수록 더 작게 보입니다.

- -

{{page("/ko/docs/Web/CSS/perspective", "Setting perspective", 0, 0, 3)}}

- -

다음으로는 {{cssxref("perspective-origin")}} 속성으로 관찰자의 위치를 정해야 합니다. 기본값은 중앙으로, 언제나 충분한 위치는 아닙니다.

- -

{{page("/ko/docs/Web/CSS/perspective-origin", "Changing the perspective origin", 0, 0, 3)}}

- -

모든 과정을 마쳤다면 3D 공간의 요소를 작업할 수 있습니다.

- -

더 보기

- - diff --git a/files/ko/web/css/css_transforms/using_css_transforms/index.md b/files/ko/web/css/css_transforms/using_css_transforms/index.md new file mode 100644 index 0000000000..fb163d5113 --- /dev/null +++ b/files/ko/web/css/css_transforms/using_css_transforms/index.md @@ -0,0 +1,541 @@ +--- +title: CSS 변형 사용하기 +slug: Web/CSS/CSS_Transforms/Using_CSS_transforms +tags: + - 3D + - Advanced + - CSS + - CSS Transforms + - Graphics + - Guide +translation_of: Web/CSS/CSS_Transforms/Using_CSS_transforms +--- +{{CSSRef}} + +**CSS 변형**(transform)은 좌표공간을 변형함으로써 일반적인 문서 흐름을 방해하지 않고 콘텐츠의 형태와 위치를 바꿉니다. 본 가이드는 변형 사용법의 기초를 제시합니다. + +CSS 변형은 HTML 요소에 선형 아핀 변형(affine linear transformation)을 적용하는 여러 개의 CSS 속성을 조합해 구현합니다. 변형은 평면과 3D 공간에서의 회전, 확대, 이동, 비틀기를 포함합니다. + +> **경고:** [박스 모델](/ko/docs/Web/CSS/CSS_Box_Model)에 따라 배치된 요소만 `transform`을 적용할 수 있습니다. 한 가지 예를 들자면, `display: block` 속성을 가진 요소는 박스 모델을 따릅니다. + +## CSS 변형 속성 + +CSS 변형을 정의할 때 중요한 두 가지 속성은 {{cssxref("transform")}}과 {{cssxref("transform-origin")}}입니다. + +- {{cssxref("transform-origin")}} + - : 원점의 위치를 지정합니다. 기본값은 요소의 중심이며 변경할 수 있습니다. 회전, 확대, 비틀기 등 하나의 점을 기준으로 하는 변형에서 사용합니다. +- {{cssxref("transform")}} + - : 요소에 적용할 변형을 지정합니다. 여러 개의 변형 목록을 공백으로 구분하여 대입하면 순차적으로 합성한 결과물을 적용합니다. 합성은 오른쪽부터 왼쪽으로 진행합니다. + +## 예제 + +다음 이미지는 변형하지 않은 MDN 로고입니다. + +![MDN Logo](https://mdn.mozillademos.org/files/12539/Screen%20Shot%202016-02-16%20at%2015.53.54.png) + +### 회전 + +MDN 로고를 90도 회전합니다. + +```html + +``` + +{{EmbedLiveSample('회전', 'auto', 240) }} + +### 비틀고 옮기기 + +MDN 로고를 10도 비틀고 X축으로 150픽셀 옮깁니다. + +```html + +``` + +{{EmbedLiveSample('비틀고_옮기기') }} + +## 3D 전용 CSS 속성 + +3D 공간에서의 CSS 변환은 좀 더 복잡합니다. 우선 원근감을 부여해 3D 공간을 설정한 후에, 2D 요소가 그 안에서 어떻게 행동할지 설정해야 합니다.. + +### 원근 + +처음으로 정할 항목은 {{cssxref("perspective")}}입니다. 우리가 입체라고 느낄 수 있는 건 원근감 덕분입니다. 요소가 관찰자에서 멀어질 수록 더 작게 보입니다. + +#### Setting perspective + +This example shows a cube with the perspective set at different positions. How quick the cube shrinks is defined by the {{ cssxref("perspective") }} property. The smaller its value is, the deeper the perspective is. + +##### HTML + +The HTML below creates four copies of the same box, with the perspective set at different values. + +```html + + + + + + + + + + + + + + + + + + + +
perspective: 250px; + perspective: 350px; +
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
perspective: 500px; + perspective: 650px; +
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+``` + +##### CSS + +The CSS establishes classes that can be used to set the perspective to different distances. It also includes classes for the container box and the cube itself, as well as each of its faces. + +```css +/* Shorthand classes for different perspective values */ +.pers250 { + perspective: 250px; +} + +.pers350 { + perspective: 350px; +} + +.pers500 { + perspective: 500px; +} + +.pers650 { + perspective: 650px; +} + +/* Define the container div, the cube div, and a generic face */ +.container { + width: 200px; + height: 200px; + margin: 75px 0 0 75px; + border: none; +} + +.cube { + width: 100%; + height: 100%; + backface-visibility: visible; + perspective-origin: 150% 150%; + transform-style: preserve-3d; +} + +.face { + display: block; + position: absolute; + width: 100px; + height: 100px; + border: none; + line-height: 100px; + font-family: sans-serif; + font-size: 60px; + color: white; + text-align: center; +} + +/* Define each face based on direction */ +.front { + background: rgba(0, 0, 0, 0.3); + transform: translateZ(50px); +} + +.back { + background: rgba(0, 255, 0, 1); + color: black; + transform: rotateY(180deg) translateZ(50px); +} + +.right { + background: rgba(196, 0, 0, 0.7); + transform: rotateY(90deg) translateZ(50px); +} + +.left { + background: rgba(0, 0, 196, 0.7); + transform: rotateY(-90deg) translateZ(50px); +} + +.top { + background: rgba(196, 196, 0, 0.7); + transform: rotateX(90deg) translateZ(50px); +} + +.bottom { + background: rgba(196, 0, 196, 0.7); + transform: rotateX(-90deg) translateZ(50px); +} + +/* Make the table a little nicer */ +th, p, td { + background-color: #EEEEEE; + padding: 10px; + font-family: sans-serif; + text-align: left; +} +``` + +##### Result + +{{EmbedLiveSample('Setting_perspective', 660, 700)}} + +다음으로는 {{cssxref("perspective-origin")}} 속성으로 관찰자의 위치를 정해야 합니다. 기본값은 중앙으로, 언제나 충분한 위치는 아닙니다. + +#### Changing the perspective origin + +This example shows cubes with popular `perspective-origin` values. + +##### HTML + +```html +
+ +
+
perspective-origin: top left;
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+ +
+
perspective-origin: top;
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+ +
+
perspective-origin: top right;
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+ +
+
perspective-origin: left;
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+ +
+
perspective-origin: 50% 50%;
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+ +
+
perspective-origin: right;
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+ +
+
perspective-origin: bottom left;
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+ +
+
perspective-origin: bottom;
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+ +
+
perspective-origin: bottom right;
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+ +
+
perspective-origin: -200% -200%;
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+ +
+
perspective-origin: 200% 200%;
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+ +
+
perspective-origin: 200% -200%;
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
+
+
+ +
+``` + +##### CSS + +```css +/* perspective-origin values (unique per example) */ +.potl { + perspective-origin: top left; +} +.potm { + perspective-origin: top; +} +.potr { + perspective-origin: top right; +} +.poml { + perspective-origin: left; +} +.pomm { + perspective-origin: 50% 50%; +} +.pomr { + perspective-origin: right; +} +.pobl { + perspective-origin: bottom left; +} +.pobm { + perspective-origin: bottom; +} +.pobr { + perspective-origin: bottom right; +} +.po200200neg { + perspective-origin: -200% -200%; +} +.po200200pos { + perspective-origin: 200% 200%; +} +.po200200 { + perspective-origin: 200% -200%; +} + +/* Define the container div, the cube div, and a generic face */ +.container { + width: 100px; + height: 100px; + margin: 24px; + border: none; +} + +.cube { + width: 100%; + height: 100%; + backface-visibility: visible; + perspective: 300px; + transform-style: preserve-3d; +} + +.face { + display: block; + position: absolute; + width: 100px; + height: 100px; + border: none; + line-height: 100px; + font-family: sans-serif; + font-size: 60px; + color: white; + text-align: center; +} + +/* Define each face based on direction */ +.front { + background: rgba(0, 0, 0, 0.3); + transform: translateZ(50px); +} +.back { + background: rgba(0, 255, 0, 1); + color: black; + transform: rotateY(180deg) translateZ(50px); +} +.right { + background: rgba(196, 0, 0, 0.7); + transform: rotateY(90deg) translateZ(50px); +} +.left { + background: rgba(0, 0, 196, 0.7); + transform: rotateY(-90deg) translateZ(50px); +} +.top { + background: rgba(196, 196, 0, 0.7); + transform: rotateX(90deg) translateZ(50px); +} +.bottom { + background: rgba(196, 0, 196, 0.7); + transform: rotateX(-90deg) translateZ(50px); +} + +/* Make the layout a little nicer */ +section { + background-color: #EEE; + padding: 10px; + font-family: sans-serif; + text-align: left; + display: grid; + grid-template-columns: repeat(3, 1fr); +} +``` + +##### Result + +{{EmbedLiveSample('Changing_the_perspective_origin', '100%', 700)}} + +모든 과정을 마쳤다면 3D 공간의 요소를 작업할 수 있습니다. + +## 더 보기 + +- [Using device orientation with 3D Transforms](/en-US/docs/Web/Guide/Events/Using_device_orientation_with_3D_transforms "Using Deviceorientation In 3D Transforms") diff --git a/files/ko/web/css/display/index.html b/files/ko/web/css/display/index.html index 73a6545e54..41ebe49019 100644 --- a/files/ko/web/css/display/index.html +++ b/files/ko/web/css/display/index.html @@ -9,17 +9,28 @@ tags: - display translation_of: Web/CSS/display --- +
{{CSSRef}}
-

display CSS 속성은 요소를 블록과 인라인 요소 중 어느 쪽으로 처리할지와 함께, 플로우, 그리드, 플렉스처럼 자식 요소를 배치할 때 사용할 레이아웃을 설정합니다.

+

+ display CSS 속성은 요소를 + 블록과 인라인 요소 중 어느 쪽으로 처리할지와 함께, + 플로우, 그리드, + 플렉스처럼 자식 요소를 배치할 때 사용할 레이아웃을 설정합니다. +

-

display 속성은, 형식적으로는 요소의 내부와 외부 디스플레이 유형을 설정합니다. 외부 디스플레이 유형은 플로우 레이아웃에 요소가 참여하는 방법을 나타내고, 내부 디스플레이 유형은 자식의 레이아웃 방식을 설정합니다. display의 일부 값은 자신만의 명세를 가지고 있습니다. 이 문서의 끝에서 찾을 수 있는 명세표를 참고하세요.

+

+ display 속성은, 형식적으로는 요소의 내부와 외부 디스플레이 유형을 설정합니다. 외부 디스플레이 유형은 + 플로우 레이아웃에 요소가 참여하는 방법을 나타내고, 내부 디스플레이 유형은 자식의 레이아웃 방식을 설정합니다. + display의 일부 값은 자신만의 명세를 가지고 있습니다. 이 문서의 끝에서 찾을 수 있는 명세표를 참고하세요. +

구문

display 속성은 키워드 값을 사용해 지정합니다. 키워드는 6개의 카테고리로 분류할 수 있습니다.

-
.container {
+
+.container {
   display: <display-keyword>;
 }
 
@@ -27,193 +38,532 @@ translation_of: Web/CSS/display

바깥쪽

-
{{CSSxRef("<display-outside>")}}
-
요소의 외부 디스플레이 유형을 설정하는 키워드입니다. 외부 디스플레이 유형은 플로우 레이아웃에서 요소 자신의 역할과 마찬가지입니다.
+
{{CSSxRef("<display-outside>")}}
+
+

+ 요소의 외부 디스플레이 유형을 설정하는 키워드입니다. 외부 디스플레이 유형은 플로우 레이아웃에서 요소 자신의 역할과 + 마찬가지입니다. +

+
+
block
+
+

+ The element generates a block element box, generating line breaks both before and after the element when in + the normal flow. +

+
+
inline
+
+

+ The element generates one or more inline element boxes that do not generate line breaks before or after + themselves. In normal flow, the next element will be on the same line if there is space +

+
+
+
- -

{{page("/ko/docs/Web/CSS/display-outside", "Syntax")}}

+
+

+ Note: Browsers that support the two-value syntax, on finding the outer value only, such as when + display: block or display: inline is specified, will set the inner value to + flow. This will result in expected behavior; for example, if you specify an element to be block, you + would expect that the children of that element would participate in block and inline normal flow layout. +

+

안쪽

-
{{CSSxRef("<display-inside>")}}
-
요소의 내부 디스플레이 유형을 설정하는 키워드입니다. 내부 디스플레이 유형은 대체 요소가 아닌 요소의 콘텐츠 서식과 배치 방법을 나타냅니다.
+
{{CSSxRef("<display-inside>")}}
+
+

+ 요소의 내부 디스플레이 유형을 설정하는 키워드입니다. 내부 디스플레이 유형은 대체 요소가 아닌 요소의 콘텐츠 서식과 + 배치 방법을 나타냅니다. +

+
+
flow {{Experimental_Inline}}
+
+

The element lays out its contents using flow layout (block-and-inline layout).

+

+ If its outer display type is inline or run-in, and it is participating in a block or + inline formatting context, then it generates an inline box. Otherwise it generates a block container box. +

+

+ Depending on the value of other properties (such as {{CSSxRef("position")}}, {{CSSxRef("float")}}, or + {{CSSxRef("overflow")}}) and whether it is itself participating in a block or inline formatting context, it + either establishes a new + block formatting context (BFC) for its contents + or integrates its contents into its parent formatting context. +

+
+
flow-root
+
+

+ The element generates a block element box that establishes a new + block formatting context, defining where the + formatting root lies. +

+
+
table
+
+

These elements behave like HTML {{HTMLElement("table")}} elements. It defines a block-level box.

+
+
flex
+
+

+ The element behaves like a block element and lays out its content according to the + flexbox model. +

+
+
grid
+
+

+ The element behaves like a block element and lays out its content according to the + grid model. +

+
+
ruby {{Experimental_Inline}}
+
+

+ The element behaves like an inline element and lays out its content according to the ruby formatting model. It + behaves like the corresponding HTML {{HTMLElement("ruby")}} elements. +

+
+
+
- -

{{page("/ko/docs/Web/CSS/display-inside", "Syntax")}}

+
+

+ Note: Browsers that support the two-value syntax, on finding the inner value only, such as when + display: flex or display: grid is specified, will set their outer value to + block. This will result in expected behavior; for example, if you specify an element to be + display: grid, you would expect that the box created on the grid container would be a block-level box. +

+

리스트 아이템

-
{{cssxref("<display-listitem>")}}
-
요소가 콘텐츠 블록 박스를 생성하고, 리스트 아이템 인라인 박스를 분리합니다.
+
{{cssxref("<display-listitem>")}}
+
+

요소가 콘텐츠 블록 박스를 생성하고, 리스트 아이템 인라인 박스를 분리합니다.

+
- -

{{page("/ko/docs/Web/CSS/display-listitem", "Syntax")}}

+

+ A single value of list-item will cause the element to behave like a list item. This can be used together + with {{CSSxRef("list-style-type")}} and {{CSSxRef("list-style-position")}}. +

+

+ list-item can also be combined with any {{CSSxRef("<display-outside>")}} keyword and the + flow or flow-root {{CSSxRef("<display-inside>")}} keywords. +

+
+

+ Note: In browsers that support the two-value syntax, if no inner value is specified, it will + default to flow. If no outer value is specified, the principal box will have an outer display type of + block. +

+

내부적

-
{{cssxref("<display-internal>")}}
-
table, ruby 등 일부 레이아웃 모델은 복잡한 내부 구조를 가지며, 자식과 자손이 채워넣을 여러가지 역할을 지닙니다. 이 항목은 그런 특정 레이아웃 모드에서만 의미를 갖는 "내부적"인 값을 정의합니다.
+
{{cssxref("<display-internal>")}}
+
+

+ table, ruby 등 일부 레이아웃 모델은 복잡한 내부 구조를 가지며, 자식과 자손이 채워넣을 + 여러가지 역할을 지닙니다. 이 항목은 그런 특정 레이아웃 모드에서만 의미를 갖는 "내부적"인 값을 정의합니다. +

+
+
table-row-group
+
+

These elements behave like {{HTMLElement("tbody")}} HTML elements.

+
+
table-header-group
+
+

These elements behave like {{HTMLElement("thead")}} HTML elements.

+
+
table-footer-group
+
+

These elements behave like {{HTMLElement("tfoot")}} HTML elements.

+
+
table-row
+
+

These elements behave like {{HTMLElement("tr")}} HTML elements.

+
+
table-cell
+
+

These elements behave like {{HTMLElement("td")}} HTML elements.

+
+
table-column-group
+
+

These elements behave like {{HTMLElement("colgroup")}} HTML elements.

+
+
table-column
+
+

These elements behave like {{HTMLElement("col")}} HTML elements.

+
+
table-caption
+
+

These elements behave like {{HTMLElement("caption")}} HTML elements.

+
+
ruby-base {{Experimental_Inline}}
+
+

These elements behave like {{HTMLElement("rb")}} HTML elements.

+
+
ruby-text {{Experimental_Inline}}
+
+

These elements behave like {{HTMLElement("rt")}} HTML elements.

+
+
ruby-base-container {{Experimental_Inline}}
+
+

These elements behave like {{HTMLElement("rbc")}} HTML elements generated as anonymous boxes.

+
+
ruby-text-container {{Experimental_Inline}}
+
+

These elements behave like {{HTMLElement("rtc")}} HTML elements.

+
+
+
-

{{page("/ko/docs/Web/CSS/display-internal", "Syntax")}}

-

박스

-
{{CSSxRef("<display-box>")}}
-
요소의 디스플레이 박스를 생성해야 하는지 지정합니다.
+
{{CSSxRef("<display-box>")}}
+
+

요소의 디스플레이 박스를 생성해야 하는지 지정합니다.

+
+
contents
+
+

+ These elements don't produce a specific box by themselves. They are replaced by their pseudo-box and their + child boxes. Please note that the CSS Display Level 3 spec defines how the contents value should + affect "unusual elements" — elements that aren't rendered purely by CSS box concepts such as replaced + elements. See + Appendix B: Effects of display: contents on Unusual Elements + for more details. +

+

+ Due to a bug in browsers, this will currently remove the element from the accessibility tree — screen + readers will not look at what's inside. See the + Accessibility concerns section below for more details. +

+
+
none
+
+

+ Turns off the display of an element so that it has no effect on layout (the document is rendered as though the + element did not exist). All descendant elements also have their display turned off. To have an element take up + the space that it would normally take, but without actually rendering anything, use the + {{CSSxRef("visibility")}} property instead. +

+
+
+
-

{{page("/ko/docs/Web/CSS/display-box", "Syntax")}}

-

레거시

-
{{CSSxRef("<display-legacy>")}}
-
CSS 2는 display 속성에 단일 키워드만 사용했으므로, 같은 레이아웃 모드를 위해 블록 레벨과 인라인 레벨 키워드를 각각 필요로 했습니다.
+
{{CSSxRef("<display-legacy>")}}
+
+

+ CSS 2는 display 속성에 단일 키워드만 사용했으므로, 같은 레이아웃 모드를 위해 블록 레벨과 인라인 레벨 + 키워드를 각각 필요로 했습니다. +

+
+
inline-block
+
+

+ The element generates a block element box that will be flowed with surrounding content as if it were a single + inline box (behaving much like a replaced element would). +

+

It is equivalent to inline flow-root.

+
+
inline-table
+
+

+ The inline-table value does not have a direct mapping in HTML. It behaves like an HTML + {{HTMLElement("table")}} element, but as an inline box, rather than a block-level box. Inside the table box is + a block-level context. +

+

It is equivalent to inline table.

+
+
inline-flex
+
+

The element behaves like an inline element and lays out its content according to the flexbox model.

+

It is equivalent to inline flex.

+
+
inline-grid
+
+

The element behaves like an inline element and lays out its content according to the grid model.

+

It is equivalent to inline grid.

+
+
+
-

{{page("/ko/docs/Web/CSS/display-legacy", "Syntax")}}

- -

The Level 3 specification details two values for the display property — enabling the specification of the outer and inner display type explicitly — but this is not yet well-supported by browsers.

- -

The display-legacy methods allow the same results with single keyword values, and should be favoured by developers until the two keyword values are better supported. For example, using two values you might specify an inline flex container as follows:

- -
.container {
+

Which syntax should you use now?

+

+ The Level 3 specification details two values for the display property — enabling the specification of the + outer and inner display type explicitly — but this is not yet well-supported by browsers. +

+

+ The <display-legacy> methods allow the same results with single keyword values, and should be + favoured by developers until the two keyword values are better supported. For example, using two values you might + specify an inline flex container as follows: +

+
+.container {
   display: inline flex;
-}
- +} +

This can currently be specified using a single value.

- -
.container {
+
+.container {
   display: inline-flex;
 }
 
- -

전역

- -
display: inherit;
+

+ For more information on these changes to the specification, see the article + Adapting to the new two-value syntax of display. +

+

Global

+
+/* Global values */
+display: inherit;
 display: initial;
 display: unset;
 

안내서 및 예제

-

The individual pages for the different types of value that display can have set on it feature multiple examples of those values in action — see the {{anch("Syntax")}} section. In addition, see the following material, which covers the various values of display in depth.

+

+ The individual pages for the different types of value that display can have set on it feature multiple + examples of those values in action — see the {{anch("Syntax")}} section. In addition, see the following material, + which covers the various values of display in depth. +

-

CSS Flow Layout (display: block, display: inline)

+

+ CSS Flow Layout (display: block, display: inline) +

display: flex

display: grid

접근성 고려사항

display: none

-

Using a display value of none on an element will remove it from the accessibility tree. This will cause the element and all its descendant elements to no longer be announced by screen reading technology.

+

+ Using a display value of none on an element will remove it from the + accessibility tree. This will + cause the element and all its descendant elements to no longer be announced by screen reading technology. +

-

If you want to visually hide the element, a more accessible alternative is to use a combination of properties to remove it visually from the screen but keep it parseable by assistive technology such as screen readers.

+

+ If you want to visually hide the element, a more accessible alternative is to use + a combination of properties + to remove it visually from the screen but keep it parseable by assistive technology such as screen readers. +

display: contents

-

Current implementations in most browsers will remove from the accessibility tree any element with a display value of contents (but descendants will remain). This will cause the element itself to no longer be announced by screen reading technology. This is incorrect behavior according to the CSS specification.

+

+ Current implementations in most browsers will remove from the + accessibility tree any element + with a display value of contents (but descendants will remain). This will cause the element + itself to no longer be announced by screen reading technology. This is incorrect behavior according to the + CSS specification. +

Tables

-

Changing the display value of a {{HTMLElement("table")}} element to block, grid, or flex will alter its representation in the accessibility tree. This will cause the table to no longer be announced properly by screen reading technology.

+

+ Changing the display value of a {{HTMLElement("table")}} element to block, + grid, or flex will alter its representation in the + accessibility tree. This will + cause the table to no longer be announced properly by screen reading technology. +

명세

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('CSS3 Display', '#the-display-properties', 'display')}}{{Spec2('CSS3 Display')}}Added run-in, flow, flow-root, contents, and multi-keyword values.
{{SpecName('CSS3 Ruby', '#ruby-display', 'display')}}{{Spec2('CSS3 Ruby')}}Added ruby, ruby-base, ruby-text, ruby-base-container, and ruby-text-container.
{{SpecName('CSS3 Grid', '#grid-containers', 'display')}}{{Spec2('CSS3 Grid')}}Added the grid box model values.
{{SpecName('CSS3 Flexbox', '#flex-containers', 'display')}}{{Spec2('CSS3 Flexbox')}}Added the flexible box model values.
{{SpecName('CSS2.1', 'visuren.html#display-prop', 'display')}}{{Spec2('CSS2.1')}}Added the table model values and inline-block.
{{SpecName('CSS1', '#display', 'display')}}{{Spec2('CSS1')}}Initial definition. Basic values: none, block, inline, and list-item.
SpecificationStatusComment
{{SpecName('CSS3 Display', '#the-display-properties', 'display')}}{{Spec2('CSS3 Display')}} + Added run-in, flow, flow-root, contents, and multi-keyword + values. +
{{SpecName('CSS3 Ruby', '#ruby-display', 'display')}}{{Spec2('CSS3 Ruby')}} + Added ruby, ruby-base, ruby-text, ruby-base-container, and + ruby-text-container. +
{{SpecName('CSS3 Grid', '#grid-containers', 'display')}}{{Spec2('CSS3 Grid')}}Added the grid box model values.
{{SpecName('CSS3 Flexbox', '#flex-containers', 'display')}}{{Spec2('CSS3 Flexbox')}}Added the flexible box model values.
{{SpecName('CSS2.1', 'visuren.html#display-prop', 'display')}}{{Spec2('CSS2.1')}} + Added the table model values and inline-block. +
{{SpecName('CSS1', '#display', 'display')}}{{Spec2('CSS1')}} + Initial definition. Basic values: none, block, inline, and + list-item. +

{{cssinfo}}

@@ -225,8 +575,12 @@ display: unset;

같이 보기

diff --git a/files/ko/web/html/element/input/date/index.html b/files/ko/web/html/element/input/date/index.html index 8a40c3cc75..79fae01f34 100644 --- a/files/ko/web/html/element/input/date/index.html +++ b/files/ko/web/html/element/input/date/index.html @@ -124,11 +124,17 @@ console.log(dateControl.valueAsNumber); // prints 1496275200000, a UNIX timestam

{{htmlattrdef("step")}}

-

{{page("/en-US/docs/Web/HTML/Element/input/number", "step-include")}}

+

The step attribute is a number that specifies the granularity that the value must adhere to, or the special value any, which is described below. Only values which are equal to the basis for stepping ({{anch("min")}} if specified, {{htmlattrxref("value", "input")}} otherwise, and an appropriate default value if neither of those is provided) are valid.

+ +

A string value of any means that no stepping is implied, and any value is allowed (barring other constraints, such as {{anch("min")}} and {{anch("max")}}).

+ +
+

참고: When the data entered by the user doesn't adhere to the stepping configuration, the {{Glossary("user agent")}} may round to the nearest valid value, preferring numbers in the positive direction when there are two equally close options.

+

date 입력 칸의 step 값은 날짜 단위, 즉 밀리초 단위로 86,400,000 ✕ step로 처리합니다. 기본값은 1로, 하루를 나타냅니다.

-
+

참고: date 입력 칸에서 step의 값으로 any를 지정하면 1과 같습니다.

diff --git a/files/ko/web/html/element/input/index.html b/files/ko/web/html/element/input/index.html index 8ff435e12d..aae4e879d9 100644 --- a/files/ko/web/html/element/input/index.html +++ b/files/ko/web/html/element/input/index.html @@ -756,60 +756,6 @@ let hatSize = form.elements["hat-size"]; -

Non-standard attributes

- -

The following non-standard attributes are also available on some browsers. As a general rule, you should avoid using them unless it can't be helped.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AttributeDescription
{{anch("autocorrect")}}A string indicating whether or not autocorrect is on or off. Safari only.
{{anch("incremental")}}Whether or not to send repeated {{event("search")}} events to allow updating live search results while the user is still editing the value of the field. WebKit and Blink only (Safari, Chrome, Opera, etc.).
{{anch("mozactionhint")}}A string indicating the type of action that will be taken when the user presses the Enter or Return key while editing the field; this is used to determine an appropriate label for that key on a virtual keyboard. Firefox for Android only.
{{anch("orient")}}Sets the orientation of the range slider. Firefox only.
{{anch("results")}}The maximum number of items that should be displayed in the drop-down list of previous search queries. Safari only.
{{anch("webkitdirectory")}}A Boolean indicating whether or not to only allow the user to choose a directory (or directories, if {{anch("multiple")}} is also present)
- -
-
{{htmlattrdef("autocorrect")}} {{non-standard_inline}}
-
{{page("/en-US/docs/Web/HTML/Element/input/text", "autocorrect-include")}}
-
{{htmlattrdef("incremental")}} {{non-standard_inline}}
-
{{page("/en-US/docs/Web/HTML/Element/input/search", "incremental-include")}}
-
{{htmlattrdef("mozactionhint")}} {{non-standard_inline}}
-
{{page("/en-US/docs/Web/HTML/Element/input/text", "mozactionhint-include")}}
-
{{htmlattrdef("orient")}} {{non-standard_inline}}
-
{{page("/en-US/docs/Web/HTML/Element/input/range", "orient-include")}}
-
{{htmlattrdef("results")}} {{non-standard_inline}}
-
{{page("/en-US/docs/Web/HTML/Element/input/search", "results-include")}}
-
{{htmlattrdef("webkitdirectory")}} {{non-standard_inline}}
-
{{page("/en-US/docs/Web/HTML/Element/input/file", "webkitdirectory-include")}}
-
-

예제

A simple input box

diff --git a/files/ko/web/html/element/track/index.html b/files/ko/web/html/element/track/index.html index 9ac120629d..cb391ba9f6 100644 --- a/files/ko/web/html/element/track/index.html +++ b/files/ko/web/html/element/track/index.html @@ -107,11 +107,15 @@ translation_of: Web/HTML/Element/track

미디어 요소는 동일한 kind, srclang, label을 가진 <track>을 하나보다 많이 포함할 수 없습니다.

- +

Detecting cue changes

+

The underlying {{domxref("TextTrack")}}, indicated by the {{domxref("HTMLTrackElement.track", "track")}} property, receives a cuechange event every time the currently-presented cue is changed. This happens even if the track isn't associated with a media element.

+

If the track is associated with a media element, using the {{HTMLElement("track")}} element as a child of the {{HTMLElement("audio")}} or {{HTMLElement("video")}} element, the cuechange event is also sent to the {{domxref("HTMLTrackElement")}}.

+
let textTrackElem = document.getElementById("texttrack");
+
+textTrackElem.addEventListener("cuechange", event => {
+  let cues = event.target.track.activeCues;
+});
+

예제

diff --git a/files/ko/web/http/headers/content-security-policy/img-src/index.html b/files/ko/web/http/headers/content-security-policy/img-src/index.html index 6bd205e5f4..c9c47fa769 100644 --- a/files/ko/web/http/headers/content-security-policy/img-src/index.html +++ b/files/ko/web/http/headers/content-security-policy/img-src/index.html @@ -34,7 +34,9 @@ Content-Security-Policy: img-src <source> <source>;

Sources

-

{{page("Web/HTTP/Headers/Content-Security-Policy/default-src", "Sources")}}

+

<source> can be any one of the values listed in CSP Source Values.

+ +

Note that this same set of values can be used in all {{Glossary("fetch directive", "fetch directives")}} (and a number of other directives).

Examples

diff --git a/files/ko/web/http/headers/content-security-policy/script-src/index.html b/files/ko/web/http/headers/content-security-policy/script-src/index.html index 766043ee67..9cfba52f56 100644 --- a/files/ko/web/http/headers/content-security-policy/script-src/index.html +++ b/files/ko/web/http/headers/content-security-policy/script-src/index.html @@ -34,12 +34,9 @@ Content-Security-Policy: script-src <source> <source>;

Sources

-

{{page("Web/HTTP/Headers/Content-Security-Policy/default-src", "Sources")}}

+

<source> can be any one of the values listed in CSP Source Values.

-
-
'report-sample'
-
 Report에 위반 코드 샘플을 포함시키려면 이 항목을 추가 해야 합니다.
-
+

Note that this same set of values can be used in all {{Glossary("fetch directive", "fetch directives")}} (and a number of other directives).

예제

-- cgit v1.2.3-54-g00ecf