mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
Calculated values are resolved and confirmed to be valid (in line with non-calculated values) at parse time
19 lines
420 B
HTML
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>
|