forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test checking the lang attribute affects rendering (web-platform-…
- Loading branch information
1 parent
0d7d283
commit 034aca8
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<style> | ||
* { font-size: 50px } | ||
|
||
@font-face { | ||
font-family: test-font-family; | ||
src: url(support/fonts/Lato-Medium.ttf); | ||
} | ||
|
||
div { font-family: test-font-family; } | ||
</style> | ||
</head> | ||
<body> | ||
`lang="en"` should render ligatures, `lang="tr"` not. | ||
<div lang="tr">fi</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#attr-lang"> | ||
<link rel="mismatch" href="lang-attribute-affects-rendering-ref.html"> | ||
<style> | ||
* { font-size: 50px } | ||
|
||
@font-face { | ||
font-family: test-font-family; | ||
/* <Lato-Medium.ttf> provides different ligatures for English and | ||
Turkish. */ | ||
src: url(support/fonts/Lato-Medium.ttf); | ||
} | ||
|
||
div { font-family: test-font-family; } | ||
</style> | ||
</head> | ||
<body> | ||
`lang="en"` should render ligatures, `lang="tr"` not. | ||
<div lang="en">fi</div> | ||
</body> | ||
</html> |