Skip to content

Commit

Permalink
Added nested and referential styling priority test (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
palemieux committed Nov 21, 2020
1 parent e0213a2 commit e7d86f0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
Binary file added imsc1/png/Style002/0.000000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions imsc1/tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,9 @@
"path": "styling/Style001.ttml"
},
{
"path": "styling/Style002.ttml"
},
{
"path": "styling/styleInheritance-001.ttml"
},
{
Expand Down
20 changes: 20 additions & 0 deletions imsc1/ttml/styling/Style002.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?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:ttp="http://www.w3.org/ns/ttml#parameter"
ttp:contentProfiles="http://www.w3.org/ns/ttml/profile/imsc1/text">
<head>
<styling>
<style xml:id="s1" tts:backgroundColor="blue"/>
</styling>
<layout>
<region xml:id="r1" style="s1">
<style tts:color="red" tts:backgroundColor="yellow"/>
</region>
</layout>
</head>
<body>
<div region="r1"><p>The background should be yellow.</p></div>
</body>
</tt>

0 comments on commit e7d86f0

Please sign in to comment.