Optimized style merge.
Fixed style test.
Better selection support: correct selection of whitespaces, selection out from visible area.