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

Unified Diff: LayoutTests/fast/css/readwrite-contenteditable.html

Issue 148223004: Improve support for :read-only and :read-write pseudoclasses. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix handling of ancestral changes in contenteditable attribute. Created 6 years, 11 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/readwrite-contenteditable.html
diff --git a/LayoutTests/fast/css/readwrite-contenteditable.html b/LayoutTests/fast/css/readwrite-contenteditable.html
new file mode 100644
index 0000000000000000000000000000000000000000..7546736905acfa7c463243200ef39ca1479ffc2d
--- /dev/null
+++ b/LayoutTests/fast/css/readwrite-contenteditable.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<html>
+ <head>
esprehn 2014/02/18 07:18:41 Same.
+ <style>
+ div:read-only, span:read-only { background-color: #ccf; }
+ div:read-write, span:read-write { background-color: #fcc; }
+ </style>
+ </head>
+ <body>
+ <div>Read-only</div>
+ <div>Read-only <span>Read-only</span></div>
+ <div>Read-only <span contenteditable="true">Read-write</span></div>
+ <div contenteditable="true">Read-write <span>Read-write</span></div>
+ <div contenteditable="true">Read-write <span contenteditable="false">Read-only</span></div>
+ <div contenteditable="true">Read-write <span contenteditable="false">Read-only <span>Read-only</span</span></div>
+
+ <div>Read-only <span contenteditable>Read-write</span></div>
+ <div>Read-only <span contenteditable>Read-write <span contenteditable="inherit">Read-write</span></span></div>
+ <div contenteditable>Read-write <span contenteditable="false">Read-only <span contenteditable="inherit">Read-only</span></span></div>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698