ink_overflow_bounding_box.rml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <rml>
  2. <head>
  3. <title>Ink overflow bounding box</title>
  4. <link type="text/rcss" href="../style.rcss"/>
  5. <meta name="Description" content="Enables testing an element's bounding box with ink overflow and transform. The bounding box should cover all of the element's box shadows and filters, even when they have transforms applied." />
  6. <meta name="Instructions" content="The bounding box of an element can be seen as the white frame in the debugger, when selecting it in the element info mode." />
  7. <style>
  8. @spritesheet effects-sheet
  9. {
  10. src: /assets/invader.tga;
  11. icon-invader: 179px 152px 51px 39px;
  12. }
  13. .box {
  14. color: black;
  15. font-size: 18dp;
  16. width: 280dp;
  17. height: 70dp;
  18. background: #fff;
  19. border: 2dp #777;
  20. margin: 10dp auto;
  21. padding: 15dp;
  22. border-radius: 30dp 8dp;
  23. box-sizing: border-box;
  24. margin-top: 100px;
  25. margin-bottom: 100px;
  26. transform: skewX(10deg);
  27. }
  28. .box img {
  29. float: left;
  30. margin-right: 8dp;
  31. }
  32. .boxshadow {
  33. box-shadow: #f008 40px 30px 0px 0px, #00f8 -40px -30px 0px 0px;
  34. }
  35. .dropshadow {
  36. filter: drop-shadow(#fe3f 30px 40px 0px);
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <div class="box boxshadow"><img sprite="icon-invader"/>Hello, do you feel the funk?</div>
  42. <div class="box dropshadow"><img sprite="icon-invader"/>Hello, do you feel the funk?</div>
  43. <div class="box boxshadow dropshadow"><img sprite="icon-invader"/>Hello, do you feel the funk?</div>
  44. <handle size_target="#document"/>
  45. </body>
  46. </rml>