Skip to content

Invisible selection color in Safari 18.0 #287

Description

@Sameri11

Description

Selection color in code blocks in Safari 18.0 is unreadable. It's actually there (at first I thought selection doesn't work at all, but no)

Image

In Chrome looks as expected:

Image

In both browsers there's correct color from here:

code[class*='language-'] ::selection {
color: inherit;
background: #445262;
}

I guess there's some special behavior in Safari, such as different color space or something?

Environment

OS: macOS 14.7 Sonoma
Safari: 18.0
Chrome: 134.0.6998.89

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions