<?xml version="1.1" encoding="UTF-8" ?>
<!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 3.0 Language//EN" "http://www.w3.org/2008/SMIL30/SMIL30Language.dtd">

<!--
Copyright: Copyright 1998-2008 W3C (MIT, ERCIM, Keio), All Rights Reserved.
See http://www.w3.org/Consortium/Legal/2008/04-testsuite-license.
Author: David Melendi Palacio & Xabiel Garcia Paneda (Universidad de Oviedo)
Version: October 25, 2007
Chapter: SMIL 3.0 SMILText
Module: SMIL 3.0 SMILText
Feature: textColor, textBackgroundColor, textFontFamily, textFonSize, textFontStyle and textFontWeight at different levels: region and smilText
File Name: smil30-smiltext-OverridingTextStylingAttributes.smil
Expected Behavior: Overriden values should be treated accordingly. The first smilText should behave as stated in the region. The second should
		override textColor and textBackgroundColor and keep textFontFamily, textFontSize, textFontStyle and textFontWeigh. In the third the first
		paragraph should be represented with totally new textStyle attributes while the second should respect the values in the region.

-->


<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language">
<head>
	<layout>
		<root-layout width="300" height="400" />
		<region xml:id="text" width="100%" height="100%"
				textColor="red" textBackgroundColor="black" textFontFamily="monospace"
			textFontSize="18px" textFontStyle="italic" textFontWeight="bold" backgroundColor="white"/>
	</layout>
</head>
<body>
	<seq>
	<smilText region="text" dur="5s">
	IN a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that
             keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.
	</smilText>
	
	<smilText region="text" dur="5s" textColor="green" textBackgroundColor="white">
	     			An olla of rather more beef than mutton, a
             salad on most nights, scraps on Saturdays, lentils on Fridays, and a pigeon or so extra on Sundays, made away with three-quarters of his
             income. The rest of it went in a doublet of fine cloth and velvet breeches and shoes to match for holidays, while on week-days he made a
             brave figure in his best homespun. He had in his house a housekeeper past forty, a niece under twenty, and a lad for the field and
             market-place, who used to saddle the hack as well as handle the bill-hook.
	</smilText>
	
	<smilText region="text" dur="5s">
		<p textColor="blue" textBackgroundColor="red" textFontFamily="arial" textFontSize="15px"
				textFontStyle="reverseOblique" textFontWeight="bold">An olla of rather more beef than mutton, a salad on most nights, scraps on Saturdays, 
						 lentils on Fridays, and a pigeon or so extra on Sundays, made away with three-quarters of his income.</p>
		<p>The rest of it went in a doublet of fine cloth and velvet breeches and shoes to match for holidays, while on week-days he made a
             brave figure in his best homespun. He had in his house a housekeeper past forty, a niece under twenty, and a lad for the field and
             market-place, who used to saddle the hack as well as handle the bill-hook.</p>
	</smilText>
	</seq>
</body>
</smil>
