+2007-12-06 Adele Peterson <adele@apple.com>
+
+ Reviewed by Oliver.
+
+ Fix <rdar://problem/5631356> Toggling display property on video causes controls to get lost
+
+ * media/video-display-toggle.html: Added.
+ * platform/mac/media/video-display-toggle-expected.checksum: Added.
+ * platform/mac/media/video-display-toggle-expected.png: Added.
+ * platform/mac/media/video-display-toggle-expected.txt: Added.
+
2007-12-05 Rob Buis <buis@kde.org>
Reviewed by Mitz.
--- /dev/null
+<html>
+ <head>
+ <script>
+ function toggleDisplay()
+ {
+ var video = document.getElementById('vid');
+ if (video.style.display == "none")
+ video.style.display = "inline-block";
+ else
+ video.style.display = "none";
+
+ }
+ function test()
+ {
+ if (window.layoutTestController)
+ layoutTestController.waitUntilDone();
+ document.getElementById('vid').addEventListener("load", test2);
+ }
+ function test2()
+ {
+ toggleDisplay();
+ toggleDisplay();
+
+ if (window.layoutTestController)
+ layoutTestController.notifyDone();
+ }
+ </script>
+ </head>
+ <body onload="test()">
+ This tests that toggling the display property won't make the controls disappear.<br>
+ <video id="vid" controls src="content/test.mp4"></video>
+ </body>
+</html>
+
--- /dev/null
+layer at (0,0) size 800x600
+ RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (8,8) size 784x584
+ RenderText {#text} at (0,0) size 493x18
+ text run at (0,0) width 493: "This tests that toggling the display property won't make the controls disappear."
+ RenderBR {BR} at (493,14) size 0x0
+ RenderVideo {VIDEO} at (0,18) size 320x240
+ RenderText {#text} at (0,0) size 0x0
+ RenderText {#text} at (0,0) size 0x0
+ RenderText {#text} at (0,0) size 0x0
+layer at (8,26) size 320x240
+ RenderBlock (positioned) {DIV} at (8,26) size 320x240
+layer at (51,173) size 234x69
+ RenderBlock (positioned) {DIV} at (43,147) size 234x69 [bgcolor=#00000099] [border: (2px solid #EEEEEE)]
+layer at (135,180) size 66x40
+ RenderButton {INPUT} at (84,7) size 66x40 [color=#FFFFFF]
+ RenderBlock (anonymous) at (0,0) size 66x40
+ RenderText at (18,0) size 30x38
+ text run at (18,0) width 30: "\x{25B6}"
+layer at (58,219) size 220x16
+ RenderBlock (positioned) {DIV} at (7,46) size 220x16 [bgcolor=#EEEEEE]
+ RenderText {#text} at (165,0) size 50x15
+ text run at (165,0) width 50: "00:00:00"
+layer at (63,218) size 142x17
+ RenderSlider zI: 1 {INPUT} at (12,45) size 142x16 [border: (2px solid #FFFFFF)]
+layer at (65,221) size 15x15
+ RenderBlock (relative positioned) {DIV} at (2,2) size 15x15