diff --git a/layout/generic/nsLineLayout.cpp b/layout/generic/nsLineLayout.cpp index ca49fafad406..ef7777373240 100644 --- a/layout/generic/nsLineLayout.cpp +++ b/layout/generic/nsLineLayout.cpp @@ -1880,6 +1880,9 @@ nsLineLayout::VerticalAlignFrames(PerSpanData* psd) psd->mBEndLeading = endLeading; } psd->mLogicalBSize += deltaLeading; + // We have adjusted the leadings, it is no longer a zero + // effective span box. + zeroEffectiveSpanBox = false; } } diff --git a/layout/reftests/css-ruby/line-height-4-ref.html b/layout/reftests/css-ruby/line-height-4-ref.html new file mode 100644 index 000000000000..7f6b3164874b --- /dev/null +++ b/layout/reftests/css-ruby/line-height-4-ref.html @@ -0,0 +1,15 @@ +Bug 1134206 - Ruby line spacing adjustment on quirks mode + +
+ base + text + text +
+next line + diff --git a/layout/reftests/css-ruby/line-height-4.html b/layout/reftests/css-ruby/line-height-4.html new file mode 100644 index 000000000000..978aa5c70b0a --- /dev/null +++ b/layout/reftests/css-ruby/line-height-4.html @@ -0,0 +1,7 @@ +Bug 1134206 - Ruby line spacing adjustment on quirks mode + + base + text + text +
+next line diff --git a/layout/reftests/css-ruby/reftest.list b/layout/reftests/css-ruby/reftest.list index aa77ed3b1f8e..b5d108bf87e1 100644 --- a/layout/reftests/css-ruby/reftest.list +++ b/layout/reftests/css-ruby/reftest.list @@ -33,6 +33,7 @@ default-preferences pref(layout.css.ruby.enabled,true) == line-height-1.html line-height-1-ref.html == line-height-2.html line-height-2-ref.html == line-height-3.html line-height-3-ref.html +== line-height-4.html line-height-4-ref.html load nested-ruby-1.html == no-transform.html no-transform-ref.html == relative-positioning-1.html relative-positioning-1-ref.html