Open Bug 869809 Opened 11 years ago Updated 2 years ago

serialization of @keyframes should indent individual keyframe rules

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

People

(Reporter: jtd, Unassigned)

Details

This is very minor but I figured it's an easy thing to fix.

Given the rule below:

  @keyframes identifier {   0% { top: 0; left: 0; } 30% { top: 50px; } }

The serialization (i.e. cssText value) is:

  @keyframes identifier {
  0% { top: 0px; left: 0px; }
  30% { top: 50px; }
  }

Unlike other @rule serializations (@font-face, @supports), there's no indent for the keyframes.  Probably better to be consistent for presentation within editors and such and add an indent for each of the keyframes.

Example:

  @font-face { font-family: bongo }

Serialized as:

  @font-face {
    font-family: "bongo";
  }
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.