Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Thienel2016-01-28 13:25:10 -0500
committerFlorian Thienel2016-01-28 13:25:10 -0500
commit599929f776f14cb6c79f6768b9db1b71c5f635b6 (patch)
tree0a581baca94637df69b843a0a4e6f7ccec745baa
parent016b817162a149affeaa3eba13ce4c9875a98e10 (diff)
downloadorg.eclipse.mylyn.docs.vex-599929f776f14cb6c79f6768b9db1b71c5f635b6.tar.gz
org.eclipse.mylyn.docs.vex-599929f776f14cb6c79f6768b9db1b71c5f635b6.tar.xz
org.eclipse.mylyn.docs.vex-599929f776f14cb6c79f6768b9db1b71c5f635b6.zip
use the image() CSS function in XHTML, DocBook and DITA
Signed-off-by: Florian Thienel <florian@thienel.org>
-rw-r--r--org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java4
-rw-r--r--org.eclipse.vex.dita/css/dita_classed_shell_vex.css2
-rw-r--r--org.eclipse.vex.docbook/styles/docbook-plain.css36
-rw-r--r--org.eclipse.vex.xhtml/styles/xhtml1-plain.css2
4 files changed, 22 insertions, 22 deletions
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java
index 72e85e93..b7eeea68 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java
@@ -443,9 +443,9 @@ public class CssBasedBoxModelBuilder implements IBoxModelBuilder {
private <P extends IParentBox<IInlineBox>> P visualizeInlineNodeContent(final INode node, final Styles styles, final Collection<VisualizeResult> childrenResults, final P parent) {
if (!childrenResults.isEmpty()) {
- return surroundWithInlinePseudoElements(visualizeChildrenInline(childrenResults, parent), node, styles);
+ return surroundWithInlinePseudoElements(visualizeChildrenInline(childrenResults, visualizeContentProperty(node, styles, parent)), node, styles);
} else {
- return surroundWithInlinePseudoElements(placeholderForEmptyNode(node, styles, parent), node, styles);
+ return surroundWithInlinePseudoElements(placeholderForEmptyNode(node, styles, visualizeContentProperty(node, styles, parent)), node, styles);
}
}
diff --git a/org.eclipse.vex.dita/css/dita_classed_shell_vex.css b/org.eclipse.vex.dita/css/dita_classed_shell_vex.css
index b6ad9991..aedd3fd0 100644
--- a/org.eclipse.vex.dita/css/dita_classed_shell_vex.css
+++ b/org.eclipse.vex.dita/css/dita_classed_shell_vex.css
@@ -26,7 +26,7 @@ entry {
}
*[class~="topic\/image"] {
- background-image: attr(href);
+ content: image(attr(href));
}
*[class~="topic\/image"][placement="break"] {
diff --git a/org.eclipse.vex.docbook/styles/docbook-plain.css b/org.eclipse.vex.docbook/styles/docbook-plain.css
index f3dfdc6b..74bdd688 100644
--- a/org.eclipse.vex.docbook/styles/docbook-plain.css
+++ b/org.eclipse.vex.docbook/styles/docbook-plain.css
@@ -48,7 +48,7 @@ application {
}
arg {
- display: inline;
+ display: inline;
}
article,book,chapter,colophon {
@@ -340,7 +340,7 @@ computeroutput {
constant {
display: inline;
- font-family: "Courier New", monospace;
+ font-family: "Courier New", monospace;
}
copyright {
@@ -495,7 +495,7 @@ foreignphrase {
}
formalpara {
- display: block;
+ display: block;
}
formalpara > title {
@@ -576,7 +576,7 @@ glossentry>glossterm {
graphic {
display: block;
- background-image: attr(fileref);
+ content: image(attr(fileref));
}
group {
@@ -628,8 +628,8 @@ inlinemediaobject>imageobject>imagedata {
}
imagedata {
- display: block;
- background-image: attr(fileref);
+ display: inline;
+ content: image(attr(fileref));
}
imageobject {
@@ -668,7 +668,7 @@ inlineequation {
inlinegraphic {
display: inline;
- background-image: attr(fileref);
+ content: image(attr(fileref));
}
inlinemediaobject {
@@ -722,7 +722,7 @@ keycap {
keycode {
display: inline;
- font-family: "Courier New", monospace;
+ font-family: "Courier New", monospace;
}
keycombo {
@@ -1166,7 +1166,7 @@ screenco {
screenshot {
display: block;
- white-space: pre;
+ white-space: pre;
}
secondary {
@@ -1247,7 +1247,7 @@ state {
step {
display: list-item;
- list-style-type: decimal;
+ list-style-type: decimal;
}
stepalternatives {
@@ -1260,7 +1260,7 @@ street {
substeps {
display: list-item;
- list-style-type: lower-alpha;
+ list-style-type: lower-alpha;
}
subtitle {
@@ -1285,7 +1285,7 @@ superscript {
}
symbolt {
- display: inline;
+ display: inline;
}
synopsis {
@@ -1300,13 +1300,13 @@ systemitem {
}
tag {
- display: inline;
+ display: inline;
}
tag:before {
- content: '<';
+ content: '<';
}
tag:after {
- content: '>';
+ content: '>';
}
table {
@@ -1362,7 +1362,7 @@ textdata {
/* TODO display referenced text */
display: inline;
font-size: smaller;
- background-color: #B0B0B0;
+ background-color: #B0B0B0;
}
tip {
@@ -1562,13 +1562,13 @@ warning:before {
wordasword {
display: inline;
- font-style: italic;
+ font-style: italic;
}
xref {
display: inline;
color: blue;
- font-style: italic;
+ font-style: italic;
}
xref:before {
diff --git a/org.eclipse.vex.xhtml/styles/xhtml1-plain.css b/org.eclipse.vex.xhtml/styles/xhtml1-plain.css
index d1a71e6e..86ac32d7 100644
--- a/org.eclipse.vex.xhtml/styles/xhtml1-plain.css
+++ b/org.eclipse.vex.xhtml/styles/xhtml1-plain.css
@@ -192,7 +192,7 @@ i {
}
img {
- background-image: attr(src);
+ content: image(attr(src));
height: attr(height);
width: attr(width);
}

Back to the top