jquery/test/unit
Michał Gołębiowski-Owczarek 7eb0019640
CSS: Return undefined for whitespace-only CSS variable values (#5120)
The spec requires that CSS variable values are trimmed. In browsers that do
this - mainly, Safari, but also Firefox if the value only has leading
whitespace - we currently return undefined; in other browsers, we return
an empty string as the logic to fall back to undefined happens before
trimming.

This commit adds another explicit callback to `undefined` to have it consistent
across browsers.

Also, more explicit comments about behaviors we need to work around in various
browsers have been added.

Closes gh-5120
Ref gh-5106
2022-10-03 18:10:42 +02:00
..
ajax.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
animation.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
attributes.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
basic.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
callbacks.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
core.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
css.js CSS: Return undefined for whitespace-only CSS variable values (#5120) 2022-10-03 18:10:42 +02:00
data.js Docs: Fix incorrect trac-NUMBER references 2022-01-12 23:23:42 +01:00
deferred.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
deprecated.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
dimensions.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
effects.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
event.js Docs: Replace #NUMBER Trac issue references with trac-NUMBER 2022-01-04 16:27:18 +01:00
exports.js Build: Update test code for compatibility with QUnit 2.x (#4297) 2019-02-18 19:03:26 +01:00
manipulation.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
offset.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
queue.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
ready.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
selector.js Selector: Use jQuery :has if CSS.supports(selector(...)) non-compliant 2022-09-19 20:56:02 +02:00
serialize.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
support.js Selector: Use jQuery :has if CSS.supports(selector(...)) non-compliant 2022-09-19 20:56:02 +02:00
traversing.js Docs: Replace #NUMBER Trac issue references with trac-NUMBER 2022-01-04 16:27:18 +01:00
tween.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
wrap.js Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00