Daniel Glazman wrote:
 | > | Why the hell are inline styles "bloated" ???
 | >
 | > Because the same styles are repeated (and diverged, and 
 | > unmaintainable) for every single document you write, 
 | > instead of just existing in a single file.
 | >
 | > This is, to a large extent, why style sheets were 
 | > developed in the first place.
 | 
 | I know, I was there.
 | 
 | And that's why at the time people started inventing style 
 | sheets, they *ALL* added processing instructions to the 
 | markup in order to store inline styles.
 | Inline styles are (a) natural (b) absolutely necessary. 

But you should not depend on them so heavily. Most styling
is better accomplished with classes, ids, and essentially
*proper markup* combined with style rules.

 | IMHO, the XML people who want to get rid of the STYLE 
 | attribute are totally wrong.

I'm not one of them; but that is irrelevant.
 
 | > | How can you copy/paste a fragment with its styles 
 | > | from a document to another one if you don't have 
 | > | inline styles ?
 | >
 | > You don't. If I'm copying some text from the middle 
 | > of a paragraph in a document which happens to use 
 | > Centaur 12pt, and pasting it into a paragraph in a 
 | > document which happens to use Helvetica 14pt, do you
 | > really think I want the pasted text to be in Centaur 
 | > 12pt when the rest of the document doesn't use that 
 | > font at all?
 | 
 | Again, think of a Wysiwyg environment. If you *SEE*
 | something, copy and paste it somewhere else, you should 
 | *SEE* the same thing.

This is how I think selection w/ styles should work:
  If you select an element (as either part of your selection
  or your entire selection), it retains its style rules
  along with the markup.

  Inherited styles are not retained. Just the style rules.

  Basically, if I'm copy/pasting text within a single
  document, I will simply duplicate the markup. If an
  end tag is missing (e.g. I select from before the 
  start tag to the middle of an inline), it is added.

  Therefore, if I pick some text from the middle of a 
  paragraph, I will be selecting pure text with no style
  attached to it. If I paste it into another paragraph,
  it assimilates the style of the text around it.
  If I pick a <b> element along with the text, its contents
  remain bold, but do not retain their font face, color, 
  or anything else.

Reply via email to