RESOLVED FIXED 180358
<video> and scale() transforms yield shrunk small or clipped controls
https://bugs.webkit.org/show_bug.cgi?id=180358
Summary <video> and scale() transforms yield shrunk small or clipped controls
Antoine Quint
Reported 2017-12-04 08:49:29 PST
If a <video> element is transformed, directly or through a parent, with a scale() command, its controls will appear clipped, when scale > 1, or shrunk, when scale < 0.
Attachments
Patch (7.93 KB, patch)
2017-12-04 08:55 PST, Antoine Quint
no flags
Antoine Quint
Comment 1 2017-12-04 08:50:04 PST
Antoine Quint
Comment 2 2017-12-04 08:55:51 PST
Dean Jackson
Comment 3 2017-12-04 14:12:18 PST
Comment on attachment 328349 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=328349&action=review > Source/WebCore/Modules/modern-media-controls/media/media-controller.js:226 > + while (node && node instanceof HTMLElement) { > + transform = transform.multiply(new WebKitCSSMatrix(getComputedStyle(node).transform)); > + node = node.parentNode; What happens if any of these transforms change after the calculation?
Antoine Quint
Comment 4 2017-12-04 14:25:30 PST
(In reply to Dean Jackson from comment #3) > Comment on attachment 328349 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=328349&action=review > > > Source/WebCore/Modules/modern-media-controls/media/media-controller.js:226 > > + while (node && node instanceof HTMLElement) { > > + transform = transform.multiply(new WebKitCSSMatrix(getComputedStyle(node).transform)); > > + node = node.parentNode; > > What happens if any of these transforms change after the calculation? Nothing, it doesn't change the metrics of the elements.
WebKit Commit Bot
Comment 5 2017-12-04 14:49:29 PST
Comment on attachment 328349 [details] Patch Clearing flags on attachment: 328349 Committed r225495: <https://trac.webkit.org/changeset/225495>
WebKit Commit Bot
Comment 6 2017-12-04 14:49:30 PST
All reviewed patches have been landed. Closing bug.
Simon Fraser (smfr)
Comment 7 2017-12-04 14:52:54 PST
Comment on attachment 328349 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=328349&action=review > Source/WebCore/Modules/modern-media-controls/media/media-controller.js:225 > + transform = transform.multiply(new WebKitCSSMatrix(getComputedStyle(node).transform)); Why not DOMMatrix? WebKitCSSMatrix should go away eventually.
Antoine Quint
Comment 8 2017-12-05 00:22:20 PST
Antoine Quint
Comment 9 2017-12-05 00:22:56 PST
(In reply to Simon Fraser (smfr) from comment #7) > Comment on attachment 328349 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=328349&action=review > > > Source/WebCore/Modules/modern-media-controls/media/media-controller.js:225 > > + transform = transform.multiply(new WebKitCSSMatrix(getComputedStyle(node).transform)); > > Why not DOMMatrix? WebKitCSSMatrix should go away eventually. This was fixed in a follow-up commit (r225521).
Note You need to log in before you can comment on or make changes to this bug.