Page MenuHomePhabricator

Diff: add possibility to distinguish added/deleted lines from moved lines via css
Open, Needs TriagePublicFeature

Description

currently, there is no possibility to distinguish added or deleted lines from moved lines in the diff view via css. Both types share the .diff-deletedline/.diff-addedline class and no further class indicating wheter the line has been added/deletedor just moved. The only difference is that the moved paragraphs have an anchor as the jump mark in the div of the line. It is not possible to adress this div element or its parent td via css, for example to especially highlight deleted lines in the diff.

Source of deleted lines:

<td class="diff-deletedline">
  <div> ... removed line ... </div>
</td>

Source of moved lines:

<td class="diff-deletedline">
  <div>
    <a name="movedpara_4_0_lhs"></a> 
    ... moved line ...
  </div>
</td>

There could be an additional diff-movedline class for moved lines to the td of the line.