<?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: textWrapOption is inherited or overriden by smilText or it's content
File Name: smil30-smiltext-OverridenTextWrapOptions.smil
Expected Behavior: The region has a noWrap behaviour inherited by the first SMILText element. The second SMILText element should
		wrap its content. The third has two pieces of text in a paragraph and a div and each of them behaves differently
-->


<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language">
<head>
	<layout>
		<root-layout width="300" height="100" />
		<region xml:id="text" width="100%" height="100%" textWrapOption="noWrap" 	backgroundColor="white" textColor="black"/>
	</layout>

</head>
<body>
	<seq>

	<!-- In this smilText the text should be clipped -->
 <smilText region="text" dur="5s" textWrapOption="inherit">
	     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>

	<!-- Now the text should be wrapped -->
	<smilText region="text" dur="5s" textWrapOption="wrap">
	     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.
	</smilText>

	<!-- The text in the paragraph should be wrapped while the text in the div should be clipped -->
	<smilText region="text" dur="5s">
	     <p textWrapOption="wrap">The rest of it went in a doublet of fine cloth and velvet breeches and shoes to match for holidays</p> 
	     <div textWrapOption="noWrap">, while on week-days he made a brave figure in his best homespun. He had in his house a housekeeper past forty,</div> 
	</smilText>

	</seq>
</body>
</smil>
