Skip to content

Commit 57c0ecb

Browse files
Add WPT checking the lang attribute affects the rendering of the second text run
2 parents 146ca80 + 2517a1e commit 57c0ecb

2 files changed

+49
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<style>
6+
* { font-size: 50px }
7+
8+
@font-face {
9+
font-family: test-font-family;
10+
/* <Lato-Medium.ttf> provides different ligatures for English and
11+
Turkish. */
12+
src: url(support/fonts/Lato-Medium.ttf);
13+
}
14+
15+
div { font-family: test-font-family; }
16+
</style>
17+
</head>
18+
<body>
19+
`lang="en"` should render ligatures, `lang="tr"` not.
20+
Different scripts should correspond to different text runs.
21+
<div lang="tr">αβ fi</div>
22+
</body>
23+
</html>
24+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<link rel="help" href="https://html.spec.whatwg.org/#attr-lang">
6+
<link rel="mismatch" href="lang-attribute-affects-rendering-of-second-text-run.html">
7+
<style>
8+
* { font-size: 50px }
9+
10+
@font-face {
11+
font-family: test-font-family;
12+
/* <Lato-Medium.ttf> provides different ligatures for English and
13+
Turkish. */
14+
src: url(support/fonts/Lato-Medium.ttf);
15+
}
16+
17+
div { font-family: test-font-family; }
18+
</style>
19+
</head>
20+
<body>
21+
`lang="en"` should render ligatures, `lang="tr"` not.
22+
Different scripts should correspond to different text runs.
23+
<div lang="en">αβ fi</div>
24+
</body>
25+
</html>

0 commit comments

Comments
 (0)