From 9aa6b66cae11fa0d1b732a78a89fb387372144df Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Wed, 24 Apr 2019 11:56:39 +0200 Subject: Add 'text-align' to properties not removed in cleaning for and . --- share/attributes/cssprops | 2 +- share/attributes/genMapDataCSS.pl | 2 +- share/attributes/svgprops | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/share/attributes/cssprops b/share/attributes/cssprops index 53a3791b7..093cebb45 100644 --- a/share/attributes/cssprops +++ b/share/attributes/cssprops @@ -150,7 +150,7 @@ "stroke-width" - "path","rect","circle","ellipse","line","polyline","polygon","altGlyph","textPath","text","tref","tspan","flowRoot","flowPara","flowSpan","a","defs","glyph","g","marker","mask","missing-glyph","pattern","svg","switch","symbol","use" -"text-align" - "flowRoot","a","defs","glyph","g","marker","mask","missing-glyph","pattern","svg","switch","symbol","use" +"text-align" - "flowRoot","flowPara","flowSpan","a","defs","glyph","g","marker","mask","missing-glyph","pattern","svg","switch","symbol","use" "text-anchor" - "altGlyph","textPath","text","tref","tspan","flowRoot","flowPara","flowSpan","a","defs","glyph","g","marker","mask","missing-glyph","pattern","svg","switch","symbol","use" diff --git a/share/attributes/genMapDataCSS.pl b/share/attributes/genMapDataCSS.pl index 0b7f7adc2..54266f53f 100755 --- a/share/attributes/genMapDataCSS.pl +++ b/share/attributes/genMapDataCSS.pl @@ -179,7 +179,7 @@ $properties{ "line-height" }->{inherit} = "no"; # Inkscape uses CSS property 'text-align' for flowed text. It is not an SVG 1.1 property # but is found in SVG 1.2 Tiny. -push @{$properties{ "text-align" }->{elements}}, "flowRoot"; +push @{$properties{ "text-align" }->{elements}}, "flowRoot", "flowPara", "flowSpan"; $properties{ "text-align" }->{default} = "start"; $properties{ "text-align" }->{inherit} = "yes"; diff --git a/share/attributes/svgprops b/share/attributes/svgprops index 69d13c857..937197056 100644 --- a/share/attributes/svgprops +++ b/share/attributes/svgprops @@ -590,7 +590,7 @@ "stroke-width" - "path","rect","circle","ellipse","line","polyline","polygon","altGlyph","textPath","text","tref","tspan","flowRoot","flowPara","flowSpan","a","defs","glyph","g","marker","mask","missing-glyph","pattern","svg","switch","symbol","use" -"text-align" - "flowRoot","a","defs","glyph","g","marker","mask","missing-glyph","pattern","svg","switch","symbol","use" +"text-align" - "flowRoot","flowPara","flowSpan","a","defs","glyph","g","marker","mask","missing-glyph","pattern","svg","switch","symbol","use" "text-anchor" - "altGlyph","textPath","text","tref","tspan","flowRoot","flowPara","flowSpan","a","defs","glyph","g","marker","mask","missing-glyph","pattern","svg","switch","symbol","use" -- cgit v1.2.3