@fusion.dev/helix-docs 0.207.2 → 0.208.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: The browser features Helix uses, and the browser we test in.
2
+ description: The browser features Helix uses, and the browsers we test in.
3
3
  order: 5
4
4
  section: Getting started
5
5
  title: Browser support
@@ -13,12 +13,32 @@ support in older browsers. Your browser needs every feature Helix uses.
13
13
 
14
14
  ## What we test
15
15
 
16
- We test in Chromium, through Playwright. The DOM specs run in it, and the pixel
17
- baselines are captured in it, on Linux, with the network blocked.
16
+ We test in Chromium and WebKit, through Playwright, on Linux, with the network
17
+ blocked.
18
18
 
19
- We do not run the tests in Firefox or Safari. The rest of this page lists the
20
- browser features Helix uses. If you ship Helix to Firefox or Safari and find
21
- something broken, please report it. Our tests would not have caught it.
19
+ - The DOM specs run in both.
20
+ - The pixel baselines are captured in Chromium only.
21
+
22
+ WebKit is the engine in Safari, and the system webview a Tauri app draws with on
23
+ macOS and Linux. Playwright builds its own WebKit from the same source as
24
+ Safari, so a difference that only Safari shows can still get past our tests.
25
+
26
+ We do not run the tests in Firefox. The rest of this page lists the browser
27
+ features Helix uses. If you ship Helix to Firefox or Safari and find something
28
+ broken, please report it.
29
+
30
+ ### Known differences in WebKit
31
+
32
+ A few specs still fail in WebKit. We keep each one on a list until it is fixed.
33
+
34
+ - Checkbox Group, Radio Group, Option, Toast, and Tooltip name or describe their
35
+ host through `ElementInternals`, pointing into their own shadow root. WebKit
36
+ reads those references back as empty. We have not yet checked whether
37
+ VoiceOver still reads the name.
38
+ - In Virtual List, End can leave the last row below the viewport after `gap`
39
+ changes on a list that is already drawn.
40
+ - In the sandbox's source pane, in WebKit on macOS, one undo after an indent
41
+ also removes the text typed before it.
22
42
 
23
43
  ## Browser features Helix uses
24
44
 
package/content/color.mdx CHANGED
@@ -35,7 +35,9 @@ choice people most often get wrong. See [Surfaces and
35
35
  separation](./surfaces-and-separation).
36
36
 
37
37
  A field is filled with `well`: 5% of `foreground` laid over whatever the field
38
- sits on, so its color depends on the surface under the field.
38
+ sits on, so its color depends on the surface under the field. A row under the
39
+ pointer or the keyboard, such as an option, is lit with `hover` the same way:
40
+ 8% of `foreground` in light and 12% in dark.
39
41
 
40
42
  ### Inks
41
43
 
@@ -124,6 +126,14 @@ solves them against the well over the page, a card, a raised surface, a dialog,
124
126
  and a sunken surface. The report names each of these grounds as the well over
125
127
  its surface, such as `color-well over color-surface`.
126
128
 
129
+ Both inks are also written on a lit row and on a selected row. The engine solves
130
+ them against these grounds as well:
131
+
132
+ - `hover` over each of the same five surfaces, such as `color-hover over
133
+ color-surface`
134
+ - `primary-subtle` and `accent-subtle`, the tints a selected row takes
135
+ - the well over each tint, for a field on a selected row
136
+
127
137
  `foreground-subtle` is the one ink the engine does not solve. The range of
128
138
  readable grays has room for one quiet ink, and `foreground-muted` is that ink, so
129
139
  `foreground-subtle` stays a fixed step of the stylesheet's gray ramp and its
@@ -83,7 +83,7 @@ left out.
83
83
  | Field | What it controls |
84
84
  |---|---|
85
85
  | `contrastTarget` | Target contrast for body text. 4.5 is WCAG AA, and 7 is AAA |
86
- | `pairings` | The foreground and background pairs to measure, by token name. A background of `color-well over color-surface` is a field's well over that surface. The list replaces the pairs from the engine's surface model. The engine measures each pair and solves none of them, and a pair that names a token the engine does not emit is reported as `unverifiable` |
86
+ | `pairings` | The foreground and background pairs to measure, by token name. A background of `color-well over color-surface` is a field's well over that surface, and `color-hover over color-surface` is a lit row over it. The list replaces the pairs from the engine's surface model. The engine measures each pair and solves none of them, and a pair that names a token the engine does not emit is reported as `unverifiable` |
87
87
 
88
88
  The default is 4.5, the WCAG 2.1 AA figure. The European Accessibility Act
89
89
  refers to WCAG 2.1 AA, so 4.5 is the figure with legal weight.