- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 05 Jul 2018 01:43:02 +0000
- To: public-css-archive@w3.org
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> <fantasai> topic: Should 'initial-letter' apply to 'list-style: inside' ::marker?<br> <fantasai> github: https://github.com/w3c/csswg-drafts/issues/2705<br> <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> <emilio> fantasai: so proposal is 'yes, should apply'<br> <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> <emilio> dbaron: it doesn't feel different to whether initial-letter applies<br> <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> <emilio> dbaron: I'm seeing interop in the non-desirable behavior so far<br> <emilio> TabAtkins: we agree it should be the same, but our code for that is bad<br> <emilio> Rossen: in our case it already applies<br> <emilio> fantasai: really?<br> <emilio> Rossen: actually no<br> <emilio> dbaron: so far Gecko / Chrome / Edge all seem to support ::first-letter but they support it on the thing after the marker<br> <emilio> myles: why is putting it on the marker better?<br> <dbaron> ... and WebKit<br> <emilio> fantasai: cause it seems reasonable to style your markers / counters using initial-letter<br> <fantasai> esp for numbered / lettered lists<br> <emilio> TabAtkins: this is common on magazines, with list items being very big and such<br> <emilio> heycam: and if they go beyond nine?<br> <emilio> TabAtkins: they don't, but if they do 'ok, there's ten, and it's bigger'<br> <emilio> [others]: that's two letters then<br> <emilio> fantasai: we definitely allow multi-letter initial-letters<br> <emilio> fantasai: what is a letter is a very interesting question outside of latin<br> <emilio> fantasai: we allow it to apply to the first inline on a block<br> <emilio> frremy: is the marker position inline?<br> <emilio> fantasai: yes when list-style-position: inline<br> <emilio> dbaron: it seems reasonable, but I'm concerned because we seem to interop on first-letter<br> <emilio> fantasai: we don't really want to change how first-letter works<br> <emilio> fantasai: first-letter should keep doing what it's doing<br> <emilio> dbaron: ok, I guess I'm fine with that<br> <dbaron> s/to whether initial-letter applies/to whether ::first-letter applies/<br> <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> <emilio> fantasai: no, only for the first inline box, if it happens to be a marker good, same for ::before, etc<br> <skk> s/kochi/koji<br> <emilio> xidorn: so if there's an inside marker, initial-letter doesn't apply to anything afterwards, right?<br> <emilio> fantasai: yes<br> <emilio> Rossen: ok, so we're on the same page, are we ready to resolve then?<br> <emilio> Rossen: regardless of if/when it's implemented<br> <emilio> myles: so if you have a list and the first letter of the list is 'This', how do you style it?<br> <emilio> fantasai: either an outside marker and initial/first-letter, or an inside marker and first-letter<br> <emilio> Rossen: confirms ^<br> <emilio> florian: not sure if I misunderstood<br> <emilio> florian: but using initial-letter you cannot change the color of the marker, you'd need to use `::marker` for that<br> <emilio> Rossen: but in any case the first inline after the marker is targeted by ::first-letter<br> <emilio> everyone: yes<br> <emilio> myles: [confused]<br> <emilio> dauwhe: ??<br> <emilio> dbaron: so, to summarize: For list items, `::first-letter` ignores the marker<br> <dauwhe> s/??/webkit will apply an initial-letter with li::first-letter, which is troubling/<br> <emilio> dbaron: so the initial-letter property applies to `::first-letter` pseudos and to inlines at the beginning of block<br> <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> <emilio> dbaron: and we need to clarify that `initial-letter` doesn't apply there<br> <emilio> dbaron: maybe bidi can do that<br> <emilio> fantasai: we need to clarify that, but the spec already mentions that<br> <fantasai> “<br> <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> <emilio> s/that/bidi aboe<br> <emilio> *above<br> <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> <emilio> florian: the piece fantasai quoted needs to also clarify that it also applies to `::first-letter`.<br> <emilio> Rossen: ok, now that we're on the same page, is there anything else?<br> <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> <emilio> tantek: I had to use with list-style none<br> <emilio> fantasai: there's only one `initial-letter` impl so far and it's pretty buggy<br> <emilio> dauwhe: that's an understatement, but I'm still glad it's there<br> <tantek> s/grammar mentions/Dave Cramer mentions<br> <emilio> whoops<br> <emilio> Rossen: fantasai: so should we resolve then?<br> <emilio> Rossen: any objections?<br> <tantek> s/with the markers/with the markers with ol type=a<br> <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