Inkscape doesn't allow baseline-shift on tspan elements

Bug #478737 reported by Will Pittenger
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Wishlist
Unassigned

Bug Description

I am attempting to manually cause a tspan (which is a child of another tpsan) to be aligned as superscript. I thought that once I had the child tspan, I could add "vertical-align:super;" to its style with the XML editor. But Inkscape strips out vertical-align regardless of its value.

Tags: text ui
Revision history for this message
Will Pittenger (will-pittenger1) wrote :

Oh, I was using "Inkscape 0.47pre4 , built Oct 12 2009".

Revision history for this message
Will Pittenger (will-pittenger1) wrote :
Revision history for this message
Will Pittenger (will-pittenger1) wrote :

I am told that Batik also fails to render the superscript sample.

Revision history for this message
Will Pittenger (will-pittenger1) wrote :

It looks like Bug #269374 is related. That would provide UI for things like superscript.

Revision history for this message
su_v (suv-lp) wrote :

… or Bug #170324 “subscript, superscript”?
<https://bugs.launchpad.net/inkscape/+bug/170324>

Revision history for this message
Will Pittenger (will-pittenger1) wrote :

Further tests show that a related CSS attribute is also stripped: baseline-shift (http://www.w3.org/TR/SVG/text.html#BaselineShiftProperty)

su_v (suv-lp)
tags: added: text
Revision history for this message
Will Pittenger (will-pittenger1) wrote :

Those following this bug might want to follow https://bugzilla.mozilla.org/show_bug.cgi?id=527376 as well. That is the cooresponding Firefox bug.

Revision history for this message
Will Pittenger (will-pittenger1) wrote :

I am told that "vertical-align" never made it into a recommendation. "Baseline-shift" seems to have replaced it. So I changed the title. Both Firefox and Inkscape still fail with the new attribute. New sample coming.

summary: - Inkscape doesn't allow vertical-align on tspan elements
+ Inkscape doesn't allow baseline-shift on tspan elements
Revision history for this message
Will Pittenger (will-pittenger1) wrote :
Revision history for this message
su_v (suv-lp) wrote :

…which AFAIU brings this RFE right back to what was already requested and discussed in bug #170324 “subscript, superscript". Or are there basic differences between these feature requests that I miss? Otherwise I propose to merge the discussion into one report only - i.e. linking this report as duplicate to bug #170324.

Revision history for this message
Will Pittenger (will-pittenger1) wrote :

Well, at least add the XML editor to the bug. It shouldn't strip valid CSS out.

Revision history for this message
su_v (suv-lp) wrote :

some notes while searching for related info:

a) Inkscape 0.46 and 0.47(pre) show the same behavior:
  - baseline-shift is not supported by the renderer
  - it cannot be added as CSS style property in the XML editor

b) as long as you don't edit the text element in Inkscape,
   the CSS style property is not stripped when saving as Inkscape SVG.

c) adding as CSS style property to <tspan>
   <tspan style="font-size:12px;baseline-shift:super">st</tspan>
   with the built-in XML Editor fails with this Inkscape console message:
WARNING **: Unimplemented style property SP_PROP_BASELINE_SHIFT: value: super

d) adding as separate XML style attribute to <tspan>
   <tspan style="font-size:12px" baseline-shift="super">st</tspan>
   with the built-in XML Editor works but the attribute is still not
   supported by the renderer.

other links:
Inkscape Wiki: CSS Support - Updating for changes to <style> content
<http://wiki.inkscape.org/wiki/index.php/CSS_Support#Updating_for_changes_to_.3Cstyle.3E_content>

tags: added: ui
Changed in inkscape:
importance: Undecided → Wishlist
information type: Public → Public Security
information type: Public Security → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.