Skip to content

Fix bug in TTML inherited text alignment#8877

Merged
marcbaechinger merged 1 commit intogoogle:dev-v2from
dlafayet:textAlign
Apr 30, 2021
Merged

Fix bug in TTML inherited text alignment#8877
marcbaechinger merged 1 commit intogoogle:dev-v2from
dlafayet:textAlign

Conversation

@dlafayet
Copy link
Contributor

Fix bug where child does not correctly inherit ancestor's text
alignment setting.

Make it so that alignment is only applied on a P node.
https://www.w3.org/TR/2018/REC-ttml2-20181108/#style-attribute-textAlign

@icbaker

Fix bug where child does not correctly inherit ancestor's text
alignment setting.

Make it so that alignment is only applied on a P node.
https://www.w3.org/TR/2018/REC-ttml2-20181108/#style-attribute-textAlign
@dlafayet
Copy link
Contributor Author

Before fix: (Vertical text is expected to be start-aligned)
vertical-alignment-bug

After fix:
vertical_alignment_fix

@icbaker icbaker self-assigned this Apr 28, 2021
marcbaechinger pushed a commit that referenced this pull request Apr 30, 2021
Imported from GitHub PR #8858

Fix bug in text alignment inheritance where child does not correctly inherit ancestor's setting

@icbaker
Merge 70eb4bc into 45616f9

COPYBARA_INTEGRATE_REVIEW=#8877 from dlafayet:multirowalign-cue d942b50
PiperOrigin-RevId: 371306966
@marcbaechinger marcbaechinger merged commit 9949290 into google:dev-v2 Apr 30, 2021
marcbaechinger added a commit that referenced this pull request May 4, 2021
PiperOrigin-RevId: 371306900
marcbaechinger pushed a commit that referenced this pull request May 4, 2021
Imported from GitHub PR #8858

Fix bug in text alignment inheritance where child does not correctly inherit ancestor's setting

@icbaker
Merge 70eb4bc into 45616f9

COPYBARA_INTEGRATE_REVIEW=#8877 from dlafayet:multirowalign-cue d942b50
PiperOrigin-RevId: 371306966
@google google locked and limited conversation to collaborators Jun 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants