1
Fork 0
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:
Sam Atkins 2023-09-07 17:39:07 +01:00 committed by Sam Atkins
parent 6476dea898
commit f7209fb9d4
5 changed files with 104 additions and 12 deletions

View 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>