background-image-gradient-1.html 420 B

12345678910111213141516
  1. <!DOCTYPE HTML>
  2. <title>Test for calc() on background-image gradients</title>
  3. <style>
  4. p {
  5. height: 50px; width: 200px;
  6. border: thin solid;
  7. }
  8. #one { background-image: -moz-radial-gradient(calc(50px + 50%) calc(100% - 30px), circle farthest-side, red, green); }
  9. #two { background-image: -moz-linear-gradient(calc(-12.5% + 3px) calc(-10px - 50%) -45deg, blue, yellow); }
  10. </style>
  11. <p id="one"></p>
  12. <p id="two"></p>