different rendering depending on DOCTYPE

Johannes Hofmann <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
Hi,

I noticed, that firefox and chrome render stuff differently
depending on the DOCTYPE.
Attached is a small example.
firefox doesn't show overlapping text but dillo does.
When the DOCTYPE line is removed firefox renders the page as dillo
does.
Wikipedia has some information about the topic at [1].
I think at some point we need to handle these cases too.
It would also be interesting which rule exactly prevents firefox from
showing overlapping text when the DOCTYPE line is present.

Cheers,
Johannes

[1] http://en.wikipedia.org/wiki/Quirks_mode

_______________________________________________
Dillo-dev mailing list
[email protected]
http://lists.dillo.org/cgi-bin/mailman/listinfo/dillo-dev
line-height4.html (text/html, 533 B)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">

p.a {
	line-height : 1.33;
	margin : 0px;
}
a:link {line-height : 0.60;  }

</style>
</head>
<body>
<p class="a"><a href="1">Hello World</a></p>
<p class="a"><a href="1">Hello World</a></p>
<p class="a"><a href="1">Hello World</a></p>
<p class="a"><a href="1">Hello World</a></p>
<p class="a"><a href="1">Hello World</a></p>
<p class="a"><a href="1">Hello World</a></p>
</body>
</html>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.