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

Style keyword #416

Closed
pleshevskiy opened this issue Dec 9, 2022 · 2 comments
Closed

Style keyword #416

pleshevskiy opened this issue Dec 9, 2022 · 2 comments

Comments

@pleshevskiy
Copy link

pleshevskiy commented Dec 9, 2022

References:

I'm a little confused why we need the style attribute if I can set all of its internal properties directly.

foo.3d: true
# This is equal to this
foo.style.3d: true

but! style overwrite all (!) styles if they were defined without style

foo: {
  opacity: 0.6
  fill: orange
  stroke: "#53C0D8"
  stroke-width: 5
  stroke-dash: 5
  border-radius: 4
  font-color: red
  shadow: true
  multiple: true
  3d: true

  style.opacity: 0.5
}

Expected

image

Actual

image

It's almost hard to see, but there's only one style left (opacity: 0.5)

@alixander
Copy link
Collaborator

foo.3d: true
# This is equal to this
foo.style.3d: true

it is not supposed to be equal. it'll be fixed such that they only work under style keyword

@alixander
Copy link
Collaborator

fixed in #714

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants