Open Bug 1374018 Opened 7 years ago Updated 3 years ago

Can we move the _moz_quote styles from html.css into some Thunderbird UA sheet?

Categories

(Core :: DOM: Editor, enhancement, P5)

53 Branch
enhancement

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

Details

We end up doing getAttribute("_moz_quote") on every <span> and <pre> on web pages, because we have html.css styles for that attribute.  Those seem to be there specifically for editing, and particularly for email.  If those are unused outside Thunderbird, could we move the relevant rules to a Tbird UA stylesheet?
You mean these?
span[_moz_quote=true] {
  color: blue;
}
pre[_moz_quote=true] {
  color: blue;
}

Sure we can move them to some TB stylesheet, Richard, our theme man, can take care of that.

You can set pref middlemouse.paste and then paste as quotation with CTRL+MIDDLE-MOUSE. But that inserts <blockquote type="cite">, so unrelated to the <span> and <pre>.

So yes, I see no problem.
Flags: needinfo?(richard.marti)
I see no problem too. We can add this rules to messageQuotes.css.

Boris, there are also rules for "blockquote" and "blockquote[type=cite]", do you plan to remove them too?
Flags: needinfo?(richard.marti)
> You mean these?

Yes.

> Boris, there are also rules for "blockquote" and "blockquote[type=cite]", do you plan to remove them too?

The blockquote rule is not going anywhere; it's part of the HTML spec.  

The "blockquote[type=cite]" would be nice to move as well, good catch.  It's nonstandard and affects rendering of web pages, which is not really desirable, I think.
Priority: -- → P3
Adding frg for the SM side.
I would just add messageQuotes.css to SeaMonkey in case this is done there for TB. Seems to be an easy task to add the CSS to SMs MsgComposeCommands.js.

Bulk-downgrade of unassigned, untouched DOM/Storage bug's priority.

If you have reason to believe, this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: P3 → P5
You need to log in before you can comment on or make changes to this bug.