Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294522

Update stylelint rule unit-allowed-list to include container query units

$
0
0

Problem/Motivation

While working on issue #3328095, I noticed that css checks fail because of cqw unit which is one of the new container query units.

Container queries are now supported in all major browser and I believe we should add the units to unit-allowed-list stylelint rule.

The container query length units are:

  • cqw: 1% of a query container's width
  • cqh: 1% of a query container's height
  • cqi: 1% of a query container's inline size
  • cqb: 1% of a query container's block size
  • cqmin: The smaller value of either cqi or cqb
  • cqmax: The larger value of either cqi or cqb

Browser support reference:
https://developer.mozilla.org/en-US/docs/Web/CSS/@container#browser_compatibility

Steps to reproduce

Proposed resolution

Add "cqw", "cqh", "cqi", "cqb", "cqmin", "cqmax" units to unit-allowed-list rule.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 294522

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>