Index: LayoutTests/fast/dynamic/static-to-relative-with-absolute-child.html |
diff --git a/LayoutTests/fast/dynamic/static-to-relative-with-absolute-child.html b/LayoutTests/fast/dynamic/static-to-relative-with-absolute-child.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0cbad748c3f49fc239c10f904e7366ca7d41b7df |
--- /dev/null |
+++ b/LayoutTests/fast/dynamic/static-to-relative-with-absolute-child.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<style> |
+#inner { |
+ position: absolute |
+} |
+</style> |
+<p>You should see the a green 'PASS' below.</p> |
+<span id="outer"> <br>PASS<span id="inner"></span></span> |
+<script> |
+window.onload = function() { |
+ var style = document.getElementById("outer").style; |
+ document.body.offsetTop; |
+ style.position = "relative"; |
+ document.body.offsetTop; |
+ style.color = "green"; |
+} |
+</script> |