mask-border-mode - CSS: Cascading Style Sheets 编辑
The mask-border-mode
CSS property specifies the blending mode used in a mask border.
Syntax
/* Keyword values */
mask-border-mode: luminance;
mask-border-mode: alpha;
/* Global values */
mask-border-mode: inherit;
mask-border-mode: initial;
mask-border-mode: unset;
Values
luminance
- The luminance values of the mask border image are used as the mask values.
alpha
- The alpha values of the mask border image are used as the mask values.
Formal definition
Initial value | alpha |
---|---|
Applies to | all elements; In SVG, it applies to container elements excluding the defs element and all graphics elements |
Inherited | no |
Computed value | as specified |
Animation type | discrete |
Formal syntax
luminance | alpha
Examples
Basic usage
This property doesn't yet seem to have support anywhere. When browsers support it, it will specify the type of blending mode used for the mask border — luminance or alpha:
mask-border-mode: luminance;
mask-border-mode: alpha;
Specifications
Specification | Status | Comment |
---|---|---|
CSS Masking Module Level 1 The definition of 'mask-border-mode' in that specification. | Candidate Recommendation | Initial definition |
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论