-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-color-adjust-1] Should probably not honor non-url background images #4916
Comments
The other reasonable possibility @fantasai and I can come up with is to descend into gradients and adjust all their color-stops the same way as background-color (turning their color channels to match the forced bg color, but leaving their opacity intact). (If anyone ever implements |
That's starting to sound a bit like color-filter (issue #2875). |
The CSS Working Group just discussed
The full IRC log of that discussion<dael> Topic: [css-color-adjust-1] Should probably not honor non-url background images<dael> github: https://github.com//issues/4916 <dael> emilio: When we impl we initially allowed all bg images like spec says. We had to revert and only allow url based bc/ things like gradients cause undesired effects. High contrast dark theme with white gradient you don't want to show <dael> emilio: Not sure what Edge or new blink impl does, but we got a lot of complaints from high contrast users <dael> AmeliaBR: End user pov gradients act more like background color than bg image which we'd preserve? <dael> emilio: Right <dael> Rossen_: Current impl is evolving in this respect <dael> Rossen_: Issue you raised I checked one of the linked URLs. I didn't see why that didn't repro the issue. <dael> Rossen_: Regardless two options you listed which is not honor or do something further and allow alpha blending of non-color bg to blend with override from system colors. That's an interesting approach but not sure effect on gradients and if that's more desirable <dael> Rossen_: Either approach seems reasonable. <dael> Rossen_: Before the call smfr linked to a prop from dino a while back <dael> smfr: Linked b/c had a mech to desc how change colors and gradients. Instead of magic text you can say color-fliter-saturation:0 <dael> Rossen_: Defined BG color as a color-mix to be able to blend with computed color of system colors. That's the case and I was thinking if the color mix would be enough in this case <dael> emilio: Need to color mix all colors in image. color-filter more tricky b/c if applies to system colors it's opposite. Need to prevent it from applying to UA colors which is not ideal <dael> smfr: Had notion in webkit, but I don't think we specified anything on it <dael> emilio: Doesn't that mean default color isn't filtered? I guess it depends <dael> Rossen_: Could go more restrictive and not honor non-url bg images and than figure out if we can alpha-blend gradients <dael> emilio: sgtm <dael> astearns: Prop: Not honor non-url bg images for color adjustments <dael> astearns: Or non-URL bg images people can use color adjustment MQ to make own changes? <dael> fantasai: NO b/c we're not allowing them <dael> astearns: But you can have rules in stylesheet o use differen gradients <dael> AmeliaBR: Same as forced-color changing any other forced-color rule. It turns off forced color on certain element <dael> fantasai: But that turns off all riles which is next issue <fantasai> s/riles/rules/ <dael> astearns: Any objections to Not honor non-URL bg images in color-adjustments? <dael> AmeliaBR: Can you say forced color? <dael> Prop: Do not honor non-URL bg images in forced color adjustments <dael> fantasai: I'm okay with it to start. Looking at other ideas in issue might be worthwhile, but we can start here <dael> Rossen_: Agree. I think this is a reasonable first step on the path <dael> RESOLVED: Do not honor non-URL background images in forced color adjustments |
Resolved by the WG and PR landed. Closing. |
As resolved by the CSSWG, non-URL background-images should be reverted in Forced Colors Mode. w3c/csswg-drafts#4916 Bug: 970285 Change-Id: I24c903f96da1921bb3da0388100062091afbb507
As resolved by the CSSWG, non-URL background-images should be reverted in Forced Colors Mode. w3c/csswg-drafts#4916 Bug: 970285 Change-Id: I24c903f96da1921bb3da0388100062091afbb507 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2254441 Reviewed-by: Anders Hartvoll Ruud <[email protected]> Commit-Queue: Alison Maher <[email protected]> Cr-Commit-Position: refs/heads/master@{#780874}
As resolved by the CSSWG, non-URL background-images should be reverted in Forced Colors Mode. w3c/csswg-drafts#4916 Bug: 970285 Change-Id: I24c903f96da1921bb3da0388100062091afbb507 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2254441 Reviewed-by: Anders Hartvoll Ruud <[email protected]> Commit-Queue: Alison Maher <[email protected]> Cr-Commit-Position: refs/heads/master@{#780874}
As resolved by the CSSWG, non-URL background-images should be reverted in Forced Colors Mode. w3c/csswg-drafts#4916 Bug: 970285 Change-Id: I24c903f96da1921bb3da0388100062091afbb507 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2254441 Reviewed-by: Anders Hartvoll Ruud <[email protected]> Commit-Queue: Alison Maher <[email protected]> Cr-Commit-Position: refs/heads/master@{#780874}
…ed Colors Mode, a=testonly Automatic update from web-platform-tests Revert non-URL background images in Forced Colors Mode As resolved by the CSSWG, non-URL background-images should be reverted in Forced Colors Mode. w3c/csswg-drafts#4916 Bug: 970285 Change-Id: I24c903f96da1921bb3da0388100062091afbb507 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2254441 Reviewed-by: Anders Hartvoll Ruud <[email protected]> Commit-Queue: Alison Maher <[email protected]> Cr-Commit-Position: refs/heads/master@{#780874} -- wpt-commits: 2e78e6d435f33d7c44e68978fe0b459a801c2ee8 wpt-pr: 24262
…ed Colors Mode, a=testonly Automatic update from web-platform-tests Revert non-URL background images in Forced Colors Mode As resolved by the CSSWG, non-URL background-images should be reverted in Forced Colors Mode. w3c/csswg-drafts#4916 Bug: 970285 Change-Id: I24c903f96da1921bb3da0388100062091afbb507 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2254441 Reviewed-by: Anders Hartvoll Ruud <[email protected]> Commit-Queue: Alison Maher <[email protected]> Cr-Commit-Position: refs/heads/master@{#780874} -- wpt-commits: 2e78e6d435f33d7c44e68978fe0b459a801c2ee8 wpt-pr: 24262
As resolved by the CSSWG, non-URL background-images should be reverted in Forced Colors Mode. w3c/csswg-drafts#4916 Bug: 970285 Change-Id: I24c903f96da1921bb3da0388100062091afbb507 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2254441 Reviewed-by: Anders Hartvoll Ruud <[email protected]> Commit-Queue: Alison Maher <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#780874} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 518903e2e3f771609bd8573211d5bf82f039843b
We had to do this because too many people complained when we started doing the backplating.
What we implemented is making background-image
revert
unless all the values areurl()
functions:But open to other suggestions :-)
The text was updated successfully, but these errors were encountered: