Skip to content

[css-inline] baseline-shift vs. vertical-align on SVG text #3979

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

Open
dirkschulze opened this issue May 27, 2019 · 3 comments
Open

[css-inline] baseline-shift vs. vertical-align on SVG text #3979

dirkschulze opened this issue May 27, 2019 · 3 comments

Comments

@dirkschulze
Copy link
Contributor

dirkschulze commented May 27, 2019

The spec has an open issue regarding support of baseline-shift: https://drafts.csswg.org/css-inline-3/#baseline-shift-property

At this point, WebKit, Blink and EdgeHTML support the baseline-shift property (some with bugs) for SVG text. Only Firefox doesn't support the baseline-shift property. Various non-browser UAs support baseline-shift on import as well.

On the other hand, there is no UA that supports vertical-align on SVG text. For that reason I'd like to ask to remove the issue from the spec and keep the baseline-shift property.

@dirkschulze dirkschulze added the css-inline-3 Current Work label May 27, 2019
@fantasai
Copy link
Collaborator

fantasai commented Jul 1, 2019

@dirkschulze I think the issue is about the baseline value of baseline-shift, specifically. I'll clarify that in the issue wording. Lmk if you have any info on that question specifically? :)

@AmeliaBR
Copy link
Contributor

AmeliaBR commented Jul 1, 2019

There's an issue in that section about the baseline keyword, but there is also the following warning to authors:

Authors should use the vertical-align shorthand instead of this property.

Based on Dirk's comments, that warning should probably be modified to say “…except in SVG content.” (Or “legacy SVG content” or “SVG content for legacy user agents”.)

@fantasai
Copy link
Collaborator

OK, made the edits suggested by @AmeliaBR.

@dirkschulze I'm not entirely sure which issue you might have been referring to, would you mind taking a look and letting me know if your concerns are resolved?

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

No branches or pull requests

3 participants