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> |