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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/css-style-attribute-modifications.html

Issue 2800723002: Ensure we never remove the style attribute when syncing it from CSSOM. (Closed)
Patch Set: Nits Created 3 years, 8 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 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:ecobos@igalia.com">
3 <link rel="help" href="https://drafts.csswg.org/cssom/#the-elementcssinlinestyle -interface">
4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script>
6 <div id="test" style="color: red"></div>
7 <script>
8 test(function() {
9 var el = document.getElementById("test");
10 el.style.color = "";
11 assert_true(el.hasAttribute("style"));
12
13 el.removeAttribute("style");
14 assert_false(el.hasAttribute("style"));
15 }, "Mutating the style declaration doens't remove the style attribute");
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698