[css-masking-1] Fix value definition of deprecated `clip` property
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 38/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- css
- Domain
- documentation
Research direction
Start with the Masking 1 definition of the deprecated clip property and compare its rect() syntax with the Shapes 1 definition linked in the issue. Check how the definitions are extracted by @webref/css. Done means the clip value is unambiguous and no conflicting rect() definition remains for extraction.
Written by the indexing model from the issue text.
Description
clip is defined in Masking 1 with rect() | auto. rect() is anchored to its definition below the clip property definition table: rect() = rect( <top>, <right>, <bottom>, <left> ). Lastly, clip is deprecated, it is the only property that uses <rect()> with this definition, and there is a new definition of <rect()> in Shapes 1:
rect() = rect( [ <length-percentage> | auto ]{4} [ round <'border-radius'> ]? )Note: This syntax is similar, but not quite identical, to the legacy rect() function used solely by the clip property.
I believe that rect() in the clip property is ambiguous because it can be interpreted as a function component value named rect with no argument. A terminal or non-terminal must be defined between angled brackets, per the CSS value definition syntax.
To avoid declaring different value definitions for the same type, clip could be defined as rect( <top>, <right>, <bottom>, <left> ) | auto and the definition of <rect()> below the clip definition table could be removed or rewrited in a way that prevent @webref/css to extract it.
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 24
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from w3c/csswg-drafts
-
Agenda+ css-sizing-4 css-values-5
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
w3c/csswg-drafts#14502 · 1 reaction ·
-
css-values-5 editorial Needs Edits
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
w3c/csswg-drafts#14498 · 2 comments ·
-
css-overflow-4 topic: line-clamp
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
w3c/csswg-drafts#14485 · 1 comment ·
-
Administrative Tracker css-values-4
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
w3c/csswg-drafts#14482 · 4 comments · 1 reaction ·
-
css-values-5 Needs Edits
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
w3c/csswg-drafts#14466 ·
All issues in w3c/csswg-drafts
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bancolombia/sentinel#22 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
redhat-developer/rhdh-plugins#4887 · 2 comments ·