Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add constraint for initial value in @property rule #38321

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

twittwer
Copy link

Description

Adds the constraint of computationally independence for the initial value of @Property rules.

The initial-value must be computationally independent.
https://www.w3.org/TR/css-properties-values-api-1/#initial-value-descriptor

Motivation

We were confused as the browser ignored our rem-based initial value until we got a hint to this specific constraint in the spec.
https://stackoverflow.com/a/79466455/6625414

Additional details

Related issues and pull requests

Adds the contraint of computationally independence for the initial value of @Property rules.
Spec-Reference: https://www.w3.org/TR/css-properties-values-api-1/#initial-value-descriptor
@twittwer twittwer requested a review from a team as a code owner February 25, 2025 12:23
@twittwer twittwer requested review from chrisdavidmills and removed request for a team February 25, 2025 12:23
@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs size/xs [PR only] 0-5 LoC changed labels Feb 25, 2025
Copy link
Contributor

Preview URLs

Flaws (2)

URL: /en-US/docs/Web/CSS/@property
Title: @property
Flaw count: 2

  • broken_links:
    • Can't resolve /en-US/docs/Web/CSS/custom-property-name
    • Can't resolve /en-US/docs/Web/CSS/declaration-list
External URLs (1)

URL: /en-US/docs/Web/CSS/@property
Title: @property

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:CSS Cascading Style Sheets docs size/xs [PR only] 0-5 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant