Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify the baseline value during the top-to-bottom writing mode for Latin text #619

Closed
RazrFalcon opened this issue Dec 19, 2018 · 2 comments

Comments

@RazrFalcon
Copy link

https://www.w3.org/TR/SVG/text.html#WritingModeProperty
https://www.w3.org/TR/css-writing-modes-3/#vertical-modes

It's probably CSS Writing Modes Level 3 related. I'm not sure. For now, I'm experiencing the problem during the SVG 1.1 rendering, but I'm sure that this can be reproduced in HTML too (I'm not familiar with it).

<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" font-family="Arial" font-size="64">
    <path id="crosshair" d="M 20 100 L 180 100 M 100 20 L 100 180" stroke="gray" stroke-width="0.5"/>
    <text id="text1" x="120" y="30" writing-mode="tb">Text</text>
    <rect id="frame" x="1" y="1" width="198" height="198" fill="none" stroke="black"/>
</svg>

a-writing-mode-006

As you can see, the text has a different baseline(?). Which one is the correct one? Is this explained somewhere?

@svgeesus
Copy link
Contributor

svgeesus commented Jan 7, 2019

Thanks for the nicely illustrated and documented issue!

SVG 2 defers to CSS Writing Modes 3, so please re-raise the issue over there

@fantasai
Copy link

Reported #629 which is the SVG spec issue this testcase is raising.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants