Note that there are some explanatory texts on larger screens.

plurals
  1. POWebkit border radius combined with css3 translate3D bleeding
    primarykey
    data
    text
    <p>I'm struggling with a problem on Webkit based browsers where if I add a border radius to a div and then apply -moz-translate3d to a ul inside (this is because on the original example I'm using flexslider slideshow), the border radius does not apply and bleeds through the container.</p> <p>To clearly understand what I'm talking about here's a fiddle example about the problem. If I remove the translate3d property, the border radius is applied.</p> <p>HTML:</p> <pre><code>&lt;div class="wrapper"&gt; &lt;ul&gt; &lt;li&gt; &lt;div class="caption"&gt;&lt;p&gt;Test&lt;/p&gt;&lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;div class="caption"&gt;&lt;p&gt;Test&lt;/p&gt;&lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;div class="caption"&gt;&lt;p&gt;Test&lt;/p&gt;&lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;div class="caption"&gt;&lt;p&gt;Test&lt;/p&gt;&lt;/div&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>CSS:</p> <pre><code>.wrapper { border-radius: 20px; position: relative; width: 500px; height: 200px; overflow: hidden; } .caption { position: absolute; bottom: 0; left: 0; background-color: rgba(0,0,0,0.8); padding: 2rem; -webkit-box-sizing: border-box; width: 100%; height: 3rem; color: #fff; } ul { width: 800%; -webkit-transform: translate3d(-500px, 0, 0); } li { float: left; width: 500px; height: 200px; background-color: #000; position: relative; } .caption p { color: #fff; } </code></pre> <p><a href="http://jsfiddle.net/R5L3K/12/">http://jsfiddle.net/R5L3K/12/</a></p> <p>Tested it both on Chrome latest version on Mac and Windows.</p> <p>Thanks in advance!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    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