You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The element or pseudo-element contains the specified string. Occurrences of line-feed or space characters in the string are handled according to the properties given in the [[CSS3TEXT]] module.
149
+
150
+
If the value is the empty string, and the element or pseudo-element's 'display' property computes to anything but ''inline'', then the element or pseude-element contains an empty anonymous inline box, otherwise the element contains an empty string.
151
+
152
+
(This is a formal way of saying that an empty string is different from ''content/none'' in that it forces the creation of a line box, even if the line box would be empty.)
153
+
154
+
</dl>
155
+
141
156
<h3 id="content-uri">
142
157
URI</h3>
143
158
144
-
<dl dfn-type=value dfn-for=content>
145
-
<dt><<uri>></dt>
146
-
<dd>For URIs other than URIs in the last comma separated section of the value, if the URI is available and the format is supported, then the element or pseudo-element becomes a replaced element, otherwise, the next item in the comma separated list is used, if any.
147
-
148
-
</dl>
159
+
<dl dfn-type=value dfn-for=content>
160
+
<dt><<uri>></dt>
161
+
<dd>For URIs other than URIs in the last comma separated section of the value, if the URI is available and the format is supported, then the element or pseudo-element becomes a replaced element, otherwise, the next item in the comma separated list is used, if any.
162
+
</dl>
149
163
150
164
<div class="example">
151
165
<pre>
@@ -178,18 +192,7 @@ URI</h3>
178
192
When a URI is used as replaced content, it <a href="#replacedContent">affects the generation</a> of ''::before'' and ''::after'' pseudo-elements.
<dd>The element or pseudo-element contains the specified string. Occurrences of line-feed or space characters in the string are handled according to the properties given in the [[CSS3TEXT]] module.
187
-
188
-
If the value is the empty string, and the element or pseudo-element's 'display' property computes to anything but ''inline'', then the element or pseude-element contains an empty anonymous inline box, otherwise the element contains an empty string.
189
-
190
-
(This is a formal way of saying that an empty string is different from ''content/none'' in that it forces the creation of a line box, even if the line box would be empty.)
191
195
192
-
</dl>
193
196
194
197
195
198
@@ -240,94 +243,113 @@ contents</h3>
240
243
241
244
Note that while it is useless to include ''content/contents'' twice in a single 'content' property, that is not a parse error. The second occurrence simply has no effect, as it has already been used. It is also not a parse error to use it on a marker pseudo-element, it is only during the rendering stage that it gets treated like ''content/none''.
242
245
243
-
<p class="issue">Do we need the statement about marker pseudo-elements here? Or is this legacy from the old version of the spec?
246
+
<p class="issue">Do we need the statement about marker pseudo-elements here? Or is this legacy from the old version of the spec?
244
247
245
248
246
-
<!--start copy from CSS-PSEUDO-->
247
249
248
250
249
251
<h3 id="inserting-quotes">
250
252
Inserting quotes with the 'content' property
251
253
</h3>
252
254
253
255
254
-
<pre class="propdef partial">
255
-
Name: content
256
-
New values: open-quote | close-quote | no-open-quote | no-close-quote
<dt><dfn>open-quote</dfn> and <dfn>close-quote</dfn>
262
260
<dd>These values are replaced by the appropriate string from the 'quotes' property. See [[#specifying-quotes]] for more information.
263
261
<dt><dfn>no-open-quote</dfn> and <dfn>no-close-quote</dfn>
264
262
<dd>Inserts nothing (as in ''content/none''), but increments (decrements) the level of nesting for quotes. See [[#specifying-quotes]] for more information.
265
263
266
-
</dl>
264
+
</dl>
267
265
268
-
Quotation marks are inserted in appropriate places in a document with the ''open-quote'' and ''close-quote'' values of the 'content' property. Each occurrence of ''open-quote'' or ''close-quote'' is replaced by one of the strings from the value of 'quotes', based on the depth of nesting.
266
+
Quotation marks are inserted in appropriate places in a document with the ''open-quote'' and ''close-quote'' values of the 'content' property. Each occurrence of ''open-quote'' or ''close-quote'' is replaced by one of the strings from the value of 'quotes', based on the depth of nesting.
269
267
270
-
''open-quote'' refers to the first of a pair of quotes, ''close-quote'' refers to the second. Which pair of quotes is used depends on the nesting level of quotes: the number of occurrences of ''open-quote'' in all generated text before the current occurrence, minus the number of occurrences of ''close-quote''. If the depth is 0, the first pair is used, if the depth is 1, the second pair is used, etc. If the depth is greater than the number of pairs, the last pair is repeated.
268
+
''open-quote'' refers to the first of a pair of quotes, ''close-quote'' refers to the second. Which pair of quotes is used depends on the nesting level of quotes: the number of occurrences of ''open-quote'' in all generated text before the current occurrence, minus the number of occurrences of ''close-quote''. If the depth is 0, the first pair is used, if the depth is 1, the second pair is used, etc. If the depth is greater than the number of pairs, the last pair is repeated.
271
269
272
-
Note that this quoting depth is independent of the nesting of the source document or the formatting structure.
270
+
Note that this quoting depth is independent of the nesting of the source document or the formatting structure.
273
271
274
-
Some typographic styles require open quotation marks to be repeated before every paragraph of a quote spanning several paragraphs, but only the last paragraph ends with a closing quotation mark. In CSS, this can be achieved by inserting "phantom" closing quotes. The keyword ''no-close-quote'' decrements the quoting level, but does not insert a quotation mark.
272
+
Some typographic styles require open quotation marks to be repeated before every paragraph of a quote spanning several paragraphs, but only the last paragraph ends with a closing quotation mark. In CSS, this can be achieved by inserting "phantom" closing quotes. The keyword ''no-close-quote'' decrements the quoting level, but does not insert a quotation mark.
275
273
276
274
277
-
<div class="example">
278
-
The following style sheet puts opening quotation marks on every paragraph in a <code>blockquote</code>, and inserts a single closing quote at the end:
275
+
<div class="example">
276
+
The following style sheet puts opening quotation marks on every paragraph in a <code>blockquote</code>, and inserts a single closing quote at the end:
For symmetry, there is also a ''no-open-quote'' keyword, which inserts nothing, but increments the quotation depth by one.
286
+
For symmetry, there is also a ''no-open-quote'' keyword, which inserts nothing, but increments the quotation depth by one.
289
287
290
-
<div class="note">If a quotation is in a different language than the surrounding text, it is customary to quote the text with the quote marks of the language of the surrounding text, not the language of the quotation itself.
291
-
</div>
288
+
<div class="note">If a quotation is in a different language than the surrounding text, it is customary to quote the text with the quote marks of the language of the surrounding text, not the language of the quotation itself.
289
+
</div>
292
290
293
-
<div class="example">
294
-
For example, French inside English:
291
+
<div class="example">
292
+
For example, French inside English:
295
293
296
-
<blockquote>
297
-
The device of the order of the garter is “Honi soit qui mal y pense.”
298
-
</blockquote>
294
+
<blockquote>
295
+
The device of the order of the garter is “Honi soit qui mal y pense.”
296
+
</blockquote>
299
297
300
-
English inside French:
298
+
English inside French:
301
299
302
-
<blockquote>
303
-
Il disait: « Il faut mettre l’action en ‹ fast
304
-
forward ›. »
305
-
</blockquote>
300
+
<blockquote>
301
+
Il disait: « Il faut mettre l’action en ‹ fast
302
+
forward ›. »
303
+
</blockquote>
306
304
307
-
A style sheet like the following will set the 'quotes' property so that ''open-quote'' and ''close-quote'' will work correctly on all elements. These rules are for documents that contain only English, French, or both. One rule is needed for every additional language. Note the use of the child combinator (">") to set quotes on elements based on the language of the surrounding text:
305
+
A style sheet like the following will set the 'quotes' property so that ''open-quote'' and ''close-quote'' will work correctly on all elements. These rules are for documents that contain only English, French, or both. One rule is needed for every additional language. Note the use of the child combinator (">") to set quotes on elements based on the language of the surrounding text:
0 commit comments