4 Turns out that the antialiasing on the outer edge of a block with
5 border-radius is not consistent if the width and border-width are changed
6 even if the resulting shape should look the same. So clip out the part
7 that's too far from the center
14 /* We want the following constraints to be satisfied:
15 1) Entire inner div content area is contained inside the
100px square.
16 2) Entire
100px square is contained inside the outer circle of the inner
19 This requires that the inner div width/height be <
100px and that the
20 radius of the outer circle be at least
50 * sqrt(
2). Let's go with a
75px
21 radius for that outer circle. We then need to shift our inner div up and
22 to the left by
25px to center it in the clipping region.
28 border:
50px solid black;
36 <div class=
"outer"><div class=
"inner"></div></div>