Skip to content
New issue

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

Inline background with border-box value will be accidentally stripped #3663

Open
eiinu opened this issue Jan 17, 2024 · 0 comments
Open

Inline background with border-box value will be accidentally stripped #3663

eiinu opened this issue Jan 17, 2024 · 0 comments

Comments

@eiinu
Copy link

eiinu commented Jan 17, 2024

Basic info:

  • Node.js version: v18.17.1
  • jsdom version: v23.2.0

Minimal reproduction case

const jsdom = require('jsdom');
const { JSDOM } = jsdom;

const dom = new JSDOM(`<div id="test" style="background: border-box;"></div>`)
const { document } = dom.window
const value = document.querySelector('#test').style.background
console.log(value); // value is '', which is expected to be 'border-box'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant