Skip to content

CssShim crashes browser when encountering a CSS import #654

Description

@jelbourn

To reproduce, create a component with the following template and try to render it with EmulatedShadowDomStrategy.

<style>
  @import url("radio.css");
</style>

This will land something in CssShim in an infinite loop that crashes the Chrome tab or Firefox instance.

If you add a comment immediately before the @import, the crash does not occur, but the <style> elements added to the <head> are empty.

<style>
  /***/
  @import url("radio.css");
</style>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions