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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/text/font-ligatures-linebreak-word.html

Issue 2248693003: Take style into account when matching fonts Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Ligature Linebreaking</title> 4 <title>Ligature Linebreaking</title>
5 <script src="../../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script> 6 <script src="../../resources/testharnessreport.js"></script>
7 7
8 <style type="text/css"> 8 <style type="text/css">
9 @font-face { 9 @font-face {
10 font-family: megalopolis; 10 font-family: megalopolis;
11 src: url(../../third_party/MEgalopolis/MEgalopolisExtra.woff) format("woff"); 11 src: url(../../third_party/MEgalopolis/MEgalopolisExtra.woff) format("woff");
12 } 12 }
13 13
14 body { 14 body {
15 font-family: megalopolis, sans-serif; 15 font-family: megalopolis;
16 } 16 }
17 17
18 .dlig { 18 .dlig {
19 -moz-font-feature-settings:"frac" 1, "dlig" 1; 19 -moz-font-feature-settings:"frac" 1, "dlig" 1;
20 -moz-font-feature-settings:"frac=1, dlig=1"; 20 -moz-font-feature-settings:"frac=1, dlig=1";
21 -ms-font-feature-settings:"frac" 1, "dlig" 1; 21 -ms-font-feature-settings:"frac" 1, "dlig" 1;
22 -o-font-feature-settings:"frac" 1, "dlig" 1; 22 -o-font-feature-settings:"frac" 1, "dlig" 1;
23 -webkit-font-feature-settings:"frac" 1, "dlig" 1; 23 -webkit-font-feature-settings:"frac" 1, "dlig" 1;
24 font-feature-settings:"frac" 1, "dlig" 1; 24 font-feature-settings:"frac" 1, "dlig" 1;
25 font-size: 24px; 25 font-size: 24px;
(...skipping 20 matching lines...) Expand all
46 setup({ explicit_done: true }); 46 setup({ explicit_done: true });
47 window.addEventListener("load", function() { 47 window.addEventListener("load", function() {
48 test(function(){ 48 test(function(){
49 assert_true(document.querySelector('.dlig').clientHeight <= 24, "Two ligat ures laid out in one line."); 49 assert_true(document.querySelector('.dlig').clientHeight <= 24, "Two ligat ures laid out in one line.");
50 }, "Word expected to be laid out in one line."); 50 }, "Word expected to be laid out in one line.");
51 done(); 51 done();
52 }); 52 });
53 </script> 53 </script>
54 54
55 </body></html> 55 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698