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

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