Skip to content

Instantly share code, notes, and snippets.

@mirisuzanne
Created July 20, 2009 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mirisuzanne/150096 to your computer and use it in GitHub Desktop.
Save mirisuzanne/150096 to your computer and use it in GitHub Desktop.
=border-corner-radius(!vert, !horz, !r)
/* Mozilla (FireFox)
-moz-border-radius-#{!vert}#{!horz}= !r
/* Webkit (Safari, Chrome)
-webkit-border-#{!vert}-#{!horz}-radius= !r
/* CSS3
border-#{!vert}-#{!horz}-radius= !r
=border-top-left-radius(!r)
+border-corner-radius("top", "left", !r)
=border-top-right-radius(!r)
+border-corner-radius("top", "right", !r)
=border-bottom-right-radius(!r)
+border-corner-radius("bottom", "right", !r)
=border-bottom-left-radius(!r)
+border-corner-radius("bottom", "left", !r)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment