Re: [csswg-drafts] [css-overflow] Is the box a scroll container if only one of 'overflow-x' or 'overflow-y' is 'clip'?

The Working Group just discussed `overflow:clip`, and agreed to the following resolutions:

* `RESOLVED: text-overflow and resize apply to elements with 'overflow: clip' just as they apply to elements with 'overflow: hidden'`
* `RESOLVED: when overflow:clip is propagated to the viewport it's changes to overflow:hidden the same way visible is changed to auto`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: overflow:clip<br>
&lt;florian> https://github.com/w3c/csswg-drafts/issues/1971#issuecomment-377078084<br>
&lt;florian> github: https://github.com/w3c/csswg-drafts/issues/1971#issuecomment-377078084<br>
&lt;dael> florian: Missed the telecon where we discussed. We recently resolved overflow:clip does not trigger BFC. I think it failed to considered some of the things that implies.<br>
&lt;dael> florian: The motivation that triggered adding to spec was usage in combo with contain:paint so you can have contain:paint with text overflow or resize property. Only apply to overflow not visible elements. We don't want to use contain:paint with overflow:hidden because UA might look for too many resources.<br>
&lt;dael> florian: If overflow:clip does not creat a BFC are impl comfrotable saying resize and text overflow applies to elements that are overflow:clip?<br>
&lt;dael> TabAtkins: During discussion before we couldn't come up with you'd want overflow without scrolling, this is the reason. There are properties that depend on things being non-visible.<br>
&lt;dael> florian: Resize.<br>
&lt;dael> fantasai: I think it doesn't matter for resize.<br>
&lt;dael> florian: I'm not saying should not apply. but if we're going with it's not a BFC we also have a bunch of properties that should change to not visible or clip.<br>
&lt;dael> dbaron: There were use caes for the opposite.<br>
&lt;fantasai> and I think that 'text-overflow' should never have keyed off of 'overflow'<br>
&lt;dael> TabAtkins: This is the use case for this situation. WE only can up with use cases for the other resolution. Something tha tacts like overflow:visible but it's clipped.<br>
&lt;dael> florian: NOt effect margin collapsing.<br>
&lt;dael> TabAtkins: Or sticky or scrollsnap.<br>
&lt;dael> TabAtkins: This is a reason for the opposite where it's like hidden but don't scroll.<br>
&lt;dael> dbaron: They can't apply for text:overflow partly because this is a purely paint time effect.<br>
&lt;dael> florian: This is also a purely paint time.<br>
&lt;dael> fantasai: True.<br>
&lt;dael> dbaron: I guess those two could maybe be changed to not include the visible. Nothing is like this because we've put overflow does not equal visible across all our specs where that's not what we mean.<br>
&lt;dael> fantasai: I think a lot that key off overflow not visible key off if it's a BFC.<br>
&lt;dael> fantasai: I think a lot of things are keying off that. There's many effects that key off of that and we don't have to handle the spec. There may be sone that don't.<br>
&lt;dael> florian: That we need to rename was mentioned. If we clarify that doesn't apply to text-overflow and resize that solve my first concern.<br>
&lt;dael> florian: Are we okay closing that sub topic?<br>
&lt;dael> astearns: Additional concerns?<br>
&lt;dael> florian: Assuming we don't find another problem we can clarify the previous resolution to mean text-overflow and resize refer to non-visible elements.<br>
&lt;fantasai> fantasai: To rephrase Florian without negatives, text-overflow and resize apply to elements with 'overflow: clip' just as they apply to elements with 'overflow: hidden'<br>
&lt;dael> florian: The second concern was about what overflow:clip means when applied to the document or body element and propegate to viewport<br>
&lt;dael> fantasai: Same way we transpate visible to auto we translate clip to auto.<br>
&lt;dael> florian: That's good.<br>
&lt;dael> s/transpate/translate<br>
&lt;dael> astearns: Resolve on both?<br>
&lt;dael> astearns: Prop: text-overflow and resize apply to elements with 'overflow: clip' just as they apply to elements with 'overflow: hidden'<br>
&lt;dael> RESOLVED: text-overflow and resize apply to elements with 'overflow: clip' just as they apply to elements with 'overflow: hidden'<br>
&lt;dael> astearns: Prop 2: when overflow:clip is propagated to the viewport it's changes to overflow:hiddent he same way visible is changed to auto<br>
&lt;dael> RESOLVED: when overflow:clip is propagated to the viewport it's changes to overflow:hidden the same way visible is changed to auto<br>
&lt;dael> astearns: You're fine with the resolution?<br>
&lt;dael> florian: Yes. I'm mildly skeptical, but not objecting.<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1971#issuecomment-380148099 using your GitHub account

Received on Tuesday, 10 April 2018 15:42:54 UTC