gecko-dev/servo
Emilio Cobos Álvarez f97d7df528 Bug 1610085 - Tweak background-color and color handling in ignored-colors mode. r=jwatt
We're resetting `color` to the default color when there's a declaration that
applies in order to make stuff like this:

<div style="color: transparent">
  <div style="color: red">
    Red
  </div>
</div>

To not show transparent. But the behavior we want is more like "override with
default color iff there's no other declaration that would set the color from an
user or UA sheet".

This implements that behavior, plus avoids it if we're not inheriting
from transparent, so that stuff like this preserves the behavior from before bug
844349:

<a href="foo">
  <span style="color: red">Should be the red color</span>
</a>

Differential Revision: https://phabricator.services.mozilla.com/D60391

--HG--
extra : moz-landing-system : lando
2020-01-26 22:57:21 +00:00
..
components Bug 1610085 - Tweak background-color and color handling in ignored-colors mode. r=jwatt 2020-01-26 22:57:21 +00:00
ports/geckolib Bug 1611711 - Remove kCursorKTable. r=jwatt 2020-01-26 20:17:41 +00:00
tests/unit Bug 1600443 - Update cssparser and phf. r=heycam 2019-12-04 19:54:06 +00:00
moz.build
rustfmt.toml