mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
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
This commit is contained in:
committed by
Jelle Raaijmakers
parent
a541c09d61
commit
b0274268f8
Notes:
github-actions[bot]
2026-02-12 00:28:02 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/b0274268f8a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7844 Reviewed-by: https://github.com/gmta ✅
@@ -0,0 +1,18 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user