Files
sousa-gecko/testing/web-platform/tests/css/css-fonts/font-face-sign-function.html
T
Stephen Chenney 0605c28138 Bug 1954504 [wpt PR 51383] - Move Lato fonts to /fonts, a=testonly
Automatic update from web-platform-tests
Move Lato fonts to /fonts (#51383)

* Move Lato fonts to /fonts

The Lato fonts are needed for language tests in html/canvas. Those
tests are generated and the generation script looks for fonts in
/fonts. So move the Lato font files there.

* Update lang-attribute-affects-rendering-ref.html

Fix one more ref

* Update lang-attribute-affects-rendering.html

Fix final test
--

wpt-commits: ec2e2302a4b28cd75581d22a32873464832a131b
wpt-pr: 51383
2025-03-18 10:41:46 +00:00

26 lines
629 B
HTML

<!DOCTYPE html>
<meta charset="utf-8" />
<title>CSS Test: Support for sign function in @font-face</title>
<link rel="match" href="font-face-weight-auto-static-ref.html">
<link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-prop-desc" />
<style>
:root {
font-size: 16px;
}
@font-face {
font-family: "Lato";
src: url('/fonts/Lato-Medium.ttf') format('truetype');
font-display: swap;
font-weight: calc(sign(1rem - 1px) * 400);
font-width: calc(sign(1rem - 1px) * 100%);
}
.test {
font-family: "Lato";
font-size: 3em;
font-weight: bold;
}
</style>
<p class="test">text</p>