Path: blob/main/files/en-us/web/css/-moz-outline-radius/index.md
6565 views
------{{CSSRef}}{{deprecated_header}}{{Non-standard_header}}
In Mozilla applications like Firefox, the -moz-outline-radius CSS shorthand property can be used to give an element's {{cssxref("outline")}} rounded corners.
Constituent properties
This property is a shorthand for the following CSS properties:
Syntax
Values
Note: Elliptical outlines and
<percentage>values follow the syntax described in {{cssxref("border-radius")}}.
One, two, three or four <outline-radius> values, represents one of:
{{cssxref("<length>")}}
: See {{cssxref("<length>")}} for possible values.
{{cssxref("<percentage>")}}
: A {{cssxref("<percentage>")}}; see {{cssxref("border-radius")}} for details.
If a single value is set, it applies to all 4 corners.
If two values are set, the first one applies to the top-left and bottom-right corners and the second one to the top-right and bottom-left corners.
If three values are set, the first one applies to the top-Left corner, the second one to the top-right and bottom-left corners and the third one to the bottom-right corner.
If four values are set, the first one applies to the top-left corner, the second one to the top-right corner, the third one to the bottom-right corner and the fourth one to the bottom-left corner.
Formal definition
{{CSSInfo}}
Formal syntax
Examples
Rounding an outline
Note: This example will not display the desired effect if you are viewing this in a browser other than Firefox.
HTML
CSS
Result
{{EmbedLiveSample('Rounding_an_outline')}}
Notes
dottedordashedradiused corners were rendered as solid until Firefox 50, Firefox bug 382721Future versions of Gecko/Firefox may drop this property completely. See Firefox bug 593717.
Specifications
Not part of any standard.
Browser compatibility
{{Compat}}
See also
Related CSS properties: