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.
fix: Fix enforcement of cue alignment styles
This uses flexbox once again to get proper positioning of cues. To compensate for the issues that originally made us remove flexbox, this adds a wrapper span inside the flexbox element. Summary of screenshot changes: - slight change to background sizing - ui-basic-cue - ui-cue-with-controls - ui-duplicate-cues - ui-end-time-edge-case - ui-flat-cue-bg - ui-two-basic-cues - background fills block with literal newline in text - ui-cue-with-newline - region anchored without padding - ui-region-position - new screenshots - *-nested-cues-with-linebreak - *-region-with-display-alignment (regression test for this issue) Closes shaka-project#3379 Change-Id: I8c678721d96662e0f8940cda12df4f5b5e5baf1e
- Loading branch information
1 parent
de77787
commit 2250324
Showing
126 changed files
with
93 additions
and
14 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
Binary file added
BIN
+3.6 KB
test/test/assets/screenshots/chrome-Android/native-nested-cues-with-linebreak.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 added
BIN
+1.47 KB
...test/assets/screenshots/chrome-Android/native-region-with-display-alignment.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
-5 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
+13 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
-49 Bytes
(99%)
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
-5 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
-2 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
-9 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 added
BIN
+9.12 KB
test/test/assets/screenshots/chrome-Android/ui-nested-cues-with-linebreak.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
+176 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 added
BIN
+2.64 KB
test/test/assets/screenshots/chrome-Android/ui-region-with-display-alignment.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
-19 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 added
BIN
+4.21 KB
test/test/assets/screenshots/chrome-Linux/native-nested-cues-with-linebreak.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 added
BIN
+1.68 KB
test/test/assets/screenshots/chrome-Linux/native-region-with-display-alignment.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
-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 added
BIN
+10.4 KB
test/test/assets/screenshots/chrome-Linux/ui-nested-cues-with-linebreak.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
+55 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 added
BIN
+2.98 KB
test/test/assets/screenshots/chrome-Linux/ui-region-with-display-alignment.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 added
BIN
+4.3 KB
test/test/assets/screenshots/chrome-Mac/native-nested-cues-with-linebreak.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 added
BIN
+1.88 KB
test/test/assets/screenshots/chrome-Mac/native-region-with-display-alignment.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+15 Bytes
(100%)
test/test/assets/screenshots/chrome-Mac/ui-cue-with-controls.png
Oops, something went wrong.
Binary file modified
BIN
-88 Bytes
(99%)
test/test/assets/screenshots/chrome-Mac/ui-cue-with-newline.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 added
BIN
+10.3 KB
test/test/assets/screenshots/chrome-Mac/ui-nested-cues-with-linebreak.png
Oops, something went wrong.
Binary file modified
BIN
-26 Bytes
(100%)
test/test/assets/screenshots/chrome-Mac/ui-region-position.png
Oops, something went wrong.
Binary file added
BIN
+2.96 KB
test/test/assets/screenshots/chrome-Mac/ui-region-with-display-alignment.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 added
BIN
+4.53 KB
test/test/assets/screenshots/chrome-Windows/native-nested-cues-with-linebreak.png
Oops, something went wrong.
Binary file added
BIN
+1.76 KB
...test/assets/screenshots/chrome-Windows/native-region-with-display-alignment.png
Oops, something went wrong.
Binary file modified
BIN
-13 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-basic-cue.png
Oops, something went wrong.
Binary file modified
BIN
+19 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-cue-with-controls.png
Oops, something went wrong.
Binary file modified
BIN
-116 Bytes
(99%)
test/test/assets/screenshots/chrome-Windows/ui-cue-with-newline.png
Oops, something went wrong.
Binary file modified
BIN
-13 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
-26 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-flat-cue-bg.png
Oops, something went wrong.
Binary file added
BIN
+11.4 KB
test/test/assets/screenshots/chrome-Windows/ui-nested-cues-with-linebreak.png
Oops, something went wrong.
Binary file modified
BIN
-47 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-region-position.png
Oops, something went wrong.
Binary file added
BIN
+3.41 KB
test/test/assets/screenshots/chrome-Windows/ui-region-with-display-alignment.png
Oops, something went wrong.
Binary file modified
BIN
-11 Bytes
(100%)
test/test/assets/screenshots/chrome-Windows/ui-two-basic-cues.png
Oops, something went wrong.
Binary file added
BIN
+4.22 KB
test/test/assets/screenshots/firefox-Linux/native-nested-cues-with-linebreak.png
Oops, something went wrong.
Binary file added
BIN
+1.6 KB
.../test/assets/screenshots/firefox-Linux/native-region-with-display-alignment.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
(99%)
test/test/assets/screenshots/firefox-Linux/ui-cue-with-newline.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 added
BIN
+10.1 KB
test/test/assets/screenshots/firefox-Linux/ui-nested-cues-with-linebreak.png
Oops, something went wrong.
Binary file modified
BIN
-134 Bytes
(99%)
test/test/assets/screenshots/firefox-Linux/ui-region-position.png
Oops, something went wrong.
Binary file added
BIN
+2.86 KB
test/test/assets/screenshots/firefox-Linux/ui-region-with-display-alignment.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 added
BIN
+4.5 KB
test/test/assets/screenshots/firefox-Mac/native-nested-cues-with-linebreak.png
Oops, something went wrong.
Binary file added
BIN
+1.67 KB
test/test/assets/screenshots/firefox-Mac/native-region-with-display-alignment.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
(99%)
test/test/assets/screenshots/firefox-Mac/ui-cue-with-newline.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 added
BIN
+11.9 KB
test/test/assets/screenshots/firefox-Mac/ui-nested-cues-with-linebreak.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
test/test/assets/screenshots/firefox-Mac/ui-region-position.png
Oops, something went wrong.
Binary file added
BIN
+3.42 KB
test/test/assets/screenshots/firefox-Mac/ui-region-with-display-alignment.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 added
BIN
+4.35 KB
test/test/assets/screenshots/firefox-Windows/native-nested-cues-with-linebreak.png
Oops, something went wrong.
Binary file added
BIN
+1.56 KB
...est/assets/screenshots/firefox-Windows/native-region-with-display-alignment.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
(99%)
test/test/assets/screenshots/firefox-Windows/ui-cue-with-newline.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 added
BIN
+11.2 KB
test/test/assets/screenshots/firefox-Windows/ui-nested-cues-with-linebreak.png
Oops, something went wrong.
Binary file modified
BIN
-39 Bytes
(100%)
test/test/assets/screenshots/firefox-Windows/ui-region-position.png
Oops, something went wrong.
Binary file added
BIN
+3.26 KB
test/test/assets/screenshots/firefox-Windows/ui-region-with-display-alignment.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 added
BIN
+4.53 KB
test/test/assets/screenshots/msedge-Windows/native-nested-cues-with-linebreak.png
Oops, something went wrong.
Binary file added
BIN
+1.76 KB
...test/assets/screenshots/msedge-Windows/native-region-with-display-alignment.png
Oops, something went wrong.
Binary file modified
BIN
-13 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-basic-cue.png
Oops, something went wrong.
Binary file modified
BIN
+19 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-cue-with-controls.png
Oops, something went wrong.
Binary file modified
BIN
-116 Bytes
(99%)
test/test/assets/screenshots/msedge-Windows/ui-cue-with-newline.png
Oops, something went wrong.
Binary file modified
BIN
-13 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
-26 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-flat-cue-bg.png
Oops, something went wrong.
Binary file added
BIN
+11.4 KB
test/test/assets/screenshots/msedge-Windows/ui-nested-cues-with-linebreak.png
Oops, something went wrong.
Binary file modified
BIN
-47 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-region-position.png
Oops, something went wrong.
Binary file added
BIN
+3.41 KB
test/test/assets/screenshots/msedge-Windows/ui-region-with-display-alignment.png
Oops, something went wrong.
Binary file modified
BIN
-11 Bytes
(100%)
test/test/assets/screenshots/msedge-Windows/ui-two-basic-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
Binary file added
BIN
+4.16 KB
test/test/assets/screenshots/safari-Mac/native-nested-cues-with-linebreak.png
Oops, something went wrong.
Binary file added
BIN
+1.8 KB
test/test/assets/screenshots/safari-Mac/native-region-with-display-alignment.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
-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 added
BIN
+9.97 KB
test/test/assets/screenshots/safari-Mac/ui-nested-cues-with-linebreak.png
Oops, something went wrong.
Binary file modified
BIN
-22 Bytes
(100%)
test/test/assets/screenshots/safari-Mac/ui-region-position.png
Oops, something went wrong.
Binary file added
BIN
+2.9 KB
test/test/assets/screenshots/safari-Mac/ui-region-with-display-alignment.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 added
BIN
+4.65 KB
test/test/assets/screenshots/xboxone/native-nested-cues-with-linebreak.png
Oops, something went wrong.
Binary file added
BIN
+1.69 KB
test/test/assets/screenshots/xboxone/native-region-with-display-alignment.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+4 Bytes
(100%)
test/test/assets/screenshots/xboxone/ui-cue-with-controls.png
Oops, something went wrong.
Binary file modified
BIN
-76 Bytes
(99%)
test/test/assets/screenshots/xboxone/ui-cue-with-newline.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
test/test/assets/screenshots/xboxone/ui-end-time-edge-case.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-6 Bytes
(100%)
test/test/assets/screenshots/xboxone/ui-region-position.png
Oops, something went wrong.
Binary file added
BIN
+3.25 KB
test/test/assets/screenshots/xboxone/ui-region-with-display-alignment.png
Oops, something went wrong.
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
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