Open Bug 1255398 Opened 8 years ago Updated 2 years ago

inIDOMUtils.getCSSValuesForProperty() is missing keywords for scroll-snap-* properties

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

Tracking Status
firefox48 --- affected

People

(Reporter: sebo, Unassigned)

References

(Blocks 1 open bug)

Details

Affected properties:
- scroll-snap-coordinate
- scroll-snap-destination
- scroll-snap-points-x
- scroll-snap-points-y

Those properties are missing their keyword and function values.

Test case (to execute in Scratchpad):

let DOMUtils = Cc["@mozilla.org/inspector/dom-utils;1"].getService(Ci.inIDOMUtils);

let names = ["scroll-snap-coordinate", "scroll-snap-destination", "scroll-snap-points-x", "scroll-snap-points-y"];

for (let name of names) {
  console.log(DOMUtils.getCSSValuesForProperty(name));
}

Sebastian

The mentioned properties got removed in the meantime, so no need to add keywords for them.

Though scroll-snap-type is still missing the none keyword. I'm just guessing but I think this is because of how the value is handled in https://searchfox.org/mozilla-central/rev/2c16c5c5ea7e5a105f2ae56e03a6cbf0021d002d/servo/components/style/values/specified/box.rs.

Sebastian

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.