diff --git a/src/main/java/w2phtml/xhtml/style/FrameStyleParser.java b/src/main/java/w2phtml/xhtml/style/FrameStyleParser.java
index 34a7a19..9746f25 100644
--- a/src/main/java/w2phtml/xhtml/style/FrameStyleParser.java
+++ b/src/main/java/w2phtml/xhtml/style/FrameStyleParser.java
@@ -150,6 +150,15 @@ public class FrameStyleParser extends StyleWithPropertiesParser {
if (s != null) {
if (s.equals("bt-lr")) {
props.addProperty("writing-mode", "sideways-lr");
+ }
+ }
+ } else if (bInherit || style.hasProperty(XMLString.STYLE_WRITING_MODE)){
+ s = style.getAbsoluteProperty(XMLString.STYLE_WRITING_MODE);
+ if (s != null) {
+ if (s.equals("tb-rl")) {
+ props.addProperty("writing-mode", "vertical-rl");
+ } else if (s.equals("lr-tb")) {
+ props.addProperty("writing-mode", "horizontal-tb");
}
}
}