ladybird/Tests/LibWeb/Crash/CSS/counter-definition-with-relative-units.html
Callum Law 2c7b56511b LibWeb: Add absolutized method to CounterDefinitionsStyleValue
This avoids a crash when a counter value relies on relative units
2025-10-07 10:50:01 +01:00

15 lines
358 B
HTML

<!DOCTYPE html>
<html>
<body>
<style>
#foo {
counter-set: foo calc(sign(1em - 1px));
counter-increment: bar calc(sign(1em - 1px));
counter-reset: baz calc(sign(1em - 1px));
}
</style>
<div>
<div id="foo"></div>
</div>
</body>
</html>