Skip to content

Need to specify <style> only works on browsing-context-having documents #4547

Open
@domenic

Description

@domenic

Quick test case: https://jsbin.com/cozenirite/1/edit?html,css,console,output shows the computed style of the p is not changed, and (if you check the network panel) the @import is not fetched.

A quick fix may be to add a check to step 3 of https://html.spec.whatwg.org/multipage/semantics.html#update-a-style-block that the node document has a browsing context.

We probably also want to update the conditions under which it runs (a paragraph before) to use BC-connected/BC-disconnected instead of just connected/disconnected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions