Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (26 sloc) 449 Bytes
<template>
<section class="container" :style="style">
<h1 class="title">
no-cssnext
</h1>
<h2 class="subtitle">
this should have a red background
</h2>
<p>the gray bits show the output CSS</p>
</section>
</template>
<script>
export default {
data() {
return {
style: { "--bg": "red" }
};
}
}
</script>
<style>
/* the issue */
main {
background-color: var(--bg, initial);
}
</style>