WebCore:
Reviewed by Adele Peterson and Dave Hyatt.
- fix <rdar://problem/6654344> REGRESSION (r41041): Zillow.com has
misaligned edit fields
Test: fast/forms/legend-display-none.html
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::adjustRenderStyle): Change the display
property of legend elements to 'block' unless it is 'none'.
* css/html4.css: Do not force the display property of legend elements to
'block' using CSS, because that prevents style rules from setting it to
'none'.
LayoutTests:
Reviewed by Adele Peterson and Dave Hyatt.
- test for <rdar://problem/6654344> REGRESSION (r41041): Zillow.com has
misaligned edit fields
* fast/forms/legend-display-none-expected.txt: Added.
* fast/forms/legend-display-none.html: Added.
git-svn-id: svn://svn.chromium.org/blink/trunk@41538 bbb929c8-8fbe-4397-9dbb-9b2b20218538
diff --git a/WebCore/css/html4.css b/WebCore/css/html4.css
index 2fc3d8e0..4709a37 100644
--- a/WebCore/css/html4.css
+++ b/WebCore/css/html4.css
@@ -279,7 +279,7 @@
}
legend {
- display: block !important;
+ display: block;
padding-left: 2px;
padding-right: 2px;
border: none