I believe that I have potentially uncovered a rendering bug in XXE.  I have 
contrived a simple example to illustrate the problem.

Suppose that I have an XML input like so:

<List listStyle="numbered">
  <ListItem type="defect">This is a defect wrapping multiple lines</ListItem>
  <ListItem type="enhancement">This is an enhancement wrapping multiple 
lines</ListItem>
</List>

styled with:

List {
  display: block;
}

ListItem {
  display: list-item;
}

ListItem:before {
  content: "(" attr(type) ")";
}

List > ListItem,
List[listStyle=bullet] > ListItem {
  list-style-type: disc;
}

List[listStyle=number] > ListItem {
  list-style-type: decimal;
}

I would expect this to be rendered as:

1. (defect) This is a defect wrapping
   wrapping multiple lines
2. (enhancement) This is an enhancement
   wrapping multiple lines

But instead the ListItem:before selector is overwriting the list-item marker 
and is rendering as:

(defect) This is a defect
wrapping multiple lines
(enhancement) This is an enhancement
wrapping multiple lines

Is this behavior intentional or is this a defect?  If this behavior is 
intentional, is there any other way that I can accomplish what I'm asking.  
Keep in mind that the "type" attribute can be any arbitrary string, so the 
lengths of it will vary.

Cheers,
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20070612/199c4acb/attachment.htm
 

Reply via email to