From 75c9efb03dd63fb59adde624552b6d4d04e178d7 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Wed, 17 Nov 2021 01:34:23 +0900 Subject: CSS 論理的プロパティのその他プロパティの変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/inset/index.html | 113 -------------------------------------- files/ja/web/css/inset/index.md | 113 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+), 113 deletions(-) delete mode 100644 files/ja/web/css/inset/index.html create mode 100644 files/ja/web/css/inset/index.md (limited to 'files/ja/web/css/inset') diff --git a/files/ja/web/css/inset/index.html b/files/ja/web/css/inset/index.html deleted file mode 100644 index c6ef5eeaac..0000000000 --- a/files/ja/web/css/inset/index.html +++ /dev/null @@ -1,113 +0,0 @@ ---- -title: inset -slug: Web/CSS/inset -tags: - - CSS - - CSS Logical Property - - CSS Property - - Experimental - - Property - - Reference - - 'recipe:css-property' -translation_of: Web/CSS/inset ---- -
{{CSSRef}}
- -

insetCSS のプロパティで、 {{cssxref("top")}}, {{cssxref("right")}}, {{cssxref("bottom")}}, {{cssxref("left")}} に対応する一括指定です。これは {{cssxref("margin")}} の一括指定における複数値の場合と同じ構文です。

- -

CSS 論理的プロパティの仕様書で定義されているものですが、論理的なオフセットを定義するものではありません。これは物理的なオフセットであり、要素の書字方向やテキストの向きには関係がありません。

- -
/* <length> 値 */
-inset: 10px; /* すべての辺に適用される値 */
-inset: 4px 8px; /* 上/下 左/右 */
-inset: 5px 15px 10px; /* 上 左/右 下 */
-inset: 2.4em 3em 3em 3em; /* 上 右 下 左 */
-
-/* 包含ブロックの幅 (左/右) または 高さ (上/下) に対する <percentage> */
-inset: 10% 5% 5% 5%;
-
-/* キーワード値 */
-inset: auto;
-
-/* グローバル値 */
-inset: inherit;
-inset: initial;
-inset: unset;
-
-
- -

構文

- -

- -

inset プロパティは {{cssxref("left")}} プロパティと同じ値を取ります。

- -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

要素のオフセットの設定

- -

HTML

- -
<div>
-  <span class="exampleText">テキストの例</span>
-</div>
-
- -

CSS

- -
div {
-  background-color: yellow;
-  width: 150px;
-  height: 120px;
-  position: relative;
-}
-
-.exampleText {
-  writing-mode: sideways-rl;
-  position: absolute;
-  inset: 20px 40px 30px 10px;
-  background-color: #c8c800;
-}
- -

結果

- -

{{EmbedLiveSample("Setting_offsets_for_an_element", 140, 140)}}

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName("CSS Logical Properties", "#propdef-inset", "inset")}}{{Spec2("CSS Logical Properties")}}初回定義
- -

ブラウザーの互換性

- -

{{Compat("css.properties.inset")}}

- -

関連情報

- - diff --git a/files/ja/web/css/inset/index.md b/files/ja/web/css/inset/index.md new file mode 100644 index 0000000000..c6ef5eeaac --- /dev/null +++ b/files/ja/web/css/inset/index.md @@ -0,0 +1,113 @@ +--- +title: inset +slug: Web/CSS/inset +tags: + - CSS + - CSS Logical Property + - CSS Property + - Experimental + - Property + - Reference + - 'recipe:css-property' +translation_of: Web/CSS/inset +--- +
{{CSSRef}}
+ +

insetCSS のプロパティで、 {{cssxref("top")}}, {{cssxref("right")}}, {{cssxref("bottom")}}, {{cssxref("left")}} に対応する一括指定です。これは {{cssxref("margin")}} の一括指定における複数値の場合と同じ構文です。

+ +

CSS 論理的プロパティの仕様書で定義されているものですが、論理的なオフセットを定義するものではありません。これは物理的なオフセットであり、要素の書字方向やテキストの向きには関係がありません。

+ +
/* <length> 値 */
+inset: 10px; /* すべての辺に適用される値 */
+inset: 4px 8px; /* 上/下 左/右 */
+inset: 5px 15px 10px; /* 上 左/右 下 */
+inset: 2.4em 3em 3em 3em; /* 上 右 下 左 */
+
+/* 包含ブロックの幅 (左/右) または 高さ (上/下) に対する <percentage> */
+inset: 10% 5% 5% 5%;
+
+/* キーワード値 */
+inset: auto;
+
+/* グローバル値 */
+inset: inherit;
+inset: initial;
+inset: unset;
+
+
+ +

構文

+ +

+ +

inset プロパティは {{cssxref("left")}} プロパティと同じ値を取ります。

+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

要素のオフセットの設定

+ +

HTML

+ +
<div>
+  <span class="exampleText">テキストの例</span>
+</div>
+
+ +

CSS

+ +
div {
+  background-color: yellow;
+  width: 150px;
+  height: 120px;
+  position: relative;
+}
+
+.exampleText {
+  writing-mode: sideways-rl;
+  position: absolute;
+  inset: 20px 40px 30px 10px;
+  background-color: #c8c800;
+}
+ +

結果

+ +

{{EmbedLiveSample("Setting_offsets_for_an_element", 140, 140)}}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("CSS Logical Properties", "#propdef-inset", "inset")}}{{Spec2("CSS Logical Properties")}}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.inset")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf