<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[173522] trunk/Source/WebInspectorUI</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/173522">173522</a></dd>
<dt>Author</dt> <dd>joepeck@webkit.org</dd>
<dt>Date</dt> <dd>2014-09-11 11:35:36 -0700 (Thu, 11 Sep 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Web Inspector: DOM Tree search highlights are not appearing
https://bugs.webkit.org/show_bug.cgi?id=136662
Reviewed by Timothy Hatcher.
When performing a search within the DOMTreeContentView all
search results should immediately highlight. When moving
between search results, emphasize the current with a bouncy.
Remember to remove the highlights when the search is changed
or cleared.
* UserInterface/Views/DOMTreeContentView.js:
(WebInspector.DOMTreeContentView.prototype.performSearch.searchResultsReady):
(WebInspector.DOMTreeContentView.prototype.searchCleared):
Shor or hide highlights when searches change.
(WebInspector.DOMTreeContentView.prototype.revealResult):
(WebInspector.DOMTreeContentView.prototype._revealSearchResult):
Emphasize the highlight when moving to a new current result.
(WebInspector.DOMTreeContentView.prototype._showSearchHighlights):
(WebInspector.DOMTreeContentView.prototype._hideSearchHighlights):
On each affected DOMTreeElement show or hide search highlights.
* UserInterface/Views/DOMTreeElement.js:
(WebInspector.DOMTreeElement.prototype.emphasizeSearchHighlight.animationEnded):
(WebInspector.DOMTreeElement.prototype.emphasizeSearchHighlight):
Give a brief bouncy-highlight when told to emphasize the search highlight.
(WebInspector.DOMTreeElement.prototype.updateTitle):
Remove unused and unnecessary style class on each row.
(WebInspector.DOMTreeElement.prototype._highlightSearchResults):
Update the stale code to use new function names and accessors.
* UserInterface/Views/DOMTreeOutline.css:
(.dom-tree-outline .search-highlight):
Styles for the search highlight match search highlights in the sidebar.
* UserInterface/Views/Main.css:
(.bouncy-highlight):
* UserInterface/Views/TextEditor.css:
Move bouncy-highlight to Main.css.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebInspectorUIChangeLog">trunk/Source/WebInspectorUI/ChangeLog</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsDOMTreeContentViewjs">trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsDOMTreeElementjs">trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsDOMTreeOutlinecss">trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.css</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsMaincss">trunk/Source/WebInspectorUI/UserInterface/Views/Main.css</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsTextEditorcss">trunk/Source/WebInspectorUI/UserInterface/Views/TextEditor.css</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebInspectorUIChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/ChangeLog (173521 => 173522)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/ChangeLog        2014-09-11 18:29:43 UTC (rev 173521)
+++ trunk/Source/WebInspectorUI/ChangeLog        2014-09-11 18:35:36 UTC (rev 173522)
</span><span class="lines">@@ -1,3 +1,49 @@
</span><ins>+2014-09-11 Joseph Pecoraro <pecoraro@apple.com>
+
+ Web Inspector: DOM Tree search highlights are not appearing
+ https://bugs.webkit.org/show_bug.cgi?id=136662
+
+ Reviewed by Timothy Hatcher.
+
+ When performing a search within the DOMTreeContentView all
+ search results should immediately highlight. When moving
+ between search results, emphasize the current with a bouncy.
+ Remember to remove the highlights when the search is changed
+ or cleared.
+
+ * UserInterface/Views/DOMTreeContentView.js:
+ (WebInspector.DOMTreeContentView.prototype.performSearch.searchResultsReady):
+ (WebInspector.DOMTreeContentView.prototype.searchCleared):
+ Shor or hide highlights when searches change.
+
+ (WebInspector.DOMTreeContentView.prototype.revealResult):
+ (WebInspector.DOMTreeContentView.prototype._revealSearchResult):
+ Emphasize the highlight when moving to a new current result.
+
+ (WebInspector.DOMTreeContentView.prototype._showSearchHighlights):
+ (WebInspector.DOMTreeContentView.prototype._hideSearchHighlights):
+ On each affected DOMTreeElement show or hide search highlights.
+
+ * UserInterface/Views/DOMTreeElement.js:
+ (WebInspector.DOMTreeElement.prototype.emphasizeSearchHighlight.animationEnded):
+ (WebInspector.DOMTreeElement.prototype.emphasizeSearchHighlight):
+ Give a brief bouncy-highlight when told to emphasize the search highlight.
+
+ (WebInspector.DOMTreeElement.prototype.updateTitle):
+ Remove unused and unnecessary style class on each row.
+
+ (WebInspector.DOMTreeElement.prototype._highlightSearchResults):
+ Update the stale code to use new function names and accessors.
+
+ * UserInterface/Views/DOMTreeOutline.css:
+ (.dom-tree-outline .search-highlight):
+ Styles for the search highlight match search highlights in the sidebar.
+
+ * UserInterface/Views/Main.css:
+ (.bouncy-highlight):
+ * UserInterface/Views/TextEditor.css:
+ Move bouncy-highlight to Main.css.
+
</ins><span class="cx"> 2014-09-10 Saam Barati <saambarati1@gmail.com>
</span><span class="cx">
</span><span class="cx"> Web Inspector: Modify the type profiler runtime protocol to transfer some computation into the WebInspector
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsDOMTreeContentViewjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js (173521 => 173522)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js        2014-09-11 18:29:43 UTC (rev 173521)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js        2014-09-11 18:35:36 UTC (rev 173522)
</span><span class="lines">@@ -200,8 +200,10 @@
</span><span class="cx"> if (this._searchQuery === query)
</span><span class="cx"> return;
</span><span class="cx">
</span><del>- if (this._searchIdentifier)
</del><ins>+ if (this._searchIdentifier) {
</ins><span class="cx"> DOMAgent.discardSearchResults(this._searchIdentifier);
</span><ins>+ this._hideSearchHighlights();
+ }
</ins><span class="cx">
</span><span class="cx"> this._searchQuery = query;
</span><span class="cx"> this._searchIdentifier = null;
</span><span class="lines">@@ -218,6 +220,8 @@
</span><span class="cx">
</span><span class="cx"> this.dispatchEventToListeners(WebInspector.ContentView.Event.NumberOfSearchResultsDidChange);
</span><span class="cx">
</span><ins>+ this._showSearchHighlights();
+
</ins><span class="cx"> if (this._automaticallyRevealFirstSearchResult)
</span><span class="cx"> this.revealNextSearchResult();
</span><span class="cx"> }
</span><span class="lines">@@ -239,8 +243,10 @@
</span><span class="cx">
</span><span class="cx"> searchCleared: function()
</span><span class="cx"> {
</span><del>- if (this._searchIdentifier)
</del><ins>+ if (this._searchIdentifier) {
</ins><span class="cx"> DOMAgent.discardSearchResults(this._searchIdentifier);
</span><ins>+ this._hideSearchHighlights();
+ }
</ins><span class="cx">
</span><span class="cx"> this._searchQuery = null;
</span><span class="cx"> this._searchIdentifier = null;
</span><span class="lines">@@ -299,6 +305,10 @@
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> this._domTreeOutline.selectDOMNode(domNode, changeFocus);
</span><ins>+
+ var selectedTreeElement = this._domTreeOutline.selectedTreeElement;
+ if (selectedTreeElement)
+ selectedTreeElement.emphasizeSearchHighlight();
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> DOMAgent.getSearchResults(this._searchIdentifier, index, index + 1, revealResult.bind(this));
</span><span class="lines">@@ -449,5 +459,52 @@
</span><span class="cx"> _toggleShowsShadowDOMSetting: function(event)
</span><span class="cx"> {
</span><span class="cx"> WebInspector.showShadowDOMSetting.value = !WebInspector.showShadowDOMSetting.value;
</span><ins>+ },
+
+ _showSearchHighlights: function()
+ {
+ console.assert(this._searchIdentifier);
+
+ this._searchResultNodes = [];
+
+ var searchIdentifier = this._searchIdentifier;
+
+ DOMAgent.getSearchResults(this._searchIdentifier, 0, this._numberOfSearchResults, function(error, nodeIdentifiers) {
+ if (error)
+ return;
+
+ if (this._searchIdentifier !== searchIdentifier)
+ return;
+
+ console.assert(nodeIdentifiers.length === this._numberOfSearchResults);
+
+ for (var i = 0; i < nodeIdentifiers.length; ++i) {
+ var domNode = WebInspector.domTreeManager.nodeForId(nodeIdentifiers[i]);
+ console.assert(domNode);
+ if (!domNode)
+ continue;
+
+ this._searchResultNodes.push(domNode);
+
+ var treeElement = this._domTreeOutline.findTreeElement(domNode);
+ console.assert(treeElement);
+ if (treeElement)
+ treeElement.highlightSearchResults(this._searchQuery);
+ }
+ }.bind(this));
+ },
+
+ _hideSearchHighlights: function()
+ {
+ if (!this._searchResultNodes)
+ return;
+
+ for (var domNode of this._searchResultNodes) {
+ var treeElement = this._domTreeOutline.findTreeElement(domNode);
+ if (treeElement)
+ treeElement.hideSearchHighlights();
+ }
+
+ delete this._searchResultNodes;
</ins><span class="cx"> }
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsDOMTreeElementjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js (173521 => 173522)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js        2014-09-11 18:29:43 UTC (rev 173521)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js        2014-09-11 18:35:36 UTC (rev 173522)
</span><span class="lines">@@ -58,6 +58,9 @@
</span><span class="cx"> "html", "head", "body"
</span><span class="cx"> ].keySet();
</span><span class="cx">
</span><ins>+WebInspector.DOMTreeElement.SearchHighlightStyleClassName = "search-highlight";
+WebInspector.DOMTreeElement.BouncyHighlightStyleClassName = "bouncy-highlight";
+
</ins><span class="cx"> WebInspector.DOMTreeElement.prototype = {
</span><span class="cx"> isCloseTag: function()
</span><span class="cx"> {
</span><span class="lines">@@ -82,6 +85,39 @@
</span><span class="cx"> this._updateSearchHighlight(false);
</span><span class="cx"> },
</span><span class="cx">
</span><ins>+ emphasizeSearchHighlight: function()
+ {
+ var highlightElement = this.title.querySelector("." + WebInspector.DOMTreeElement.SearchHighlightStyleClassName);
+ console.assert(highlightElement);
+ if (!highlightElement)
+ return;
+
+ if (this._bouncyHighlightElement)
+ this._bouncyHighlightElement.remove();
+
+ this._bouncyHighlightElement = document.createElement("div");
+ this._bouncyHighlightElement.className = WebInspector.DOMTreeElement.BouncyHighlightStyleClassName;
+ this._bouncyHighlightElement.textContent = highlightElement.textContent;
+
+ // Position and show the bouncy highlight adjusting the coordinates to be inside the TreeOutline's space.
+ var highlightElementRect = highlightElement.getBoundingClientRect();
+ var treeOutlineRect = this.treeOutline.element.getBoundingClientRect();
+ this._bouncyHighlightElement.style.top = (highlightElementRect.top - treeOutlineRect.top) + "px";
+ this._bouncyHighlightElement.style.left = (highlightElementRect.left - treeOutlineRect.left) + "px";
+ this.title.appendChild(this._bouncyHighlightElement);
+
+ function animationEnded()
+ {
+ if (!this._bouncyHighlightElement)
+ return;
+
+ this._bouncyHighlightElement.remove();
+ delete this._bouncyHighlightElement;
+ }
+
+ this._bouncyHighlightElement.addEventListener("webkitAnimationEnd", animationEnded.bind(this));
+ },
+
</ins><span class="cx"> _updateSearchHighlight: function(show)
</span><span class="cx"> {
</span><span class="cx"> if (!this._highlightResult)
</span><span class="lines">@@ -986,10 +1022,8 @@
</span><span class="cx"> if (this._highlightResult)
</span><span class="cx"> this._updateSearchHighlight(false);
</span><span class="cx"> } else {
</span><del>- var highlightElement = document.createElement("span");
- highlightElement.className = "highlight";
- highlightElement.appendChild(this._nodeTitleInfo().titleDOM);
- this.title = highlightElement;
</del><ins>+ this.title = document.createElement("span");
+ this.title.appendChild(this._nodeTitleInfo().titleDOM);
</ins><span class="cx"> delete this._highlightResult;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -1270,22 +1304,23 @@
</span><span class="cx">
</span><span class="cx"> _highlightSearchResults: function()
</span><span class="cx"> {
</span><del>- if (!this._searchQuery || !this._searchHighlightsVisible)
</del><ins>+ if (!this.title || !this._searchQuery || !this._searchHighlightsVisible)
</ins><span class="cx"> return;
</span><ins>+
</ins><span class="cx"> if (this._highlightResult) {
</span><span class="cx"> this._updateSearchHighlight(true);
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- var text = this.listItemElement.textContent;
- var regexObject = createPlainTextSearchRegex(this._searchQuery, "gi");
</del><ins>+ var text = this.title.textContent;
+ var searchRegex = new RegExp(this._searchQuery.escapeForRegExp(), "gi");
</ins><span class="cx">
</span><span class="cx"> var offset = 0;
</span><del>- var match = regexObject.exec(text);
</del><ins>+ var match = searchRegex.exec(text);
</ins><span class="cx"> var matchRanges = [];
</span><span class="cx"> while (match) {
</span><span class="cx"> matchRanges.push({ offset: match.index, length: match[0].length });
</span><del>- match = regexObject.exec(text);
</del><ins>+ match = searchRegex.exec(text);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // Fall back for XPath, etc. matches.
</span><span class="lines">@@ -1293,7 +1328,7 @@
</span><span class="cx"> matchRanges.push({ offset: 0, length: text.length });
</span><span class="cx">
</span><span class="cx"> this._highlightResult = [];
</span><del>- highlightSearchResults(this.listItemElement, matchRanges, this._highlightResult);
</del><ins>+ WebInspector.highlightRangesWithStyleClass(this.title, matchRanges, WebInspector.DOMTreeElement.SearchHighlightStyleClassName, this._highlightResult);
</ins><span class="cx"> },
</span><span class="cx">
</span><span class="cx"> handleEvent: function(event)
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsDOMTreeOutlinecss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.css (173521 => 173522)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.css        2014-09-11 18:29:43 UTC (rev 173521)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.css        2014-09-11 18:35:36 UTC (rev 173522)
</span><span class="lines">@@ -158,3 +158,9 @@
</span><span class="cx"> min-width: 100%;
</span><span class="cx"> white-space: pre-wrap;
</span><span class="cx"> }
</span><ins>+
+.dom-tree-outline .search-highlight {
+ color: black;
+ background-color: rgba(235, 215, 38, 0.2);
+ border-bottom: 1px solid rgb(237, 202, 71);
+}
</ins></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsMaincss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/Main.css (173521 => 173522)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/Main.css        2014-09-11 18:29:43 UTC (rev 173521)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/Main.css        2014-09-11 18:35:36 UTC (rev 173522)
</span><span class="lines">@@ -290,3 +290,50 @@
</span><span class="cx"> .value-with-clarification .clarification {
</span><span class="cx"> color: #666;
</span><span class="cx"> }
</span><ins>+
+.bouncy-highlight {
+ position: absolute;
+ z-index: 100;
+
+ box-shadow: inset rgb(250, 232, 140) 0 -1px 0, rgba(211, 197, 96, 1) 0 1px 1px, rgba(0, 0, 0, 0.33) 0 1px 2px 1px;
+ text-shadow: white 0 0 2px;
+
+ background: linear-gradient(to bottom, rgb(250, 237, 108), rgb(242, 220, 100));
+ border-radius: 7px;
+
+ padding: 2px 4px;
+ margin-top: -2px;
+ margin-left: -4px;
+
+ -webkit-user-select: none;
+ pointer-events: none;
+
+ -webkit-animation-name: bouncy-highlight-animation;
+ -webkit-animation-duration: 750ms;
+ -webkit-animation-timing-function: ease-in-out;
+
+ opacity: 0;
+}
+
+@-webkit-keyframes bouncy-highlight-animation {
+ 0% {
+ -webkit-transform: scale(1);
+ opacity: 1;
+ }
+
+ 12.5% {
+ -webkit-transform: scale(1.25);
+ }
+
+ 25% {
+ -webkit-transform: scale(1);
+ }
+
+ 62.5% {
+ opacity: 1;
+ }
+
+ 100% {
+ opacity: 0;
+ }
+}
</ins></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsTextEditorcss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/TextEditor.css (173521 => 173522)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/TextEditor.css        2014-09-11 18:29:43 UTC (rev 173521)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/TextEditor.css        2014-09-11 18:35:36 UTC (rev 173522)
</span><span class="lines">@@ -102,53 +102,6 @@
</span><span class="cx"> background-color: rgb(217, 234, 208) !important;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-.text-editor .bouncy-highlight {
- position: absolute;
- z-index: 100;
-
- box-shadow: inset rgb(250, 232, 140) 0 -1px 0, rgba(211, 197, 96, 1) 0 1px 1px, rgba(0, 0, 0, 0.33) 0 1px 2px 1px;
- text-shadow: white 0 0 2px;
-
- background: linear-gradient(to bottom, rgb(250, 237, 108), rgb(242, 220, 100));
- border-radius: 7px;
-
- padding: 2px 4px;
- margin-top: -2px;
- margin-left: -4px;
-
- -webkit-user-select: none;
- pointer-events: none;
-
- -webkit-animation-name: text-editor-bouncy;
- -webkit-animation-duration: 750ms;
- -webkit-animation-timing-function: ease-in-out;
-
- opacity: 0;
-}
-
-@-webkit-keyframes text-editor-bouncy {
- 0% {
- -webkit-transform: scale(1);
- opacity: 1;
- }
-
- 12.5% {
- -webkit-transform: scale(1.25);
- }
-
- 25% {
- -webkit-transform: scale(1);
- }
-
- 62.5% {
- opacity: 1;
- }
-
- 100% {
- opacity: 0;
- }
-}
-
</del><span class="cx"> .text-editor > .CodeMirror .highlighted {
</span><span class="cx"> -webkit-animation: "text-editor-highlight-fadeout" 2s;
</span><span class="cx"> }
</span></span></pre>
</div>
</div>
</body>
</html>