css-shorthand-expand icon indicating copy to clipboard operation
css-shorthand-expand copied to clipboard

Expand CSS shorthand properties

Results 7 css-shorthand-expand issues
Sort by recently updated
recently updated
newest added

The expander for the rule `background` is failing when provided with a simple gradient: `expandToLonghand('background', 'linear-gradient(24deg, red, blue)')` returns `undefined`

Given: ```js var expand = require("css-shorthand-expand") expand('border-color', "rgba(208, 2, 27, 1) rgba(255, 255, 0, 1) rgba(255, 255, 0, 1) rgba(255, 255, 0, 1)") ``` Expected: ``` { border-top-colo: rgba(208, 2,...

This is a feature request to expand the following values: ## Transitions ```css /* property name | duration */ transition: margin-right 4s; /* property name | duration | delay */...

`expand('0/0 a')` returns null, I would have expected to have a least a font-size, line-height and a font-family.

``` jsx { "background": "url(data:image/svg+xml;utf8,)" } { "background": "url(http://www.somesite.com/assets/pic.jpg)" } ``` should output: ``` jsx { "background-image": "url(data:image/svg+xml;utf8,)" } { "background-image": "url(http://www.somesite.com/assets/pic.jpg)" } ```

See the following fixture for the font shorthand: ```json "oblique 500 small-caps semi-expanded 20% / 2em monospace, \"Times New Roman\", Helvetica": { "font-size": "20%", "line-height": "2em", "font-style": "oblique", "font-weight": "500",...

I'd really like to use your module to get around ie9's font shorthand problems with rem. Otherwise, I'd like to keep shorthand intact. It would be great if I could...