Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement legacy text alignment #698

Merged
merged 4 commits into from
Jul 29, 2024

Conversation

nicoburns
Copy link
Collaborator

Objective

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.

Context

This behaviour is actually being standardised even though it's a bit of a hack w3c/csswg-drafts#10388

@nicoburns nicoburns added enhancement New feature or request breaking-change A change that breaks our public interface labels Jul 28, 2024
@nicoburns nicoburns force-pushed the legacy-text-align branch 5 times, most recently from e0f044b to 4daf68e Compare July 29, 2024 00:18
@nicoburns nicoburns merged commit 42f75c6 into DioxusLabs:main Jul 29, 2024
19 checks passed
@nicoburns nicoburns deleted the legacy-text-align branch July 29, 2024 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change A change that breaks our public interface enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant