Skip to content

Commit d97ee77

Browse files
committed
[css-ui-4] Update code in examples
Drop old -webkit- prefixes used in examples as they are no longer needed for recent browsers, and as they trip various validators.
1 parent 9724f9b commit d97ee77

1 file changed

Lines changed: 6 additions & 16 deletions

File tree

css-ui-4/Overview.bs

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,12 +1574,11 @@ for details.
15741574

15751575
The simulated rendering below illustrates how this should look.
15761576
<style>
1577-
@-webkit-keyframes caret-alternate-ref { 50% { border-color: red; } }
15781577
@keyframes caret-alternate-ref { 50% { border-color: red; } }
15791578
</style>
15801579
<div style="border:inset; background: white; width: 10em;">
15811580
Text area
1582-
with color-alternating caret<span style="border-right: 2px solid blue; animation: caret-alternate-ref 2s step-end infinite;-webkit-animation: caret-alternate-ref 2s step-end infinite;"></span>
1581+
with color-alternating caret<span style="border-right: 2px solid blue; animation: caret-alternate-ref 2s step-end infinite;"></span>
15831582
</div>
15841583

15851584
Focus the element below to see how your browser renders it.
@@ -1683,10 +1682,7 @@ The stacking position of the caret is left undefined, within the following const
16831682
the insertion point is between the letters u and m.
16841683

16851684
<style>
1686-
@-webkit-keyframes caret-bar-ref { 50% { outline-color: transparent; } }
1687-
@-webkit-keyframes caret-block-ref { 50% { background: transparent; } }
1688-
@-webkit-keyframes caret-underscore-ref { 50% { border-color: transparent; } }
1689-
@keyframes caret-bar-ref { 50% { outline-color: transparent; } }
1685+
@keyframes caret-bar-ref { 50% { border-color: transparent; } }
16901686
@keyframes caret-block-ref { 50% { background: transparent; } }
16911687
@keyframes caret-underscore-ref { 50% { border-color: transparent; } }
16921688
#caret-shape-example {
@@ -1709,17 +1705,17 @@ The stacking position of the caret is left undefined, within the following const
17091705

17101706
<tr>
17111707
<td>''bar''
1712-
<td>Lorem ipsu<span style="outline: 1px solid black;animation: caret-bar-ref 2s step-end infinite;-webkit-animation: caret-bar-ref 2s step-end infinite;">&#8203;</span>m
1708+
<td>Lorem ipsu<span style="border: 1px solid black; margin: 0 -1px; animation: caret-bar-ref 2s step-end infinite;">&#8203;</span>m
17131709
<td style contentEditable=true style="caret-shape: bar">Lorem Ipsum
17141710

17151711
<tr>
17161712
<td>''caret-shape/block''
1717-
<td>Lorem ipsu<span style="background: #bbb; -webkit-animation: caret-block-ref 2s step-end infinite;animation: caret-block-ref 2s step-end infinite;">m</span>
1713+
<td>Lorem ipsu<span style="background: #bbb; animation: caret-block-ref 2s step-end infinite;">m</span>
17181714
<td contentEditable=true style="caret-shape: block">Lorem Ipsum
17191715

17201716
<tr>
17211717
<td>''underscore''
1722-
<td>Lorem ispu<span style="border-bottom: 2px solid black; -webkit-animation: caret-underscore-ref 2s step-end infinite; animation: caret-underscore-ref 2s step-end infinite;">m</span>
1718+
<td>Lorem ispu<span style="border-bottom: 2px solid black; animation: caret-underscore-ref 2s step-end infinite;">m</span>
17231719
<td contentEditable=true style="caret-shape: underscore">Lorem Ipsum
17241720
</table>
17251721
</div>
@@ -1741,13 +1737,12 @@ The stacking position of the caret is left undefined, within the following const
17411737

17421738
The simulated rendering below illustrates how this should look.
17431739
<style>
1744-
@-webkit-keyframes terminal-caret-ref { 50% { border-color: transparent; } }
17451740
@keyframes terminal-caret-ref { 50% { border-color: transparent; } }
17461741
</style>
17471742
<pre style="background: black; color: white; font-family: monospace; padding: 1ex">
17481743
user@host:css-ui-4 $ ls -a
17491744
. .. Overview.bs Overview.html
1750-
user@host:css-ui-4 $ <span style="border-bottom: 2px solid white;animation: terminal-caret-ref 2s step-end infinite;-webkit-animation: terminal-caret-ref 2s step-end infinite;">&nbsp;</span>
1745+
user@host:css-ui-4 $ <span style="border-bottom: 2px solid white;animation: terminal-caret-ref 2s step-end infinite;">&nbsp;</span>
17511746
</pre>
17521747

17531748
Focus the element below to see how your browser renders it.
@@ -1812,17 +1807,12 @@ Omitted values are set to their initial values.
18121807
white-space: pre;
18131808
caret: block 0s;
18141809
animation: caret-old-ref 2s infinite;
1815-
-webkit-animation: caret-old-ref 2s infinite;
18161810

18171811
}
18181812
@keyframes caret-old-ref {
18191813
from, 50% { background-color: green; }
18201814
75%, to { background-color: transparent; }
18211815
}
1822-
@-webkit-keyframes caret-old-ref {
1823-
from, 50% { background-color: green; }
1824-
75%, to { background-color: transparent; }
1825-
}
18261816
</style>
18271817
<div class="old-screen" style="height: 100px">&gt; <span>&nbsp;</span></div>
18281818

0 commit comments

Comments
 (0)