Config schema supports integers but not floating point numbers. See for the docs and fully type list. The responsive preview module (#1741498: Add a responsive preview bar to Drupal core) would need a floating point number expressed for dots per pixel which for a Google Nexus is 1.325 for example.

Proposed solution

Wire in support for floating point numbers. Should hopefully be easy with typed data already supporting this(?)

#2 float-type-schema.patch557 bytesGábor Hojtsy
PASSED: [[SimpleTest]]: [MySQL] 58,087 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


Gábor Hojtsy’s picture

Issue tags: +Spark
Gábor Hojtsy’s picture

Status: Active » Needs review
557 bytes
PASSED: [[SimpleTest]]: [MySQL] 58,087 pass(es). View

Initial patch.

vijaycs85’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me...

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x.

Wim Leers’s picture

Issue tags: -sprint

Go team D8MI! :)

Gábor Hojtsy’s picture

Added new float support in the docs at
Added this to the change notice at

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Add responsive preview issue reference