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.
<rdar://problem/34436124>
Created attachment 328349 [details] Patch
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?
(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.
Comment on attachment 328349 [details] Patch Clearing flags on attachment: 328349 Committed r225495: <https://trac.webkit.org/changeset/225495>
All reviewed patches have been landed. Closing bug.
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.
Committed r225521: <https://trac.webkit.org/changeset/225521>
(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).