Comments (9)
The CSSWG will automatically accept this resolution one week from now if no objections are raised here. Anyone can add an emoji to this comment to express support. If you do not support this resolution, please add a new comment.
Proposed Resolution: Add an array of shadow roots to a dictionary which is an argument of the document.caretPositionFromPoint
API as described in #10345 (comment)
from csswg-drafts.
@mfreed7 FYI I opened this issue to update the spec for document.caretPositionFromPoint
to take a single array of shadow roots instead of using a rest parameter.
from csswg-drafts.
@annevk @zcorpan @smaug---- FYI.
from csswg-drafts.
Doesn't seem unreasonable, but it might be even better to make it a dictionary argument so we can add more arguments there in the future.
I probably wouldn't go as far as https://w3ctag.github.io/design-principles/#prefer-dictionaries and also make the mandatory arguments part of the dictionary as the surrounding methods don't match that pattern and "x, y" is pretty established, but for the third argument it seems like a good idea.
from csswg-drafts.
@mfreed7 FYI I opened this issue to update the spec for
document.caretPositionFromPoint
to take a single array of shadow roots instead of using a rest parameter.
+1. That aligns with getHTML()
and also allows additional arguments to be added later.
Doesn't seem unreasonable, but it might be even better to make it a dictionary argument so we can add more arguments there in the future.
+1 to that also. It makes the name of that argument explicit, which is nice, and allows additional arguments in an even better way.
By the way, I think we should make the same change to getComposedRanges()
for all of the same reasons.
from csswg-drafts.
Proposed solution: Put the array of shadow roots into a dictionary which is an argument of document.caretPositionFromPoint
API.
document.caretPositionFromPoint(double x, double y, optional CaretPositionFromPointOptions options = {});
dictionary CaretPositionFromPointOptions {
sequence<ShadowRoot> shadowRoots = [];
};
from csswg-drafts.
@mfreed7 FYI I opened this issue to update the spec for
document.caretPositionFromPoint
to take a single array of shadow roots instead of using a rest parameter.+1. That aligns with
getHTML()
and also allows additional arguments to be added later.Doesn't seem unreasonable, but it might be even better to make it a dictionary argument so we can add more arguments there in the future.
+1 to that also. It makes the name of that argument explicit, which is nice, and allows additional arguments in an even better way.
By the way, I think we should make the same change to
getComposedRanges()
for all of the same reasons.
Filed w3c/selection-api#176
from csswg-drafts.
Proposed solution: Put the array of shadow roots into a dictionary which is an argument of
document.caretPositionFromPoint
API.document.caretPositionFromPoint(double x, double y, optional CaretPositionFromPointOptions options = {}); dictionary CaretPositionFromPointOptions { sequence<ShadowRoot> shadowRoots = []; };
@astearns Can we get to resolution of this issue asynchronously with the proposed solution? Thanks!
from csswg-drafts.
RESOLVED: Add an array of shadow roots to a dictionary which is an argument of the document.caretPositionFromPoint API
as described in #10345 (comment)
from csswg-drafts.
Related Issues (20)
- [anchor-position] CSS anchor position gap HOT 6
- [cssom-view] Proposal: Document.elementsFromRect()
- @media queries on mobile + zoom and media queries don't re-evaluate on zoom
- Feature: Display:Grid: grid-temp-col*: repeat+[set](autofill, min-column-width, max-column-width , bias-change, max-repeat) = repeat(auto-fill, 30rem, 40rem, min, 5)
- CSS Attribute presence and value selectors - Numerical Comparison <,>,<=,>=,== bitflagsOps + inspect width, height HOT 1
- CSS [parent-element]:nth-[attrib/class]-child[attrb+op+val](nth [BitflagOps] [value] ) Selectors for Display:Grid
- Viewport Meta - Property => Max-Element-Width: 800px or 40rem or width=device-width+inflation
- CSS: element property : device-overflow-inflation-width + device-overflow-inflated-width HOT 1
- Feature: @Container support zoom and re-evaluation of queries on mobile
- Feature: Display:Grid -> grid-[auto/section]-[flow/align]: row-reverse, column-reverse (Right to Left) languages + Grid: Relative Plus Modifier
- [selectors] Add selector match custom element
- [css-anchor-position] could anchor()'s side argument be optional?
- [css-anchor-position] Ability to provide multiple anchor-elements to try for position-anchor property and other anchor functions
- [css-anchor-position] Should scroll-margin/padding have an effect on position-visibility: anchors-visible? HOT 1
- [css-anchor-position] An ability to have a transition for `position-visibility`'s hidden effect HOT 1
- [css-anchor-position] The containing block should be allowed as an acceptable anchor element
- [css-color-5] Should intermediate out of range values be preserved in color-mix?
- [css-color-5] Missing forms to use to serialize color-mix and relative color
- [css-cascade-6] Enable `revert-layer` layer limiting and fallback values
- Position of the text-overflow ellipsis
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csswg-drafts.