dominant-baseline CSS property seems not being supported

Bug #811862 reported by Ivan Enderlin
72
This bug affects 15 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

It appears that Inkscape (latest stable version) does not support the “dominant-baseline” CSS property, with “middle” or “central” value.

Look this file with Inkscape and with Firefox to understand: <http://hg.hoa-project.net/Laboratory/raw-file/0fccda95e9db/MasterThesis/Figures/Design_realdom_sampler.svg> (or the attachement as a PNG file).

More informations here: <http://www.w3.org/TR/2011/PR-SVG11-20110609/text.html#DominantBaselineProperty>.

Tags: css text
Revision history for this message
Ivan Enderlin (ivan-enderlin) wrote :
Revision history for this message
Beluga (buovjaga) wrote :

Link to file is 404. Can we have an attachment?

Revision history for this message
Sigra (sigra) wrote :
Revision history for this message
Mark A. Hershberger (hexmode) wrote :

Could someone highlight the differences that we're supposed to notice here? I differences, but I'm not sure what the w3 standard means.

Revision history for this message
Matt (mtcoster) wrote :

It appears that the value 'central' is miscalculated for dominant-baseline. You specify the baseline offset as '0.5 - _descent', however the spec specifies "a computed baseline that is at the center of the EM box" (i.e. just 0.5).

Refs:
https://gitlab.com/inkscape/inkscape/blob/master/src/libnrtype/FontInstance.cpp#L808
https://www.w3.org/TR/SVG11/text.html#BaselineAlignmentProperties

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.