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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-content.html

Issue 1812763002: Pseudo and non pseudo elements should return correct computed content value (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4
5 <style>
6 #target1::before {
7 content: 'test';
8 }
9 #target1::after {
10 content: normal;
11 }
12 #target2::after {
13 content: 'test';
14 }
15 #target2::before {
16 content: normal;
17 }
18 </style>
19
20 <div id="target1"></div>
21 <div id="target2"></div>
22
23 <script>
24 test(function() {
25 assert_equals(getComputedStyle(target1).content, 'normal');
26 assert_equals(getComputedStyle(target1, '::before').content, '"test"');
27 assert_equals(getComputedStyle(target1, '::after').content, 'none');
28 assert_equals(getComputedStyle(target2).content, 'normal');
29 assert_equals(getComputedStyle(target2, '::before').content, 'none');
30 assert_equals(getComputedStyle(target2, '::after').content, '"test"');
31 }, 'Test that content computes to "normal" for elements (not pseudo elements) and to "none" if the specified value of pseudo elements is "normal"');
32 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698