8000 [css-pseudo] Remove right for UAs to format ::first-letter differently · w3c/csswg-drafts@775393d · GitHub
Skip to content

Commit 775393d

Browse files
committed
[css-pseudo] Remove right for UAs to format ::first-letter differently
Resolution: http://lists.w3.org/Archives/Public/www-style/2014Sep/0384.html
1 parent 4c63835 commit 775393d

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

css-pseudo/Overview.bs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,13 @@ Styling the ''::first-letter'' Pseudo-element</h4>
336336

337337
User agents may apply other properties as well.
338338

339-
To allow User-Agents to render a typographically correct drop cap or initial cap,
340-
the User-Agent may choose a line-height, width and height
341-
based on the shape of the letter, unlike for normal elements.
339+
Note: In previous levels of CSS,
340+
User Agents were allowed to choose a line height, width and height based on the shape of the letter,
341+
approximate font sizes,
342+
or to take the glyph outline into account when formatting.
343+
This possibility has been intentionally removed,
344+
as it proved to be a poor solution for the intended use case (Drop Caps),
345+
yet caused interoperability problems.
342346

343347
<div class="example">
344348
Example:
@@ -415,10 +419,6 @@ Styling the ''::first-letter'' Pseudo-element</h4>
415419
block element.
416420
</div>
417421

418-
In order to achieve traditional drop caps formatting, user agents may
419-
approximate font sizes, for example to align baselines. Also, the glyph
420-
outline may be taken into account when formatting.
421-
422422
<h2 id="highlight-pseudos">
423423
Highlight Range Pseudo-element: ''::selection''</h2>
424424

css-pseudo/Overview.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,13 @@ <h4 class="heading settled" data-level=2.2.2 id=first-letter-styling><span class
445445

446446
<p>User agents may apply other properties as well.</p>
447447

448-
<p>To allow User-Agents to render a typographically correct drop cap or initial cap,
449-
the User-Agent may choose a line-height, width and height
450-
based on the shape of the letter, unlike for normal elements.</p>
448+
<p class=note>Note: In previous levels of CSS,
449+
User Agents were allowed to choose a line height, width and height based on the shape of the letter,
450+
approximate font sizes,
451+
or to take the glyph outline into account when formatting.
452+
This possibility has been intentionally removed,
453+
as it proved to be a poor solution for the intended use case (Drop Caps),
454+
yet caused interoperability problems.</p>
451455

452456
<div class=example>
453457
Example:
@@ -521,10 +525,6 @@ <h4 class="heading settled" data-level=2.2.2 id=first-letter-styling><span class
521525
block element.</p>
522526
</div>
523527

524-
<p>In order to achieve traditional drop caps formatting, user agents may
525-
approximate font sizes, for example to align baselines. Also, the glyph
526-
outline may be taken into account when formatting.</p>
527-
528528
<h2 class="heading settled" data-level=3 id=highlight-pseudos><span class=secno>3. </span><span class=content>
529529
Highlight Range Pseudo-element: <a class=css data-link-type=maybe href=#selectordef-selection title=::selection>::selection</a></span><a class=self-link href=#highlight-pseudos></a></h2>
530530

0 commit comments

Comments
 (0)