Keine Beschreibung

rtl-body.html 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html> <title>Basic Visual Test</title>
  2. <!-- Test on Firefox with layout.scrollbar.side = 3 -->
  3. <style>
  4. @import '/reset.css';
  5. html {
  6. /* specifying width breaks it (Popper 1 too) */
  7. /* width: 5000px; */
  8. height: 2000px;
  9. }
  10. #body-width {
  11. width: 2000px;
  12. height: 2000px;
  13. }
  14. body {
  15. overflow: scroll;
  16. direction: rtl;
  17. }
  18. #reference {
  19. position: absolute;
  20. top: 150px;
  21. left: 150px;
  22. width: 200px;
  23. height: 200px;
  24. background-color: red;
  25. box-shadow: inset 0 0 0 1px black;
  26. }
  27. #popper {
  28. width: 300px;
  29. height: 100px;
  30. background-color: rebeccapurple;
  31. box-shadow: inset 0 0 0 1px black;
  32. }
  33. </style>
  34. <div id="reference">Reference Box</div>
  35. <div id="popper">Popper Box</div>
  36. <div id="body-width"></div>
  37. <script type="module">
  38. import { createPopper } from './dist/popper.js';
  39. const reference = document.querySelector('#reference');
  40. const popper = document.querySelector('#popper');
  41. window.instance = createPopper(reference, popper, {
  42. placement: 'left',
  43. });
  44. </script>