Fix CSS context detection issue in the function type property values.

This fixes issue #6572 by simplifying the code that distinguishes between contexts for a property and a property value.