Re: [csswg-drafts] [css-inline-3] Should initial-letter apply to inside ::marker pseudos?

The Working Group just discussed `Should 'initial-letter' apply to 'list-style: inside' ::marker?`, and agreed to the following:

* `RESOLVED: initial-letter applies to inside markers`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> topic: Should 'initial-letter' apply to 'list-style: inside' ::marker?<br>
&lt;fantasai> github: https://github.com/w3c/csswg-drafts/issues/2705<br>
&lt;emilio> fantasai: we're not expecting this to happen immediately, but we want to make it apply since they should be laid out as any other inline<br>
&lt;emilio> fantasai: so proposal is 'yes, should apply'<br>
&lt;emilio> eae: we're not opposed to it but it's not something we can implement for a while, so as long as you're fine with that...<br>
&lt;emilio> dbaron: it doesn't feel different to whether initial-letter applies<br>
&lt;dbaron> http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0A%0Aol%2C%20li%20%7B%20list-style-position%3A%20inside%20%7D%0Ali%3A%3Afirst-letter%20%7B%20color%3A%20green%3B%20background%3A%20yellow%20%7D%0A%0A%3C%2Fstyle%3E%0A%3Col%3E%0A%3Cli%3Ehello%0A%3Cli%3Etest%0A%3C%2Fol%3E<br>
&lt;emilio> dbaron: I'm seeing interop in the non-desirable behavior so far<br>
&lt;emilio> TabAtkins: we agree it should be the same, but our code for that is bad<br>
&lt;emilio> Rossen: in our case it already applies<br>
&lt;emilio> fantasai: really?<br>
&lt;emilio> Rossen: actually no<br>
&lt;emilio> dbaron: so far Gecko / Chrome / Edge all seem to support ::first-letter but they support it on the thing after the marker<br>
&lt;emilio> myles: why is putting it on the marker better?<br>
&lt;dbaron> ... and WebKit<br>
&lt;emilio> fantasai: cause it seems reasonable to style your markers / counters using initial-letter<br>
&lt;fantasai> esp for numbered / lettered lists<br>
&lt;emilio> TabAtkins: this is common on magazines, with list items being very big and such<br>
&lt;emilio> heycam: and if they go beyond nine?<br>
&lt;emilio> TabAtkins: they don't, but if they do 'ok, there's ten, and it's bigger'<br>
&lt;emilio> [others]: that's two letters then<br>
&lt;emilio> fantasai: we definitely allow multi-letter initial-letters<br>
&lt;emilio> fantasai: what is a letter is a very interesting question outside of latin<br>
&lt;emilio> fantasai: we allow it to apply to the first inline on a block<br>
&lt;emilio> frremy: is the marker position inline?<br>
&lt;emilio> fantasai: yes when list-style-position: inline<br>
&lt;emilio> dbaron: it seems reasonable, but I'm concerned because we seem to interop on first-letter<br>
&lt;emilio> fantasai: we don't really want to change how first-letter works<br>
&lt;emilio> fantasai: first-letter should keep doing what it's doing<br>
&lt;emilio> dbaron: ok, I guess I'm fine with that<br>
&lt;dbaron> s/to whether initial-letter applies/to whether ::first-letter applies/<br>
&lt;emilio> kochi: when the list marker is a bullet and includes punctuation, is the proposal to make initial-letter apply to the bullet and the next letter?<br>
&lt;emilio> fantasai: no, only for the first inline box, if it happens to be a marker good, same for ::before, etc<br>
&lt;skk> s/kochi/koji<br>
&lt;emilio> xidorn: so if there's an inside marker, initial-letter doesn't apply to anything afterwards, right?<br>
&lt;emilio> fantasai: yes<br>
&lt;emilio> Rossen: ok, so we're on the same page, are we ready to resolve then?<br>
&lt;emilio> Rossen: regardless of if/when it's implemented<br>
&lt;emilio> myles: so if you have a list and the first letter of the list is 'This', how do you style it?<br>
&lt;emilio> fantasai: either an outside marker and initial/first-letter, or an inside marker and first-letter<br>
&lt;emilio> Rossen: confirms ^<br>
&lt;emilio> florian: not sure if I misunderstood<br>
&lt;emilio> florian: but using initial-letter you cannot change the color of the marker, you'd need to use `::marker` for that<br>
&lt;emilio> Rossen: but in any case the first inline after the marker is targeted by ::first-letter<br>
&lt;emilio> everyone: yes<br>
&lt;emilio> myles: [confused]<br>
&lt;emilio> dauwhe: ??<br>
&lt;emilio> dbaron: so, to summarize: For list items, `::first-letter` ignores the marker<br>
&lt;dauwhe> s/??/webkit will apply an initial-letter with li::first-letter, which is troubling/<br>
&lt;emilio> dbaron: so the initial-letter property applies to `::first-letter` pseudos and to inlines at the beginning of block<br>
&lt;emilio> dbaron: so the spec doesn't have the exception for when `::first-letter` is not at the beginning of the block due to an inside marker<br>
&lt;emilio> dbaron: and we need to clarify that `initial-letter` doesn't apply there<br>
&lt;emilio> dbaron: maybe bidi can do that<br>
&lt;emilio> fantasai: we need to clarify that, but the spec already mentions that<br>
&lt;fantasai> “<br>
&lt;fantasai> If initial-letter is applied to an inline-level box that is not positioned at the start of the line due to bidi reordering or which is otherwise preceded by other inline-level content, its used value is normal, and it is not formatted as an initial letter.”<br>
&lt;emilio> s/that/bidi aboe<br>
&lt;emilio> *above<br>
&lt;emilio> dbaron: so, the other piece is that the bit about initial-letter can apply to an inline at the beginning of the block, but we need to clarify that it includes the inside marker<br>
&lt;emilio> florian: the piece fantasai quoted needs to also clarify that it also applies to `::first-letter`.<br>
&lt;emilio> Rossen: ok, now that we're on the same page, is there anything else?<br>
&lt;emilio> tantek: so the example the grammar mentions, it is an ordered list, so I was trying to make it work with the markers, but I could make that to work cross-browser at all, so if anyone is trying to define those interactions you should experiment with that today<br>
&lt;emilio> tantek: I had to use with list-style none<br>
&lt;emilio> fantasai: there's only one `initial-letter` impl so far and it's pretty buggy<br>
&lt;emilio> dauwhe: that's an understatement, but I'm still glad it's there<br>
&lt;tantek> s/grammar mentions/Dave Cramer mentions<br>
&lt;emilio> whoops<br>
&lt;emilio> Rossen: fantasai: so should we resolve then?<br>
&lt;emilio> Rossen: any objections?<br>
&lt;tantek> s/with the markers/with the markers with ol type=a<br>
&lt;emilio> RESOLVED: initial-letter applies to inside markers<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2705#issuecomment-402582888 using your GitHub account

Received on Thursday, 5 July 2018 01:43:04 UTC