Truly independent web browser
<!DOCTYPE html>
<html>
<body>
<style>
#foo {
font-size: 0px;
}
#bar {
font-size: 2px;
math-depth: calc(sign(1em - 1px));
}
#baz {
font-size: 2px;
math-depth: add(calc(sign(1em - 1px)));
}
</style>
<div id="foo">
<div id="bar"></div>
<div id="baz"></div>
</div>
<script src="../include.js"></script>
<script>
test(() => {
internals.updateStyle();
println(getComputedStyle(bar).mathDepth);
println(getComputedStyle(baz).mathDepth);
});
</script>
</body>
</html>