W3C home > Mailing lists > Public > www-style@w3.org > October 2015

Re: [css-text-decor] Value syntax of text-emphasis shorthand

From: Xidorn Quan <quanxunzhen@gmail.com>
Date: Fri, 23 Oct 2015 13:03:35 +1100
Message-ID: <CAMdq699ztveczAWh1nYZekBoNFUKVz2LCiUUigUSuxV+CuT6HA@mail.gmail.com>
To: www-style list <www-style@w3.org>
On Fri, Oct 23, 2015 at 12:25 PM, Xidorn Quan <quanxunzhen@gmail.com> wrote:
> The current syntax of `text-emphasis` is "<‘text-emphasis-style’> ||
> <‘text-emphasis-color’>" and the spec says "Omitted values are set to
> their initial values". However, the initial value of
> `text-emphasis-style` is `none`, which means it just makes no sense to
> set only `text-emphasis-color` in this shorthand.
>
> Thus I propose that the syntax should be "<‘text-emphasis-style’> &&
> <‘text-emphasis-color’>?".
>
> This probably also applies to `text-decoration` shorthand, whose
> syntax could be change to "<‘text-decoration-line’> &&
> <‘text-decoration-style’>? && <‘text-decoration-color’>?".

In addition, I guess the initial value of `text-emphasis` probably
should also be `none`, like `text-decoration`, instead of "see
individual properties".

- Xidorn
Received on Friday, 23 October 2015 02:04:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:26 UTC