Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(css): Update syntax for content property #976

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

skyclouds2001
Copy link
Contributor

@skyclouds2001 skyclouds2001 commented Apr 5, 2025

Description

update content property: add attr()
update <content-list> syntax: add attr(); remove contents leader() and <target> which are not supported and non-standard at all

note that spec defines as [ <string> | <image> | <attr()> | contents | <quote> | <leader()> | <target> | <string()> | <content()> | <counter> ]+, but many are not-supported so not added at present

Motivation

Additional details

https://developer.mozilla.org/en-US/docs/Web/CSS/content
https://drafts.csswg.org/css-content/#propdef-content
https://drafts.csswg.org/css-content/#typedef-content-content-list

Related issues and pull requests

@skyclouds2001 skyclouds2001 marked this pull request as ready for review April 5, 2025 16:39
@skyclouds2001 skyclouds2001 requested a review from a team as a code owner April 5, 2025 16:39
@skyclouds2001 skyclouds2001 requested review from pepelsbey and removed request for a team April 5, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant