Skip to content
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

fix(css): remove content:contents #36386

Merged
merged 4 commits into from
Oct 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions files/en-us/web/css/content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ The value can be:

- One of two keywords — `none` or `normal`
OnkarRuikar marked this conversation as resolved.
Show resolved Hide resolved
- `<content-replacement>` when replacing a DOM node. `<content-replacement>` is always an `<image>`.
- A `<content-list>` when replacing pseudo-elements and margin boxes. A content-list is a list of one or more anonymous inline boxes appearing in the order specified. Each `<content-list>` item is either `contents` or of type [`<string>`](#string), [`<image>`](#image), [`<counter>`](#counter), [`<quote>`](#quote), [`<target>`](#target), or [`<leader()>`](#leader).
- A `<content-list>` when replacing pseudo-elements and margin boxes. A content-list is a list of one or more anonymous inline boxes appearing in the order specified. Each `<content-list>` item is of type [`<string>`](#string), [`<image>`](#image), [`<counter>`](#counter), [`<quote>`](#quote), [`<target>`](#target), or [`<leader()>`](#leader).
OnkarRuikar marked this conversation as resolved.
Show resolved Hide resolved
- An optional alternative text value of a `<string>` or `<counter>`, preceded by a slash (`/`).

The keywords and data types mentioned above are described in more detail below:
Expand All @@ -80,10 +80,6 @@ The keywords and data types mentioned above are described in more detail below:

- : The default value. Computes to `none` for the {{cssxref("::before")}} and {{cssxref("::after")}} pseudo-elements. For other pseudo-elements, the content will be the initial (or normal) content expected for that {{cssxref("::marker")}}, {{cssxref("::placeholder")}}, or {{cssxref("::file-selector-button")}}. For regular elements or page margin boxes, this computes to `contents`.
OnkarRuikar marked this conversation as resolved.
Show resolved Hide resolved

- `contents`

- : Adds the contents of the element itself to the generated content value.

- {{cssxref("&lt;string&gt;")}}

- : A sequence of characters enclosed in matching single or double quotes. Multiple string values will be concatenated (there is no concatenation operator in CSS).
Expand Down