- From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
- Date: Tue, 04 Oct 2016 12:24:01 +0000
- To: public-css-archive@w3.org
> They don't clarify any behavior. It's grammatical syntactic sugar. They specify the behavior right in the syntax additionally to the prose, which allows to see at a glance how they are computed. > Not really worth fixing imho. I could provide a patch if we agreed on it. Quick overview of properties taking percentage values and whether they could be replaced by the new data types: Property | Computed value | `<*-percentage>` values? -------- | -------------- | ---------------------- [background-position](https://www.w3.org/TR/CSS22/colors.html#propdef-background-position) | for \<length> the absolute value, otherwise a percentage | :x: [bottom](https://www.w3.org/TR/CSS22/visuren.html#propdef-bottom) | if specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, 'auto'. | :x: [font-size](https://www.w3.org/TR/CSS22/fonts.html#propdef-font-size) | absolute length | :white_check_mark: [height](https://www.w3.org/TR/CSS22/visudet.html#propdef-height) | the percentage or 'auto' (as specified) or the absolute length | :question: [left](https://www.w3.org/TR/CSS22/visuren.html#propdef-left) | if specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, 'auto'. | :x: [line-height](https://www.w3.org/TR/CSS22/visudet.html#propdef-line-height) | for <length> and \<percentage> the absolute value; otherwise as specified | :white_check_mark: [margin-bottom](https://www.w3.org/TR/CSS22/box.html#propdef-margin-bottom) | the percentage as specified or the absolute length | :question: [margin-left](https://www.w3.org/TR/CSS22/box.html#propdef-margin-left) | the percentage as specified or the absolute length | :question: [margin-right](https://www.w3.org/TR/CSS22/box.html#propdef-margin-right) | the percentage as specified or the absolute length | :question: [margin-top](https://www.w3.org/TR/CSS22/box.html#propdef-margin-top) | the percentage as specified or the absolute length | :question: [max-height](https://www.w3.org/TR/CSS22/visudet.html#propdef-max-height) | the percentage as specified or the absolute length or 'none' | :question: [max-width](https://www.w3.org/TR/CSS22/visudet.html#propdef-max-width) | the percentage as specified or the absolute length or 'none' | :question: [min-height](https://www.w3.org/TR/CSS22/visudet.html#propdef-min-height) | the percentage as specified or the absolute length | :question: [min-width](https://www.w3.org/TR/CSS22/visudet.html#propdef-min-height) | the percentage as specified or the absolute length | :question: [padding-bottom](https://www.w3.org/TR/CSS22/box.html#propdef-padding-bottom) | the percentage as specified or the absolute length | :question: [padding-left](https://www.w3.org/TR/CSS22/box.html#propdef-padding-left) | the percentage as specified or the absolute length | :question: [padding-right](https://www.w3.org/TR/CSS22/box.html#propdef-padding-right) | the percentage as specified or the absolute length | :question: [padding-top](https://www.w3.org/TR/CSS22/box.html#propdef-padding-top) | the percentage as specified or the absolute length | :question: [pause-after](https://www.w3.org/TR/CSS22/aural.html#propdef-pause-after) | time | :white_check_mark: [pause-before](https://www.w3.org/TR/CSS22/aural.html#propdef-pause-before) | time | :white_check_mark: [right](https://www.w3.org/TR/CSS22/visuren.html#propdef-right) | if specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, 'auto'. | :x: [text-indent](https://www.w3.org/TR/CSS22/text.html#propdef-text-indent) | the percentage as specified or the absolute length | :question: [top](https://www.w3.org/TR/CSS22/visuren.html#propdef-top) | if specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, 'auto'. | :x: [volume](https://www.w3.org/TR/CSS22/aural.html#propdef-volume) | number | :white_check_mark: [width](https://www.w3.org/TR/CSS22/visudet.html#propdef-width) | the percentage or 'auto' as specified or the absolute length | :question: So, the values that can be safely replaced by `<*-percentage>`s are `font-size`, `line-height`, `pause-after`, `pause-before` and `volume`. For the ones with :question: the descriptions suggest that it's up to the UA whether it computes them to percentage or absolute values. Having said the above, I agree that it would only be a small improvement. So, if you still think it's not worth fixing - and besides you, @fantasai, I'd like to get feedback about that from @tabatkins - feel free to close this issue. Sebastian -- GitHub Notification of comment by SebastianZ Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/504#issuecomment-251372969 using your GitHub account
Received on Tuesday, 4 October 2016 12:24:10 UTC