Add style to abstractBlock, with tests.