mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
LibWeb: Implement font-size: math
This is a MathML extension, basically a big hack to make parts of equations smaller, such as sub/superscripts. The important thing is, it works. :^)
This commit is contained in:
parent
6476dea898
commit
f7209fb9d4
5 changed files with 104 additions and 12 deletions
10
Tests/LibWeb/Layout/input/css-font-size-math.html
Normal file
10
Tests/LibWeb/Layout/input/css-font-size-math.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<style>
|
||||
body {
|
||||
font: 72px SerenitySans;
|
||||
}
|
||||
span {
|
||||
font-size: math;
|
||||
math-depth: add(1);
|
||||
}
|
||||
</style>
|
||||
<span>H<span>e<span>l<span>l<span>o</span></span></span></span></span>
|
Loading…
Add table
Add a link
Reference in a new issue