Add prop_width function and tests.