Skip to content

Can't set no-shadow globally #120

@zerodevx

Description

@zerodevx

This should work but doesn't:

<head>
  <script type="module">
    import ZeroMd from 'https://cdn.jsdelivr.net/npm/zero-md@3'
    customElements.define('zero-md', class extends ZeroMd {
      async load() {
        await super.load()
        this.setAttribute('no-shadow', '')
      }
    })
  </script>
</head>
<body>
  <zero-md src="https://example.com/markdown.md"></zero-md>
</body>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions