Internal browser not fully CSS compliant?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 482
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
Internal browser not fully CSS compliant?
Post by Frank Ralf »
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?
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Internal browser not fully CSS compliant?
Hi Frank,
All the CSS features we implemented are listed here:
http://www.oxygenxml.com/doc/ug-oxygen/ ... pport.html
Also Oxygen does not yet read the CSS embedded directly inside XHTML documents (like in your case), we'll try to add this improvement in a future version.
Right now the Author visual editing mode in Oxygen only reads and applies the CSS if it is referenced as a separate file using the <style> tag.
Regards,
Radu
The Author visual editing mode is not fully CSS compliant, we mostly implemented features useful for editing content. So you should never rely on the fact that things will look in the visual editing mode exactly as in a web browser.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?
All the CSS features we implemented are listed here:
http://www.oxygenxml.com/doc/ug-oxygen/ ... pport.html
Also Oxygen does not yet read the CSS embedded directly inside XHTML documents (like in your case), we'll try to add this improvement in a future version.
Right now the Author visual editing mode in Oxygen only reads and applies the CSS if it is referenced as a separate file using the <style> tag.
No, in the future maybe you can upload it to a public web site specialized in image uploads and add a link to it on the forum post.PS:
Is there a way to upload a screenshot here?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 482
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
Re: Internal browser not fully CSS compliant?
Post by Frank Ralf »
Thanks for the quick response and the thorough explanation!
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
-
- Posts: 419
- Joined: Mon May 09, 2016 9:37 am
Re: Internal browser not fully CSS compliant?
Post by sorin_carbunaru »
Hello Frank,
Just to update this thread: the Author mode in 19.1 reads the CSS rules declared inside the (X)HTML document.
All the best wishes,
Sorin Carbunaru
oXygen XML
Just to update this thread: the Author mode in 19.1 reads the CSS rules declared inside the (X)HTML document.
All the best wishes,
Sorin Carbunaru
oXygen XML
-
- Posts: 482
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
Re: Internal browser not fully CSS compliant?
Post by Frank Ralf »
Many thanks for the update!
Frank
Frank
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service