mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
style: Use precomputation for the -servo-details-content pseudo-element
This commit is contained in:
parent
b6402a81d0
commit
3563ecb770
4 changed files with 42 additions and 32 deletions
|
@ -51,15 +51,11 @@ details::-servo-details-summary {
|
|||
details[open]::-servo-details-summary {
|
||||
list-style: disclosure-open;
|
||||
}
|
||||
details::-servo-details-content {
|
||||
*|*::-servo-details-content {
|
||||
margin-left: 40px;
|
||||
overflow: hidden;
|
||||
display: none;
|
||||
}
|
||||
details[open]::-servo-details-content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*
|
||||
* Until servo supports svg properly, make sure to at least prevent svg
|
||||
* children from being layed out and rendered like usual html.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue