webkit-gradient-radial-1b.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <!DOCTYPE html>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/publicdomain/zero/1.0/
  5. -->
  6. <html>
  7. <head>
  8. <title>
  9. CSS Test: -webkit-gradient(radial, ...) expressions,
  10. with 0-sized inner circle listed second
  11. </title>
  12. <style>
  13. div {
  14. border: 1px solid black;
  15. width: 40px;
  16. height: 50px;
  17. margin: 1px;
  18. float: left;
  19. /* We include a fallback background, to easily distinguish failures at
  20. * parse time (which fall back to this value) vs. something later on. */
  21. background: red;
  22. }
  23. br { clear: both; }
  24. </style>
  25. </head>
  26. <body>
  27. <!-- left top: -->
  28. <div style="background: -webkit-gradient(radial,
  29. left top, 40, left top, 0,
  30. from(yellow), to(blue))"></div>
  31. <div style="background: -webkit-gradient(radial,
  32. left top, 40, left top, 0,
  33. from(yellow),
  34. color-stop(0.7, pink),
  35. to(blue))"></div>
  36. <!-- center top: -->
  37. <div style="background: -webkit-gradient(radial,
  38. center top, 40, center top, 0,
  39. from(yellow), to(blue))"></div>
  40. <div style="background: -webkit-gradient(radial,
  41. center top, 40, center top, 0,
  42. from(yellow),
  43. color-stop(0.7, pink),
  44. to(blue))"></div>
  45. <!-- right top: -->
  46. <div style="background: -webkit-gradient(radial,
  47. right top, 40, right top, 0,
  48. from(yellow), to(blue))"></div>
  49. <div style="background: -webkit-gradient(radial,
  50. right top, 40, right top, 0,
  51. from(yellow),
  52. color-stop(0.7, pink),
  53. to(blue))"></div>
  54. <br>
  55. <!-- left center: -->
  56. <div style="background: -webkit-gradient(radial,
  57. left center, 40, left center, 0,
  58. from(yellow), to(blue))"></div>
  59. <div style="background: -webkit-gradient(radial,
  60. left center, 40, left center, 0,
  61. from(yellow),
  62. color-stop(0.7, pink),
  63. to(blue))"></div>
  64. <!-- center center: -->
  65. <div style="background: -webkit-gradient(radial,
  66. center center, 40, center center, 0,
  67. from(yellow), to(blue))"></div>
  68. <div style="background: -webkit-gradient(radial,
  69. center center, 40, center center, 0,
  70. from(yellow),
  71. color-stop(0.7, pink),
  72. to(blue))"></div>
  73. <!-- right center: -->
  74. <div style="background: -webkit-gradient(radial,
  75. right center, 40, right center, 0,
  76. from(yellow), to(blue))"></div>
  77. <div style="background: -webkit-gradient(radial,
  78. right center, 40, right center, 0,
  79. from(yellow),
  80. color-stop(0.7, pink),
  81. to(blue))"></div>
  82. <br>
  83. <!-- left bottom: -->
  84. <div style="background: -webkit-gradient(radial,
  85. left bottom, 40, left bottom, 0,
  86. from(yellow), to(blue))"></div>
  87. <div style="background: -webkit-gradient(radial,
  88. left bottom, 40, left bottom, 0,
  89. from(yellow),
  90. color-stop(0.7, pink),
  91. to(blue))"></div>
  92. <!-- center bottom: -->
  93. <div style="background: -webkit-gradient(radial,
  94. center bottom, 40, center bottom, 0,
  95. from(yellow), to(blue))"></div>
  96. <div style="background: -webkit-gradient(radial,
  97. center bottom, 40, center bottom, 0,
  98. from(yellow),
  99. color-stop(0.7, pink),
  100. to(blue))"></div>
  101. <!-- right bottom: -->
  102. <div style="background: -webkit-gradient(radial,
  103. right bottom, 40, right bottom, 0,
  104. from(yellow), to(blue))"></div>
  105. <div style="background: -webkit-gradient(radial,
  106. right bottom, 40, right bottom, 0,
  107. from(yellow),
  108. color-stop(0.7, pink),
  109. to(blue))"></div>
  110. </body>
  111. </html>