forked from LeaVerou/corner-shape
/
index.html
74 lines (61 loc) · 2.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>border-corner-shape preview • Play with border-corner-shape before it’s implemented!</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>
<code><a href="http://dev.w3.org/csswg/css4-background/#border-corner-shape" target="_blank">border-corner-shape</a></code>
<span>preview</span>
</h1>
<svg width="400" height="300" id="simulated">
<path />
<text y="50%" x="50%" dy=".3em">Simulated SVG</text>
</svg>
<div id="fallback">
<svg>
<text y="50%" x="50%" dy=".3em">Fallback</text>
</svg>
</div>
<section id="code">
<div>
<label>
<a href="http://dev.w3.org/csswg/css4-background/#border-corner-shape" target="_blank">border-corner-shape</a>:
<select id="border-corner-shape" tabindex="1">
<option>curve</option>
<option>bevel</option>
<option selected>scoop</option>
<option>notch</option>
</select></label>
<label>
<a href="http://dev.w3.org/csswg/css4-background/#border-corner-shape" target="_blank">border-radius</a>:
<input id="border-radius" value="10% / 30px" tabindex="1" /></label>
<label>
<a href="http://www.w3.org/TR/css3-box/#the-lsquo0">width</a>:
<input id="width" value="400px" pattern="\d*\.?\d+(px|r?em|ex|v(w|h|min|max)|ch|mm|cm|in|pt|pc)" tabindex="1" target="_blank" /></label>
<label>
<a href="http://www.w3.org/TR/css3-box/#the-lsquo0">height</a>:
<input id="height" value="300px" pattern="\d*\.?\d+(px|r?em|ex|v(w|h|min|max)|ch|mm|cm|in|pt|pc)" tabindex="1" target="_blank" /></label>
</div>
</section>
<p><strong>Tip:</strong> Use the keyboard arrow keys to increment/decrement the lengths. Shift for bigger increments, Alt for smaller.</p>
<footer>
<p>
<a id="mark" href="http://lea.verou.me"><img src="http://lea.verou.me/mark.svg" title="Lea Verou was here"></a>
Handmade by <a href="http://lea.verou.me">Lea Verou</a> with ♥
• Have feedback? <a href="http://lists.w3.org/Archives/Public/www-style/">Tell the CSS WG</a>!
</p>
</footer>
<a href="https://twitter.com/share" class="twitter-share-button" data-via="LeaVerou" data-count="vertical">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<a href="https://github.com/LeaVerou/border-corner-shape" class="github-ribbon">
<img src="https://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png" alt="Fork me on GitHub">
</a>
<script>var _gaq = [['_setAccount', 'UA-25106441-4'],['_trackPageview']];</script>
<script src="http://www.google-analytics.com/ga.js" async></script>
<script src="incrementable.js"></script>
<script src="border-corner-shape.js"></script>
</body>
</html>