Home Dashboard Directory Help

getComputedStyle doesnt implement 2nd argument ([pseudoElt]) by Paul Irish


 as By Design Help for as By Design

Type: Bug
ID: 687834
Opened: 9/9/2011 4:10:37 PM
Access Restriction: Public
User(s) can reproduce this bug



tested in ie10pp2, ie9, ie8

test case: http://jsfiddle.net/chriscoyier/GTLWn/4/

getComputedStyle should allow insight into the psuedoElements.
Sign in to post a comment.
Posted by m_gol on 3/9/2014 at 4:27 PM
This does not work in IE11. The jsFiddle attached to this bug report fails there as well.
Posted by Louis Lazaris on 3/5/2014 at 6:09 AM
This seems to work in IE11. Can it be confirmed that this has been fixed in IE11 and was not present in IE10?
Posted by m_gol on 1/25/2014 at 6:03 PM
Seriously? That's all we're going to hear from you? "We did it in violation to the spec by design" and even no explanation why it's broken "by design"?
Posted by Paul Irish on 10/14/2011 at 4:00 PM
To be clear, this "by design" behavior is a spec violation.
Posted by Microsoft on 10/14/2011 at 12:05 PM
Thank you for your feedback.

The issue you are reporting is by design.

Best regards,

The Internet Explorer Team
Sign in to post a workaround.
Posted by MathiasBynens on 5/26/2012 at 6:42 AM
This bug is about the fact that this fails in IE10pre (even though it should work as per the spec):

    window.getComputedStyle(element, ':before').getPropertyCSSValue('content').cssText

A workaround is to use this instead:

    window.getComputedStyle(element, ':before').content

This works in IE9 and IE10pre.