Skip to content

Commit

Permalink
Propagate background-color through ruby elements
Browse files Browse the repository at this point in the history
Correctly puts the background-color attribute on merged spans.
  • Loading branch information
nigelmegitt authored Nov 18, 2022
1 parent 094055b commit abff02b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/js/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,11 @@

} else {

if (element.parentElement.nodeName === "SPAN") {
if (element.parentElement.nodeName === "SPAN"
element.parentElement.nodeName === "RUBY" ||
element.parentElement.nodeName === "RBC" ||
element.parentElement.nodeName === "RTC" ||
element.parentElement.nodeName === "RT") {

return getSpanAncestorColor(element.parentElement, ancestorList, true);

Expand Down

0 comments on commit abff02b

Please sign in to comment.