forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(text): Don't use flex layout in subtitles.
Using flex layout causes problems with the positioning of elements and causes the borders to be wrapped over the whole parent. This changes to use block/inline layouts instead. This also removes any padding around the cue lines, hugging the background around the text. This is a bit more consistent with other renderers by having a gap between lines. This also changes a bit of the nested cues padding. The deeply nested cue test is different because the `background-color` CSS attribute isn't inherited, so the default in our CSS sets the background to black. Fixes shaka-project#3013 Change-Id: I3e4b63b1b4de1f12e69fce2460d142e0a69bfcd9
- Loading branch information
1 parent
f23ee0a
commit 9c2315e
Showing
113 changed files
with
37 additions
and
50 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
Binary file modified
BIN
+70 Bytes
(100%)
test/test/assets/screenshots/chrome-Android/ui-basic-cue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+91 Bytes
(100%)
test/test/assets/screenshots/chrome-Android/ui-cue-with-controls.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+115 Bytes
(100%)
test/test/assets/screenshots/chrome-Android/ui-cue-with-newline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+164 Bytes
(100%)
test/test/assets/screenshots/chrome-Android/ui-deeply-nested-cues.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+70 Bytes
(100%)
test/test/assets/screenshots/chrome-Android/ui-duplicate-cues.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+137 Bytes
(100%)
test/test/assets/screenshots/chrome-Android/ui-end-time-edge-case.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+51 Bytes
(100%)
test/test/assets/screenshots/chrome-Android/ui-flat-cue-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+171 Bytes
(100%)
test/test/assets/screenshots/chrome-Android/ui-nested-cue-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+77 Bytes
(100%)
test/test/assets/screenshots/chrome-Android/ui-region-position.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+86 Bytes
(100%)
test/test/assets/screenshots/chrome-Android/ui-two-basic-cues.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+70 Bytes
(100%)
test/test/assets/screenshots/chrome-Android/ui-two-nested-cues.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-47 Bytes
(100%)
test/test/assets/screenshots/chrome-Linux/ui-cue-with-controls.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+48 Bytes
(100%)
test/test/assets/screenshots/chrome-Linux/ui-cue-with-newline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+370 Bytes
(110%)
test/test/assets/screenshots/chrome-Linux/ui-deeply-nested-cues.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8 Bytes
(100%)
test/test/assets/screenshots/chrome-Linux/ui-duplicate-cues.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8 Bytes
(100%)
test/test/assets/screenshots/chrome-Linux/ui-end-time-edge-case.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12 Bytes
(100%)
test/test/assets/screenshots/chrome-Linux/ui-flat-cue-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+109 Bytes
(100%)
test/test/assets/screenshots/chrome-Linux/ui-nested-cue-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+211 Bytes
(100%)
test/test/assets/screenshots/chrome-Linux/ui-region-position.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10 Bytes
(100%)
test/test/assets/screenshots/chrome-Linux/ui-two-basic-cues.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7 Bytes
(100%)
test/test/assets/screenshots/chrome-Linux/ui-two-nested-cues.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-15 Bytes
(100%)
test/test/assets/screenshots/chrome-Mac/ui-cue-with-controls.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+88 Bytes
(100%)
test/test/assets/screenshots/chrome-Mac/ui-cue-with-newline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-75 Bytes
(99%)
test/test/assets/screenshots/chrome-Mac/ui-deeply-nested-cues.png
Oops, something went wrong.
Binary file modified
BIN
+18 Bytes
(100%)
test/test/assets/screenshots/chrome-Mac/ui-duplicate-cues.png
Oops, something went wrong.
Binary file modified
BIN
+9 Bytes
(100%)
test/test/assets/screenshots/chrome-Mac/ui-end-time-edge-case.png
Oops, something went wrong.
Binary file modified
BIN
+16 Bytes
(100%)
test/test/assets/screenshots/chrome-Mac/ui-flat-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+110 Bytes
(100%)
test/test/assets/screenshots/chrome-Mac/ui-nested-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+311 Bytes
(100%)
test/test/assets/screenshots/chrome-Mac/ui-region-position.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
test/test/assets/screenshots/chrome-Mac/ui-two-basic-cues.png
Oops, something went wrong.
Binary file modified
BIN
+18 Bytes
(100%)
test/test/assets/screenshots/chrome-Mac/ui-two-nested-cues.png
Oops, something went wrong.
Binary file modified
BIN
+29 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-basic-cue.png
Oops, something went wrong.
Binary file modified
BIN
+502 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-cue-with-controls.png
Oops, something went wrong.
Binary file modified
BIN
+114 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-cue-with-newline.png
Oops, something went wrong.
Binary file modified
BIN
+87 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-deeply-nested-cues.png
Oops, something went wrong.
Binary file modified
BIN
+29 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-duplicate-cues.png
Oops, something went wrong.
Binary file modified
BIN
+18 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-end-time-edge-case.png
Oops, something went wrong.
Binary file modified
BIN
+54 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-flat-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+107 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-nested-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+483 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-region-position.png
Oops, something went wrong.
Binary file modified
BIN
-15 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-two-basic-cues.png
Oops, something went wrong.
Binary file modified
BIN
+29 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-two-nested-cues.png
Oops, something went wrong.
Binary file modified
BIN
+15 Bytes
(100%)
test/test/assets/screenshots/firefox-Linux/ui-basic-cue.png
Oops, something went wrong.
Binary file modified
BIN
-31 Bytes
(100%)
test/test/assets/screenshots/firefox-Linux/ui-cue-with-controls.png
Oops, something went wrong.
Binary file modified
BIN
+53 Bytes
(100%)
test/test/assets/screenshots/firefox-Linux/ui-cue-with-newline.png
Oops, something went wrong.
Binary file modified
BIN
+405 Bytes
(110%)
test/test/assets/screenshots/firefox-Linux/ui-deeply-nested-cues.png
Oops, something went wrong.
Binary file modified
BIN
+15 Bytes
(100%)
test/test/assets/screenshots/firefox-Linux/ui-duplicate-cues.png
Oops, something went wrong.
Binary file modified
BIN
+7 Bytes
(100%)
test/test/assets/screenshots/firefox-Linux/ui-end-time-edge-case.png
Oops, something went wrong.
Binary file modified
BIN
+13 Bytes
(100%)
test/test/assets/screenshots/firefox-Linux/ui-flat-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+84 Bytes
(100%)
test/test/assets/screenshots/firefox-Linux/ui-nested-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+372 Bytes
(100%)
test/test/assets/screenshots/firefox-Linux/ui-region-position.png
Oops, something went wrong.
Binary file modified
BIN
+4 Bytes
(100%)
test/test/assets/screenshots/firefox-Linux/ui-two-basic-cues.png
Oops, something went wrong.
Binary file modified
BIN
+15 Bytes
(100%)
test/test/assets/screenshots/firefox-Linux/ui-two-nested-cues.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-41 Bytes
(100%)
test/test/assets/screenshots/firefox-Mac/ui-cue-with-controls.png
Oops, something went wrong.
Binary file modified
BIN
+96 Bytes
(100%)
test/test/assets/screenshots/firefox-Mac/ui-cue-with-newline.png
Oops, something went wrong.
Binary file modified
BIN
+245 Bytes
(100%)
test/test/assets/screenshots/firefox-Mac/ui-deeply-nested-cues.png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
test/test/assets/screenshots/firefox-Mac/ui-duplicate-cues.png
Oops, something went wrong.
Binary file modified
BIN
+12 Bytes
(100%)
test/test/assets/screenshots/firefox-Mac/ui-end-time-edge-case.png
Oops, something went wrong.
Binary file modified
BIN
+13 Bytes
(100%)
test/test/assets/screenshots/firefox-Mac/ui-flat-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+90 Bytes
(100%)
test/test/assets/screenshots/firefox-Mac/ui-nested-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+352 Bytes
(100%)
test/test/assets/screenshots/firefox-Mac/ui-region-position.png
Oops, something went wrong.
Binary file modified
BIN
+3 Bytes
(100%)
test/test/assets/screenshots/firefox-Mac/ui-two-basic-cues.png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
test/test/assets/screenshots/firefox-Mac/ui-two-nested-cues.png
Oops, something went wrong.
Binary file modified
BIN
+8 Bytes
(100%)
test/test/assets/screenshots/firefox-Windows/ui-basic-cue.png
Oops, something went wrong.
Binary file modified
BIN
-17 Bytes
(100%)
test/test/assets/screenshots/firefox-Windows/ui-cue-with-controls.png
Oops, something went wrong.
Binary file modified
BIN
+70 Bytes
(100%)
test/test/assets/screenshots/firefox-Windows/ui-cue-with-newline.png
Oops, something went wrong.
Binary file modified
BIN
+301 Bytes
(100%)
test/test/assets/screenshots/firefox-Windows/ui-deeply-nested-cues.png
Oops, something went wrong.
Binary file modified
BIN
+8 Bytes
(100%)
test/test/assets/screenshots/firefox-Windows/ui-duplicate-cues.png
Oops, something went wrong.
Binary file modified
BIN
+14 Bytes
(100%)
test/test/assets/screenshots/firefox-Windows/ui-end-time-edge-case.png
Oops, something went wrong.
Binary file modified
BIN
+24 Bytes
(100%)
test/test/assets/screenshots/firefox-Windows/ui-flat-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+107 Bytes
(100%)
test/test/assets/screenshots/firefox-Windows/ui-nested-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+366 Bytes
(100%)
test/test/assets/screenshots/firefox-Windows/ui-region-position.png
Oops, something went wrong.
Binary file modified
BIN
+7 Bytes
(100%)
test/test/assets/screenshots/firefox-Windows/ui-two-basic-cues.png
Oops, something went wrong.
Binary file modified
BIN
+8 Bytes
(100%)
test/test/assets/screenshots/firefox-Windows/ui-two-nested-cues.png
Oops, something went wrong.
Binary file modified
BIN
+7 Bytes
(100%)
test/test/assets/screenshots/internet explorer-Windows/ui-basic-cue.png
Oops, something went wrong.
Binary file modified
BIN
-19 Bytes
(100%)
test/test/assets/screenshots/internet explorer-Windows/ui-cue-with-controls.png
Oops, something went wrong.
Binary file modified
BIN
+170 Bytes
(100%)
test/test/assets/screenshots/internet explorer-Windows/ui-cue-with-newline.png
Oops, something went wrong.
Binary file modified
BIN
+301 Bytes
(100%)
test/test/assets/screenshots/internet explorer-Windows/ui-deeply-nested-cues.png
Oops, something went wrong.
Binary file modified
BIN
+7 Bytes
(100%)
test/test/assets/screenshots/internet explorer-Windows/ui-duplicate-cues.png
Oops, something went wrong.
Binary file modified
BIN
+14 Bytes
(100%)
test/test/assets/screenshots/internet explorer-Windows/ui-end-time-edge-case.png
Oops, something went wrong.
Binary file modified
BIN
+22 Bytes
(100%)
test/test/assets/screenshots/internet explorer-Windows/ui-flat-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+112 Bytes
(100%)
test/test/assets/screenshots/internet explorer-Windows/ui-nested-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+314 Bytes
(100%)
test/test/assets/screenshots/internet explorer-Windows/ui-region-position.png
Oops, something went wrong.
Binary file modified
BIN
+108 Bytes
(100%)
test/test/assets/screenshots/internet explorer-Windows/ui-two-basic-cues.png
Oops, something went wrong.
Binary file modified
BIN
+7 Bytes
(100%)
test/test/assets/screenshots/internet explorer-Windows/ui-two-nested-cues.png
Oops, something went wrong.
Binary file modified
BIN
+29 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-basic-cue.png
Oops, something went wrong.
Binary file modified
BIN
+502 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-cue-with-controls.png
Oops, something went wrong.
Binary file modified
BIN
+114 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-cue-with-newline.png
Oops, something went wrong.
Binary file modified
BIN
+87 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-deeply-nested-cues.png
Oops, something went wrong.
Binary file modified
BIN
+29 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-duplicate-cues.png
Oops, something went wrong.
Binary file modified
BIN
+18 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-end-time-edge-case.png
Oops, something went wrong.
Binary file modified
BIN
+54 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-flat-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+107 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-nested-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+483 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-region-position.png
Oops, something went wrong.
Binary file modified
BIN
-15 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-two-basic-cues.png
Oops, something went wrong.
Binary file modified
BIN
+29 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-two-nested-cues.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-19 Bytes
(100%)
test/test/assets/screenshots/safari-Mac/ui-cue-with-controls.png
Oops, something went wrong.
Binary file modified
BIN
+51 Bytes
(100%)
test/test/assets/screenshots/safari-Mac/ui-cue-with-newline.png
Oops, something went wrong.
Binary file modified
BIN
+99 Bytes
(100%)
test/test/assets/screenshots/safari-Mac/ui-deeply-nested-cues.png
Oops, something went wrong.
Binary file modified
BIN
+13 Bytes
(100%)
test/test/assets/screenshots/safari-Mac/ui-duplicate-cues.png
Oops, something went wrong.
Binary file modified
BIN
+5 Bytes
(100%)
test/test/assets/screenshots/safari-Mac/ui-end-time-edge-case.png
Oops, something went wrong.
Binary file modified
BIN
+19 Bytes
(100%)
test/test/assets/screenshots/safari-Mac/ui-flat-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+115 Bytes
(100%)
test/test/assets/screenshots/safari-Mac/ui-nested-cue-bg.png
Oops, something went wrong.
Binary file modified
BIN
+233 Bytes
(100%)
test/test/assets/screenshots/safari-Mac/ui-region-position.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
test/test/assets/screenshots/safari-Mac/ui-two-basic-cues.png
Oops, something went wrong.
Binary file modified
BIN
+37 Bytes
(100%)
test/test/assets/screenshots/safari-Mac/ui-two-nested-cues.png
Oops, something went wrong.
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