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
Copy file name to clipboardExpand all lines: css-inline/Overview.bs
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -296,20 +296,22 @@ A paragraph with an initial letter may have fewer lines of text than the initial
296
296
<p class="caption">The red text is a short paragraph with an initial letter. Note the subsequent paragraph wraps around the initial letter just as text in the paragraph with the initial letter does.</p>
297
297
</figure>
298
298
299
-
If the subsequent paragraph starts with an initial letter, then it must clear the previous paragraph’s initial letter.
299
+
If the subsequent block starts with an initial letter,
300
+
establishes a new formatting context,
301
+
or specifies 'clear' in the start direction,
302
+
then it must clear the previous block’s initial letter.
300
303
301
304
<figure>
302
-
<img src="initial-letter-short-para-initial.png" alt="short para with initial letter followed by para with initial" width="600"/>
303
-
<p class="caption">The red text is a short paragraph with an initial letter. The subsequent paragraph clears because it also has an initial letter.</p>
305
+
<img src="initial-letter-short-para-initial.png" alt="short para with initial letter followed by para with initial" width="600"/>
306
+
<p class="caption">The red text is a short paragraph with an initial letter. The subsequent paragraph clears because it also has an initial letter.</p>
304
307
</figure>
305
308
309
+
<h4 id="initial-letter-floats">
310
+
Interaction with floats</h4>
306
311
312
+
Floats always clear an initial letter when floated to the same side. When floated to the opposite side, they are pushed down to clear the initial letter only if they have specified 'clear' to this side or they do not fit without overlapping the initial letter.
307
313
308
-
309
-
310
-
311
-
312
-
314
+
Issue: Is this the behavior we want? What if the float is on the same line as the initial letter?
Raised Initial Letters</span></a></ul><li><ahref=#selecting-drop-initials><spanclass=secno>2.2</span><spanclass=content>Selecting Initial Letters</span></a><li><ahref=#sizing-drop-initials><spanclass=secno>2.3</span><spanclass=content>Creating Initial Letters: the <spanclass=propertydata-link-type=propdesctitle=initial-letter>initial-letter</span> property</span></a><li><ahref=#aligning-initial-letter><spanclass=secno>2.4</span><spanclass=content>Alignment of Initial Letters</span></a><li><ahref=#sizing-initial-letters><spanclass=secno>2.5</span><spanclass=content>Sizing Initial Letters</span></a><li><ahref=#initial-letter-exclusions><spanclass=secno>2.6</span><spanclass=content>Space Around Initial Letters</span></a><li><ahref=#initial-letter-paragraphs><spanclass=secno>2.7</span><spanclass=content>Clearing Initial Letters</span></a><ulclass=toc><li><ahref=#raised-sunken-caps><spanclass=secno>2.7.1</span><spanclass=content>Raised and sunken caps</span></a><li><ahref=#short-para-initial-letter><spanclass=secno>2.7.2</span><spanclass=content>Short paragraphs with initial letters</span></a></ul></ul><li><ahref=#ack><spanclass=secno></span><spanclass=content>Acknowledgments</span></a><li><ahref=#conformance><spanclass=secno></span><spanclass=content>
123
+
Raised Initial Letters</span></a></ul><li><ahref=#selecting-drop-initials><spanclass=secno>2.2</span><spanclass=content>Selecting Initial Letters</span></a><li><ahref=#sizing-drop-initials><spanclass=secno>2.3</span><spanclass=content>Creating Initial Letters: the <spanclass=propertydata-link-type=propdesctitle=initial-letter>initial-letter</span> property</span></a><li><ahref=#aligning-initial-letter><spanclass=secno>2.4</span><spanclass=content>Alignment of Initial Letters</span></a><li><ahref=#sizing-initial-letters><spanclass=secno>2.5</span><spanclass=content>Sizing Initial Letters</span></a><li><ahref=#initial-letter-exclusions><spanclass=secno>2.6</span><spanclass=content>Space Around Initial Letters</span></a><li><ahref=#initial-letter-paragraphs><spanclass=secno>2.7</span><spanclass=content>Clearing Initial Letters</span></a><ulclass=toc><li><ahref=#raised-sunken-caps><spanclass=secno>2.7.1</span><spanclass=content>Raised and sunken caps</span></a><li><ahref=#short-para-initial-letter><spanclass=secno>2.7.2</span><spanclass=content>Short paragraphs with initial letters</span></a><li><ahref=#initial-letter-floats><spanclass=secno>2.7.3</span><spanclass=content>
124
+
Interaction with floats</span></a></ul></ul><li><ahref=#ack><spanclass=secno></span><spanclass=content>Acknowledgments</span></a><li><ahref=#conformance><spanclass=secno></span><spanclass=content>
<pclass=caption>The red text is a short paragraph with an initial letter. Note the subsequent paragraph wraps around the initial letter just as text in the paragraph with the initial letter does.</p>
372
373
</figure>
373
374
374
-
<p>If the subsequent paragraph starts with an initial letter, then it must clear the previous paragraph’s initial letter.</p>
375
+
<p>If the subsequent block starts with an initial letter,
376
+
establishes a new formatting context,
377
+
or specifies <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visuren.html#propdef-clear>clear</a> in the start direction,
378
+
then it must clear the previous block’s initial letter.</p>
375
379
376
380
<figure>
377
-
<imgalt="short para with initial letter followed by para with initial" src=initial-letter-short-para-initial.pngwidth=600>
378
-
<pclass=caption>The red text is a short paragraph with an initial letter. The subsequent paragraph clears because it also has an initial letter.</p>
381
+
<imgalt="short para with initial letter followed by para with initial" src=initial-letter-short-para-initial.pngwidth=600>
382
+
<pclass=caption>The red text is a short paragraph with an initial letter. The subsequent paragraph clears because it also has an initial letter.</p>
Interaction with floats</span><aclass=self-linkhref=#initial-letter-floats></a></h4>
381
387
388
+
<p>Floats always clear an initial letter when floated to the same side. When floated to the opposite side, they are pushed down to clear the initial letter only if they have specified <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visuren.html#propdef-clear>clear</a> to this side or they do not fit without overlapping the initial letter.</p>
382
389
383
-
384
-
385
-
386
-
387
-
390
+
<pclass=issueid=issue-2ad0a0cb><aclass=self-linkhref=#issue-2ad0a0cb></a>Is this the behavior we want? What if the float is on the same line as the initial letter?</p>
<h2class="no-num heading settled" id=references><spanclass=content>References</span><aclass=self-linkhref=#references></a></h2><h3class="no-num heading settled" id=normative><spanclass=content>Normative References</span><aclass=self-linkhref=#normative></a></h3><dl><dtid=biblio-rfc2119title=rfc2119><aclass=self-linkhref=#biblio-rfc2119></a>[rfc2119]<dd>S. Bradner. <ahref=https://tools.ietf.org/html/rfc2119>Key words for use in RFCs to Indicate Requirement Levels</a>. March 1997. Best Current Practice. URL: <ahref=https://tools.ietf.org/html/rfc2119>https://tools.ietf.org/html/rfc2119</a></dl><h3class="no-num heading settled" id=informative><spanclass=content>Informative References</span><aclass=self-linkhref=#informative></a></h3><dl><dtid=biblio-css2title=CSS2><aclass=self-linkhref=#biblio-css2></a>[CSS2]<dd>Bert Bos; et al. <ahref=http://www.w3.org/TR/CSS2>Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. REC. URL: <ahref=http://www.w3.org/TR/CSS2>http://www.w3.org/TR/CSS2</a><dtid=biblio-css21title=CSS21><aclass=self-linkhref=#biblio-css21></a>[CSS21]<dd>Bert Bos; et al. <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>http://www.w3.org/TR/2011/REC-CSS2-20110607</a><dtid=biblio-css3-line-gridtitle=CSS3-LINE-GRID><aclass=self-linkhref=#biblio-css3-line-grid></a>[CSS3-LINE-GRID]<dd>Koji Ishii. <ahref=http://dev.w3.org/csswg/css-line-grid/>CSS Line Grid Module</a>. Proposal for a CSS module. (Retrieved 26 October 2011) URL: <ahref=http://dev.w3.org/csswg/css-line-grid/>http://dev.w3.org/csswg/css-line-grid/</a><dtid=biblio-css3texttitle=CSS3TEXT><aclass=self-linkhref=#biblio-css3text></a>[CSS3TEXT]<dd>Elika J. Etemad; Koji Ishii. <ahref=http://www.w3.org/TR/2012/WD-css3-text-20121113/>CSS Text Module Level 3</a>. 13 November 2012. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2012/WD-css3-text-20121113/>http://www.w3.org/TR/2012/WD-css3-text-20121113/</a><dtid=biblio-selecttitle=SELECT><aclass=self-linkhref=#biblio-select></a>[SELECT]<dd>Tantek Çelik; et al. <ahref=http://www.w3.org/TR/2011/REC-css3-selectors-20110929/>Selectors Level 3</a>. 29 September 2011. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2011/REC-css3-selectors-20110929/>http://www.w3.org/TR/2011/REC-css3-selectors-20110929/</a></dl><h2class="no-num heading settled" id=index><spanclass=content>Index</span><aclass=self-linkhref=#index></a></h2><ulclass=indexlist><li>dropped initial, <ahref=#dropped-initialtitle="section 2.1.1">2.1.1</a><li>initial-letter, <ahref=#propdef-initial-lettertitle="section 2.3">2.3</a><li>initial-letter-align, <ahref=#propdef-initial-letter-aligntitle="section 2.4">2.4</a><li><integer>, <ahref=#typedef-integertitle="section 2.3">2.3</a><li>normal, <ahref=#normaltitle="section 2.3">2.3</a><li><number>, <ahref=#typedef-numbertitle="section 2.3">2.3</a><li>raised initial, <ahref=#raised-initialtitle="section 2.1.3">2.1.3</a><li>sunken initial, <ahref=#sunken-initialtitle="section 2.1.2">2.1.2</a></ul><h2class="no-num heading settled" id=property-index><spanclass=content>Property Index</span><aclass=self-linkhref=#property-index></a></h2><tableclass="proptable data"><thead><tr><thscope=col>Name<thscope=col>Value<thscope=col>Initial<thscope=col>Applies to<thscope=col>Inh.<thscope=col>%ages<thscope=col>Media<thscope=col>Animatable<thscope=col>Computed value<tbody><tr><thscope=row><aclass=cssdata-link-type=propertyhref=#propdef-initial-letter>initial-letter</a><td>normal | [<integer> <number>?]<td>normal<td>::first-letter pseudo-elements and inline-level first child of a block container<td>no<td>N/A<td>visual<td>no<td>as specified<tr><thscope=row><aclass=cssdata-link-type=propertyhref=#propdef-initial-letter-align>initial-letter-align</a><td>[ auto | alphabetic | hanging | ideographic ]<td>auto<td>::first-letter pseudo elements and inline level first child of a block container<td>no<td>N/A<td>visual<td>no<td>???</table><h2class="no-num heading settled" id=issues-index><spanclass=content>Issues Index</span><aclass=self-linkhref=#issues-index></a></h2><divstyle=counter-reset:issue><divclass=issue>This section is being rewritten. Refer to <ahref=http://www.w3.org/TR/CSS21/visudet.html#line-height>section 10.8</a> of <adata-biblio-type=informativedata-link-type=bibliohref=#biblio-css21title=CSS21>[CSS21]</a> for the normative CSS definition or the <ahref=http://www.w3.org/TR/2002/WD-css3-linebox-20020515/>2002 Working Draft</a> if you want pretty pictures. (But ignore the old text, half of it’s wrong. We’re not specifying which half, that’s to be determined.)<ahref=#issue-469c7c8c> ↵ </a></div><divclass=issue>The editors would appreciate any examples of drop initials in non-western scripts, especially Arabic and Indic scripts.<ahref=#issue-f90429eb> ↵ </a></div><divclass=issue>Add pictures.<ahref=#issue-2e07b898> ↵ </a></div><divclass=issue>Input from those knowledgeable about non-Western typographic traditions would be very helpful in describing the appropriate alignments. More values may be required for this property.<ahref=#issue-209367a3> ↵ </a></div><divclass=issue>Need to decide whether using margin edges or content edges for alignment. Writing Modes uses the margin edges for baseline alignment of replaced elements. There are cases for both content-alignment and margin-alignment for text. In both cases the margin box needs to be excluded.<ahref=#issue-6403f978> ↵ </a></div><divclass=issue>Handle glyph ink above cap height of font.<ahref=#issue-f77cbeb9> ↵ </a></div></div>
533
+
<h2class="no-num heading settled" id=references><spanclass=content>References</span><aclass=self-linkhref=#references></a></h2><h3class="no-num heading settled" id=normative><spanclass=content>Normative References</span><aclass=self-linkhref=#normative></a></h3><dl><dtid=biblio-rfc2119title=rfc2119><aclass=self-linkhref=#biblio-rfc2119></a>[rfc2119]<dd>S. Bradner. <ahref=https://tools.ietf.org/html/rfc2119>Key words for use in RFCs to Indicate Requirement Levels</a>. March 1997. Best Current Practice. URL: <ahref=https://tools.ietf.org/html/rfc2119>https://tools.ietf.org/html/rfc2119</a></dl><h3class="no-num heading settled" id=informative><spanclass=content>Informative References</span><aclass=self-linkhref=#informative></a></h3><dl><dtid=biblio-css2title=CSS2><aclass=self-linkhref=#biblio-css2></a>[CSS2]<dd>Bert Bos; et al. <ahref=http://www.w3.org/TR/CSS2>Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. REC. URL: <ahref=http://www.w3.org/TR/CSS2>http://www.w3.org/TR/CSS2</a><dtid=biblio-css21title=CSS21><aclass=self-linkhref=#biblio-css21></a>[CSS21]<dd>Bert Bos; et al. <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>http://www.w3.org/TR/2011/REC-CSS2-20110607</a><dtid=biblio-css3-line-gridtitle=CSS3-LINE-GRID><aclass=self-linkhref=#biblio-css3-line-grid></a>[CSS3-LINE-GRID]<dd>Koji Ishii. <ahref=http://dev.w3.org/csswg/css-line-grid/>CSS Line Grid Module</a>. Proposal for a CSS module. (Retrieved 26 October 2011) URL: <ahref=http://dev.w3.org/csswg/css-line-grid/>http://dev.w3.org/csswg/css-line-grid/</a><dtid=biblio-css3texttitle=CSS3TEXT><aclass=self-linkhref=#biblio-css3text></a>[CSS3TEXT]<dd>Elika J. Etemad; Koji Ishii. <ahref=http://www.w3.org/TR/2012/WD-css3-text-20121113/>CSS Text Module Level 3</a>. 13 November 2012. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2012/WD-css3-text-20121113/>http://www.w3.org/TR/2012/WD-css3-text-20121113/</a><dtid=biblio-selecttitle=SELECT><aclass=self-linkhref=#biblio-select></a>[SELECT]<dd>Tantek Çelik; et al. <ahref=http://www.w3.org/TR/2011/REC-css3-selectors-20110929/>Selectors Level 3</a>. 29 September 2011. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2011/REC-css3-selectors-20110929/>http://www.w3.org/TR/2011/REC-css3-selectors-20110929/</a></dl><h2class="no-num heading settled" id=index><spanclass=content>Index</span><aclass=self-linkhref=#index></a></h2><ulclass=indexlist><li>dropped initial, <ahref=#dropped-initialtitle="section 2.1.1">2.1.1</a><li>initial-letter, <ahref=#propdef-initial-lettertitle="section 2.3">2.3</a><li>initial-letter-align, <ahref=#propdef-initial-letter-aligntitle="section 2.4">2.4</a><li><integer>, <ahref=#typedef-integertitle="section 2.3">2.3</a><li>normal, <ahref=#normaltitle="section 2.3">2.3</a><li><number>, <ahref=#typedef-numbertitle="section 2.3">2.3</a><li>raised initial, <ahref=#raised-initialtitle="section 2.1.3">2.1.3</a><li>sunken initial, <ahref=#sunken-initialtitle="section 2.1.2">2.1.2</a></ul><h2class="no-num heading settled" id=property-index><spanclass=content>Property Index</span><aclass=self-linkhref=#property-index></a></h2><tableclass="proptable data"><thead><tr><thscope=col>Name<thscope=col>Value<thscope=col>Initial<thscope=col>Applies to<thscope=col>Inh.<thscope=col>%ages<thscope=col>Media<thscope=col>Animatable<thscope=col>Computed value<tbody><tr><thscope=row><aclass=cssdata-link-type=propertyhref=#propdef-initial-letter>initial-letter</a><td>normal | [<integer> <number>?]<td>normal<td>::first-letter pseudo-elements and inline-level first child of a block container<td>no<td>N/A<td>visual<td>no<td>as specified<tr><thscope=row><aclass=cssdata-link-type=propertyhref=#propdef-initial-letter-align>initial-letter-align</a><td>[ auto | alphabetic | hanging | ideographic ]<td>auto<td>::first-letter pseudo elements and inline level first child of a block container<td>no<td>N/A<td>visual<td>no<td>???</table><h2class="no-num heading settled" id=issues-index><spanclass=content>Issues Index</span><aclass=self-linkhref=#issues-index></a></h2><divstyle=counter-reset:issue><divclass=issue>This section is being rewritten. Refer to <ahref=http://www.w3.org/TR/CSS21/visudet.html#line-height>section 10.8</a> of <adata-biblio-type=informativedata-link-type=bibliohref=#biblio-css21title=CSS21>[CSS21]</a> for the normative CSS definition or the <ahref=http://www.w3.org/TR/2002/WD-css3-linebox-20020515/>2002 Working Draft</a> if you want pretty pictures. (But ignore the old text, half of it’s wrong. We’re not specifying which half, that’s to be determined.)<ahref=#issue-469c7c8c> ↵ </a></div><divclass=issue>The editors would appreciate any examples of drop initials in non-western scripts, especially Arabic and Indic scripts.<ahref=#issue-f90429eb> ↵ </a></div><divclass=issue>Add pictures.<ahref=#issue-2e07b898> ↵ </a></div><divclass=issue>Input from those knowledgeable about non-Western typographic traditions would be very helpful in describing the appropriate alignments. More values may be required for this property.<ahref=#issue-209367a3> ↵ </a></div><divclass=issue>Need to decide whether using margin edges or content edges for alignment. Writing Modes uses the margin edges for baseline alignment of replaced elements. There are cases for both content-alignment and margin-alignment for text. In both cases the margin box needs to be excluded.<ahref=#issue-6403f978> ↵ </a></div><divclass=issue>Handle glyph ink above cap height of font.<ahref=#issue-f77cbeb9> ↵ </a></div><divclass=issue>Is this the behavior we want? What if the float is on the same line as the initial letter?<ahref=#issue-2ad0a0cb> ↵ </a></div></div>
0 commit comments