float-left-and-float-open-details.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <!-- Any copyright is dedicated to the Public Domain.
  3. - http://creativecommons.org/publicdomain/zero/1.0/ -->
  4. <html>
  5. <style>
  6. body {
  7. width: 400px;
  8. }
  9. div#float {
  10. float: left;
  11. width: 200px;
  12. height: 200px;
  13. background-color: lightgreen;
  14. }
  15. details {
  16. float: left;
  17. background-color: orange;
  18. }
  19. summary {
  20. background-color: green;
  21. /* Hide the triangle for comparing with div in reftest. */
  22. list-style-type: none;
  23. }
  24. </style>
  25. <body>
  26. <!-- This tall float block is necessary to reproduce the incorrect height of the details. -->
  27. <div id="float"></div>
  28. <details open>
  29. <summary>Summary</summary>
  30. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
  31. tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
  32. veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
  33. commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
  34. velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
  35. cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
  36. est laborum.
  37. </details>
  38. </body>
  39. </html>