-
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
Which style attributes are permitted in animate and set? #1153
Comments
If this is a non-issue, then both of the following two presentation processor behaviours are conformant when a
Just to be clear, this is not high on my list of priorities in terms of getting it fixed, but it does seem like an interop issue. |
@nigelmegitt given that
at present, we don't say that it is invalid for a document to attempt to animate a non-animatable style, or to apply continuous animation when only discrete is allowed; as a consequence, I would expect implementations to ignore such animation specifications, and a validator might want to emit a warning; |
I don't believe that is clear, because:
@skynavga That's exactly the issue I'm raising here. |
@nigelmegitt I'm have a very difficult time understanding why you think that a rational reader could possibly interpret none to mean not none w.r.t. animation semantics. |
@skynavga Perhaps its because I've seen too many implementers take the view that if it is not explicitly stated as a requirement then they have complete freedom. |
@nigelmegitt doing so would be a direct violation of §3.2.1 Generic Processor Performance (emphasis added)
the intent of this rule is to serve as a catch-all for such willful stupidity (on the part of the implementer), if I may be so blunt |
After considering this issue further, I have changed my position, and now believe a substantive change is warranted. |
Define [animatable style]; make targeting non-animatable style an error (#1153).
The
animate
andset
elements' content model permits and style attribute in the TT Style Namespace. However:The introduction to the sections on
set
andanimate
has been changed to refer to "styling attributes", but the content model does not reflect that. Although this is syntactically correct (since attributes in other namespaces are excluded from the content model and pruned prior to validation) we can do something more useful: I propose adding a comment to the content model highlighting that styling attributes in other namespaces are also considered for processing in the animation semantic, even though they are excluded from the content model from a formal specification perspective.There is no constraint in
animate
that the specified styling attributes have an "Animatable" specification that includes "continuous" (not sure if "discrete" should be permitted too - I guess there's a fallback to discrete animation even ifanimate
is used, so probably it should be).There is no constraint in
set
that the specified styling attributes have an "Animatable" specification that includes "discrete".The key point about 2 and 3 is that attributes that say "Animatable: none" are currently permitted in
animate
orset
, but there is no meaningful semantic, and<animation-value-list>
is required to have at least two entries; there is no defined fallback for when the requested animation cannot be performed.#950 highlighted to me that this could be an issue, for example
tts:ruby
has Animatable: none.In terms of processors, I would expect that:
a. a validating processor should reject (or warn?) when a non-animatable styling attribute is present in an
animate
orset
element;b. a presentation processor must ignore non-animatable styling attributes in an
animate
orset
element.I couldn't find any spec text to deal with either of those scenarios in the TTML2 ED.
The text was updated successfully, but these errors were encountered: