Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

CSS Rule Question - matching an unknown property

Options
LegacyForum
LegacyForum Posts: 1,664 ✭✭
I am trying to match the non-standard behavior: property.

I tried a Unknown Property and a simple text output,but it never gets hit for a .css file with this css:

* {behavior:foo}

Any ideas?

Comments

  • LegacyForum
    LegacyForum Posts: 1,664 ✭✭
    edited April 2004
    Options
    We've found that the best solution is to add the "behavior" property to WebKing's CSS dictionary. Though this is a non-standard property, it is common and WebKing will probably be adding this property to the CSS dictionary in future builds. To do this:
    [*]Locate the CSS.cwd dictionary file, probably in "WebKing Directory"/lib/CSS.cwd, where "WebKing Directory" is the path to the directory where WebKing is installed (where you will find webking.exe for example.)
    [*]Open the CSS.cwd file and go to line 1877.
    [*]Paste in the following xml at that line:

    CODE
    <Node name="behavior">
    ? ? <Field name="Value">
    ? ? ?<Type indirect="true" name="Node">
    ? ? ? <NodeType name="Expressions"/>
    ? ? ? <NodeType name="Values"/>
    ? ? ?</Type>
    ? ? </Field>
    <Documentation><![CDATA[Behavior property.

    Sets or retrieves DHTML behavior.
    ? ? ]]></Documentation>
    ? </Node>

    In general, this is how new property information can be added to the CSS dictionary (it probably will not work as well with the HTML dictionary). The change will be reflected in the RuleWizard such that you will be able to look for the "behavior" property specifically and extract information from declarations using this property.

    We believe the "UnknownProperty" option is not functioning properly and are working on a solution. You can expect to see this issue addressed soon. In the meantime, the above method should help satisfy most CSS goals.

    -employee.