mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
6eecf93b18
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.
15 lines
396 B
HTML
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>
|