diff --git a/components/layout/table_caption.rs b/components/layout/table_caption.rs index 8a426da962f..210bc8019e7 100644 --- a/components/layout/table_caption.rs +++ b/components/layout/table_caption.rs @@ -82,7 +82,7 @@ impl Flow for TableCaptionFlow { } fn iterate_through_fragment_bounds(&self, iterator: &mut FragmentBoundsIterator) { - self.iterate_through_fragment_bounds(iterator); + self.block_flow.iterate_through_fragment_bounds(iterator); } } diff --git a/tests/content/test_caption.html b/tests/content/test_caption.html index 3280701b166..64d487df922 100644 --- a/tests/content/test_caption.html +++ b/tests/content/test_caption.html @@ -17,5 +17,8 @@ t.caption = newCaption; is(newCaption.parentNode, t); is(t.caption, newCaption); + + // Test for https://github.com/servo/servo/issues/3997 + t.getBoundingClientRect();