aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/inset-block-start/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/css/inset-block-start/index.md')
-rw-r--r--files/ja/web/css/inset-block-start/index.md107
1 files changed, 107 insertions, 0 deletions
diff --git a/files/ja/web/css/inset-block-start/index.md b/files/ja/web/css/inset-block-start/index.md
new file mode 100644
index 0000000000..08dceab431
--- /dev/null
+++ b/files/ja/web/css/inset-block-start/index.md
@@ -0,0 +1,107 @@
+---
+title: inset-block-start
+slug: Web/CSS/inset-block-start
+tags:
+ - CSS
+ - CSS Logical Property
+ - CSS Property
+ - Experimental
+ - Reference
+ - 'recipe:css-property'
+translation_of: Web/CSS/inset-block-start
+---
+<div>{{CSSRef}}</div>
+
+<p><span class="seoSummary"><strong><code>inset-block-start</code></strong> は <a href="/ja/docs/Web/CSS">CSS</a> のプロパティで、要素における先頭からの論理的なオフセットを定義し、要素の書字方向やテキストの向きに従って物理的な内部位置に対応付けられます。</span> {{cssxref("top")}}, {{cssxref("right")}}, {{cssxref("bottom")}}, {{cssxref("left")}} のいずれかのプロパティに、 {{cssxref("writing-mode")}}, {{cssxref("direction")}}, {{cssxref("text-orientation")}} で定義された値に従って対応します。</p>
+
+<pre class="brush:css no-line-numbers notranslate">/* &lt;length&gt; 値 */
+inset-block-start: 3px;
+inset-block-start: 2.4em;
+
+/* 包含ブロックの幅または高さに対する &lt;percentage&gt; 値 */
+inset-block-start: 10%;
+
+/* キーワード値 */
+inset-block-start: auto;
+
+/* グローバル値 */
+inset-block-start: inherit;
+inset-block-start: initial;
+inset-block-start: unset;
+</pre>
+
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<h3 id="Values" name="Values">値</h3>
+
+<p><code>inset-block-start</code> プロパティは {{cssxref("left")}} プロパティと同じ値を取ります。</p>
+
+<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
+
+<p>{{cssinfo}}</p>
+
+<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
+
+{{csssyntax}}
+
+<h2 id="Examples" name="Examples">例</h2>
+
+<h3 id="Setting_block_start_offset" name="Setting_block_start_offset">ブロック方向の先頭のオフセットの設定</h3>
+
+<h4 id="HTML">HTML</h4>
+
+<pre class="brush: html notranslate">&lt;div&gt;
+ &lt;p class="exampleText"&gt;テキストの例&lt;/p&gt;
+&lt;/div&gt;
+</pre>
+
+<h4 id="CSS">CSS</h4>
+
+<pre class="brush: css notranslate">div {
+ background-color: yellow;
+ width: 120px;
+ height: 120px;
+}
+
+.exampleText {
+ writing-mode: vertical-lr;
+ position: relative;
+ inset-block-start: 20px;
+ background-color: #c8c800;
+}</pre>
+
+<h4 id="Result" name="Result">結果</h4>
+
+<p>{{EmbedLiveSample("Setting_block_start_offset", 140, 140)}}</p>
+
+<h2 id="Specification" name="Specification">仕様書</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">状態</th>
+ <th scope="col">備考</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName("CSS Logical Properties", "#propdef-inset-block-start", "inset-block-start")}}</td>
+ <td>{{Spec2("CSS Logical Properties")}}</td>
+ <td>初回定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<p>{{Compat("css.properties.inset-block-start")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li>内部位置を定義する他のプロパティ: {{cssxref("inset-block-end")}}, {{cssxref("inset-inline-start")}}, {{cssxref("inset-inline-end")}}</li>
+ <li>対応する物理プロパティ: {{cssxref("top")}}, {{cssxref("right")}}, {{cssxref("bottom")}}, {{cssxref("left")}}</li>
+ <li>{{cssxref("writing-mode")}}, {{cssxref("direction")}}, {{cssxref("text-orientation")}}</li>
+</ul>