`-webkit-box-reflect` CSS property
Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
The -webkit-box-reflect CSS property lets you reflect the content of an element in one specific direction.
Syntax
/* Direction values */ -webkit-box-reflect: above; -webkit-box-reflect: below; -webkit-box-reflect: left; -webkit-box-reflect: right; /* Offset value */ -webkit-box-reflect: below 10px; /* Mask value */ -webkit-box-reflect: below 0 linear-gradient(transparent, white); /* Global values */ -webkit-box-reflect: inherit; -webkit-box-reflect: initial; -webkit-box-reflect: revert; -webkit-box-reflect: revert-layer; -webkit-box-reflect: unset;
Values
This property is specified as a space-separated list of the following values:
-
above,below,right,left - Are keywords indicating in which direction the reflection is to happen.
-
<length> - Indicates the size of the reflection.
-
<image> - Describes the mask to be applied to the reflection.
Formal definition
| Initial value | none |
|---|---|
| Applies to | all elements |
| Inherited | no |
| Computed value | as specified |
| Animation type | discrete |
Formal syntax
-webkit-box-reflect = [ above | below | right | left ]? <length>? <image>?
Specifications
Not part of any standard. The standard way to do reflection in CSS is to use the CSS element() function.
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on iOS | Samsung Internet | WebView Android | WebView on iOS | |
-webkit-box-reflect |
4 |
79 |
No |
15 |
4 |
18 |
No |
14 |
3.2 |
1.0 |
2.2 |
3.2 |
See also
- The Apple documentation.
- The WebKit specification.
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/-webkit-box-reflect