Skip to content

Add feature for CSS mixins (@mixin, @contents, and @apply) #3465

@ddbeck

Description

@ddbeck

Specification

Description

(I don't really know this feature well, I'm spitballing here based on skimming the spec.)

The @mixin and @contents at-rules define a reusable block of styles that can be varied by arguments. The @apply at-rule calls the mixin inserts its result at the call site.

Documentation

Discovered via #3399 and WPT.

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_custom_functions_and_mixins

Browser support

None, AFAICT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature definitionCreating or defining new features or groups of features.feature entry requestA request for a new web platform feature entry

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions