details.css (716B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 /* The slot:not([name]) don't match once ::details-content is enabled, and should be removed */ 6 slot:not([name]) { 7 display: block; 8 content-visibility: hidden; 9 } 10 :host([open]) slot:not([name]) { 11 display: revert; 12 content-visibility: visible; 13 } 14 15 /* See the comment around the summary styles in html.css, these rules should 16 * match */ 17 summary { 18 display: list-item; 19 counter-increment: list-item 0; 20 list-style: disclosure-closed inside; 21 } 22 :host([open]) summary { 23 list-style-type: disclosure-open; 24 }