[Webkit-unassigned] [Bug 97134] Add optional keywords 'luminance'/'alpha' for 'mask-image' property to CSSParser
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 19 09:02:26 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=97134
Dirk Schulze <krit at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |achicu at adobe.com,
| |akling at apple.com,
| |koivisto at iki.fi,
| |simon.fraser at apple.com,
| |tabatkins at google.com
--- Comment #2 from Dirk Schulze <krit at webkit.org> 2012-11-19 09:04:21 PST ---
There was a discussion to change the syntax of the 'mask-image' property on www-style with the topic "Re: Ambiguities in fill:url() / stroke:url() syntax"[1].
The proposal says that the syntax should look like this:
mask-image: [<mask-source> [alpha | luminance]? ] | [<mask-image> [alpha | luminance]?]#
The problem is the definition of <mask-source> and <mask-image>. Both use <url>, but the meaning differs. While <mask-source> means that it references a <mask> element for masking, <mask-image> references an CSS image for masking.
The outcome of the discussion is, that we differ on the syntax of the URL if we take image or <mask> referencing. If the URL has a fragment identifier, we will parse it as <mask-source> and the fragment identifier references a <mask> element. If it doesn't have a fragment identifier, it is a CSS image. Since we decide on the URL, we can't differ if the resource with a fragment is actually an SVG document with <mask> element. Means url(image.png#frag) would be assumed to be an SVG image with <mask> element.
I will upload a patch to discuss this strategy shortly.
Adding more CSS people who may want to be involved in the review and the decision.
[1] http://lists.w3.org/Archives/Public/www-style/2012Oct/0766.html
--
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