---
title: shadowOffsetY
framework: webkitjs
role: symbol
role_heading: Instance Property
path: webkitjs/canvasrenderingcontext2d/1633455-shadowoffsety
---

# shadowOffsetY

A floating-point number that controls the vertical offset of shadows from the elements casting the shadows.

## Declaration

```data
attribute unrestricted float shadowOffsetY;
```

## Discussion

Discussion Shadows are cast shadowOffsetY pixels down, regardless of the canvas rotation, scale, or transformation. If shadowOffsetY is negative, shadows are cast up. Shadows are cast if shadowOffsetY is nonzero and the alpha value of shadowColor is nonzero.

## See Also

### Working with Shadows

- [clearShadow](webkitjs/canvasrenderingcontext2d/1634057-clearshadow.md)
- [shadowBlur](webkitjs/canvasrenderingcontext2d/1632236-shadowblur.md)
- [shadowColor](webkitjs/canvasrenderingcontext2d/1629275-shadowcolor.md)
- [shadowOffsetX](webkitjs/canvasrenderingcontext2d/1632399-shadowoffsetx.md)
