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

[css-background] background shorthand and "/" slash syntax #18947

Closed
karlcow opened this issue Sep 10, 2019 · 0 comments · Fixed by #18952
Closed

[css-background] background shorthand and "/" slash syntax #18947

karlcow opened this issue Sep 10, 2019 · 0 comments · Fixed by #18952

Comments

@karlcow
Copy link
Contributor

karlcow commented Sep 10, 2019

The CSS spec says:
cover attribute is allowed only if a position has been specified before hand.

<bg-layer> =    <bg-image> 
                     || <bg-position> [ / <bg-size> ]? 
                     || <repeat-style> 
                     || <attachment> 
                     || <box> 
                     || <box>

Currently Safari, Chrome on one side behaves differently than Firefox.
Chrome and Safari accepts this syntax and shows the image (not following the spec)

background: rgba(0,0,0,0) 0 url(…) / cover

Test: https://codepen.io/webcompat/pen/LYPLvow

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

Successfully merging a pull request may close this issue.

1 participant