Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: third_party/WebKit/LayoutTests/fast/css/font-face-unicode-range-ligatures.html

Issue 1806653002: Shape unicode-range: font faces in only one iteration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update UnicodeRangeSetTests to RefPtrtr, rm copy constructor and test Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/font-face-unicode-range-ligatures-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/font-face-unicode-range-ligatures.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/font-face-unicode-range-ligatures.html b/third_party/WebKit/LayoutTests/fast/css/font-face-unicode-range-ligatures.html
new file mode 100644
index 0000000000000000000000000000000000000000..34619c467bd751fdcd1d39d3f4c19f0f44b1882f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/font-face-unicode-range-ligatures.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<style type="text/css">
+ @font-face {
+ font-family: libertinerangesplit;
+ src: url("../../third_party/Libertine/LinLibertine_R.woff");
+ unicode-range: U+0066, U+0069;
+ }
+
+ @font-face {
+ font-family: libertinefull;
+ src: url("../../third_party/Libertine/LinLibertine_R.woff");
+ }
+
+ .test {
+ font-size: 200px;
+ }
+
+ #libertinerangesplit {
+ font-family: libertinerangesplit;
+ }
+
+ #libertinefull {
+ font-family: libertinefull;
+ }
+</style>
+
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+
+<script type="text/javascript">
+
+async_test(function(testHandle) {
+ document.fonts.ready.then( function() {
+ testHandle.step( function() {
+ rangesplitwidth = document.querySelector("#libertinerangesplit").getBoundingClientRect().width;
+ fullwidth = document.querySelector("#libertinefull").getBoundingClientRect().width;
+ assert_equals(rangesplitwidth, fullwidth);
+ });
+ testHandle.done();
+ });
+}, "Ligature for fi formed for full font and subsetted font.");
+
+</script>
+</head>
+<body>
+ <div class="test">
+ <span id="libertinerangesplit">fi</span>
+ <span id="libertinefull">fi</span>
+ </div>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/font-face-unicode-range-ligatures-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698