border-inline-style

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.

border-inline-styleCSS のプロパティで、要素の論理的なインライン方向の境界のスタイルを定義し、それが要素の書字方向やテキストの方向に応じて物理的な境界のスタイルに対応づけられます。これは border-top-styleborder-bottom-style、または border-left-styleborder-right-style の組み合わせのどちらかに対応し、どちらに対応するかは writing-modedirectiontext-orientation で定義された値によって決まります。

試してみましょう

border-inline-style: dotted; writing-mode: horizontal-tb; 
border-inline-style: dotted; writing-mode: vertical-rl; 
border-inline-style: groove; writing-mode: horizontal-tb; direction: rtl; 
<section class="default-example" id="default-example"> <div class="transition-all" id="example-element"> これは周囲に境界線があるボックスです。 </div> </section> 
#example-element { background-color: #eee; color: #000; border: 0.75em solid; padding: 0.75em; width: 80%; height: 100px; unicode-bidi: bidi-override; } 

他の方向の境界スタイルについては border-block-style で設定することができ、これは border-block-start-style および border-block-end-style を設定することができます。

構文

css
/* <'border-style'> の値 */ border-inline-style: dashed; border-inline-style: dotted; border-inline-style: groove; /* グローバル値 */ border-inline-style: inherit; border-inline-style: initial; border-inline-style: revert; border-inline-style: revert-layer; border-inline-style: unset; 

<'border-style'>

境界線のスタイルです。 border-style を参照してください。

公式定義

初期値none
適用対象すべての要素
継承なし
計算値指定通り
アニメーションの種類離散値

形式文法

border-inline-style = 
<'border-top-style'>{1,2}

<border-top-style> =
<line-style>

<line-style> =
none |
hidden |
dotted |
dashed |
solid |
double |
groove |
ridge |
inset |
outset

border-inline-style の設定

HTML

html
<div> <p class="exampleText">テキストの例</p> </div> 

CSS

css
div { background-color: yellow; width: 120px; height: 120px; } .exampleText { writing-mode: vertical-lr; border: 5px solid blue; border-inline-style: dashed; } 

仕様書

Specification
CSS Logical Properties and Values Level 1
# propdef-border-inline-style

ブラウザーの互換性

関連情報