Skip to content

Commit

Permalink
Make <hr> have 'overflow: hidden' by default
Browse files Browse the repository at this point in the history
This causes the element to create a block formatting context, which
means it will avoid floats and grow to contain floats. This matches
EdgeHTML. WebKit/Chromium/Gecko avoid floats but do not create a
block formatting context, which is weird.

Fixes whatwg#2715.

Tests: web-platform-tests/wpt#6115
  • Loading branch information
zcorpan authored and Alice Boxhall committed Jan 7, 2019
1 parent b98bd67 commit 1ba5a79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -111574,6 +111574,7 @@ hr {
margin-inline-end: auto;
margin-block-end: 0.5em;
margin-inline-start: auto;
overflow: hidden;
}</pre>

<p>The following rules are also expected to apply, as <span>presentational hints</span>:</p>
Expand Down Expand Up @@ -121150,6 +121151,7 @@ INSERT INTERFACES HERE
Mohamed Zergaoui<!-- Innovimax SARL -->,
Mohammad Al Houssami,
Momdo Nakamura,
Morten Stenshorne,
Mounir Lamouri,
Ms2ger,
Nadia Heninger,
Expand Down

0 comments on commit 1ba5a79

Please sign in to comment.