Re: Alignment Inheritance in HTML 4.01 Tables
"Jukka K. Korpela" <[email protected]> Thu, 01 Dec 2011 13:41:35 +0200
| Newsgroups | gmane.comp.web.html.general |
|---|---|
| Message-ID | <[email protected]> |
2011-12-01 13:09, Philip TAYLOR wrote: >> this "inheritance" is not on the 'style' attribute *value*, but stems >> from the inheritance rules of CSS, so it's a completely different >> issue from the one fantasai and I have raised. Painting the text in >> your example red is correct, but has nothing to do with HTML attribute >> value inheritance. > > A subtle point, Kris, and one I had failed to appreciate. It=E2=80=99s a point that is easily missed, but it=E2=80=99s essential. S= tyle attribute=20 values inheritance, if it existed, would be completely different from=20 CSS inheritance (a key concept in CSS, almost always misunderstood one=20 way or another). For example, if an element has style=3D"border: solid=20 thin", then inheriting that attribute value would make all sub-elements=20 bordered. In CSS, the border attribute is not inherited. > <TABLE style=3D"font-size: 70%"> > <TR style=3D"font-size: 70%"> > <TD style=3D"font-size: 70%=E2=80=A6"> > What size am I ? [=E2=80=A6] > why are the two font samples rendered at exactly the same size ? > I would have expected the second to be considerably smaller (70% of 70% > of 70% =3D 34%) They are different on IE. You are probably looking at the page on Firefox with a setting on minimum font size. Yucca