W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2018

Re: [csswg-drafts] [css-inline-3] Add keywords for raised / dropped initials

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Tue, 16 Oct 2018 15:13:21 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-430277200-1539702799-sysbot+gh@w3.org>
@AmeliaBR Not going to add keywords that compute to arbitrarily chosen constants like 3.

@Dan503 If we need sub-properties, we add sup-properties. Adding a complex syntax isn't really great, it was just unavoidable in Grid. :(

Proposal is to change the syntax of `initial-letters` from

```
initial-letters: <number> <integer>?
```

to

```
initial-letters: <number> [ drop | raise | <integer>]?
```

Where an omitted second argument is equal to `drop` which computes to the positive integer floor of `<number>`; and where `raise` computes to `1`.

This is basically syntactic just sugar for what we have already.

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2955#issuecomment-430277200 using your GitHub account
Received on Tuesday, 16 October 2018 15:13:31 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:38 UTC