mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:07:46 +00:00
LibWeb: Create a shadow tree for details elements with manual slots
The spec requires that details elements be assigned a shadow tree with two slots. The first slot is assigned the first summary child element of the details element. The second slot is assigned all other children.
This commit is contained in:
parent
bdf2323b3f
commit
b1632c58bf
6 changed files with 166 additions and 0 deletions
4
Tests/LibWeb/Layout/input/details-closed.html
Normal file
4
Tests/LibWeb/Layout/input/details-closed.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<details>
|
||||
<summary>I'm a summary</summary>
|
||||
<span>I'm a node</span>
|
||||
</details>
|
4
Tests/LibWeb/Layout/input/details-open.html
Normal file
4
Tests/LibWeb/Layout/input/details-open.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<details open>
|
||||
<summary>I'm a summary</summary>
|
||||
<span>I'm a node</span>
|
||||
</details>
|
Loading…
Add table
Add a link
Reference in a new issue