-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property specified more than once on tt:initial #764
Comments
I'd propose to change the spec to permit zero or one |
That would be my favorite solution tbh - however it would render the |
Hmm OK...useless unless you want to switch between the default values and custom initial values. |
@spoeschel Oh yes, good point. That's actually useful functionality. Maybe we do need a way to resolve duplicate style attributes present in multiple |
Yes, a way to resolve that ambiguity seems to be needed then. I'm no sure as well which of the two choices you mentioned is the better way. Maybe someone in the group is aware of a similar case and its solution. I currently cannot think of such a case already present in TTML itself. |
There's at least an analogy in resolving referential styles, where effectively the last specified attribute with a particular attribute name wins, and then if the style is specified locally on the current style, that wins. The closest fit to that pattern is to use "last specified" in document order. |
Indeed. So the "last specified" way seems to be more consistent here. |
The same property could be specified more than once on different
tt:initial
elements at the moment, e.g.:The Specified Style Set Processing in 10.5.4.2 in step 6.c....i currently says:
"if an initial element defines the initial value for P, then use that value"
So the expected behaviour in such a case should probably be deterministic. Or instead it should be forbidden that at the same time two
tt:initial
elements that set the same property can apply (e.g. with appropriate conditions added, which exclude each other, the above example would be fine).The text was updated successfully, but these errors were encountered: