Skip to content

v2.2.10 Breaks CSS text in happy-dom/vitest? #2989

@thequailman

Description

@thequailman

Is there an existing issue for this?

  • I have searched the existing issues

Mithril.js Version

2.2.10

Browser and OS

Vitest

Project

No response

Code

Checking the value of `style.cssText` for any element returns an empty string as of 2.2.10.  Prior to this (2.2.9), the value showed the actual CSS text.  This was immensely helpful for testing CSS values with vitest/happy-dom.

Steps to Reproduce

Using vitest or happy-dom, getElement and check the style.cssText value.

Expected Behavior

It should return the CSS values, I think.

Observed Behavior

Empty string is always returned.

Context

Breaks a bunch of my tests.

Metadata

Metadata

Assignees

Labels

Area: CoreFor anything dealing with Mithril core itselfStatus: Needs reproductionFor issues that lack a demo or example that reproduces the unexpected behavior in questionType: BugFor bugs and any other unexpected breakage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions