W3C home > Mailing lists > Public > www-style@w3.org > September 2001

The group of property to CSS3

From: Juan Fabian <firme@mixmail.com>
Date: Fri, 28 Sep 2001 18:15:13 -0400 (EDT)
Message-Id: <20010929001021.HM.70000000000BTLk@mixmail.com>
To: www-style@w3.org
---------------------------------------------------------
------------------------

The @group-property rule

The group of property to CSS3

			
	Note 20 September 2001.
---------------------------------------------------------
------------------------

Abstract
========  
	When one is built it paginates for 
internet, it is indispensable to declare many 
styles, for layers and dynamic effects.   
	The current form of declaring many 
layers with style sheets, increases the size 
and the complexity of the file of it paginates 
it.  
	A solution is to summarize many 
properties, in a single general property.  
	For this reason I propose, to 
create a called rule: "@ property."  
	This rule provides the advantage 
of declaring a property that contains other 
sub properties that can be defined in an 
unique rule.   

Syntax:  
================================
================================
===

	@ property { new property 
{property property property etc.... } }  

================================
================================
===

@ property: this rule defines a new nested 
property. Name alternative: @group-
property, @rule, @multi-property, etc..  
-----------
  
new property: name of a new property 
assigned by the user.  
-------------
  
property: properties of a style sheets. 
---------

 
	 The '@rule' property is a 
shorthand property for setting the individual  
element properties ('background-
color', 'position', 'color', 'padding-right', 
etc....) at the same place in the style sheet. 

Each value included in a rule "@ property", it 
acquires when being declared the 
value "initial."  

To reduce the size of style sheets, one can 
group properties. 

Here are a few example:

1. Source:(setting properties for many 
elements )
===========

	@property box { position width 
height top left clip overflow background-
color }


2. HTML Style sheet:(only setting properties 
on the element)
====================

	&lt;DIV style="box: absolute 
200px initial 4% citrus rect(34px,50px) 
scroll;"&gt;...&lt;/DIV&gt;


3. Style sheet:(The following rules are 
equivalent)
============

DIV { 
		position: absolute; 
		width: 200px;
		height: initial;
		top: 4%;
		left: citrus;       /*  
property with invalid value  */
		clip: rect(34px,50px);
		overflow: scroll;
		background-color: ; /*  
empty property  */
	}



Example:
========

&lt;HTML&gt;
  &lt;HEAD&gt;
    &lt;TITLE&gt;@Rule for CSS3&lt;/TITLE&gt;
    &lt;STYLE TYPE="text/css"&gt;
      @ property {

		box { position top left 
overflow visibility }

		trunk { display color 
font-size font-family background-image }
            }
    &lt;/STYLE&gt;
  &lt;/HEAD&gt;
  &lt;BODY&gt;
    &lt;DIV STYLE="box: relative 3em 5em 
auto hidden;"&gt; Celtic&lt;/DIV&gt;
    &lt;DIV STYLE="box: fixed auto 1em 
hidden inherit;"&gt; Celtic2&lt;/DIV&gt;

    &lt;P STYLE="trunk: none green 12px Arial 
url(server.jpg);"&gt; TextCeltic&lt;/P&gt;

  &lt;/BODY&gt;
&lt;/HTML&gt;


Note:
=====
	Excuse grammar's errors, since I 
don't speak English. It is because I live in 
America of the South,and speaks Spanish 
better.  
And I would like a lot that includes this idea 
in CSS3.

			Jhon Uriarte
(from Argentina)




Tu correo gratis en MixMail http://www.mixmail.com
Mete 15.000 amigos en tu casa http://chat.ya.com
Received on Friday, 28 September 2001 19:26:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:10 GMT