Created attachment 546800 [details] Test case The attached file does not render as I'd have expected in FF 5. <text dominant-baseline="central"> <tspan>foo </tspan> <tspan>bar </tspan> <tspan>baz</tspan> </text> I'd have expected all three tspans to be aligned along the same "central" baseline. But for reasons unknon, it appears that each tspan except the first has its "central" baseline aligned to the "alphabetic" baseline of its predecessor. Makes vertical centering a real problem.
Agreed, I think the test should show all three tspans aligned on their central baseline.
Created attachment 547106 [details] [diff] [review] hg changeset patch with test
Comment on attachment 547106 [details] [diff] [review] hg changeset patch with test >+++ b/layout/reftests/svg/reftest.list >@@ -204,6 +204,7 @@ fails-if(Android) random-if(gtk2Widget) > == text-layout-02.svg text-layout-02-ref.svg > == text-layout-03.svg text-layout-03-ref.svg > == text-layout-04.svg text-layout-04-ref.svg >+== text-layout-05.svg pass.svg [...] >+++ b/layout/reftests/svg/text-layout-05.svg [...] >+ <text x="20" y="200" dominant-baseline="central" >+ font-family="monospace" font-size="50px"><tspan>foo </tspan><tspan>bar </tspan><tspan>baz</tspan></text> >+ <!-- cover where we expect the text to be --> >+ <rect x="20" y="178" width="330" height="40" fill="lime"/> I think we could test this much more robustly if we just compared against a reference that has the <tspan>'s removed. (i.e. just using a <text> node in the reference case) Could you change the test (or add another test) that does that? r=me with that
Created attachment 549659 [details] [diff] [review] address review comment I was expecting this not to work due to subpixel positioning differences but I seem to be wrong. http://tbpl.mozilla.org/?tree=Try&rev=8c780666adab