Files
ladybird/Tests/LibWeb/Text/input/css/range-descriptor-calculated-value.html
Callum Law b0274268f8 LibWeb: Support calculated values in @counter-style range descriptor
Calculated values are resolved and confirmed to be valid (in line with
non-calculated values) at parse time
2026-02-12 01:26:52 +01:00

19 lines
420 B
HTML

<!doctype html>
<style>
@counter-style valid {
range: calc(sign(1em - 1px)) calc(sign(1em - 1px) + 1);
}
@counter-style invalid {
range: calc(sign(1em - 1px) + 1) calc(sign(1em - 1px));
}
</style>
<script src="../include.js"></script>
<script>
test(() => {
for (const rule of document.styleSheets[0].cssRules) {
println(rule.cssText);
}
});
</script>