-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
docs to doDocumentation still needs doing before this can get releasedDocumentation still needs doing before this can get releasedenhancementNew feature or requestNew feature or request
Milestone
Description
A current solution:
#something:click {
body {
toggle-attribute: data-something;
}
body[data-something] #something {
render: "Not something";
}
body:not([data-something]) #something {
render: "Something";
}
}
This could then become, following the same syntax as has-class:
#something:click {
body {
toggle-attribute: data-something;
}
@if (has-attribute(body data-something)) {
render: "Not something";
} @else {
render: "Something";
}
}
No rush on this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
docs to doDocumentation still needs doing before this can get releasedDocumentation still needs doing before this can get releasedenhancementNew feature or requestNew feature or request