Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@import: no-invalid-css #378

Open
wencan opened this issue Nov 4, 2024 · 0 comments
Open

@import: no-invalid-css #378

wencan opened this issue Nov 4, 2024 · 0 comments

Comments

@wencan
Copy link

wencan commented Nov 4, 2024

lit-plugin: v1.4.3

Here is the code that can execute normally.

import {html, LitElement} from'https://gcore.jsdelivr.net/gh/lit/dist@3/core/lit-core.min.js';

export class Navbar extends LitElement {
    render() {
        return html`
<style>
    @import url('https://cdn.bootcdn.net/ajax/libs/bulma/1.0.2/css/bulma.min.css');
</style>

<nav class="navbar" role="navigation" aria-label="main navigation">
  <div class="navbar-brand">
    <a class="navbar-item" href="/">
        <img width="30" src="/images/logo.png" alt="XXX Logo">
        <h1 class="title">XXX</h1>
    </a>
  </div>
</nav>
        `
    }
}
customElements.define('nav-bar', Navbar)

lit-plugin report: { expected lit-plugin(no-invalid-css)
Screenshot from 2024-11-04 21-17-40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant