[ttml2] base displayAlign on CSS justify-content property

nigelmegitt has just created a new issue for https://github.com/w3c/ttml2:

== base displayAlign on CSS justify-content property ==
Part of umbrella #406 

Current semantic based on: XSL 1.1 §7.14.4 https://www.w3.org/TR/2006/REC-xsl11-20061205/#display-align
Current CSS snapshot version of a similar semantic: CSS Flexible Box Layout Module Level 1 §8.2 https://www.w3.org/TR/css-flexbox-1/#justify-content-property

The XSL spec defines this semantic without reference to CSS. CSS has no simple mapping here, since this functionality depends on the layout used. Proposal is to use a flex layout for region, setting main axis to vertical top to bottom (`display: flex; flex-direction: column; position: absolute;`) and map displayAlign to the `justify-content` property, where:

| displayAlign value | justify-content value |
|-------------------|--------------------|
| before | flex-start |
| center | center |
| after | flex-end |
| justify | space-between |

Note: this approach has been shown to work by https://github.com/sandflow/imscJS

Action to take: add to XSL spec reference the proposed equivalent CSS snapshot spec reference as an alternative.

Please view or discuss this issue at https://github.com/w3c/ttml2/issues/415 using your GitHub account

Received on Tuesday, 12 September 2017 13:59:23 UTC