mask-border-repeat
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
mask-border-repeat
CSS 属性设置如何调整源图像的边缘区域以适应元素遮罩边框的尺寸。
语法
css
/* Keyword value */
mask-border-repeat: stretch;
mask-border-repeat: repeat;
mask-border-repeat: round;
mask-border-repeat: space;
/* vertical | horizontal */
mask-border-repeat: round stretch;
/* Global values */
mask-border-repeat: inherit;
mask-border-repeat: initial;
mask-border-repeat: unset;
可以从下面的列表中选择一个或两个值来指定 mask-border-repeat
属性。
- 指定一个值时,它会在四个边应用相同的行为。
- 指定两个值时,第一个应用于顶部和底部,第二个应用于左侧和右侧。
Values
正式语法
规范
Specification |
---|
CSS Masking Module Level 1 # the-mask-border-repeat |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
mask-border-repeat |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.
- 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.