diff --git a/debug/tests/custom-panes.html b/debug/tests/custom-panes.html
new file mode 100644
index 00000000..31313c59
--- /dev/null
+++ b/debug/tests/custom-panes.html
@@ -0,0 +1,70 @@
+
+
+
+ Leaflet debug page
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dist/leaflet.css b/dist/leaflet.css
index c7f8a26d..0d9ccfd8 100644
--- a/dist/leaflet.css
+++ b/dist/leaflet.css
@@ -5,8 +5,8 @@
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
-.leaflet-map-pane svg,
-.leaflet-map-pane canvas,
+.leaflet-pane > svg,
+.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {