[Webkit-unassigned] [Bug 109770] New: [CSS Shaders] Parse src property in @-webkit-filter at-rules

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 13 16:32:58 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=109770

           Summary: [CSS Shaders] Parse src property in @-webkit-filter
                    at-rules
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mvujovic at adobe.com
                CC: michelangelo at webkit.org, krit at webkit.org,
                    dino at apple.com, achicu at adobe.com
            Blocks: 71392


The Filter Effects spec [1] specifies the syntax for CSS "src" property in for @filter at-rules:
src: [ <uri> [format(<string>)]?]#

In practice, it can look like:
src: url(shader.vs) format('x-shader/x-vertex'), url(shader.fs) format('x-shader/x-fragment');

This src property is similar to the src property in CSS font-face rules, but a little different. The CSS Fonts spec [2] specifies:
src: [ <uri> [format(<string>#)]? | <font-face-name> ]#
The syntax for a <font-face-name> is a unique font face name enclosed by "local(" and ")".

Unlike the filter src property, the font face src property accepts the local function [e.g. src: local("SomeFont");]. Also, the font face src property accepts a list of strings instead of just one string in its format function.

[1]: https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#custom-filter-src
[2]: http://www.w3.org/TR/css3-fonts/#src-desc

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list