Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 407072

Summary: [Text] Double "cancel" icons in IE 10
Product: [RT] RAP Reporter: Tim Buschtoens <tbuschto>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: tbuschto
Version: 2.1   
Target Milestone: 2.1 RC1   
Hardware: All   
OS: All   
Whiteboard:

Description Tim Buschtoens CLA 2013-05-02 09:54:38 EDT
Internet Explorer 10 now has the same feature SWT Text has, displaying an icon at the end of a text field which clears the field if clicked. Therefore we have now two of these in RAP if ICON_CANCEL is given when creating Text. 

See also http://stackoverflow.com/questions/10842665/internet-explorer-10-windows-8-remove-text-input-and-password-action-icons
Comment 1 Ivan Furnadjiev CLA 2013-05-09 07:09:24 EDT
The only place where we could define these pseudo class selectors (-ms-clear and -ms-reveal) is rwt-index.html. We already have some element styles there (for basic markup elements). Any better suggestions?
Comment 2 Tim Buschtoens CLA 2013-05-13 08:01:07 EDT
Putting it in the index.html is fine, but we should not bother other browser with unkown CSS properties. Using conditional comments would work here: http://msdn.microsoft.com/en-us/library/ms537512%28v=vs.85%29.aspx

I.e. 
<!--[if gte IE 10]>
<css stuff>
<![endif]-->
Comment 3 Ivan Furnadjiev CLA 2013-05-13 11:41:58 EDT
(In reply to comment #2)
> Putting it in the index.html is fine, but we should not bother other browser
> with unkown CSS properties. Using conditional comments would work here:
> http://msdn.microsoft.com/en-us/library/ms537512%28v=vs.85%29.aspx
Tim, the conditional comments are not supported in IE10. In the link above there is an important section:
"Important  As of Internet Explorer 10, conditional comments are no longer supported by standards mode."
Comment 4 Ivan Furnadjiev CLA 2013-05-13 12:44:25 EDT
Fixed with commit 66b8d0fa4c5b35f27e13bd22c4e53af038ae3076.