Browse Source
#223 fixed only one case, this branch aims to fix them all :) Our safeguard is the `t.regex` from "transpiles external stylesheets with validation (expressions)" in `tests/external.js`, if that matches then the files are parsed correctly as css and therefore processed by styled-jsx. Fixes #224add-plugins-support
Giuseppe
7 years ago
committed by
GitHub
9 changed files with 194 additions and 38 deletions
@ -0,0 +1,60 @@ |
|||
const expr = 'test' |
|||
|
|||
export default `${expr} ${expr} ${expr},
|
|||
div { |
|||
display: ${expr}; |
|||
color: ${expr}; |
|||
${expr}; |
|||
${expr} |
|||
${expr}; |
|||
background: red; |
|||
animation: ${expr} 10s ease-out; |
|||
} |
|||
|
|||
div { |
|||
color: red; |
|||
${expr} |
|||
} |
|||
|
|||
div { |
|||
color: red; |
|||
${expr}; |
|||
} |
|||
|
|||
@media (${expr}) { |
|||
|
|||
${expr} |
|||
span.${expr} { |
|||
color: red; |
|||
} |
|||
|
|||
${expr} |
|||
|
|||
${expr} { |
|||
color: red; |
|||
} |
|||
${expr}, ${expr} { |
|||
color: red; |
|||
} |
|||
|
|||
${expr} |
|||
|
|||
div, ${expr} { |
|||
color: red; |
|||
} |
|||
} |
|||
|
|||
|
|||
@media (min-width: ${expr}) { |
|||
div.${expr} { |
|||
color: red; |
|||
} |
|||
all${expr} { |
|||
${expr} |
|||
color: red; |
|||
} |
|||
} |
|||
|
|||
@font-face { |
|||
${expr} |
|||
}` |
Loading…
Reference in new issue