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

Side by Side Diff: LayoutTests/fast/css/invalidation/content-attr-style-addition.html

Issue 772103002: Collect content:attr(...)-features in RuleFeatureSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added TCs. Created 6 years 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 <head>
rune 2014/12/10 13:03:54 Skip <head>
3 <style>
4 #target::before { content: "FAIL (string) "; }
5 </style>
6 </head>
7 <div id="target" my-attr="FAIL (attribute) ">test</div>
8 <script>
9 addEventListener("load", function(){
rune 2014/12/10 13:03:54 "onload = function(){" is shorter, but no big deal
rune 2014/12/10 13:03:55 "onload = function(){" is shorter, but no big deal
10 var s = document.createElement("style");
11 s.textContent = "#target::before { content: attr(my-attr); }"
12 var head = document.querySelector("head");
13 head.appendChild(s);
14 target.offsetTop;
15 target.setAttribute("my-attr", "PASS ");
16 });
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698