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 features and keys from CSSOM View Module spec #2363

Merged
merged 38 commits into from
Dec 19, 2024

Conversation

autonome
Copy link
Collaborator

@autonome autonome commented Nov 29, 2024

Epic bucket of stuff. This PR parcels out almost everything in the CSSOM View spec across a number of features.

While it looks big, there's ultimately not a lot of controversial stuff in here. Many of the keys seemed to have a straightforward home already in existing features.

New features split out so far are Caniuse features:

  • Scrolling APIs on elements
  • Window.matchMedia + MediaQueryList
  • Window.devicePixelRatio

New features split out, but not based on Caniuse features:

  • Window.screen

The only keys remaining from that spec now are:

  • feature policy, will go into that feature at some point
  • the getBoxQuads keys, which are behind a flag on Firefox since ~2014

Something that feels ok but not ideal is putting all the size/positional bits of Element and Window into DOM and Window features, respectively. They are certainly properties of those, and it didn't move any baselines, but they are a different set of use-cases. But this option is likely better than a new feature for this, as I didn't find any great evidence showing developer POV around CSSOM View as a whole thing on its own.

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Nov 29, 2024
@autonome autonome changed the title Add CSSOM View Module Add features and keys from CSSOM View Module spec Nov 29, 2024
@autonome autonome marked this pull request as ready for review November 29, 2024 16:30
Copy link
Collaborator

@jamesnw jamesnw left a comment

Choose a reason for hiding this comment

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

A few suggestions, but nothing blocking. Looks good to me!

features/screen.yml Outdated Show resolved Hide resolved
features/scroll-elements.yml Outdated Show resolved Hide resolved
features/devicepixelratio.yml Outdated Show resolved Hide resolved
features/devicepixelratio.yml Outdated Show resolved Hide resolved
@autonome autonome requested a review from ddbeck December 6, 2024 17:09
@autonome
Copy link
Collaborator Author

autonome commented Dec 6, 2024

Lots of stuff in here, so getting a 3rd pair of eyes.

Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

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

A couple minor things here, but this is quite close.

features/document-caretpositionfrompoint.yml.dist Outdated Show resolved Hide resolved
features/matchmedia.yml Outdated Show resolved Hide resolved
features/matchmedia.yml Show resolved Hide resolved
features/scroll-elements.yml Outdated Show resolved Hide resolved
features/scroll-elements.yml Show resolved Hide resolved
features/visual-viewport.yml Show resolved Hide resolved
@autonome autonome requested a review from ddbeck December 10, 2024 14:04
Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

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

OK, one last nit in a line comment, then we're ready to merge. Thank you!

features/document-caretpositionfrompoint.yml Outdated Show resolved Hide resolved
@autonome autonome merged commit d7faab0 into web-platform-dx:main Dec 19, 2024
3 checks passed
@autonome autonome deleted the cssom branch December 19, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature definition Creating or defining new features or groups of features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants