cssattr.js icon indicating copy to clipboard operation
cssattr.js copied to clipboard

Set css values by html element attributes

Open pwFoo opened this issue 8 years ago • 0 comments

Hi @FWeinb,

I tried to use cssattr.js to set data attributes as css values without success.

The data attribute is set to html element

<div data-width="200">

ideal would be full value like

<div data-width="50%">

and it should be set as css value

width: attr(data-width);

Is it possible with cssattr.js?

pwFoo avatar Nov 19 '17 08:11 pwFoo