Don't try to apply lineAlign before CSS has been applied

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26056
Shouldn't these 2 lines ("If the direction is horizontal") disappear as well?