happy-dom icon indicating copy to clipboard operation
happy-dom copied to clipboard

HTMLElement.outerHTML miss style.aspectRatio

Open infeng opened this issue 8 months ago • 1 comments

Describe the bug I set style.aspectRatio on HTMLElement, but HTMLElment.outerHTML can not contain aspectRatio

To Reproduce Steps to reproduce the behavior:

const { Window } = require('happy-dom');

const window = new Window({
	url: 'https://localhost:8080',
	width: 1024,
	height: 768
});

const div = window.document.createElement('div');
div.style.aspectRatio = '100/200';
div.style.width = '100%';

console.log(div.outerHTML);

actual output: <div style="width: 100%;"></div>

Expected behavior expect output: <div style="aspect-ratio: 100 / 200; width: 100%;"></div>

Device:

  • OS: mac
  • Browser node
  • Version 16.20.1

Additional context Add any other context about the problem here.

infeng avatar Oct 27 '23 07:10 infeng