Skip to content

[css-content] computed value for 'content' property is unclear #821

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

Open
dbaron opened this issue Dec 20, 2016 · 3 comments
Open

[css-content] computed value for 'content' property is unclear #821

dbaron opened this issue Dec 20, 2016 · 3 comments

Comments

@dbaron
Copy link
Member

dbaron commented Dec 20, 2016

The definition of the content property says "Computed value: As specified below.".

But it doesn't seem to specify below.

And there are actually some interesting questions to answer, such as what the computed value is for elements when the specified value is one of the value types that apply only to pseudo-elements and not elements (since it says "Applies to: ::before, ::after, ::marker, and page margin boxes. Image and url values can apply to all elements.").

@dbaron
Copy link
Member Author

dbaron commented Dec 21, 2016

Other related questions that the spec should answer but doesn't seem to: does the url() value for content only load images, or does it also load other sorts of resources like videos and iframes? If it's loading SVG images, is it loading them as full-fledged documents (like iframes) or in the somewhat reduced way that the <img> element loads them?

Apparently Blink implements this, and lack of that implementation in other engines leads to compatibility problems, so it would be good to get these questions answered in the interests of interop.

We have a Gecko bug on implementing this feature, but there's really very little actual spec to go on here.

@dauwhe
Copy link
Contributor

dauwhe commented Jan 14, 2017

[reminder to put example of using media query for aural generated content]

@atanassov
Copy link
Contributor

[csswg f2f Seattle] - RESOLVED: url() in 'content' only applies to images and nothing else in visual canvas, and to audio files in aural canvas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants