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-3] text-edge-over/text-edge-under vs text-edge shorthand #5236

Open
fantasai opened this issue Jun 18, 2020 · 2 comments
Open

[css-inline-3] text-edge-over/text-edge-under vs text-edge shorthand #5236

fantasai opened this issue Jun 18, 2020 · 2 comments

Comments

@fantasai
Copy link
Collaborator

@dbaron raised the question of whether we need the longhands for text-edge, or just a shorthand. Are there use cases where it would be convenient to cascade them independently?

@fantasai fantasai added the css-inline-3 Current Work label Jun 18, 2020
@frivoal
Copy link
Collaborator

frivoal commented Jun 18, 2020

I am not convinced we need the longhands, but we should certainly have a shorthand. The simplest grammar would probably be this:

text-edge: leading | normal | <over-metric> <under-metric>
<over-metric>: text | cap | ex | ideographic | ideographic-ink
<under-metric>: text | alphabetic | ideographic | ideographic-ink

I suppose we could also make the second value optional, and map it to the same value as the first one in the cases where the pairs exist (text, ideographic, and ideographic-ink). What the implied second value would be if you picked cap or ex as the over side is less obvious though. Maybe cap, which is a broad metric, might be matched with text for the under side, while ex, which is a tight metric, would be with alphabetic.

@fantasai
Copy link
Collaborator Author

I've drafted it up with longhands for now; defaulting missing keywords to text because that's the safest.

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

2 participants