8000 [selectors-5] Proposal for pseudo-selector :overflowed-content · Issue #2011 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[selectors-5] Proposal for pseudo-selector :overflowed-content #2011

@laukstein

Description

@laukstein

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.

Update: Is changed to :overflowed-content [:overflowed-content-x, :overflowed-content-y]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0