This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
ideas:functional-notation [2012/01/19 17:50] – created TabAtkins | ideas:functional-notation [2012/02/06 07:16] – [General Principles] add Tab's explanations fantasai | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== General Principles ====== | ====== General Principles ====== | ||
- | - Lowest operator is comma | ||
- | - Lists of parallel items are comma-separated | ||
- Functions group/ | - Functions group/ | ||
- | - Optionality is handled | + | - Optionality is handled |
- Ordering should be flexible as much as possible/ | - Ordering should be flexible as much as possible/ | ||
+ | - Lists of parallel items are comma-separated | ||
+ | - Lowest operator is comma | ||
- Backwards compat should be preserved unless there' | - Backwards compat should be preserved unless there' | ||
+ | More explanation: | ||
+ | |||
+ | - Functional notation is a way of wrapping a subset of a property' | ||
+ | - The comma should be used as a separator between parallel values (similar to background-*) or fallback values (similar to font-family). | ||
+ | - Otherwise, values should be space-separated, | ||
+ | - When a function is overtly math-y, it may make sense to use commas to separate arguments, even if there' | ||
+ | - In rare cases, keywords may be used to prefix sets of values to allow unambiguous parsing. | ||
+ | |||
+ | |||
+ | http:// | ||
===== Rounding Functions ===== | ===== Rounding Functions ===== | ||
Line 34: | Line 44: | ||
: '' | : '' | ||
; Rationale | ; Rationale | ||
- | : The comma isn't needed for grouping or disambiguation. Other places in CSS that accept an x and y length space-separate, | + | : The comma isn't needed for grouping or disambiguation. Other places in CSS that accept an x and y length space-separate, |
; Extra Note | ; Extra Note | ||
: The same applies to '' | : The same applies to '' | ||
Line 45: | Line 55: | ||
: '' | : '' | ||
; Rationale | ; Rationale | ||
- | : The comma isn't needed for grouping or disambiguation. | + | : The comma isn't needed for grouping or disambiguation. |
| | ||
--- | --- | ||
Line 96: | Line 106: | ||
: '' | : '' | ||
; Rationale | ; Rationale | ||
- | : Same as '' | + | : Same as '' |