min-intrinsic-with-percents-across-img-cases.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE HTML>
  2. <title>Tests for bug 823483</title>
  3. <style>
  4. td:first-child {
  5. background: aqua;
  6. border: thin solid;
  7. padding: 2px 0;
  8. }
  9. td:nth-child(2) {
  10. width: 100%;
  11. }
  12. img { vertical-align: bottom }
  13. </style>
  14. <table><tr>
  15. <td><img></td>
  16. <td>unstyled</td>
  17. </tr></table>
  18. <table><tr>
  19. <td><img style="width: 10px"></td>
  20. <td>width: 10px</td>
  21. </tr></table>
  22. <table><tr>
  23. <td><img style="width: 50%"></td>
  24. <td>width: 50%</td>
  25. </tr></table>
  26. <table><tr>
  27. <td><img style="min-width: 50%"></td>
  28. <td>min-width: 50%</td>
  29. </tr></table>
  30. <table><tr>
  31. <td><img style="max-width: 50%"></td>
  32. <td>max-width: 50%</td>
  33. </tr></table>
  34. <table><tr>
  35. <td><img style="width: 10px; max-width: 50%"></td>
  36. <td>width: 10px; max-width: 50%</td>
  37. </tr></table>
  38. <table><tr>
  39. <td><img style="width: 10px; min-width: 50%"></td>
  40. <td>width: 10px; min-width: 50%</td>
  41. </tr></table>
  42. <table><tr>
  43. <td><img style="width: 150%"></td>
  44. <td>width: 150%</td>
  45. </tr></table>
  46. <table><tr>
  47. <td><img style="min-width: 150%"></td>
  48. <td>min-width: 150%</td>
  49. </tr></table>
  50. <table><tr>
  51. <td><img style="max-width: 150%"></td>
  52. <td>max-width: 150%</td>
  53. </tr></table>
  54. <table><tr>
  55. <td><img style="width: 10px; max-width: 150%"></td>
  56. <td>width: 10px; max-width: 150%</td>
  57. </tr></table>
  58. <table><tr>
  59. <td><img style="width: 10px; min-width: 150%"></td>
  60. <td>width: 10px; min-width: 150%</td>
  61. </tr></table>
  62. <script>
  63. var images = document.getElementsByTagName("img");
  64. for (var i = 0; i < images.length; ++i) {
  65. var image = images[i];
  66. image.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAChJREFUSMftzUEBAAAEBLCjf2dK8NsKrJLJp84zgUAgEAgEAoFAcGUBocYBP+pqhN4AAAAASUVORK5CYII=";
  67. }
  68. </script>