CARVIEW |
Select Language
HTTP/2 301
location: https://raw.githubusercontent.com/twolfson/computedStyle/master/dist/computedStyle.amd.js
accept-ranges: bytes
age: 0
date: Mon, 21 Jul 2025 09:11:26 GMT
via: 1.1 varnish
x-served-by: cache-bom4743-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753089085.171931,VS0,VE1181
vary: Accept-Encoding
x-fastly-request-id: 4ce0b80f9aae56b53495b798b09018958e3e222c
content-length: 0
HTTP/2 200
cache-control: max-age=300
content-security-policy: default-src 'none'; style-src 'unsafe-inline'; sandbox
content-type: text/plain; charset=utf-8
etag: W/"4d21e5ba981a018892156ab794725e25d56139651616a88271cd5352a3366e76"
strict-transport-security: max-age=31536000
x-content-type-options: nosniff
x-frame-options: deny
x-xss-protection: 1; mode=block
x-github-request-id: 27ED:186486:9316F:1B0FA1:687E043E
content-encoding: gzip
accept-ranges: bytes
date: Mon, 21 Jul 2025 09:11:26 GMT
via: 1.1 varnish
x-served-by: cache-bom4745-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753089086.414098,VS0,VE293
vary: Authorization,Accept-Encoding
access-control-allow-origin: *
cross-origin-resource-policy: cross-origin
x-fastly-request-id: 853233746746064f387d0458a06571e46845a715
expires: Mon, 21 Jul 2025 09:16:26 GMT
source-age: 0
content-length: 473
define(function () {
// DEV: We don't use var but favor parameters since these play nicer with minification
function computedStyle(el, prop, getComputedStyle, style) {
getComputedStyle = window.getComputedStyle;
style =
// If we have getComputedStyle
getComputedStyle ?
// Query it
// TODO: From CSS-Query notes, we might need (node, null) for FF
getComputedStyle(el) :
// Otherwise, we are in IE and use currentStyle
el.currentStyle;
if (style) {
return style
[
// Switch to camelCase for CSSOM
// DEV: Grabbed from jQuery
// https://github.com/jquery/jquery/blob/1.9-stable/src/css.js#L191-L194
// https://github.com/jquery/jquery/blob/1.9-stable/src/core.js#L593-L597
prop.replace(/-(\w)/gi, function (word, letter) {
return letter.toUpperCase();
})
];
}
}
return computedStyle;
});