all:unset Reset Behavior Lookup

all:unset resets ordinary properties by inheritedness, excludes direction/unicode-bidi/custom properties, caller independently supplies property inheritance metadata. Explicit supplied computed/layout context only; not a browser cascade/layout engine or cross-browser guarantee.

Description

All unset applies inheritance or initial-value behavior with defined exclusions.

All unset applies inheritance or initial-value behavior with defined exclusions.1

Direction, unicode-bidi and custom properties need separate treatment. Use all:unset Reset Behavior Lookup to evaluate the supplied inputs under the specific model below.

When to use all:unset Reset Behavior Lookup

Use all:unset Reset Behavior Lookup to evaluate the supplied inputs under the specific model below. Define the supplied layout, token or rendering scenario and establish the relevant units and browser context independently.

How to use all:unset Reset Behavior Lookup and understand its results

  1. Define the supplied layout, token or rendering scenario and establish the relevant units and browser context independently.
  2. Enter Property names, Property normally inherited flags using the field table and validation rules below, then run the tool.
  3. Read Reset actions and interpret units, signs, ordering and placeholders as explained below.
  4. If the tool reports an input error, correct that field and rerun. A successful false result, empty match list or unknown-evidence placeholder has the specific meaning described here; check the limitations before applying the result.
Input fieldMeaningValue typeRequirement
propertyNamesProperty namesarray of stringRequired; constraints below
propertyNormallyInheritedFlagsProperty normally inherited flagsarray of numberRequired; constraints below

Enter aligned nonempty property-name strings and binary normally-inherited flags. Exact direction and unicode-bidi names and all names starting -- are excluded. Other entries receive inherit when their supplied flag is 1 and initial otherwise. Name matching is case sensitive; the tool does not inspect declarations or establish inheritance metadata.

all:unset outcome = excluded for direction/unicode-bidi/custom properties; otherwise inherited?inherit:initial

Field order, units and branch conditions follow the implementation explanation above.

Output fieldMeaningValue type
resetActionsReset actionsarray of string
json
{
  "input": {
    "propertyNames": [
      "color",
      "direction",
      "--x"
    ],
    "propertyNormallyInheritedFlags": [
      1,
      1,
      1
    ]
  },
  "output": {
    "resetActions": [
      "inherit",
      "excluded",
      "excluded"
    ]
  }
}

Limitations and assumptions

Direction, unicode-bidi and custom properties need separate treatment. Apply the exact scope and assumptions described above.

All listed fields require explicit values. Unexpected fields, incorrect types, nonfinite numbers and sparse arrays fail validation. Domain-specific bounds, alignments and supported tokens are stated above; extremely large inputs or outputs can also be rejected. These errors differ from successful results such as false, no matches or unknown evidence.

Alternative or Complementary methods

Use Custom Property inherit vs initial for a related task: An unregistered custom property's initial value is guaranteed-invalid.

Use inherit/initial/unset/revert Resolution Table for a related task: CSS-wide keywords choose parent, initial or rollback values under defined rules.

References

  1. all:unset Reset Behavior Lookup — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies