Fieldset unexpectedly stretches to minimum intrinsic width
[WebKit-https.git] / Source / WebCore / rendering / RenderFieldset.cpp
index 3b70e6a113cab89755ce9eb85a83f3e18ba51e52..c9c7dc45f8d4f9da8a05ef529f5c5e0382943ee6 100644 (file)
@@ -195,4 +195,13 @@ void RenderFieldset::paintMask(PaintInfo& paintInfo, const LayoutPoint& paintOff
     paintMaskImages(paintInfo, paintRect);
 }
 
+bool RenderFieldset::stretchesToMinIntrinsicLogicalWidth() const
+{
+    // If width is explicitly specified then Fieldsets should not stretch
+    if (style()->width().isPercent())
+        return false;
+
+    return true;
+}
+
 } // namespace WebCore