- From: fantasai via GitHub <sysbot+gh@w3.org>
- Date: Tue, 20 Mar 2018 20:41:26 +0000
- To: public-css-archive@w3.org
Wrt `::first-line` and `::first-letter`, I think the ellipsis should be considered part of the first line, but not the first letter pseudo. The `::first-letter` pseudo behaves much more like an inline element, and the ellipsis is placed outside of any elements. Meanwhile `::first-line` encompasses the entire line, it would be weird if something on it were somehow exempted. @MatsPalmgren Your third option for placing the ellipsis seems pretty reasonable to me. When drafting up the spec we wanted to allow implementations to re-use as much of the existing `text-overflow` machinery as possible, hence the MAY -- as long as you're otherwise discarding content after the break, placing it effectively “underneath” the ellipsis for event handling is fine. It's only when the content needs to be pushed to another container that we need to make the ellipsis replace it layout-wise rather than just paint-wise. In typical cases, the author will not be able to tell the difference between the two behaviors. But layout replacement _can_ affect the height of the line, which makes it a more complicated mechanism to implement correctly (and as noted, can introduce cycles, which then need to be broken). I would rather not require that extra complexity for this case, where it is not needed and the behavior change in real layouts is slight. (At some point, as we expand CSS's ability to break flows between boxes, we may want to require layout replacement here, to make discarded flows consistent with continued ones; but since such a change seems unlikely to break pages, it seems safe to allow the easier thing now.) -- GitHub Notification of comment by fantasai Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/390#issuecomment-374749084 using your GitHub account
Received on Tuesday, 20 March 2018 20:41:29 UTC