CARVIEW |
Select Language
HTTP/2 301
location: https://raw.githubusercontent.com/twolfson/computedStyle/master/dist/computedStyle.js
accept-ranges: bytes
age: 0
date: Sun, 27 Jul 2025 17:30:11 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210030-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753637411.548784,VS0,VE1314
vary: Accept-Encoding
x-fastly-request-id: 0d6c5791016f80c41bf8452570ab1425ff4437ce
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/"da348f4266f887a006897c6f17b1c815c7e79dd0175a1623e45ac82f020c63da"
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: 70A7:1C7E5C:259861:58E99D:68866222
content-encoding: gzip
accept-ranges: bytes
date: Sun, 27 Jul 2025 17:30:12 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210060-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753637412.931742,VS0,VE265
vary: Authorization,Accept-Encoding
access-control-allow-origin: *
cross-origin-resource-policy: cross-origin
x-fastly-request-id: e667b4aeae83058e716a2ebb4a35e8945ea45810
expires: Sun, 27 Jul 2025 17:35:12 GMT
source-age: 0
content-length: 474
(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();
})
];
}
}
window.computedStyle = computedStyle;
}());