Skip to content

Commit ca104d3

Browse files
authored
Merge pull request #177 from oddbird/spec-changes
Update Limitations to match current spec
2 parents 94890be + edd5b5c commit ca104d3

File tree

2 files changed

+62
-6
lines changed

2 files changed

+62
-6
lines changed

README.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,25 @@ option can be set by setting the value of
7474

7575
## Limitations
7676

77-
This polyfill doesn't (yet) support the following:
78-
79-
- `anchor-default` property
80-
- `anchor-scroll` property
77+
This polyfill was implemented against an early version of the spec, and updates
78+
were paused to allow the syntax to solidify. Now that browsers are working on
79+
implementation, we would like to bring it up to date.
80+
81+
While this polyfill supports many basic use cases, it doesn't (yet) support the
82+
following:
83+
84+
- The `@position-try` rule
85+
- The `position-try-options`, `position-try-order`, or `position-try` properties
86+
- `anchor-scope` property
87+
- `position-anchor` property
88+
- `inset-area` property
89+
- `anchor-center` value for `justify-self`, `align-self`, `justify-items`, and
90+
`align-items` properties
8191
- anchor functions with `implicit` anchor-element
82-
- automatic anchor positioning: anchor functions with `auto` or `auto-same`
92+
- automatic anchor positioning: anchor functions with `inside` or `outside`
8393
anchor-side
94+
- `anchor-name` property defining multiple anchor names
95+
- `position-visibility` property
8496
- dynamically added/removed anchors or targets
8597
- anchors or targets in the shadow-dom
8698
- tracking the order of elements in the
@@ -104,6 +116,9 @@ This polyfill doesn't (yet) support the following:
104116
whose offset-parent is inline with `clientHeight`/`clientWidth` of `0`
105117
(partial support -- does not account for possible scrollbar width)
106118

119+
In addition, JS APIs like `CSSPositionTryRule` or `CSS.supports` will not be
120+
polyfilled.
121+
107122
## Sponsor OddBird's OSS Work
108123

109124
At OddBird, we love contributing to the languages & tools developers rely on.
@@ -115,4 +130,4 @@ and centered on your needs as a developer!
115130
We display sponsor logos and avatars
116131
on our [website](https://www.oddbird.net/polyfill/#open-source-sponsors).
117132

118-
[Sponsor OddBird's OSS Work](https://opencollective.com/oddbird-open-source)
133+
[Sponsor OddBird's OSS Work](https://github.com/sponsors/oddbird)

index.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,19 @@ <h2>Anchoring Elements Using CSS</h2>
174174
>.
175175
</li>
176176
</ul>
177+
<p>
178+
<strong>Note: </strong>This polyfill was implemented against an early
179+
version of the spec, and updates were paused to allow the syntax to
180+
solidify. Now that browsers are working on implementation, we would like
181+
to bring it up to date, and welcome
182+
<a
183+
href="https://github.com/oddbird/css-anchor-positioning"
184+
target="_blank"
185+
rel="noopener noreferrer"
186+
>code contributions</a
187+
>
188+
and <a href="#sponsor">financial support</a> to make that happen.
189+
</p>
177190
</section>
178191
<section id="anchor-positioning" class="demo-item">
179192
<h2>
@@ -374,6 +387,11 @@ <h2>
374387
</div>
375388
</div>
376389
<div class="note">
390+
<p>
391+
<strong>Note: </strong>The <code>@position-fallback</code> syntax has
392+
been replaced in the spec, and will be deprecated in the next version
393+
of this Polyfill.
394+
</p>
377395
<p>
378396
With polyfill applied, the following positions are attempted in order:
379397
</p>
@@ -647,6 +665,29 @@ <h2>
647665
top: anchor(--my-anchor-update bottom);
648666
}</code></pre>
649667
</section>
668+
<section id="sponsor">
669+
<h2>Sponsor OddBird's OSS Work</h2>
670+
<p>
671+
At OddBird, we love contributing to the languages & tools developers
672+
rely on. We're currently working on polyfills for new Popover & Anchor
673+
Positioning functionality, as well as CSS specifications for functions,
674+
mixins, and responsive typography. Help us keep this work sustainable
675+
and centered on your needs as a developer! We display sponsor logos and
676+
avatars on our
677+
<a
678+
href="https://www.oddbird.net/polyfill/#open-source-sponsors"
679+
target="_blank"
680+
rel="noopener noreferrer"
681+
>website</a
682+
>.
683+
</p>
684+
<a
685+
href="https://github.com/sponsors/oddbird"
686+
target="_blank"
687+
rel="noopener noreferrer"
688+
>Sponsor OddBird's OSS Work</a
689+
>
690+
</section>
650691
<footer>
651692
<p>
652693
Spec proposal by

0 commit comments

Comments
 (0)