Skip to content

Commit 155562f

Browse files
committed
ideas/image-replacement: made ''content'' optional, added ''self'' proposal
1 parent c1da29e commit 155562f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ideas/image-replacement.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The CSSWG has resolved to allow the ''content'' property on all elements in CSS3
99
H1 { content: url(sparkly_heading_text.png), contents; }
1010
</code>
1111

12+
1213
===== Interaction with Fonts =====
1314

1415
We recognize, however, that the likely set of preferences for such headings would be:
@@ -34,7 +35,9 @@ The consensus on syntax was:
3435

3536
The ''require-font'' keyword would automatically take the first font in font-family as its implied argument. This is not merely syntactic sugar for the author, but also causes a user's font override, if any, to become the required font: in typical usage, this would disable the image replacement fallback and display the contents in the user's selected font.
3637

37-
A suggestion from Håkon was to imply the ''contents'' keyword if the ''require-font'' function were specified alone (with no content).
38+
The ''content'' keyword may optionally follow the ''require-font()''.
39+
40+
Håkon has later proposed to use ''self'' instead of ''content''.
3841

3942
===== Unresolved Details =====
4043

0 commit comments

Comments
 (0)