You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if this needs to be in jStyleParser; but it seems relevant. Would like to know your thoughts on this. Thanks!
The CSS DOM API allows querying the short hand form of a property, even when it is not directly specified. There are two types of behaviour:
In JS, element.style.background returns the background as specified in the style attribute.
In JS, getComputedStyle(element).background returns the short form of the computed background, even if only long forms are specified.
It would be nice to have some support for this from jStyleParser (in the form of static utility methods). The wiring to JS land can be done on the client side of course.
The text was updated successfully, but these errors were encountered:
I am not sure if this needs to be in jStyleParser; but it seems relevant. Would like to know your thoughts on this. Thanks!
The CSS DOM API allows querying the short hand form of a property, even when it is not directly specified. There are two types of behaviour:
element.style.background
returns thebackground
as specified in thestyle
attribute.getComputedStyle(element).background
returns the short form of the computedbackground
, even if only long forms are specified.It would be nice to have some support for this from jStyleParser (in the form of static utility methods). The wiring to JS land can be done on the client side of course.
The text was updated successfully, but these errors were encountered: