Skip to content
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

Rationalize CSS environment-blending and WebXR XREnvironmentBlendMode #24

Closed
NellWaliczek opened this issue Sep 18, 2018 · 2 comments
Closed
Milestone

Comments

@NellWaliczek
Copy link
Member

Per the F2F yesterday, it was called out that there are two properties on the web now that both refer to environment blending. This issue tracks asking @rcabanier, @thetuvix, @toji to sync up and make sure that the two properties have been rationalized such that the naming and intention is consistent where needed. Opaque and Additive seem likely to be fine, but let's get a double check on 'subtractive' and 'alpha-blend'

CSS add a property for 'environment-blending' to CSS with the following values:
Name: environment-blending Value: opaque | additive | subtractive
w3c/csswg-drafts#2723
w3c/csswg-drafts#2719

There is also the XREnvironmmentBlendMode
enum XREnvironmentBlendMode { "opaque", "additive", "alpha-blend", };
immersive-web/webxr#366
immersive-web/webxr#145

@rcabanier
Copy link
Contributor

'subtractive' was proposed by @kearwood in w3c/csswg-drafts#2719 (comment)
I'm unsure if there is browser interest in implementing this. If a UA implements this type of display, it seems reasonable that XREnvironmmentBlendMode also supports it.

Does it make sense for environment-blending to support alpha-blend?
How does the page know that the backdrop is a window to the real world?

@NellWaliczek NellWaliczek transferred this issue from immersive-web/webxr Sep 5, 2019
@cwilso cwilso removed their assignment Sep 9, 2019
@cwilso cwilso added this to the Spec Complete milestone Sep 9, 2019
@Manishearth
Copy link
Contributor

We've been running with this model for a while; subtractive is unlikely to be useful, and everything else is already aligned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants