I'm using polymer-shadow styles to use flex divs. I've follow these answers on How to overlay div. But, as soon as I set a 'flexed' div with absolute position, everything is chaos.
I did a plunkr where you can reproduce it.
My code looks like:
<div class="layout horizontal">
<div class="flex" style="background-color:red"></div>
<div class="flex-5">
<div class="flexContainer">
<!--Following two divs should be overlayed-->
<div style="background-color:papayawhip">---------------</div>
<div class="content">Data</div>
</div>
</div>
</div>
If I use position relative/absolute out of shadow-dom flex classes, it works properly:
<div>
<div style="background-color:papayawhip; position:absolute">---------------</div>
<div class="content" style="position:absolute">Data</div>
</div>
So, how can I overlay one div above another, when both are inside a flex container?