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

border property invalid when shorthand filter used #7

Closed
kdzwinel opened this issue Sep 27, 2013 · 1 comment
Closed

border property invalid when shorthand filter used #7

kdzwinel opened this issue Sep 27, 2013 · 1 comment
Labels

Comments

@kdzwinel
Copy link
Owner

When nodes border isn't the same for all edges getComputedStyle returns empty value for shorthand property border. It make sense because border property does allow setting only one style of border for all edges.

Workaround needed.

https://developer.mozilla.org/en-US/docs/Web/CSS/border

@kdzwinel
Copy link
Owner Author

Note to self:

if(border === '') {
  for(style in [borderTop, borderLeft, borderBottom, borderRight]) {
    if(style !== '') {
      output += style;
    }
  }
}

kdzwinel added a commit that referenced this issue Nov 4, 2013
@kdzwinel kdzwinel closed this as completed Nov 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant