This project is archived and is in readonly mode.

#1124 ✓invalid
Paris Theofanidis

getStyle('border-width') on table tag with border-collapse and CSS border width=1

Reported by Paris Theofanidis | December 25th, 2010 @ 02:52 AM | in 1.4.0 (closed)

getStyle('border') returns border-width=0 with tag

I noticed it when I set the borders of the table to collapsed, but occurs also when border-collapse is not set.
It works as expected only if the border-width is set through javascript code.

I have written a tiny demo on jsfiddle. Notice how on the div.output the printed border-width is 0px!

Comments and changes to this ticket

  • Arian

    Arian December 25th, 2010 @ 12:35 PM

    • Milestone set to 1.3.1
    • State changed from “new” to “open”
    • Assigned user set to “Fábio M. Costa”
    • Milestone order changed from “855” to “0”

    I get the following output in Chrome and similar results in Opera and IE.

    0px none [#808080](/projects/2706/tickets/808080 "Ticket #808080") 0px none [#808080](/projects/2706/tickets/808080 "Ticket #808080") 1px solid [#000000](/projects/2706/tickets/000000 "Ticket #000000") 0px none [#808080](/projects/2706/tickets/808080 "Ticket #808080")

    which seems correct to me.

    In Firefox 3.6 and 4b8 however it is:

    0px none [#000000](/projects/2706/tickets/000000 "Ticket #000000") 0px none [#000000](/projects/2706/tickets/000000 "Ticket #000000") 0px solid [#000000](/projects/2706/tickets/000000 "Ticket #000000") 0px none [#000000](/projects/2706/tickets/000000 "Ticket #000000")

    Which is indeed incorrect.

  • Fábio M. Costa

    Fábio M. Costa December 27th, 2010 @ 12:06 AM

    The thing it shouldnt be setting a border on a tr, but on td or th.
    Check this out:

    Looks like, even if you set the border to the tr, firefox will set it on the td/th into it.

  • Fábio M. Costa

    Fábio M. Costa February 23rd, 2011 @ 03:39 AM

    • Milestone changed from 1.3.1 to 1.4.0
    • Assigned user changed from “Fábio M. Costa” to “Arian”
    • Milestone order changed from “9” to “0”
  • ibolmo

    ibolmo January 19th, 2012 @ 08:45 AM

    • State changed from “open” to “invalid”

Create your profile

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

Shared Ticket Bins