Skip to content

Commit

Permalink
fix(css): remove the unimplemented src() (mdn#36839)
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkarRuikar authored Nov 26, 2024
1 parent 866b654 commit 6fbfac8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 0 additions & 4 deletions files/en-us/web/css/at-rule-functions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ The {{CSSxRef("@import")}} at-rule is used to import styles from other styleshee

- {{CSSxRef("@import", "@import url()")}}
- : Imports a stylesheet file from the specified URL.
- {{CSSxRef("@import", "@import src()")}}
- : Imports a stylesheet file from the specified source.
- {{CSSxRef("@import", "@import supports()")}}
- : Imports a stylesheet file based on browser support.
- {{CSSxRef("@import", "@import layer()")}}
Expand All @@ -49,8 +47,6 @@ The {{CSSxRef("@namespace")}} at-rule is used to specify XML namespaces to be us

- {{CSSxRef("@namespace", "@namespace url()")}}
- : Defines XML namespace from the specified URL.
- {{CSSxRef("@namespace", "@namespace src()")}}
- : Defines XML namespace from the specified source.

## @container functions

Expand Down
7 changes: 4 additions & 3 deletions files/en-us/web/css/url_value/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The **`<url>`** [CSS](/en-US/docs/Web/CSS) [data type](/en-US/docs/Web/CSS/CSS_T
## Syntax

```plain
<url> = <url()> | <src()>
<url> = <url()>
```

### Values
Expand All @@ -21,8 +21,9 @@ The value is either of the following:

- [`<url()>`](/en-US/docs/Web/CSS/url_function)
- : The `url()` function accepts only a URL literal string (with or without quotes).
- `<src()>`
- : This function can accept a URL string or a [CSS variable](/en-US/docs/Web/CSS/var).

> [!NOTE]
> The specification defines an alternative function called `src()` that accepts a URL string or a [CSS variable](/en-US/docs/Web/CSS/var). But no web browser has implemented the function yet.
## Specifications

Expand Down

0 comments on commit 6fbfac8

Please sign in to comment.