Questions tagged [getcomputedstyle]
98 questions
0
votes
1 answer
How to get computed CSS of external URL?
Is it possible to get the computed style of different HTML tags from an external URL?
getComputedStyle helps me to get the computed style from my own web page, but I would like to extract CSS values of different elements from other web pages.
What…

jutonia
- 1
0
votes
4 answers
How can I distingush between the content property of the ::before element being not specified at all and being specified as an empty string?
How can I check in javascript (with jQuery) if the 'content' property is set on a before or after pseudo element? In chrome, window.getComputedStyle(elem, '::before').getPropertyValue('content') returns an empty string both when 'content' is set to…

chris.va.rao
- 373
- 1
- 10
0
votes
1 answer
How can I do getComputedStyle in IE
I have an div and I don't set any style to it, then I put some content into it, so it height could grows
Now I want to get its height in IE8 or IE7, which have not getComputedStyle method
If I use currentStyle property, the return value is auto, not…

hh54188
- 14,887
- 32
- 113
- 184
0
votes
1 answer
Strange getComputedStyle behavior
I was experimenting with this HTML comparison recently, which is somewhat working:
/**
* Compare 2 dom nodes
* Given A node, identifier, B node, identifier, depth.
*/
function compare(A,Aid,B,Bid,godeep) {
if (A.nodeName != B.nodeName) {
…

NoBugs
- 9,310
- 13
- 80
- 146
0
votes
1 answer
Why getComputedStyle contain visibility as visible?
Why getComputedStyle returns element visibility as visible even if you never set visibility to be hidden or visible.
Example:
getComputedStyle($('#block1')[0],null).visibility; --- "visible"
and at the same time:
$('#block1')[0].style.visibility ---…

Rantiev
- 2,121
- 2
- 32
- 56
0
votes
1 answer
Firefox/jQuery bug using Twitter Bootstrap popover
I'm getting this error using Firefox but not webkit browser when I invoke a Twitter Bootstrap popover.
NS_ERROR_XPC_BAD_CONVERT_JS: Could not convert JavaScript argument arg 0 [nsIDOMWindow.getComputedStyle] @…

tim peterson
- 23,653
- 59
- 177
- 299
-1
votes
2 answers
Why does my getComputedStyle console.logs initial values
I wanted to use getComputedStyle to access css properties, unfortunately it only console.log()'s standard properties.
Below you will find my code.
On the picture you will find what it logs.
box