Index: Source/WebCore/css/CSSStyleSelector.cpp |
=================================================================== |
--- Source/WebCore/css/CSSStyleSelector.cpp (revision 115608) |
+++ Source/WebCore/css/CSSStyleSelector.cpp (working copy) |
@@ -1943,6 +1943,12 @@ |
style->setDisplay(BLOCK); |
} |
+ // Ruby text does not support float or position. This might change with evolution of the specification. |
+ if (e && e->hasTagName(rtTag)) { |
+ style->setPosition(StaticPosition); |
+ style->setFloating(NoFloat); |
+ } |
+ |
// Table headers with a text-align of auto will change the text-align to center. |
if (e && e->hasTagName(thTag) && style->textAlign() == TAAUTO) |
style->setTextAlign(CENTER); |