Textures - nt1m/CSS-Texture-Specification GitHub Wiki
Defines a texture
All except animation
(to avoid flashing text, ...). Usage of content
is to specify the content to add in the texture.
@texture name { content: "Hello !"; background-color: red; color: white; }
Target a defined texture
texture(name, fallback)
name
The name of the texture you want to use.
fallback
The texture to use in case a property in first texture isn't supported, or in case of error
p { font-fill: texture(name); }
- [font-fill] (https://github.com/ntim007/CSS-Texture-Specification/wiki/New-properties#font-fill)
- background
- [background-texture] (https://github.com/ntim007/CSS-Texture-Specification/wiki/New-properties#background-texture)
- border-image
- clip-path
- mask