View unanswered posts | View active topics It is currently Tue Jan 21, 2020 11:03 am

Reply to topic  [ 4 posts ] 
 Nested Border-radiuses not loading until play with styles 
Author Message

Joined: Tue Jul 20, 2010 7:25 am
Posts: 4
Post Nested Border-radiuses not loading until play with styles
Update - this has been solved - see the end

Firstly - this is exactly what i've been looking for, for ages! It's really good.

I have one issue with it - I can't seem to get nested border-radiuses working unless I manually go into IE developer tools and turn a style on or off.

I have tried it with a simple example in static html, eg: <div class="border1"><div class="border2"></div></div>, and this works fine. It only seems to be a problem in my convoluted dhtml example, where there is a big tree structure and all the elements are being created in javascript.

So, unless this is some kind of known issue (I looked through the bug reports and didn't find any mention though), is there some way of programmatically resetting the styles like I do in Dev tools - I tried manually overriding the style of the elements in a timeout, but to no effect - or some other work around that any one knows of?

Otherwise I'll try to make some kind of test case for you.

Good work though - this makes IE look great!


Update: So I can replicate why it happens:

This won't work:

<!DOCTYPE html>
<style type="text/css">

#a {
  behavior: url(/;
#b {
  behavior: url(/;

      <script type='text/javascript'>
       var d1 = document.createElement("div")
       var d2 = document.createElement("div")
       d1.appendChild(d2) = "a"; = "b";

But if add the ids before the appendChild calls, then it will be fine. Unfortunately, its a big existing library that I am working with that is adding the class that is being used for my elements after creation. So - can I refresh the styles somehow after I set the id/classname of an element?


Update #2

I seem to have solved the issue; this seems to do the trick:

setTimeout(function () {"url(/dwsApps-v2/";}, 10)

I'm not sure if that's entirely valid javascript/dom calls - my library does this for me using our own functions, but you get the idea!

Tue Jul 20, 2010 7:33 am

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1452
Post Re: Nested Border-radiuses not loading until play with style
I'm glad you found a workaround. However that is one fugly hack, and I want to see if there's a real solution that won't require such nastiness... therefore I've created ticket to track it.

Tue Jul 20, 2010 1:04 pm

Joined: Fri Jul 16, 2010 3:35 am
Posts: 9
Post Re: Nested Border-radiuses not loading until play with style
Not sure if this is the same issue. I have a piece of javascript that runs on document.ready which changes some element heights on my page. When PIE is loaded the heights don't ater until I 'do something' like opening developer tools or, bizzarely, changing the size of the developer tools (this is when the dev tools appear nested in the browser window). My workaround is to have my javascript add a non-breaking space to the document which forces the same effect. Not great either and not sure it will work in all situations.

Is there a way to wrap PIE into a javascript object and then call it? Might be the solution...

Thu Jul 22, 2010 11:10 am

Joined: Tue Jul 20, 2010 7:25 am
Posts: 4
Post Re: Nested Border-radiuses not loading until play with style
Just to let you know, this now seems to be fixed.

Thu Jul 29, 2010 4:18 am
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests

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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.