Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. # Test that filtered content is clipped properly in a rotated context
  2. ---
  3. root:
  4. items:
  5. -
  6. bounds: [16, 16, 0, 0]
  7. "clip-rect": [16, 16, 0, 0]
  8. type: "reference-frame"
  9. transform: rotate(10)
  10. id: 7
  11. items:
  12. -
  13. bounds: [0, 0, 0, 0]
  14. "clip-rect": [0, 0, 0, 0]
  15. type: "stacking-context"
  16. items:
  17. -
  18. bounds: [0, 0, 324, 295]
  19. "clip-rect": [0, 0, 324, 295]
  20. type: clip
  21. id: 2
  22. # note it's important that we use clip-node here; clip-and-scroll in yaml
  23. # defaults to push/pop, but we want to specifically attach this clip-chain
  24. # to the stacking context and not the children (as gecko does in the bug)
  25. -
  26. bounds: [0, 0, 0, 0]
  27. "clip-rect": [0, 0, 0, 0]
  28. clip-node: 2
  29. type: "stacking-context"
  30. filters: ["contrast(1.1)"] # any blend-style filter will do
  31. items:
  32. -
  33. bounds: [-150, -150, 624, 624]
  34. "clip-rect": [-150, -150, 624, 624]
  35. type: rect
  36. color: blue
  37. -
  38. bounds: [0, 0, 324, 295]
  39. "clip-rect": [0, 0, 324, 295]
  40. type: rect
  41. color: red
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement