Open Bug 1382550 Opened 7 years ago Updated 2 years ago

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

Categories

(Core :: CSS Parsing and Computation, defect, P4)

defect

Tracking

()

Tracking Status
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- ?

People

(Reporter: heycam, Unassigned)

References

Details

Attachments

(2 files)

Attached file 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>
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.
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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: