RetroZilla/layout/html/tests/block/bugs/14363.html

24 lines
650 B
HTML
Raw Normal View History

2015-10-21 05:03:22 +02:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>vertical_align_texttop.html</title>
<style type="text/css">
.one {
font-size: 30pt
}
.two {
vertical-align: text-top; font-size: 12pt
}
</style>
</head>
<body>
<p>Text-top aligns the top of the box with the top of the parent element's font. In the example below, the top of the box (the b's) should align with the top of the parent element's font (sentence). However, the sentence displays a little low.</p>
<p class="one"><span class="two">bbbbbbbbbbbbbbb</span>Top of the b should align with the top of this sentence's font.</span>
</p>
</body>
</html>