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

WIP Add basic 'text-anchor' tests. #15118

Merged
merged 1 commit into from Mar 15, 2019

Conversation

Tavmjong
Copy link
Contributor

Basic SVG 'text-anchor' tests.
001 LTR Latin
002 Vertical Latin
003 RTL Arabic
102 Vertical Kanji
201 LTR Latin 'tspan'
202 Vertical Latin 'tspan'
203 RTL Arabic 'tspan'

Temporarily, tests include the expected rendering in red below the test along with a red circle to indicate anchor point. Due to how the reference is created, there may be a pixel or so difference in rendering on one or two tests.

Firefox 64 passes all tests except small errors when 'text-anchor is 'mid' on a 'tspan'. (both Firefox and Chrome appear to incorrectly include a space following the tspan in calculating the tspan position).

Chrome 71 passes all except 002, 202, 203.

Inkscape passes all except those using 'tspan'.

@svgeesus
Copy link
Contributor

Temporarily, tests include the expected rendering in red below the test along with a red circle to indicate anchor point.

Red is typically seen as an error condition in tests, so I suggest making this visual reference a different color.

Why do you say the expected rendering part is "temporary"? Should the tests be merged with that part included, or excluded?

@Tavmjong
Copy link
Contributor Author

The working group needs to discuss these tests... the red is to make it easier for discussion. After the WG has approved the tests, I'll remove the red.

@svgeesus
Copy link
Contributor

So, should we merge them to aid discussion, and then remove the temporary stuff in a separate pull request?

Copy link
Contributor

@svgeesus svgeesus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, accepting to make it easier to see the test results. The temporary red stuff can be removed later.

@svgeesus svgeesus merged commit ef203a9 into web-platform-tests:master Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants