Stricter undefined test
Handle rule and element combinations and fix property inheritance