Skip to content

[turbopack] Strip leading BOM before parsing CSS - #96678

Merged
lukesandberg merged 4 commits into
canaryfrom
css-bom-strip
Aug 4, 2026
Merged

lukesandberg merged 4 commits into
canaryfrom
css-bom-strip

Conversation

@lukesandberg

Copy link
Copy Markdown
Contributor

Fork PR #96379 by @lazerg, re-opened as a branch PR so the "when deployed" CI jobs can run — those require Vercel deployment secrets that GitHub does not expose to pull requests from forks, so they can never pass on the original.

The fix commits are unchanged and still authored by @lazerg. This PR only adds tests on top. Please credit them; #96379 should be closed in favor of this one.

What?

A CSS file beginning with a UTF-8 BOM (EF BB BF) is mishandled by Turbopack. Lightning CSS does not skip the BOM, so it is tokenized as content and the first token is misparsed:

./app/bom.css:1:2
Error: Parsing CSS source code failed
Unexpected token AtKeyword("layer")

The user-visible symptom is broader than a failed build. Turbopack parses with error_recovery: true, and under that setting a leading BOM makes Lightning CSS return Ok with zero rules — so a BOM-prefixed stylesheet could silently drop all of its styles instead of erroring. dart-sass (compressed style) and PostCSS >= 8.5.24 both emit or round-trip such a BOM, so real projects hit this.

Fixes #96374

How?

Strip a leading U+FEFF in parse_css_stylesheet before handing the source to Lightning CSS, covering both StyleSheet::parse call sites while leaving ParseCssResult.code as the original bytes that code frames are rendered from.

That split makes parser positions relative to the stripped copy while code frames still render the original line, so first-line positions need compensating. source_pos_for_loc adds the stripped character back for line 0 of BOM files. Only line 0 is affected, because the BOM contains no newline.

Tests

test/e2e/app-dir/css-bom — a BOM-prefixed stylesheet compiles and its rules reach the page. Verified failing without the fix with the exact error above, and passing with it, in dev-turbo, start-turbo and start-webpack.

test/development/app-dir/css-bom-code-frame — covers the position correction. Two fixtures hold the same invalid @media (min-width: {}) on line 1 and differ only by the leading BOM; the test asserts the BOM file's reported column is exactly one greater:

no-bom bom
without source_pos_for_loc 18 18 fails
with it 18 19 passes

Asserting the relationship rather than a literal column keeps this robust if Lightning CSS changes its absolute column convention. It is kept separate from the e2e suite because the fixtures are intentionally invalid CSS, and scoped to Turbopack in dev, where the warning reaches the CLI as the page is requested.

lazerg and others added 4 commits August 4, 2026 13:53
Turbopack's Lightning CSS parse fails with `Unexpected token AtKeyword("layer")` when an imported CSS file begins with a UTF-8 BOM (EF BB BF).

Refs #96374
Adds a dev-only Turbopack suite with two fixtures holding the same invalid
`@media (min-width: {})` on line 1, differing only by a leading BOM, and
asserts the BOM file's reported column is exactly one greater.

The BOM is stripped before parsing but still occupies a character position
in the line the code frame renders, so without compensation both files
report the same column and the BOM file's caret lands one column early.
Verified failing (18 vs 18) without the position fix and passing (19 vs 18)
with it.

Kept separate from the e2e css-bom suite because the fixtures are
intentionally invalid CSS, which would add build warnings there.
@github-actions

github-actions Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: 94be92e

@github-actions

github-actions Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Stats from current PR

✅ No significant changes detected

📊 All Metrics
📖 Metrics Glossary

Dev Server Metrics:

  • Listen = TCP port starts accepting connections
  • First Request = HTTP server returns successful response
  • Cold = Fresh build (no cache)
  • Warm = With cached build artifacts

Build Metrics:

  • Fresh = Clean build (no .next directory)
  • Cached = With existing .next directory

Change Thresholds:

  • Time: Changes < 50ms AND < 10%, OR < 2% are insignificant
  • Size: Changes < 1KB AND < 1% are insignificant
  • All other changes are flagged to catch regressions

⚡ Dev Server

Metric Canary PR Change Trend
Cold (Listen) 811ms 811ms ✓ ▂▁▂▂▂
Cold (Ready in log) 777ms 787ms ✓ ▂▁▁▂▃
Cold (First Request) 1.281s 1.296s ✓ ▂▁▁▂▃
Warm (Listen) 811ms 811ms ✓ ▂▁▁▂▂
Warm (Ready in log) 780ms 787ms ✓ ▂▁▁▁▂
Warm (First Request) 1.258s 1.305s ✓ ▂▁▁▁▃
📦 Dev Server (Webpack) (Legacy)

📦 Dev Server (Webpack)

Metric Canary PR Change Trend
Cold (Listen) 813ms 813ms ✓ █▁▁▄▅
Cold (Ready in log) 807ms 802ms ✓ █▁▁▂▄
Cold (First Request) 3.514s 3.490s ✓ █▁▁▂▃
Warm (Listen) 814ms 813ms ✓ █▁▁▄▅
Warm (Ready in log) 804ms 801ms ✓ █▁▁▂▅
Warm (First Request) 3.540s 3.496s ✓ █▁▁▁▄

⚡ Production Builds

Metric Canary PR Change Trend
Fresh Build 5.721s 5.696s ✓ ▂▁▁▁▅
Cached Build 2.908s 2.950s ✓ ▁▁▁▁▂
📦 Production Builds (Webpack) (Legacy)

📦 Production Builds (Webpack)

Metric Canary PR Change Trend
Fresh Build 24.592s 24.897s ✓ █▁▁▃▅
Cached Build 24.469s 24.782s ✓ █▁▁▃▄
node_modules Size 552 MB 552 MB ✓ ▁▁▁▁▁
📦 Bundle Sizes

Bundle Sizes

⚡ Turbopack

Client

Main Bundles
Canary PR Change
0a-p0meqxynjz.js gzip 10.3 kB N/A -
0avtke4yefj4-.js gzip 13.1 kB N/A -
0cz1d0mv5g_q7.js gzip 39.4 kB 39.4 kB ✓
0eqn4b8sny707.js gzip 155 B N/A -
0i0tlng46y5ms.js gzip 155 B N/A -
0pt5of3ch6d2u.js gzip 13.6 kB N/A -
0q05f6v9xirdk.js gzip 71.4 kB N/A -
0qku9raey0ffu.js gzip 156 B N/A -
0qq90f-re5tlc.js gzip 155 B N/A -
0s8_p-rf90s2h.js gzip 157 B N/A -
0xnsdo-6y9r3k.js gzip 5.72 kB N/A -
0yi7is8u4covm.js gzip 8.77 kB N/A -
17b30c5w2jqvy.js gzip 160 B N/A -
17vf_v51_dr4a.js gzip 7.44 kB N/A -
1elt1qium-r2m.css gzip 115 B 115 B ✓
1kk-1wg8k7mok.js gzip 161 B N/A -
1prv-wg6jgtt2.js gzip 8.77 kB N/A -
1sk-0k-dz6k3c.js gzip 156 B N/A -
1t47vod02e_4a.js gzip 8.75 kB N/A -
1tf1phijqlx9j.js gzip 220 B 220 B ✓
1tw002sq5bo4l.js gzip 10 kB N/A -
1wlerik1n7zbr.js gzip 8.7 kB N/A -
2jpx0_6n0ykra.js gzip 3.66 kB N/A -
2pevdqjpbf3xk.js gzip 9.45 kB N/A -
2qd2anu9eizlz.js gzip 8.75 kB N/A -
2sv39ae5_8vfj.js gzip 8.81 kB N/A -
2utx6n7w65xqa.js gzip 8.7 kB N/A -
2w856dfyftp2v.js gzip 168 B N/A -
3-ukivglqkfeq.js gzip 8.78 kB N/A -
325xisqrylugu.js gzip 450 B N/A -
33jfzc4mr1hy3.js gzip 155 B N/A -
3f2c3tys-p419.js gzip 46.3 kB N/A -
3jc9ghvds1spf.js gzip 2.29 kB N/A -
3juwkvkgvywfe.js gzip 10.6 kB N/A -
3kbove7q58uqh.js gzip 13.2 kB N/A -
3qn7vntp30gaj.js gzip 1.47 kB N/A -
3svijuzoz2_j4.js gzip 153 B N/A -
3utl0u0c4rnt6.js gzip 154 B N/A -
3xq3ssaqmljwr.js gzip 65.6 kB N/A -
44pxe0mz-8389.js gzip 154 B N/A -
turbopack-0_..x_qg.js gzip 3.84 kB N/A -
turbopack-05..5d-4.js gzip 3.84 kB N/A -
turbopack-0f..9yja.js gzip 3.84 kB N/A -
turbopack-0j..7ls9.js gzip 3.85 kB N/A -
turbopack-1c..j026.js gzip 3.84 kB N/A -
turbopack-1f..dkn3.js gzip 3.84 kB N/A -
turbopack-1q..w7g-.js gzip 3.84 kB N/A -
turbopack-20..4nvl.js gzip 3.86 kB N/A -
turbopack-2h..d89o.js gzip 3.84 kB N/A -
turbopack-3_..7f72.js gzip 3.82 kB N/A -
turbopack-3_..9mws.js gzip 3.84 kB N/A -
turbopack-31..-12o.js gzip 3.84 kB N/A -
turbopack-33..k0vl.js gzip 3.84 kB N/A -
turbopack-3i..4u4q.js gzip 3.85 kB N/A -
0_sfs0nf236wo.js gzip N/A 3.65 kB -
030a1njeh5b77.js gzip N/A 10 kB -
0a_m-4tyulf2q.js gzip N/A 155 B -
0gw6ckuh6qhez.js gzip N/A 156 B -
0j1tthbjgbjh3.js gzip N/A 160 B -
0ot0qt5np20h7.js gzip N/A 8.78 kB -
0walannyu_hhq.js gzip N/A 7.45 kB -
0x0s_ruhx7z2h.js gzip N/A 157 B -
0x1sosm1n7oa0.js gzip N/A 169 B -
10rq_f5-6hd1l.js gzip N/A 155 B -
12m9rr7_7cexd.js gzip N/A 8.7 kB -
186r3y_rfvr0b.js gzip N/A 8.78 kB -
19fku3-tvpz31.js gzip N/A 153 B -
19v97848yrjp7.js gzip N/A 8.81 kB -
1e-aum79xg2th.js gzip N/A 154 B -
1h0ya6kofmxn-.js gzip N/A 71.4 kB -
1nd_0rwgz2ozk.js gzip N/A 9.45 kB -
1oi9pltr_e10m.js gzip N/A 10.6 kB -
1rd9tzqgzsz2w.js gzip N/A 8.77 kB -
1rq1g_cwv642d.js gzip N/A 10.3 kB -
1t3cl0e6ysndq.js gzip N/A 160 B -
1uojw_uabeg93.js gzip N/A 450 B -
1w-7lusgyl81y.js gzip N/A 8.7 kB -
21h56wdn9zddo.js gzip N/A 8.75 kB -
28k90lkllc3kl.js gzip N/A 156 B -
2auhrzpzovkv5.js gzip N/A 46.3 kB -
2ivsbln3mlacr.js gzip N/A 65.6 kB -
2kknjypngu7gn.js gzip N/A 155 B -
2mb16oaek5bx_.js gzip N/A 154 B -
2ovff1533zvno.js gzip N/A 13.2 kB -
2s4z8jy0z7v93.js gzip N/A 1.46 kB -
2y6gb5bs4mnam.js gzip N/A 8.75 kB -
33dfdth7rfsad.js gzip N/A 157 B -
341h71ln1jpl3.js gzip N/A 2.29 kB -
34ttpt_n7605h.js gzip N/A 5.72 kB -
36ckfq9o-ys-a.js gzip N/A 13.1 kB -
3vdh6_u50pu5t.js gzip N/A 13.6 kB -
turbopack-06..ul6x.js gzip N/A 3.84 kB -
turbopack-08.._5b1.js gzip N/A 3.82 kB -
turbopack-0f..0yuo.js gzip N/A 3.84 kB -
turbopack-2_..f66q.js gzip N/A 3.84 kB -
turbopack-2-..9piv.js gzip N/A 3.84 kB -
turbopack-23..ubwc.js gzip N/A 3.84 kB -
turbopack-26..r2gt.js gzip N/A 3.84 kB -
turbopack-2a..ugpk.js gzip N/A 3.84 kB -
turbopack-2c..msgl.js gzip N/A 3.84 kB -
turbopack-2d..c_7t.js gzip N/A 3.86 kB -
turbopack-3k..sn0o.js gzip N/A 3.85 kB -
turbopack-40.._tig.js gzip N/A 3.84 kB -
turbopack-43..dv8w.js gzip N/A 3.84 kB -
turbopack-43..unya.js gzip N/A 3.84 kB -
Total 450 kB 450 kB ⚠️ +39 B

Server

Middleware
Canary PR Change
middleware-b..fest.js gzip 778 B 768 B 🟢 10 B (-1%)
Total 778 B 768 B ✅ -10 B
Build Details
Build Manifests
Canary PR Change
_buildManifest.js gzip 434 B 432 B ✓
Total 434 B 432 B ✅ -2 B
Build Cache
Canary PR Change
00000001.sst gzip 15.7 MB 12.5 MB 🟢 3.25 MB (-21%)
00000002.sst gzip 13.4 MB 12.5 MB 🟢 878 kB (-7%)
00000003.sst gzip 11.9 MB 15 MB 🔴 +3.02 MB (+25%)
00000004.sst gzip 14.2 MB 15.3 MB 🔴 +1.08 MB (+8%)
00000005.sst gzip 10.3 MB 2.83 MB 🟢 7.46 MB (-72%)
00000006.sst gzip 2.83 MB 10.3 MB 🔴 +7.5 MB (+265%)
00000007.sst gzip 59 B 59 B ✓
00000008.meta gzip 89 B 89 B ✓
00000009.meta gzip 298 kB 299 kB ✓
00000010.meta gzip 299 kB 298 kB ✓
00000011.meta gzip 298 kB 298 kB ✓
00000012.sst gzip 51.8 kB 50.9 kB 🟢 940 B (-2%)
00000013.sst gzip 1.88 MB 1.89 MB 🔴 +5.77 kB (+0%)
00000014.sst gzip 59 B 59 B ✓
00000015.meta gzip 116 B 116 B ✓
00000016.meta gzip 324 kB 324 kB ✓
00000017.meta gzip 405 kB 404 kB ✓
00000018.sst gzip 52.5 kB 51.5 kB 🟢 969 B (-2%)
00000019.sst gzip 1.37 MB 1.39 MB 🔴 +18.7 kB (+1%)
00000020.sst gzip 59 B 59 B ✓
00000021.meta gzip 116 B 116 B ✓
00000022.meta gzip 324 kB 324 kB ✓
00000023.meta gzip 370 kB 370 kB ✓
00000024.sst gzip 52.5 kB 51.6 kB 🟢 911 B (-2%)
00000025.sst gzip 1.37 MB 1.39 MB 🔴 +18.4 kB (+1%)
00000026.sst gzip 59 B 59 B ✓
00000027.meta gzip 116 B 116 B ✓
00000028.meta gzip 324 kB 324 kB ✓
00000029.meta gzip 370 kB 370 kB ✓
00000030.sst gzip 51.8 kB 50.9 kB 🟢 940 B (-2%)
00000031.sst gzip 1.37 MB 1.39 MB 🔴 +18.3 kB (+1%)
00000032.sst gzip 59 B 59 B ✓
00000033.meta gzip 116 B 116 B ✓
00000034.meta gzip 324 kB 324 kB ✓
00000035.meta gzip 370 kB 370 kB ✓
00000036.sst gzip 52.4 kB 51.4 kB 🟢 984 B (-2%)
00000037.sst gzip 1.37 MB 1.39 MB 🔴 +18.4 kB (+1%)
00000038.sst gzip 59 B 59 B ✓
00000039.meta gzip 116 B 116 B ✓
00000040.meta gzip 324 kB 324 kB ✓
00000041.meta gzip 370 kB 370 kB ✓
CURRENT gzip 24 B 24 B ✓
LOG gzip 677 B 678 B ✓
Total 80.4 MB 80.5 MB ⚠️ +83.5 kB

📦 Webpack

Client

Main Bundles
Canary PR Change
3322-HASH.js gzip 65 kB N/A -
4191.HASH.js gzip 169 B N/A -
7920-HASH.js gzip 4.68 kB N/A -
9784-HASH.js gzip 5.63 kB N/A -
b1ad9f4c-HASH.js gzip 63.2 kB N/A -
framework-HASH.js gzip 59.7 kB 59.7 kB ✓
main-app-HASH.js gzip 254 B 254 B ✓
main-HASH.js gzip 40 kB 40 kB ✓
webpack-HASH.js gzip 1.68 kB 1.68 kB ✓
3577.HASH.js gzip N/A 168 B -
578-HASH.js gzip N/A 65.8 kB -
8590-HASH.js gzip N/A 5.61 kB -
9750-HASH.js gzip N/A 4.69 kB -
a8984546-HASH.js gzip N/A 63.2 kB -
Total 240 kB 241 kB ⚠️ +704 B
Polyfills
Canary PR Change
polyfills-HASH.js gzip 39.4 kB 39.4 kB ✓
Total 39.4 kB 39.4 kB ✓
Pages
Canary PR Change
_app-HASH.js gzip 194 B 193 B ✓
_error-HASH.js gzip 181 B 182 B ✓
css-HASH.js gzip 334 B 331 B ✓
dynamic-HASH.js gzip 1.81 kB 1.81 kB ✓
edge-ssr-HASH.js gzip 255 B 253 B ✓
head-HASH.js gzip 349 B 351 B ✓
hooks-HASH.js gzip 382 B 384 B ✓
image-HASH.js gzip 581 B 582 B ✓
index-HASH.js gzip 260 B 259 B ✓
link-HASH.js gzip 2.48 kB 2.48 kB ✓
routerDirect..HASH.js gzip 317 B 318 B ✓
script-HASH.js gzip 384 B 386 B ✓
withRouter-HASH.js gzip 316 B 315 B ✓
1afbb74e6ecf..834.css gzip 106 B 106 B ✓
Total 7.95 kB 7.95 kB ⚠️ +1 B

Server

Edge SSR
Canary PR Change
edge-ssr.js gzip 129 kB 128 kB ✓
page.js gzip 293 kB 294 kB ✓
Total 422 kB 422 kB ⚠️ +151 B
Middleware
Canary PR Change
middleware-b..fest.js gzip 618 B 617 B ✓
middleware-r..fest.js gzip 156 B 156 B ✓
middleware.js gzip 45.6 kB 45.3 kB ✓
edge-runtime..pack.js gzip 842 B 842 B ✓
Total 47.2 kB 46.9 kB ✅ -336 B
Build Details
Build Manifests
Canary PR Change
_buildManifest.js gzip 718 B 718 B ✓
Total 718 B 718 B ✓
Build Cache
Canary PR Change
0.pack gzip 4.86 MB 4.86 MB ✓
index.pack gzip 122 kB 123 kB ✓
index.pack.old gzip 123 kB 122 kB ✓
Total 5.11 MB 5.11 MB ✅ -3.78 kB

🔄 Shared (bundler-independent)

Runtimes
Canary PR Change
app-page-exp...dev.js gzip 373 kB 373 kB ✓
app-page-exp..prod.js gzip 206 kB 206 kB ✓
app-page-tur...dev.js gzip 373 kB 373 kB ✓
app-page-tur..prod.js gzip 206 kB 206 kB ✓
app-page-tur...dev.js gzip 369 kB 369 kB ✓
app-page-tur..prod.js gzip 203 kB 203 kB ✓
app-page.run...dev.js gzip 369 kB 369 kB ✓
app-page.run..prod.js gzip 204 kB 204 kB ✓
app-route-ex...dev.js gzip 83 kB 83 kB ✓
app-route-ex..prod.js gzip 56.1 kB 56.1 kB ✓
app-route-tu...dev.js gzip 83.1 kB 83.1 kB ✓
app-route-tu..prod.js gzip 56.2 kB 56.2 kB ✓
app-route-tu...dev.js gzip 82.6 kB 82.6 kB ✓
app-route-tu..prod.js gzip 55.9 kB 55.9 kB ✓
app-route.ru...dev.js gzip 82.6 kB 82.6 kB ✓
app-route.ru..prod.js gzip 55.9 kB 55.9 kB ✓
dev-validati...dev.js gzip 133 kB 133 kB ✓
dev-validati...dev.js gzip 133 kB 133 kB ✓
dev-validati...dev.js gzip 131 kB 131 kB ✓
dev-validati...dev.js gzip 131 kB 131 kB ✓
dist_client_...dev.js gzip 324 B 324 B ✓
dist_client_...dev.js gzip 326 B 326 B ✓
dist_client_...dev.js gzip 318 B 318 B ✓
dist_client_...dev.js gzip 317 B 317 B ✓
pages-api-tu...dev.js gzip 46 kB 46 kB ✓
pages-api-tu..prod.js gzip 34.3 kB 34.3 kB ✓
pages-api.ru...dev.js gzip 45.9 kB 45.9 kB ✓
pages-api.ru..prod.js gzip 34.3 kB 34.3 kB ✓
pages-turbo....dev.js gzip 54.7 kB 54.7 kB ✓
pages-turbo...prod.js gzip 39.8 kB 39.8 kB ✓
pages.runtim...dev.js gzip 54.7 kB 54.7 kB ✓
pages.runtim..prod.js gzip 39.8 kB 39.8 kB ✓
server.runti..prod.js gzip 66.9 kB 66.9 kB ✓
use-cache-pr...dev.js gzip 72.3 kB 72.3 kB ✓
use-cache-pr...dev.js gzip 72.3 kB 72.3 kB ✓
use-cache-pr...dev.js gzip 70.6 kB 70.6 kB ✓
use-cache-pr...dev.js gzip 70.6 kB 70.6 kB ✓
Total 4.09 MB 4.09 MB ✓
📎 Tarball URL
https://vercel-packages.vercel.app/next/commits/94be92ef12905ea931b1787097de0924b4339a5c/next

Commit: 94be92e

@lukesandberg
lukesandberg marked this pull request as ready for review August 4, 2026 21:11
@lukesandberg
lukesandberg enabled auto-merge (squash) August 4, 2026 21:12
@lukesandberg
lukesandberg merged commit ff3a2cf into canary Aug 4, 2026
131 checks passed
@lukesandberg
lukesandberg deleted the css-bom-strip branch August 4, 2026 21:25
m-kawafuji pushed a commit to m-kawafuji/next.js that referenced this pull request Aug 8, 2026
Fork PR vercel#96379 by @lazerg, re-opened as a branch PR so the "when
deployed" CI jobs can run — those require Vercel deployment secrets that
GitHub does not expose to pull requests from forks, so they can never
pass on the original.

**The fix commits are unchanged and still authored by @lazerg.** This PR
only adds tests on top. Please credit them; vercel#96379 should be closed in
favor of this one.

### What?

A CSS file beginning with a UTF-8 BOM (`EF BB BF`) is mishandled by
Turbopack. Lightning CSS does not skip the BOM, so it is tokenized as
content and the first token is misparsed:

```
./app/bom.css:1:2
Error: Parsing CSS source code failed
Unexpected token AtKeyword("layer")
```

The user-visible symptom is broader than a failed build. Turbopack
parses with `error_recovery: true`, and under that setting a leading BOM
makes Lightning CSS return `Ok` with **zero rules** — so a BOM-prefixed
stylesheet could silently drop all of its styles instead of erroring.
dart-sass (compressed style) and PostCSS >= 8.5.24 both emit or
round-trip such a BOM, so real projects hit this.

Fixes vercel#96374

### How?

Strip a leading `U+FEFF` in `parse_css_stylesheet` before handing the
source to Lightning CSS, covering both `StyleSheet::parse` call sites
while leaving `ParseCssResult.code` as the original bytes that code
frames are rendered from.

That split makes parser positions relative to the stripped copy while
code frames still render the original line, so first-line positions need
compensating. `source_pos_for_loc` adds the stripped character back for
line 0 of BOM files. Only line 0 is affected, because the BOM contains
no newline.

### Tests

`test/e2e/app-dir/css-bom` — a BOM-prefixed stylesheet compiles and its
rules reach the page. Verified failing without the fix with the exact
error above, and passing with it, in dev-turbo, start-turbo and
start-webpack.

`test/development/app-dir/css-bom-code-frame` — covers the position
correction. Two fixtures hold the same invalid `@media (min-width: {})`
on line 1 and differ only by the leading BOM; the test asserts the BOM
file's reported column is exactly one greater:

| | `no-bom` | `bom` | |
|---|---|---|---|
| without `source_pos_for_loc` | 18 | 18 | fails |
| with it | 18 | 19 | passes |

Asserting the relationship rather than a literal column keeps this
robust if Lightning CSS changes its absolute column convention. It is
kept separate from the e2e suite because the fixtures are intentionally
invalid CSS, and scoped to Turbopack in dev, where the warning reaches
the CLI as the page is requested.

---------

Co-authored-by: lazerg <lazerg2@gmail.com>
Co-authored-by: vercel-gh-bot-3[bot] <282332853+vercel-gh-bot-3[bot]@users.noreply.github.com>
@github-actions github-actions Bot added the locked label Sep 6, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BOM marker causes Next.js dev and build to fail

3 participants