WebKitNix / webkitnix

A WebKit2 port based on POSIX and OpenGL/ES
http://nix.openbossa.org
66 stars 24 forks source link

CSS transform break hidden overflow on border-radius #35

Open renatahodovan opened 11 years ago

renatahodovan commented 11 years ago

If we are applying a CSS transform on an element inside a div with overflow:hidden and a border-radius, its children will not be masked anymore. The problem is only appear on NIX, WebKit trunk (tested on EFL build) works fine.

Test case:

<style>

.outer {
    border: 4px solid #000;
    width: 100px;
    height: 100px;
    border-radius: 40px;
    overflow: hidden;
}

.inner {
    width: 80px;
    height: 80px;
    background-color: #aaf;
    padding: .5em;
}

.rotate3d {
    -webkit-transform: rotateY(0deg);
}

</style>

<div class = "outer">
    <div class = "inner">no transform</div>
</div>

<br>

<div class = "outer">
    <div class = "inner rotate3d">rotateY(0)</div>
</div>

Bug reports related to this issue from bugzilla and chromium issue tracker: