border-end-start-radius
CSS
property defines a logical border radius on an element, which maps to a physical border radius depending on the element's
writing-mode
,
direction
,和
text-orientation
. This is useful when building styles to work regardless of the
text orientation
and
writing mode
.
/* <length> values */ /* With one value the corner will be a circle */ border-end-start-radius: 10px; border-end-start-radius: 1em; /* With two values the corner will be an ellipse */ border-end-start-radius: 1em 2em; /* Global values */ border-end-start-radius: inherit; border-end-start-radius: initial; border-end-start-radius: unset;
This property affects the corner between the block-end and the inline-start sides of the element. For instance, in a
horizontal-tb
writing mode with
ltr
direction, it corresponds to the
border-bottom-left-radius
特性。
<length-percentage>
<length>
data type. Percentages for the horizontal axis refer to the width of the box, percentages for the vertical axis refer to the height of the box. Negative values are invalid.
| 初始值 |
0
|
|---|---|
| 适用于 |
all elements; but User Agents are not required to apply to
table
and
inline-table
elements when
border-collapse
is
collapse
. The behavior on internal table elements is undefined for the moment.. It also applies to
::first-letter
.
|
| 继承 | no |
| 百分比 | refer to the corresponding dimension of the border box |
| 计算值 |
two absolute
<length>
s or
<percentage>
s
|
| 动画类型 | a length , percentage or calc(); |
<length-percentage>{1,2}where
<length-percentage> = <length> | <percentage>
<div> <p class="exampleText">Example</p> </div>
div {
background-color: rebeccapurple;
width: 120px;
height: 120px;
border-end-start-radius: 10px;
}
.exampleText {
writing-mode: vertical-rl;
padding: 10px;
background-color: #fff;
border-end-start-radius: 10px;
}
| 规范 | 状态 | 注释 |
|---|---|---|
|
CSS Logical Properties and Values Level 1
The definition of 'border-end-start-radius' in that specification. |
编者草案 | 初始定义。 |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
border-end-start-radius
|
Chrome 不支持 No | Edge 不支持 No | Firefox 完整支持 66 | IE 不支持 No | Opera 不支持 No | Safari 不支持 No | WebView Android 不支持 No | Chrome Android 不支持 No | Firefox Android 完整支持 66 | Opera Android 不支持 No | Safari iOS 不支持 No | Samsung Internet Android 不支持 No |
完整支持
不支持
border-top-right-radius
writing-mode
,
direction
,
text-orientation
block-size
border-block
border-block-color
border-block-end
border-block-end-color
border-block-end-style
border-block-end-width
border-block-start
border-block-start-color
border-block-start-style
border-block-start-width
border-block-style
border-block-width
border-end-end-radius
border-end-start-radius
border-inline
border-inline-color
border-inline-end
border-inline-end-color
border-inline-end-style
border-inline-end-width
border-inline-start
border-inline-start-color
border-inline-start-style
border-inline-start-width
border-inline-style
border-inline-width
border-start-end-radius
border-start-start-radius
inline-size
inset
inset-block
inset-block-end
inset-block-start
inset-inline
inset-inline-end
inset-inline-start
margin-block
margin-block-end
margin-block-start
margin-inline
margin-inline-end
margin-inline-start
max-block-size
max-inline-size
min-block-size
min-inline-size
padding-block
padding-block-end
padding-block-start
padding-inline
padding-inline-end
padding-inline-start