w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.5k stars 664 forks source link

[css-inline] Is overflow created by `leading-trim` ink-overflow or scroll-overflow? #4010

Closed kojiishi closed 4 years ago

kojiishi commented 5 years ago

leading-trim can cause overflows in block direction. Should these overflow be ink-overflow or scroll-overflow?

@fantasai

fantasai commented 4 years ago

Good question. I haven't thought about it so deeply. My first thought was ink overflow, but on second thought all it does is make the line box slimmer, and overflowing scrollable overflow in a line box are still scrollable overflow. See atomic inline testcase

fantasai commented 4 years ago

another testcase, this time inline element

fantasai commented 4 years ago

So I think a good rule is, the overflow is whatever it would be if the line box is smaller than expected?

litherum commented 4 years ago

yes, I agree with @fantasai

css-meeting-bot commented 4 years ago

The CSS Working Group just discussed ink or scrollable overflow for leading-trim, and agreed to the following:

The full IRC log of that discussion <TabAtkins> Topic: ink or scrollable overflow for leading-trim
<astearns> github: https://github.com/w3c/csswg-drafts/issues/4010
<TabAtkins> koji: leading-trim trims upper or lower half of linebox
<TabAtkins> koji: Is the area it overflows considered ink or scrollable?
<TabAtkins> koji: No strong opinion from me
<TabAtkins> myles: Would it be overflow at all? Woudln't it just make the box shorter?
<TabAtkins> florian: It makes the box smaller. But the content of the box might stick out of that.
<TabAtkins> florian: So is that poking ink or scrollable?
<TabAtkins> myles: So that's not the stuff that's got trimmed.
<TabAtkins> florian: Right. The box got smaller, so theoretically it might slightly overflow.
<TabAtkins> astearns: No wrap differences, it's just the stuff sticking out.
<TabAtkins> TabAtkins: If you write in Zapfino, that's just ink overflow, right?
<TabAtkins> myles: Yes, it is. We're in agreement.
<TabAtkins> myles: fantasai says "overflow is whatever it would have been", that's unchanged. I agree with that.
<TabAtkins> florian: Ah yes, I misread.
<TabAtkins> astearns: So no change, do we need a clarification?
<TabAtkins> koji: We might want to clarify that it's ink overflow, then.
<TabAtkins> florian: Rather, things that today would be ink when they stick out, stay ink. Things that would be scrollable, stay scrollable. leading-trim doesn't hcange that.
<TabAtkins> astearns: Objections?
<TabAtkins> RESOLVED: leading-trim doesn't change the overflow state of anything sticking out of the linebox.