Index: LayoutTests/fast/ruby/ruby-inline-style-not-updated-with-before-after-content.html |
diff --git a/LayoutTests/fast/ruby/ruby-inline-style-not-updated-with-before-after-content.html b/LayoutTests/fast/ruby/ruby-inline-style-not-updated-with-before-after-content.html |
index 403e3d1f651e6fa3ddbff180330480a15b9c8802..6c7e51304c3dfa60eb758a1cf5bc58a117c93bfd 100644 |
--- a/LayoutTests/fast/ruby/ruby-inline-style-not-updated-with-before-after-content.html |
+++ b/LayoutTests/fast/ruby/ruby-inline-style-not-updated-with-before-after-content.html |
@@ -1,28 +1,26 @@ |
-<!-- The orange, blue, yellow and green text boxes should not overlap --> |
-<html> |
-<body style="font: 1em/1 Ahem, sans-serif;"> |
+<!DOCTYPE html> |
+<p>The orange, blue, yellow and green text boxes should not overlap.</p> |
<style> |
-#test::before |
-{ |
- content: "1234"; |
- color: orange; |
-} |
-#test::after |
-{ |
- content: "4578"; |
- color: yellow; |
-} |
+ #test::before { |
+ content: "1234"; |
+ color: orange; |
+ } |
+ #test::after { |
+ content: "4578"; |
+ color: yellow; |
+ } |
+ ruby, div { |
+ font: 1em/1 Ahem, sans-serif; |
+ } |
</style> |
-<ruby id="test" style="color: blue"> |
-ABCD |
+<ruby id="test" style="color:blue;"> |
+ ABCD |
</ruby> |
-<div style="font-size: 800%; color: green"> |
-EFGH |
+<div style="font-size:500%; color:green;"> |
+ EFGH |
</div> |
<script> |
document.body.offsetTop; |
var test = document.getElementById("test"); |
- test.style.fontSize = "800%"; |
+ test.style.fontSize = "500%"; |
</script> |
-</body> |
-</html> |