mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
We no longer try to resolve calculated values at parse time which means we support relative lengths. We now clamp negative values rather than rejecting them at parse time. Parsing has been inlined into `parse_ratio_value` and `parse_ratio` has been removed since `parse_ratio_value` was the only caller
15 lines
313 B
HTML
15 lines
313 B
HTML
<!doctype html>
|
|
<style>
|
|
#foo {
|
|
aspect-ratio: calc(-1) / 1;
|
|
}
|
|
</style>
|
|
<div id="foo"></div>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
println(document.styleSheets[0].cssRules[0].style.aspectRatio);
|
|
println(getComputedStyle(foo).aspectRatio);
|
|
});
|
|
</script>
|