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

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

From: Binyamin Laukstein via GitHub <sysbot+gh@w3.org>
Date: Sun, 26 Nov 2017 20:03:08 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-276851804-1511726587-sysbot+gh@w3.org>
laukstein has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-break-3] Proposal for pseudo-selector :wrapped-line ==
Currently there are no specs to target if element has wrapped content/text (outside the `overflow:hidden` area). It could be usable for example to decide if to show customized tooltip, apply special style, show dropdown, and probably more usecases.

Landing multiple line wrapping proposal #390 would make this even more actual, could specify it with `:wrapped-line(n)` like `:wrapped-line(3)`.

For an example here is a CSS menu hack to decide if to show dropdown with wrapped elements http://kizu.ru/fun/chevron/, perhaps `:wrapped-line` could simplify things.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2011 using your GitHub account
Received on Sunday, 26 November 2017 20:03:18 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 9 October 2019 08:16:38 UTC