1
0
Fork 0
firefox/testing/web-platform/tests/css/css-fonts/font-synthesis-style-first-line.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

29 lines
968 B
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8"/>
<title>CSS Test: font-synthesis-style apply to ::first-line</title>
<link rel="match" href="font-synthesis-style-first-line-ref.html">
<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-synthesis-style">
<meta name="assert" content="If style is not specified, user agents must not synthesize italic faces">
<style>
@font-face {
font-family: "Lato-Medium";
src: url(/fonts/Lato-Medium.ttf);
}
@supports not (font-synthesis-style: none) {
.test {color: red;}
}
.test {
font-family: "Lato-Medium";
font-size: 3em;
}
p.nosynth::first-line {
font-style: italic;
font-synthesis-style: none;
}
</style>
<p>Test passes if the two lines below are identical (the first line is <em>not obliqued</em>), and there is no red.</p>
<section class="test">
<p class="nosynth">Filler text<br>Filler text</p>
</section>