webkit-gradient-approx-radial-1.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 which we don't render
  10. quite correctly because they can't easily be represented with modern syntax.
  11. </title>
  12. <style>
  13. div {
  14. border: 1px solid black;
  15. width: 50px;
  16. height: 40px;
  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. <!-- Inner circle has nonzero radius: -->
  28. <div style="background: -webkit-gradient(radial,
  29. left top, 10, left top, 40,
  30. from(blue), to(yellow))"></div>
  31. <div style="background: -webkit-gradient(radial,
  32. center center, 50, center center, 40,
  33. from(blue), to(yellow))"></div>
  34. <br>
  35. <!-- Both circles have the same radius: -->
  36. <div style="background: -webkit-gradient(radial,
  37. center center, 40, center center, 40,
  38. from(blue), to(yellow))"></div>
  39. <div style="background: -webkit-gradient(radial,
  40. 10 10, 10, 10 10, 10,
  41. from(blue), to(yellow))"></div>
  42. <br>
  43. <!-- Inner circle has different center than outer circle: -->
  44. <div style="background: -webkit-gradient(radial,
  45. left bottom, 0, left top, 40,
  46. from(blue), to(yellow))"></div>
  47. <div style="background: -webkit-gradient(radial,
  48. 10 20, 40, 30 10, 5,
  49. from(blue), to(yellow))"></div>
  50. <br>
  51. <!-- Inner circle and outer circle do not even intersect: -->
  52. <div style="background: -webkit-gradient(radial,
  53. 10 10, 5, 30 10, 10,
  54. from(blue), to(yellow))"></div>
  55. <div style="background: -webkit-gradient(radial,
  56. -50 10, 5, 150 10, 30,
  57. from(blue), to(yellow))"></div>
  58. </body>
  59. </html>