ladybird/Tests/LibWeb/Crash/CSS/font-face-width-sign-function.html
Andreas Kling 16dcd2ab23 LibWeb: Absolutize connected font-width descriptors
Resolve connected @font-face font-width descriptors with the rule's
document context before updating the cached width used for font
selection. This matches the font-style and font-weight descriptor
handling and lets relative units inside calculations simplify safely.

Add crash coverage for an @font-face font-width descriptor using
sign() with rem units.
2026-05-23 11:36:45 +02:00

13 lines
241 B
HTML

<!doctype html>
<style>
@font-face {
font-family: SignFont;
src: url(../../../Assets/Lato-Bold.ttf);
font-width: calc(sign(1rem - 1px) * 100%);
}
body {
font-family: SignFont;
}
</style>
text