w3c / ttml2

Timed Text Markup Language 2 (TTML2)
https://w3c.github.io/ttml2/
Other
40 stars 16 forks source link

Allow initial style to be constrained to an element type? #1234

Open nigelmegitt opened 3 years ago

nigelmegitt commented 3 years ago

Whereas some style attributes, such as tts:backgroundColor apply to multiple types of element, e.g. region, div, p etc, only one value of any style may be specified in the initial element. This means it is not possible, say, to set the initial value for tts:backgroundColor only as applied to span elements.

Would others find it useful to be able to specify this semantic?

skynavga commented 3 years ago

My initial thoughts come down to:

Overall, I wonder if this level of effort is justified by introducing what is essentially a convenience mechanism for authoring tools that could do this another way that already exists, i.e., assigning styles directly to the affected elements (in whatever rich context the authoring tool sees fit).