stylo: elements using NS_STYLE_COLOR_INHERIT_FROM_BODY don't get restyled when the body color changes

NEW
Unassigned

Status

()

P4
normal
a year ago
9 months ago

People

(Reporter: heycam, Unassigned)

Tracking

(Blocks: 1 bug)

unspecified
Points:
---

Firefox Tracking Flags

(firefox57 wontfix, firefox58 wontfix, firefox59 ?)

Details

Attachments

(2 attachments)

(Reporter)

Description

a year ago
Created attachment 8888195 [details]
test

See attached test.  I'm not sure where Gecko handles this.
With this slightly modified test-case, I can't repro for Gecko either, on click it doesn't update the style of the table.

<body style="color: red;">
  <div style="color: blue">
    <div>
      <table><tbody><tr><td>This text should be green.</td></tr></tbody></table>
    </div>
  </div>
</body>
<script>
document.onclick = function() {
  document.body.style.color = "green";
}
</script>
Created attachment 8888255 [details]
Restyle logging in the test that passes

Actually, this is not for the test that passes, but for the test-case I pasted in the previous comment, but doing the restyle just the same way after the original test-case, after an offsetTop.
(Reporter)

Comment 3

a year ago
Good point, I needed the <div> in there for Gecko since that's the element we'd stop cascading style at.

If Gecko doesn't handle this, then maybe we don't have to bother for stylo.
Yeah, I don't think we should bother. Blink also seems to ignore this... We can fix it eventually, but probably not a huge priority.
Priority: P3 → --
Priority: -- → P2
I don't believe this needs P2 given that Blink doesn't do correctly either, and this is a pretty old quirks...
Priority: P2 → P4
status-firefox57: --- → wontfix
status-firefox58: --- → fix-optional
You need to log in before you can comment on or make changes to this bug.