gecko/layout/reftests/first-letter/429968-1a.html
L. David Baron 6eecf93b18 Bug 1055865 patch 5 - Use normal inline handling for setting the size of a non-floating nsFirstLetterFrame. r=jfkthame
This is the actual fix for the bug.  This changes the vertical sizing of
inline ::first-letter frames to work like inlines (and size based on
font metrics), so that the line-height calculation that happens later
will produces the same results as inlines would produce.

In the case we're concerned with of having a text frame child that's
0x0, this changes the inline ::first-letter from from being 0x0 to
having a height that is determined from the font metrics.
2014-08-25 15:32:03 -07:00

15 lines
396 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<style>
body { white-space:pre; color:black; }
/* FIXME (Bug 1058203): avoid line-height:normal since it seems to have
different meaning on ::first-letter or span */
#inner::first-letter { color:red; text-decoration:underline;
font-size:200%; line-height: 1.2; }
</style>
</head>
<body><div id="inner"><span>
</span>AB</div></body>
</html>