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

Side by Side Diff: LayoutTests/fast/css/getComputedStyle/getComputedStyle-with-pseudo-element-without-renderer.html

Issue 196143004: Fix usage of pseudo style cache (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: check for cached pseudo style and mark pseudo styles with animations as unique Created 6 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 #element:after { display: none; color: green; }
7 </style>
8 <div id="element"></div>
9
10 <script>
11 test(function() {
12 var computedStyle = getComputedStyle(document.getElementById('element'), ":a fter");
13 assert_equals(computedStyle.color, 'rgb(0, 128, 0)');
14 assert_equals(computedStyle.display, 'none');
15 }, 'getComputedStyle works on pseudo-element without renderer');
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698