Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: LayoutTests/fast/css/counters/counter-before-content-not-incremented.html

Issue 225303002: Let Selection.collapse remember a raw Position instead of a canonicalized one. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix setSelectedRange arguments Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/counters/counter-before-content-not-incremented.html
diff --git a/LayoutTests/fast/css/counters/counter-before-content-not-incremented.html b/LayoutTests/fast/css/counters/counter-before-content-not-incremented.html
index b2e5be7c54b493ac243a523fba8d861908f5c68f..a100c3403c13f8ed086adaf7fd1c67effa8fbd62 100644
--- a/LayoutTests/fast/css/counters/counter-before-content-not-incremented.html
+++ b/LayoutTests/fast/css/counters/counter-before-content-not-incremented.html
@@ -26,7 +26,7 @@
// We need to use the selection or we cannot reproduce this bug!
var selection = window.getSelection();
var container = document.getElementById("container");
- selection.collapse(container, 0);
+ selection.collapse(container.firstChild, 0);
if (selection.rangeCount > 0) {
var newElement = document.createElement('div');
newElement.id = 'div' + i;

Powered by Google App Engine
This is Rietveld 408576698