Can we use `.gjs` for route templates?

I’m having problems with the rules under body:has() being applied. They don’t appear to be updating in the asset compilation pipeline. I run d/rake assets:clobber tmp:clear and restart the server with d/rails s and they still don’t update.

For instance I can put body { background-color: red !important; } in the body:has() section and it doesn’t appear at all in the styles for the body element. It’s not just that it’s being overridden - it’s just not present at all in “styles” in the devtools.

When I place the same line of CSS outside of body:has() then it displays just fine.

document.querySelector("body:has(#print-root)") !== null in the browser console returns true. And some rules from body:has() are being applied.

I’m wondering if there could be rules in the asset generation pipeline that prevent these changes from coming through.