Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <html><head> |
michael@0 | 2 | <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
michael@0 | 3 | <style type="text/css"> |
michael@0 | 4 | .outer { |
michael@0 | 5 | display:table; |
michael@0 | 6 | height:20px; |
michael@0 | 7 | width:300px; |
michael@0 | 8 | max-width:300px; |
michael@0 | 9 | } |
michael@0 | 10 | |
michael@0 | 11 | .inner { |
michael@0 | 12 | background-color: silver; |
michael@0 | 13 | display:table-cell; |
michael@0 | 14 | height:20px; |
michael@0 | 15 | min-height:20px; |
michael@0 | 16 | width:150px; |
michael@0 | 17 | max-width:150px; |
michael@0 | 18 | padding: 4px; |
michael@0 | 19 | } |
michael@0 | 20 | .clip { |
michael@0 | 21 | overflow:hidden; |
michael@0 | 22 | width:-moz-fit-content; |
michael@0 | 23 | } |
michael@0 | 24 | </style> |
michael@0 | 25 | </head> |
michael@0 | 26 | <body> |
michael@0 | 27 | <h2>Testing CSS overflow on display:table-cell</h2> |
michael@0 | 28 | <div class="outer"> |
michael@0 | 29 | <div class="inner"> |
michael@0 | 30 | <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> |
michael@0 | 31 | </div> |
michael@0 | 32 | </div> |
michael@0 | 33 | <div class="outer"> |
michael@0 | 34 | <div class="inner"> |
michael@0 | 35 | <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> |
michael@0 | 36 | </div> |
michael@0 | 37 | </div> |
michael@0 | 38 | <div class="outer"> |
michael@0 | 39 | <div class="inner"> |
michael@0 | 40 | <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> |
michael@0 | 41 | </div> |
michael@0 | 42 | </div> |
michael@0 | 43 | <div class="clip"><div class="outer"> |
michael@0 | 44 | <div class="inner"> |
michael@0 | 45 | <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> |
michael@0 | 46 | </div> |
michael@0 | 47 | </div></div> |
michael@0 | 48 | <div class="outer"> |
michael@0 | 49 | <div class="inner"> |
michael@0 | 50 | <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> |
michael@0 | 51 | </div> |
michael@0 | 52 | </div> |
michael@0 | 53 | <div class="clip"><div class="outer"> |
michael@0 | 54 | <div class="inner"> |
michael@0 | 55 | <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> |
michael@0 | 56 | </div> |
michael@0 | 57 | </div></div> |
michael@0 | 58 | <h2>Testing CSS overflow on display:table</h2> |
michael@0 | 59 | <div class="outer"> |
michael@0 | 60 | <div class="inner"> |
michael@0 | 61 | <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> |
michael@0 | 62 | </div> |
michael@0 | 63 | </div> |
michael@0 | 64 | <div class="outer"> |
michael@0 | 65 | <div class="inner"> |
michael@0 | 66 | <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> |
michael@0 | 67 | </div> |
michael@0 | 68 | </div> |
michael@0 | 69 | <div class="outer"> |
michael@0 | 70 | <div class="inner"> |
michael@0 | 71 | <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> |
michael@0 | 72 | </div> |
michael@0 | 73 | </div> |
michael@0 | 74 | <div class="clip"><div class="outer"> |
michael@0 | 75 | <div class="inner"> |
michael@0 | 76 | <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> |
michael@0 | 77 | </div> |
michael@0 | 78 | </div></div> |
michael@0 | 79 | <div class="outer"> |
michael@0 | 80 | <div class="inner"> |
michael@0 | 81 | <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> |
michael@0 | 82 | </div> |
michael@0 | 83 | </div> |
michael@0 | 84 | <div class="clip"><div class="outer"> |
michael@0 | 85 | <div class="inner"> |
michael@0 | 86 | <img width="400px" height="10px" src="data:image/gif;base64,R0lGODlhAQABAIABAAD/AP///ywAAAAAAQABAAACAkQBADs="> |
michael@0 | 87 | </div> |
michael@0 | 88 | </div></div> |
michael@0 | 89 | </body></html> |