pull/9/head
Matthew Butterick 11 years ago
parent ac0db8e13c
commit 7ef914be06

@ -12,7 +12,7 @@
(define/contract (cssqish? x) (define/contract (cssqish? x)
(any/c . -> . boolean?) (any/c . -> . boolean?)
(->boolean (or (cssq? x) (cssqish->cssq x)))) (->boolean (or (cssq? x) (string? x))))
(define/contract (string->unit x) (define/contract (string->unit x)
(string? . -> . css-unit?) (string? . -> . css-unit?)
@ -20,7 +20,8 @@
x x
(error 'string->unit "'~a' not a valid css unit" x))) (error 'string->unit "'~a' not a valid css unit" x)))
(define (cssqish->cssq x) (define/contract (cssqish->cssq x)
(cssqish? . -> . cssq?)
(cond (cond
[(cssq? x) x] [(cssq? x) x]
[else (begin [else (begin

Loading…
Cancel
Save