Skip to content

CSSStyleSheet Interface is not fully implemented #36162

Open

Description

@mrego

Describe the new feature:
The CSSStyleSheet interface is not yet supported in Servo: https://drafts.csswg.org/cssom/#the-cssstylesheet-interface

This interface is used by Speedometer 3.0 and is on the things preventing to run the benchmark.

Activity

  1. added
    B-feature-tracking
    C-untriaged
    on Mar 26, 2025
  2. added
    A-content/bindings
    and removed
    C-untriaged
    on Mar 27, 2025
  3. Loirooriol commented on Mar 31, 2025

    @Loirooriol
    Contributor

    Seems implemented:

    [Exposed=Window]
    interface CSSStyleSheet : StyleSheet {
    // readonly attribute CSSRule? ownerRule;
    [Throws, SameObject] readonly attribute CSSRuleList cssRules;
    [Throws] unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
    [Throws] undefined deleteRule(unsigned long index);
    };

    <!DOCTYPE html>
    <script>document.write(CSSStyleSheet)</script>

  4. mrego commented on Apr 1, 2025

    @mrego
    MemberAuthor

    It seems it's not fully implemented though, like replaceSync() is missing for example.

  5. changed the title [-]CSSStyleSheet Interface[/-] [+]CSSStyleSheet Interface is not fully implemented[/+] on Apr 1, 2025
  6. Loirooriol commented on Apr 3, 2025

    @Loirooriol
    Contributor

    Remaining things to do:

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

    A-content/bindingsB-feature-tracking

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions