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

relnote(116): CSSPropertyRule enabled in Fx nightly by default #20346

Merged
merged 4 commits into from Jul 18, 2023

Conversation

bsmth
Copy link
Member

@bsmth bsmth commented Jul 12, 2023

The pref layout.css.properties-and-values.enabled is set to true (enabled) on Nightly in 116. This allows for using the following APIs:

And the following CSS syntax:

@property --item-size {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 40%;
}

pen/demo:
https://codepen.io/bsmth/pen/xxQpVow?editors=0111

Related issues and pull requests:

Bugzilla:

@github-actions github-actions bot added the data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Jul 12, 2023
@bsmth bsmth marked this pull request as draft July 12, 2023 15:18
@github-actions github-actions bot added the data:css 🎨 Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS label Jul 13, 2023
Copy link
Collaborator

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; nice work @bsmth

@sideshowbarker sideshowbarker merged commit b649ff7 into mdn:main Jul 18, 2023
4 checks passed
@bsmth bsmth deleted the 27756-css-properties-values-api branch July 25, 2023 08:56
@bsmth
Copy link
Member Author

bsmth commented Jul 25, 2023

Thank you

@ZuBB
Copy link

ZuBB commented Sep 29, 2023

I spent an hour this morning and found that this does not work(broken?) in the nightly https://bugzilla.mozilla.org/show_bug.cgi?id=1846488

Right now, information about the presence of this feature in v119 is incorrect and may confuse users. Does it make sense to revert it?

@bsmth
Copy link
Member Author

bsmth commented Nov 27, 2023

I spent an hour this morning and found that this does not work(broken?)

I'm sorry you wasted time on this! I've amended the entries in the linked PR with a note linking to https://bugzilla.mozilla.org/show_bug.cgi?id=1846516 ("Support interpolating registered custom properties") which you can track for the fixes and improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:css 🎨 Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants