W3C home > Mailing lists > Public > www-style@w3.org > October 2010

Re: practicality of user styleshseets

From: Felix Miata <mrmazda@earthlink.net>
Date: Tue, 19 Oct 2010 22:32:12 -0400
Message-ID: <4CBE54AC.6000602@earthlink.net>
To: www-style@w3.org
Example:

Why? I shop there frequently, and its Clagnut CSS method clashes with generic user CSS (e.g. body, #body,
#content, #main, .medium, .normal, p {font:medium/1.2 sans-serif !important}), making most of the page's
important text 18pt or larger, and creating a large horizontal scroll.

URL http://www.newegg.com/Product/Product.aspx?Item=N82E16822148397 using 76kb in 5 CSS files

used sed on the 2 single line CSS files to append newlines to each }

grepped lines containing:
	font-size
	font:
	{height:
	;height:
	line-height;
	#444
to create a single work file.

s/font-size:16px/font-size/\/*16px*\/large !important/g
s/font-size:15px/font-size/\/*15px*\/large !important/g
s/font-size:14px/font-size/\/*14px*\/medium !important/g
s/font-size:13px/font-size/\/*13px*\/medium !important/g
s/font-size:12px/font-size/\/*12px*\/medium !important/g
s/font-size:11px/font-size/\/*11px*\/small !important/g
s/font-size:10px/font-size/\/*10px*\/x-small !important/g
s/font-size:9px/font-size/\/*9px*\/x-small !important/g
s/r:#444/r:\/*#444*\/#000 !important/g

>From there I went through and manually changed:
1-most >normal line-heights to 1.2 !important
2-most background images to none !important
3-most font: rules similar to the above px substitutions, along with sans-serif !important to guarantee I won't
see ugly Verdana, boring Arial or corrupt Helvetica instead of my favorite family of the month
4-most px heights to auto !important
5-instances of gray text to #000 !important
6-instances of overflow: hidden to overflow: scroll !important

Time to first draft: about 2 hours
13kb first draft http://fm.no-ip.com/Css/Share/newegg.css
17kb previously used http://fm.no-ip.com/Css/Share/newegg-v2.css
17kb from 4 years ago http://fm.no-ip.com/Css/Share/newegg-v1.css

I haven't tested yet, since I'm not ready for the required browser restart that enables it.
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://fm.no-ip.com/
Received on Wednesday, 20 October 2010 02:32:49 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:33 GMT