[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Re: Bug#11754: <center> voids font settings
From: Kurt Granroth <granroth () suse ! com>
Date: 2000-09-26 18:32:12
[Download RAW message or body]
Lars Knoll wrote:
> > > <font face="Verdana,Arial" color="blue" size="-1"><center>This text
> > > should be blue !</center></font> </body>
>
> And is bad HTML... I know about the problem, but it's unfortunately
> very hard to fix. This is because the font tag is used in inline
> *and* block contexts due to the broken html model of netscape-4. I
> once tried to fix that with some hack, but it broke far more sites,
> than it solved problems. I then played around a bit with <font> on
> netscape-4, and found out that it has some *very* strange rules as
> to where it applies the font tag and where not.
Hmm... I'm not suprised -- Netscape has a history of doing things as
screwy as possible.
Wouldn't it be possible, though, to just inherit font settings through
all child tags? That is, say we have code like this:
<font color="blue"><center>Hello</center></font>
We could maybe treat this like:
<body style="color: blue;"><center style="color: inherit">Hello</center></body>
Or would this break too much?
> > Actually, it's not just <center>, <p> does it as well. This results
> > in a LOT of sites that have a formatted first paragraph and then the
> > rest not.
> For the <p> case: How a browser should interpret it is:
>
> <p><font>some text<p>more text -> <p><font>some text</p><p>more text
>
> So the </p> has to close the <font> tag too... Unfortunately netscape does
> differently in almost every case...
Hmm.. in *this* particular case, it does seem that Netscape is
somewhat consistent. <font>...<p>...<p>...<p>...</font> will always
propgate the font changes through all the paragraphs. Adding tables
screws things up.. but plain paragraphs don't seem to.
--
Kurt Granroth | http://www.granroth.org
KDE Developer/Evangelist | SuSE Labs Open Source Developer
granroth@kde.org | granroth@suse.com
KDE -- Putting a Friendly Face on Unix
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic