Oxygen XML Web Author CSS Limitations
The Oxygen XML Web Author CSS support is compatible with most of what is offered by
the standalone distribution of Oxygen XML Editor/Author. However, there are some
exceptions:
- The
+
(direct adjacent) and>
(child selector) structural selectors cannot be used to match table-related elements. - Oxygen CSS extensions are ignored on
print
media. If an Oxygen CSS extension is used on thescreen
media, it will also be used on theprint
media. - Oxygen CSS extension properties and functions cannot be used in a rule that has a
:hover
pseudo-class in the selector. Theattr
function is also not supported in such a rule due to a lack of browser support. - The
-oxy-style
CSS property is not supported. - The
:hover
pseudo-class is only available for mouse-enabled platforms. - The
focus
andfocus-within
pseudo-classes are not supported. - Oxygen CSS extensions used in property values that express lengths may not behave as expected. Nevertheless, it is a good approximation.
- Oxygen CSS extensions used in media queries may not behave as expected.
-
Oxygen synthetic DOM nodes
comment
,reference
,cdata
,pi
, anderror
interfere with the+
(direct adjacent) structural selector. For example:b + b { color: red; }
will not match the following XML structure:<root> <b/> <!--comment--> <b/> </root>
- Oxygen XML Web Author does not render non-
table-row
children elements of tables and non-table-cell
elements oftable-row
elements. - A
width
orheight
property set on any element other than the root XML element may cause some resize handles (that cannot be disabled) to be displayed in IE 11. This is also true for elements that have aposition
property with a value ofabsolute
orfixed
. For more information about this issue, see this Microsoft Connect article. - Oxygen XML Web Author does not support the following:
:nth-of-type
,:nth-last-of-type
,:first-of-type
,:last-of-type
,:nth-last-of-type
pseudo-classes.-oxy-tags-color
and-oxy-tags-background-color
properties.- Subject selector and the
:has
selector. As an exception, they are supported when all the property declarations of the CSS rule contains Oxygen-specific CSS extensions or thecontent
property. For example:
is supported since the property contains thefigure:has(title) { -oxy-foldable: true; }
-oxy-foldable
custom CSS property, while:
is not supported.figure:has(title) { display: block; }
- Specifying widths for inline elements.
- Attribute selectors that use wildcards for the attribute name.
-
CSS property values that contain the
oxy_xpath
function are not updated correctly when the document changes.To force the update of such a property, you can use the
refresh(AuthorNode)
method fromAuthorEditorAccess
.
- The
-oxy-foldable
property does not work with elements that have:display: inline
. - The
-oxy-floating-toolbar
property only supports theoxy_button
,oxy_combobox
,oxy_label
andoxy_buttonGroup
functions. - When a
width
is specified for anoxy_label
function, if the label text is longer than the specified width, it is wrapped on a new row. In Oxygen XML Editor/Author, thewidth
property is ignored if the text is longer. - Some form controls have a property named
columns
and its unit size is "the width of the w character". In Oxygen XML Web Author, the unit size is 1em. - In Oxygen XML Web Author, pseudo-elements are rendered inside their parent
element, while in Oxygen XML Editor/Author, they are rendered as siblings of
their parent element.
- As a result, when used on a pseudo-element, the
counter-reset
property establishes different scopes in the two applications. For consistent results, use this property only on XML elements.
- As a result, when used on a pseudo-element, the
-
Namespace prefixes for conditional selectors from attributes are supported, with the following limitations:
- The prefix used must be the same in XML and in CSS.
- Selectors of the type
[*|lang]
that match thelang
attribute in any namespace are not supported.
To overcome some of these limitations, you can use media queries described in Customization Tips.