Skip to content
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

Percentage values in tts:padding do not match CSS #222

Closed
nigelmegitt opened this issue Nov 9, 2016 · 2 comments
Closed

Percentage values in tts:padding do not match CSS #222

nigelmegitt opened this issue Nov 9, 2016 · 2 comments

Comments

@nigelmegitt
Copy link
Contributor

TTML2 retains the wording from TTML1 regarding percentage units for the tts:padding attribute:

relative to width and height of region

However TTML1 only specifies padding for region. Now that TTML2 also specifies padding for the elements body, div, p and span, this text no longer matches CSS.

https://www.w3.org/TR/CSS2/box.html#propdef-padding specifies that percentages:

refer to width of containing block

TTML2 should follow CSS here and make percentages be relative to the area generated for the element on which the padding attribute is specified.

@nigelmegitt
Copy link
Contributor Author

[Meeting 2016-11-10] General view that we should match CSS here and that not doing so was an oversight.

@skynavga
Copy link
Collaborator

skynavga commented Feb 5, 2017

Resolved in d76b1eb.

@skynavga skynavga closed this as completed Feb 5, 2017
@skynavga skynavga added this to the Editor's WR Work List milestone May 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants