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

[feature request] support for getting short form version #38

Open
hrj opened this issue Aug 26, 2015 · 0 comments
Open

[feature request] support for getting short form version #38

hrj opened this issue Aug 26, 2015 · 0 comments

Comments

@hrj
Copy link
Contributor

hrj commented Aug 26, 2015

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:

  1. In JS, element.style.background returns the background as specified in the style attribute.
  2. 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.

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