summaryrefslogtreecommitdiffstats
path: root/layout/reftests/first-line/font-styles-nooverflow.html
blob: 5cf63f1b5d35ca6c25b751865b8de13ea6d5234b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE HTML>
<html>
<head>
<title>Simple first-line test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<style type="text/css">
html { overflow: hidden; }
body {
  margin: 20px;
  font-family: serif;
  font-size: 200%;
  line-height: 1.5;
  width: 400px;
}

div:first-line {
  font-family: sans-serif;
}

.floatright {
  float: right;
}

</style>

</head>
<body><div>sans-serif<br>serif <strong>bold serif <em>italic</em></strong><em><br>just italic<span class="floatright">italic too</span></em></div></body>
</html>