Skip to content

Commit 235c5dc

Browse files
committed
Fix problem with table frames in IE with zero-height tables. Also fix problem with HTMLboxChild when child is is empty and the container doesn't have a bbox. Resolves issues found by Fred's test framework.
1 parent ca34855 commit 235c5dc

File tree

1 file changed

+5
-1
lines changed
  • unpacked/jax/output/HTML-CSS

1 file changed

+5
-1
lines changed

unpacked/jax/output/HTML-CSS/jax.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,9 @@
954954
},
955955
createFrame: function (span,h,d,w,t,style) {
956956
if (h < -d) {d = -h} // make sure h is above d
957-
var T = (this.msieBorderWidthBug ? 0 : 2*t);
957+
var T = 2*t;
958+
if (this.msieFrameSizeBug) {if (w < T) {w = T}; if (h+d < T) {h = T-d}}
959+
if (this.msieBorderWidthBug) {T = 0}
958960
var H = this.Em(h+d-T), D = this.Em(-d-t), W = this.Em(w-T);
959961
var B = this.Em(t)+" "+style;
960962
var frame = this.addElement(span,"span",{
@@ -1625,6 +1627,7 @@
16251627
},
16261628
HTMLboxChild: function (n,box) {
16271629
if (this.data[n]) {return this.data[n].toHTML(box)}
1630+
if (!box.bbox) {box.bbox = this.HTMLzeroBBox()}
16281631
return null;
16291632
},
16301633

@@ -2703,6 +2706,7 @@
27032706
msieMarginScaleBug: (mode < 8), // relative margins are not scaled properly by font-size
27042707
msiePaddingWidthBug: true,
27052708
msieBorderWidthBug: quirks,
2709+
msieFrameSizeBug: (mode <= 8), // crashes if size of box isn't big enough for border
27062710
msieInlineBlockAlignBug: (!isIE8 || quirks),
27072711
msiePlaceBoxBug: (isIE8 && !quirks),
27082712
msieClipRectBug: !isIE8,

0 commit comments

Comments
 (0)