W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2017

Re: [csswg-drafts] [css-break-3][css-overflow] Proposal for pseudo-selector :wrapped-line

From: Binyamin Laukstein via GitHub <sysbot+gh@w3.org>
Date: Mon, 27 Nov 2017 23:21:13 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-347362114-1511824872-sysbot+gh@w3.org>
@tomhodgins, with `:wrapped-line` I meant content is cropped by `overflow:hidden` probably btter naming would be **`:cropped-content`**

testcase https://output.jsbin.com/rawezas/5/quiet
![grabilla uh8164](https://user-images.githubusercontent.com/183966/33294565-e649f746-d3d9-11e7-8c60-4f35d3490a76.png)
Simplified code:
```
p {
    overflow: hidden;
    max-width: 3em;
    white-space: nowrap;
}
p:cropped-content {
    color: red;
}
<p>Is cropped because exceeds 3em width, expected to be in red because of :cropped-content</p>
```

-- 
GitHub Notification of comment by laukstein
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2011#issuecomment-347362114 using your GitHub account
Received on Monday, 27 November 2017 23:21:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 27 November 2017 23:21:18 UTC