mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
The main change here is that we now properly absolutize values which
means we now support `random()` and `sibling-{count,index}()`
We are also more consistent with how we handle computation for the other
font properties
22 lines
458 B
HTML
22 lines
458 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<style>
|
|
#foo {
|
|
math-depth: sibling-count();
|
|
}
|
|
|
|
#bar {
|
|
math-depth: random(fixed 0.5, 0, 10);
|
|
}
|
|
</style>
|
|
<div id="foo"></div>
|
|
<div id="bar"></div>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
println(getComputedStyle(foo).mathDepth);
|
|
println(getComputedStyle(bar).mathDepth);
|
|
});
|
|
</script>
|
|
</html>
|