0

I can't scroll to the bottom of an absolutely positioned element inside an inline element in Chrome as soon as I add some div over it. It works fine in Firefox...

Here a minimalist code reproducing the problem:

<div>When you</div>
<div>remove</div>
<div>these divs</div>
<div>it works</div>
<div>fine in Chrome</div>
<div style="display:inline;position:relative;background:green;">
    <div style="position:absolute;background:red;">111
      <br>222
      <br>333
      <br>444
      <br>555
      <br>666
      <br>777
      <br>888
  </div>
</div>

Here is the Fiddle:

https://jsfiddle.net/p973qaty/9/

Pierre
  • 270
  • 2
  • 11

1 Answers1

1

It is very interesting... I found in w3.org specification that overflow applies to block containers, flex containers and grid containers, but in developer.mozilla.org is written that it applies to block-level elements and inline-block elements. And in the example that we have in Firefox it applies in inline elements also and in tests we can see that in Chrome it applies in inline-block elements.
Links to specs w3.org and developer.mozilla.org

Babken
  • 108
  • 8