w3c / w3c/csswg-drafts

[css-transforms-1] shouldn't define used value "as if UA style sheet contained"

Open
#8,575 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-transforms-1
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

Currently the spec of transform-origin contains the statement:

For SVG elements without associated CSS layout box the initial used value is 0 0 as if the user agent style sheet contained:

It would, on the face of it, be much more sensible to just define this as a UA style rule, rather than making UAs pretend.

(Given the wording "as if", does this mean WebKit's current implementation which uses a UA style rule is non-conforming?)

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.

Research direction

Start in the CSS Transforms Level 1 specification at the transform-origin definition mentioned in the issue. Review how the initial used value for SVG elements without an associated CSS layout box is currently specified and compare it with the UA style rule approach. Done means the wording clearly defines the intended behavior and resolves whether the existing WebKit implementation conforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.