Re: [w3ctag/design-reviews] CSS ::part and ::theme pseudo elements (#230)

@dbaron I also think a separate attribute for the partmap is a good idea. Reasons

- UX
  - part names behave much like class names but comma-separated. If part= was only for naming then we could remove the unexpected commas
  - this would solve the problem of how you shortcut writing part="a=>a". It's partmap="a"
- API
  - I guess we will want an API for programmatic manipulation, similar to classList. For parts we have a list and a map to deal with, which makes mungeing strings even less attractive. The natural API would keep naming separate from mapping e.g. partList() and partMap(). So separating the attributes would git nicely with that.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/230#issuecomment-369848367

Received on Friday, 2 March 2018 07:54:07 UTC