Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
ideas:value-list-components [2011/03/25 09:06] – andrewfedoniouk | ideas:value-list-components [2022/04/06 12:15] (current) – Aa aasim690 |
---|
====== Improving usability of ordered component value lists ====== | Doa |
| |
Several properties, such as 'transform', 'background-*', and '*-shadow', take complex ordered lists of values. Tweaking one component of such a value (e.g. changing color or rotation on :hover) requires rewriting the whole thing. | |
| |
See thread at http://lists.w3.org/Archives/Public/www-style/2011Mar/0573.html | |
| |
It is also desirable to be able to decompose complex functions like ''linear-gradient()''. Such functions are also lists (tagged n-tuples to be precise). One of practical tasks sounds like "transition of 4th color stop from color 'red' to 'yellow'". | |
In general the 'transition' shall accept only atomic values to avoid any ambiguity. E.g. it is not clear what exactly transition from ''linear-gradient(left,red,blue)'' to ''linear-gradient(top,red,yellow,blue)'' means. | |
| |
| |
| |