-
Notifications
You must be signed in to change notification settings - Fork 140
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-typed-om] What to do when CSSNumericValues form a cycle? #513
Comments
Heh, don't even need to invoke a second object:
I think the fix for this is, upon I think this still allows, say, Your follow-up question is more difficult, and means the resolution we made today for CSSUnitValues is kinda useless... |
Actually, if we solve #494 in the way I want (making |
This is pretty much the same as #494. Gonna close this. |
According to below linked issue(#514), CSSVariableReferenceValue should have a constructor. and also fallback attribute should be readonly attribute. constructor was already added in chromium. but readonly keyword was not added. so add readonly keyword for fallback attribute. (actually it is related with #513 to add readonly keyword) w3c/css-houdini-drafts#547 w3c/css-houdini-drafts#514 w3c/css-houdini-drafts#513 Bug: 803687 Change-Id: I91b5d4f21b75cd5d27063bfceba0b39b30977be9
According to below linked issue(#514), CSSVariableReferenceValue should have a constructor. and also fallback attribute should be readonly attribute. constructor was already added in chromium. but readonly keyword was not added. so add readonly keyword for fallback attribute. (actually it is related with #513 to add readonly keyword) w3c/css-houdini-drafts#547 w3c/css-houdini-drafts#514 w3c/css-houdini-drafts#513 Bug: 803687 Change-Id: I91b5d4f21b75cd5d27063bfceba0b39b30977be9 Reviewed-on: https://chromium-review.googlesource.com/881381 Reviewed-by: Darren Shen <shend@chromium.org> Commit-Queue: Hwanseung Lee <hs1217.lee@samsung.com> Cr-Commit-Position: refs/heads/master@{#532167}
According to below linked issue(#514), CSSVariableReferenceValue should have a constructor. and also fallback attribute should be readonly attribute. constructor was already added in chromium. but readonly keyword was not added. so add readonly keyword for fallback attribute. (actually it is related with #513 to add readonly keyword) w3c/css-houdini-drafts#547 w3c/css-houdini-drafts#514 w3c/css-houdini-drafts#513 Bug: 803687 Change-Id: I91b5d4f21b75cd5d27063bfceba0b39b30977be9 Reviewed-on: https://chromium-review.googlesource.com/881381 Reviewed-by: Darren Shen <shend@chromium.org> Commit-Queue: Hwanseung Lee <hs1217.lee@samsung.com> Cr-Commit-Position: refs/heads/master@{#532167}
With mutable CSSNumericValues, I think it's possible to form cycles:
If this is possible, should
a.value = b
throw an error? Otherwise, type checking will get kinda weird and serialization will be impossible.Follow up question: If we disallow cycles, we can still form a directed acyclic graph. I'm guessing that's allowed, with type checking propagating through the graph when a node changes their
value
? (i.e. a node has to notify its 'parents' when its type changes)The text was updated successfully, but these errors were encountered: