form-in-tables-xhtml.xhtml (956B)
1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <title>UA style for form in table elements - XHTML</title> 4 <link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#tables-2" /> 5 <link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org" /> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 </head> 9 <body> 10 <table><form></form></table> 11 <table><thead><form></form></thead></table> 12 <table><tbody><form></form></tbody></table> 13 <table><tfoot><form></form></tfoot></table> 14 <table><tr><form></form></tr></table> 15 <script> 16 for (const form of document.querySelectorAll("form")) { 17 test(function() { 18 assert_equals(getComputedStyle(form).display, "block"); 19 }, `Computed display of form inside ${form.parentNode.nodeName} in xhtml should be 'block'`); 20 } 21 </script> 22 </body> 23 </html>