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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/text/font-ligatures-linebreak.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/text/font-ligatures-linebreak-word.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 19 matching lines...) Expand all
45 setup({ explicit_done: true }); 45 setup({ explicit_done: true });
46 window.addEventListener("load", function() { 46 window.addEventListener("load", function() {
47 test(function(){ 47 test(function(){
48 assert_true(document.querySelector('.dlig').clientHeight <= 24, "Ligature words laid out in one line."); 48 assert_true(document.querySelector('.dlig').clientHeight <= 24, "Ligature words laid out in one line.");
49 }, "Words expected to be laid out in one line."); 49 }, "Words expected to be laid out in one line.");
50 done(); 50 done();
51 }); 51 });
52 </script> 52 </script>
53 53
54 </body></html> 54 </body></html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/text/font-ligatures-linebreak-word.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698