Re: RFE: Let XXE react to width of <col> elements
Hussein Shafie <[email protected]>
| Newsgroups | gmane.editors.xxe.general |
|---|---|
| Message-ID | <[email protected]> |
On 8/4/26 18:53, Leif Halvard Silli wrote:
>
> It is just super that you have fixed the styling of <col/>!
>
> NB: Note that there are 4 CSS properties that apply to <col/> – border,
> visibility, background-color and width: https://developer.mozilla.org/
> en-US/docs/Web/HTML/Reference/Elements/col#usage_notes
>
>
XXE only supports 2 CSS properties: background-color and width.
>
> But why couldn’t the collapse/expand of <colgroup> work like collapse/
> expand of a <section> with a h1-h6 element? Adding an attribute value
> to a child of a <section> does not cause the <section> to collapse – or
> expand. Or perhaps this relies on the element having collapes:no applied
> to itself, like you describe below?
>
<colgroup> is styled using display:table-column-group; <col> is styled
using display:table-column.
XXE considers display:table-column-group to be a kind of
display:inline-tree and display:table-column to be a kind of display:tree.
display:inline-tree and display:tree basically come from XXE's tree view
and as such cannot be actually styled using CSS and have a built-in
collapser gadget. This is very different from <section>/<h1>:
---
section {
display: block;
collapsible: yes;
not-collapsible-head: 1;
}
h1 {
display: block;
font-weight: bold;
font-size: 2em;
margin: 0.5em 0;
}
section > h1:first-child:before {
content: collapser() " ";
}
---
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support