W3C home > Mailing lists > Public > www-style@w3.org > May 2014

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

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Tue, 20 May 2014 11:47:53 +0200
Message-Id: <01681AFE-A236-4AA5-A886-AA87DE55BB8D@crissov.de>
To: "www-style@w3.org" <www-style@w3.org>
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>


  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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:27 UTC