cssstyle icon indicating copy to clipboard operation
cssstyle copied to clipboard

A Node.js implementation of the CSS Object Model CSSStyleDeclaration interface

Results 43 cssstyle issues
Sort by recently updated
recently updated
newest added

fixes https://github.com/jsdom/jsdom/issues/2649 The `onChange` callback is called prematurely when invoking `setProperty` with an `important` priority. This results in elements wrongly being assigned an inline style attribute value without `!important`. Setting...

Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.6.1 to 1.7.3. Release notes Sourced from shell-quote's releases. v1.7.2 Fix a regression introduced in 1.6.3. This reverts the Windows path quoting fix. (144e1c2) v1.7.1 Fix $...

dependencies

I did this by cloning the repo, running npm install, and then executing the following command: ```sh node scripts/download_latest_properties.js ``` Finally, I ran eslint autofix on the file, which mostly...

The CSS property [`grid-area` is a shorthand property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area) for `grid-row-start`, `grid-row-end`, `grid-column-start`, `grid-column-end`. Similarly [`grid-row`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row) and `grid-column` are shorthand properties for the respective pairs. It would be great if the...

I noticed that when I try to do snapshot testing on my react components with inline styles, `background: linear-gradient(...)` is missing from the snapshot. I described the issue in details...

fixes jsdom/jsdom#3305 According to the spec, [setting a css declaration](https://drafts.csswg.org/cssom/#set-a-css-declaration) "must return true if the serialization of declarations was changed as result of the steps. It may return false otherwise"....

This library already just passes calc's right through. I propose doing the same with var and nested calcs and nested vars. We don't need to resolve them, but I do...

### Basic info: - **Node.js version:** 14.17 - **jsdom version:** 18.0.0 ### Minimal reproduction case The following code returns `repeat(auto-fill, 300px)` instead of `300px 300px` as described in the CSS...

Browser is compatible, but cssdom will lose part of the style。 like 'margin-right:20px;;text-align:center;color:red;'

This migrates `CSSStyleDeclaration` to use **WebIDL2JS**. Part of . --- There’s also , which would simplify the generation of `CSSStyleDeclaration‑properties.webidl` by allowing the resulting string to be passed to **WebIDL2JS** ...