From 4f9e901baefc6c9ec073ffe7489f4af75e46e022 Mon Sep 17 00:00:00 2001 From: Alastor Wu Date: Thu, 13 Jun 2019 23:31:09 +0000 Subject: [PATCH] Bug 1534888 - part2 : move the cue upward 1% of video's height. r=heycam In `2_cues_overlapping_partially_move_up.vtt`, the second cue was put on the 99% place where the second cue is `1%` higher than the first cue, and then we would move the second cue up by a line box height in order to prevent those two cues overlapping. Therefore, in the reference files, the second cue should be 1%(of 180px) higher than its original place. Differential Revision: https://phabricator.services.mozilla.com/D34609 --HG-- extra : moz-landing-system : lando --- .../2_cues_overlapping_partially_move_up-ref.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testing/web-platform/tests/webvtt/rendering/cues-with-video/processing-model/2_cues_overlapping_partially_move_up-ref.html b/testing/web-platform/tests/webvtt/rendering/cues-with-video/processing-model/2_cues_overlapping_partially_move_up-ref.html index 595aec0a7245..6c3d65f24ff6 100644 --- a/testing/web-platform/tests/webvtt/rendering/cues-with-video/processing-model/2_cues_overlapping_partially_move_up-ref.html +++ b/testing/web-platform/tests/webvtt/rendering/cues-with-video/processing-model/2_cues_overlapping_partially_move_up-ref.html @@ -22,10 +22,14 @@ body { margin:0 } background: rgba(0,0,0,0.8); color: green; } +.cueTextGoingUp { + position: relative; + top: -1.8px; /* 1% height of video's height */ +}
-
This is another test subtitle
+
This is another test subtitle
This is a test subtitle