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

<text> behavior with writing-mode:sideways-lr #955

Open
tkent-google opened this issue Oct 24, 2024 · 0 comments
Open

<text> behavior with writing-mode:sideways-lr #955

tkent-google opened this issue Oct 24, 2024 · 0 comments

Comments

@tkent-google
Copy link
Contributor

https://svgwg.org/svg2-draft/text.html#WritingModeProperty
https://svgwg.org/svg2-draft/text.html#TextLayoutAlgorithm

The algorithm looks not to take into account of writing-mode: sideways-lr. Text should grow up from current text position in the sideways-lr writing mode, but the algorithm assumes text always grows down if horizontal flag is false.

For example,
5.2.2.4.6

  1. For each index k in the range [i,j]:
    1. Add shift to the x coordinate of the position in result[k], if the "horizontal" flag is true, and to the y coordinate otherwise.

"Add" here should be "subtract" for sideways-lr writing mode.

aarongable pushed a commit to chromium/chromium that referenced this issue Oct 30, 2024
w3c/svgwg#955

Bug: 40501131
Change-Id: Ia64c575503bc932bbd52f663af052b49b54e72d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5961437
Commit-Queue: Koji Ishii <[email protected]>
Auto-Submit: Kent Tamura <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1375669}
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

1 participant