I'm not very comfortable with this `substr` ... not sure if it's possible, but at some point we may be adding some characters outside that range and not be aware of it. If the problem is that the css file we're using to test is too long, I'd suggest creating a different one for this, and adjust it so we can compare the full line.

Also, it should be `getLine(startSel.line)`.