You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Afaiu, writing-mode was completely changed in SVG 2, but I think that the problem should persist. I'm not sure if there are any SVG 2 ready applications, so I cannot test this. That's why the example below is SVG 1.1 based.
<svgviewBox="0 0 200 200"xmlns="http://www.w3.org/2000/svg"font-family="Arial"font-size="64">
<pathid="crosshair"d="M 20 100 L 180 100 M 100 20 L 100 180"stroke="gray"stroke-width="0.5"/>
<textid="text1"x="100"y="150"writing-mode="tb"direction="rtl">Text</text>
<rectid="frame"x="1"y="1"width="198"height="198"fill="none"stroke="black"/>
</svg>
As you can see, the results are pretty different. Which one is the correct one and why?
PS: is the SVG 1.1, the writing-mode property could have 6 different values. But according to the SVG 2 spec, there are actually only two of them: left-to-right and top-to-bottom. So in the SVG 1.1 I can treat lr-tb, rl and rl-tb as lr and tb-rl as tb and it should not technically affect anything?
The text was updated successfully, but these errors were encountered:
Thanks very much for all your efforts in reporting these issues @RazrFalcon. I'm afraid @svgeesus was a bit too quick to dismiss this issue, it's not about CSS Writing Modes since the text is rendered correctly--it's just the placement in coordinate space that's varying, and it's up to SVG to define that , not CSS. I'm going to mark this as OutOfScope, but I'll leave it open until it's been reopened in the SVGWG repository.
Your testcases are very helpful, btw: super clear and easy to understand.
Moved from w3c/svgwg#618
https://www.w3.org/TR/SVG/text.html#WritingModeProperty
https://www.w3.org/TR/SVG/text.html#DirectionProperty
Afaiu,
writing-mode
was completely changed in SVG 2, but I think that the problem should persist. I'm not sure if there are any SVG 2 ready applications, so I cannot test this. That's why the example below is SVG 1.1 based.As you can see, the results are pretty different. Which one is the correct one and why?
PS: is the SVG 1.1, the
writing-mode
property could have 6 different values. But according to the SVG 2 spec, there are actually only two of them: left-to-right and top-to-bottom. So in the SVG 1.1 I can treatlr-tb
,rl
andrl-tb
aslr
andtb-rl
astb
and it should not technically affect anything?The text was updated successfully, but these errors were encountered: