- From: Vadim Plessky <lucy-ples@mtu-net.ru>
- Date: Thu, 15 Aug 2002 10:34:44 +0400
- To: www-style@w3.org
On Wednesday 14 August 2002 4:08 am, Coises wrote: | [Tue, 13 Aug 2002 09:22:17 -0400] L. David Baron: [...] | There is a good reason for this distinction. When an *element* implies | presentation, it is easy to control the way it is handled in a style | sheet: one needs only a simple selector to reference it, and the standard | presentation is fixed. If one wishes to write a user style sheet that | forces all elements to normal weight *except* for B and STRONG, it's easy: | * {font-weight: normal} | B, STRONG {font-weight: bold} | | But referencing an attribute with an arbitrary value is generally not | possible in CSS 2/2.1. How would you accomplish this (invalid syntax): | BODY {color: navy} | BODY[TEXT] {color: attr(TEXT)} | in CSS 2.1? As far as I can tell, there is no way to do such a thing, | except by relying on the cascade to cause <BODY TEXT=...> to overrule the | (first, valid) user style sheet rule --- which is exactly what I'm | complaining would no longer be possible given the proposed change. Does body {color: navy} p, H1 { color: inherit } help? -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/
Received on Thursday, 15 August 2002 02:28:31 UTC