Skip to content

Use HTML Standard UA stylesheet instead of Chrome's #3836

Closed

Description

@domenic

It might need some adaptation to deal with selectors we don't support, but it seems like a good idea.

This consists of collecting all the CSS blocks from https://html.spec.whatwg.org/multipage/rendering.html#rendering and replacing the contents of https://github.com/jsdom/jsdom/blob/main/lib/jsdom/browser/default-stylesheet.js with it.

Then, we run jsdom and see if we get any CSS parsing errors. If so, we comment out the responsible parts of the stylesheet.

Finally, we need to compare the diff to see if there are things in Chrome's UA stylesheet that are not expressed in the spec, but are important somehow.

Activity

  1. added a commit that references this issue on Apr 20, 2025
    51b8b7c
  2. added a commit that references this issue on Apr 20, 2025
    d3c6ffe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    metr upliftA candidate for the METR Uplift experiment

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions