We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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>
<div style="width: 100%;"></div>
Expected behavior expect output: <div style="aspect-ratio: 100 / 200; width: 100%;"></div>
<div style="aspect-ratio: 100 / 200; width: 100%;"></div>
Device:
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Thank you for reporting @infeng! 🙂
It seems like we are missing support for aspectRatio in CSSStyleDeclaration and aspect-ratio CSSStyleDeclarationPropertyManager
aspectRatio
aspect-ratio
Sorry, something went wrong.
Can I try it?
feat: [capricorn86#1147] Adds support for the aspect-ratio property
5967ab4
Successfully merging a pull request may close this issue.
Describe the bug
I set style.aspectRatio on HTMLElement, but HTMLElment.outerHTML can not contain aspectRatio
To Reproduce
Steps to reproduce the behavior:
actual output:
<div style="width: 100%;"></div>
Expected behavior
expect output:
<div style="aspect-ratio: 100 / 200; width: 100%;"></div>
Device:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: