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: LayoutTests/fast/text-autosizing/inherited-multiplier.html

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta name="viewport" content="width=800"> 4 <meta name="viewport" content="width=800">
5 <style> 5 <style>
6 body { 6 body {
7 font-size: 16px; 7 font-size: 16px;
8 margin: 0; 8 margin: 0;
9 overflow: hidden; 9 overflow: hidden;
10 width: 800px; 10 width: 800px;
11 } 11 }
12 </style> 12 </style>
13 <script src="resources/autosizingTest.js"></script> 13 <script src="resources/autosizingTest.js"></script>
14 </head> 14 </head>
15 <body> 15 <body>
16 <div id="outer"> 16 <div id="outer">
17 This test verifies that a text autosizing multiplier that is inherited from a 17 This test verifies that a text autosizing multiplier that is inherited from a
18 parent element's LayoutStyle is reflected in the computed font size, even if t he 18 parent element's ComputedStyle is reflected in the computed font size, even if the
19 specified font size is different and the next text autosizing pass doesn't alt er 19 specified font size is different and the next text autosizing pass doesn't alt er
20 the multiplier. 20 the multiplier.
21 </div> 21 </div>
22 <script> 22 <script>
23 var outer = document.querySelector('#outer'); 23 var outer = document.querySelector('#outer');
24 var inner = document.createElement('div'); 24 var inner = document.createElement('div');
25 inner.innerText = outer.innerText; 25 inner.innerText = outer.innerText;
26 inner.style.fontSize = '12px'; 26 inner.style.fontSize = '12px';
27 outer.appendChild(inner); 27 outer.appendChild(inner);
28 </script> 28 </script>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/pseudo-any.html ('k') | LayoutTests/fast/text-autosizing/inherited-multiplier-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698