-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set border-radius
#65
Comments
border-radius + cover seems to be working: http://jsbin.com/zizafe/1/edit?html,output |
I can't find a way to reproduce it. I could share a link to my site and show that, but that won't suffice. I guess I've got something wrong, but I can't find it. There is no I guess I have to get back to the /deep/ and force the border-radius on the |
I'm using Chrome version 50.0.2644.0 canary (64-bit) |
I experienced the issue on Chrome 49.0.2623.39 beta (64-bit) using iron-image v1.2.2. FWIW, I experienced the issue in this webcomponent after upgrading my dependencies. Applied CSS is position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0; The demo of Home Assistant shows the older version of iron-image being used with the |
I have the same issue inside of Cordova 6 + Crosswalk 16. Literally just did 'bower update' and the radius is broken. |
Any updates here? |
Hey, @bwh-rl, since you were able to repro and send a PR, do you have any extra info you could provide on your environment? I'm still having trouble with this. :/ |
This is strange - I am not able to reproduce this myself. In our app the issue occurs. But in an test case i am not able to reproduce it. Going to do more tests. What i know now is that it's somehow connected to the Maybe some minor webkit bug that only occurs under special circumstances? edit: Issue does not occur in Firefox. |
Figured out that the issue occurs if an iron-list is present, it looks like the
|
@bwh-rl, thanks for whittling this down! Your snippet repro's for me. |
Weird, this definitely feels like a Blink bug: in that demo, if you move the transform property from inline to a rule in the stylesheet, iron-image's default |
Any news on that? |
Yeah, this is a Blink issue. Here's a Polymer-less repro (visible in Chrome 49.0.2623.87 and 51.0.2682.0 canary). I'm going to try and reduce it more and then file a bug. |
Here we go: <html>
<head>
<style>
.overflow-hidden {
overflow: hidden;
position: relative;
width: 200px;
height: 200px;
border-radius: 50%;
}
.background-red {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: red;
}
</style>
</head>
<body>
<div style="transform: translate3d(50px, 0px, 0px);">
This text has a CSS transform in an inline style.
</div>
<div class="overflow-hidden">
<div class="background-red"></div>
</div>
</body>
</html> Toggle the inline transform in the inspector to see the bug. |
Oh, this is a known bug: https://crbug.com/449107 |
any news to this issue? I'm struggling to modify id=sizedImgDiv |
I found out the solution. |
@pimenteljchristopher and anyone else who comes here wondering about this, I can't see a consistent away to around this that isn't super hacky, so if this is a major problem for you please star the Chromium bug I've linked to. I think they use the star count as a rough metric for how many people are running into an issue in the wild. |
Hello,
At the moment I've got my code such that an image is shown, however since the sizing is set, the border radius does not apply to the image. Is there any solution to this?
The text was updated successfully, but these errors were encountered: