[css-om] logical properties api?

Open
#4,803 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
css
Domain
api, web-dev

Research direction

Start by reading the CSSOM View specification entry for getClientRects() and the linked getlogicalclientrect.js gist. Determine whether a writing-mode-aware API is warranted and what its intended behavior should be; done would be a resolved CSSWG proposal with an agreed API surface and specification changes.

Written by the indexing model from the issue text.

Description

cssom-1

The CSSOM exposes getClientRects(). However, occasionally (and perhaps increasingly) as authors begin thinking about CSS Logical Properties, it can be useful to think about these things with an eye toward how they are being used in a given writing mode. It seems potentially interesting, useful, and perhaps good for parity to consider adding some API surface that would allow this without having to invent your own API to do it.

h/t to @jonathantneal for bringing this up and asking the question/providing the gist illustrating a thing he was developing in order to experiment with some needs he was exploring himself here...

Dominant language
Bikeshed
Stars
4.9k
Forks
816
Avg merge
2d 18h
Merged PRs (30d)
24

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from w3c/csswg-drafts

All issues in w3c/csswg-drafts

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.