[wpt-sync] Sync PR 53278 - Implement `corners` shorthand
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 53278 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/53278
Details from upstream follow.
Noam Rosenthal <nrosenthal@google.com> wrote:
Implement
corners
shorthandThis commit implements the
corners
shorthand which combines
border-radius
andcorner-shape
properties into one shorthand.
The shorthand allows to set up to four values via a/
separator.
It is important to note that values without a size, will map to
0px round
.
Thenormal
keyword is also added as an identifier to map values of
0px round
in css.See CSSWG resolution:
https://github.com/w3c/csswg-drafts/issues/11623#issuecomment-2982179370There is still an open issue about the name of the shorthand,
so keeping this under "experimental" until that's resolved.Change-Id: Icc234cc70d1d9edef6075230a4c11cc58983cf8c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6651553
Commit-Queue: Noam Rosenthal \<nrosenthal@google.com>
Reviewed-by: Fredrik Söderquist \<fs@opera.com>
Cr-Commit-Position: refs/heads/main@{#1476182}
Assignee | ||
Comment 1•1 day ago
|
||
Assignee | ||
Updated•1 day ago
|
Assignee | ||
Comment 2•1 day ago
|
||
Assignee | ||
Comment 3•1 day ago
|
||
Assignee | ||
Comment 4•23 hours ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 4 tests and 9 subtests
Status Summary
Firefox
OK
: 4
PASS
: 85
FAIL
: 31
Chrome
OK
: 4
PASS
: 85
FAIL
: 31
Safari
OK
: 4
PASS
: 85
FAIL
: 31
Links
Details
New Tests That Don't Pass
- /css/css-borders/corner-shape/corners-computed.html [wpt.fyi]
- Property corners value '0px round':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value 'normal':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value 'round 0rem':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value 'round 0%':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '4px 5% round':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value 'scoop 100%':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '30px superellipse(0.4)':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value ' 3% 5rem superellipse(0.4)':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '8px round / 10% bevel':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '10px 10% round / 10px 20% bevel / 16px round':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '10px round / 33% superellipse(0.4) / superellipse(2) 6%/ 4px 12px scoop':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '4px round':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '2% notch':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '4px round / 2% notch':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '4px round / 2% round / 1em squircle':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '4px round / normal / 1em round / 4% round':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '4px superellipse(3) / 2px superellipse(-0.3)':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '2% superellipse(1) / 2px superellipse(-1)':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '4px 2% squircle / round 2px':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '4px bevel / superellipse(-3) 1em / 2px notch':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '4px bevel / superellipse(-3) 1em / 2px notch / normal':
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Property corners value '4px superellipse(5) / notch 1em / 2px 13% round / bevel 10px':
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Property corners value '0px round':
- /css/css-borders/corner-shape/corners-valid.html [wpt.fyi]
- e.style['corners'] = "round 30%" should set the property value:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - e.style['corners'] = "10px bevel" should set the property value:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - e.style['corners'] = "round 10% / 2rem squircle" should set the property value:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - e.style['corners'] = "notch 10px / squircle 30% 10px / 1rem bevel / 2px round" should set the property value:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - e.style['corners'] = "normal" should set the property value:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - e.style['corners'] = "4px 2% round" should set the property value:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - e.style['corners'] = "4px 2% round / bevel 1em / normal" should set the property value:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - e.style['corners'] = "normal / 1px round / normal / 3% squircle" should set the property value:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - e.style['corners'] = "normal / superellipse(-0.5) 30% 10px / 10px 1rem notch" should set the property value:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- e.style['corners'] = "round 30%" should set the property value:
Description
•