dir-4.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html>
  3. <head><title>Test dir=rtl</title></head>
  4. <body style="background: white;">
  5. <!-- menclose notation=radical -->
  6. <div style="position: absolute;
  7. top: 5px; left: 5px; width: 100px; height: 100px;
  8. text-align: center; background: black;">
  9. <math dir="rtl">
  10. <mstyle mathcolor="yellow">
  11. <!-- left and right notation make the menclose symmetric -->
  12. <menclose notation="radical left right">
  13. <mspace width="20px" height="20px"/>
  14. </menclose>
  15. </mstyle>
  16. </math>
  17. </div>
  18. <div style="position: absolute;
  19. top: 5px; left: 5px; width: 100px; height: 100px;">
  20. <!-- hide the left part of the menclose. A 5px band is not covered, where
  21. the radical may be seen if it is wrongly placed on the left instead.
  22. -->
  23. <div style="position: absolute;
  24. width: 35px; height: 100px; background: red;"></div>
  25. <!-- hide the middle part of the menclose -->
  26. <div style="position: absolute; left: 40px;
  27. width: 20px; height: 100px; background: blue;"></div>
  28. <!-- hide the right part of the menclose -->
  29. <div style="position: absolute; left: 60px; width: 40px; height: 100px;
  30. background: green;"></div>
  31. </div>
  32. </body>
  33. </html>