Skip to content

<link rel="stylesheet"> and <style> with inline stylesheet applied in wrong order #3346

Closed

Description

@mbrubeck

The following testcase has a red background, but should have a green background:

<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="data:text/css,body{background:red;}">
    <style>body { background: green; }</style>
  </head>
  <body>
  </body>
</html>

Activity

  1. added
    A-content/css
    I-wrong
    on Sep 15, 2014
  2. jdm commented on Sep 15, 2014

    @jdm
    Member
  3. jdm commented on Sep 15, 2014

    @jdm
    Member

    The parser code that looks for link elements should probably move to HTMLLinkElement and send a message directly to layout. We don't have any need for the CSS discovery task, as far as I can tell.

  4. self-assigned this
    on Sep 15, 2014
  5. added 4 commits that reference this issue on Sep 15, 2014
    c679f0d
    e30c53e
    7f3fd4a
    1ae3bda
  6. added a commit that references this issue on Sep 19, 2014
    50bbb49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-content/cssI-wrong

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions