summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/the-details-element/details-display-property-is-ignored.html
blob: 445b4e483d00c8aabfa76a946d8cb0871e479c7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" title="David Grogan" href="dgrogan@chromium.org">
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-details-and-summary-elements">
<link rel="match" href="details-display-property-is-ignored-ref.html">
<link rel="bookmark" href="https://bugs.chromium.org/p/chromium/issues/detail?id=635282" />
<meta name="assert" content="The display property is ignored on details elements and is instead always rendered as a block box." />

From <a href="https://html.spec.whatwg.org/multipage/rendering.html#the-details-and-summary-elements">html.spec.whatwg.org</a>:

<blockquote>
The details element is expected to render as a block box. The element's shadow
tree is expected to take the element's first summary element child, if any, and
place it in a first block box container, and then take the element's remaining
descendants, if any, and place them in a second block box container.
</blockquote>

&lt;details display:flex> should be ignored. Otherwise details would render as
something other than a block box.
<hr>

<details open style="display:flex;">
  <summary>This is the summary.</summary>
  <div>thing 1</div>
  thing 2
</details>