border-inline-start-color
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2021.
border-inline-start-color
は CSS のプロパティで、要素の論理的なインライン方向の先頭側の境界色を定義し、それが要素の書字方向やテキストの方向に応じて物理的な境界色に対応づけられます。これは border-top-color
、border-right-color
、border-bottom-color
、border-left-color
の何れかに対応し、どれに対応するかは writing-mode
、direction
、text-orientation
で定義された値によって決まります。
試してみましょう
構文
css
border-inline-start-color: red;
border-inline-start-color: #ee4141;
/* グローバル値 */
border-inline-start-color: inherit;
border-inline-start-color: initial;
border-inline-start-color: revert;
border-inline-start-color: unset;
関連するプロパティとしては、 border-block-start-color
、border-block-end-color
、border-inline-end-color
が要素の他の境界色を定義します。
値
公式定義
初期値 | currentcolor |
---|---|
適用対象 | すべての要素 |
継承 | なし |
計算値 | 色の計算値 |
アニメーションの種類 | 計算値の型による |
形式文法
例
HTML
html
<div>
<p class="exampleText">Example text</p>
</div>
CSS
css
div {
background-color: yellow;
width: 120px;
height: 120px;
}
.exampleText {
writing-mode: vertical-lr;
border: 10px solid blue;
border-inline-start-color: red;
}
仕様書
Specification |
---|
CSS Logical Properties and Values Level 1 # border-color |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
border-inline-start-color |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Uses a non-standard name.
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
関連情報
- このプロパティは
border-top-color
、border-right-color
、border-bottom-color
、border-left-color
のうちの 1 つに対応づけられます writing-mode
、direction
、text-orientation