-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
40 lines (28 loc) · 1023 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
title: ":-moz-loading"
slug: Web/CSS/:-moz-loading
page-type: css-pseudo-class
status:
- non-standard
---
{{CSSRef}}{{Non-standard_header}}
The **`:-moz-loading`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) is a [Mozilla extension](/en-US/docs/Web/CSS/Mozilla_Extensions) that matches elements that can't be displayed because they have not started loading, such as images that haven't started to arrive yet. Note that images that are _in the process_ of loading _are not_ matched by this pseudo-class.
> **Note:** This selector is mainly intended to be used by theme developers.
## Syntax
```css
:-moz-loading {
/* ... */
}
```
## Examples
### Setting a background for images that are loading
```css
:-moz-loading {
background-color: #aaa;
background-image: url(loading-animation.gif) center no-repeat;
}
```
## Specifications
Not part of any standard.
## See also
- {{cssxref(":-moz-broken")}}, {{cssxref(":-moz-suppressed")}}, {{cssxref(":-moz-user-disabled")}}