Skip to content

[css-pseudo-4] Painting selection background outside inline replaced content #4624

Closed

Description

@fantasai

@TalbotG noticed that Blink paints the area below a baseline-aligned highlighted image, but Firefox does not. Currently the spec only allows painting highlights within the border box of an image; should we adjust it to allow painting within the full height of the line box for inline replaced elements or somesuch?

Activity

  1. TalbotG commented on Jan 6, 2020

    @TalbotG
    Collaborator

    Blink paints the area below a baseline-aligned highlighted image, but Firefox does not.

    Test:
    http://www.gtalbot.org/BrowserBugsSection/CSS4Pseudo/active-selection-045-new.html

    Expected result:
    http://www.gtalbot.org/BrowserBugsSection/CSS4Pseudo/reference/ref-nothing-below.xht

  2. kojiishi commented on Jan 7, 2020

    @kojiishi
    Contributor

    This is intentional, Blink wants to paint the whole line box, and also gaps between lines when lines wrap.

    I believe WebKit has the same behavior too, no? @litherum

  3. TalbotG commented on Jan 7, 2020

    @TalbotG
    Collaborator

    Epiphany Technological Preview 3.34.0-32-g514d1bfb6 (WebKitGTK 2.26.1) has the same behavior as Blink (Chromium 78 and 81); it paints the whole line box.

  4. fantasai commented on Dec 31, 2020

    @fantasai
    CollaboratorAuthor

    Fixed in a414c09 via #5395

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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