Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h1>Nest <code>&lt;br&gt;</code> as the child of a <code>&lt;p&gt;</code></h1> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>::selection { background: chartreuse; } div { padding: .3em; } div + div { border-top: 1px solid lightgray; } p { margin: 0; } code:before { content: "&lt;"; } code:after { content: "&gt;"; }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt; &lt;p&gt;Layout is fine&lt;/p&gt; &lt;br&gt; &lt;p&gt;but selection &lt;del&gt;isn't&lt;/del&gt; &lt;ins&gt;wasn't (fixed in Chrome as of v 59.0.3071.115 or earlier)&lt;/ins&gt;&lt;/p&gt; &lt;/div&gt; &lt;div&gt; &lt;p&gt;One &lt;code&gt;br&lt;/code&gt; in it's own &lt;code&gt;p&lt;/code&gt; between this &lt;code&gt;p&lt;/code&gt; &lt;/p&gt; &lt;p&gt;&lt;br&gt;&lt;/p&gt; &lt;p&gt;and this one&lt;/p&gt; &lt;/div&gt; &lt;div&gt; &lt;p&gt;Two &lt;code&gt;br&lt;/code&gt;s nested in the end of this &lt;code&gt;p&lt;/code&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt; &lt;p&gt;No &lt;code&gt;br&lt;/code&gt;s in this &lt;code&gt;p&lt;/code&gt;, and nothing between the &lt;code&gt;p&lt;/code&gt;&lt;/p&gt; &lt;/div&gt; &lt;div&gt; &lt;p&gt;No &lt;code&gt;br&lt;/code&gt;s in this &lt;code&gt;p&lt;/code&gt;, and nothing between the &lt;code&gt;p&lt;/code&gt;s&lt;/p&gt; &lt;p&gt;&lt;br&gt;One &lt;code&gt;br&lt;/code&gt;s nested in the start of this &lt;code&gt;p&lt;/code&gt;&lt;/p&gt; &lt;/div&gt;</code></pre> </div> </div> </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload