filter drop-shadow vs box-shadow Diff

Supported shadow silhouette semantics, not matching blur-radius kernels or visual equivalence. Explicit supplied computed/layout context only; not a browser cascade/layout engine or cross-browser guarantee.

Description

Box shadows use a box silhouette while filter drop shadows use rendered alpha.

Box shadows use a box silhouette while filter drop shadows use rendered alpha.1

Their parameters and supported inset behavior differ. Use filter drop-shadow vs box-shadow Diff to look up a supported term.

When to use filter drop-shadow vs box-shadow Diff

Use filter drop-shadow vs box-shadow Diff to look up a supported term. Choose the exact supported token from the table; preserve its punctuation and capitalization.

How to use filter drop-shadow vs box-shadow Diff and understand its results

  1. Choose the exact supported token from the table; preserve its punctuation and capitalization.
  2. Enter Shadow kind using the field table and validation rules below, then run the tool.
  3. Read Meaning 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
shadowKindShadow kindstringRequired; constraints below

Enter one of the exact supported shadowKind tokens in the table below. The implementation performs a case-sensitive lookup and returns the stored meaning without interpreting a stylesheet, audio recording or performance. Unsupported tokens, added whitespace and alternate capitalization are input errors. The entries describe a bounded vocabulary rather than every valid value in the wider topic.

meaning = storedTable[exactSupportedToken]

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

Exact supported tokenStored meaning
box-shadowshadow derives from border-box silhouette and can be inset
drop-shadowfilter shadow derives from rendered input alpha silhouette, no inset or spread parameter
Output fieldMeaningValue type
meaningStored explanation for the exact supported token.string
json
{
  "input": {
    "shadowKind": "drop-shadow"
  },
  "output": {
    "meaning": "filter shadow derives from rendered input alpha silhouette, no inset or spread parameter"
  }
}

Limitations and assumptions

Their parameters and supported inset behavior differ. 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 backdrop-filter Behind-Element Blur for a related task: Backdrop-filter samples content behind an element while filter acts on its rendered group.

Use mask-image Alpha vs Luminance Mode Lookup for a related task: Mask coverage can depend on alpha alone or on luminance multiplied by alpha.

References

  1. filter drop-shadow vs box-shadow Diff — tool.io

Similar or alternative tools

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