W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2003

Re: appending styles with underscore

From: Christophe Strobbe <christophe.strobbe@esat.kuleuven.ac.be>
Date: Mon, 07 Jul 2003 10:58:40 +0200
Message-Id: <5.0.2.1.2.20030707103112.00b29120@mailserv.esat.kuleuven.ac.be>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: html-tidy@w3.org

Hi Bjoern,

Let me reformulate what I meant. When Tidy turns this:

<td bgcolor="#000000" colspan=4><p class="centBoldWhite"><i>
Some Text</i></p></td>

into this:

<td bgcolor="#000000" colspan="4">
<p class="centBoldWhite_c1">Some Text</p>
</td>

and adds

<style type="text/css">
p.c1 {font-style: italic}
</style>

then the style rules

p.c1 {...}
p.centBoldWhite {...}
p.c1.centBoldWhite {...}

don't apply to

<p class="centBoldWhite_c1">...

(You would need p.centBoldWhite_c1 {...}.) But each of the three rules 
would apply to

<p class="centBoldWhite c1">...</p>
<p class="centBoldWhite c1 c2">...</p>

Best regards,

Christophe


At 06:38 07/07/2003, Bjoern Hoehrmann wrote:

>* Christophe Strobbe wrote:
> >The underscore in class="centBoldWhite_c1" is not meant to join two classes
> >('centBoldWhite' and 'c1'); it is a new class.
>
>Why do you think so?


--
Christophe Strobbe
K.U.Leuven - Departement of Electrical Engineering - Research Group 
on  Document Architectures
Kasteelpark Arenberg 10 - 3001 Leuven-Heverlee - BELGIUM
tel: +32 16 32 85 51
http://www.docarch.be/
Received on Monday, 7 July 2003 04:56:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:54 UTC