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.
13 lines
241 B
HTML
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
|