RESOLVED CONFIGURATION CHANGED 19203
CSS masks should not clip by default (add a value of "none" to mask-clip property)
https://bugs.webkit.org/show_bug.cgi?id=19203
Summary CSS masks should not clip by default (add a value of "none" to mask-clip prop...
CJ Yetman
Reported 2008-05-22 19:00:36 PDT
If you add a CSS mask to an object that has a CSS reflect, the reflection no longer appears. CSS transforms don't play nice with CSS reflect either. May be linked. See bug https://bugs.webkit.org/show_bug.cgi?id=19179 also see test case
Attachments
shows two boxes with reflection: one has a mask, other does not (492 bytes, text/html)
2008-05-22 19:02 PDT, CJ Yetman
no flags
reflection on masked object is partially revealed if the object is skewed (499 bytes, text/html)
2008-05-22 19:14 PDT, CJ Yetman
no flags
CJ Yetman
Comment 1 2008-05-22 19:02:22 PDT
Created attachment 21306 [details] shows two boxes with reflection: one has a mask, other does not
CJ Yetman
Comment 2 2008-05-22 19:14:18 PDT
Created attachment 21307 [details] reflection on masked object is partially revealed if the object is skewed
Dave Hyatt
Comment 3 2008-05-27 14:33:18 PDT
It is at the moment correct behavior that a mask causes a reflection to disappear. We will have to add a new value to mask-clip (something like "none") and make it the default in order to fix this. Note that the same thing happens with box-shadow (the shadow will disappear). This is happening because mask-clip is defaulting to a value of "border", which means it is clipping out everything outside the border.
Dave Hyatt
Comment 4 2008-05-27 14:34:57 PDT
Another option is to just say that the mask *never* masks anything outside the border box for any value of mask-clip.
CJ Yetman
Comment 5 2009-04-08 20:57:59 PDT
this behavior has changed in Webkit nightly build 530.6 in the second test, the skewed box shows no reflection at all, instead of just the portion of the shadow that fits within the border of where the box would be if it were not skewed (like it does with the current Safari 4.0 Beta)
Dirk Schulze
Comment 6 2012-11-21 22:12:03 PST
(In reply to comment #4) > Another option is to just say that the mask *never* masks anything outside the border box for any value of mask-clip. The CSS WG decided to add a new keyword, which will most likely be 'no-clip'.
Brent Fulgham
Comment 7 2022-07-11 16:24:37 PDT
Safari, Chrome, and Firefox show the same rendering behavior for this test case. I do not believe any further compatibility issue remains.
Note You need to log in before you can comment on or make changes to this bug.