Re: [csswg-drafts] [css-pseudo] Problems with styling ::first-letter with punctuation (#2040)

The CSS Working Group just discussed `[css-pseudo] Problems with styling ::first-letter with punctuation`, and agreed to the following:

* `RESOLVED: Add sub-pseudo elements. Bikeshed name`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [css-pseudo] Problems with styling ::first-letter with punctuation<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/2040<br>
&lt;dael> fantasai: Basically a requirement that punct associated with first-letter is styled independant of the letter. Sometiems punct is in font of paragraph, sometimes inbetween. Sometimes not colored when letter is<br>
&lt;fantasai> https://github.com/w3c/csswg-drafts/issues/2040#issuecomment-669614648<br>
&lt;dael> fantasai: Need pseudo elements to select first letter different from punch<br>
&lt;dael> fantasai: ameliabr posted ^ which is adding pseudo element which attaches to first-letter pseudo and attaches to only letter and only punct so you can style sep<br>
&lt;dael> fantasai: Other comment is ::marker has similar structure with counter, prefix, postfix. Might want to use same system and maybe same names<br>
&lt;dael> fantasai: Not going to get through bikesheding, but want to ask WG if this is how they want to go about it<br>
&lt;dael> astearns: Not sure about paralel between this and marker. Seem different kinds. But I do like idea of tacking on another pseudo element to first-letter<br>
&lt;dael> fantasai: Do we like idea of one name for punct on both sides with before/after params or separate pseudo?<br>
&lt;dael> florian: Common to style before and after same?<br>
&lt;dael> fantasai: Don't know<br>
&lt;dael> florian: I think that's the answer. If it's common it's useful to style both<br>
&lt;dael> astearns: Less common to have following punct. I would guess when you have both style same<br>
&lt;dael> florian: In French it's not rare. "I' is plausable. I don't know style, though. If want to style ' same as letter you may want before punct different<br>
&lt;dael> fantasai: I can see cases where you want different. Things like em dash you want aligned to center of letter but smaller size. But might not want the veritical align on the apostophy<br>
&lt;fantasai> s/I'/J'/<br>
&lt;dael> astearns: Agree with examples. I'm wrong about not having cases<br>
&lt;florian> example: “J'aime…<br>
&lt;dael> astearns: Other thoughts?<br>
&lt;dael> astearns: Could resolve to have a pseduo element with way to pick apart pieces<br>
&lt;dael> fantasai: pseudo-sub-eleemnt. And we can bikeshed later<br>
&lt;dael> florian: If a shortname falls out we can have it, but we shouldn't explictly try to have one<br>
&lt;fantasai> ::prefix / ::postfix<br>
&lt;dael> astearns: Shouldn't make the same syntax for marker<br>
&lt;dael> fantasai: prefix and postfix perhaps<br>
&lt;dael> astearns: YOu'd like resolution?<br>
&lt;dael> astearns: Objections?<br>
&lt;dael> fantasai: As sub-pseudo elements. Bikeshed name<br>
&lt;fantasai> s/As/Add/<br>
&lt;dael> RESOLVED: Add sub-pseudo elements. Bikeshed name<br>
</details>


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 24 March 2021 16:52:52 UTC