Bug 126976 - REGRESSION (r160908): Forward referencing with -webkit-filter doesn't work anymore
Summary: REGRESSION (r160908): Forward referencing with -webkit-filter doesn't work an...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antti Koivisto
URL:
Keywords: InRadar
Depends on: 120685
Blocks: 68469
  Show dependency treegraph
 
Reported: 2014-01-14 04:02 PST by Dirk Schulze
Modified: 2022-08-20 14:29 PDT (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schulze 2014-01-14 04:02:53 PST
<style>
div {
	width: 200px;
	height: 200px;
	-webkit-filter: url(#f);
}
</style>

<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<svg width="200" height="200">
	<filter id="f">
	<feFlood flood-color="green"/>
	</filter>
</svg>

Doesn't work, adding the SVG element at the beginning works.

<svg width="200" height="200">
	<filter id="f">
	<feFlood flood-color="green"/>
	</filter>
</svg>
<div></div>
...

I don't know the regression window.
Comment 1 Dirk Schulze 2014-01-14 06:06:14 PST
The problem occurs somewhere between r160907 and r160984.
Comment 2 Dirk Schulze 2014-01-15 03:27:50 PST
I checked and build https://trac.webkit.org/changeset/160908 . It is the lazy render tree creation that causes the regression.
Comment 3 Dirk Schulze 2014-02-24 23:47:36 PST
Thanks Antti! I didn't check if it works again yet. What fixed it?
Comment 4 Radar WebKit Bug Importer 2014-02-24 23:47:50 PST
<rdar://problem/16157970>
Comment 5 Dirk Schulze 2014-02-24 23:50:56 PST
(In reply to comment #3)
> Thanks Antti! I didn't check if it works again yet. What fixed it?

Oh, sorry. Misread the message for bug 126976. Btw. I tried the synchronization of render tree just for filters (as you told me) but it didn't work.
Comment 6 Ahmad Saleem 2022-08-20 11:54:02 PDT
I changed the test case from Comment 0 into JSFiddle:

Link - https://jsfiddle.net/nkj4x298/show

*** Safari 15.6.1 on macOS 12.5.1 ***

Green bar does not show but when I scroll there is a text and then small patch of green below the text patch and text patch is space to green patch width.

*** Safari Technology Preview 151 ***

Green bar does show but after little time also when I scroll there is a text and then small patch of green below the text patch and text patch is space to green patch width. Although starting few characters of text is now overlapped by green bar.

*** Chrome Canary 106 ***

Green bar does show but after little time also when I scroll there is a text and then small patch of green below the text patch and text patch is space to green patch width. Although starting few characters of text is now overlapped by green bar.

*** Firefox Nightly 105 ***

Green bar does show but after little time also when I scroll there is a text and then small patch of green below the text patch and text patch is space to green patch width. Although starting few characters of text is now overlapped by green bar.

__________

I would say that it is fixed in Safari Technology Preview 151 at least but only small issue is slight delay in rendering of "green" bar.

I will leave it for others to conclude whether it can be considered as "RESOLVED CONFIGURATION CHANGED" or not. Thanks!
Comment 7 Alexey Proskuryakov 2022-08-20 14:29:43 PDT
Curious what finally fixed this.