You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have also used the [`::before`](/en-US/docs/Web/CSS/Reference/Selectors/::before) pseudo-element to show a "Loading..." overlay message until the element is defined. After definition, it is removed by setting the {{cssxref("content")}} to an empty string.
108
+
We have also used the [`::before`](/en-US/docs/Web/CSS/Reference/Selectors/::before) pseudo-element to show a "Loading..." overlay message until the element is defined. After definition, it is removed by setting the [`content`](/en-US/docs/Web/CSS/Reference/Properties/content) to an empty string.
109
109
110
110
The following JavaScript has been used to define the custom element. To allow you to see the state of the custom element before and after definition we run the {{domxref("CustomElementRegistry.define", "define()")}} method when the button is clicked.
Copy file name to clipboardExpand all lines: files/en-us/web/css/reference/selectors/_colon_fullscreen/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ This example applies a different background color to a {{htmlelement("div")}} el
44
44
</div>
45
45
```
46
46
47
-
The `:fullscreen` pseudo-class is used to override the {{cssxref("background-color")}} of the `<div>` when it is in fullscreen mode.
47
+
The `:fullscreen` pseudo-class is used to override the [`background-color`](/en-US/docs/Web/CSS/Reference/Properties/background-color) of the `<div>` when it is in fullscreen mode.
Copy file name to clipboardExpand all lines: files/en-us/web/css/reference/selectors/_doublecolon_after/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ The `::after` pseudo-element is an inline box generated as an immediate child of
60
60
61
61
An `::after` pseudo-element with a {{cssxref("display")}} value of `list-item` behaves like a list item, and can therefore generate a {{cssxref("::marker")}} pseudo-element just like an {{htmlelement("li")}} element.
62
62
63
-
If the {{cssxref("content")}} property is not specified, has an invalid value, or has `normal` or `none` as a value, then the `::after` pseudo-element is not rendered. It behaves as if `display: none` is set.
63
+
If the [`content`](/en-US/docs/Web/CSS/Reference/Properties/content) property is not specified, has an invalid value, or has `normal` or `none` as a value, then the `::after` pseudo-element is not rendered. It behaves as if `display: none` is set.
64
64
65
65
> [!NOTE]
66
66
> The [Selectors Level 3](https://drafts.csswg.org/selectors-3/#gen-content) specification introduced the double-colon notation `::after` to distinguish [pseudo-classes](/en-US/docs/Web/CSS/Reference/Selectors/Pseudo-classes) from [pseudo-elements](/en-US/docs/Web/CSS/Reference/Selectors/Pseudo-elements). Browsers also accept single-colon notation `:after`, introduced in CSS2.
Copy file name to clipboardExpand all lines: files/en-us/web/css/reference/selectors/_doublecolon_before/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ The `::before` pseudo-element is an inline box generated as an immediate child o
56
56
57
57
A `::before` pseudo-element with a {{cssxref("display")}} value of `list-item` behaves like a list item, and can therefore generate a {{cssxref("::marker")}} pseudo-element just like an {{htmlelement("li")}} element.
58
58
59
-
If the {{cssxref("content")}} property is not specified, has an invalid value, or has `normal` or `none` as a value, then the `::before` pseudo-element is not rendered. It behaves as if `display: none` is set.
59
+
If the [`content`](/en-US/docs/Web/CSS/Reference/Properties/content) property is not specified, has an invalid value, or has `normal` or `none` as a value, then the `::before` pseudo-element is not rendered. It behaves as if `display: none` is set.
60
60
61
61
> [!NOTE]
62
62
> The [Selectors Level 3](https://drafts.csswg.org/selectors-3/#gen-content) specification introduced the double-colon notation `::before` to distinguish [pseudo-classes](/en-US/docs/Web/CSS/Reference/Selectors/Pseudo-classes) from [pseudo-elements](/en-US/docs/Web/CSS/Reference/Selectors/Pseudo-elements). Browsers also accept single-colon notation `:before`, introduced in CSS2.
0 commit comments