Skip to content

First attempt transforming directly to pixel values. - #22

Merged
jgerigmeyer merged 5 commits into
transform-for-floating-uifrom
transform-to-pixel
Sep 9, 2022
Merged

First attempt transforming directly to pixel values.#22
jgerigmeyer merged 5 commits into
transform-for-floating-uifrom
transform-to-pixel

Conversation

@jgerigmeyer

Copy link
Copy Markdown
Member

This is an attempt to resolve anchor() fns directly to a pixel value, without reference to the floating-el property being declared. Ideally this will allow us to handle math/custom-css-var use-cases (e.g. --center: anchor(--my-anchor 50%);), anchor-size, etc.

See:

@jgerigmeyer
jgerigmeyer marked this pull request as ready for review September 7, 2022 18:38
Comment thread src/transform.ts
Comment thread src/transform.ts
@netlify

netlify Bot commented Sep 7, 2022

Copy link
Copy Markdown

Deploy Preview for anchor-polyfill ready!

Name Link
🔨 Latest commit 972d622
🔍 Latest deploy log https://app.netlify.com/sites/anchor-polyfill/deploys/6319039865943f00073c458a
😎 Deploy Preview https://deploy-preview-22--anchor-polyfill.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@jgerigmeyer

Copy link
Copy Markdown
Member Author

@mirisuzanne mirisuzanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this looks good, with caveats about writing mode (which I think is a separate story?)

@jgerigmeyer
jgerigmeyer merged commit 434c893 into transform-for-floating-ui Sep 9, 2022
@jgerigmeyer
jgerigmeyer deleted the transform-to-pixel branch September 9, 2022 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants