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

Side by Side Diff: LayoutTests/fast/text/tab-min-size.html

Issue 1314923005: Deprecate 'intrinsic' and 'min-intrinsic' CSS keywords (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: a couple more tests... Created 5 years, 3 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 <style> 2 <style>
3 span { 3 span {
4 font-family: monospace; 4 font-family: monospace;
5 tab-size: 2; 5 tab-size: 2;
6 white-space: pre; 6 white-space: pre;
7 width: intrinsic; 7 width: max-content;
8 } 8 }
9 </style> 9 </style>
10 <div><span id="one-tab"><span>&Tab;</span>word</span></div> 10 <div><span id="one-tab"><span>&Tab;</span>word</span></div>
11 <div><span id="two-tabs"><span>&Tab;</span><span>&Tab;</span>word</span></div> 11 <div><span id="two-tabs"><span>&Tab;</span><span>&Tab;</span>word</span></div>
12 <script src="../../resources/js-test.js"></script> 12 <script src="../../resources/js-test.js"></script>
13 <script> 13 <script>
14 description('Tab characters should never be zero-width.'); 14 description('Tab characters should never be zero-width.');
15 15
16 var oneTabLineWidth = document.getElementById("one-tab").getBoundingClientRect ().width; 16 var oneTabLineWidth = document.getElementById("one-tab").getBoundingClientRect ().width;
17 var twoTabLineWidth = document.getElementById("two-tabs").getBoundingClientRec t().width; 17 var twoTabLineWidth = document.getElementById("two-tabs").getBoundingClientRec t().width;
18 18
19 if (oneTabLineWidth == twoTabLineWidth) { 19 if (oneTabLineWidth == twoTabLineWidth) {
20 testFailed("oneTabLineWidth should not be equal to twoTabLineWidth."); 20 testFailed("oneTabLineWidth should not be equal to twoTabLineWidth.");
21 } else { 21 } else {
22 testPassed("oneTabLineWidth is not equal to twoTabLineWidth."); 22 testPassed("oneTabLineWidth is not equal to twoTabLineWidth.");
23 } 23 }
24 </script> 24 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/table/cell-height-min-intrinsic.html ('k') | LayoutTests/svg/custom/svg-width-intrinsic-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698