added CssMatrix to avoid floating point failures