/* Demo only. The Framework has no class for mask-image, so each example sets its own. The mask is inline on purpose: an example renders in a sandboxed frame with an opaque origin, and a mask image is fetched in CORS mode, so a file from the site is refused and the masked element disappears with it. */.demo-mask-leaf {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 512 512' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M252 468c-13-93-9-155-37-206-18-33-47-56-88-70 8 63 34 106 82 130-19-85-8-158 35-218 50 69 57 149 18 239 17-70 57-116 121-137-5 74-42 123-111 148-10 37-12 75-8 114h-12Z'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 512 512' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M252 468c-13-93-9-155-37-206-18-33-47-56-88-70 8 63 34 106 82 130-19-85-8-158 35-218 50 69 57 149 18 239 17-70 57-116 121-137-5 74-42 123-111 148-10 37-12 75-8 114h-12Z'/%3E%3C/svg%3E");
-webkit-mask-size: 3rem3rem;
mask-size: 3rem3rem;
}
Классы
Класс
CSS
Значения
mask-top
mask-position: top
—
mask-inline-end
mask-position: right
—
mask-bottom
mask-position: bottom
—
mask-inline-start
mask-position: left
—
mask-center
mask-position: center
—
mask-inline-start-top
mask-position: left top
—
mask-inline-start-bottom
mask-position: left bottom
—
mask-inline-end-top
mask-position: right top
—
mask-inline-end-bottom
mask-position: right bottom
—
Условия (что это): ширина экрана — нет; состояния — нет.
Классы и переменные собраны из CSS выпуска и обновляются вместе с ним.
Применение
Классы маски не задают саму маску: изображение маски (mask-image) задаётся
в CSS проекта, как в примерах на этой странице.