-
Notifications
You must be signed in to change notification settings - Fork 143
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
[css-properties-values-api] @property vs registerProperty #845
Labels
Comments
Copy pasting from #902:
|
Agree. I'm inclined to have script-registered properties win over rule-registered ones. |
andruud
added a commit
to andruud/css-houdini-drafts
that referenced
this issue
Jul 2, 2019
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I assume
@property
rules overwrite previous rules with the same name, e.g. if you specify the following, then--x
is a<length>
, and not a<color>
:However, what happens when
registerProperty
and@property
are competing? Currently,registerProperty
fails if something is already registered, yet for@property
it's probably more natural that it re-registers the property.Proposal:
registerProperty
fails is the property is already registered, regardless of the origin of that registration.@property
will re-register the property if the current registration originated from@property
, but fails (i.e. has no effect) if the current registration originated fromregisterProperty
.The text was updated successfully, but these errors were encountered: