mdn / mdn/content

::highlight() page mentions `-webkit-*` as allowable property, but spec doesn't mention these

Open
#42,863 1 comment 0 reactions 0 assignees View on GitHub
Content:CSS
Dominant language
Markdown
Stars
11k
Forks
23.2k
Avg merge
2d 9h
Merged PRs (30d)
331

Description

### MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/::highlight

### What specific section or headline is this issue about?

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/::highlight#allowable_properties

### What information was incorrect, unhelpful, or incomplete?

The section includes

> [-webkit-text-stroke-color](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/-webkit-text-stroke-color), [-webkit-text-fill-color](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/-webkit-text-fill-color) and [-webkit-text-stroke-width](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/-webkit-text-stroke-width)

But these don't seem to be mentioned [in the spec](https://drafts.csswg.org/css-pseudo/#highlight-styling).

### What did you expect to see?

Expected only properties mentioned in the spec to be listed.

### Do you have any supporting links, references, or citations?

Originally reported by @flying-sheep via https://github.com/mdn/browser-compat-data/issues/28852.

### Do you have anything more you want to share?

_No response_

### MDN metadata

Page report details

* Folder: `en-us/web/css/reference/selectors/_doublecolon_highlight`
* MDN URL: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/::highlight
* GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/css/reference/selectors/_doublecolon_highlight/index.md
* Last commit: https://github.com/mdn/content/commit/85fccefc8066bd49af4ddafc12c77f35265c7e2d
* Document last modified: 2025-11-07T15:58:06.000Z

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.