LibWeb: Support calculated value in @counter-style pad descriptor

This commit is contained in:
Callum Law
2026-02-10 00:03:20 +13:00
committed by Jelle Raaijmakers
parent 88ac590e9d
commit 3783dd96a3
Notes: github-actions[bot] 2026-02-12 00:28:16 +00:00
3 changed files with 22 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
<!doctype html>
<style>
@counter-style foo {
pad: calc(sign(1em - 1px) + 1) "0";
}
</style>
<script src="../include.js"></script>
<script>
test(() => {
println(document.styleSheets[0].cssRules[0].cssText);
});
</script>