Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser Error ::-webkit-input-placeholder #25

Open
thomas-rager opened this issue Jan 2, 2014 · 0 comments
Open

Parser Error ::-webkit-input-placeholder #25

thomas-rager opened this issue Jan 2, 2014 · 0 comments

Comments

@thomas-rager
Copy link

Hi,

I have found an error in the parser.
If I try to compile (styl -w < test.styl > test.css)

test.styl

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder
    color: #AFB2B4

I get this error:

/usr/lib64/node_modules/styl/node_modules/css-whitespace/lib/parser.js:95
        prop[2] += ' ' + tok[1].join(', ');
                                ^
TypeError: Object color has no method 'join'
    at prop (/usr/lib64/node_modules/styl/node_modules/css-whitespace/lib/parser.js:95:33)
    at stmt (/usr/lib64/node_modules/styl/node_modules/css-whitespace/lib/parser.js:80:28)
    at stmts (/usr/lib64/node_modules/styl/node_modules/css-whitespace/lib/parser.js:57:35)
    at module.exports (/usr/lib64/node_modules/styl/node_modules/css-whitespace/lib/parser.js:24:10)
    at module.exports (/usr/lib64/node_modules/styl/node_modules/css-whitespace/index.js:20:18)
    at new Style (/usr/lib64/node_modules/styl/index.js:33:33)
    at /usr/lib64/node_modules/styl/bin/styl:33:15
    at ReadStream.<anonymous> (/usr/lib64/node_modules/styl/node_modules/stdin/index.js:7:5)
    at ReadStream.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16

If I use a class instead (.input-foo::-webkit-input-placeholder) or complete global it works...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant