W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

[whatwg] New CSS Properties

From: Joshua Smith <micovision@verizon.net>
Date: Sun, 11 Nov 2012 08:41:37 -0500
Message-id: <AF8457F7-2F2A-41C0-890C-27FFA85B146A@verizon.net>
To: whatwg@lists.whatwg.org
I would like to suggest a few things to add to the CSS specifications.  I don't know the cost of implementation, but I am just giving you a few ideas that I had.

Foreground Property: like the background property, but layered above not below the object.  I really think this property would be helpful for development, and also, it would really streamline the HTML.
Adding to that: opacity properties for the background and foreground.  Could be seen as background-opacity.
Interior Styles: the capability to assign a style to an object from a different object's stylesheet.  The use of this may not be apparent up-front, but it would be very helpful especially with events like :hover.  For Example:
.someThing:hover {
	background: blue;
	.someThing .someChild {background: black;}; 

This brings me to two more suggestions: References and Routines.  Routines would be allowed for all elements to use.  They are similar to functions in other languages.  They could be expressed as ~referenceName {some-attribute: value;}.  References would be inside style declarations, and could be seen as .someThing ~referenceName.  They would evoke the specified Routine on the specified object.

Joshua Smith
Received on Sunday, 11 November 2012 15:23:48 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:48 UTC