This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15139 - Specify whether or not texture(<uri>) allow rendering of DOM elements
Summary: Specify whether or not texture(<uri>) allow rendering of DOM elements
Alias: None
Product: CSS
Classification: Unclassified
Component: Filter Effects (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dean Jackson
QA Contact: This bug has no owner yet - up for the taking
: 19886 (view as bug list)
Depends on:
Reported: 2011-12-10 17:11 UTC by Vincent Hardy
Modified: 2013-07-04 15:59 UTC (History)
5 users (show)

See Also:


Description Vincent Hardy 2011-12-10 17:11:08 UTC
Feedback from Evan Wallace:

 It’s too bad that CSS shaders can’t really be used for compositing two DOM elements together. This would allow for custom blend modes and custom transitions. While some transitions can still be done using the default alpha compositing in the browser, this limits the things that can be done with CSS shaders. This can sort of be overcome by nesting the two elements that you want to composite together under one element and doing two texture lookups in the shader but is harder than it needs to be. I’m also not sure if this hack works for compositing two or more screen-sized elements because you would need a texture at least twice the size of the screen.
Comment 1 Dirk Schulze 2013-01-14 07:31:00 UTC
At least the use case of referencing DOM elements seem valid. I would suggest that the texture() function does not only take a URL, but an <image> value (which has the element() function).
Comment 2 Dirk Schulze 2013-01-14 07:31:36 UTC
*** Bug 19886 has been marked as a duplicate of this bug. ***
Comment 3 Dirk Schulze 2013-07-04 15:59:19 UTC
Because of security concerns this will not be allowed.