Skip to content

Commit 034aca8

Browse files
Add test checking the lang attribute affects rendering (web-platform-tests#50336)
1 parent 0d7d283 commit 034aca8

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
src: url(support/fonts/Lato-Medium.ttf);
11+
}
12+
13+
div { font-family: test-font-family; }
14+
</style>
15+
</head>
16+
<body>
17+
`lang="en"` should render ligatures, `lang="tr"` not.
18+
<div lang="tr">fi</div>
19+
</body>
20+
</html>
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+
<link rel="help" href="https://html.spec.whatwg.org/#attr-lang">
6+
<link rel="mismatch" href="lang-attribute-affects-rendering-ref.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+
<div lang="en">fi</div>
23+
</body>
24+
</html>

0 commit comments

Comments
 (0)