border_radius.rml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <rml>
  2. <head>
  3. <title>Border-radius</title>
  4. <link type="text/rcss" href="../style.rcss"/>
  5. <link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#border-radius" />
  6. <meta name="Description" content="Border-radius property" />
  7. <style>
  8. body {
  9. background: #ddd;
  10. color: #444;
  11. }
  12. div {
  13. margin: 20dp auto;
  14. width: 200dp;
  15. height: 120dp;
  16. background: #c3c3c3;
  17. border-color: #55f #f57 #55f #afa;
  18. }
  19. .thin {
  20. border-width: 10dp 5dp 25dp 20dp;
  21. border-radius: 80dp 30dp;
  22. decorator: horizontal-gradient( #ff8400 #ffd34f );
  23. }
  24. .thick {
  25. border-width: 40dp 20dp;
  26. border-radius: 30dp;
  27. }
  28. .arc {
  29. width: 80dp;
  30. height: 80dp;
  31. border-width: 40dp;
  32. border-color: #ff8400 #ff8400 #ffd34f #ffd34f;
  33. border-radius: 0 150dp;
  34. }
  35. .split {
  36. line-height: 2.5;
  37. }
  38. .split span {
  39. background: #c3c3c3;
  40. border-color: #55f #f57 #55f #afa;
  41. border-width: 5dp;
  42. border-radius: 8dp;
  43. padding: 8dp 0;
  44. }
  45. </style>
  46. </head>
  47. <body>
  48. <p>The following boxes should produce curved borders. There should be no overlapping triangles, and their backgrounds should not be visible outside their borders.</p>
  49. <div class="thin"/>
  50. <div class="thick"/>
  51. <div class="arc"/>
  52. <p class="split">The following text <span>should wrap down to the<br/> next line</span> and produce borders on each line.</p>
  53. </body>
  54. </rml>