fieldset-multicol-only-column-width.html (787B)
1 <!DOCTYPE html> 2 <title>fieldset multicol with auto count, non-auto width</title> 3 <link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-fieldset-and-legend-elements"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <style> 7 #test { margin: 0; padding: 0; border: none } 8 #test, #ref { width:500px; column-width:100px; } 9 p { margin: 0 } 10 </style> 11 <fieldset id="test"> 12 <p>1</p> 13 <p>2</p> 14 <p>3</p> 15 <p>4</p> 16 <p>5</p> 17 </fieldset> 18 <div id="ref"> 19 <p>1</p> 20 <p>2</p> 21 <p>3</p> 22 <p>4</p> 23 <p>5</p> 24 </div> 25 <script> 26 test(() => { 27 assert_equals(getComputedStyle(document.getElementById('test')).height, 28 getComputedStyle(document.getElementById('ref')).height); 29 }); 30 </script>