Forums
|
|
|
|
Page 1 of 1
|
[ 6 posts ] |
|
CSS3 PIE with jQuery mobile problem
| Author |
Message |
|
ashraf_sabry_m
Joined: Wed Dec 21, 2011 4:55 am Posts: 4
|
 CSS3 PIE with jQuery mobile problem
Greetings,
I have a problem with making PIE work on a page having jQuery mobile setup.
When I remove jQ mobile script include tag, PIE works fine, but when jQ mobile is included, PIE not only doesn't apply CSS3 attributes but also some common attributes like background colour. As if it completely ignores (or fails to apply) the whole CSS rule.
This must be happening because of the complex manipulations jQ mobile does to the DOM, but I just inquire if the PIE development team has any idea about the cause of this problem.
I know that it's strange to run a jQ mobile page on old IE, but my page is mainly designed for mobile devices, and the client wants it to run and have a descent look on all desktop browsers, including IE 8.
Regards,
|
| Wed Dec 21, 2011 5:06 am |
|
 |
|
ashraf_sabry_m
Joined: Wed Dec 21, 2011 4:55 am Posts: 4
|
 Re: CSS3 PIE with jQuery mobile problem
I'm using PIE version 1.0beta5 on IE 8 on WinXP
|
| Wed Dec 21, 2011 8:27 am |
|
 |
|
jason
Joined: Wed Jul 14, 2010 11:46 am Posts: 1396
|
 Re: CSS3 PIE with jQuery mobile problem
I haven't heard of this issue from anyone else... probably because of the scenario which you admitted is a bit strange.  I'm happy to take a look if you have a URL that demonstrates the issue.
|
| Wed Dec 21, 2011 11:17 am |
|
 |
|
ashraf_sabry_m
Joined: Wed Dec 21, 2011 4:55 am Posts: 4
|
 Re: CSS3 PIE with jQuery mobile problem
Thanks for your reply.
Yes, I think that you won't find anyone who have tried this scenario before.
I attach the page to this post. I made a dummy div with id "gogo" styled with the CSS rule #gogo which has the PIE behaviour.
gogo should have rounded corners. If you remove jQ mobile script include it will work, but with jQ mobile included it won't.
|
| Wed Dec 21, 2011 1:01 pm |
|
 |
|
jason
Joined: Wed Jul 14, 2010 11:46 am Posts: 1396
|
 Re: CSS3 PIE with jQuery mobile problem
Thanks for the zip. At its most basic you're just running into the common z-index issue -- see http://css3pie.com/documentation/known-issues/#z-index -- PIE's rendering element is just slipping behind the container's background-color that is added by jQM. Adding position:relative fixes that, but it seems there's another bug where it's not painting until you mouse over the div. I'll try to look into that more deeply when I have time.
|
| Wed Dec 21, 2011 1:34 pm |
|
 |
|
ashraf_sabry_m
Joined: Wed Dec 21, 2011 4:55 am Posts: 4
|
 Re: CSS3 PIE with jQuery mobile problem
Greetings,
Thanks for your reply.
When position:relative and the PIE behaviour are placed in one CSS rule with the other attributes (background, border, ...) everything works fine. But when I place the position and behaviour in a separate rule (to enable applying PIE conditionally for IE only), the problem you mentioned occurs: the background doesn't appear until the mouse hovers over the div, and the border doesn't appear at all.
I may write the position and behaviour inside all the CSS rules. Behaviour is ignored by all browsers other than IE, but I fear that position:relative cause unexpected results specially that this page is intended to work on a variety of devices.
|
| Thu Dec 22, 2011 3:11 am |
|
|
|
Page 1 of 1
|
[ 6 posts ] |
|
Who is online |
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|