@miaskiewicz/turbo-dom 0.1.30 → 0.1.31

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miaskiewicz/turbo-dom",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "description": "Faster, more spec-correct DOM for test runners — native html5ever (Rust/WASM) parser + lazy copy-on-write DOM. A drop-in-style alternative to jsdom/happy-dom for vitest & jest.",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -146,6 +146,10 @@ function lookup(map, prop) {
146
146
  if (v === undefined) return '';
147
147
  // px-normalize a bare `0` for length properties (browsers report `0px`)
148
148
  if (v === '0' && LENGTH_PROPS.has(prop)) return '0px';
149
+ // font-family: browsers serialize the list with ", " regardless of source spacing
150
+ // (emotion minifies to "a",b,c). Scoped to font-family so we don't rewrite commas
151
+ // inside rgb()/cubic-bezier() values, which browsers leave compact.
152
+ if (prop === 'font-family') return v.replace(/\s*,\s*/g, ', ');
149
153
  return v;
150
154
  }
151
155