public final class UnquotedIEFilterPlugin extends Object implements Plugin
For example:
filter: progid:DXImageTransform.Microsoft.Shadow(color='#969696', Direction=145, Strength=3);
See http://msdn.microsoft.com/en-us/library/ms532847(v=vs.85).aspx for more information on filters.
Note that this is not needed for quoted filters, commonly used with the -ms-filter property instead of filter. For example:
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(color='#969696', Direction=145, Strength=3)";
Enabling this plugin will allow the parser to "understand" this proprietary syntax. The whole property-value will be output
as-is once it discovers that it starts with the special "progid:" prefix. You can subscribe to created UnquotedIEFilter
objects as you would other standard syntax units using Rework, Validate, etc...
Example usage:
Omakase.source(input).use(new UnquotedIEFilterPlugin()).(...).process()
UnquotedIEFilter| Constructor and Description |
|---|
UnquotedIEFilterPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
refine(Declaration declaration,
Grammar grammar,
Broadcaster broadcaster)
Refines unquoted IE proprietary filters.
|
public void refine(Declaration declaration, Grammar grammar, Broadcaster broadcaster)
If refinement is successful a new PropertyValue containing the UnquotedIEFilter will be broadcasted via the
given Broadcaster.
declaration - The declaration to refine.grammar - The grammar.broadcaster - The broadcaster.Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.