Нема описа

rtl.html 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html> <title>Basic Visual Test</title>
  2. <style>
  3. @import '/reset.css';
  4. html {
  5. direction: rtl;
  6. }
  7. #scroll {
  8. position: relative;
  9. overflow: scroll;
  10. width: 500px;
  11. height: 300px;
  12. background-color: grey;
  13. border: 10px solid;
  14. }
  15. #scroll::before {
  16. content: 'before';
  17. display: block;
  18. height: 300px;
  19. width: 1px;
  20. }
  21. #scroll::after {
  22. content: 'after';
  23. display: block;
  24. height: 300px;
  25. width: 1px;
  26. }
  27. #reference {
  28. width: 200px;
  29. height: 200px;
  30. background-color: red;
  31. box-shadow: inset 0 0 0 1px black;
  32. }
  33. #popper {
  34. width: 100px;
  35. height: 100px;
  36. background-color: rebeccapurple;
  37. box-shadow: inset 0 0 0 1px black;
  38. }
  39. </style>
  40. <div id="scroll">
  41. <div id="reference">Reference Box</div>
  42. <div id="popper">Popper Box</div>
  43. </div>
  44. <script type="module">
  45. import { createPopper } from '../dist/popper.js';
  46. const reference = document.querySelector('#reference');
  47. const popper = document.querySelector('#popper');
  48. window.instance = createPopper(reference, popper, {
  49. placement: 'left',
  50. });
  51. </script>