# HG changeset patch # Parent 71b824fd5af6050c3491470f21443a8a1c56ae48 Generic Values Reorganization Part I: Numeric datatypes diff --git a/Overview.src.html b/Overview.src.html --- a/Overview.src.html +++ b/Overview.src.html @@ -263,29 +263,6 @@ Property value examples common syntactic building blocks and terms that are described in this section. -
An integer is one or more decimal digits "0" to "9". -Integers may be preceded by "-" or "+" to indicate the sign. - -
-orphans: 3 --
A number is either an integer, or zero or more decimal -digits followed by a dot (.) followed by one or more decimal digits. -Numbers may be preceded by "-" or "+" to indicate the sign. - -
-line-height: 1.2 --
A number with a unit identifier is a number immediately followed by a unit identifier. @@ -398,19 +375,62 @@ inherited by default or not (which isn't such as text-decoration and visibility).
-Integer values are denoted by <integer> in the value -definitions. Properties may restrict the integer value to some range. -If the value is outside the allowed range, the declaration is ignored. +
Integer values are denoted by
+ <integer>.
+ An integer is one or more decimal digits ''0'' through ''9''
+ and corresponds to a subset of the NUMBER token in the
+ grammar.
+ Integers may be immediately preceded by ''-'' or ''+'' to indicate the
+ sign.
+
+
Properties may restrict the integer value to some range. + If the value is outside the allowed range, the declaration is invalid + and must be ignored. -
Number values are denoted by
+ <number>.
+ A number is either an integer, or zero or more decimal
+ digits followed by a dot (.) followed by one or more decimal digits.
+ It corresponds to the NUMBER token in the
+ grammar.
+ Like integers, numbers may also be immediately preceded by ''-'' or ''+''
+ to indicate the sign.
+
+
Properties may restrict the number value to some range. + If the value is outside the allowed range, the declaration is invalid + and must be ignored. -
Number values are denoted by <number> in the value -definitions. Properties may restrict the number value to some range. -If the value is outside the allowed range, the declaration is ignored. +
A percentage value is denoted by
+ <percentage>,
+ consists of a <number> immediately followed by a percent
+ sign ''%''. It corresponds to the PERCENTAGE token in the
+ grammar.
+
+
Percentage values are always relative to another value, for example a + length. Each property that allows percentages also defines the value to which + the percentage refers. The value may be that of another property for the same + element, a property for an ancestor element, or a value of the formatting + context (e.g., the width of a containing block). When a percentage + value is set for a property of the root element and the percentage + is defined as referring to the inherited value of some property, the + resultant value is the percentage times the initial value of that + property.
+ +Properties may restrict the percentage value to some range. + If the value is outside the allowed range, the declaration is invalid + and must be ignored.
The format of a percentage value, denoted by <percentage>, -is a <number> -immediately followed by '%'.
- -Percentage values are always relative to another value, for example a -length. Each property that allows percentages also defines the value to which -the percentage refers. The value may be that of another property for the same -element, a property for an ancestor element, or a value of the formatting -context (e.g., the width of a containing block). When a percentage -value is set for a property of the root element and the percentage -is defined as referring to the inherited value of some property, the -resultant value is the percentage times the initial value of that -property.
- -Since child elements (generally) inherit the computed values of -their parent, in the following example, the children of the P element will -inherit a value of 12pt for 'line-height', not -the percentage value (120%):
- -
-p { font-size: 10pt }
-p { line-height: 120% } /* 120% of 'font-size' */
-
-Do we need a "non-negative percentage", e.g. for "font-size"?