I'm trying to use the html details/summary element with a table inside. However, when using a table inside the summary element, the summary and the summary marker are not displayed in the same row anymore.
<!DOCTYPE html>
<html>
<body>
<h1>The summary element with a table</h1>
<h2>Default</h2>
Without setting the display style, the summary line is broken into 2 lines.
<p />
<details>
<summary>
<table><tbody><tr><td>Need</td><td>table</td><td>here</td></tr></tbody></table>
</summary>
<details>
<summary>
<table><tbody><tr><td>And</td><td>also</td><td>here</td></tr></tbody></table>
</summary>
Some explanation here.
</details>
</details>
<h2>Inline Block</h2>
Setting display=inline-block will remove the linebreak but also the symbol for the collapsible element.
<p />
<details>
<summary style="display: inline-block">
<table><tbody><tr><td>Need</td><td>table</td><td>here</td></tr></tbody></table>
</summary>
<details>
<summary style="display: inline-block">
<table><tbody><tr><td>And</td><td>also</td><td>here</td></tr></tbody></table>
</summary>
Some explanation here.
</details>
</details>
</body>
</html>
Is there a possibility to show the table in the same row as the summary marker and keep the summary marker working?