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
1. Removed "Note that this considered "nice to have" and not "must have" as it's not necessary.
2. Updated to include compression (thank you @ericlaw1979 !)
Copy file name to clipboardExpand all lines: spec.bs
+20-6Lines changed: 20 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -71,13 +71,27 @@ External stylesheets are NOT allowed. Inline style attributes MAY include only c
71
71
Color must NOT be the sole method of conveying meaning. Prioritize accessibility and legibility.
72
72
### 4.6 Transport (TLS) — MUST
73
73
SLIM documents MUST be served over HTTPS (HTTP over TLS). Plain HTTP is permitted only for offline/local environments where TLS is technically infeasible.
74
-
### 4.7 Accessibility — SHOULD
74
+
### 4.7 Content Delivery and Compression - MUST
75
+
SLIM documents **MUST** be delivered with HTTP content compression enabled when served over a network, unless operating in an environment where compression is technically infeasible or prohibited by policy.
76
+
77
+
- **Preferred algorithms:**
78
+
- **Brotli (`br`)** — SHOULD be used for HTTPS delivery to modern browsers.
79
+
- **Zstandard (`zstd`)** — SHOULD be used for non-browser delivery contexts or where Brotli is unsupported.
80
+
- **Fallbacks:**
81
+
- **Gzip (`gzip`)** MAY be used for maximum compatibility where Brotli and Zstandard are not supported.
82
+
- Compression SHOULD target the HTML payload and any permitted inline text-based resources (e.g., inline CSS within allowed style attributes).
83
+
- Authors MUST ensure compression does not interfere with accessibility tooling or downstream caching.
84
+
85
+
**Rationale:**
86
+
Compression substantially reduces payload size and improves load times in low-bandwidth or austere network conditions, which aligns with SLIM’s core goal of efficiency.
87
+
88
+
### 4.8 Accessibility — SHOULD
75
89
Use a clear heading structure and meaningful link text, and avoid reliance on color alone for meaning. ARIA attributes are not required, but semantic clarity is encouraged.
76
-
### 4.7 Tracking — MUST NOT
90
+
### 4.9 Tracking — MUST NOT
77
91
No tracking scripts, analytics beacons, or advertising pixels are permitted. If metrics are needed, they MUST be opt-in and external to the SLIM page.
78
-
### 4.8 Inputs — MUST
92
+
### 4.10 Inputs — MUST
79
93
All <input> elements MUST specify a type attribute.
80
-
### 4.9 Media — MUST NOT
94
+
### 4.11 Media — MUST NOT
81
95
SLIM documents **MUST NOT** embed, reference, or fetch non-text media of any kind.
82
96
83
97
**Prohibited elements and mechanisms (non-exhaustive):**
@@ -93,7 +107,7 @@ SLIM documents **MUST NOT** embed, reference, or fetch non-text media of any kin
93
107
94
108
**Rationale:** This ensures predictable payload size, eliminates tracking beacons delivered via images, and maximizes reliability in austere networks. Any essential information **MUST** be conveyed in text.
95
109
96
-
### 4.10 Framing & Embedding — MUST NOT
110
+
### 4.12 Framing & Embedding — MUST NOT
97
111
98
112
SLIM documents **MUST NOT** embed other browsing contexts.
99
113
@@ -143,7 +157,7 @@ SLIM authors and operators **SHOULD** consider deploying a Content Security Poli
This policy prevents the browser from loading or executing any resource type disallowed by SLIM. Note that this considered "nice to have" and not "must have".
160
+
This policy prevents the browser from loading or executing any resource type disallowed by SLIM.
0 commit comments