Re: [csswg-drafts] [css-inline] initial-letter appliance and inheritance

> I think you missed “However, the initial-letter property does not apply to any box that is itself a descendant of an initial letter box.” ?

I missed that indeed, thanks. And thanks for the acknowledgment!

But still a bit concerned about edge cases of `::first-letter`, e.g. should it be possible to have two initial letter boxes in the same block container? If you have

```html
<div><span>‘</span>T</div>
```
```css
div::first-letter { initial-letter: 2; }
span { initial-letter: 3; }
```

then CSS pseudo allows the above to generate this tree:

- `<div>`
  - `<span>`
    - `'`
  - `::first-letter`
    - `T`

Note `initial-letter` applies to both the `<span>` and `::first-letter`, and they aren't nested.

Maybe you can handle this with

> Furthermore, if 'initial-letter' is applied to an <a>inline-level box</a>
> that is not positioned at the start of the line, **for example** due to bidi reordering,
> its used value is ''initial-letter/none''.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2184#issuecomment-391882797 using your GitHub account

Received on Thursday, 24 May 2018 22:15:00 UTC