<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - <summary> does not respect display: flex"
href="https://bugs.webkit.org/show_bug.cgi?id=167111">167111</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td><summary> does not respect display: flex
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>Safari 10
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>Layout and Rendering
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>richardwa@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>bfulgham@webkit.org, simon.fraser@apple.com, zalan@apple.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=299020" name="attach_299020" title="Screenshot of the issue">attachment 299020</a> <a href="attachment.cgi?id=299020&action=edit" title="Screenshot of the issue">[details]</a></span>
Screenshot of the issue
Applying display: flex; to a <summary> element doesn't render the children as flex items.
Instead they appear to render as if the <summary> element was display: block, the current default at time of writing.
HTML for reproduction:
<!DOCTYPE html>
<html>
<head>
<title>&lt;summary&gt; flex demo</title>
<style>
details {
background: #eee;
}
summary {
background: #dee;
}
h3 {
background: #ede;
}
.foo {
background: #eed;
}
</style>
</head>
<body>
<h2>No flex styles</h2>
<details>
<summary>
<h3>Hello</h3>
<div class="foo">There</div>
</summary>
<div>Woah!</div>
</details>
<h2>&lt;summary&gt; as display: block;</h2>
<details>
<summary style="display: block;">
<h3>Hello</h3>
<div class="foo">There</div>
</summary>
<div>Woah!</div>
</details>
<h2>&lt;summary&gt; as display: flex;</h2>
<details>
<summary style="display: flex;">
<h3 style="flex: 1 1 auto;">Hello</h3>
<div class="foo" style="flex: 0 0 auto;">There</div>
</summary>
<div>Woah!</div>
</details>
<h2>&lt;div&gt; inside &lt;summary&gt; as display: flex;</h2>
<details>
<summary>
<div style="display: flex;">
<h3 style="flex: 1 1 auto;">Hello</h3>
<div class="foo" style="flex: 0 0 auto;">There</div>
</div>
</summary>
<div>Woah!</div>
</details>
</body>
</html></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>