Re: [mediacapture-main] 'label' needs direction and language metadata (#665)

stringifier can only exists on interfaces, and the direction attribute can be constrainted in terms of values, so it would be:
```
interface LocalizableWithStringDefault {
  stringifier attribute DOMString value;
  attribute DOMString lang;
  attribute TextDirection dir = "auto";
};
enum TextDirection {    // or we could re-use the already defined NotificationDirection enum
    "auto",
    "ltr",    
    "rtl"
};
```

(concretely, the interface would to be named something more descriptive, e.g. `MediaDeviceLabel`; alternatively, we could try and upstream a `LocalizableString`  to WebIDL - paging @w3c/webidl-design to get a sense of feasability).

-- 
GitHub Notification of comment by dontcallmedom
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/665#issuecomment-933332881 using your GitHub account


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

Received on Monday, 4 October 2021 10:04:14 UTC