Re: [css-inline] Summary of drop-caps/initial-letters discussion

fantasai <fantasai.lists@inkedblade.net>:

> initial-letters: normal | <integer>{1,2}
> applies to ::first-letter or the inline-level first child of a block container

Just to be sure I understand the implications correctly: 

  <p>This paragraph has a <x>span inside</x> that has  
     special styling for its initial letters.</p>

with 

  x {display: inline; initial-letters: 2;}  

or, if inherited, 

  p {display: block;  initial-letters: 2;}  

would make “span inside” (or just ‘s’ and ‘i’?) span two lines,  
despite being in the horizontal middle of the line, whereas

  x ::first-letter   {initial-letters: 2;}

would make only the ‘s’ bleed downwards,  
but usually one would of course do  

  p ::first-letter   {initial-letters: 2;}  

to make the paragraph-initial ‘T’ two lines high.

Received on Tuesday, 20 May 2014 09:48:25 UTC