Skip to content

Rule Change: use-baseline should check CSS units #402

@ryo-manba

Description

@ryo-manba

What rule do you want to change?

use-baseline

What change do you want to make?

Generate more warnings

How do you think the change should be implemented?

A new default behavior

Example code

/* svh became baseline in 2022 */
a { height: 100svh; }

/* dvh became baseline in 2022 */
a { height: 100dvh; }

/* cqw became baseline in 2023 */
a { height: 10cqw; }

What does the rule currently do for this code?

No warnings are reported.

What will the rule do after it's changed?

The rule will warn when a CSS unit is not a baseline feature at the configured availability level, with @supports guard and allowUnits option support.

Participation

  • I am willing to submit a pull request to implement this change.

AI acknowledgment

  • I did not use AI to generate this issue report.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

Additional comments

This feature was implemented in ryo-manba/stylelint-plugin-use-baseline#112.
Related issue: ryo-manba/stylelint-plugin-use-baseline#111.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Needs Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions