W3C home > Mailing lists > Public > www-style@w3.org > November 2014

Re: Multiple assignment structure (suggestion)

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 28 Nov 2014 12:24:35 +1100
Message-ID: <5477CED3.6060803@mcc.id.au>
To: Felipe Nascimento de Moura <felipenmoura@gmail.com>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style <www-style@w3.org>
Felipe Nascimento de Moura wrote:
> I am suggesting a new way for these tools to compress the css, for us :)

I tried taking your example, before and after your compression 
suggestion, and compressing the files with gzip.

/* one.css */
.selector-1, .selector-2 { border-color: #0b0b0b; color: #0b0b0b; 
padding: 10px; margin: 10px; border-top: 10px; left: 100px; top: 100px; }

/* two.css */
.selector-1, .selector-2 { border-color, color: #0b0b0b; padding, 
margin, border-top: 10px; left, top: 100px; }

File             Size
---------------  ---------
one.css          140 bytes
two.css          112 bytes
one.css gzipped  105 bytes
two.css gzipped  104 bytes

Most web servers will transparently compress content with gzip when it 
is transferred.
Received on Friday, 28 November 2014 01:25:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:48 UTC