HTML and CSS Reference
In-Depth Information
Notes
• This property is replicable in many browsers using a
<marquee>
tag.
• The default value is
scroll
.
• This property can be replicated using the HTML
marquee
tag and setting the
behavior
attribute to
alternate | scroll | slide
.
• This property is supported as
-webkit-marquee-style
in Safari 3+ and
-khtml-
marquee-style
in Safari 2.
• This property is supported as
-wap-marquee-style
in Opera.
mask
This property defines a mask to be used as a box's overlay in order to clip the box to a
complex shape. This is a shorthand property for the more specific mask properties.
Syntax
mask: mask-attachment, mask-clip, mask-image, mask-repeat, mask-composite,
mask-box-image;
where each value corresponds to the more specific property.
Example
<div style="height: 100px;
width: 200px;
background-color: red;
padding: 20px;
border: 5px dashed black;
-webkit-mask: scroll border -webkit-gradient(linear, left top,
left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0))) repeat border;"></div>
O
NLINE
http://htmlref.com/ch6/mask.html