<style-conflict>
The <style-conflict>
element in a DITAVAL
document declares the behavior to be used when one or more flagging
methods collide on the same
element..
Rendering expectations
The following table details how conflicts are resolved when different flagging methods are specified for the same element:
Flagging method | Conflict behavior |
---|---|
backcolor |
Use the color specified by the
|
changebar | Add all change bars that apply. |
color |
Use the color specified by the
|
style | Add all font styles that apply. If two different kinds
of underline are used, default to the heaviest (double
underline) and use the color that is specified by the
@foreground-conflict-color attribute. If no
foreground conflict color is specified, use a default color
that is appropriate for the output format. |
<endflag> |
Add all flags that apply. |
<startflag> |
Add all flags that apply. |
Content model
EMPTY
Empty
Attributes
@background-conflict-color
- Specifies the color to be used when more than one background color applies to a single element. Colors can be entered by name or code.
@foreground-conflict-color
- Specifies the color to be used when more than one color applies to a single element. Colors can be entered by name or code.
@background-conflict-color
- Specifies the color to be used when more than one background color applies to a single element. Colors can be entered by name or code.
@foreground-conflict-color
- Specifies the color to be used when more than one color applies to a single element. Colors can be entered by name or code.
Example
This section is non-normative.
The following code sample shows a DITAVAL document that specifies that a background color of #ffffb3 is used when there are conflicts:
<?xml version="1.0" encoding="UTF-8"?>
<val>
<style-conflict background-conflict-color="#ffffb3"/>
<prop action="flag" att="platform" val="dita" backcolor="#ccffb3"/>
<prop action="flag" att="platform" val="lwdita" backcolor="#ffe6ff"/>
</val>
Any element that specifies a value of dita lwdita or lwdita dita is rendered with a light-yellow background color.