Skip to content

Commit 5c9ab46

Browse files
committed
Support negative values in box-shadow string parsing
1 parent f9f49cb commit 5c9ab46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addon/box-shadow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Tween } from '.';
33
import linear from './easings/linear';
44
import './element-remove';
55

6-
const innerPattern = /^ (\d+)px (\d+)px(?: (\d+)px)?(?: (\d+)px)?( inset)?(?:, )?/;
6+
const innerPattern = /^ (-?\d+)px (-?\d+)px(?: (\d+)px)?(?: (-?\d+)px)?( inset)?(?:, )?/;
77

88
export class BoxShadow {
99
static fromComputedStyle(string: string) {

0 commit comments

Comments
 (0)