vertical-align: inherited: no (why?)

Neil St.Laurent writes:

 > Why is vertical-align not inherited?

Good question. Suppose this rule:

  SUP { vertical-align: super }

Then, with this markup:

  <P>M<SUP>elle</SUP>

You get something a la

  |\/|elle
  |  |

Now, say you would like the two "l" letters to have a differnet color:

  <P>M<SUP>e<SPAN STYLE="color: red">ll</SPAN>e</SUP>

If vertical-align had inherited, the vertial-align value for the SPAN
element would have been 'super'. Then the two "l"s would be
superscripted relative to the parent, which is not the "M", but the
"elle". I.e., you would have had a superscript to the superscript --
probably not what the author wanted. 

-h&kon

H   å   k   o   n      W   i   u   m       L   i   e
howcome@w3.org   W o r l d   Wide  W e b  Consortium
inria §°þ#¡ª FRANCE http://www.w3.org/people/howcome
 

Received on Wednesday, 23 July 1997 17:39:58 UTC