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

Side by Side Diff: LayoutTests/svg/custom/stf-container-with-intrinsic-ratio-svg.html

Issue 988443003: Don't add artifical 1 pixel width to empty tables (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 6 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 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <style type="text/css"> 4 <style type="text/css">
5 body > div { width: 100px } 5 body > div { width: 100px }
6 #stf1 { float: left } 6 #stf1 { float: left }
7 #stf2 { position: absolute } 7 #stf2 { position: absolute }
8 #stf3 { display: table-cell } 8 #stf3 { display: table-cell }
9 </style> 9 </style>
10 <div> 10 <div>
(...skipping 11 matching lines...) Expand all
22 test(function() { 22 test(function() {
23 var r = document.getElementById('stf1').getBoundingClientRect(); 23 var r = document.getElementById('stf1').getBoundingClientRect();
24 assert_equals(r.width, 0); 24 assert_equals(r.width, 0);
25 }, "Test floated element width with replaced element with intrinsic ratio bu t no dimensions"); 25 }, "Test floated element width with replaced element with intrinsic ratio bu t no dimensions");
26 test(function() { 26 test(function() {
27 var r = document.getElementById('stf2').getBoundingClientRect(); 27 var r = document.getElementById('stf2').getBoundingClientRect();
28 assert_equals(r.width, 0); 28 assert_equals(r.width, 0);
29 }, "Test absolute positioned element width with replaced element with intrin sic ratio but no dimensions"); 29 }, "Test absolute positioned element width with replaced element with intrin sic ratio but no dimensions");
30 test(function() { 30 test(function() {
31 var r = document.getElementById('stf3').getBoundingClientRect(); 31 var r = document.getElementById('stf3').getBoundingClientRect();
32 assert_equals(r.width, 1); // Unclear if width should be 0 or 1. (Gecko and Blink disagree) 32 assert_equals(r.width, 0);
33 }, "Test table cell width with replaced element with intrinsic ratio but no dimensions"); 33 }, "Test table cell width with replaced element with intrinsic ratio but no dimensions");
34 </script> 34 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698