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 --- files/ko/web/css/display/index.html | 594 ++++++++++++++++++++++++++++-------- 1 file changed, 474 insertions(+), 120 deletions(-) (limited to 'files/ko/web/css/display') 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;

같이 보기

-- cgit v1.2.3-54-g00ecf