- From: jsnkuhn via GitHub <sysbot+gh@w3.org>
- Date: Mon, 24 Jan 2022 15:08:14 +0000
- To: public-css-archive@w3.org
ANGLE EXAMPLES
------------------------------
https://www.marvel.com/

- call to action buttons: one with flat red, another with white border
- `:before` and `:after` used w/ border hacks
- corner-shape leads to considerably less code: `corners: angle 16px 0;`
https://www.zelda.com/ (footer links)

- this is the prototypical example of angled corners. All four corners with the same angle size.
- currently done with `:before` and `:after` `background-image`s on the left and right of the parent element. Similar to how we use to do rounded corners before `border-radius` was a thing.
- also includes a `border-radius`... Guessing this was intended as a fallback? but never got removed? This implies there were a couple of attempts at how to do this.
- corner-shape code is just a one-liner: `corners: angle 8px;`
https://metroid.nintendo.com/

- long angle bottom edge and call to action buttons
- done with an absolute positioned inline SVG
- a little broken in Firefox
- long angle bottom edge `corners: angle 0 0 90% 10% / 0 0 70px 42px;`
- call to action buttons `corners: angle 16px / 100% 0;`
https://thewitcher.com/en/witcher3

- corners: angle 28px 0 0 28px/ 50% 0 0 50%;
https://www.leagueoflegends.com/en-us/


- many different examples
- currently done with `canvas`
- many with hover animations that would be made trivial with corner-shape
```css
button{
corners: angle 11px 0;
transition: corners .25s;
}
button:hover{
corners: angle 0 0;
}
```
https://www.xbox.com/en-US

- horizontal rule kinda thing
- appears to currently use an icon font
- corners: angle 9px 0 / 100% 0;
ANGLE AND NOTCH
------------------------------
https://playvalorant.com/en-us/

- angled corner bottom left, notched corner bottom right
- `border-radius: 0 0 95px 95px / 0 0 6px 54px;`
`corner-shape: none none notch(?) angle;`
--
GitHub Notification of comment by jsnkuhn
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6980#issuecomment-1020198847 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 24 January 2022 15:08:16 UTC