This change applies to Block layout. It is used to implement the "legacy" alignment behaviour of the <center> element and the align attribute (e.g. <div align="right">). Regular values of text-align do not affect block layout (only inline layout), but special prefixed values like -webkit-center, -moz-center, etc do. I have named these as LegacyCenter, etc in this PR.
Objective
This change applies to Block layout. It is used to implement the "legacy" alignment behaviour of the
<center>
element and thealign
attribute (e.g.<div align="right">
). Regular values oftext-align
do not affect block layout (only inline layout), but special prefixed values like-webkit-center
,-moz-center
, etc do. I have named these asLegacyCenter
, etc in this PR.Context
This behaviour is actually being standardised even though it's a bit of a hack https://github.com/w3c/csswg-drafts/issues/10388