Create Reusable CSS with Mixins5

Tell us what’s happening:
-webkit-border-radius: $radius; Passes the test
-webkit-border-radius : $radius; Fails the test
The difference is a space after -webkit-border-radius

1 Like

Do you have a question?

Why is it failing with a space after -webkit-border-radius

Because the test is matching against a string without a space.

assert(code.match(/-webkit-border-radius:\s*?\$radius;/gi)

Which is also propper syntax. I don’t see why you would want a space there.