Commit 73ab1941 authored by Jazz Xu's avatar Jazz Xu Committed by Commit Bot

[Media Controls] Fix text movement after opening overflow menu

Set Z translate to 0 in order to use hardware acceleration,
which allows a smoother transition.

Bug: 921578
Change-Id: Id30a8b2c05d5b789545bb0203ee9eecbb49ce4ff
Reviewed-on: https://chromium-review.googlesource.com/c/1409818
Commit-Queue: Jazz Xu <jazzhsu@chromium.org>
Reviewed-by: default avatarTommy Steimel <steimel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#629043}
parent a0f42b97
......@@ -868,9 +868,15 @@ video::-internal-media-controls-overflow-menu-list-item {
padding-left: 16px;
padding-right: 16px;
cursor: pointer;
/* Cursor: pointer will cause a highlight when touch on it, this will disable it */
-webkit-tap-highlight-color: transparent;
/*
* Avoid slight text movement after item transition ends.
* By setting translateZ, we are using hardware acceleration,
* which allows a smoother transition.
*/
transform: translateZ(0);
}
video::-webkit-media-controls div[pseudo="-internal-media-controls-text-track-list" i].pip-presented,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment