Add support for <super> and <sup> tags. Fixes equations on wikipedia.

This commit is contained in:
Glenn Watson 2014-09-29 15:16:59 +10:00
parent d9e26352a1
commit 52c5007b07
10 changed files with 232 additions and 15 deletions

View file

@ -155,3 +155,7 @@ flaky_linux == acid2_noscroll.html acid2_ref_broken.html
== vertical_align_bottom_a.html vertical_align_bottom_ref.html
== vertical_align_top_span_a.html vertical_align_top_span_ref.html
== vertical_align_top_bottom_a.html vertical_align_top_bottom_ref.html
== vertical_align_sub_a.html vertical_align_sub_ref.html
== vertical_align_super_a.html vertical_align_super_ref.html
== vertical_align_text_top_a.html vertical_align_text_top_ref.html
== vertical_align_text_bottom_a.html vertical_align_text_bottom_ref.html

View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/ahem.css">
<style type="text/css">
body {
margin: 0;
font-size: 100px;
line-height: 1;
}
div {
color: blue;
margin-top: 100px;
}
.align {
color: red;
font-size: 0.8em;
vertical-align: sub;
}
</style>
</head>
<body>
<div><span>X</span><span class="align">X</span></div>
</body>
</html>

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
margin: 0;
}
.text {
position: absolute;
background-color: blue;
top: 100px;
width: 100px;
height: 100px;
}
.aligned {
position: absolute;
background-color: red;
top: 136px;
left: 100px;
width: 80px;
height: 80px;
}
</style>
</head>
<body>
<div class="text"></div>
<div class="aligned"></div>
</body>
</html>

View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/ahem.css">
<style type="text/css">
body {
margin: 0;
font-size: 100px;
line-height: 1;
}
div {
color: blue;
margin-top: 100px;
}
.align {
color: red;
font-size: 0.8em;
vertical-align: super;
}
</style>
</head>
<body>
<div><span>X</span><span class="align">X</span></div>
</body>
</html>

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
margin: 0;
}
.text {
position: absolute;
background-color: blue;
top: 100px;
width: 100px;
height: 100px;
}
.aligned {
position: absolute;
background-color: red;
top: 82px;
left: 100px;
width: 80px;
height: 80px;
}
</style>
</head>
<body>
<div class="text"></div>
<div class="aligned"></div>
</body>
</html>

View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/ahem.css">
<style type="text/css">
body {
margin: 0;
font-size: 100px;
line-height: 1;
}
div {
color: blue;
margin-top: 100px;
}
.align {
font-size: 20px;
color: red;
vertical-align: text-bottom;
}
</style>
</head>
<body>
<div><span>X</span><span class="align">X</span></div>
</body>
</html>

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
margin: 0;
}
.text {
position: absolute;
background-color: blue;
top: 100px;
width: 100px;
height: 100px;
}
.aligned {
position: absolute;
background-color: red;
top: 180px;
left: 100px;
width: 20px;
height: 20px;
}
</style>
</head>
<body>
<div class="text"></div>
<div class="aligned"></div>
</body>
</html>

View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/ahem.css">
<style type="text/css">
body {
margin: 0;
font-size: 100px;
line-height: 1;
}
div {
color: blue;
margin-top: 100px;
}
.align {
font-size: 20px;
color: red;
vertical-align: text-top;
}
</style>
</head>
<body>
<div><span>X</span><span class="align">X</span></div>
</body>
</html>

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
margin: 0;
}
.text {
position: absolute;
background-color: blue;
top: 100px;
width: 100px;
height: 100px;
}
.aligned {
position: absolute;
background-color: red;
top: 100px;
left: 100px;
width: 20px;
height: 20px;
}
</style>
</head>
<body>
<div class="text"></div>
<div class="aligned"></div>
</body>
</html>