+void InsetMathRoot::htmlize(HtmlStream & os) const
+{
+ os << MTag("span", "class='root'")
+ << MTag("sup") << cell(0) << ETag("sup")
+ << from_ascii("√")
+ << MTag("span", "class='rootof'") << cell(1) << ETag("span")
+ << ETag("span");
+}
+
+
+void InsetMathRoot::validate(LaTeXFeatures & features) const
+{
+ if (features.runparams().math_flavor == OutputParams::MathAsHTML)
+ features.addCSSSnippet(
+ "span.rootof{border-top: thin solid black;}\n"
+ "span.root sup{font-size: 75%;}");
+ InsetMathNest::validate(features);
+}
+