Internal browser not fully CSS compliant?
Posted: Fri Mar 28, 2014 7:27 pm
Hello,
I'm trying to modify the CSS for oXygen's Author mode so frames around figures resemble the PDF output. Normal figures should be "shrink-wrapped" (http://haslayout.net/css-tuts/CSS-Shrink-Wrap), figures with the attribute @expanse="page" should span the whole page width.
The HTML test code below does work in Firefox and Internet Explorer but not in oXygen so I suppose the internal browser is not fully CSS compliant. Is my suspicion correct or am I missing something?
Kind regards,
Frank
PS:
Is there a way to upload a screenshot here?
I'm trying to modify the CSS for oXygen's Author mode so frames around figures resemble the PDF output. Normal figures should be "shrink-wrapped" (http://haslayout.net/css-tuts/CSS-Shrink-Wrap), figures with the attribute @expanse="page" should span the whole page width.
The HTML test code below does work in Firefox and Internet Explorer but not in oXygen so I suppose the internal browser is not fully CSS compliant. Is my suspicion correct or am I missing something?
Kind regards,
Frank
Code: Select all
<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Shrink-wrap Test</title>
<style type="text/css">
/* Shrink-wrapping with CSS
http://haslayout.net/css-tuts/CSS-Shrink-Wrap
*/
div.figwrap {
overflow: hidden;
display: inline-block;
padding: 10px;
}
div.figwrap { display: block; }
div.fig{
padding: 5px;
border: 2px solid #007088;
float: left;
}
div.fig[expanse = "page"]{
width:98%;
}
div.fig div.title {
border: 1px solid fuchsia;
}
div.fig img {
border: 1px solid lime;
}
</style>
</head>
<body>
<div class="figwrap">
<div class="fig">
<div class="title">Shrink-wrap frame - even when it's wider than the picture</div>
<img src="dita-bird_0.jpg" alt="shrink-wrap"/>
</div>
</div>
<div class="figwrap">
<div class="fig" expanse="page">
<div class="title">Whole width frame</div>
<img src="dita-bird_0.jpg" alt="whole width"/>
</div>
</div>
</body>
</html>
PS:
Is there a way to upload a screenshot here?