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

NEW
Unassigned

Status

()

Core
Editor
P3
normal
4 months ago
4 months ago

People

(Reporter: bz, Unassigned)

Tracking

53 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

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?

Comment 1

4 months ago
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.

Updated

4 months ago
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.
You need to log in before you can comment on or make changes to this bug.