-
Notifications
You must be signed in to change notification settings - Fork 12
TTML1 3ED tests #361
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
Merged
Merged
TTML1 3ED tests #361
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e1b2452
Initial commit of TTML1 3ED tests
palemieux 32d0ae1
Merge remote-tracking branch 'origin/master' into feature/3ED-tests
palemieux 6ecd90f
Remove copyright statements
palemieux 0418c76
Address review comments
palemieux b1753b0
Resolve comments as discussed in TTWG meeting 2018-09-07
nigelmegitt e8c0d84
Merge branch 'master' into feature/3ED-tests
palemieux 671cc65
Removed IMSC profile signaling
palemieux a5cd4b2
Clarify tts:fontSize tests
palemieux 33443e2
Merge branch 'master' into feature/3ED-tests
palemieux File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Set backgroundColor</ttm:desc> | ||
| </metadata> | ||
|
|
||
| </head> | ||
| <body> | ||
| <div timeContainer="seq"> | ||
| <p dur="10s" tts:backgroundColor="red" tts:color="white"> | ||
| <set tts:backgroundColor="blue" begin="5s"/>This background of this sentence should change from red to blue at 5s</p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
20 changes: 20 additions & 0 deletions
20
testsuite/Third Edition/AnonymousSpanImplicitDuration.ttml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Anonymous span implicit duration</ttm:desc> | ||
| </metadata> | ||
| </head> | ||
| <body> | ||
| <div> | ||
| <p begin="0s" end="1s" timeContainer="seq" tts:backgroundColor="blue"> | ||
| This text should not be displayed. | ||
| </p> | ||
| </div> | ||
| <div> | ||
| <p begin="0s" end="1s" tts:backgroundColor="blue"> | ||
| Text should displayed. | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Test the br element.</ttm:desc> | ||
| </metadata> | ||
| </head> | ||
| <body> | ||
| <div> | ||
| <p begin="0s" end="10s">This text must be on the first line.<br tts:display="none"/>This text on a second line.</p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Br implicit duration</ttm:desc> | ||
| </metadata> | ||
| </head> | ||
| <body> | ||
| <div> | ||
| <p begin="0s" end="1s" timeContainer="seq" tts:backgroundColor="blue"> | ||
| No text or linebreak<br/>should be displayed. | ||
| </p> | ||
| <p begin="0s" end="1s" tts:backgroundColor="red"> | ||
| Text with a linebreak<br/>should be displayed. | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Test tts:color attribute using a rgb() color function with LWSP.</ttm:desc> | ||
| </metadata> | ||
|
|
||
| </head> | ||
| <body> | ||
| <div> | ||
| <p tts:color="rgb( 0, 128, 0 )" begin="0s" end="10s">This text must be green.</p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Test tts:direction on p and span.</ttm:desc> | ||
| </metadata> | ||
| </head> | ||
| <body> | ||
| <div> | ||
| <p tts:direction="rtl"> | ||
nigelmegitt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <metadata> | ||
| <ttm:desc>tts:direction defines weak directionality so the latin script text appears left to right.</ttm:desc> | ||
| </metadata> | ||
| Left to right<br/> | ||
| מימין לשמאל<br/> | ||
| <span tts:unicodeBidi="bidiOverride" tts:direction="rtl">Right to left</span> | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <tt xml:lang="en" | ||
| xmlns="http://www.w3.org/ns/ttml" | ||
| xmlns:tts="http://www.w3.org/ns/ttml#styling" | ||
| xmlns:ttm="http://www.w3.org/ns/ttml#metadata"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Test tts:fontFamily attribute with LWSP</ttm:desc> | ||
| </metadata> | ||
| </head> | ||
| <body> | ||
| <div> | ||
| <p begin="0s" end="10s">The last words must be <span tts:fontFamily="InexistantFont, proportionalSerif">using a proportional serif font</span>.</p> | ||
| </div> | ||
| </body> | ||
| </tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Test em units on font size</ttm:desc> | ||
| </metadata> | ||
| <layout> | ||
| <region xml:id="r1" tts:backgroundColor="black"/> | ||
| </layout> | ||
| </head> | ||
| <body> | ||
| <div region="r1"> | ||
| <p> | ||
| 1c font size<br/> | ||
| <span tts:fontSize="2em">Double font size</span></p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en" ttp:cellResolution="10 5"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Test em units on region</ttm:desc> | ||
| </metadata> | ||
| <layout> | ||
| <region xml:id="r1" tts:fontSize="1em" tts:backgroundColor="black"/> | ||
| </layout> | ||
| </head> | ||
| <body> | ||
| <div region="r1"> | ||
| <p>Font size is 1/5 the height of the root container</p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head tts:fontSize="7.5c"> | ||
| <metadata> | ||
| <ttm:desc>Test TT attributes outside of the content model.</ttm:desc> | ||
| </metadata> | ||
| </head> | ||
| <body> | ||
| <div> | ||
| <p>This text must not be half the height of the root container.</p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Test tts:lineHeight attribute using "normal".</ttm:desc> | ||
| </metadata> | ||
| <layout> | ||
| <region xml:id="bottom" tts:origin="10% 10%" tts:extent="80% 80%" /> | ||
| </layout> | ||
| </head> | ||
| <body tts:fontSize="2c"> | ||
| <div> | ||
| <p begin="0s" end="10s" region="bottom">The line height of this<br/>two-row caption is "normal".</p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Test non-inherited initial style values.</ttm:desc> | ||
| </metadata> | ||
|
|
||
| <layout> | ||
| <tt:region tts:extent="100% 100%" xml:id="r1"/> | ||
| </layout> | ||
| </head> | ||
| <body> | ||
| <div> | ||
| <p begin="0s" end="10s" region="r1">This text is aligned with<br/>the before edge of the region.</p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Span with only text nodes implicit duration</ttm:desc> | ||
| </metadata> | ||
| </head> | ||
| <body> | ||
| <div> | ||
| <p begin="0s" end="1s" timeContainer="seq" tts:backgroundColor="blue"> | ||
| <span>This text should not be displayed.</span> | ||
| </p> | ||
| </div> | ||
| <div> | ||
| <p begin="0s" end="1s" tts:backgroundColor="blue"> | ||
| <span>This text should displayed.</span> | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Set implicit duration</ttm:desc> | ||
| </metadata> | ||
| </head> | ||
| <body> | ||
| <div> | ||
| <p begin="0s" end="1s" timeContainer="seq"> | ||
| <set tts:backgroundColor="blue"/> | ||
| <span dur="1s">Background should not be blue.</span> | ||
| </p> | ||
| </div> | ||
| <div> | ||
| <p begin="0s" end="1s"> | ||
| <set tts:backgroundColor="blue"/> | ||
| <span dur="1s">Background should be blue.</span> | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Test tts:textDecoration attribute inheritance.</ttm:desc> | ||
| </metadata> | ||
|
|
||
| <styling> | ||
| <style xml:id="s1" tts:textDecoration="underline lineThrough"/> | ||
| </styling> | ||
| </head> | ||
| <body> | ||
| <div style="s1"> | ||
| <p begin="0s" end="10s">The last two words in this caption are<span tts:textDecoration="noUnderline"> <br/>not underlined.</span></p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Test tts:textOutline attribute using 'c' value for the outline thickness.</ttm:desc> | ||
| </metadata> | ||
|
|
||
| <styling> | ||
| <style xml:id="s1" tts:fontSize="1c" tts:textOutline="red 0.1c"/> | ||
| </styling> | ||
| </head> | ||
| <body> | ||
| <div> | ||
| <p begin="0s" end="10s" style="s1">This text has a red outline with a radius equal to 10% of the font size.</p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en" ttp:cellResolution="30 15"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Test two-value font sizes in 'c' units</ttm:desc> | ||
| </metadata> | ||
| <layout> | ||
| <region xml:id="r1" tts:backgroundColor="black"/> | ||
| </layout> | ||
| </head> | ||
| <body> | ||
| <div region="r1"> | ||
| <p> | ||
| <span tts:fontSize="1c">Normal text</span><br/> | ||
| <span tts:fontSize="0.5c 1c">Narrow text</span><br/> | ||
| <span tts:fontSize="2c 1c">Wide text</span> | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en" ttp:cellResolution="30 15"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Test two-value font sizes in 'em' units</ttm:desc> | ||
| </metadata> | ||
| <layout> | ||
| <region xml:id="r1" tts:backgroundColor="black"/> | ||
| </layout> | ||
| </head> | ||
| <body> | ||
| <div region="r1"> | ||
| <p tts:fontSize="2c 1c"> | ||
| <span tts:fontSize="1em">Normal text</span><br/> | ||
| <span tts:fontSize="1em 1em">Wide text</span> | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Test unknown attributes in the TT namespaces.</ttm:desc> | ||
| </metadata> | ||
| </head> | ||
| <body> | ||
| <div> | ||
| <p tts:foo="7.5c">This text must appear.</p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Test tts:visibility attribute using the visible value.</ttm:desc> | ||
| </metadata> | ||
|
|
||
| <styling> | ||
| <style xml:id="s1" tts:visibility="hidden"/> | ||
| </styling> | ||
| </head> | ||
| <body> | ||
| <div style="s1"> | ||
| <p begin="0s" end="10s"><span tts:visibility="visible">All the words in this caption are visible.</span></p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <tt:tt xmlns:tt="http://www.w3.org/ns/ttml" | ||
| xmlns:ttp="http://www.w3.org/ns/ttml#parameter" | ||
| xmlns="http://www.w3.org/ns/ttml" | ||
| xmlns:tts="http://www.w3.org/ns/ttml#styling" | ||
| xmlns:ttm="http://www.w3.org/ns/ttml#metadata" | ||
| ttp:profile="http://www.w3.org/ns/ttml/profile/imsc1/text" | ||
| xml:lang="en"> | ||
| <head> | ||
| <metadata> | ||
| <ttm:desc>Various values of zIndex; all the values are valid and should yield a visible region. Not intended to test correct drawing order of overlapping regions.</ttm:desc> | ||
| </metadata> | ||
| <layout> | ||
| <tt:region xml:id="r1" tts:extent="100% 100%" tts:backgroundColor="black" tts:zIndex="1000" tts:showBackground="whenActive"/> | ||
| <tt:region xml:id="r2" tts:extent="100% 100%" tts:backgroundColor="red" tts:zIndex="1" tts:showBackground="whenActive"/> | ||
| <tt:region xml:id="r3" tts:extent="100% 100%" tts:backgroundColor="blue" tts:zIndex="0" tts:showBackground="whenActive"/> | ||
| <tt:region xml:id="r4" tts:extent="100% 100%" tts:backgroundColor="green" tts:zIndex="auto" tts:showBackground="whenActive"/> | ||
| <tt:region xml:id="r5" tts:extent="100% 100%" tts:backgroundColor="fuchsia" tts:zIndex="-1" tts:showBackground="whenActive"/> | ||
| <tt:region xml:id="r6" tts:extent="100% 100%" tts:backgroundColor="gray" tts:zIndex="-1000" tts:showBackground="whenActive"/> | ||
| </layout> | ||
| </head> | ||
| <body> | ||
| <div timeContainer="seq"> | ||
nigelmegitt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <p region="r1" begin="0s" end="1s">tts:zIndex="1000"</p> | ||
| <p region="r2" begin="0s" end="1s">tts:zIndex="1"</p> | ||
| <p region="r3" begin="0s" end="1s">tts:zIndex="0"</p> | ||
| <p region="r4" begin="0s" end="1s">tts:zIndex="auto"</p> | ||
| <p region="r5" begin="0s" end="1s">tts:zIndex="-1"</p> | ||
| <p region="r6" begin="0s" end="1s">tts:zIndex="-1000"</p> | ||
| </div> | ||
| </body> | ||
| </tt:tt> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.