Skip to content

Commit

Permalink
test(ssr): add static stylesheets fixtures (#4572)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Sep 24, 2024
1 parent 27195d2 commit 9cc36ae
Show file tree
Hide file tree
Showing 16 changed files with 81 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<x-stylish class="lwc-72njdrv8nr1-host">
<template shadowrootmode="open">
<style class="lwc-72njdrv8nr1" type="text/css">
h1 {border: 1px solid goldenrod;}
</style>
<style class="lwc-72njdrv8nr1" type="text/css">
h1.lwc-72njdrv8nr1 {outline: 2px solid chartreuse;}
</style>
<style class="lwc-72njdrv8nr1" type="text/css">
h1 {background: royalblue;}
</style>
<style class="lwc-72njdrv8nr1" type="text/css">
h1.lwc-72njdrv8nr1 {color: cornsilk;}
</style>
<h1 class="lwc-72njdrv8nr1">
hello
</h1>
</template>
</x-stylish>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const tagName = 'x-stylish';
export { default } from 'x/stylish';
export * from 'x/stylish';
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h1 {
border: 1px solid goldenrod;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
<h1>hello</h1>
</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h1 {
outline: 2px solid chartreuse;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h1 {
background: royalblue;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h1 {
color: cornsilk;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { LightningElement } from 'lwc';
import glamorous from './glamorous.css'
import snazzy from './snazzy.scoped.css'
import dazzling from './dazzling.html'

export default class extends LightningElement {
static stylesheets = [glamorous, snazzy]

render() {
return dazzling;
}
}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<x-stylish class="lwc-1l667kdb4s5-host">
<template shadowrootmode="open">
<style class="lwc-1l667kdb4s5" type="text/css">
h1 {background: royalblue;}
</style>
<style class="lwc-1l667kdb4s5" type="text/css">
h1.lwc-1l667kdb4s5 {color: cornsilk;}
</style>
<h1 class="lwc-1l667kdb4s5">
hello
</h1>
</template>
</x-stylish>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const tagName = 'x-stylish';
export { default } from 'x/stylish';
export * from 'x/stylish';
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h1 {
background: royalblue;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h1 {
color: cornsilk;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
<h1>hello</h1>
</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { LightningElement } from 'lwc';
import glamorous from './glamorous.css'
import snazzy from './snazzy.scoped.css'

export default class extends LightningElement {
static stylesheets = [glamorous, snazzy]
}

0 comments on commit 9cc36ae

Please sign in to comment.