The style regexes used for validating the values of shorthand properties seem to require values to be in a specific order when the CSS2 specifications allow them to be in any order.
For example, the border-top specification says that the value must take the form [ <border-width> || <border-style> || <'border-top-color'> ]
where "A double bar (||) separates two or more options: one or more of them must occur, in any order."[1]
However, wysiwyg_filter will not accept the value unless it is in that exact order <border-width> <border-style> <border-top-color>
.
This is causing valid styles to be removed. For example, I had a user trying to paste a table from a word document into ckeditor.module and the cells had a style="border-bottom:solid #A6A6A6 1.0pt"
attribute which was getting deleted due to the border-width being placed at the end.
Comments
Comment #2
geek-merlinA patch for the regexp at ~ wysiwyg_filter.inc:381 is appreciated.