[csswg-drafts] [css-backgrounds-3] Does `background-attachment: fixed` work with `background-clip: text`? (#10595)

OnkarRuikar has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-backgrounds-3] Does `background-attachment: fixed` work with `background-clip: text`? ==
On MDN it is mentioned that: [[ref](https://developer.mozilla.org/en-US/docs/Web/CSS/background-attachment#fixed)]
> The background is fixed relative to the viewport. Even if an element has a scrolling mechanism, the background doesn't move with the element. (This is not compatible with [background-clip: text](https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip#values).)

Now run [this demo](https://developer.mozilla.org/en-US/play?id=nY8WlvxNG9E7Qk%2B3gsfNgxWxwv8DFnUKdK4wc8AWoVdny5CqzRsVnm3slnb5vf9uxS5SBWQviTNUWdSM) on Firefox and Chrome. The background stays fixed in Chrome and not in Firefox.

There is nothing in [the spec](https://drafts.csswg.org/css-backgrounds/#valdef-background-attachment-fixed) that says that `background-attachment: fixed` doesn't work with `background-clip: text`. Is Chrome correct or Firefox?

From the specifications standpoint, what should happen when the `background-attachment: fixed` and `background-clip: text` properties are used together? Should the background remain fixed or scroll?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10595 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 19 July 2024 12:19:59 UTC