forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(text): Clarify and clean up text Cue contract
Changes: - Update comments on shaka.extern.Cue to clarify how fields should be used and interpreted - Add support for arbitrarily-deep nested cues in both text displayers - Stop adding whitespace between nested cues (parsers should emit exactly what they want displayed) and update tests to match - Remove obscure special cases from UITextDisplayer styles and make styling consistent with the Cue docs - Fix rendering for single line break (cue.spacer) elements - Add a layout test for deeply-nested cues - Remove reundant and identical set of UITextDisplayer unit tests - Update layout test for backgrounds to reflect the clarified rules - Update remaining UITextDisplayer unit tests to look for div instead of span for top-level cues - Updates screenshots for region-position, which changed slightly in appearance due to changes in whitespace rules - Updates screenshots for nested-cue-bg, to reflect simplified rules for applying backgrounds TODO: - Temporarily breaks TTML output until the TTML parser can be updated to conform to the clarified rules in the Cue docs - Still more special cases around regions in UITextDisplayer - Rendering for multiple line break elements in UITextDisplayer - Support bold, italic, and underline in SimpleTextDisplayer - None of the displayers will honor the wrapLine field yet Closes shaka-project#2762 (extra vertical space seen for line breaks) Issue shaka-project#2761 (deeply-nested cues) Change-Id: I02ac8213e4de67a65fb38d596d2c59536f3722ee
- Loading branch information
1 parent
b5df494
commit 565bb7d
Showing
41 changed files
with
225 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.