added initial pattern for computing stylesheet rules for a given dom element