diff options
author | Olivier Hallot <ohallot@collabora.co.uk> | 2016-11-23 19:07:19 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@edx.srv.br> | 2016-11-23 21:12:55 +0000 |
commit | 6025b3e9288965cebf6d5ee7bff8bf4338d1391e (patch) | |
tree | d4f72b82aab65e4ae277fbd4424b12f6dc648334 /source/online_transform.xsl | |
parent | 131ce3ad3e75ddc1f6ecdee3ecb637972dda0a7f (diff) |
tdf#97745 (part) tweaks in CSS & XSLT
Change-Id: I38370bc7d4a6e90d13aacd6bdf035f636a0c2535
Reviewed-on: https://gerrit.libreoffice.org/31135
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Diffstat (limited to 'source/online_transform.xsl')
-rw-r--r-- | source/online_transform.xsl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/online_transform.xsl b/source/online_transform.xsl index 14c3dea329..3f629d7a3b 100644 --- a/source/online_transform.xsl +++ b/source/online_transform.xsl @@ -843,13 +843,17 @@ </xsl:variable> <xsl:choose> <xsl:when test="starts-with($type,'video')"> + <div id="mediadiv"> <video src="{$data}" type="{$type}" width="{$width}" height="{$height}" controls="'1'"></video> + </div> </xsl:when> <xsl:when test="starts-with($type,'audio')"> + <div id="mediadiv"> <audio src="{$data}" type="{$type}" controls="'1'"></audio> + </div> </xsl:when> <xsl:otherwise> - <object width="{$width}" height="{$height}" data="{$data}"></object> + <object width="{$width}" height="{$height}" data="{$data}" type="{$type}"></object> </xsl:otherwise> </xsl:choose> </xsl:template> @@ -889,7 +893,9 @@ </xsl:when> <xsl:when test="descendant::tablecell[1]/descendant::image"> - <table border="0" class="icontable" cellpadding="5" cellspacing="0"> + + + <table border="0" class="icontable" cellpadding="5" cellspacing="0"> <xsl:apply-templates mode="icontable"/> </table> </xsl:when> |