blob: c257b7e02a3883939d5e619881223f1809ba11fc [file] [log] [blame]
<!DOCTYPE html>
<!--
| Unicode range test. Tests that font style takes precedence over a matching unicode-range.
| https://www.w3.org/TR/css3-fonts/#font-prop-desc
-->
<html>
<head>
<style>
@font-face {
font-family: 'TestFont';
src: local('Noto Serif');
unicode-range: U+4d-5a; /* =, M-Z */
font-weight: bold;
}
@font-face {
font-family: 'TestFont';
src: local('Roboto');
font-weight: normal;
}
@font-face {
font-family: 'TestFont2';
src: local('Dancing Script');
font-weight: bold;
}
body {
background-color: black;
font-size: 75px;
color: #fff;
font-weight: bold;
font-family: 'TestFont', 'TestFont2'; /*TestFont2 should be used. */
}
</style>
</head>
<body>
<div>Hello</div>
</body>
</html>