Skip to content

Stylesheets throw exception if toolkit-scope is defined and the element definition is inline #127

Closed
@dfreedm

Description

For this document:

<!DOCTYPE html>
<html>
<head>
  <script src="toolkitchen/toolkit/toolkit.js"></script>
</head>
<body>
  <element name="x-fail">
    <link rel="stylesheet" toolkit-scope="global">
    <script>Toolkit.register(this)</script>
  </element>
  <x-fail></x-fail>
</body>
</html>

The styling mechanism will throw an exception because it expects the stylesheet to have been loaded by HTMLImports

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions