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

[css-inline] HTML taking a dependency on ascent/descent metric #5266

Closed
annevk opened this issue Jun 26, 2020 · 4 comments
Closed

[css-inline] HTML taking a dependency on ascent/descent metric #5266

annevk opened this issue Jun 26, 2020 · 4 comments
Labels
Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-inline-3 Current Work css-inline-4

Comments

@annevk
Copy link
Member

annevk commented Jun 26, 2020

FYI: HTML is taking a dependency on https://drafts.csswg.org/css-inline/#ascent-metric (and descent) in whatwg/html#5429. It'd be appreciated to get a heads up if these break at some point in the future.

cc @jfkthame @yiyix

@fantasai
Copy link
Collaborator

fantasai commented Jul 6, 2020

@annevk That seems fine in theory, but I do want to point out that the ascent/descent metrics as used by CSS are non-interoperable across implementations, and we're not able to fix this. (There's some discussion of this in #2228 and some follow-up in #4792 ) I'm not sure what the state of the CanvasAPI is on that front.

@annevk
Copy link
Member Author

annevk commented Jul 7, 2020

What I'd personally like is for canvas to use the same underlying drawing primitives so "ideally" it would be equally non-interoperable until that is either sorted or accepted as implementation-defined behavior. @jfkthame can speak much more to all this though.

@fantasai
Copy link
Collaborator

fantasai commented Jul 9, 2020

@annevk Sounds good. You might also want to cross link into the definitions for “alphabetic baseline”, “hanging baseline”, and “ideographic baseline” in https://www.w3.org/TR/css-inline-3/#baseline-types

I filed #5312 on the emHeightAscent and emHeightDescent metrics.

annevk added a commit to whatwg/html that referenced this issue Jul 10, 2020
In particular hanging, alphabetic, and ideographic-under. (This also clarifies that ideographic meant ideographic-under.)

See w3c/csswg-drafts#5266 for context.
annevk added a commit to whatwg/html that referenced this issue Jul 19, 2020
In particular hanging, alphabetic, and ideographic-under. (This also clarifies that ideographic meant ideographic-under.)

See w3c/csswg-drafts#5266 for context.
@annevk
Copy link
Member Author

annevk commented Jul 19, 2020

Done in whatwg/html#5723. I think this can be closed then. And we can use #5312 to track the remainder.

@fantasai fantasai added the Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. label Jul 19, 2020
mfreed7 pushed a commit to mfreed7/html that referenced this issue Sep 11, 2020
In particular hanging, alphabetic, and ideographic-under. (This also clarifies that ideographic meant ideographic-under.)

See w3c/csswg-drafts#5266 for context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-inline-3 Current Work css-inline-4
Projects
None yet
Development

No branches or pull requests

2 participants