Modify box-shadow definition to allow a single argument version.

This way we can do `:box-shadow` none to reset shadow, defined in
previos stylesheets.
This commit is contained in:
Alexander Artemenko 2021-09-02 11:30:54 +03:00 committed by Nicolas Hafner
parent 0fcd24963f
commit a7a4452f6a
1 changed files with 3 additions and 3 deletions

View File

@ -271,7 +271,7 @@ is used as a fallback."
(:default (property)
(make-property property (format NIL "~{~a~^ ~}" (mapcar #'resolve args)))))
(define-browser-property box-shadow (inset x y &optional blur spread color)
(define-browser-property box-shadow (color &optional x y blur spread inset)
(:default (property)
(make-property property (format NIL "~a ~a ~a~@[ ~a~]~@[ ~a~]~@[ ~a~]"
(resolve inset) (resolve x) (resolve y) (resolve blur) (resolve spread) (resolve color)))))
(make-property property (format NIL "~a~@[ ~a~]~@[ ~a~]~@[ ~a~]~@[ ~a~]~@[ ~a~]"
(resolve color) (resolve x) (resolve y) (resolve blur) (resolve spread) (resolve inset)))))