mirror of
https://github.com/servo/servo.git
synced 2025-09-14 00:48:20 +01:00
Add support for <super> and <sup> tags. Fixes equations on wikipedia.
This commit is contained in:
parent
d9e26352a1
commit
52c5007b07
10 changed files with 232 additions and 15 deletions
25
tests/ref/vertical_align_super_a.html
Normal file
25
tests/ref/vertical_align_super_a.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue