Daniel Glazman wrote:
>
> Good morning,
>
> I have added yesterday evening to www.mozilla.org a new document [1]
> about basic CSS support in Composer. It describes a proposal in four
> steps. All comments, suggestions and even flames welcome.
> vertical-align (replaced elements only)
Vertical-align should apply to all inline elements, not just
replaced ones.
> Note : all class names can contain whitespace and unicode characters
> that must be internally escaped for correct interpretation by a CSS
> parser.
They must be internally escaped to put in the HTML, nevermind
the CSS parser. (The class attribute being a space-separated
list of classes.) What will you escape whitespace characters as?
Hyphens?
> Users will be provided with a new UI element (a pulldown menu for
> instance or an "apply style" menu item) allowing a fast and easy
> association of an embedded css rule to the selection.
...
> 2.application of choice "-none-" to the ranges in the selection.
> For each range :
> - if the range is pure textual data and if the choice is
> "-none-", do nothing,
> - if the range is an element and if the choice is "-none-",
> remove CLASS attribute from the element.
I have reservations about removing the class attribute like that.
Associating styling with classes is common practice, and very
practical, but classes aren't part of the style system; they're
part of the structural markup. I don't like equating "no styles"
with "no classes"--it leads to misconceptions:
If styles are associated with a given tag, are you going to remove
the tag?