Closed julesbou closed 9 years ago
Yes! Last night I created a new border-radius branch to try and solve this issue. It's not totally straightforward - if the elements are the same shape, it works...
...but if they're a different shape, the transform stretches the corners so they don't overlap:
(It's subtle, but you can probably see what I'm talking about - the corners don't quite line up.) So we'll have to compensate for the transform when setting the border-radius (I didn't realise this until just now, but you can use two radii for each corner, which is exactly what we need to compensate for the 'stretch', which is great news because it means that this is in fact possible.)
Hopefully I'll get a chance to work on this soon.
Anyway, to your example: is the original border radius preserved, at least? It looks as though it isn't, but when I do the same thing locally I can see the blue circle beneath the translucent green square. Which is odd...
Right, I think I've got this sussed:
You can also see it in action on the ramjet homepage (iOS grid example at the bottom). Released in 0.4.5
works like a charm :)
When manually editing CSS styles on example page, border-radius property is not morphed
screenshot