-document stylesheet mutex added
-layout selection algoritm reworked