-
Notifications
You must be signed in to change notification settings - Fork 711
[css-pseudo] should all highlights have paired defaults? #7837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The bot missed adding the minutes. Here’s a hand-edited version: RESOLVED: paired defaults apply to all highlights The full IRC log of that discussion
|
#6665 assumed we would resolve in favour of ::target-text using paired defaults (see this thread), so no edits needed :)
|
#6386 asked a bunch of questions about paired defaults, which is the compat behaviour where the UA default ::selection ‘color’ and ‘background-color’ (‘HighlightText’ and ‘Highlight’) are only used when neither were set by the author.
In particular, question 3 asks whether this should apply to the other highlights too, and this issue is meant to resolve that question. Currently ::target-text is the only pseudo with defaults for those properties (‘MarkText’ and ‘Mark’), so it’s the only pseudo that’s affected by this issue.
One reason to say no is that ::target-text doesn’t have the legacy of ::selection that made this rule necessary. One reason to say yes is consistency, since the highlights are already a complicated enough pile of exceptions without adding an exception for just one of them. Another is that the behaviour can be useful for the same reasons it is for ::selection, that is, avoiding situations where the author setting only one of the properties yields an illegible result in another browser with different defaults.
(see also: fantasai’s comment, my comment, emilio’s comment)
The text was updated successfully, but these errors were encountered: