style: Use precomputation for the -servo-details-content pseudo-element

This commit is contained in:
Emilio Cobos Álvarez 2016-04-23 01:58:51 +02:00
parent b6402a81d0
commit 3563ecb770
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 42 additions and 32 deletions

View file

@ -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.