mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Get the fundamentals of the HTMLDetailsElement rendering stuff working.
Still need to implement the style invalidation. Part of #9395
This commit is contained in:
parent
e551ea7322
commit
9d9c5398a8
13 changed files with 294 additions and 27 deletions
|
@ -37,3 +37,24 @@ textarea {
|
|||
-servo-overflow-clip-box: content-box;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/rendering.html#the-details-and-summary-elements
|
||||
details {
|
||||
display: block;
|
||||
}
|
||||
details::-servo-details-summary {
|
||||
margin-left: 40px;
|
||||
display: list-item;
|
||||
list-style: disclosure-closed;
|
||||
}
|
||||
details[open]::-servo-details-summary {
|
||||
list-style: disclosure-open;
|
||||
}
|
||||
details::-servo-details-content {
|
||||
margin-left: 40px;
|
||||
overflow: hidden;
|
||||
display: none;
|
||||
}
|
||||
details[open]::-servo-details-content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue