1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/507762-4.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 +<style> 1.8 +div { 1.9 +background-color: red; 1.10 +} 1.11 +div[dir=ltr] 1.12 +{background-color: green !important; 1.13 +} 1.14 +</style> 1.15 +<script> 1.16 +function f() { 1.17 +var elem = document.createElement("div"); 1.18 +elem.setAttribute("dir","LTR"); 1.19 +elem.appendChild(document.createTextNode("text")); 1.20 +document.getElementsByTagName("body")[0].appendChild(elem); } 1.21 +</script> 1.22 +</head> 1.23 +<body onload="f();"> 1.24 +</body> 1.25 +</html>