#513 bug
W. Bowley

Safari 3.2.1 clonePosition css bug.

Reported by W. Bowley | January 6th, 2009 @ 05:57 AM

I have found an oddity with Safari 3.2.1 wherein if the style declarations for given elements are inline with the page, the clonePosition function works as designed and elements are placed where they should be.

Moving that exact same code to an external .css file then breaks the positioning (ie: the element is not cloned to the proper position). This does not affect IE7 / FireFox 3.

Comments and changes to this ticket

  • Tobie Langel

    Tobie Langel January 6th, 2009 @ 02:50 PM

    • Tag set to needs_failing_test_case, needs_patch, needs_tests
    • State changed from “new” to “incomplete”
  • Tobie Langel

    Tobie Langel January 6th, 2009 @ 02:51 PM

    • State changed from “incomplete” to “bug”
  • michael (at mdaines)

    michael (at mdaines) January 13th, 2009 @ 05:45 PM

    It appears the root of the issue is that Safari makes external CSS declarations available on elements later than Firefox. When using the "dom:loaded" event as in this example, external styles aren't yet available. (Element.getStyle returns null when asking for an element's left style, for example.) A possible workaround is to use window.load.

    I have attached a slightly more reduced test case that demonstrates this. (Outputs results to the console.)

  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 02:26 AM

    • Tag changed from needs_failing_test_case, needs_patch, needs_tests to missing:tests, needs_failing_test_case, needs_patch

    [not-tagged:"needs_tests" tagged:"missing:tests" bulk edit command]

  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 02:28 AM

    • Tag changed from missing:tests, needs_failing_test_case, needs_patch to missing:patch, missing:tests, needs_failing_test_case

    [not-tagged:"needs_patch" tagged:"missing:patch" bulk edit command]

  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 03:36 AM

    • Tag changed from missing:patch, missing:tests, needs_failing_test_case to missing:patch, needs:tests, needs_failing_test_case

    [not-tagged:"missing:tests" tagged:"needs:tests" bulk edit command]

  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 03:37 AM

    • Tag changed from missing:patch, needs:tests, needs_failing_test_case to needs:patch, needs:tests, needs_failing_test_case

    [not-tagged:"missing:patch" tagged:"needs:patch" bulk edit command]

  • Tobie Langel

    Tobie Langel July 24th, 2009 @ 03:40 AM

    • Tag changed from needs:patch, needs:tests, needs_failing_test_case to needs:failing_testcase, needs:patch, needs:tests

    [not-tagged:"needs_failing_test_case" tagged:"needs:failing_testcase" bulk edit command]

  • T.J. Crowder

    T.J. Crowder November 16th, 2009 @ 04:50 PM

    [responsible:none bulk edit command]

  • Tobie Langel

    Tobie Langel March 1st, 2010 @ 12:41 AM

    • Tag changed from needs:failing_testcase, needs:patch, needs:tests to needs:failing_testcase, needs:patch, needs:tests, section:dom

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Attachments

Pages