Skip to content

[css-inline] Initial letter, sizing, and overflow #2703

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
frivoal opened this issue May 25, 2018 · 4 comments
Closed

[css-inline] Initial letter, sizing, and overflow #2703

frivoal opened this issue May 25, 2018 · 4 comments

Comments

@frivoal
Copy link
Collaborator

frivoal commented May 25, 2018

(this is a follow up from #947)

  1. How does an initial letter contribute to the min-content intrinsic size?

    Suggestion:

    • The exclusion area's enlargement caused by initial-letter-wrap: grid doesn't count
    • We should count from the start edge of the containing block content area to the end border edge of the initial letter. both in the inline and block directions. we could go to the end margin edge, but on the end side it is a mean to separate from the surrounding content, and if there's no content, there's nothing to separate from.
  2. If the containing block is not tall / wide enough, does the initial letter cause scrollable overflow?

    My suggestion, linked to the answer to the previous question:

    Only to the extend that the (end side) border edge of the initial letter overflows. Overflow of the end side margin or initial-letter-wrap: grid-induced exclusion area is not useful to scroll to.

@frivoal frivoal added the css-inline-3 Current Work label May 25, 2018
@dauwhe dauwhe self-assigned this May 25, 2018
@fantasai
Copy link
Collaborator

I think for intrinsic sizing, we consider the margin box of the initial letter.
For overflow, we consider its border box.
This is what typically happens for boxes, anyway.

@dauwhe dauwhe added the Agenda+ label May 25, 2018
@fantasai
Copy link
Collaborator

Intrinsic size contributions use the outer edges: https://drafts.csswg.org/css-sizing-3/#contributions
Scrollable overflow uses the border edges: https://drafts.csswg.org/css-overflow-3/#scrollable

I don't think we need to make any edits to css-inline-3, unless css-overflow-3 later adds some kind of exceptional behavior for inline boxes, in which case we might need clarifications here.

@css-meeting-bot
Copy link
Member

The Working Group just discussed Initial letter, sizing, and overflow.

The full IRC log of that discussion <dael> Topic: Initial letter, sizing, and overflow
<dael> github: https://github.com//issues/2703
<dael> fantasai: florian do we need to do anything on this?
<dael> florian: I don't think need to discuss now. Prob fine, I'll re-read
<dael> Rossen: Resolve no change?
<dael> florian: Yeah and I'll re-open if I find something
<dael> resolved: no change is needed

@frivoal
Copy link
Collaborator Author

frivoal commented Jul 25, 2018

It's not exactly what I had in mind, but it's close enough, and consistency with the rest of the box model outweighs any possibly nitpick I might have had.

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

4 participants