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

Unified Diff: LayoutTests/fast/css/first-letter-block-change.html

Issue 14113040: Update the first letter when the first line is changed by adding a new text at its start. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@first-letter-rendering-issue
Patch Set: Add first-letter-block-change.html to TestExpectations for rebaseline Created 7 years, 3 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/css/first-letter-block-change-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/first-letter-block-change.html
diff --git a/LayoutTests/fast/css/first-letter-block-change.html b/LayoutTests/fast/css/first-letter-block-change.html
new file mode 100644
index 0000000000000000000000000000000000000000..45534d4b578c216574f97aea2f7346b016976974
--- /dev/null
+++ b/LayoutTests/fast/css/first-letter-block-change.html
@@ -0,0 +1,32 @@
+<!doctype html>
+<html>
+<head>
+<title>Test for first-letter that is added by DOM scripting</title>
+<style type="text/css">
+p:first-letter {text-decoration: underline; color: #CB000F;}
+</style>
+<script type="text/javascript">
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+window.onload = function() {
+ document.body.offsetTop;
+ addTextNode();
+};
+
+function addTextNode() {
+ var textNode = document.createTextNode('I am adding a new text. ');
+ var para = document.getElementById('test');
+ para.insertBefore(textNode, para.firstChild);
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+</script>
+</head>
+<body>
+<p id="test">
+This is a test paragraph. You can insert extra text at its start;
+the :first-letter styles should be updated to accomodate this new text.
+</p>
+</body>
+</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/css/first-letter-block-change-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698