Default value of overflow for region is hidden
authorPhilippe Le Hégaret <plh@w3.org>
Thu, 23 Apr 2009 20:35:10 +0000
changeset 103 cd4d8ac1cdd7
parent 102 494fa00b4717
child 104 b745e46c2732
Default value of overflow for region is hidden
testsuite/web-framework/HTML5_player.js
--- a/testsuite/web-framework/HTML5_player.js	Thu Apr 23 20:15:17 2009 +0000
+++ b/testsuite/web-framework/HTML5_player.js	Thu Apr 23 20:35:10 2009 +0000
@@ -161,6 +161,9 @@
 
 	if (dfxpElementRef != null) {
 	    
+	    // The overflow default value for region is hidden
+	    htmlElement.style.setProperty("overflow", "hidden", "");
+
 	    HTML5Caption_convertDFXP2HTMLAttributes(dfxpElementRef, htmlElement, hasOrigin, top, left);
 	    
 	    var styles = dfxpElementRef.getElementsByTagNameNS(DFXP_NS, "style");
@@ -288,7 +291,7 @@
 		    parentNode = parentNode.parentNode;
 		}
 		if (!hasOrigin) {
-		    htmlElement.style.setProperty("position", "fixed", "");
+		    htmlElement.style.setProperty("position", "absolute", "");
 		    htmlElement.style.setProperty("left", (left + HTML5Caption_toPixels(p[0])) + "px", "");
 		    htmlElement.style.setProperty("top", (top + HTML5Caption_toPixels(p[1])) + "px", "");
 		}