-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Compound node padding style not working as expected #3224
Comments
The documentation shows only one Where did you see a reference to multiple properties? |
Eles.style() shows multiple properties so I thought it would be possible to set them in the stylesheet. I also tried setting padding to "20px, 5px, 5px, 5px" :-) |
Then someone made a mistake in the community-maintained type definitions on DefinitelyTyped. You're welcome to put up a pull request on DefinitelyTyped if you'd like to revise it. |
See also #3166 |
Environment info
Current (buggy) behaviour
In my stylesheet I use the following rules for a compound node (selector: $node > node):
'padding-top': '20px',
'padding-left': '5px',
'padding-right': '5px',
'padding-bottom': '5px',
The result is a padding of '5px' for top, left, right and bottom.
Desired behaviour
Set the the padding for top to '20px' and the others to '5px' according to the stylesheet.
Minimum steps to reproduce
https://jsbin.com/bisocidilu/1/edit?html,css,js,output
The text was updated successfully, but these errors were encountered: