In order for styles coming from the page to not affect the content displayed in a media element's shadow root, we need to reset style inheritance. This way only styles defined by the injected user-agent stylesheets will affect the rendering of the shadow content, such as media controls.
<rdar://problem/13886140>
Created attachment 201700 [details] Patch
Comment on attachment 201700 [details] Patch Attachment 201700 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/466591 New failing tests: media/controls-styling-strict.html media/video-controls-zoomed.html
Created attachment 201711 [details] Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-15 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.2
The test at media/controls-styling-strict.html fails without this patch as well on my platform. However, media/video-controls-zoomed.html looks like a new failure indeed.
Created attachment 201712 [details] Patch
Comment on attachment 201712 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=201712&action=review > Source/WebCore/ChangeLog:10 > + Can we add a test for this?
Comment on attachment 201712 [details] Patch Attachment 201712 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/472224 New failing tests: media/controls-styling-strict.html
Created attachment 201721 [details] Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-14 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.2
Comment on attachment 201712 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=201712&action=review > Source/WebCore/ChangeLog:9 > + the rendering of snapshotted plug-ins' shadow content. "snapshotted plug-ins' shadow content"? :-)
Comment on attachment 201712 [details] Patch Page styles are allowed to affect caption rendering. Can you set inheritance on the portion of the shadow DOM with controls only?
*** Bug 119637 has been marked as a duplicate of this bug. ***