feature detects for CSS ch, em and ex units

PR for #1206

I ripped off the code from the `cssremunit` test, but I made it slightly more efficient.