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

The CSS Working Group just discussed `raise/drop keywords for initial-letters`, and agreed to the following:

* `RESOLVED: add drop and raise as keywords to initial-letters property`
* `RESOLVED: Order does not matter for the keyword in initial-letter property`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: raise/drop keywords for initial-letters<br>
&lt;fantasai> github: https://github.com/w3c/csswg-drafts/issues/2955<br>
&lt;dael> fantasai: Someone asked for keywords representing drop-caps vs raised-caps rather then use numbers<br>
&lt;fantasai> <br>
&lt;dael> fantasai: Thought it would be easy to say drop computed to integral floor and raise computes to 1. It's a question of if WG things work adding<br>
&lt;fantasai>  https://github.com/w3c/csswg-drafts/issues/2955#issuecomment-430277200<br>
&lt;dael> fantasai: Summary of proposal^<br>
&lt;dael> astearns: Reasonable to me<br>
&lt;fantasai> Amelia's follow-up comment on reordering: https://github.com/w3c/csswg-drafts/issues/2955#issuecomment-430323643<br>
&lt;dael> astearns: I like keywords rather than opaque numbers<br>
&lt;dael> dauwhe: Reasonable to me too<br>
&lt;dael> astearns: Objections to adding drop and raise as keywords to initial-letters property?<br>
&lt;tantek> +1 to keywords<br>
&lt;dael> RESOLVED: add drop and raise as keywords to initial-letters property<br>
&lt;dael> fantasai: Follow up is if we can swap order of keyword letter and number<br>
&lt;fantasai> https://github.com/w3c/csswg-drafts/issues/2955#issuecomment-430323643<br>
&lt;dael> astearns: Seems CSS-like<br>
&lt;fantasai> “Would it be possible to tweak that syntax so that drop 3 and raise 2 are valid values? (While still being unambiguous for parsing when there are two integers.)”<br>
&lt;dael> fantasai: Comment^<br>
&lt;tantek> it depends. background does that. border does not.<br>
&lt;dael> astearns: tantek responded in IRC [reads]<br>
&lt;dael> astearns: I assume because border it would not be unambig<br>
&lt;dael> fantasai: Right. I think the principle is if it's unambig you can reorder<br>
&lt;dbaron> dbaron: We've had properties where swapping ended up being confusing like x/y in background-position<br>
&lt;dael> astearns: Any future thoughts on adding to the syntax? Where re-ordering might not be unambig?<br>
&lt;tantek> I lean towards usability (forgiveness) up front, thus allowing re-ordering.<br>
&lt;tantek> makes it easier to author off the top of your head<br>
&lt;dael> fantasai: I don't think there's other relevent numbers. Can't think of anything. We've had people asking for lots of features and none is more numbers<br>
&lt;dael> dauwhe: I can't think of anything either. Lots of wants, but they're additional properties.<br>
&lt;dael> astearns: dbaron mentions properties where swapping was confusing<br>
&lt;dael> astearns: Not sure it's a problem here, at least in my mind it's not confusing to put keyword where you want<br>
&lt;dbaron> am I audible?<br>
&lt;fantasai> no<br>
&lt;dael> astearns: Objections to allowing the keywords to be put in either position along with the number?<br>
&lt;dael> astearns: dbaron you are not audible<br>
&lt;dael> dbaron: I think some depends on how much we might extend. Initially with background-position-x/y we thought it was fine to let people put in either order. THen we extended and it was confusing.<br>
&lt;dael> fantasai: I think part that's confusing there is when you have one keyword and one non-keyword and there's strict order, but not in other cases<br>
&lt;dael> fantasai: This one we're doing opposite. No strict order when there's a keyword and it's unambig<br>
&lt;dael> astearns: Leaning a bit more toward dbaron. I'm a little concerned we might want to extend values syntax here.<br>
&lt;AmeliaBR> Jumping in as the person who suggested it: There's no harm with starting out with the more strict syntax &amp; then seeing if there's any author confusion/frustration.<br>
&lt;dael> astearns: If there isn't anything anyone can think of that would extend syntax, and  I know dauwhe has put a lot of thought into this, I'm okay with allowing the swap<br>
&lt;dael> astearns: AmeliaBR said she's okay with a particular order now and figure out swap later.<br>
&lt;dael> astearns: dbaron what do you think?<br>
&lt;dael> dbaron: I'm okay with it if we don't see future possibilities to expand. But if this becomes 3 value at some point letting these two swap might be problematic<br>
&lt;dael> astearns: One way to look is we're commiting to extra properties if we want to extend. And that's not a bad thing. More properties with a name makes it clear what you're doing rather then adding a value in a list<br>
&lt;dael> fantasai: I can't think of a reason to add another number to this feature<br>
&lt;dael> dauwhe: Yeah<br>
&lt;dael> tantek: Tend to agree if a property requires ordering of numbers it's confusing. Classic example is how many people get lat and long wrong. That's a classicaly studied problem.<br>
&lt;dael> tantek: We barely get away with TRoBLe<br>
&lt;dael> [argument if that even works]<br>
&lt;dael> tantek: Larger point is list of numbers has been shown to be a usability problem<br>
&lt;dael> astearns: Hearing slight concerns but no objects. I'm inclined to prop: Ordr does not matter for the keyword<br>
&lt;dael> RESOLVED: Order does not matter for the keyword in initial-letter property<br>
</details>


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

Received on Wednesday, 17 October 2018 16:56:16 UTC