Added an integration test where an import receives the layer(…), but an import that eventually contains @utility does not receive the layer(…) argument. This is necessary otherwise the @utility will be nested when we are processing the inlined CSS.
Running this on the Commit template, we do have a proper layer(…)
This PR fixes an issue where imports above Tailwind directives didn't get a
layer(…)
argument.Given this CSS:
It was migrated to:
But to ensure that the typography styles end up in the correct location, it requires the
layer(…)
argument.This PR now migrates the input to:
Test plan:
Added an integration test where an import receives the
layer(…)
, but an import that eventually contains@utility
does not receive thelayer(…)
argument. This is necessary otherwise the@utility
will be nested when we are processing the inlined CSS.Running this on the Commit template, we do have a proper
layer(…)