-
Notifications
You must be signed in to change notification settings - Fork 714
[css-color-adjust] viewport propagation of forced-color-adjust #6307
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
Labels
Closed Accepted by CSSWG Resolution
Commenter Satisfied
Commenter has indicated satisfaction with the resolution / edits.
css-color-adjust-1
Current Work
Comments
The CSS Working Group just discussed RESOLVED: Add forced-color-adjust propagation to apply to root The full IRC log of that discussion<dael> Topic: [css-color-adjust] viewport propagation of forced-color-adjust<dael> github: https://github.com//issues/6307 <dael> alisonmaher: Currently prop from root and body to viewport. Since we force colors at used value time we can get wrong if don't prop forced-color-adjust to viewport <dael> alisonmaher: We previously resolved not to prop any new properties from body to viewport but wondering if we should have an acception here so forced color does prop when set on body <dael> TabAtkins: I see argument for it. <dael> TabAtkins: As not a direct implementer I can't say if it's cool to add one more to the list, but I can see why it's confusing to figure out when color comes off body <dael> Rossen_: Effect of not doing it? You may have bg of viewport that's different than forced? <dael> alisonmaher: Set forced-color:adjust to none and want bg to be another color we would end up forcing the viewport bg color b/c it's not none at viewport. Wouldn't get bg color at the viewport <futhark> q+ <dael> fantasai: Two comments. Seems bad practice to set forced-color-adjust none on body. Seems a bit user hostile to say I don't care what you want <dael> fantasai: If concern is tweak color of bg we have similar problem with color scheme. If we prop one we should prop both. Not sure we should; we should encourage people to set in html <dael> alisonmaher: If we were to do it for forced-color-adjust doing it for color-scheme would make sense as well <Rossen_> ack futhark <dael> futhark: I was thinking that is it really we should prop the property to viewport and not we should take into acocunt when prop. When try and prop bg we look at display value and if it's display:none it's not prop. Maybe similar <dael> alisonmaher: Yeah, when look at f-c-s at used value time we could end up forcing hte prop value of viewport no matter what. <dael> s/f-c-s/forced-color-adjust <dael> Rossen_: Are options to leave as-is and use this as a soft mechanism to discourage such usage patterns by authors? otoh we can still add that same question applies to do we add back color scheme to the list <dael> alisonmaher: Those are two options. One use case from author to set a bg color for svg image which are similar to root and viewport prop. To fix that we would need to prop from root to viewport. Hoping can resolve on prop from root. If doing for root might makes sense to do from body as well <dael> Rossen_: Other opinions? <dael> fantasai: If we're doing from root make sense to do from body as well statement doesn't make sense. Have lot of properties that prop from root but not body so don't think that holds <dael> alisonmaher: If feel we shouldn't do from body I'm okay with that. Root piece is major thing looking for. Can see author confusion but wouldn't object <emilio> +1 for doing it just for the root <dael> fantasai: A bunch of scrolling properties that don't prop from body. We locked down to some css 2 properties <fantasai> s/from body/from body even though overflow does/ <dael> Rossen_: Not hearing disagreement about root. Sounds reasonable. Convo seems to support adding to root. For body we've been making steady attempts to min exposure that's prop. <dael> Rossen_: Sounds like current consensus is around adding to root but not body. <dael> alisonmaher: That works <dael> Rossen_: Other thoughts? <dael> Rossen_: Obj to adding forced-color-adjust propagation to apply to root <dael> RESOLvED: Add forced-color-adjust propagation to apply to root <oriol> Note in https://github.com//issues/6079#issuecomment-816307011 we resolved "No future properties should propagate from <body> to the ICB" |
fantasai
added a commit
that referenced
this issue
Jun 9, 2021
…iewport so they affect the canvas background color etc. #6307
@alisonmaher Edits checked in, let us know if it looks OK! |
@fantasai Looks good to me, thanks! |
chromium-wpt-export-bot
pushed a commit
to web-platform-tests/wpt
that referenced
this issue
Jun 9, 2021
Forced-color-adjust propagates from the root to the viewport but not from the body, per the resolution in the following spec issue: w3c/csswg-drafts#6307 Bug: 1212201 Change-Id: Ib8109659083d21e1c29fc8bdae519393cb417688
chromium-wpt-export-bot
pushed a commit
to web-platform-tests/wpt
that referenced
this issue
Jun 10, 2021
Forced-color-adjust propagates from the root to the viewport but not from the body, per the resolution in the following spec issue: w3c/csswg-drafts#6307 This CL also moves the call for Document::UpdateForcedColors() earlier in Document::Initialize() to ensure the state of forced colors mode is set early enough when determining the background-color of the viewport in forced colors mode. Bug: 1212201 Change-Id: Ib8109659083d21e1c29fc8bdae519393cb417688
chromium-wpt-export-bot
pushed a commit
to web-platform-tests/wpt
that referenced
this issue
Jun 11, 2021
Forced-color-adjust propagates from the root to the viewport but not from the body, per the resolution in the following spec issue: w3c/csswg-drafts#6307 This CL also moves the call for Document::UpdateForcedColors() earlier in Document::Initialize() to ensure the state of forced colors mode is set early enough when determining the background-color of the viewport in forced colors mode. Bug: 1212201 Change-Id: Ib8109659083d21e1c29fc8bdae519393cb417688 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2915382 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Alison Maher <almaher@microsoft.com> Cr-Commit-Position: refs/heads/master@{#891653}
chromium-wpt-export-bot
pushed a commit
to web-platform-tests/wpt
that referenced
this issue
Jun 11, 2021
Forced-color-adjust propagates from the root to the viewport but not from the body, per the resolution in the following spec issue: w3c/csswg-drafts#6307 This CL also moves the call for Document::UpdateForcedColors() earlier in Document::Initialize() to ensure the state of forced colors mode is set early enough when determining the background-color of the viewport in forced colors mode. Bug: 1212201 Change-Id: Ib8109659083d21e1c29fc8bdae519393cb417688 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2915382 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Alison Maher <almaher@microsoft.com> Cr-Commit-Position: refs/heads/master@{#891653}
pull bot
pushed a commit
to FreddyZeng/chromium
that referenced
this issue
Jun 11, 2021
Forced-color-adjust propagates from the root to the viewport but not from the body, per the resolution in the following spec issue: w3c/csswg-drafts#6307 This CL also moves the call for Document::UpdateForcedColors() earlier in Document::Initialize() to ensure the state of forced colors mode is set early enough when determining the background-color of the viewport in forced colors mode. Bug: 1212201 Change-Id: Ib8109659083d21e1c29fc8bdae519393cb417688 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2915382 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Alison Maher <almaher@microsoft.com> Cr-Commit-Position: refs/heads/master@{#891653}
moz-v2v-gh
pushed a commit
to mozilla/gecko-dev
that referenced
this issue
Jun 15, 2021
…ust, a=testonly Automatic update from web-platform-tests Viewport propagation of forced-color-adjust Forced-color-adjust propagates from the root to the viewport but not from the body, per the resolution in the following spec issue: w3c/csswg-drafts#6307 This CL also moves the call for Document::UpdateForcedColors() earlier in Document::Initialize() to ensure the state of forced colors mode is set early enough when determining the background-color of the viewport in forced colors mode. Bug: 1212201 Change-Id: Ib8109659083d21e1c29fc8bdae519393cb417688 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2915382 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Alison Maher <almaher@microsoft.com> Cr-Commit-Position: refs/heads/master@{#891653} -- wpt-commits: 2577ffbd3fb4a79766cfa03b1ae976fe446f4aa3 wpt-pr: 29321
jamienicol
pushed a commit
to jamienicol/gecko
that referenced
this issue
Jun 23, 2021
…ust, a=testonly Automatic update from web-platform-tests Viewport propagation of forced-color-adjust Forced-color-adjust propagates from the root to the viewport but not from the body, per the resolution in the following spec issue: w3c/csswg-drafts#6307 This CL also moves the call for Document::UpdateForcedColors() earlier in Document::Initialize() to ensure the state of forced colors mode is set early enough when determining the background-color of the viewport in forced colors mode. Bug: 1212201 Change-Id: Ib8109659083d21e1c29fc8bdae519393cb417688 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2915382 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Alison Maher <almaher@microsoft.com> Cr-Commit-Position: refs/heads/master@{#891653} -- wpt-commits: 2577ffbd3fb4a79766cfa03b1ae976fe446f4aa3 wpt-pr: 29321
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Closed Accepted by CSSWG Resolution
Commenter Satisfied
Commenter has indicated satisfaction with the resolution / edits.
css-color-adjust-1
Current Work
We propagate
background-color
from the root/body to the viewport. However, we don't similarly propagateforced-color-adjust
, which can lead to unexpected results in forced colors mode.For example, in the following case, we propagate a
background-color
of red to the viewport in forced colors mode becauseforced-color-adjust
is set tonone
. However, because colors are now forced at used value time, when we re-resolve the background color at the viewport, we end up forcing the background toCanvas
, sinceforced-color-adjust
at the viewport computes toauto
.The proposal would be to propagate
forced-color-adjust
to the viewport, as well, since the used value ofbackground-color
is dependent onforced-color-adjust
.It was resolved in issue #6079 that "No future properties should propagate from body". So, if we decide to only propagate
forced-color-adjust
from the root and not the body, are we ok with the following case resulting in a non-red background in forced colors mode?The text was updated successfully, but these errors were encountered: