locked
::after on :hover does not work in IE10 RRS feed

  • Question

  • I was sent here, from this topic

    I have found some strange behaviour in Internet Explorer (IE10 and also when emulating all versions that support `::after`). When applying the pseudo-element to a hover state of an element (`.element:hover::after`) it does not work in IE, but it does in all other major browsers. 

        #d1::after { /* Works in IE */
          content: "no hover needed";
          border: 1px solid blue;
          display: block;
        }
        
        #d2:hover::after { /* Does not work in IE */
          content: "Y U NO WORK IN IE";
          border: 1px solid blue;
          display: block;

        }

    A solution was presented by jaypeagi on StackOverflow, but I would like this bug squeeshed!

    Wednesday, January 16, 2013 3:20 PM

Answers

  • Hi,

    please post all questions about html, css and scripting for website developers to the IE Web Development forum.... preferably with a link to your website or a publicly accessible mashup (the support engineers need to see your full page markup and also inspect your servers response headers).

    http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/threads

    post bug reports or feature request for IE to the MS issue tracking portal... http://connect.microsoft.com/ie   these are peer to peer support forums... the IETeam does not work here, but they do have triage personnel at connect... give credit to the original poster from Stack overflow and quote a link to the SO thread.

    before posting to connect debug your css or scripts using the Developer tool. f12, and observe the Document Mode that your IE10 renders the page as...

    see Defining document compatibility

    you will find the unit test for css2 and css3 at the IE testing center - http://samples.msdn.microsoft.com/ietestcenter/

    you can validate your markup at validator.w3.org and your css at jigsaw.org (f12>Validate>HTML or CSS menu options). 


    Rob^_^

    • Proposed as answer by 网游 - wang'you Thursday, January 17, 2013 3:01 AM
    • Marked as answer by Nicholas Li Monday, January 21, 2013 7:02 AM
    Thursday, January 17, 2013 3:01 AM