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
At-rules are CSS statements that instruct CSS how to behave. Some at-rules have strict placement requirements that must be followed for the stylesheet to work correctly. For example:
8
+
9
+
- The `@charset` rule must be placed at the very beginning of a stylesheet, before any other rules, comments, or whitespace.
10
+
- The `@import` rule must be placed at the beginning of a stylesheet, before any other at-rules (except `@charset` and `@layer` statements) and style rules.
11
+
12
+
If these rules are placed incorrectly, browsers will ignore them, resulting in potential encoding issues or missing imported styles.
13
+
14
+
## Rule Details
15
+
16
+
This rule warns when it finds:
17
+
18
+
1. A `@charset` rule that is not the first rule in the stylesheet
19
+
2. An `@import` rule that appears after any other at-rules or style rules (except `@charset` and `@layer` statements)
You can disable this rule if your stylesheets don't use `@charset` or `@import` rules, or if you're not concerned about the impact of incorrect placement on encoding and style loading.
CSS Grid allows you to define named grid areas using the `grid-template-areas` property. Each string in the value creates a row, and each cell token in the string creates a column. Multiple cell tokens with the same name within and between rows create a single named grid area that spans the corresponding grid cells.
8
+
9
+
A named grid area is considered invalid if:
10
+
11
+
1. The strings in the value have different numbers of cell tokens
12
+
2. No cell tokens are present
13
+
3. Cell tokens with the same name do not form a rectangle
14
+
15
+
## Rule Details
16
+
17
+
This rule prevents invalid named grid areas in CSS grid templates.
0 commit comments