Skip to content

[css-inline-3] Question about the relationship among text-box-trim, text-box-edge and text-line-edge. #10007

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

Closed
Clqsin45 opened this issue Feb 27, 2024 · 3 comments
Labels
Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. css-inline-3 Current Work

Comments

@Clqsin45
Copy link

Hi CSS specification authors!
I'm trying to implemente these properties.
Reading #8829 (comment), I have this question in my mind. Since the specification is not updated yet, may I ask some quick questions to unblock my implementation work?

My question might be: In the case below, how should I trim the box?

<div style=”text-box-trim: ? text-box-edge: leading”> 
<span>TEXT</span>
</div>

The div tag wants to trim the half leading, while the span does not do so. In this case, should the box of

be trimmed to respect text-box-trim/text-box-edge’s value (like A)? Or should it not be trimmed to respect its inline text’s style( as B)?
Capture

(Sorry I'm very new to this world. if I asked an unclear question, please let me know!)

@Clqsin45
Copy link
Author

cc @fantasai, @kojiishi

@frivoal frivoal added the css-inline-3 Current Work label Feb 27, 2024
@fantasai
Copy link
Collaborator

text-box-trim on the DIV affects the line box contained by the DIV, and it doesn't impact the span. So the answer is A.

@fantasai
Copy link
Collaborator

(Also sorry for not responding earlier. Please feel free to email me directly if I'm not paying attention.)

@fantasai fantasai added the Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. css-inline-3 Current Work
Projects
None yet
Development

No branches or pull requests

3 participants