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

Add & move Formal syntax section for css at-rule #37346

Merged
merged 2 commits into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 4 additions & 4 deletions files/en-us/web/css/@color-profile/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ The **`@color-profile`** [CSS](/en-US/docs/Web/CSS) [at-rule](/en-US/docs/Web/CS
- `saturation`
- : This option was created to preserve the relative saturation (chroma) of the original, and to keep solid colors pure. However, it experienced interoperability problems like the perceptual intent.

## Formal syntax

{{csssyntax}}

## Examples

This example is from the specification and demonstrates using offset printing to ISO 12647-2:2004 using the CGATS/SWOP TR005 2007 characterization data on grade 5 paper with an ink limit of 300% Total Area Coverage, and medium gray component replacement (GCR).
Expand All @@ -51,10 +55,6 @@ The `src` descriptor specifies the URL to retrieve the color-profile information
}
```

## Formal syntax

{{csssyntax}}

## Specifications

{{Specifications}}
Expand Down
4 changes: 4 additions & 0 deletions files/en-us/web/css/@container/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ The following descriptors can be used within the container condition:
- `width`
- : The width of the container expressed as a {{cssxref("length")}} value.

## Formal syntax

{{csssyntax}}

## Examples

### Setting styles based on a container's size
Expand Down
8 changes: 4 additions & 4 deletions files/en-us/web/css/@media/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ Some media queries have corresponding [user agent client hints](/en-US/docs/Web/
These are HTTP headers that request content that is pre-optimized for the particular media requirement.
They include {{HTTPHeader("Sec-CH-Prefers-Color-Scheme")}} and {{HTTPHeader("Sec-CH-Prefers-Reduced-Motion")}}.

## Formal syntax

{{csssyntax}}

## Accessibility

To best accommodate people who adjust a site's text size, use [`em`](/en-US/docs/Web/CSS/CSS_Values_and_Units#numeric_data_types)s when you need a {{cssxref("<length>")}} for your [media queries](/en-US/docs/Web/CSS/CSS_media_queries/Using_media_queries).
Expand All @@ -186,10 +190,6 @@ Because media queries provide insights into the capabilities—and by extension,

Because of this potential, a browser may opt to fudge the returned values in some manner in order to prevent them from being used to precisely identify a computer. A browser might also offer additional measures in this area; for example, if Firefox's "Resist Fingerprinting" setting is enabled, many media queries report default values rather than values representing the actual device state.

## Formal syntax

{{csssyntax}}

## Examples

### Testing for print and screen media types
Expand Down
Loading