From a4e1ffda1af5e1a7853ab1cd97d05e645d3786f8 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 25 Feb 2008 16:37:48 +0000 Subject: Improve handling of HTML attributes / markup: * Only apply presentational HTML attributes if no more important CSS has been set for the property. (NetSurf used to be a bit hit-and-miss when presentational markup and CSS were mixed.) * Change table cellpadding and border handling to happen as soon the boxes styles are available, rather than after the whole table has been constructed. Also fix default table border colour. * Improve handling of CENTER tag and ALIGN attribute. These could not be correctly supported in the default CSS file, so block level element alignment is now done during box construction. (Fixes #1891379, #1824492, #1723853) Form improvements: * Small MAXLENGTH values on text inputs now reduce element width. (Fixes #1894854) * Prevent select option text from wrapping. svn path=/trunk/netsurf/; revision=3866 --- !NetSurf/Resources/CSS,f79 | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to '!NetSurf') diff --git a/!NetSurf/Resources/CSS,f79 b/!NetSurf/Resources/CSS,f79 index 3eca49ebb..ae45f5179 100644 --- a/!NetSurf/Resources/CSS,f79 +++ b/!NetSurf/Resources/CSS,f79 @@ -11,9 +11,6 @@ head { display: none; } body { display: block; padding: 8px; line-height: 1.33; } div { display: block; } -div[align=left] > * { margin-right: auto; } -div[align=center] > * { margin-left: auto; margin-right: auto; } -div[align=right] > * { margin-left: auto; } h1 { display: block; font-size: 2em; font-weight: bold; margin: .67em 0; } h2 { display: block; font-size: 1.5em; font-weight: bold; margin: .69em 0; } @@ -92,13 +89,9 @@ th { font-weight: bold; text-align: center; } td[nowrap], th[nowrap] { white-space: nowrap; } -td[align=left] > *, th[align=left] > * { margin-right: auto; } -td[align=center] > *, th[align=center] > * { margin-left: auto; margin-right: auto; } -td[align=right] > *, th[align=right] > * { margin-left: auto; } - -tr[align=left] > td, tr[align=left] > th { text-align: left; margin-right: auto; } -tr[align=center] > td, tr[align=center] > th { text-align: center; margin-left: auto; margin-right: auto; } -tr[align=right] > td, tr[align=right] > th { text-align: right; margin-left: auto; } +tr[align=left] > td, tr[align=left] > th { text-align: left; } +tr[align=center] > td, tr[align=center] > th { text-align: center; } +tr[align=right] > td, tr[align=right] > th { text-align: right; } col[valign=top], colgroup[valign=top], tbody[valign=top], td[valign=top], tfoot[valign=top], th[valign=top], thead[valign=top], tr[valign=top] { vertical-align: top; } col[valign=middle], colgroup[valign=middle], tbody[valign=middle], td[valign=middle], tfoot[valign=middle], th[valign=middle], thead[valign=middle], tr[valign=middle] { vertical-align: middle; } @@ -117,7 +110,6 @@ applet[align=left] { float: left; } applet[align=right] { float: right; } center { display: block; text-align: center; } -center > * { margin-left: auto; margin-right: auto; } tt { font-family: monospace; } i { font-style: italic; } -- cgit v1.2.3