-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: Tweak background-color and color handling in ignored-colors mode.
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
- Loading branch information
Showing
1 changed file
with
79 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters