Request: support for CSS custom properties #3144
Comments
|
Adding support shouldn't be that hard. The core issue, from what I see, is that while the regular properties can be accessed & written to via the The bigger issues is if it won't decrease performance for other properties. If it does we could apply special logic that would use the methods only if the name starts with I'd love to have this supported but we need to be careful. Thanks for the report! |
mgol
added CSS Needs review
labels
Jun 6, 2016
Getfree
commented
Jun 6, 2016
|
But that's what jQuery is already doing for normal properties anyways, because |
|
Yes, I meant |
|
Seems pretty doable to me as well. I like it! |
|
@Getfree Would you like to try to prepare a pull request? |
Getfree
commented
Jun 9, 2016
|
Honestly, I wouldn't feel comfortable doing that. |
|
Let's try this out, but it won't be treated as a blocker. |
timmywil
removed the
Needs review
label
Jun 20, 2016
timmywil
added this to the
3.1.0
milestone
Jun 20, 2016
ConnorAtherton
added a commit
to ConnorAtherton/jquery
that referenced
this issue
Jun 25, 2016
|
|
ConnorAtherton |
d90fc90
|
ConnorAtherton
referenced
this issue
Jun 29, 2016
Closed
CSS: Support custom properties, #3144 #3199
timmywil
added the
Has Pull Request
label
Sep 26, 2016
mgol
self-assigned this
Feb 13, 2017
mgol
added a commit
to mgol/jquery
that referenced
this issue
Mar 1, 2017
|
|
ConnorAtherton + mgol |
8ad464d
|
mgol
added a commit
to mgol/jquery
that referenced
this issue
Mar 6, 2017
|
|
ConnorAtherton + mgol |
4787025
|
mgol
added a commit
to mgol/jquery
that referenced
this issue
Mar 7, 2017
|
|
ConnorAtherton + mgol |
f7cb569
|
mgol
added a commit
to mgol/jquery
that referenced
this issue
Mar 7, 2017
|
|
ConnorAtherton + mgol |
619bf98
|
Getfree commentedJun 6, 2016
Now that CSS custom properties are supported by most browsers (except for IE), please consider adding support for them in the .css() method.
Example:
JsFiddle here