Skip to content

Define parser behavior for in-body external stylesheets #1349

Open
@pmeenan

Description

@pmeenan

In-body stylesheets are treated differently by most of the browser engines.

Edge/IE: Parser blocks until stylesheeet is loaded (painting is not blocked)
Firefox: Parser continues, loading stylesheets asynchronously (painting is not blocked)
Chrome/Blink and Safari/WebKit: Parser continues, loading stylesheets asynchronously (painting is blocked until discovered sheets load)

The Edge behavior can be emulated in Firefox by placing a non-empty script tag after the in-body stylesheets since the parser needs to block at a script tag until previous stylesheets have finished. Technically, Blink and Webkit can also emulate the same blocking behavior but it is less useful for developers since all painting is disabled until the sheets have loaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatStandard is not web compatible or proprietary feature needs standardizingtopic: parsertopic: style

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions