8000 [css-pseudo-4]: How should a selected spelling error be painted? · Issue #2850 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-pseudo-4]: How should a selected spelling error be painted? #2850

@dbates-wk

Description

@dbates-wk

Looking to understand https://drafts.csswg.org/css-pseudo/#highlight-painting. How should the following markup be painted when you select the entire contents of <p>:

<!DOCTYPE html>
<html>
<head>
<style>
body {
    text-decoration: underline;
    background-color: magenta;
}
p {
    color: black;
    background-color: white;
}
p::spelling-error {
    color: red;
}
p::selection {
    background-color: lightblue;
}
</style>
</head>
<body>
<p contenteditable="true">Select this entire sentence with the missspelled word.</p>
</body>
</html>

Should it paint as:

pseudo-elements-replace2

?

OR

pseudo-elements-inherit

?

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