LibWeb: Make details and summary elements display:block in the UA style

This is the expected behavior per the HTML spec. Fixes an issue where
styling these elements wouldn't have the expected effect unless you also
set the display property.
This commit is contained in:
Andreas Kling 2024-07-20 11:05:20 +02:00 committed by Andreas Kling
commit 3faff34bf6
Notes: github-actions[bot] 2024-07-20 11:10:24 +00:00
5 changed files with 61 additions and 36 deletions

View file

@ -801,10 +801,14 @@ input[type=image i][align=bottom i], object[align=bottom i] {
vertical-align: bottom;
}
/* 15.5.4 The details and summary elements
/* 15.5.5 The details and summary elements
* https://html.spec.whatwg.org/multipage/rendering.html#the-details-and-summary-elements
*/
details, summary {
display: block;
}
details > summary:first-of-type {
display: list-item;
counter-increment: list-item 0;