Closed Bug 1595444 Opened 5 years ago Closed 5 years ago

new CSSStyleSheet causes a TypeError: Illegal constructor

Categories

(Core :: DOM: CSS Object Model, defect)

71 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1520690

People

(Reporter: jaysmith024, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:71.0) Gecko/20100101 Firefox/71.0
Firefox for Android

Steps to reproduce:

Using FF Dev Edition: 71.0b4
In console, try:
var s = new CSSStyleSheet();

causes an exception:
"TypeError: Illegal constructor."

Why is that?

Actual results:

"TypeError: Illegal constructor."

Expected results:

new instance of CSSStyleSheet object created so that i can replaceSync() on it and insert it into my shadow dom via adoptedStyleSheets.

Component: Untriaged → DOM: CSS Object Model
Product: Firefox → Core

Why is that?

Because constructable stylesheets are only implemented in chrome at the moment. They're on the roadmap.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE

Hi :) is there any ETA? Thanks!

(In reply to elefanteblanco5 from comment #2)

Hi :) is there any ETA? Thanks!

We haven't yet started to work on this feature, so no ETA yet.

But as I said in bug 1520690 I'm happy to mentor people to prototype this if there's somebody interested.

Thanks so much Emilio.

You need to log in before you can comment on or make changes to this bug.