Skip to content

Highlight text selection #9993

Closed
Closed

Description

@SimonSapin

We already support keyboard text selection (with Shift + arrows) in <input>, but it’s invisible. This issue is about changing the text color and background color of selected text, like other browsers do. Colors can be hard-coded at first, #8077 is about adding a ::selection pseudo-element to change them with CSS.

I don’t know if we’re better off splitting text fragments in layout at selection boundaries, or only splitting display items. @pcwalton, do you have an opinion on this?

CC @paulrouget

Activity

  1. jdm commented on Mar 14, 2016

    @jdm
    Member

    See also #4410 and #4409.

  2. pcwalton commented on Mar 14, 2016

    @pcwalton
    Contributor

    The right thing is to split fragments but not text runs, I believe. That's because anything you can style as one unit in CSS needs to be a fragment, but anything ligatures work across needs to be one text run.

  3. self-assigned this
    on Mar 23, 2016
  4. mbrubeck commented on Mar 23, 2016

    @mbrubeck
    Contributor

    I've started working on the layout parts of this (fragment splitting and display list generation).

  5. added 5 commits that reference this issue on Mar 24, 2016
    369c1a1
    79b80b6
    8f6f0c3
    bf659cf
    6171000
  6. added 2 commits that reference this issue on Mar 25, 2016
    f125478
    bed91b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions