Skip to content

Commit 155db0d

Browse files
committed
[css-content] add to content property syntax to allow alternative text for generated content
1 parent 03714cd commit 155db0d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

css-content/Overview.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ figure:not([alt]) { content: attr(href, url), contents; }
8080

8181
<pre class='propdef'>
8282
Name: content
83-
Value: [ [ <<uri>> ] ',' ]* [ normal | none | <<content-list>> ]
83+
Value: [ [ <<uri>> ] ',' ]* [ normal | none | <<content-list>> ] [/ <<string>> ]?
8484
Initial: normal
8585
Applies To: all elements, ''::marker'', and page margin boxes.
8686
Inherited: no
@@ -90,7 +90,9 @@ figure:not([alt]) { content: attr(href, url), contents; }
9090
</pre>
9191

9292

93-
The 'content' property dictates what is rendered inside the element or pseudo-element. It takes a comma separated list of URIs, followed by a space separated list of tokens. If there are multiple URIs provided, then each is tried in turn until a value which is both available and supported is found. The last value is used as a fallback if the others fail.
93+
The 'content' property dictates what is rendered inside the element or pseudo-element. It takes a comma separated list of URIs, followed by a space separated list of tokens, followed by an optional slash and string indicating alternative text. If there are multiple URIs provided, then each is tried in turn until a value which is both available and supported is found. The last value is used as a fallback if the others fail.
94+
95+
9496

9597

9698
<dl>

0 commit comments

Comments
 (0)