-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
fix: convert value to DOMString #130
Conversation
c0ec266
to
86a3490
Compare
Codecov Report
@@ Coverage Diff @@
## master #130 +/- ##
===========================================
+ Coverage 37.39% 80.52% +43.13%
===========================================
Files 87 87
Lines 1182 1171 -11
Branches 227 216 -11
===========================================
+ Hits 442 943 +501
+ Misses 633 180 -453
+ Partials 107 48 -59
Continue to review full report at Codecov.
|
6e06b71
to
d377059
Compare
Unfortunately, despite my successive attemps, this PR will not be enough in all cases. Eg. with I feel like this package (and the issue related to this PR) requires a pretty large overhaul. IMO If any of the maintainers think spending more time on this is pointless because of a lack of their time, please let me know! |
Finally found a way to fix But one notable change is that implemented properties are no longer parsed and generated with Why do I need this problem to be fixed? I maintain a JS library for animating HTML elements. In my I can redefine the animated properties descriptors, so that I don't have to wait for a fix to this package and a new version of // setupFile.js
const createSetter = initialSetter => function set(v) {
return initialSetter.bind(this)(String(v))
}
const descriptor = Object.getOwnPropertyDescriptor(CSSStyleDeclaration.prototype, 'backgroundColor')
// descriptor.set = createSetter(descriptor.set) // Doesn't work
Object.defineProperty(
CSSStyleDeclaration.prototype,
'backgroundColor',
{ ...descriptor, set: createSetter(descriptor.set) })
// Repeat for each animated property name used in tests This library does not have any test setup file at this time. It's better like that and without having to update such file every time a test involving a new CSS property needs to be added. |
65dcd48
to
090f3e0
Compare
Superseded by #140. |
Fix #129.