Skip to content

CSSStyleDeclaration tests are misleading #2784

Description

@caugner

The test at https://mdn-bcd-collector.gooborg.com/tests/api/CSSStyleDeclaration/cssFloat assumes that

var el = document.createElement('b');
var instance = el.style;

return an instance of CSSStyleDeclaration, but they now return an instance of CSSStyleProperties.

Could the test check if el.style instanceof CSSStyleDeclaration and return unknown support otherwise?

CSSStyleDeclaration:
__base: |-
var el = document.createElement('b');
var instance = el.style;

Noticed when reviewing mdn/browser-compat-data#27975.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions