diff --git a/DEPS b/DEPS
index bd0015b..a49d507 100644
--- a/DEPS
+++ b/DEPS
@@ -40,11 +40,11 @@
   # Three lines of non-changing comments so that
   # the commit queue can handle CLs rolling Skia
   # and whatever else without interference from each other.
-  'skia_revision': 'f449ded72acf90c1d68a9492bc627a16e709591d',
+  'skia_revision': '5143f2f3763bb1ccbcb893488775e6ed7221a7bf',
   # Three lines of non-changing comments so that
   # the commit queue can handle CLs rolling V8
   # and whatever else without interference from each other.
-  'v8_revision': '3a15e30f7020cf2025aed964f458fa95003d2705',
+  'v8_revision': '4a77d6405aaf14b9e58afbb44902cb3f59aa6cda',
   # Three lines of non-changing comments so that
   # the commit queue can handle CLs rolling swarming_client
   # and whatever else without interference from each other.
@@ -64,7 +64,7 @@
   # Three lines of non-changing comments so that
   # the commit queue can handle CLs rolling PDFium
   # and whatever else without interference from each other.
-  'pdfium_revision': 'b83d870b007f25b18e6b7a4ce2a417420d4dcb89',
+  'pdfium_revision': 'c6fd58d69bd8895137364c4a1b0bcd08a2ce8c46',
   # Three lines of non-changing comments so that
   # the commit queue can handle CLs rolling openmax_dl
   # and whatever else without interference from each other.
@@ -96,7 +96,7 @@
   # Three lines of non-changing comments so that
   # the commit queue can handle CLs rolling catapult
   # and whatever else without interference from each other.
-  'catapult_revision': '36e1cdaf2d9979afc80aaeb9269831e067fff68f',
+  'catapult_revision': '1c02d65fcbf3f6960caf97fb3e137106f5d4a651',
   # Three lines of non-changing comments so that
   # the commit queue can handle CLs rolling libFuzzer
   # and whatever else without interference from each other.
@@ -235,7 +235,7 @@
     Var('chromium_git') + '/native_client/src/third_party/scons-2.0.1.git' + '@' + '1c1550e17fc26355d08627fbdec13d8291227067',
 
   'src/third_party/webrtc':
-    Var('chromium_git') + '/external/webrtc/trunk/webrtc.git' + '@' + '5c4d199d7c0358a9b8f35707e0f6de983d04232e', # commit position 18506
+    Var('chromium_git') + '/external/webrtc/trunk/webrtc.git' + '@' + 'f75b6fa09dc229d1fac9c050c56c0943a5ff01ce', # commit position 18538
 
   'src/third_party/openmax_dl':
     Var('chromium_git') + '/external/webrtc/deps/third_party/openmax.git' + '@' +  Var('openmax_dl_revision'),
diff --git a/base/BUILD.gn b/base/BUILD.gn
index 7735309..131de3d 100644
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -966,6 +966,7 @@
     "trace_event/memory_allocator_dump_guid.h",
     "trace_event/memory_dump_manager.cc",
     "trace_event/memory_dump_manager.h",
+    "trace_event/memory_dump_manager_test_utils.h",
     "trace_event/memory_dump_provider.h",
     "trace_event/memory_dump_provider_info.cc",
     "trace_event/memory_dump_provider_info.h",
diff --git a/base/test/android/javatests/src/org/chromium/base/test/util/ScreenShooter.java b/base/test/android/javatests/src/org/chromium/base/test/util/ScreenShooter.java
index 24d6777..6590197 100644
--- a/base/test/android/javatests/src/org/chromium/base/test/util/ScreenShooter.java
+++ b/base/test/android/javatests/src/org/chromium/base/test/util/ScreenShooter.java
@@ -17,42 +17,53 @@
 import org.junit.runner.Description;
 
 import java.io.File;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
 import java.util.Locale;
 
 /**
- * Rule for taking screen shots within tests. Screenshots are saved as UiCapture/<test class>/<test
- * name>/<shot name>.png A simple example:
+ * Rule for taking screen shots within tests. Screenshots are saved as
+ * UiCapture/<test class directory>/<test directory>/<shot name>.png.
+ *
+ * <test class directory> and <test directory> can both the set by the @ScreenShooter.Directory
+ * annotation. <test class directory> defaults to nothing (i.e. no directory created at this
+ * level), and <test directory> defaults to the name of the individual test.
+ *
+ * A simple example:
  *
  * <pre>
  * {
- *     &#64;code
+ * @RunWith(ChromeJUnit4ClassRunner.class)
+ * @CommandLineFlags.Add({ChromeSwitches.DISABLE_FIRST_RUN_EXPERIENCE})
+ * @Restriction(RESTRICTION_TYPE_PHONE) // Tab switcher button only exists on phones.
+ * @ScreenShooter.Directory("Example")
+ * public class ExampleUiCaptureTest {
+ *     @Rule
+ *     public ChromeActivityTestRule<ChromeTabbedActivity> mActivityTestRule =
+ *             new ChromeActivityTestRule<>(ChromeTabbedActivity.class);
  *
- *     &#64;RunWith(ChromeJUnit4ClassRunner.class)
- *     &#64;CommandLineFlags.Add({ChromeSwitches.DISABLE_FIRST_RUN_EXPERIENCE})
- *     &#64;Restriction(RESTRICTION_TYPE_PHONE) // Tab switcher button only exists on phones.
- *     public class ExampleUiCaptureTest {
- *         &#64;Rule
- *         public ChromeActivityTestRule<ChromeTabbedActivity> mActivityTestRule =
- *                 new ChromeActivityTestRule<>(ChromeTabbedActivity.class);
+ *     @Rule
+ *     public ScreenShooter mScreenShooter = new ScreenShooter();
  *
- *         &#64;Rule
- *         public ScreenShooter mScreenShooter = new ScreenShooter();
- *
- *         &#64;Before
- *         public void setUp() throws InterruptedException {
- *             mActivityTestRule.startMainActivityFromLauncher();
- *         }
- *
- *         // Capture the New Tab Page and the tab switcher.
- *         &#64;Test
- *         &#64;SmallTest
- *         public void testCaptureTabSwitcher() throws IOException, InterruptedException {
- *             mScreenShooter.shoot("NTP");
- *             Espresso.onView(ViewMatchers.withId(R.id.tab_switcher_button))
- *                     .perform(ViewActions.click());
- *             mScreenShooter.shoot("Tab_switcher");
- *         }
+ *     @Before
+ *     public void setUp() throws InterruptedException {
+ *         mActivityTestRule.startMainActivityFromLauncher();
  *     }
+ *
+ *     // Capture the New Tab Page and the tab switcher.
+ *     @Test
+ *     @SmallTest
+ *     @Feature({"UiCatalogue"})
+ *     @ScreenShooter.Directory("TabSwitcher")
+ *     public void testCaptureTabSwitcher() throws IOException, InterruptedException {
+ *         mScreenShooter.shoot("NTP");
+ *         Espresso.onView(ViewMatchers.withId(R.id.tab_switcher_button)).
+ *                      perform(ViewActions.click());
+ *         mScreenShooter.shoot("Tab switcher");
+ *     }
+ * }
  * }
  * </pre>
  */
@@ -65,6 +76,12 @@
     private final String mModel;
     private File mDir;
 
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ElementType.TYPE, ElementType.METHOD})
+    public @interface Directory {
+        String value();
+    }
+
     public ScreenShooter() {
         mInstrumentation = InstrumentationRegistry.getInstrumentation();
         mDevice = UiDevice.getInstance(mInstrumentation);
@@ -74,9 +91,17 @@
 
     @Override
     protected void starting(Description d) {
-        File classDir = new File(mBaseDir, d.getClassName());
-        mDir = new File(classDir, d.getMethodName());
-        assertTrue("Create screenshot directory", mDir.mkdirs());
+        mDir = new File(mBaseDir);
+        Class<?> testClass = d.getTestClass();
+        Directory classDirectoryAnnotation = testClass.getAnnotation(Directory.class);
+        String classDirName = classDirectoryAnnotation == null ? ""
+                : classDirectoryAnnotation.value();
+        if (!classDirName.isEmpty()) mDir = new File(mBaseDir, classDirName);
+        Directory methodDirectoryAnnotation = d.getAnnotation(Directory.class);
+        String testMethodDir = methodDirectoryAnnotation == null ? d.getMethodName()
+                : methodDirectoryAnnotation.value();
+        if (!testMethodDir.isEmpty()) mDir = new File(mDir, testMethodDir);
+        if (!mDir.exists()) assertTrue("Create screenshot directory", mDir.mkdirs());
     }
 
     /**
@@ -96,8 +121,8 @@
         // Emulator model names are "SDK_built_for_x86" or similar, so use something more useful
         if (model.toUpperCase(Locale.ROOT).contains("SDK")) {
             // Make sure we have a consistent name whatever the orientation.
-            if (InstrumentationRegistry.getContext().getResources().getConfiguration().orientation
-                    == Configuration.ORIENTATION_PORTRAIT) {
+            if (InstrumentationRegistry.getContext().getResources()
+                    .getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
                 model = "Emulator_" + mDevice.getDisplayHeight() + '_' + mDevice.getDisplayWidth();
             } else {
                 model = "Emulator_" + mDevice.getDisplayWidth() + '_' + mDevice.getDisplayHeight();
diff --git a/base/trace_event/memory_dump_manager.cc b/base/trace_event/memory_dump_manager.cc
index 59e5629b..1ce86367 100644
--- a/base/trace_event/memory_dump_manager.cc
+++ b/base/trace_event/memory_dump_manager.cc
@@ -131,9 +131,6 @@
     TRACE_DISABLED_BY_DEFAULT("memory-infra");
 
 // static
-const char* const MemoryDumpManager::kLogPrefix = "Memory-infra dump";
-
-// static
 const int MemoryDumpManager::kMaxConsecutiveFailuresCount = 3;
 
 // static
@@ -159,6 +156,7 @@
 // static
 std::unique_ptr<MemoryDumpManager>
 MemoryDumpManager::CreateInstanceForTesting() {
+  DCHECK(!g_instance_for_testing);
   std::unique_ptr<MemoryDumpManager> instance(new MemoryDumpManager());
   g_instance_for_testing = instance.get();
   return instance;
@@ -428,10 +426,8 @@
     MemoryDumpType dump_type,
     MemoryDumpLevelOfDetail level_of_detail,
     const GlobalMemoryDumpCallback& callback) {
-  // If |request_dump_function_| is null MDM hasn't been initialized yet.
-  if (request_dump_function_.is_null()) {
-    VLOG(1) << kLogPrefix << " failed because"
-            << " memory dump manager is not enabled.";
+  if (!is_initialized()) {
+    VLOG(1) << "RequestGlobalDump() FAIL: MemoryDumpManager is not initialized";
     if (!callback.is_null())
       callback.Run(0u /* guid */, false /* success */);
     return;
@@ -468,7 +464,8 @@
 void MemoryDumpManager::RequestGlobalDump(
     MemoryDumpType dump_type,
     MemoryDumpLevelOfDetail level_of_detail) {
-  RequestGlobalDump(dump_type, level_of_detail, GlobalMemoryDumpCallback());
+  auto noop_callback = [](uint64_t dump_guid, bool success) {};
+  RequestGlobalDump(dump_type, level_of_detail, Bind(noop_callback));
 }
 
 bool MemoryDumpManager::IsDumpProviderRegisteredForTesting(
@@ -499,6 +496,15 @@
 void MemoryDumpManager::CreateProcessDump(
     const MemoryDumpRequestArgs& args,
     const ProcessMemoryDumpCallback& callback) {
+  if (!is_initialized()) {
+    VLOG(1) << "CreateProcessDump() FAIL: MemoryDumpManager is not initialized";
+    if (!callback.is_null()) {
+      callback.Run(args.dump_guid, false /* success */,
+                   Optional<MemoryDumpCallbackResult>());
+    }
+    return;
+  }
+
   char guid_str[20];
   sprintf(guid_str, "0x%" PRIx64, args.dump_guid);
   TRACE_EVENT_NESTABLE_ASYNC_BEGIN1(kTraceCategory, "ProcessMemoryDump",
@@ -732,7 +738,7 @@
 
   // The results struct to fill.
   // TODO(hjd): Transitional until we send the full PMD. See crbug.com/704203
-  base::Optional<MemoryDumpCallbackResult> result;
+  Optional<MemoryDumpCallbackResult> result;
 
   bool dump_successful = pmd_async_state->dump_successful;
 
@@ -862,7 +868,7 @@
     }
   }
 
-  // Only coordinator process triggers periodic global memory dumps.
+  // Only coordinator process triggers periodic memory dumps.
   if (is_coordinator_ && !periodic_config.triggers.empty()) {
     MemoryDumpScheduler::GetInstance()->Start(periodic_config,
                                               GetOrCreateBgTaskRunnerLocked());
diff --git a/base/trace_event/memory_dump_manager.h b/base/trace_event/memory_dump_manager.h
index a6c6370..0e2af24 100644
--- a/base/trace_event/memory_dump_manager.h
+++ b/base/trace_event/memory_dump_manager.h
@@ -46,7 +46,6 @@
                              const GlobalMemoryDumpCallback& callback)>;
 
   static const char* const kTraceCategory;
-  static const char* const kLogPrefix;
 
   // This value is returned as the tracing id of the child processes by
   // GetTracingProcessId() when tracing is not enabled.
@@ -113,13 +112,12 @@
   // to notify about the completion of the global dump (i.e. after all the
   // processes have dumped) and its success (true iff all the dumps were
   // successful).
-  void RequestGlobalDump(MemoryDumpType dump_type,
-                         MemoryDumpLevelOfDetail level_of_detail,
-                         const GlobalMemoryDumpCallback& callback);
+  void RequestGlobalDump(MemoryDumpType,
+                         MemoryDumpLevelOfDetail,
+                         const GlobalMemoryDumpCallback&);
 
   // Same as above (still asynchronous), but without callback.
-  void RequestGlobalDump(MemoryDumpType dump_type,
-                         MemoryDumpLevelOfDetail level_of_detail);
+  void RequestGlobalDump(MemoryDumpType, MemoryDumpLevelOfDetail);
 
   // Prepare MemoryDumpManager for RequestGlobalMemoryDump calls for tracing
   // related modes (non-SUMMARY_ONLY).
@@ -280,6 +278,9 @@
   void GetDumpProvidersForPolling(
       std::vector<scoped_refptr<MemoryDumpProviderInfo>>*);
 
+  // Returns true if Initialize() has been called, false otherwise.
+  bool is_initialized() const { return !request_dump_function_.is_null(); }
+
   // An ordered set of registered MemoryDumpProviderInfo(s), sorted by task
   // runner affinity (MDPs belonging to the same task runners are adjacent).
   MemoryDumpProviderInfo::OrderedSet dump_providers_;
diff --git a/base/trace_event/memory_dump_manager_test_utils.h b/base/trace_event/memory_dump_manager_test_utils.h
new file mode 100644
index 0000000..24bd0d46
--- /dev/null
+++ b/base/trace_event/memory_dump_manager_test_utils.h
@@ -0,0 +1,45 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_TEST_UTILS_H_
+#define BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_TEST_UTILS_H_
+
+#include "base/bind.h"
+#include "base/trace_event/memory_dump_manager.h"
+#include "base/trace_event/memory_dump_request_args.h"
+
+namespace base {
+namespace trace_event {
+
+// Short-circuit the RequestGlobalDump() calls to CreateProcessDump().
+// Rationale: only the in-process logic is required for unittests.
+void RequestGlobalDumpForInProcessTesting(
+    const MemoryDumpRequestArgs& args,
+    const GlobalMemoryDumpCallback& global_callback) {
+  // Turns a ProcessMemoryDumpCallback into a GlobalMemoryDumpCallback.
+  auto callback_adapter = [](const GlobalMemoryDumpCallback& global_callback,
+                             uint64_t dump_guid, bool success,
+                             const Optional<MemoryDumpCallbackResult>& result) {
+    if (!global_callback.is_null())
+      global_callback.Run(dump_guid, success);
+  };
+  MemoryDumpManager::GetInstance()->CreateProcessDump(
+      args, Bind(callback_adapter, global_callback));
+};
+
+// Short circuits the RequestGlobalDumpFunction() to CreateProcessDump(),
+// effectively allowing to use both in unittests with the same behavior.
+// Unittests are in-process only and don't require all the multi-process
+// dump handshaking (which would require bits outside of base).
+void InitializeMemoryDumpManagerForInProcessTesting(bool is_coordinator) {
+  MemoryDumpManager* instance = MemoryDumpManager::GetInstance();
+  instance->set_dumper_registrations_ignored_for_testing(true);
+  instance->Initialize(BindRepeating(&RequestGlobalDumpForInProcessTesting),
+                       is_coordinator);
+}
+
+}  // namespace trace_event
+}  // namespace base
+
+#endif  // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_TEST_UTILS_H_
diff --git a/base/trace_event/memory_dump_manager_unittest.cc b/base/trace_event/memory_dump_manager_unittest.cc
index fe1b2fe..903321c7 100644
--- a/base/trace_event/memory_dump_manager_unittest.cc
+++ b/base/trace_event/memory_dump_manager_unittest.cc
@@ -27,7 +27,9 @@
 #include "base/threading/sequenced_worker_pool.h"
 #include "base/threading/thread.h"
 #include "base/threading/thread_task_runner_handle.h"
+#include "base/trace_event/memory_dump_manager_test_utils.h"
 #include "base/trace_event/memory_dump_provider.h"
+#include "base/trace_event/memory_dump_request_args.h"
 #include "base/trace_event/memory_dump_scheduler.h"
 #include "base/trace_event/memory_infra_background_whitelist.h"
 #include "base/trace_event/process_memory_dump.h"
@@ -99,15 +101,6 @@
   mdm->set_dumper_registrations_ignored_for_testing(true);
 }
 
-void OnTraceDataCollected(Closure quit_closure,
-                          trace_event::TraceResultBuffer* buffer,
-                          const scoped_refptr<RefCountedString>& json,
-                          bool has_more_events) {
-  buffer->AddFragment(json->data());
-  if (!has_more_events)
-    quit_closure.Run();
-}
-
 // Posts |task| to |task_runner| and blocks until it is executed.
 void PostTaskAndWait(const tracked_objects::Location& from_here,
                      SequencedTaskRunner* task_runner,
@@ -122,37 +115,6 @@
   event.Wait();
 }
 
-// Adapts a ProcessMemoryDumpCallback into a GlobalMemoryDumpCallback
-// and keeps around the process-local result.
-void ProcessDumpCallbackAdapter(
-    GlobalMemoryDumpCallback callback,
-    uint64_t dump_guid,
-    bool success,
-    const base::Optional<base::trace_event::MemoryDumpCallbackResult>&) {
-  callback.Run(dump_guid, success);
-}
-
-// This mocks the RequestGlobalDumpFunction which is typically handled by
-// process_local_dump_manager_impl.cc, by short-circuiting dump requests locally
-// to the MemoryDumpManager without an actual service.
-class GlobalMemoryDumpHandler {
- public:
-  MOCK_METHOD2(RequestGlobalMemoryDump,
-               void(const MemoryDumpRequestArgs& args,
-                    const GlobalMemoryDumpCallback& callback));
-
-  GlobalMemoryDumpHandler() {
-    ON_CALL(*this, RequestGlobalMemoryDump(_, _))
-        .WillByDefault(Invoke([this](const MemoryDumpRequestArgs& args,
-                                     const GlobalMemoryDumpCallback& callback) {
-          ProcessMemoryDumpCallback process_callback =
-              Bind(&ProcessDumpCallbackAdapter, callback);
-          MemoryDumpManager::GetInstance()->CreateProcessDump(args,
-                                                              process_callback);
-        }));
-  }
-};
-
 class MockMemoryDumpProvider : public MemoryDumpProvider {
  public:
   MOCK_METHOD0(Destructor, void());
@@ -228,8 +190,16 @@
   buffer.SetOutputCallback(trace_output.GetCallback());
   RunLoop run_loop;
   buffer.Start();
-  trace_event::TraceLog::GetInstance()->Flush(
-      Bind(&OnTraceDataCollected, run_loop.QuitClosure(), Unretained(&buffer)));
+  auto on_trace_data_collected =
+      [](Closure quit_closure, trace_event::TraceResultBuffer* buffer,
+         const scoped_refptr<RefCountedString>& json, bool has_more_events) {
+        buffer->AddFragment(json->data());
+        if (!has_more_events)
+          quit_closure.Run();
+      };
+
+  trace_event::TraceLog::GetInstance()->Flush(Bind(
+      on_trace_data_collected, run_loop.QuitClosure(), Unretained(&buffer)));
   run_loop.Run();
   buffer.Finish();
 
@@ -245,11 +215,9 @@
   MemoryDumpManagerTest() : testing::Test(), kDefaultOptions() {}
 
   void SetUp() override {
-    last_callback_success_ = false;
     message_loop_.reset(new MessageLoop());
     mdm_ = MemoryDumpManager::CreateInstanceForTesting();
     ASSERT_EQ(mdm_.get(), MemoryDumpManager::GetInstance());
-    results_.clear();
   }
 
   void TearDown() override {
@@ -258,35 +226,46 @@
     TraceLog::DeleteForTesting();
   }
 
-  // Turns a Closure into a GlobalMemoryDumpCallback, keeping track of the
-  // callback result and taking care of posting the closure on the correct task
-  // runner.
-  void GlobalDumpCallbackAdapter(
-      scoped_refptr<SingleThreadTaskRunner> task_runner,
-      Closure closure,
-      uint64_t dump_guid,
-      bool success) {
-    last_callback_success_ = success;
-    task_runner->PostTask(FROM_HERE, closure);
-  }
-
  protected:
-  void InitializeMemoryDumpManager(bool is_coordinator) {
-    mdm_->set_dumper_registrations_ignored_for_testing(true);
-    mdm_->Initialize(
-        BindRepeating(&GlobalMemoryDumpHandler::RequestGlobalMemoryDump,
-                      Unretained(&global_dump_handler_)),
-        is_coordinator);
-  }
-
-  void RequestGlobalDumpAndWait(MemoryDumpType dump_type,
-                                MemoryDumpLevelOfDetail level_of_detail) {
+  // Blocks the current thread (spinning a nested message loop) until the
+  // memory dump is complete. Returns:
+  // - return value: the |success| from the CreateProcessDump() callback.
+  // - (optional) |result|: the summarized metrics for TestSummaryComputation.
+  bool RequestProcessDumpAndWait(
+      MemoryDumpType dump_type,
+      MemoryDumpLevelOfDetail level_of_detail,
+      Optional<MemoryDumpCallbackResult>* result = nullptr) {
     RunLoop run_loop;
-    GlobalMemoryDumpCallback callback = Bind(
-        &MemoryDumpManagerTest::GlobalDumpCallbackAdapter, Unretained(this),
-        ThreadTaskRunnerHandle::Get(), run_loop.QuitClosure());
-    mdm_->RequestGlobalDump(dump_type, level_of_detail, callback);
+    bool success = false;
+    static uint64_t test_guid = 1;
+    test_guid++;
+    MemoryDumpRequestArgs request_args{test_guid, dump_type, level_of_detail};
+
+    // The signature of the callback delivered by MemoryDumpManager is:
+    // void ProcessMemoryDumpCallback(uint64_t dump_guid,
+    //                                bool success,
+    //                                const Optional<MemoryDumpCallbackResult>&)
+    // The extra arguments prepended to the |callback| below (the ones with the
+    // "curried_" prefix) are just passed from the Bind(). This is just to get
+    // around the limitation of Bind() in supporting only capture-less lambdas.
+    ProcessMemoryDumpCallback callback = Bind(
+        [](bool* curried_success, Closure curried_quit_closure,
+           uint64_t curried_expected_guid,
+           Optional<MemoryDumpCallbackResult>* curried_result,
+           uint64_t dump_guid, bool success,
+           const Optional<MemoryDumpCallbackResult>& callback_result) {
+          *curried_success = success;
+          EXPECT_EQ(curried_expected_guid, dump_guid);
+          if (curried_result)
+            *curried_result = callback_result;
+          ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
+                                                  curried_quit_closure);
+        },
+        Unretained(&success), run_loop.QuitClosure(), test_guid, result);
+
+    mdm_->CreateProcessDump(request_args, callback);
     run_loop.Run();
+    return success;
   }
 
   void EnableTracingWithLegacyCategories(const char* category) {
@@ -309,51 +288,30 @@
     return MemoryDumpManager::kMaxConsecutiveFailuresCount;
   }
 
-  const std::vector<MemoryDumpCallbackResult>* GetResults() const {
-    return &results_;
-  }
-
   const MemoryDumpProvider::Options kDefaultOptions;
   std::unique_ptr<MemoryDumpManager> mdm_;
-  GlobalMemoryDumpHandler global_dump_handler_;
-  bool last_callback_success_;
-
-  // Adapts a ProcessMemoryDumpCallback into a GlobalMemoryDumpCallback by
-  // trimming off the result argument and calling the global callback.
-  void ProcessDumpRecordingCallbackAdapter(
-      GlobalMemoryDumpCallback callback,
-      uint64_t dump_guid,
-      bool success,
-      const base::Optional<MemoryDumpCallbackResult>& result) {
-    if (result.has_value()) {
-      results_.push_back(result.value());
-    }
-    callback.Run(dump_guid, success);
-  }
 
  private:
   std::unique_ptr<MessageLoop> message_loop_;
-  std::vector<MemoryDumpCallbackResult> results_;
 
-  // We want our singleton torn down after each test.
+  // To tear down the singleton instance after each test.
   ShadowingAtExitManager at_exit_manager_;
 };
 
 // Basic sanity checks. Registers a memory dump provider and checks that it is
 // called.
 TEST_F(MemoryDumpManagerTest, SingleDumper) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   MockMemoryDumpProvider mdp;
   RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get());
 
   // Now repeat enabling the memory category and check that the dumper is
   // invoked this time.
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(3);
-  EXPECT_CALL(mdp, OnMemoryDump(_, _)).Times(3).WillRepeatedly(Return(true));
+  EXPECT_CALL(mdp, OnMemoryDump(_, _)).Times(3);
   for (int i = 0; i < 3; ++i) {
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
+    EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                          MemoryDumpLevelOfDetail::DETAILED));
   }
   DisableTracing();
 
@@ -362,12 +320,10 @@
   // Finally check the unregister logic: the global dump handler will be invoked
   // but not the dump provider, as it has been unregistered.
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(3);
   EXPECT_CALL(mdp, OnMemoryDump(_, _)).Times(0);
-
   for (int i = 0; i < 3; ++i) {
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
+    EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                          MemoryDumpLevelOfDetail::DETAILED));
   }
   DisableTracing();
 }
@@ -375,15 +331,14 @@
 // Checks that requesting dumps with high level of detail actually propagates
 // the level of the detail properly to OnMemoryDump() call on dump providers.
 TEST_F(MemoryDumpManagerTest, CheckMemoryDumpArgs) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   MockMemoryDumpProvider mdp;
 
   RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get());
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
-  EXPECT_CALL(mdp, OnMemoryDump(IsDetailedDump(), _)).WillOnce(Return(true));
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::DETAILED);
+  EXPECT_CALL(mdp, OnMemoryDump(IsDetailedDump(), _));
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                        MemoryDumpLevelOfDetail::DETAILED));
   DisableTracing();
   mdm_->UnregisterDumpProvider(&mdp);
 
@@ -391,10 +346,9 @@
   // OnMemoryDump() call on dump providers.
   RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get());
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
-  EXPECT_CALL(mdp, OnMemoryDump(IsLightDump(), _)).WillOnce(Return(true));
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::LIGHT);
+  EXPECT_CALL(mdp, OnMemoryDump(IsLightDump(), _));
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                        MemoryDumpLevelOfDetail::LIGHT));
   DisableTracing();
   mdm_->UnregisterDumpProvider(&mdp);
 }
@@ -402,7 +356,7 @@
 // Checks that the HeapProfilerSerializationState object is actually
 // shared over time.
 TEST_F(MemoryDumpManagerTest, HeapProfilerSerializationState) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   MockMemoryDumpProvider mdp1;
   MockMemoryDumpProvider mdp2;
   RegisterDumpProvider(&mdp1, nullptr);
@@ -411,7 +365,6 @@
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
   const HeapProfilerSerializationState* heap_profiler_serialization_state =
       mdm_->heap_profiler_serialization_state_for_testing().get();
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(2);
   EXPECT_CALL(mdp1, OnMemoryDump(_, _))
       .Times(2)
       .WillRepeatedly(
@@ -432,8 +385,8 @@
           }));
 
   for (int i = 0; i < 2; ++i) {
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
+    EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                          MemoryDumpLevelOfDetail::DETAILED));
   }
 
   DisableTracing();
@@ -441,39 +394,36 @@
 
 // Checks that the (Un)RegisterDumpProvider logic behaves sanely.
 TEST_F(MemoryDumpManagerTest, MultipleDumpers) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   MockMemoryDumpProvider mdp1;
   MockMemoryDumpProvider mdp2;
 
   // Enable only mdp1.
   RegisterDumpProvider(&mdp1, ThreadTaskRunnerHandle::Get());
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
-  EXPECT_CALL(mdp1, OnMemoryDump(_, _)).WillOnce(Return(true));
+  EXPECT_CALL(mdp1, OnMemoryDump(_, _));
   EXPECT_CALL(mdp2, OnMemoryDump(_, _)).Times(0);
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::DETAILED);
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                        MemoryDumpLevelOfDetail::DETAILED));
   DisableTracing();
 
-  // Invert: enable mdp1 and disable mdp2.
+  // Invert: enable mdp2 and disable mdp1.
   mdm_->UnregisterDumpProvider(&mdp1);
   RegisterDumpProvider(&mdp2, nullptr);
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
   EXPECT_CALL(mdp1, OnMemoryDump(_, _)).Times(0);
-  EXPECT_CALL(mdp2, OnMemoryDump(_, _)).WillOnce(Return(true));
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::DETAILED);
+  EXPECT_CALL(mdp2, OnMemoryDump(_, _));
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                        MemoryDumpLevelOfDetail::DETAILED));
   DisableTracing();
 
   // Enable both mdp1 and mdp2.
   RegisterDumpProvider(&mdp1, nullptr);
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
-  EXPECT_CALL(mdp1, OnMemoryDump(_, _)).WillOnce(Return(true));
-  EXPECT_CALL(mdp2, OnMemoryDump(_, _)).WillOnce(Return(true));
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::DETAILED);
+  EXPECT_CALL(mdp1, OnMemoryDump(_, _));
+  EXPECT_CALL(mdp2, OnMemoryDump(_, _));
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                        MemoryDumpLevelOfDetail::DETAILED));
   DisableTracing();
 }
 
@@ -486,28 +436,26 @@
 #define MAYBE_RegistrationConsistency RegistrationConsistency
 #endif
 TEST_F(MemoryDumpManagerTest, MAYBE_RegistrationConsistency) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   MockMemoryDumpProvider mdp;
 
   RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get());
 
   {
-    EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
-    EXPECT_CALL(mdp, OnMemoryDump(_, _)).WillOnce(Return(true));
+    EXPECT_CALL(mdp, OnMemoryDump(_, _));
     EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
+    EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                          MemoryDumpLevelOfDetail::DETAILED));
     DisableTracing();
   }
 
   mdm_->UnregisterDumpProvider(&mdp);
 
   {
-    EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
     EXPECT_CALL(mdp, OnMemoryDump(_, _)).Times(0);
     EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
+    EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                          MemoryDumpLevelOfDetail::DETAILED));
     DisableTracing();
   }
 
@@ -515,11 +463,10 @@
   mdm_->UnregisterDumpProvider(&mdp);
 
   {
-    EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
     EXPECT_CALL(mdp, OnMemoryDump(_, _)).Times(0);
     EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
+    EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                          MemoryDumpLevelOfDetail::DETAILED));
     DisableTracing();
   }
 
@@ -528,11 +475,10 @@
   RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get());
 
   {
-    EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
-    EXPECT_CALL(mdp, OnMemoryDump(_, _)).WillOnce(Return(true));
+    EXPECT_CALL(mdp, OnMemoryDump(_, _));
     EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
+    EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                          MemoryDumpLevelOfDetail::DETAILED));
     DisableTracing();
   }
 }
@@ -542,7 +488,7 @@
 // threads and registering a MemoryDumpProvider on each of them. At each
 // iteration, one thread is removed, to check the live unregistration logic.
 TEST_F(MemoryDumpManagerTest, RespectTaskRunnerAffinity) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   const uint32_t kNumInitialThreads = 8;
 
   std::vector<std::unique_ptr<Thread>> threads;
@@ -570,11 +516,8 @@
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
 
   while (!threads.empty()) {
-    last_callback_success_ = false;
-    EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
-    EXPECT_TRUE(last_callback_success_);
+    EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                          MemoryDumpLevelOfDetail::DETAILED));
 
     // Unregister a MDP and destroy one thread at each iteration to check the
     // live unregistration logic. The unregistration needs to happen on the same
@@ -600,7 +543,7 @@
 // SequencedTaskRunner case and that the dump provider gets disabled when
 // PostTask fails, but the dump still succeeds.
 TEST_F(MemoryDumpManagerTest, PostTaskForSequencedTaskRunner) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   std::vector<MockMemoryDumpProvider> mdps(3);
   scoped_refptr<TestSequencedTaskRunner> task_runner1(
       make_scoped_refptr(new TestSequencedTaskRunner()));
@@ -616,34 +559,29 @@
   EXPECT_CALL(mdps[0], OnMemoryDump(_, _)).Times(0);
   EXPECT_CALL(mdps[1], OnMemoryDump(_, _)).Times(2);
   EXPECT_CALL(mdps[2], OnMemoryDump(_, _)).Times(2);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(2);
 
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
 
   task_runner1->set_enabled(false);
-  last_callback_success_ = false;
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::DETAILED);
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                        MemoryDumpLevelOfDetail::DETAILED));
   // Tasks should be individually posted even if |mdps[1]| and |mdps[2]| belong
   // to same task runner.
   EXPECT_EQ(1u, task_runner1->no_of_post_tasks());
   EXPECT_EQ(2u, task_runner2->no_of_post_tasks());
-  EXPECT_TRUE(last_callback_success_);
 
   task_runner1->set_enabled(true);
-  last_callback_success_ = false;
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::DETAILED);
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                        MemoryDumpLevelOfDetail::DETAILED));
   EXPECT_EQ(2u, task_runner1->no_of_post_tasks());
   EXPECT_EQ(4u, task_runner2->no_of_post_tasks());
-  EXPECT_TRUE(last_callback_success_);
   DisableTracing();
 }
 
 // Checks that providers get disabled after 3 consecutive failures, but not
 // otherwise (e.g., if interleaved).
 TEST_F(MemoryDumpManagerTest, DisableFailingDumpers) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   MockMemoryDumpProvider mdp1;
   MockMemoryDumpProvider mdp2;
 
@@ -651,10 +589,6 @@
   RegisterDumpProvider(&mdp2, nullptr);
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
 
-  const int kNumDumps = 2 * GetMaxConsecutiveFailuresCount();
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _))
-      .Times(kNumDumps);
-
   EXPECT_CALL(mdp1, OnMemoryDump(_, _))
       .Times(GetMaxConsecutiveFailuresCount())
       .WillRepeatedly(Return(false));
@@ -667,9 +601,10 @@
       .WillOnce(Return(true))
       .WillOnce(Return(false));
 
+  const int kNumDumps = 2 * GetMaxConsecutiveFailuresCount();
   for (int i = 0; i < kNumDumps; i++) {
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
+    EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                          MemoryDumpLevelOfDetail::DETAILED));
   }
 
   DisableTracing();
@@ -678,15 +613,13 @@
 // Sneakily registers an extra memory dump provider while an existing one is
 // dumping and expect it to take part in the already active tracing session.
 TEST_F(MemoryDumpManagerTest, RegisterDumperWhileDumping) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   MockMemoryDumpProvider mdp1;
   MockMemoryDumpProvider mdp2;
 
   RegisterDumpProvider(&mdp1, nullptr);
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
 
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(4);
-
   EXPECT_CALL(mdp1, OnMemoryDump(_, _))
       .Times(4)
       .WillOnce(Return(true))
@@ -699,13 +632,11 @@
 
   // Depending on the insertion order (before or after mdp1), mdp2 might be
   // called also immediately after it gets registered.
-  EXPECT_CALL(mdp2, OnMemoryDump(_, _))
-      .Times(Between(2, 3))
-      .WillRepeatedly(Return(true));
+  EXPECT_CALL(mdp2, OnMemoryDump(_, _)).Times(Between(2, 3));
 
   for (int i = 0; i < 4; i++) {
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
+    EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                          MemoryDumpLevelOfDetail::DETAILED));
   }
 
   DisableTracing();
@@ -713,7 +644,7 @@
 
 // Like RegisterDumperWhileDumping, but unregister the dump provider instead.
 TEST_F(MemoryDumpManagerTest, UnregisterDumperWhileDumping) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   MockMemoryDumpProvider mdp1;
   MockMemoryDumpProvider mdp2;
 
@@ -721,8 +652,6 @@
   RegisterDumpProvider(&mdp2, ThreadTaskRunnerHandle::Get(), kDefaultOptions);
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
 
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(4);
-
   EXPECT_CALL(mdp1, OnMemoryDump(_, _))
       .Times(4)
       .WillOnce(Return(true))
@@ -735,13 +664,11 @@
 
   // Depending on the insertion order (before or after mdp1), mdp2 might have
   // been already called when UnregisterDumpProvider happens.
-  EXPECT_CALL(mdp2, OnMemoryDump(_, _))
-      .Times(Between(1, 2))
-      .WillRepeatedly(Return(true));
+  EXPECT_CALL(mdp2, OnMemoryDump(_, _)).Times(Between(1, 2));
 
   for (int i = 0; i < 4; i++) {
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
+    EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                          MemoryDumpLevelOfDetail::DETAILED));
   }
 
   DisableTracing();
@@ -750,7 +677,7 @@
 // Checks that the dump does not abort when unregistering a provider while
 // dumping from a different thread than the dumping thread.
 TEST_F(MemoryDumpManagerTest, UnregisterDumperFromThreadWhileDumping) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   std::vector<std::unique_ptr<TestIOThread>> threads;
   std::vector<std::unique_ptr<MockMemoryDumpProvider>> mdps;
 
@@ -789,19 +716,16 @@
         .WillOnce(Invoke(on_dump));
   }
 
-  last_callback_success_ = false;
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::DETAILED);
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                        MemoryDumpLevelOfDetail::DETAILED));
   ASSERT_EQ(1, on_memory_dump_call_count);
-  ASSERT_TRUE(last_callback_success_);
 
   DisableTracing();
 }
 
 TEST_F(MemoryDumpManagerTest, TestPollingOnDumpThread) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   std::unique_ptr<MockMemoryDumpProvider> mdp1(new MockMemoryDumpProvider());
   std::unique_ptr<MockMemoryDumpProvider> mdp2(new MockMemoryDumpProvider());
   mdp1->enable_mock_destructor = true;
@@ -853,7 +777,7 @@
 // If a thread (with a dump provider living on it) is torn down during a dump
 // its dump provider should be skipped but the dump itself should succeed.
 TEST_F(MemoryDumpManagerTest, TearDownThreadWhileDumping) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   std::vector<std::unique_ptr<TestIOThread>> threads;
   std::vector<std::unique_ptr<MockMemoryDumpProvider>> mdps;
 
@@ -891,28 +815,23 @@
         .WillOnce(Invoke(on_dump));
   }
 
-  last_callback_success_ = false;
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::DETAILED);
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                        MemoryDumpLevelOfDetail::DETAILED));
   ASSERT_EQ(1, on_memory_dump_call_count);
-  ASSERT_TRUE(last_callback_success_);
 
   DisableTracing();
 }
 
-// Checks that a NACK callback is invoked if RequestGlobalDump() is called when
+// Checks that a NACK callback is invoked if CreateProcessDump() is called when
 // tracing is not enabled.
 TEST_F(MemoryDumpManagerTest, CallbackCalledOnFailure) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
-  MockMemoryDumpProvider mdp1;
-  RegisterDumpProvider(&mdp1, nullptr);
-
-  last_callback_success_ = true;
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::DETAILED);
-  EXPECT_FALSE(last_callback_success_);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
+  MockMemoryDumpProvider mdp;
+  RegisterDumpProvider(&mdp, nullptr);
+  EXPECT_CALL(mdp, OnMemoryDump(_, _));
+  EXPECT_FALSE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                         MemoryDumpLevelOfDetail::DETAILED));
 }
 
 // Checks that is the MemoryDumpManager is initialized after tracing already
@@ -922,24 +841,23 @@
   RegisterDumpProvider(&mdp, nullptr);
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
 
-  // First check that a RequestGlobalDump() issued before the MemoryDumpManager
+  // First check that a CreateProcessDump() issued before the MemoryDumpManager
   // initialization gets NACK-ed cleanly.
   {
+    testing::InSequence sequence;
     EXPECT_CALL(mdp, OnMemoryDump(_, _)).Times(0);
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
-    EXPECT_FALSE(last_callback_success_);
+    EXPECT_FALSE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                           MemoryDumpLevelOfDetail::DETAILED));
   }
 
   // Now late-initialize the MemoryDumpManager and check that the
-  // RequestGlobalDump completes successfully.
+  // CreateProcessDump() completes successfully.
   {
-    InitializeMemoryDumpManager(false /* is_coordinator */);
+    testing::InSequence sequence;
+    InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
     EXPECT_CALL(mdp, OnMemoryDump(_, _)).Times(1);
-    EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
-    EXPECT_TRUE(last_callback_success_);
+    EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                          MemoryDumpLevelOfDetail::DETAILED));
   }
   DisableTracing();
 }
@@ -949,15 +867,10 @@
 // dumps in memory-infra, handling gracefully the transition between the legacy
 // and the new-style (JSON-based) TraceConfig.
 TEST_F(MemoryDumpManagerTest, TraceConfigExpectations) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
 
-  // Don't trigger the default behavior of the global dump handler in this test,
-  // which would short-circuit the dump request to the actual
-  // CreateProcessDump().
-  // We don't want to create any dump in this test, only check whether the dumps
+  // We don't need to create any dump in this test, only check whether the dumps
   // are requested or not.
-  ON_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _))
-      .WillByDefault(Return());
 
   // Enabling memory-infra in a non-coordinator process should not trigger any
   // periodic dumps.
@@ -975,9 +888,7 @@
 }
 
 TEST_F(MemoryDumpManagerTest, TraceConfigExpectationsWhenIsCoordinator) {
-  InitializeMemoryDumpManager(true /* is_coordinator */);
-  ON_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _))
-      .WillByDefault(Return());
+  InitializeMemoryDumpManagerForInProcessTesting(true /* is_coordinator */);
 
   // Enabling memory-infra with the legacy TraceConfig (category filter) in
   // a coordinator process should not enable periodic dumps.
@@ -1013,38 +924,38 @@
   const int kHeavyDumpRate = 5;
   const int kLightDumpPeriodMs = 1;
   const int kHeavyDumpPeriodMs = kHeavyDumpRate * kLightDumpPeriodMs;
+
   // The expected sequence with light=1ms, heavy=5ms is H,L,L,L,L,H,...
+  auto mdp = MakeUnique<MockMemoryDumpProvider>();
+  RegisterDumpProvider(&*mdp, nullptr, kDefaultOptions, kWhitelistedMDPName);
+
   testing::InSequence sequence;
-  EXPECT_CALL(global_dump_handler_,
-              RequestGlobalMemoryDump(IsDetailedDump(), _));
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(IsLightDump(), _))
-      .Times(kHeavyDumpRate - 1);
-  EXPECT_CALL(global_dump_handler_,
-              RequestGlobalMemoryDump(IsDetailedDump(), _));
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(IsLightDump(), _))
-      .Times(kHeavyDumpRate - 2);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(IsLightDump(), _))
-      .WillOnce(Invoke([test_task_runner, quit_closure](
-                           const MemoryDumpRequestArgs& args,
-                           const GlobalMemoryDumpCallback& callback) {
+  EXPECT_CALL(*mdp, OnMemoryDump(IsDetailedDump(), _));
+  EXPECT_CALL(*mdp, OnMemoryDump(IsLightDump(), _)).Times(kHeavyDumpRate - 1);
+  EXPECT_CALL(*mdp, OnMemoryDump(IsDetailedDump(), _));
+  EXPECT_CALL(*mdp, OnMemoryDump(IsLightDump(), _)).Times(kHeavyDumpRate - 2);
+  EXPECT_CALL(*mdp, OnMemoryDump(IsLightDump(), _))
+      .WillOnce(Invoke([test_task_runner, quit_closure](const MemoryDumpArgs&,
+                                                        ProcessMemoryDump*) {
         test_task_runner->PostTask(FROM_HERE, quit_closure);
+        return true;
       }));
 
   // Swallow all the final spurious calls until tracing gets disabled.
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _))
-      .Times(AnyNumber());
+  EXPECT_CALL(*mdp, OnMemoryDump(_, _)).Times(AnyNumber());
 
   EnableTracingWithTraceConfig(
       TraceConfigMemoryTestUtil::GetTraceConfig_PeriodicTriggers(
           kLightDumpPeriodMs, kHeavyDumpPeriodMs));
   run_loop.Run();
   DisableTracing();
+  mdm_->UnregisterAndDeleteDumpProviderSoon(std::move(mdp));
 }
 
 TEST_F(MemoryDumpManagerTest, DumpOnBehalfOfOtherProcess) {
   using trace_analyzer::Query;
 
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
 
   // Standard provider with default options (create dump for current process).
   MemoryDumpProvider::Options options;
@@ -1062,12 +973,11 @@
   RegisterDumpProvider(&mdp3, nullptr, options);
 
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
-  EXPECT_CALL(mdp1, OnMemoryDump(_, _)).Times(1).WillRepeatedly(Return(true));
-  EXPECT_CALL(mdp2, OnMemoryDump(_, _)).Times(1).WillRepeatedly(Return(true));
-  EXPECT_CALL(mdp3, OnMemoryDump(_, _)).Times(1).WillRepeatedly(Return(true));
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::DETAILED);
+  EXPECT_CALL(mdp1, OnMemoryDump(_, _)).Times(1);
+  EXPECT_CALL(mdp2, OnMemoryDump(_, _)).Times(1);
+  EXPECT_CALL(mdp3, OnMemoryDump(_, _)).Times(1);
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                        MemoryDumpLevelOfDetail::DETAILED));
   DisableTracing();
 
   std::unique_ptr<trace_analyzer::TraceAnalyzer> analyzer =
@@ -1086,7 +996,8 @@
 }
 
 TEST_F(MemoryDumpManagerTest, SummaryOnlyWhitelisting) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
+
   // Summary only MDPs are a subset of background MDPs.
   SetDumpProviderWhitelistForTesting(kTestMDPWhitelist);
   SetDumpProviderSummaryWhitelistForTesting(kTestMDPWhitelistForSummary);
@@ -1100,18 +1011,18 @@
                        kBackgroundButNotSummaryWhitelistedMDPName);
 
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
+
   EXPECT_CALL(backgroundMdp, OnMemoryDump(_, _)).Times(0);
   EXPECT_CALL(summaryMdp, OnMemoryDump(_, _)).Times(1);
-  RequestGlobalDumpAndWait(MemoryDumpType::SUMMARY_ONLY,
-                           MemoryDumpLevelOfDetail::BACKGROUND);
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::SUMMARY_ONLY,
+                                        MemoryDumpLevelOfDetail::BACKGROUND));
   DisableTracing();
 }
 
 TEST_F(MemoryDumpManagerTest, SummaryOnlyDumpsArentAddedToTrace) {
   using trace_analyzer::Query;
 
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   SetDumpProviderSummaryWhitelistForTesting(kTestMDPWhitelistForSummary);
   SetDumpProviderWhitelistForTesting(kTestMDPWhitelist);
 
@@ -1120,12 +1031,12 @@
   RegisterDumpProvider(&mdp, nullptr, kDefaultOptions, kWhitelistedMDPName);
 
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(2);
-  EXPECT_CALL(mdp, OnMemoryDump(_, _)).Times(2).WillRepeatedly(Return(true));
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::BACKGROUND);
-  RequestGlobalDumpAndWait(MemoryDumpType::SUMMARY_ONLY,
-                           MemoryDumpLevelOfDetail::BACKGROUND);
+
+  EXPECT_CALL(mdp, OnMemoryDump(_, _)).Times(2);
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                        MemoryDumpLevelOfDetail::BACKGROUND));
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::SUMMARY_ONLY,
+                                        MemoryDumpLevelOfDetail::BACKGROUND));
   DisableTracing();
 
   std::unique_ptr<trace_analyzer::TraceAnalyzer> analyzer =
@@ -1143,7 +1054,7 @@
 // Tests the basics of the UnregisterAndDeleteDumpProviderSoon(): the
 // unregistration should actually delete the providers and not leak them.
 TEST_F(MemoryDumpManagerTest, UnregisterAndDeleteDumpProviderSoon) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   static const int kNumProviders = 3;
   int dtor_count = 0;
   std::vector<std::unique_ptr<MemoryDumpProvider>> mdps;
@@ -1170,7 +1081,7 @@
 // from another thread. The OnMemoryDump() and the dtor call are expected to
 // happen on the same thread (the MemoryDumpManager utility thread).
 TEST_F(MemoryDumpManagerTest, UnregisterAndDeleteDumpProviderSoonDuringDump) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   std::unique_ptr<MockMemoryDumpProvider> mdp(new MockMemoryDumpProvider);
   mdp->enable_mock_destructor = true;
   RegisterDumpProvider(mdp.get(), nullptr, kDefaultOptions);
@@ -1199,16 +1110,15 @@
       }));
 
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(2);
   for (int i = 0; i < 2; ++i) {
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
+    EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                          MemoryDumpLevelOfDetail::DETAILED));
   }
   DisableTracing();
 }
 
 TEST_F(MemoryDumpManagerTest, TestWhitelistingMDP) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   SetDumpProviderWhitelistForTesting(kTestMDPWhitelist);
   std::unique_ptr<MockMemoryDumpProvider> mdp1(new MockMemoryDumpProvider);
   RegisterDumpProvider(mdp1.get(), nullptr);
@@ -1217,41 +1127,40 @@
                        kWhitelistedMDPName);
 
   EXPECT_CALL(*mdp1, OnMemoryDump(_, _)).Times(0);
-  EXPECT_CALL(*mdp2, OnMemoryDump(_, _)).Times(1).WillOnce(Return(true));
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(1);
+  EXPECT_CALL(*mdp2, OnMemoryDump(_, _)).Times(1);
 
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
   EXPECT_FALSE(IsPeriodicDumpingEnabled());
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::BACKGROUND);
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                        MemoryDumpLevelOfDetail::BACKGROUND));
   DisableTracing();
 }
 
+// Configures periodic dumps with MemoryDumpLevelOfDetail::BACKGROUND triggers
+// and tests that only BACKGROUND are added to the trace, but not LIGHT or
+// DETAILED, even if requested explicitly.
 TEST_F(MemoryDumpManagerTest, TestBackgroundTracingSetup) {
-  InitializeMemoryDumpManager(true /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(true /* is_coordinator */);
 
-  // We now need an MDP to hit the code path where the dump will be rejected
-  // since this happens at the point you try to serialize a process dump.
-  MockMemoryDumpProvider mdp;
-  RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get());
+  SetDumpProviderWhitelistForTesting(kTestMDPWhitelist);
+  auto mdp = MakeUnique<MockMemoryDumpProvider>();
+  RegisterDumpProvider(&*mdp, nullptr, kDefaultOptions, kWhitelistedMDPName);
 
   RunLoop run_loop;
   auto test_task_runner = ThreadTaskRunnerHandle::Get();
   auto quit_closure = run_loop.QuitClosure();
 
-  testing::InSequence sequence;
-  EXPECT_CALL(global_dump_handler_,
-              RequestGlobalMemoryDump(IsBackgroundDump(), _))
-      .Times(5);
-  EXPECT_CALL(global_dump_handler_,
-              RequestGlobalMemoryDump(IsBackgroundDump(), _))
-      .WillOnce(Invoke([test_task_runner, quit_closure](
-                           const MemoryDumpRequestArgs& args,
-                           const GlobalMemoryDumpCallback& callback) {
-        test_task_runner->PostTask(FROM_HERE, quit_closure);
-      }));
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _))
-      .Times(AnyNumber());
+  {
+    testing::InSequence sequence;
+    EXPECT_CALL(*mdp, OnMemoryDump(IsBackgroundDump(), _)).Times(3);
+    EXPECT_CALL(*mdp, OnMemoryDump(IsBackgroundDump(), _))
+        .WillOnce(Invoke([test_task_runner, quit_closure](const MemoryDumpArgs&,
+                                                          ProcessMemoryDump*) {
+          test_task_runner->PostTask(FROM_HERE, quit_closure);
+          return true;
+        }));
+    EXPECT_CALL(*mdp, OnMemoryDump(IsBackgroundDump(), _)).Times(AnyNumber());
+  }
 
   EnableTracingWithTraceConfig(
       TraceConfigMemoryTestUtil::GetTraceConfig_BackgroundTrigger(
@@ -1259,23 +1168,43 @@
 
   run_loop.Run();
 
-  // Only background mode dumps should be allowed with the trace config.
-  last_callback_success_ = false;
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::LIGHT);
-  EXPECT_FALSE(last_callback_success_);
-  last_callback_success_ = false;
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::DETAILED);
-  EXPECT_FALSE(last_callback_success_);
+  // When requesting non-BACKGROUND dumps the MDP will be invoked but the
+  // data is expected to be dropped on the floor, hence the EXPECT_FALSE.
+  EXPECT_CALL(*mdp, OnMemoryDump(IsLightDump(), _));
+  EXPECT_FALSE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                         MemoryDumpLevelOfDetail::LIGHT));
+
+  EXPECT_CALL(*mdp, OnMemoryDump(IsDetailedDump(), _));
+  EXPECT_FALSE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                         MemoryDumpLevelOfDetail::DETAILED));
 
   ASSERT_TRUE(IsPeriodicDumpingEnabled());
   DisableTracing();
+  mdm_->UnregisterAndDeleteDumpProviderSoon(std::move(mdp));
 }
 
-// Tests that we can manually take a dump without enabling tracing.
-TEST_F(MemoryDumpManagerTest, DumpWithTracingDisabled) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+// Tests that the MemoryDumpProvider(s) are invoked even if tracing has not
+// been initialized.
+TEST_F(MemoryDumpManagerTest, DumpWithoutInitializingTracing) {
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
+  MockMemoryDumpProvider mdp;
+  RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get());
+  DisableTracing();
+  EXPECT_CALL(mdp, OnMemoryDump(_, _)).Times(3);
+  for (int i = 0; i < 3; ++i) {
+    // The callback result will be false for the moment. true result means that
+    // as well as the dump being successful we also managed to add the dump to
+    // the trace. But the latter won't happen here.
+    EXPECT_FALSE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                           MemoryDumpLevelOfDetail::DETAILED));
+  }
+  mdm_->UnregisterDumpProvider(&mdp);
+}
+
+// Similar to DumpWithoutInitializingTracing. Tracing is initialized but not
+// enabled.
+TEST_F(MemoryDumpManagerTest, DumpWithTracingInitializedButDisabled) {
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   MockMemoryDumpProvider mdp;
   RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get());
 
@@ -1285,71 +1214,27 @@
       TraceConfig(TraceConfigMemoryTestUtil::GetTraceConfig_NoTriggers());
   const TraceConfig::MemoryDumpConfig& memory_dump_config =
       trace_config.memory_dump_config();
-
   mdm_->SetupForTracing(memory_dump_config);
 
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(3);
-  EXPECT_CALL(mdp, OnMemoryDump(_, _)).Times(3).WillRepeatedly(Return(true));
-  last_callback_success_ = true;
-  for (int i = 0; i < 3; ++i)
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
-  // The callback result should actually be false since (for the moment at
-  // least) a true result means that as well as the dump generally being
-  // successful we also managed to add the dump to the trace.
-  EXPECT_FALSE(last_callback_success_);
-
+  EXPECT_CALL(mdp, OnMemoryDump(_, _)).Times(3);
+  for (int i = 0; i < 3; ++i) {
+    // Same as the above. Even if the MDP(s) are invoked, this will return false
+    // while attempting to add the dump into the trace.
+    EXPECT_FALSE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                           MemoryDumpLevelOfDetail::DETAILED));
+  }
   mdm_->TeardownForTracing();
-
-  mdm_->UnregisterDumpProvider(&mdp);
-}
-
-// Tests that we can do a dump without enabling/disabling.
-TEST_F(MemoryDumpManagerTest, DumpWithoutTracing) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
-  MockMemoryDumpProvider mdp;
-  RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get());
-
-  DisableTracing();
-
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(3);
-  EXPECT_CALL(mdp, OnMemoryDump(_, _)).Times(3).WillRepeatedly(Return(true));
-  last_callback_success_ = true;
-  for (int i = 0; i < 3; ++i)
-    RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                             MemoryDumpLevelOfDetail::DETAILED);
-  // The callback result should be false since (for the moment at
-  // least) a true result means that as well as the dump being
-  // successful we also managed to add the dump to the trace which shouldn't
-  // happen when tracing is not enabled.
-  EXPECT_FALSE(last_callback_success_);
-
   mdm_->UnregisterDumpProvider(&mdp);
 }
 
 TEST_F(MemoryDumpManagerTest, TestSummaryComputation) {
-  InitializeMemoryDumpManager(false /* is_coordinator */);
+  InitializeMemoryDumpManagerForInProcessTesting(false /* is_coordinator */);
   MockMemoryDumpProvider mdp;
   RegisterDumpProvider(&mdp, ThreadTaskRunnerHandle::Get());
 
-  const HeapProfilerSerializationState* heap_profiler_serialization_state =
-      mdm_->heap_profiler_serialization_state_for_testing().get();
-
-  EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _))
-      .WillOnce(Invoke([this](const MemoryDumpRequestArgs& args,
-                              const GlobalMemoryDumpCallback& callback) {
-        ProcessMemoryDumpCallback process_callback =
-            Bind(&MemoryDumpManagerTest_TestSummaryComputation_Test::
-                     ProcessDumpRecordingCallbackAdapter,
-                 Unretained(this), callback);
-        mdm_->CreateProcessDump(args, process_callback);
-      }));
-
   EXPECT_CALL(mdp, OnMemoryDump(_, _))
-      .Times(1)
-      .WillRepeatedly(Invoke([heap_profiler_serialization_state](
-                                 const MemoryDumpArgs&,
-                                 ProcessMemoryDump* pmd) -> bool {
+      .WillOnce(Invoke([](const MemoryDumpArgs&,
+                          ProcessMemoryDump* pmd) -> bool {
         auto* size = MemoryAllocatorDump::kNameSize;
         auto* bytes = MemoryAllocatorDump::kUnitsBytes;
         const uint32_t kB = 1024;
@@ -1366,6 +1251,7 @@
         pmd->CreateAllocatorDump("v8/bar")->AddScalar(size, bytes, 2 * kB);
         pmd->CreateAllocatorDump("v8")->AddScalar(size, bytes, 99 * kB);
 
+        // All the 99 KB values here are expected to be ignored.
         pmd->CreateAllocatorDump("partition_alloc")
             ->AddScalar(size, bytes, 99 * kB);
         pmd->CreateAllocatorDump("partition_alloc/allocated_objects")
@@ -1374,37 +1260,39 @@
             ->AddScalar(size, bytes, 99 * kB);
         pmd->CreateAllocatorDump("partition_alloc/partitions")
             ->AddScalar(size, bytes, 99 * kB);
-        pmd->CreateAllocatorDump("partition_alloc/partitions/foo")
+        pmd->CreateAllocatorDump("partition_alloc/partitions/not_ignored_1")
             ->AddScalar(size, bytes, 2 * kB);
-        pmd->CreateAllocatorDump("partition_alloc/partitions/bar")
+        pmd->CreateAllocatorDump("partition_alloc/partitions/not_ignored_2")
             ->AddScalar(size, bytes, 2 * kB);
         pmd->process_totals()->set_resident_set_bytes(5 * kB);
         pmd->set_has_process_totals();
         return true;
       }));
 
-  last_callback_success_ = false;
-
   EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory);
-  RequestGlobalDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
-                           MemoryDumpLevelOfDetail::LIGHT);
+  Optional<MemoryDumpCallbackResult> result;
+  EXPECT_TRUE(RequestProcessDumpAndWait(MemoryDumpType::EXPLICITLY_TRIGGERED,
+                                        MemoryDumpLevelOfDetail::LIGHT,
+                                        &result));
   DisableTracing();
 
-  // We shouldn't see any of the 99 values from above.
-  EXPECT_TRUE(last_callback_success_);
-  ASSERT_EQ(1u, GetResults()->size());
-  MemoryDumpCallbackResult result = GetResults()->front();
+  ASSERT_TRUE(result);
+
   // For malloc we only count the root "malloc" not children "malloc/*".
-  EXPECT_EQ(1u, result.chrome_dump.malloc_total_kb);
+  EXPECT_EQ(1u, result->chrome_dump.malloc_total_kb);
+
   // For blink_gc we only count the root "blink_gc" not children "blink_gc/*".
-  EXPECT_EQ(2u, result.chrome_dump.blink_gc_total_kb);
+  EXPECT_EQ(2u, result->chrome_dump.blink_gc_total_kb);
+
   // For v8 we count the children ("v8/*") as the root total is not given.
-  EXPECT_EQ(3u, result.chrome_dump.v8_total_kb);
+  EXPECT_EQ(3u, result->chrome_dump.v8_total_kb);
+
   // partition_alloc has partition_alloc/allocated_objects/* which is a subset
   // of partition_alloc/partitions/* so we only count the latter.
-  EXPECT_EQ(4u, result.chrome_dump.partition_alloc_total_kb);
+  EXPECT_EQ(4u, result->chrome_dump.partition_alloc_total_kb);
+
   // resident_set_kb should read from process_totals.
-  EXPECT_EQ(5u, result.os_dump.resident_set_kb);
+  EXPECT_EQ(5u, result->os_dump.resident_set_kb);
 };
 
 }  // namespace trace_event
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java
index d3bae3652..ddfd3be 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java
@@ -505,7 +505,11 @@
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
-        RecordUserAction.record("ClearBrowsingData_DialogCreated");
+        // Don't record this action if TabsInCBD is enabled because this class is created twice.
+        // The action will be recorded in ClearBrowsingDataTabsFragment instead.
+        if (!ClearBrowsingDataTabsFragment.isFeatureEnabled()) {
+            RecordUserAction.record("ClearBrowsingData_DialogCreated");
+        }
         mMaxImportantSites = BrowsingDataBridge.getMaxImportantSites();
         BrowsingDataBridge.getInstance().requestInfoAboutOtherFormsOfBrowsingHistory(this);
         getActivity().setTitle(R.string.clear_browsing_data_title);
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataTabsFragment.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataTabsFragment.java
index c45923a9..59814cb 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataTabsFragment.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataTabsFragment.java
@@ -17,6 +17,7 @@
 import android.view.View;
 import android.view.ViewGroup;
 
+import org.chromium.base.metrics.RecordUserAction;
 import org.chromium.chrome.R;
 import org.chromium.chrome.browser.ChromeFeatureList;
 import org.chromium.chrome.browser.preferences.PrefServiceBridge;
@@ -31,7 +32,9 @@
     public static final int CBD_TAB_COUNT = 2;
 
     public ClearBrowsingDataTabsFragment() {
-        // TODO(dullweber): Remove this migration after after three milestones (probably M61)
+        // TODO(dullweber): Remove this migration after M62, most users should
+        // be migrated and the others will just get the default settings for
+        // the basic tab.
         PrefServiceBridge.getInstance().migrateBrowsingDataPreferences();
     }
 
@@ -45,6 +48,7 @@
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
+        RecordUserAction.record("ClearBrowsingData_DialogCreated");
     }
 
     /*
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/ExampleUiCaptureTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/ExampleUiCaptureTest.java
index 15f48e2..d88487d7 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/ExampleUiCaptureTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/ExampleUiCaptureTest.java
@@ -32,6 +32,7 @@
 @RunWith(ChromeJUnit4ClassRunner.class)
 @CommandLineFlags.Add({ChromeSwitches.DISABLE_FIRST_RUN_EXPERIENCE})
 @Restriction(RESTRICTION_TYPE_PHONE) // Tab switcher button only exists on phones.
+@ScreenShooter.Directory("Example")
 public class ExampleUiCaptureTest {
     @Rule
     public ChromeActivityTestRule<ChromeTabbedActivity> mActivityTestRule =
@@ -53,9 +54,10 @@
     @Test
     @SmallTest
     @Feature({"UiCatalogue"})
+    @ScreenShooter.Directory("TabSwitcher")
     public void testCaptureTabSwitcher() throws IOException, InterruptedException {
         mScreenShooter.shoot("NTP");
         Espresso.onView(ViewMatchers.withId(R.id.tab_switcher_button)).perform(ViewActions.click());
-        mScreenShooter.shoot("Tab_switcher");
+        mScreenShooter.shoot("Tab switcher");
     }
 }
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetUiCaptureTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetUiCaptureTest.java
index 9d5cd6b..e42d34f 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetUiCaptureTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetUiCaptureTest.java
@@ -67,6 +67,7 @@
     @Test
     @MediumTest
     @Feature({"UiCatalogue"})
+    @ScreenShooter.Directory("Suggestions Bottom Sheet Position")
     public void testBottomSheetPosition() throws Exception {
         setSheetState(BottomSheet.SHEET_STATE_HALF);
         mScreenShooter.shoot("Half");
@@ -79,6 +80,7 @@
     @Test
     @MediumTest
     @Feature({"UiCatalogue"})
+    @ScreenShooter.Directory("Suggestions Context Menu")
     public void testContextMenu() throws Exception {
         // Needs to be "Full" to for this to work on small screens in landscape.
         setSheetState(BottomSheet.SHEET_STATE_FULL);
diff --git a/chrome/app/chromeos_strings.grdp b/chrome/app/chromeos_strings.grdp
index 54dd2c3..e0f48a3 100644
--- a/chrome/app/chromeos_strings.grdp
+++ b/chrome/app/chromeos_strings.grdp
@@ -76,6 +76,27 @@
   <message name="IDS_FILE_SYSTEM_PROVIDER_MANY_UNRESPONSIVE_WARNING" desc="A warning shown in a notification that more than one operations are taking longer than expected.">
     Some operations are taking longer than expected. Do you want to abort them?
   </message>
+  <message name="IDS_FILE_BROWSER_DRIVE_CONFIRM_TD_MEMBERS_LOSE_ACCESS" desc="Part of message in the confirmation dialog box when moving a file out of a Team Drive.">
+    Members of '<ph name="SOURCE_NAME">$1</ph>' will lose access unless these items are shared with them.
+  </message>
+  <message name="IDS_FILE_BROWSER_DRIVE_CONFIRM_CANNOT_MOVE_BACK_TO_TEAM_DRIVE" desc="Part of message in the confirmation dialog box when moving a file from Team Drives to My Drive to tell that the operation is not undoable.">
+    The items cannot be moved back into '<ph name="DESTINATION_NAME">$1</ph>', so you won't be able to undo this action.
+  </message>
+  <message name="IDS_FILE_BROWSER_DRIVE_CONFIRM_TD_MEMBERS_GAIN_ACCESS" desc="Part of message in the confirmation dialog box when moving or copying files into a Team Drive.">
+    Members of '<ph name="DESTINATION_NAME">$1</ph>' will gain access to these items.
+  </message>
+  <message name="IDS_FILE_BROWSER_DRIVE_CONFIRM_TD_MEMBERS_GAIN_ACCESS_TO_COPY" desc="Part of message in the confirmation dialog box when copying files into a Team Drive.">
+    Members of '<ph name="DESTINATION_NAME">$1</ph>' will gain access to the copy of these items.
+  </message>
+  <message name="IDS_FILE_BROWSER_DRIVE_CONFIRM_OWNERSHIP_TRANSFER" desc="Part of message in the confirmation dialog box when moving files between two Team Drives that belong to different domains.">
+    Ownership will be transferred to <ph name="DESTINATION_DOMAIN">$1</ph>.
+  </message>
+  <message name="IDS_FILE_BROWSER_CONFIRM_COPY_BUTTON_LABEL" desc="Button label for approving file copy operation in the confirmation dialog box. This is placed next to CANCEL button.">
+    Copy
+  </message>
+  <message name="IDS_FILE_BROWSER_CONFIRM_MOVE_BUTTON_LABEL" desc="Button label for approving file move operation in the confirmation dialog box. This is placed next to CANCEL button.">
+    Move
+  </message>
   <message name="IDS_FILE_SYSTEM_PROVIDER_UNRESPONSIVE_ABORT_BUTTON" desc="Label of the button on the notification about an operation(s) taking to long.">
     Abort
   </message>
diff --git a/chrome/browser/DEPS b/chrome/browser/DEPS
index 1baf29e..cfe68539 100644
--- a/chrome/browser/DEPS
+++ b/chrome/browser/DEPS
@@ -46,7 +46,7 @@
   "+sandbox/win/src",  # The path doesn't say it, but this is the Windows sandbox.
   "+services/data_decoder/public/cpp",
   "+services/device/public/cpp/device_features.h",
-  "+services/identity/public/interfaces",
+  "+services/identity/public",
   "+services/preferences/public/cpp",
   "+services/preferences/public/interfaces",
   "+services/resource_coordinator/public/cpp",
diff --git a/chrome/browser/android/browsing_data/browsing_data_bridge.cc b/chrome/browser/android/browsing_data/browsing_data_bridge.cc
index 0657c393..d728477 100644
--- a/chrome/browser/android/browsing_data/browsing_data_bridge.cc
+++ b/chrome/browser/android/browsing_data/browsing_data_bridge.cc
@@ -16,6 +16,7 @@
 #include "base/android/jni_array.h"
 #include "base/android/jni_string.h"
 #include "base/android/jni_weak_ref.h"
+#include "base/feature_list.h"
 #include "base/metrics/histogram_macros.h"
 #include "base/scoped_observer.h"
 #include "base/values.h"
@@ -26,8 +27,10 @@
 #include "chrome/browser/profiles/profile_manager.h"
 #include "chrome/browser/sync/profile_sync_service_factory.h"
 #include "chrome/common/channel_info.h"
+#include "chrome/common/chrome_features.h"
 #include "components/browser_sync/profile_sync_service.h"
 #include "components/browsing_data/core/history_notice_utils.h"
+#include "components/browsing_data/core/pref_names.h"
 #include "components/prefs/pref_service.h"
 #include "content/public/browser/browser_context.h"
 #include "content/public/browser/browsing_data_filter_builder.h"
@@ -78,6 +81,13 @@
   std::vector<int> data_types_vector;
   base::android::JavaIntArrayToIntVector(env, data_types, &data_types_vector);
 
+  if (base::FeatureList::IsEnabled(features::kTabsInCbd)) {
+    int tab = GetOriginalProfile()->GetPrefs()->GetInteger(
+        browsing_data::prefs::kLastClearBrowsingDataTab);
+    browsing_data::RecordDeletionFromTab(
+        static_cast<browsing_data::ClearBrowsingDataTab>(tab));
+  }
+
   int remove_mask = 0;
   for (const int data_type : data_types_vector) {
     switch (static_cast<browsing_data::BrowsingDataType>(data_type)) {
diff --git a/chrome/browser/android/preferences/pref_service_bridge.cc b/chrome/browser/android/preferences/pref_service_bridge.cc
index fbba31d..40a3c6e 100644
--- a/chrome/browser/android/preferences/pref_service_bridge.cc
+++ b/chrome/browser/android/preferences/pref_service_bridge.cc
@@ -550,6 +550,8 @@
   DCHECK_GE(time_period, 0);
   DCHECK_LE(time_period,
             static_cast<int>(browsing_data::TimePeriod::TIME_PERIOD_LAST));
+  browsing_data::RecordTimePeriodChange(
+      static_cast<browsing_data::TimePeriod>(time_period));
   GetPrefService()->SetInteger(browsing_data::GetTimePeriodPreferenceName(
                                    ToTabEnum(clear_browsing_data_tab)),
                                time_period);
diff --git a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
index 601de50..abe1f967 100644
--- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
+++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
@@ -728,6 +728,7 @@
   //////////////////////////////////////////////////////////////////////////////
   // DATA_TYPE_CONTENT_SETTINGS
   if (remove_mask & DATA_TYPE_CONTENT_SETTINGS) {
+    base::RecordAction(UserMetricsAction("ClearBrowsingData_ContentSettings"));
     const auto* registry =
         content_settings::ContentSettingsRegistry::GetInstance();
     auto* map = HostContentSettingsMapFactory::GetForProfile(profile_);
diff --git a/chrome/browser/chromeos/BUILD.gn b/chrome/browser/chromeos/BUILD.gn
index 4b8b2e5..60c7cbc 100644
--- a/chrome/browser/chromeos/BUILD.gn
+++ b/chrome/browser/chromeos/BUILD.gn
@@ -228,12 +228,8 @@
     "arc/accessibility/arc_accessibility_helper_bridge.h",
     "arc/accessibility/ax_tree_source_arc.cc",
     "arc/accessibility/ax_tree_source_arc.h",
-    "arc/arc_auth_context.cc",
-    "arc/arc_auth_context.h",
     "arc/arc_auth_notification.cc",
     "arc/arc_auth_notification.h",
-    "arc/arc_auth_service.cc",
-    "arc/arc_auth_service.h",
     "arc/arc_migration_constants.h",
     "arc/arc_migration_guide_notification.cc",
     "arc/arc_migration_guide_notification.h",
@@ -252,6 +248,10 @@
     "arc/auth/arc_active_directory_enrollment_token_fetcher.cc",
     "arc/auth/arc_active_directory_enrollment_token_fetcher.h",
     "arc/auth/arc_auth_code_fetcher.h",
+    "arc/auth/arc_auth_context.cc",
+    "arc/auth/arc_auth_context.h",
+    "arc/auth/arc_auth_service.cc",
+    "arc/auth/arc_auth_service.h",
     "arc/auth/arc_background_auth_code_fetcher.cc",
     "arc/auth/arc_background_auth_code_fetcher.h",
     "arc/auth/arc_fetcher_base.h",
diff --git a/chrome/browser/chromeos/arc/arc_service_launcher.cc b/chrome/browser/chromeos/arc/arc_service_launcher.cc
index 175a757d..819be95 100644
--- a/chrome/browser/chromeos/arc/arc_service_launcher.cc
+++ b/chrome/browser/chromeos/arc/arc_service_launcher.cc
@@ -12,10 +12,10 @@
 #include "base/threading/sequenced_worker_pool.h"
 #include "chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_service.h"
 #include "chrome/browser/chromeos/arc/accessibility/arc_accessibility_helper_bridge.h"
-#include "chrome/browser/chromeos/arc/arc_auth_service.h"
 #include "chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.h"
 #include "chrome/browser/chromeos/arc/arc_session_manager.h"
 #include "chrome/browser/chromeos/arc/arc_util.h"
+#include "chrome/browser/chromeos/arc/auth/arc_auth_service.h"
 #include "chrome/browser/chromeos/arc/boot_phase_monitor/arc_boot_phase_monitor_bridge.h"
 #include "chrome/browser/chromeos/arc/downloads_watcher/arc_downloads_watcher_service.h"
 #include "chrome/browser/chromeos/arc/enterprise/arc_enterprise_reporting_service.h"
diff --git a/chrome/browser/chromeos/arc/arc_session_manager.cc b/chrome/browser/chromeos/arc/arc_session_manager.cc
index f930bcc..ae855e03 100644
--- a/chrome/browser/chromeos/arc/arc_session_manager.cc
+++ b/chrome/browser/chromeos/arc/arc_session_manager.cc
@@ -14,13 +14,13 @@
 #include "base/strings/string16.h"
 #include "base/threading/thread_task_runner_handle.h"
 #include "base/time/time.h"
-#include "chrome/browser/chromeos/arc/arc_auth_context.h"
 #include "chrome/browser/chromeos/arc/arc_auth_notification.h"
-#include "chrome/browser/chromeos/arc/arc_auth_service.h"
 #include "chrome/browser/chromeos/arc/arc_migration_guide_notification.h"
 #include "chrome/browser/chromeos/arc/arc_optin_uma.h"
 #include "chrome/browser/chromeos/arc/arc_support_host.h"
 #include "chrome/browser/chromeos/arc/arc_util.h"
+#include "chrome/browser/chromeos/arc/auth/arc_auth_context.h"
+#include "chrome/browser/chromeos/arc/auth/arc_auth_service.h"
 #include "chrome/browser/chromeos/arc/optin/arc_terms_of_service_default_negotiator.h"
 #include "chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.h"
 #include "chrome/browser/chromeos/arc/policy/arc_android_management_checker.h"
diff --git a/chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher_browsertest.cc b/chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher_browsertest.cc
index 2f7d5e4..58d6a007 100644
--- a/chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher_browsertest.cc
+++ b/chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher_browsertest.cc
@@ -11,10 +11,10 @@
 #include "base/memory/ptr_util.h"
 #include "base/run_loop.h"
 #include "chrome/browser/browser_process.h"
-#include "chrome/browser/chromeos/arc/arc_auth_service.h"
 #include "chrome/browser/chromeos/arc/arc_session_manager.h"
 #include "chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.h"
 #include "chrome/browser/chromeos/arc/auth/arc_auth_code_fetcher.h"
+#include "chrome/browser/chromeos/arc/auth/arc_auth_service.h"
 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h"
 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h"
 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
diff --git a/chrome/browser/chromeos/arc/arc_auth_context.cc b/chrome/browser/chromeos/arc/auth/arc_auth_context.cc
similarity index 98%
rename from chrome/browser/chromeos/arc/arc_auth_context.cc
rename to chrome/browser/chromeos/arc/auth/arc_auth_context.cc
index 4a42c272..71f0330 100644
--- a/chrome/browser/chromeos/arc/arc_auth_context.cc
+++ b/chrome/browser/chromeos/arc/auth/arc_auth_context.cc
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "chrome/browser/chromeos/arc/arc_auth_context.h"
+#include "chrome/browser/chromeos/arc/auth/arc_auth_context.h"
 
 #include "base/callback_helpers.h"
 #include "base/strings/stringprintf.h"
diff --git a/chrome/browser/chromeos/arc/arc_auth_context.h b/chrome/browser/chromeos/arc/auth/arc_auth_context.h
similarity index 94%
rename from chrome/browser/chromeos/arc/arc_auth_context.h
rename to chrome/browser/chromeos/arc/auth/arc_auth_context.h
index b3b8b46..291a2c9 100644
--- a/chrome/browser/chromeos/arc/arc_auth_context.h
+++ b/chrome/browser/chromeos/arc/auth/arc_auth_context.h
@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_H_
-#define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_H_
+#ifndef CHROME_BROWSER_CHROMEOS_ARC_AUTH_ARC_AUTH_CONTEXT_H_
+#define CHROME_BROWSER_CHROMEOS_ARC_AUTH_ARC_AUTH_CONTEXT_H_
 
 #include <memory>
 #include <string>
@@ -100,4 +100,4 @@
 
 }  // namespace arc
 
-#endif  // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_H_
+#endif  // CHROME_BROWSER_CHROMEOS_ARC_AUTH_ARC_AUTH_CONTEXT_H_
diff --git a/chrome/browser/chromeos/arc/arc_auth_service.cc b/chrome/browser/chromeos/arc/auth/arc_auth_service.cc
similarity index 99%
rename from chrome/browser/chromeos/arc/arc_auth_service.cc
rename to chrome/browser/chromeos/arc/auth/arc_auth_service.cc
index 06a05bd..478bb5c 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.cc
+++ b/chrome/browser/chromeos/arc/auth/arc_auth_service.cc
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "chrome/browser/chromeos/arc/arc_auth_service.h"
+#include "chrome/browser/chromeos/arc/auth/arc_auth_service.h"
 
 #include <utility>
 
diff --git a/chrome/browser/chromeos/arc/arc_auth_service.h b/chrome/browser/chromeos/arc/auth/arc_auth_service.h
similarity index 92%
rename from chrome/browser/chromeos/arc/arc_auth_service.h
rename to chrome/browser/chromeos/arc/auth/arc_auth_service.h
index 60f16260..7e58423 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.h
+++ b/chrome/browser/chromeos/arc/auth/arc_auth_service.h
@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
-#define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
+#ifndef CHROME_BROWSER_CHROMEOS_ARC_AUTH_ARC_AUTH_SERVICE_H_
+#define CHROME_BROWSER_CHROMEOS_ARC_AUTH_ARC_AUTH_SERVICE_H_
 
 #include <memory>
 #include <string>
@@ -21,7 +21,6 @@
 class ArcFetcherBase;
 
 // Implementation of ARC authorization.
-// TODO(hidehiko): Move to c/b/c/arc/auth with adding tests.
 class ArcAuthService : public ArcService,
                        public mojom::AuthHost,
                        public InstanceHolder<mojom::AuthInstance>::Observer {
@@ -85,4 +84,4 @@
 
 }  // namespace arc
 
-#endif  // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
+#endif  // CHROME_BROWSER_CHROMEOS_ARC_AUTH_ARC_AUTH_SERVICE_H_
diff --git a/chrome/browser/chromeos/arc/auth/arc_auth_service_browsertest.cc b/chrome/browser/chromeos/arc/auth/arc_auth_service_browsertest.cc
index 477a208..469d6da 100644
--- a/chrome/browser/chromeos/arc/auth/arc_auth_service_browsertest.cc
+++ b/chrome/browser/chromeos/arc/auth/arc_auth_service_browsertest.cc
@@ -10,12 +10,12 @@
 #include "base/macros.h"
 #include "base/memory/ptr_util.h"
 #include "base/run_loop.h"
-#include "chrome/browser/chromeos/arc/arc_auth_context.h"
 #include "chrome/browser/chromeos/arc/arc_auth_notification.h"
-#include "chrome/browser/chromeos/arc/arc_auth_service.h"
 #include "chrome/browser/chromeos/arc/arc_service_launcher.h"
 #include "chrome/browser/chromeos/arc/arc_session_manager.h"
 #include "chrome/browser/chromeos/arc/arc_util.h"
+#include "chrome/browser/chromeos/arc/auth/arc_auth_context.h"
+#include "chrome/browser/chromeos/arc/auth/arc_auth_service.h"
 #include "chrome/browser/chromeos/arc/auth/arc_background_auth_code_fetcher.h"
 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h"
 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h"
diff --git a/chrome/browser/chromeos/arc/auth/arc_background_auth_code_fetcher.h b/chrome/browser/chromeos/arc/auth/arc_background_auth_code_fetcher.h
index b9be758..5774544 100644
--- a/chrome/browser/chromeos/arc/auth/arc_background_auth_code_fetcher.h
+++ b/chrome/browser/chromeos/arc/auth/arc_background_auth_code_fetcher.h
@@ -11,9 +11,9 @@
 #include "base/callback.h"
 #include "base/macros.h"
 #include "base/memory/weak_ptr.h"
-#include "chrome/browser/chromeos/arc/arc_auth_context.h"
 #include "chrome/browser/chromeos/arc/arc_optin_uma.h"
 #include "chrome/browser/chromeos/arc/auth/arc_auth_code_fetcher.h"
+#include "chrome/browser/chromeos/arc/auth/arc_auth_context.h"
 #include "google_apis/gaia/oauth2_token_service.h"
 #include "net/url_request/url_fetcher_delegate.h"
 
diff --git a/chrome/browser/chromeos/arc/auth/arc_manual_auth_code_fetcher.cc b/chrome/browser/chromeos/arc/auth/arc_manual_auth_code_fetcher.cc
index 5a7d51b2..e1b14d8 100644
--- a/chrome/browser/chromeos/arc/auth/arc_manual_auth_code_fetcher.cc
+++ b/chrome/browser/chromeos/arc/auth/arc_manual_auth_code_fetcher.cc
@@ -7,8 +7,8 @@
 #include "base/bind.h"
 #include "base/callback_helpers.h"
 #include "base/logging.h"
-#include "chrome/browser/chromeos/arc/arc_auth_context.h"
 #include "chrome/browser/chromeos/arc/arc_optin_uma.h"
+#include "chrome/browser/chromeos/arc/auth/arc_auth_context.h"
 
 namespace arc {
 
diff --git a/chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher_browsertest.cc b/chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher_browsertest.cc
index 93e3a4c1..9b72db7e 100644
--- a/chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher_browsertest.cc
+++ b/chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher_browsertest.cc
@@ -11,8 +11,8 @@
 #include "base/memory/ptr_util.h"
 #include "base/run_loop.h"
 #include "chrome/browser/browser_process.h"
-#include "chrome/browser/chromeos/arc/arc_auth_service.h"
 #include "chrome/browser/chromeos/arc/arc_session_manager.h"
+#include "chrome/browser/chromeos/arc/auth/arc_auth_service.h"
 #include "chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.h"
 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h"
 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h"
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc
index b90d8c9..337a792 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc
@@ -108,6 +108,20 @@
              IDS_FILE_BROWSER_DRIVE_BUY_MORE_SPACE_LINK);
   SET_STRING("DRIVE_CANNOT_REACH", IDS_FILE_BROWSER_DRIVE_CANNOT_REACH);
   SET_STRING("DRIVE_DIRECTORY_LABEL", IDS_FILE_BROWSER_DRIVE_DIRECTORY_LABEL);
+  SET_STRING("DRIVE_CONFIRM_TD_MEMBERS_LOSE_ACCESS",
+             IDS_FILE_BROWSER_DRIVE_CONFIRM_TD_MEMBERS_LOSE_ACCESS);
+  SET_STRING("DRIVE_CONFIRM_CANNOT_MOVE_BACK_TO_TEAM_DRIVE",
+             IDS_FILE_BROWSER_DRIVE_CONFIRM_CANNOT_MOVE_BACK_TO_TEAM_DRIVE);
+  SET_STRING("DRIVE_CONFIRM_TD_MEMBERS_GAIN_ACCESS_TO_COPY",
+             IDS_FILE_BROWSER_DRIVE_CONFIRM_TD_MEMBERS_GAIN_ACCESS_TO_COPY);
+  SET_STRING("DRIVE_CONFIRM_TD_MEMBERS_GAIN_ACCESS",
+             IDS_FILE_BROWSER_DRIVE_CONFIRM_TD_MEMBERS_GAIN_ACCESS);
+  SET_STRING("DRIVE_CONFIRM_OWNERSHIP_TRANSFER",
+             IDS_FILE_BROWSER_DRIVE_CONFIRM_OWNERSHIP_TRANSFER);
+  SET_STRING("CONFIRM_MOVE_BUTTON_LABEL",
+             IDS_FILE_BROWSER_CONFIRM_MOVE_BUTTON_LABEL);
+  SET_STRING("CONFIRM_COPY_BUTTON_LABEL",
+             IDS_FILE_BROWSER_CONFIRM_COPY_BUTTON_LABEL);
   SET_STRING("DRIVE_LEARN_MORE", IDS_FILE_BROWSER_DRIVE_LEARN_MORE);
   SET_STRING("DRIVE_MENU_HELP", IDS_FILE_BROWSER_DRIVE_MENU_HELP);
   SET_STRING("DRIVE_MOBILE_CONNECTION_OPTION",
diff --git a/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc b/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc
index 835f511..b0681d7 100644
--- a/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc
+++ b/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc
@@ -178,7 +178,7 @@
     case AccountType::UNKNOWN:
     case AccountType::GOOGLE:
       // TODO(tnagel): Return nullptr for unknown accounts once AccountId
-      // migration is finished.
+      // migration is finished.  (KioskAppManager still needs to be migrated.)
       if (!user->HasGaiaAccount()) {
         return {};
       }
diff --git a/chrome/browser/extensions/api/identity/identity_apitest.cc b/chrome/browser/extensions/api/identity/identity_apitest.cc
index 2d102a7..9bada831 100644
--- a/chrome/browser/extensions/api/identity/identity_apitest.cc
+++ b/chrome/browser/extensions/api/identity/identity_apitest.cc
@@ -297,15 +297,16 @@
 
   void StartLoginAccessTokenRequest() override {
     if (auto_login_access_token_) {
-      if (login_access_token_result_) {
-        OnGetTokenSuccess(login_token_request_.get(),
-                          "access_token",
-                          base::Time::Now() + base::TimeDelta::FromHours(1LL));
-      } else {
-        GoogleServiceAuthError error(
+      base::Optional<std::string> access_token("access_token");
+      GoogleServiceAuthError error = GoogleServiceAuthError::AuthErrorNone();
+      if (!login_access_token_result_) {
+        access_token = base::nullopt;
+        error = GoogleServiceAuthError(
             GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS);
-        OnGetTokenFailure(login_token_request_.get(), error);
       }
+      OnGetAccessTokenComplete(
+          access_token, base::Time::Now() + base::TimeDelta::FromHours(1LL),
+          error);
     } else {
       // Make a request to the token service. The test now must tell
       // the token service to issue an access token (or an error).
diff --git a/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc b/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc
index 3ebce8a..8a973f1 100644
--- a/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc
+++ b/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc
@@ -15,8 +15,12 @@
 #include "components/signin/core/browser/profile_oauth2_token_service.h"
 #include "components/signin/core/browser/signin_manager.h"
 #include "components/signin/core/common/profile_management_switches.h"
+#include "content/public/common/service_manager_connection.h"
 #include "extensions/common/extension_l10n_util.h"
 #include "google_apis/gaia/gaia_urls.h"
+#include "services/identity/public/cpp/scope_set.h"
+#include "services/identity/public/interfaces/constants.mojom.h"
+#include "services/service_manager/public/cpp/connector.h"
 
 #if defined(OS_CHROMEOS)
 #include "chrome/browser/app_mode/app_mode_utils.h"
@@ -54,7 +58,10 @@
 namespace identity = api::identity;
 
 IdentityGetAuthTokenFunction::IdentityGetAuthTokenFunction()
-    : OAuth2TokenService::Consumer("extensions_identity_api"),
+    :
+#if defined(OS_CHROMEOS)
+      OAuth2TokenService::Consumer("extensions_identity_api"),
+#endif
       interactive_(false),
       should_prompt_for_scopes_(false),
       should_prompt_for_signin_(false) {
@@ -483,37 +490,53 @@
   CompleteFunctionWithResult(access_token);
 }
 
+void IdentityGetAuthTokenFunction::OnGetAccessTokenComplete(
+    const base::Optional<std::string>& access_token,
+    base::Time expiration_time,
+    const GoogleServiceAuthError& error) {
+  // By the time we get here we should no longer have an outstanding O2TS
+  // request (either because we never made a request to O2TS directly or because
+  // the request was already fulfilled).
+  DCHECK(!login_token_request_);
+  if (access_token) {
+    TRACE_EVENT_ASYNC_STEP_PAST1("identity", "IdentityGetAuthTokenFunction",
+                                 this, "OnGetAccessTokenComplete", "account",
+                                 token_key_->account_id);
+
+    StartGaiaRequest(access_token.value());
+  } else {
+    TRACE_EVENT_ASYNC_STEP_PAST1("identity", "IdentityGetAuthTokenFunction",
+                                 this, "OnGetAccessTokenComplete", "error",
+                                 error.ToString());
+
+    OnGaiaFlowFailure(GaiaWebAuthFlow::SERVICE_AUTH_ERROR, error,
+                      std::string());
+  }
+}
+
+#if defined(OS_CHROMEOS)
 void IdentityGetAuthTokenFunction::OnGetTokenSuccess(
     const OAuth2TokenService::Request* request,
     const std::string& access_token,
     const base::Time& expiration_time) {
-  TRACE_EVENT_ASYNC_STEP_PAST1("identity",
-                               "IdentityGetAuthTokenFunction",
-                               this,
-                               "OnGetTokenSuccess",
-                               "account",
-                               request->GetAccountId());
   login_token_request_.reset();
-  StartGaiaRequest(access_token);
+  OnGetAccessTokenComplete(access_token, expiration_time,
+                           GoogleServiceAuthError::AuthErrorNone());
 }
 
 void IdentityGetAuthTokenFunction::OnGetTokenFailure(
     const OAuth2TokenService::Request* request,
     const GoogleServiceAuthError& error) {
-  TRACE_EVENT_ASYNC_STEP_PAST1("identity",
-                               "IdentityGetAuthTokenFunction",
-                               this,
-                               "OnGetTokenFailure",
-                               "error",
-                               error.ToString());
   login_token_request_.reset();
-  OnGaiaFlowFailure(GaiaWebAuthFlow::SERVICE_AUTH_ERROR, error, std::string());
+  OnGetAccessTokenComplete(base::nullopt, base::Time(), error);
 }
+#endif
 
 void IdentityGetAuthTokenFunction::Shutdown() {
   gaia_web_auth_flow_.reset();
   signin_flow_.reset();
   login_token_request_.reset();
+  identity_manager_.reset();
   extensions::IdentityAPI::GetFactoryInstance()
       ->Get(GetProfile())
       ->mint_queue()
@@ -550,8 +573,6 @@
 #endif
 
 void IdentityGetAuthTokenFunction::StartLoginAccessTokenRequest() {
-  ProfileOAuth2TokenService* service =
-      ProfileOAuth2TokenServiceFactory::GetForProfile(GetProfile());
 #if defined(OS_CHROMEOS)
   if (chrome::IsRunningInForcedAppMode()) {
     std::string app_client_id;
@@ -559,6 +580,8 @@
     if (chromeos::UserSessionManager::GetInstance()->
             GetAppModeChromeClientOAuthInfo(&app_client_id,
                                             &app_client_secret)) {
+      ProfileOAuth2TokenService* service =
+          ProfileOAuth2TokenServiceFactory::GetForProfile(GetProfile());
       login_token_request_ =
           service->StartRequestForClient(token_key_->account_id,
                                          app_client_id,
@@ -569,8 +592,12 @@
     }
   }
 #endif
-  login_token_request_ = service->StartRequest(
-      token_key_->account_id, OAuth2TokenService::ScopeSet(), this);
+
+  ConnectToIdentityManager();
+  identity_manager_->GetAccessToken(
+      token_key_->account_id, ::identity::ScopeSet(), "extensions_identity_api",
+      base::Bind(&IdentityGetAuthTokenFunction::OnGetAccessTokenComplete,
+                 base::Unretained(this)));
 }
 
 void IdentityGetAuthTokenFunction::StartGaiaRequest(
@@ -644,4 +671,13 @@
   return client_id;
 }
 
+void IdentityGetAuthTokenFunction::ConnectToIdentityManager() {
+  if (identity_manager_.is_bound())
+    return;
+
+  content::BrowserContext::GetConnectorFor(GetProfile())
+      ->BindInterface(::identity::mojom::kServiceName,
+                      mojo::MakeRequest(&identity_manager_));
+}
+
 }  // namespace extensions
diff --git a/chrome/browser/extensions/api/identity/identity_get_auth_token_function.h b/chrome/browser/extensions/api/identity/identity_get_auth_token_function.h
index 9814b23..a0694545 100644
--- a/chrome/browser/extensions/api/identity/identity_get_auth_token_function.h
+++ b/chrome/browser/extensions/api/identity/identity_get_auth_token_function.h
@@ -12,6 +12,7 @@
 #include "extensions/browser/extension_function_histogram_value.h"
 #include "google_apis/gaia/oauth2_mint_token_flow.h"
 #include "google_apis/gaia/oauth2_token_service.h"
+#include "services/identity/public/interfaces/identity_manager.mojom.h"
 
 namespace extensions {
 
@@ -36,8 +37,10 @@
                                      public GaiaWebAuthFlow::Delegate,
                                      public IdentityMintRequestQueue::Request,
                                      public OAuth2MintTokenFlow::Delegate,
-                                     public IdentitySigninFlow::Delegate,
-                                     public OAuth2TokenService::Consumer {
+#if defined(OS_CHROMEOS)
+                                     public OAuth2TokenService::Consumer,
+#endif
+                                     public IdentitySigninFlow::Delegate {
  public:
   DECLARE_EXTENSION_FUNCTION("identity.getAuthToken",
                              EXPERIMENTAL_IDENTITY_GETAUTHTOKEN);
@@ -67,12 +70,23 @@
   // Starts a login access token request.
   virtual void StartLoginAccessTokenRequest();
 
+// TODO(blundell): Investigate feasibility of moving the ChromeOS use case
+// to use the Identity Service instead of being an
+// OAuth2TokenService::Consumer.
+#if defined(OS_CHROMEOS)
   // OAuth2TokenService::Consumer implementation:
   void OnGetTokenSuccess(const OAuth2TokenService::Request* request,
                          const std::string& access_token,
                          const base::Time& expiration_time) override;
   void OnGetTokenFailure(const OAuth2TokenService::Request* request,
                          const GoogleServiceAuthError& error) override;
+#endif
+
+  // Invoked on completion of IdentityManager::GetAccessToken().
+  // Exposed for testing.
+  void OnGetAccessTokenComplete(const base::Optional<std::string>& access_token,
+                                base::Time expiration_time,
+                                const GoogleServiceAuthError& error);
 
   // Starts a mint token request to GAIA.
   // Exposed for testing.
@@ -138,6 +152,9 @@
 
   std::string GetOAuth2ClientId() const;
 
+  // Connects to the Identity Manager. No-op if already connected.
+  void ConnectToIdentityManager();
+
   bool interactive_;
   bool should_prompt_for_scopes_;
   IdentityMintRequestQueue::MintType mint_token_flow_type_;
@@ -152,6 +169,8 @@
   IssueAdviceInfo issue_advice_;
   std::unique_ptr<GaiaWebAuthFlow> gaia_web_auth_flow_;
   std::unique_ptr<IdentitySigninFlow> signin_flow_;
+
+  identity::mojom::IdentityManagerPtr identity_manager_;
 };
 
 }  // namespace extensions
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 70be446..a6d7fc4 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -75,6 +75,7 @@
 #include "chrome/browser/push_messaging/push_messaging_service_impl.h"
 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
 #include "chrome/browser/sessions/session_service_factory.h"
+#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
 #include "chrome/browser/signin/signin_manager_factory.h"
 #include "chrome/browser/signin/signin_ui_util.h"
 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h"
@@ -1393,5 +1394,8 @@
 
 std::unique_ptr<service_manager::Service> ProfileImpl::CreateIdentityService() {
   SigninManagerBase* signin_manager = SigninManagerFactory::GetForProfile(this);
-  return base::MakeUnique<identity::IdentityService>(signin_manager);
+  ProfileOAuth2TokenService* token_service =
+      ProfileOAuth2TokenServiceFactory::GetForProfile(this);
+  return base::MakeUnique<identity::IdentityService>(signin_manager,
+                                                     token_service);
 }
diff --git a/chrome/browser/ui/search/search_tab_helper.cc b/chrome/browser/ui/search/search_tab_helper.cc
index 01dd00a..99d5880b 100644
--- a/chrome/browser/ui/search/search_tab_helper.cc
+++ b/chrome/browser/ui/search/search_tab_helper.cc
@@ -93,22 +93,17 @@
 
   base::TimeDelta duration =
       base::TimeTicks::Now() - core_tab_helper->new_tab_start_time();
-  bool is_google = google_util::IsGoogleDomainUrl(
-      contents->GetController().GetLastCommittedEntry()->GetURL(),
-      google_util::ALLOW_SUBDOMAIN, google_util::DISALLOW_NON_STANDARD_PORTS);
   if (IsCacheableNTP(contents)) {
-    if (is_google) {
+    if (google_util::IsGoogleDomainUrl(
+            contents->GetController().GetLastCommittedEntry()->GetURL(),
+            google_util::ALLOW_SUBDOMAIN,
+            google_util::DISALLOW_NON_STANDARD_PORTS)) {
       UMA_HISTOGRAM_TIMES("Tab.NewTabOnload.Google", duration);
     } else {
       UMA_HISTOGRAM_TIMES("Tab.NewTabOnload.Other", duration);
     }
   } else {
     UMA_HISTOGRAM_TIMES("Tab.NewTabOnload.Local", duration);
-    if (is_google) {
-      UMA_HISTOGRAM_TIMES("Tab.NewTabOnload.LocalGoogle", duration);
-    } else {
-      UMA_HISTOGRAM_TIMES("Tab.NewTabOnload.LocalOther", duration);
-    }
   }
   core_tab_helper->set_new_tab_start_time(base::TimeTicks());
 }
diff --git a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
index 8c55633..8717a87 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
@@ -6,6 +6,7 @@
 
 #include <algorithm>
 
+#include "base/feature_list.h"
 #include "base/lazy_instance.h"
 #include "base/macros.h"
 #include "build/build_config.h"
@@ -14,6 +15,7 @@
 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
 #include "chrome/browser/ui/views/omnibox/omnibox_result_view.h"
 #include "chrome/browser/ui/views/theme_copying_widget.h"
+#include "components/omnibox/browser/omnibox_field_trial.h"
 #include "components/omnibox/browser/omnibox_view.h"
 #include "third_party/skia/include/core/SkDrawLooper.h"
 #include "ui/base/theme_provider.h"
@@ -25,6 +27,7 @@
 #include "ui/gfx/image/image_skia_operations.h"
 #include "ui/gfx/path.h"
 #include "ui/gfx/shadow_value.h"
+#include "ui/views/bubble/bubble_border.h"
 #include "ui/views/controls/image_view.h"
 #include "ui/views/view_targeter.h"
 #include "ui/views/widget/widget.h"
@@ -86,14 +89,17 @@
   // The contents is owned by the LocationBarView.
   set_owned_by_client();
 
-  if (g_top_shadow.Get().isNull()) {
+  bool narrow_popup =
+      base::FeatureList::IsEnabled(omnibox::kUIExperimentNarrowDropdown);
+
+  if (g_top_shadow.Get().isNull() && !narrow_popup) {
     std::vector<gfx::ShadowValue> shadows;
     // Blur by 1dp. See comment below about blur accounting.
     shadows.emplace_back(gfx::Vector2d(), 2, SK_ColorBLACK);
     g_top_shadow.Get() =
         gfx::ImageSkiaOperations::CreateHorizontalShadow(shadows, false);
   }
-  if (g_bottom_shadow.Get().isNull()) {
+  if (g_bottom_shadow.Get().isNull() && !narrow_popup) {
     const int kSmallShadowBlur = 3;
     const int kLargeShadowBlur = 8;
     const int kLargeShadowYOffset = 3;
@@ -226,11 +232,16 @@
   for (size_t i = result_size; i < AutocompleteResult::GetMaxMatches(); ++i)
     child_at(i)->SetVisible(false);
 
-  // We want the popup to appear to overlay the bottom of the toolbar. So we
-  // shift the popup to completely cover the client edge, and then draw an
-  // additional semitransparent shadow above that.
-  int top_edge_overlap = views::NonClientFrameView::kClientEdgeThickness +
-                         g_top_shadow.Get().height();
+  int top_edge_overlap = 0;
+  bool narrow_popup =
+      base::FeatureList::IsEnabled(omnibox::kUIExperimentNarrowDropdown);
+  if (!narrow_popup) {
+    // We want the popup to appear to overlay the bottom of the toolbar. So we
+    // shift the popup to completely cover the client edge, and then draw an
+    // additional semitransparent shadow above that.
+    top_edge_overlap = g_top_shadow.Get().height() +
+                       views::NonClientFrameView::kClientEdgeThickness;
+  }
 
   gfx::Point top_left_screen_coord;
   int width;
@@ -240,6 +251,22 @@
   gfx::Rect new_target_bounds(top_left_screen_coord,
                               gfx::Size(width, CalculatePopupHeight()));
 
+  if (narrow_popup) {
+    SkColor background_color = GetNativeTheme()->GetSystemColor(
+        ui::NativeTheme::kColorId_ResultsTableNormalBackground);
+    auto border = base::MakeUnique<views::BubbleBorder>(
+        views::BubbleBorder::NONE, views::BubbleBorder::SMALL_SHADOW,
+        background_color);
+
+    // Outdent the popup to factor in the shadow size.
+    int border_thickness = border->GetBorderThickness();
+    new_target_bounds.Inset(-border_thickness, -border_thickness,
+                            -border_thickness, -border_thickness);
+
+    SetBackground(base::MakeUnique<views::BubbleBackground>(border.get()));
+    SetBorder(std::move(border));
+  }
+
   // If we're animating and our target height changes, reset the animation.
   // NOTE: If we just reset blindly on _every_ update, then when the user types
   // rapidly we could get "stuck" trying repeatedly to animate shrinking by the
@@ -455,6 +482,11 @@
 }
 
 void OmniboxPopupContentsView::OnPaint(gfx::Canvas* canvas) {
+  if (base::FeatureList::IsEnabled(omnibox::kUIExperimentNarrowDropdown)) {
+    View::OnPaint(canvas);
+    return;
+  }
+
   canvas->TileImageInt(g_top_shadow.Get(), 0, 0, width(),
                        g_top_shadow.Get().height());
   canvas->TileImageInt(g_bottom_shadow.Get(), 0,
@@ -463,6 +495,11 @@
 }
 
 void OmniboxPopupContentsView::PaintChildren(const ui::PaintContext& context) {
+  if (base::FeatureList::IsEnabled(omnibox::kUIExperimentNarrowDropdown)) {
+    View::PaintChildren(context);
+    return;
+  }
+
   gfx::Rect contents_bounds = GetContentsBounds();
   contents_bounds.Inset(0, g_top_shadow.Get().height(), 0,
                         g_bottom_shadow.Get().height());
diff --git a/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc b/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
index f6b471d..fdb9fa0 100644
--- a/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
+++ b/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
@@ -283,10 +283,11 @@
 
     combobox_layout->StartRow(0, 0);
     constexpr int kInputFieldHeight = 28;
-    EditorField tmp_month{autofill::CREDIT_CARD_EXP_MONTH, base::string16(),
-                          EditorField::LengthHint::HINT_SHORT,
-                          /*required=*/true,
-                          EditorField::ControlType::COMBOBOX};
+    EditorField tmp_month{
+        autofill::CREDIT_CARD_EXP_MONTH,
+        l10n_util::GetStringUTF16(IDS_AUTOFILL_FIELD_LABEL_EXPIRATION_MONTH),
+        EditorField::LengthHint::HINT_SHORT,
+        /*required=*/true, EditorField::ControlType::COMBOBOX};
     std::unique_ptr<ValidatingCombobox> month_combobox =
         CreateComboboxForField(tmp_month);
     *focusable_field = month_combobox.get();
@@ -294,9 +295,11 @@
                              views::GridLayout::FILL, views::GridLayout::FILL,
                              0, kInputFieldHeight);
 
-    EditorField tmp_year{autofill::CREDIT_CARD_EXP_4_DIGIT_YEAR,
-                         base::string16(), EditorField::LengthHint::HINT_SHORT,
-                         /*required=*/true, EditorField::ControlType::COMBOBOX};
+    EditorField tmp_year{
+        autofill::CREDIT_CARD_EXP_4_DIGIT_YEAR,
+        l10n_util::GetStringUTF16(IDS_AUTOFILL_FIELD_LABEL_EXPIRATION_YEAR),
+        EditorField::LengthHint::HINT_SHORT,
+        /*required=*/true, EditorField::ControlType::COMBOBOX};
     std::unique_ptr<ValidatingCombobox> year_combobox =
         CreateComboboxForField(tmp_year);
     combobox_layout->AddView(year_combobox.release(), 1, 1,
diff --git a/chrome/browser/ui/views/payments/editor_view_controller.cc b/chrome/browser/ui/views/payments/editor_view_controller.cc
index f302d02..9cc4fa1b 100644
--- a/chrome/browser/ui/views/payments/editor_view_controller.cc
+++ b/chrome/browser/ui/views/payments/editor_view_controller.cc
@@ -206,6 +206,7 @@
       base::MakeUnique<ValidatingCombobox>(GetComboboxModelForType(field.type),
                                            CreateValidationDelegate(field));
   base::string16 initial_value = GetInitialValueForType(field.type);
+  combobox->SetAccessibleName(field.label);
   if (!initial_value.empty()) {
     combobox->SelectValue(initial_value);
     combobox->SetInvalid(!combobox->IsValid());
@@ -373,6 +374,7 @@
       // Set the initial value and validity state.
       base::string16 initial_value = GetInitialValueForType(field.type);
       text_field->SetText(initial_value);
+      text_field->SetAccessibleName(field.label);
       *valid = text_field->IsValid();
       if (!initial_value.empty())
         text_field->SetInvalid(!(*valid));
diff --git a/chrome/renderer/BUILD.gn b/chrome/renderer/BUILD.gn
index c7944f4..839d765 100644
--- a/chrome/renderer/BUILD.gn
+++ b/chrome/renderer/BUILD.gn
@@ -100,8 +100,8 @@
     "tts_dispatcher.h",
     "web_apps.cc",
     "web_apps.h",
-    "worker_content_settings_client_proxy.cc",
-    "worker_content_settings_client_proxy.h",
+    "worker_content_settings_client.cc",
+    "worker_content_settings_client.h",
   ]
 
   defines = []
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index 8fa3e7e..653d01a 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -62,7 +62,7 @@
 #include "chrome/renderer/searchbox/searchbox.h"
 #include "chrome/renderer/searchbox/searchbox_extension.h"
 #include "chrome/renderer/tts_dispatcher.h"
-#include "chrome/renderer/worker_content_settings_client_proxy.h"
+#include "chrome/renderer/worker_content_settings_client.h"
 #include "components/autofill/content/renderer/autofill_agent.h"
 #include "components/autofill/content/renderer/password_autofill_agent.h"
 #include "components/autofill/content/renderer/password_generation_agent.h"
@@ -1365,11 +1365,11 @@
 #endif
 }
 
-blink::WebWorkerContentSettingsClientProxy*
-ChromeContentRendererClient::CreateWorkerContentSettingsClientProxy(
+std::unique_ptr<blink::WebContentSettingsClient>
+ChromeContentRendererClient::CreateWorkerContentSettingsClient(
     content::RenderFrame* render_frame,
     WebFrame* frame) {
-  return new WorkerContentSettingsClientProxy(render_frame, frame);
+  return base::MakeUnique<WorkerContentSettingsClient>(render_frame, frame);
 }
 
 bool ChromeContentRendererClient::IsPluginAllowedToUseDevChannelAPIs() {
diff --git a/chrome/renderer/chrome_content_renderer_client.h b/chrome/renderer/chrome_content_renderer_client.h
index 6129a48..8a88a7b 100644
--- a/chrome/renderer/chrome_content_renderer_client.h
+++ b/chrome/renderer/chrome_content_renderer_client.h
@@ -158,9 +158,9 @@
   bool ShouldReportDetailedMessageForSource(
       const base::string16& source) const override;
   bool ShouldGatherSiteIsolationStats() const override;
-  blink::WebWorkerContentSettingsClientProxy*
-  CreateWorkerContentSettingsClientProxy(content::RenderFrame* render_frame,
-                                         blink::WebFrame* frame) override;
+  std::unique_ptr<blink::WebContentSettingsClient>
+  CreateWorkerContentSettingsClient(content::RenderFrame* render_frame,
+                                    blink::WebFrame* frame) override;
   bool AllowPepperMediaStreamAPI(const GURL& url) override;
   void AddSupportedKeySystems(
       std::vector<std::unique_ptr<::media::KeySystemProperties>>* key_systems)
diff --git a/chrome/renderer/worker_content_settings_client_proxy.cc b/chrome/renderer/worker_content_settings_client.cc
similarity index 77%
rename from chrome/renderer/worker_content_settings_client_proxy.cc
rename to chrome/renderer/worker_content_settings_client.cc
index b096fd9..afa0053 100644
--- a/chrome/renderer/worker_content_settings_client_proxy.cc
+++ b/chrome/renderer/worker_content_settings_client.cc
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "chrome/renderer/worker_content_settings_client_proxy.h"
+#include "chrome/renderer/worker_content_settings_client.h"
 
 #include "chrome/common/render_messages.h"
 #include "content/public/renderer/render_frame.h"
@@ -14,11 +14,10 @@
 #include "third_party/WebKit/public/web/WebFrame.h"
 #include "url/origin.h"
 
-WorkerContentSettingsClientProxy::WorkerContentSettingsClientProxy(
+WorkerContentSettingsClient::WorkerContentSettingsClient(
     content::RenderFrame* render_frame,
     blink::WebFrame* frame)
-    : routing_id_(render_frame->GetRoutingID()),
-      is_unique_origin_(false) {
+    : routing_id_(render_frame->GetRoutingID()), is_unique_origin_(false) {
   if (frame->GetDocument().GetSecurityOrigin().IsUnique() ||
       frame->Top()->GetSecurityOrigin().IsUnique())
     is_unique_origin_ = true;
@@ -29,9 +28,9 @@
       url::Origin(frame->Top()->GetSecurityOrigin()).GetURL();
 }
 
-WorkerContentSettingsClientProxy::~WorkerContentSettingsClientProxy() {}
+WorkerContentSettingsClient::~WorkerContentSettingsClient() {}
 
-bool WorkerContentSettingsClientProxy::RequestFileSystemAccessSync() {
+bool WorkerContentSettingsClient::RequestFileSystemAccessSync() {
   if (is_unique_origin_)
     return false;
 
@@ -41,8 +40,9 @@
   return result;
 }
 
-bool WorkerContentSettingsClientProxy::AllowIndexedDB(
-    const blink::WebString& name) {
+bool WorkerContentSettingsClient::AllowIndexedDB(
+    const blink::WebString& name,
+    const blink::WebSecurityOrigin&) {
   if (is_unique_origin_)
     return false;
 
diff --git a/chrome/renderer/worker_content_settings_client.h b/chrome/renderer/worker_content_settings_client.h
new file mode 100644
index 0000000..1f1d5d7
--- /dev/null
+++ b/chrome/renderer/worker_content_settings_client.h
@@ -0,0 +1,50 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_RENDERER_WORKER_CONTENT_SETTINGS_CLIENT_H_
+#define CHROME_RENDERER_WORKER_CONTENT_SETTINGS_CLIENT_H_
+
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "third_party/WebKit/public/platform/WebContentSettingsClient.h"
+#include "url/gurl.h"
+
+namespace IPC {
+class SyncMessageFilter;
+}
+
+namespace content {
+class RenderFrame;
+}
+
+namespace blink {
+class WebFrame;
+class WebSecurityOrigin;
+}
+
+// This client is created on the main renderer thread then passed onto the
+// blink's worker thread.
+class WorkerContentSettingsClient : public blink::WebContentSettingsClient {
+ public:
+  WorkerContentSettingsClient(content::RenderFrame* render_frame,
+                              blink::WebFrame* frame);
+  ~WorkerContentSettingsClient() override;
+
+  // WebContentSettingsClient overrides.
+  bool RequestFileSystemAccessSync() override;
+  bool AllowIndexedDB(const blink::WebString& name,
+                      const blink::WebSecurityOrigin&) override;
+
+ private:
+  // Loading document context for this worker.
+  const int routing_id_;
+  bool is_unique_origin_;
+  GURL document_origin_url_;
+  GURL top_frame_origin_url_;
+  scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
+
+  DISALLOW_COPY_AND_ASSIGN(WorkerContentSettingsClient);
+};
+
+#endif  // CHROME_RENDERER_WORKER_CONTENT_SETTINGS_CLIENT_H_
diff --git a/chrome/renderer/worker_content_settings_client_proxy.h b/chrome/renderer/worker_content_settings_client_proxy.h
deleted file mode 100644
index 383236d..0000000
--- a/chrome/renderer/worker_content_settings_client_proxy.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_RENDERER_WORKER_CONTENT_SETTINGS_CLIENT_PROXY_H_
-#define CHROME_RENDERER_WORKER_CONTENT_SETTINGS_CLIENT_PROXY_H_
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "third_party/WebKit/public/web/WebWorkerContentSettingsClientProxy.h"
-#include "url/gurl.h"
-
-namespace IPC {
-class SyncMessageFilter;
-}
-
-namespace content {
-class RenderFrame;
-}
-
-namespace blink {
-class WebFrame;
-}
-
-// This proxy is created on the main renderer thread then passed onto
-// the blink's worker thread.
-class WorkerContentSettingsClientProxy
-    : public blink::WebWorkerContentSettingsClientProxy {
- public:
-  WorkerContentSettingsClientProxy(content::RenderFrame* render_frame,
-                              blink::WebFrame* frame);
-  ~WorkerContentSettingsClientProxy() override;
-
-  // WebWorkerContentSettingsClientProxy overrides.
-  bool RequestFileSystemAccessSync() override;
-  bool AllowIndexedDB(const blink::WebString& name) override;
-
- private:
-  // Loading document context for this worker.
-  const int routing_id_;
-  bool is_unique_origin_;
-  GURL document_origin_url_;
-  GURL top_frame_origin_url_;
-  scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
-
-  DISALLOW_COPY_AND_ASSIGN(WorkerContentSettingsClientProxy);
-};
-
-#endif  // CHROME_RENDERER_WORKER_CONTENT_SETTINGS_CLIENT_PROXY_H_
diff --git a/chromecast/media/cma/backend/alsa/slew_volume_unittests.cc b/chromecast/media/cma/backend/alsa/slew_volume_unittests.cc
index e82379f..f25bc7e2 100644
--- a/chromecast/media/cma/backend/alsa/slew_volume_unittests.cc
+++ b/chromecast/media/cma/backend/alsa/slew_volume_unittests.cc
@@ -131,7 +131,12 @@
 };
 
 TEST_F(SlewVolumeBaseTest, BadSampleRate) {
+// String arguments aren't passed to CHECK() in official builds.
+#if defined(OFFICIAL_BUILD) && defined(NDEBUG)
+  ASSERT_DEATH(slew_volume_->SetSampleRate(0), "");
+#else
   ASSERT_DEATH(slew_volume_->SetSampleRate(0), "sample_rate");
+#endif
 }
 
 TEST_F(SlewVolumeBaseTest, BadSlewTime) {
diff --git a/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc b/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc
index f60759fa..58c18b3 100644
--- a/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc
+++ b/chromecast/media/cma/backend/alsa/stream_mixer_alsa_unittest.cc
@@ -1137,14 +1137,24 @@
 }
 )json";
 
+// String arguments aren't passed to CHECK() in official builds.
+#if defined(OFFICIAL_BUILD) && defined(NDEBUG)
+  EXPECT_DEATH(StreamMixerAlsa::Get()->ResetPostProcessorsForTest(json), "");
+#else
   EXPECT_DEATH(StreamMixerAlsa::Get()->ResetPostProcessorsForTest(json),
                "foobar is not a stream type");
+#endif
 }
 
 TEST_F(StreamMixerAlsaTest, BadJsonCrashes) {
   const std::string json("{{");
+// String arguments aren't passed to CHECK() in official builds.
+#if defined(OFFICIAL_BUILD) && defined(NDEBUG)
+  EXPECT_DEATH(StreamMixerAlsa::Get()->ResetPostProcessorsForTest(json), "");
+#else
   EXPECT_DEATH(StreamMixerAlsa::Get()->ResetPostProcessorsForTest(json),
                "Invalid JSON");
+#endif
 }
 
 TEST_F(StreamMixerAlsaTest, MultiplePostProcessorsInOneStream) {
diff --git a/components/browsing_data/core/browsing_data_utils.cc b/components/browsing_data/core/browsing_data_utils.cc
index ea7e7bb..7dba88e 100644
--- a/components/browsing_data/core/browsing_data_utils.cc
+++ b/components/browsing_data/core/browsing_data_utils.cc
@@ -4,6 +4,7 @@
 
 #include "components/browsing_data/core/browsing_data_utils.h"
 
+#include "base/metrics/histogram_macros.h"
 #include "base/metrics/user_metrics.h"
 #include "components/browsing_data/core/counters/autofill_counter.h"
 #include "components/browsing_data/core/counters/history_counter.h"
@@ -65,6 +66,47 @@
   }
 }
 
+void RecordTimePeriodChange(TimePeriod period) {
+  switch (period) {
+    case TimePeriod::LAST_HOUR:
+      base::RecordAction(base::UserMetricsAction(
+          "ClearBrowsingData_TimePeriodChanged_LastHour"));
+      break;
+    case TimePeriod::LAST_DAY:
+      base::RecordAction(base::UserMetricsAction(
+          "ClearBrowsingData_TimePeriodChanged_LastDay"));
+      break;
+    case TimePeriod::LAST_WEEK:
+      base::RecordAction(base::UserMetricsAction(
+          "ClearBrowsingData_TimePeriodChanged_LastWeek"));
+      break;
+    case TimePeriod::FOUR_WEEKS:
+      base::RecordAction(base::UserMetricsAction(
+          "ClearBrowsingData_TimePeriodChanged_LastMonth"));
+      break;
+    case TimePeriod::ALL_TIME:
+      base::RecordAction(base::UserMetricsAction(
+          "ClearBrowsingData_TimePeriodChanged_Everything"));
+      break;
+  }
+}
+
+void RecordDeletionFromTab(ClearBrowsingDataTab tab) {
+  UMA_HISTOGRAM_ENUMERATION("History.ClearBrowsingData.UserDeletedFromTab", tab,
+                            browsing_data::ClearBrowsingDataTab::NUM_TYPES);
+  switch (tab) {
+    case ClearBrowsingDataTab::BASIC:
+      base::RecordAction(base::UserMetricsAction("ClearBrowsingData_BasicTab"));
+      break;
+    case ClearBrowsingDataTab::ADVANCED:
+      base::RecordAction(
+          base::UserMetricsAction("ClearBrowsingData_AdvancedTab"));
+      break;
+    case ClearBrowsingDataTab::NUM_TYPES:
+      NOTREACHED();
+  }
+}
+
 base::string16 GetCounterTextFromResult(
     const BrowsingDataCounter::Result* result) {
   base::string16 text;
diff --git a/components/browsing_data/core/browsing_data_utils.h b/components/browsing_data/core/browsing_data_utils.h
index 3e087f8..09d434fc 100644
--- a/components/browsing_data/core/browsing_data_utils.h
+++ b/components/browsing_data/core/browsing_data_utils.h
@@ -51,6 +51,12 @@
 // Records the UMA action of UI-triggered data deletion for |time_period|.
 void RecordDeletionForPeriod(TimePeriod time_period);
 
+// Records the UMA action of a change of the clear browsing data time period.
+void RecordTimePeriodChange(TimePeriod period);
+
+// Records the UMA action and histogram of a data deletion from |tab|.
+void RecordDeletionFromTab(ClearBrowsingDataTab tab);
+
 // Constructs the text to be displayed by a counter from the given |result|.
 // Currently this can only be used for counters for which the Result is
 // defined in components/browsing_data/core/counters.
diff --git a/components/browsing_data/core/clear_browsing_data_tab.h b/components/browsing_data/core/clear_browsing_data_tab.h
index cca479e..22efd84 100644
--- a/components/browsing_data/core/clear_browsing_data_tab.h
+++ b/components/browsing_data/core/clear_browsing_data_tab.h
@@ -14,6 +14,8 @@
 // TODO(dullweber): Maybe rename "ADVANCED" to "DEFAULT" because it is used in
 //   multiple places without a differentiation between advanced and basic.
 //
+// Do not change the values here, as they are used for UMA histograms.
+//
 // A Java counterpart will be generated for this enum.
 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.browsing_data
 enum class ClearBrowsingDataTab { BASIC, ADVANCED, NUM_TYPES };
diff --git a/components/ntp_snippets/BUILD.gn b/components/ntp_snippets/BUILD.gn
index 1bc0272..4466c318 100644
--- a/components/ntp_snippets/BUILD.gn
+++ b/components/ntp_snippets/BUILD.gn
@@ -59,6 +59,8 @@
     "reading_list/reading_list_suggestions_provider.h",
     "remote/json_request.cc",
     "remote/json_request.h",
+    "remote/json_to_categories.cc",
+    "remote/json_to_categories.h",
     "remote/persistent_scheduler.h",
     "remote/remote_suggestion.cc",
     "remote/remote_suggestion.h",
diff --git a/components/ntp_snippets/remote/json_to_categories.cc b/components/ntp_snippets/remote/json_to_categories.cc
new file mode 100644
index 0000000..17c0c59
--- /dev/null
+++ b/components/ntp_snippets/remote/json_to_categories.cc
@@ -0,0 +1,135 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/ntp_snippets/remote/json_to_categories.h"
+
+#include "base/optional.h"
+#include "base/strings/utf_string_conversions.h"
+#include "components/strings/grit/components_strings.h"
+#include "ui/base/l10n/l10n_util.h"
+
+namespace ntp_snippets {
+
+namespace {
+
+// Creates suggestions from dictionary values in |list| and adds them to
+// |suggestions|. Returns true on success, false if anything went wrong.
+bool AddSuggestionsFromListValue(int remote_category_id,
+                                 const base::ListValue& list,
+                                 RemoteSuggestion::PtrVector* suggestions,
+                                 const base::Time& fetch_time) {
+  for (const auto& value : list) {
+    const base::DictionaryValue* dict = nullptr;
+    if (!value.GetAsDictionary(&dict)) {
+      return false;
+    }
+
+    std::unique_ptr<RemoteSuggestion> suggestion;
+
+    suggestion = RemoteSuggestion::CreateFromContentSuggestionsDictionary(
+        *dict, remote_category_id, fetch_time);
+
+    if (!suggestion) {
+      return false;
+    }
+
+    suggestions->push_back(std::move(suggestion));
+  }
+  return true;
+}
+
+}  // namespace
+
+FetchedCategory::FetchedCategory(Category c, CategoryInfo&& info)
+    : category(c), info(info) {}
+
+FetchedCategory::FetchedCategory(FetchedCategory&&) = default;
+
+FetchedCategory::~FetchedCategory() = default;
+
+FetchedCategory& FetchedCategory::operator=(FetchedCategory&&) = default;
+
+CategoryInfo BuildArticleCategoryInfo(
+    const base::Optional<base::string16>& title) {
+  return CategoryInfo(
+      title.has_value() ? title.value()
+                        : l10n_util::GetStringUTF16(
+                              IDS_NTP_ARTICLE_SUGGESTIONS_SECTION_HEADER),
+      ContentSuggestionsCardLayout::FULL_CARD,
+      ContentSuggestionsAdditionalAction::FETCH,
+      /*show_if_empty=*/true,
+      l10n_util::GetStringUTF16(IDS_NTP_ARTICLE_SUGGESTIONS_SECTION_EMPTY));
+}
+
+CategoryInfo BuildRemoteCategoryInfo(const base::string16& title,
+                                     bool allow_fetching_more_results) {
+  ContentSuggestionsAdditionalAction action =
+      ContentSuggestionsAdditionalAction::NONE;
+  if (allow_fetching_more_results) {
+    action = ContentSuggestionsAdditionalAction::FETCH;
+  }
+  return CategoryInfo(
+      title, ContentSuggestionsCardLayout::FULL_CARD, action,
+      /*show_if_empty=*/false,
+      // TODO(tschumann): The message for no-articles is likely wrong
+      // and needs to be added to the stubby protocol if we want to
+      // support it.
+      l10n_util::GetStringUTF16(IDS_NTP_ARTICLE_SUGGESTIONS_SECTION_EMPTY));
+}
+
+bool JsonToCategories(const base::Value& parsed,
+                      FetchedCategoriesVector* categories,
+                      const base::Time& fetch_time) {
+  const base::DictionaryValue* top_dict = nullptr;
+  if (!parsed.GetAsDictionary(&top_dict)) {
+    return false;
+  }
+
+  const base::ListValue* categories_value = nullptr;
+  if (!top_dict->GetList("categories", &categories_value)) {
+    return false;
+  }
+
+  for (const auto& v : *categories_value) {
+    std::string utf8_title;
+    int remote_category_id = -1;
+    const base::DictionaryValue* category_value = nullptr;
+    if (!(v.GetAsDictionary(&category_value) &&
+          category_value->GetString("localizedTitle", &utf8_title) &&
+          category_value->GetInteger("id", &remote_category_id) &&
+          (remote_category_id > 0))) {
+      return false;
+    }
+
+    RemoteSuggestion::PtrVector suggestions;
+    const base::ListValue* suggestions_list = nullptr;
+    // Absence of a list of suggestions is treated as an empty list, which
+    // is permissible.
+    if (category_value->GetList("suggestions", &suggestions_list)) {
+      if (!AddSuggestionsFromListValue(remote_category_id, *suggestions_list,
+                                       &suggestions, fetch_time)) {
+        return false;
+      }
+    }
+    Category category = Category::FromRemoteCategory(remote_category_id);
+    if (category.IsKnownCategory(KnownCategories::ARTICLES)) {
+      categories->push_back(FetchedCategory(
+          category, BuildArticleCategoryInfo(base::UTF8ToUTF16(utf8_title))));
+    } else {
+      // TODO(tschumann): Right now, the backend does not yet populate this
+      // field. Make it mandatory once the backends provide it.
+      bool allow_fetching_more_results = false;
+      category_value->GetBoolean("allowFetchingMoreResults",
+                                 &allow_fetching_more_results);
+      categories->push_back(FetchedCategory(
+          category, BuildRemoteCategoryInfo(base::UTF8ToUTF16(utf8_title),
+                                            allow_fetching_more_results)));
+    }
+    categories->back().suggestions = std::move(suggestions);
+  }
+
+  return true;
+}
+
+}  // namespace ntp_snippets
diff --git a/components/ntp_snippets/remote/json_to_categories.h b/components/ntp_snippets/remote/json_to_categories.h
new file mode 100644
index 0000000..94e8327
--- /dev/null
+++ b/components/ntp_snippets/remote/json_to_categories.h
@@ -0,0 +1,45 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_HELPER_H_
+#define COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_HELPER_H_
+
+#include "base/optional.h"
+#include "base/time/time.h"
+#include "base/values.h"
+#include "components/ntp_snippets/category.h"
+#include "components/ntp_snippets/category_info.h"
+#include "components/ntp_snippets/remote/remote_suggestion.h"
+
+namespace ntp_snippets {
+
+struct FetchedCategory {
+  Category category;
+  CategoryInfo info;
+  RemoteSuggestion::PtrVector suggestions;
+
+  FetchedCategory(Category c, CategoryInfo&& info);
+  FetchedCategory(FetchedCategory&&);             // = default, in .cc
+  ~FetchedCategory();                             // = default, in .cc
+  FetchedCategory& operator=(FetchedCategory&&);  // = default, in .cc
+};
+
+using FetchedCategoriesVector = std::vector<FetchedCategory>;
+
+// Provides the CategoryInfo data for article suggestions. If |title| is
+// nullopt, then the default, hard-coded title will be used.
+CategoryInfo BuildArticleCategoryInfo(
+    const base::Optional<base::string16>& title);
+
+// Provides the CategoryInfo data for other remote suggestions.
+CategoryInfo BuildRemoteCategoryInfo(const base::string16& title,
+                                     bool allow_fetching_more_results);
+
+bool JsonToCategories(const base::Value& parsed,
+                      FetchedCategoriesVector* categories,
+                      const base::Time& fetch_time);
+
+}  // namespace ntp_snippets
+
+#endif  // COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_HELPER_H_
diff --git a/components/ntp_snippets/remote/remote_suggestions_fetcher.cc b/components/ntp_snippets/remote/remote_suggestions_fetcher.cc
index b07a116..a1970d8 100644
--- a/components/ntp_snippets/remote/remote_suggestions_fetcher.cc
+++ b/components/ntp_snippets/remote/remote_suggestions_fetcher.cc
@@ -102,37 +102,6 @@
   return Status(StatusCode::PERMANENT_ERROR, std::string());
 }
 
-// Creates suggestions from dictionary values in |list| and adds them to
-// |suggestions|. Returns true on success, false if anything went wrong.
-// |remote_category_id| is only used if |content_suggestions_api| is true.
-bool AddSuggestionsFromListValue(bool content_suggestions_api,
-                                 int remote_category_id,
-                                 const base::ListValue& list,
-                                 RemoteSuggestion::PtrVector* suggestions,
-                                 const base::Time& fetch_time) {
-  for (const auto& value : list) {
-    const base::DictionaryValue* dict = nullptr;
-    if (!value.GetAsDictionary(&dict)) {
-      return false;
-    }
-
-    std::unique_ptr<RemoteSuggestion> suggestion;
-    if (content_suggestions_api) {
-      suggestion = RemoteSuggestion::CreateFromContentSuggestionsDictionary(
-          *dict, remote_category_id, fetch_time);
-    } else {
-      suggestion =
-          RemoteSuggestion::CreateFromChromeReaderDictionary(*dict, fetch_time);
-    }
-    if (!suggestion) {
-      return false;
-    }
-
-    suggestions->push_back(std::move(suggestion));
-  }
-  return true;
-}
-
 int GetMinuteOfTheDay(bool local_time,
                       bool reduced_resolution,
                       base::Clock* clock) {
@@ -149,23 +118,22 @@
 // The response from the backend might include suggestions from multiple
 // categories. If only a single category was requested, this function filters
 // all other categories out.
-void FilterCategories(
-    RemoteSuggestionsFetcher::FetchedCategoriesVector* categories,
-    base::Optional<Category> exclusive_category) {
+void FilterCategories(FetchedCategoriesVector* categories,
+                      base::Optional<Category> exclusive_category) {
   if (!exclusive_category.has_value()) {
     return;
   }
   Category exclusive = exclusive_category.value();
-  auto category_it = std::find_if(
-      categories->begin(), categories->end(),
-      [&exclusive](const RemoteSuggestionsFetcher::FetchedCategory& c) -> bool {
-        return c.category == exclusive;
-      });
+  auto category_it =
+      std::find_if(categories->begin(), categories->end(),
+                   [&exclusive](const FetchedCategory& c) -> bool {
+                     return c.category == exclusive;
+                   });
   if (category_it == categories->end()) {
     categories->clear();
     return;
   }
-  RemoteSuggestionsFetcher::FetchedCategory category = std::move(*category_it);
+  FetchedCategory category = std::move(*category_it);
   categories->clear();
   categories->push_back(std::move(category));
 }
@@ -193,47 +161,6 @@
   return GURL{kContentSuggestionsStagingServer};
 }
 
-CategoryInfo BuildArticleCategoryInfo(
-    const base::Optional<base::string16>& title) {
-  return CategoryInfo(
-      title.has_value() ? title.value()
-                        : l10n_util::GetStringUTF16(
-                              IDS_NTP_ARTICLE_SUGGESTIONS_SECTION_HEADER),
-      ContentSuggestionsCardLayout::FULL_CARD,
-      ContentSuggestionsAdditionalAction::FETCH,
-      /*show_if_empty=*/true,
-      l10n_util::GetStringUTF16(IDS_NTP_ARTICLE_SUGGESTIONS_SECTION_EMPTY));
-}
-
-CategoryInfo BuildRemoteCategoryInfo(const base::string16& title,
-                                     bool allow_fetching_more_results) {
-  ContentSuggestionsAdditionalAction action =
-      ContentSuggestionsAdditionalAction::NONE;
-  if (allow_fetching_more_results) {
-    action = ContentSuggestionsAdditionalAction::FETCH;
-  }
-  return CategoryInfo(
-      title, ContentSuggestionsCardLayout::FULL_CARD, action,
-      /*show_if_empty=*/false,
-      // TODO(tschumann): The message for no-articles is likely wrong
-      // and needs to be added to the stubby protocol if we want to
-      // support it.
-      l10n_util::GetStringUTF16(IDS_NTP_ARTICLE_SUGGESTIONS_SECTION_EMPTY));
-}
-
-RemoteSuggestionsFetcher::FetchedCategory::FetchedCategory(Category c,
-                                                           CategoryInfo&& info)
-    : category(c), info(info) {}
-
-RemoteSuggestionsFetcher::FetchedCategory::FetchedCategory(FetchedCategory&&) =
-    default;
-
-RemoteSuggestionsFetcher::FetchedCategory::~FetchedCategory() = default;
-
-RemoteSuggestionsFetcher::FetchedCategory&
-RemoteSuggestionsFetcher::FetchedCategory::operator=(FetchedCategory&&) =
-    default;
-
 RemoteSuggestionsFetcher::RemoteSuggestionsFetcher(
     SigninManagerBase* signin_manager,
     OAuth2TokenService* token_service,
@@ -406,7 +333,7 @@
   }
 
   FetchedCategoriesVector categories;
-  if (!JsonToSnippets(*result, &categories, fetch_time)) {
+  if (!JsonToCategories(*result, &categories, fetch_time)) {
     LOG(WARNING) << "Received invalid snippets: " << last_fetch_json_;
     FetchFinished(OptionalFetchedCategories(), std::move(callback),
                   FetchResult::INVALID_SNIPPET_CONTENT_ERROR, std::string());
@@ -440,60 +367,4 @@
                           std::move(categories));
 }
 
-bool RemoteSuggestionsFetcher::JsonToSnippets(
-    const base::Value& parsed,
-    FetchedCategoriesVector* categories,
-    const base::Time& fetch_time) {
-  const base::DictionaryValue* top_dict = nullptr;
-  if (!parsed.GetAsDictionary(&top_dict)) {
-    return false;
-  }
-
-  const base::ListValue* categories_value = nullptr;
-  if (!top_dict->GetList("categories", &categories_value)) {
-    return false;
-  }
-
-  for (const auto& v : *categories_value) {
-    std::string utf8_title;
-    int remote_category_id = -1;
-    const base::DictionaryValue* category_value = nullptr;
-    if (!(v.GetAsDictionary(&category_value) &&
-          category_value->GetString("localizedTitle", &utf8_title) &&
-          category_value->GetInteger("id", &remote_category_id) &&
-          (remote_category_id > 0))) {
-      return false;
-    }
-
-    RemoteSuggestion::PtrVector suggestions;
-    const base::ListValue* suggestions_list = nullptr;
-    // Absence of a list of suggestions is treated as an empty list, which
-    // is permissible.
-    if (category_value->GetList("suggestions", &suggestions_list)) {
-      if (!AddSuggestionsFromListValue(
-              /*content_suggestions_api=*/true, remote_category_id,
-              *suggestions_list, &suggestions, fetch_time)) {
-        return false;
-      }
-    }
-    Category category = Category::FromRemoteCategory(remote_category_id);
-    if (category.IsKnownCategory(KnownCategories::ARTICLES)) {
-      categories->push_back(FetchedCategory(
-          category, BuildArticleCategoryInfo(base::UTF8ToUTF16(utf8_title))));
-    } else {
-      // TODO(tschumann): Right now, the backend does not yet populate this
-      // field. Make it mandatory once the backends provide it.
-      bool allow_fetching_more_results = false;
-      category_value->GetBoolean("allowFetchingMoreResults",
-                                 &allow_fetching_more_results);
-      categories->push_back(FetchedCategory(
-          category, BuildRemoteCategoryInfo(base::UTF8ToUTF16(utf8_title),
-                                            allow_fetching_more_results)));
-    }
-    categories->back().suggestions = std::move(suggestions);
-  }
-
-  return true;
-}
-
 }  // namespace ntp_snippets
diff --git a/components/ntp_snippets/remote/remote_suggestions_fetcher.h b/components/ntp_snippets/remote/remote_suggestions_fetcher.h
index ffe7fd9..0cd611d 100644
--- a/components/ntp_snippets/remote/remote_suggestions_fetcher.h
+++ b/components/ntp_snippets/remote/remote_suggestions_fetcher.h
@@ -18,6 +18,7 @@
 #include "components/ntp_snippets/category.h"
 #include "components/ntp_snippets/category_info.h"
 #include "components/ntp_snippets/remote/json_request.h"
+#include "components/ntp_snippets/remote/json_to_categories.h"
 #include "components/ntp_snippets/remote/remote_suggestion.h"
 #include "components/ntp_snippets/remote/request_params.h"
 #include "components/ntp_snippets/status.h"
@@ -42,39 +43,12 @@
 // the channel and variation parameters.
 GURL GetFetchEndpoint(version_info::Channel channel);
 
-// TODO(tschumann): BuildArticleCategoryInfo() and BuildRemoteCategoryInfo()
-// don't really belong into this library. However, as the fetcher is
-// providing this data for server-defined remote sections it's a good starting
-// point. Candiates to add to such a library would be persisting categories
-// (have all category managment in one place) or turning parsed JSON into
-// FetchedCategory objects (all domain-specific logic in one place).
-
-// Provides the CategoryInfo data for article suggestions. If |title| is
-// nullopt, then the default, hard-coded title will be used.
-CategoryInfo BuildArticleCategoryInfo(
-    const base::Optional<base::string16>& title);
-
-// Provides the CategoryInfo data for other remote suggestions.
-CategoryInfo BuildRemoteCategoryInfo(const base::string16& title,
-                                     bool allow_fetching_more_results);
-
 // Fetches suggestion data for the NTP from the server.
 // TODO(fhorschig): Untangle cyclic dependencies by introducing a
 // RemoteSuggestionsFetcherInterface. (Would be good for mock implementations,
 // too!)
 class RemoteSuggestionsFetcher {
  public:
-  struct FetchedCategory {
-    Category category;
-    CategoryInfo info;
-    RemoteSuggestion::PtrVector suggestions;
-
-    FetchedCategory(Category c, CategoryInfo&& info);
-    FetchedCategory(FetchedCategory&&);             // = default, in .cc
-    ~FetchedCategory();                             // = default, in .cc
-    FetchedCategory& operator=(FetchedCategory&&);  // = default, in .cc
-  };
-  using FetchedCategoriesVector = std::vector<FetchedCategory>;
   using OptionalFetchedCategories = base::Optional<FetchedCategoriesVector>;
 
   using SnippetsAvailableCallback =
@@ -156,10 +130,6 @@
                      internal::FetchResult status_code,
                      const std::string& error_details);
 
-  bool JsonToSnippets(const base::Value& parsed,
-                      FetchedCategoriesVector* categories,
-                      const base::Time& fetch_time);
-
   // Authentication for signed-in users.
   SigninManagerBase* signin_manager_;
   OAuth2TokenService* token_service_;
diff --git a/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc b/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc
index a3a8b9f..312dc0a 100644
--- a/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc
+++ b/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc
@@ -72,12 +72,11 @@
 
 void AddFetchedCategoriesToRankerBasedOnArticlesCategory(
     CategoryRanker* ranker,
-    const RemoteSuggestionsFetcher::FetchedCategoriesVector& fetched_categories,
+    const FetchedCategoriesVector& fetched_categories,
     Category articles_category) {
   DCHECK(IsOrderingNewRemoteCategoriesBasedOnArticlesCategoryEnabled());
   // Insert categories which precede "Articles" in the response.
-  for (const RemoteSuggestionsFetcher::FetchedCategory& fetched_category :
-       fetched_categories) {
+  for (const FetchedCategory& fetched_category : fetched_categories) {
     if (fetched_category.category == articles_category) {
       break;
     }
@@ -782,8 +781,7 @@
     // TODO(treib): Reorder |category_contents_| to match the order we received
     // from the server. crbug.com/653816
     bool response_includes_article_category = false;
-    for (RemoteSuggestionsFetcher::FetchedCategory& fetched_category :
-         *fetched_categories) {
+    for (FetchedCategory& fetched_category : *fetched_categories) {
       // TODO(tschumann): Remove this histogram once we only talk to the content
       // suggestions cloud backend.
       if (fetched_category.category == articles_category_) {
@@ -808,8 +806,7 @@
       AddFetchedCategoriesToRankerBasedOnArticlesCategory(
           category_ranker_, *fetched_categories, articles_category_);
     } else {
-      for (const RemoteSuggestionsFetcher::FetchedCategory& fetched_category :
-           *fetched_categories) {
+      for (const FetchedCategory& fetched_category : *fetched_categories) {
         category_ranker_->AppendCategoryIfNecessary(fetched_category.category);
       }
     }
diff --git a/components/ntp_snippets/remote/remote_suggestions_provider_impl.h b/components/ntp_snippets/remote/remote_suggestions_provider_impl.h
index d84d00d..a5ac7f57 100644
--- a/components/ntp_snippets/remote/remote_suggestions_provider_impl.h
+++ b/components/ntp_snippets/remote/remote_suggestions_provider_impl.h
@@ -25,6 +25,7 @@
 #include "components/ntp_snippets/category_status.h"
 #include "components/ntp_snippets/content_suggestion.h"
 #include "components/ntp_snippets/content_suggestions_provider.h"
+#include "components/ntp_snippets/remote/json_to_categories.h"
 #include "components/ntp_snippets/remote/remote_suggestion.h"
 #include "components/ntp_snippets/remote/remote_suggestions_fetcher.h"
 #include "components/ntp_snippets/remote/remote_suggestions_provider.h"
diff --git a/content/browser/browsing_data/clear_site_data_throttle.cc b/content/browser/browsing_data/clear_site_data_throttle.cc
index 651b9a11..4666c04 100644
--- a/content/browser/browsing_data/clear_site_data_throttle.cc
+++ b/content/browser/browsing_data/clear_site_data_throttle.cc
@@ -4,11 +4,10 @@
 
 #include "content/browser/browsing_data/clear_site_data_throttle.h"
 
-#include "base/json/json_reader.h"
-#include "base/json/json_string_value_serializer.h"
 #include "base/memory/ptr_util.h"
 #include "base/metrics/histogram_macros.h"
 #include "base/scoped_observer.h"
+#include "base/strings/string_split.h"
 #include "base/strings/string_util.h"
 #include "base/strings/stringprintf.h"
 #include "base/values.h"
@@ -37,12 +36,10 @@
 
 const char kClearSiteDataHeader[] = "Clear-Site-Data";
 
-const char kTypesKey[] = "types";
-
 // Datatypes.
-const char kDatatypeCookies[] = "cookies";
-const char kDatatypeStorage[] = "storage";
-const char kDatatypeCache[] = "cache";
+const char kDatatypeCookies[] = "\"cookies\"";
+const char kDatatypeStorage[] = "\"storage\"";
+const char kDatatypeCache[] = "\"cache\"";
 
 // Pretty-printed log output.
 const char kConsoleMessageTemplate[] = "Clear-Site-Data header on '%s': %s";
@@ -446,35 +443,13 @@
     return false;
   }
 
-  std::unique_ptr<base::Value> parsed_header = base::JSONReader::Read(header);
-
-  if (!parsed_header) {
-    delegate->AddMessage(current_url, "Expected valid JSON.",
-                         CONSOLE_MESSAGE_LEVEL_ERROR);
-    return false;
-  }
-
-  const base::DictionaryValue* dictionary = nullptr;
-  const base::ListValue* types = nullptr;
-  if (!parsed_header->GetAsDictionary(&dictionary) ||
-      !dictionary->GetListWithoutPathExpansion(kTypesKey, &types)) {
-    delegate->AddMessage(current_url,
-                         "Expected a JSON dictionary with a 'types' field.",
-                         CONSOLE_MESSAGE_LEVEL_ERROR);
-    return false;
-  }
-
-  DCHECK(types);
-
   *clear_cookies = false;
   *clear_storage = false;
   *clear_cache = false;
 
   std::string type_names;
-  for (const base::Value& value : *types) {
-    std::string type;
-    value.GetAsString(&type);
-
+  for (const base::StringPiece& type : base::SplitStringPiece(
+           header, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_NONEMPTY)) {
     bool* data_type = nullptr;
 
     if (type == kDatatypeCookies) {
@@ -484,31 +459,26 @@
     } else if (type == kDatatypeCache) {
       data_type = clear_cache;
     } else {
-      std::string serialized_type;
-      JSONStringValueSerializer serializer(&serialized_type);
-      serializer.Serialize(value);
-      delegate->AddMessage(
-          current_url,
-          base::StringPrintf("Unrecognized type: %s.", serialized_type.c_str()),
-          CONSOLE_MESSAGE_LEVEL_ERROR);
+      delegate->AddMessage(current_url,
+                           base::StringPrintf("Unrecognized type: %s.",
+                                              type.as_string().c_str()),
+                           CONSOLE_MESSAGE_LEVEL_ERROR);
       continue;
     }
 
     DCHECK(data_type);
 
-    // Each data type should only be processed once.
     if (*data_type)
       continue;
 
     *data_type = true;
     if (!type_names.empty())
       type_names += kConsoleMessageDatatypeSeparator;
-    type_names += type;
+    type_names += type.as_string();
   }
 
   if (!*clear_cookies && !*clear_storage && !*clear_cache) {
-    delegate->AddMessage(current_url,
-                         "No recognized types specified in the 'types' field.",
+    delegate->AddMessage(current_url, "No recognized types specified.",
                          CONSOLE_MESSAGE_LEVEL_ERROR);
     return false;
   }
diff --git a/content/browser/browsing_data/clear_site_data_throttle_browsertest.cc b/content/browser/browsing_data/clear_site_data_throttle_browsertest.cc
index a585614..7df76d09 100644
--- a/content/browser/browsing_data/clear_site_data_throttle_browsertest.cc
+++ b/content/browser/browsing_data/clear_site_data_throttle_browsertest.cc
@@ -64,7 +64,7 @@
 
 // A value of the Clear-Site-Data header that requests cookie deletion. Reused
 // in tests that need a valid header but do not depend on its value.
-static const char* kClearCookiesHeader = "{ \"types\": [ \"cookies\" ] }";
+static const char* kClearCookiesHeader = "\"cookies\"";
 
 // A helper class to observe BrowsingDataRemover deletion tasks coming from
 // ClearSiteData.
@@ -730,14 +730,13 @@
     bool remove_storage;
     bool remove_cache;
   } test_cases[] = {
-      {"{ \"types\": [ \"cookies\" ] }", true, false, false},
-      {"{ \"types\": [ \"storage\" ] }", false, true, false},
-      {"{ \"types\": [ \"cache\" ] }", false, false, true},
-      {"{ \"types\": [ \"cookies\", \"storage\" ] }", true, true, false},
-      {"{ \"types\": [ \"cookies\", \"cache\" ] }", true, false, true},
-      {"{ \"types\": [ \"storage\", \"cache\" ] }", false, true, true},
-      {"{ \"types\": [ \"cookies\", \"storage\", \"cache\" ] }", true, true,
-       true},
+      {"\"cookies\"", true, false, false},
+      {"\"storage\"", false, true, false},
+      {"\"cache\"", false, false, true},
+      {"\"cookies\", \"storage\"", true, true, false},
+      {"\"cookies\", \"cache\"", true, false, true},
+      {"\"storage\", \"cache\"", false, true, true},
+      {"\"cookies\", \"storage\", \"cache\"", true, true, true},
   };
 
   for (const TestCase& test_case : test_cases) {
@@ -793,7 +792,7 @@
   // worker for "origin1.com", as the header would not be respected outside
   // of the scope.
   GURL url = https_server()->GetURL("origin1.com", "/anything-in-the-scope");
-  AddQuery(&url, "header", "{ \"types\": [ \"storage\" ] }");
+  AddQuery(&url, "header", "\"storage\"");
   NavigateToURL(shell(), url);
   service_workers = GetServiceWorkers();
   EXPECT_EQ(2u, service_workers.size());
@@ -803,7 +802,7 @@
   // not handled by "worker.js" is the path "resource".
   // The header will be respected and the worker deleted.
   url = https_server()->GetURL("origin1.com", "/resource");
-  AddQuery(&url, "header", "{ \"types\": [ \"storage\" ] }");
+  AddQuery(&url, "header", "\"storage\"");
   NavigateToURL(shell(), url);
 
   // Only "origin2.com" now has a service worker.
@@ -844,7 +843,7 @@
 
   // Let Clear-Site-Data delete the "cache" of "origin1.com".
   GURL url = https_server()->GetURL("origin1.com", "/clear-site-data");
-  AddQuery(&url, "header", "{ \"types\": [ \"cache\" ] }");
+  AddQuery(&url, "header", "\"cache\"");
   NavigateToURL(shell(), url);
   base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(kTimeoutMs));
 
diff --git a/content/browser/browsing_data/clear_site_data_throttle_unittest.cc b/content/browser/browsing_data/clear_site_data_throttle_unittest.cc
index 7d76da4..c605b3c 100644
--- a/content/browser/browsing_data/clear_site_data_throttle_unittest.cc
+++ b/content/browser/browsing_data/clear_site_data_throttle_unittest.cc
@@ -33,8 +33,7 @@
 
 const char kClearSiteDataHeaderPrefix[] = "Clear-Site-Data: ";
 
-const char kClearCookiesHeader[] =
-    "Clear-Site-Data: { \"types\": [ \"cookies\" ] }";
+const char kClearCookiesHeader[] = "Clear-Site-Data: \"cookies\"";
 
 void WaitForUIThread() {
   base::RunLoop run_loop;
@@ -174,36 +173,32 @@
     bool cache;
   } test_cases[] = {
       // One data type.
-      {"{ \"types\": [\"cookies\"] }", true, false, false},
-      {"{ \"types\": [\"storage\"] }", false, true, false},
-      {"{ \"types\": [\"cache\"] }", false, false, true},
+      {"\"cookies\"", true, false, false},
+      {"\"storage\"", false, true, false},
+      {"\"cache\"", false, false, true},
 
       // Two data types.
-      {"{ \"types\": [\"cookies\", \"storage\"] }", true, true, false},
-      {"{ \"types\": [\"cookies\", \"cache\"] }", true, false, true},
-      {"{ \"types\": [\"storage\", \"cache\"] }", false, true, true},
+      {"\"cookies\", \"storage\"", true, true, false},
+      {"\"cookies\", \"cache\"", true, false, true},
+      {"\"storage\", \"cache\"", false, true, true},
 
       // Three data types.
-      {"{ \"types\": [\"storage\", \"cache\", \"cookies\"] }", true, true,
-       true},
-      {"{ \"types\": [\"cache\", \"cookies\", \"storage\"] }", true, true,
-       true},
-      {"{ \"types\": [\"cookies\", \"storage\", \"cache\"] }", true, true,
-       true},
+      {"\"storage\", \"cache\", \"cookies\"", true, true, true},
+      {"\"cache\", \"cookies\", \"storage\"", true, true, true},
+      {"\"cookies\", \"storage\", \"cache\"", true, true, true},
 
       // Different formatting.
-      {"  { \"types\":   [\"cookies\" ]}", true, false, false},
+      {"\"cookies\"", true, false, false},
 
       // Duplicates.
-      {"{ \"types\": [\"cookies\", \"cookies\"] }", true, false, false},
+      {"\"cookies\", \"cookies\"", true, false, false},
 
-      // Other entries in the dictionary.
-      {"{ \"types\": [\"storage\"], \"other_params\": {} }", false, true,
-       false},
+      // Other JSON-formatted items in the list.
+      {"\"storage\", { \"other_params\": {} }", false, true, false},
 
       // Unknown types are ignored, but we still proceed with the deletion for
       // those that we recognize.
-      {"{ \"types\": [\"cache\", \"foo\"] }", false, false, true},
+      {"\"cache\", \"foo\"", false, false, true},
   };
 
   for (const TestCase& test_case : test_cases) {
@@ -251,20 +246,24 @@
   struct TestCase {
     const char* header;
     const char* console_message;
-  } test_cases[] = {
-      {"", "Expected valid JSON.\n"},
-      {"\"unclosed quote", "Expected valid JSON.\n"},
-      {"\"some text\"", "Expected a JSON dictionary with a 'types' field.\n"},
-      {"{ \"field\" : {} }",
-       "Expected a JSON dictionary with a 'types' field.\n"},
-      {"{ \"types\" : [ \"passwords\" ] }",
-       "Unrecognized type: \"passwords\".\n"
-       "No recognized types specified in the 'types' field.\n"},
-      {"{ \"types\" : [ [ \"list in a list\" ] ] }",
-       "Unrecognized type: [\"list in a list\"].\n"
-       "No recognized types specified in the 'types' field.\n"},
-      {"{ \"types\" : [ \"кукис\", \"сторидж\", \"кэш\" ]",
-       "Must only contain ASCII characters.\n"}};
+  } test_cases[] = {{"", "No recognized types specified.\n"},
+                    {"\"unclosed",
+                     "Unrecognized type: \"unclosed.\n"
+                     "No recognized types specified.\n"},
+                    {"\"passwords\"",
+                     "Unrecognized type: \"passwords\".\n"
+                     "No recognized types specified.\n"},
+                    {"[ \"list\" ]",
+                     "Unrecognized type: [ \"list\" ].\n"
+                     "No recognized types specified.\n"},
+                    {"[ \"list\" ]",
+                     "Unrecognized type: [ \"list\" ].\n"
+                     "No recognized types specified.\n"},
+                    {"{ \"cookies\": [ \"a\" ] }",
+                     "Unrecognized type: { \"cookies\": [ \"a\" ] }.\n"
+                     "No recognized types specified.\n"},
+                    {"\"кукис\", \"сторидж\", \"кэш\"",
+                     "Must only contain ASCII characters.\n"}};
 
   for (const TestCase& test_case : test_cases) {
     SCOPED_TRACE(test_case.header);
@@ -307,7 +306,7 @@
   throttle.WillProcessResponse(&defer);
   EXPECT_TRUE(defer);
   EXPECT_EQ(1u, console_delegate->messages().size());
-  EXPECT_EQ("Cleared data types: cookies.",
+  EXPECT_EQ("Cleared data types: \"cookies\".",
             console_delegate->messages().front().text);
   EXPECT_EQ(console_delegate->messages().front().level,
             CONSOLE_MESSAGE_LEVEL_INFO);
@@ -405,13 +404,11 @@
 
       // That includes malformed Clear-Site-Data headers or header values
       // that do not lead to deletion.
-      {REDIRECT, "Clear-Site-Data: { types: cookies } ", false},
-      {REDIRECT, "Clear-Site-Data: { \"types\": [ \"unknown type\" ] }", false},
+      {REDIRECT, "Clear-Site-Data: cookies", false},
+      {REDIRECT, "Clear-Site-Data: \"unknown type\"", false},
 
       // However, redirects are deferred for valid Clear-Site-Data headers.
-      {REDIRECT,
-       "Clear-Site-Data: { \"types\": [ \"cookies\", \"unknown type\" ] }",
-       true},
+      {REDIRECT, "Clear-Site-Data: \"cookies\", \"unknown type\"", true},
       {REDIRECT,
        base::StringPrintf("Content-Type: image/png;\n%s", kClearCookiesHeader),
        true},
@@ -419,17 +416,15 @@
        base::StringPrintf("%s\nContent-Type: image/png;", kClearCookiesHeader),
        true},
 
-      // We expect at most one instance of the header. Multiple instances
-      // will not be parsed currently. This is not an inherent property of
-      // Clear-Site-Data, just a documentation of the current behavior.
+      // Multiple instances of the header will be parsed correctly.
       {REDIRECT,
        base::StringPrintf("%s\n%s", kClearCookiesHeader, kClearCookiesHeader),
-       false},
+       true},
 
       // Final response headers are treated the same way as in the case
       // of redirect.
       {REDIRECT, "Set-Cookie: abc=123;", false},
-      {REDIRECT, "Clear-Site-Data: { types: cookies } ", false},
+      {REDIRECT, "Clear-Site-Data: cookies", false},
       {REDIRECT, kClearCookiesHeader, true},
   };
 
@@ -518,42 +513,46 @@
     const char* output;
   } kTestCases[] = {
       // Successful deletion outputs one line.
-      {"{ \"types\": [ \"cookies\" ] }", "https://origin1.com/foo",
+      {"\"cookies\"", "https://origin1.com/foo",
        "Clear-Site-Data header on 'https://origin1.com/foo': "
-       "Cleared data types: cookies.\n"},
+       "Cleared data types: \"cookies\".\n"},
 
       // Another successful deletion.
-      {"{ \"types\": [ \"storage\" ] }", "https://origin2.com/foo",
+      {"\"storage\"", "https://origin2.com/foo",
        "Clear-Site-Data header on 'https://origin2.com/foo': "
-       "Cleared data types: storage.\n"},
+       "Cleared data types: \"storage\".\n"},
 
       // Redirect to the same URL. Unsuccessful deletion outputs two lines.
-      {"{ \"foo\": \"bar\" }", "https://origin2.com/foo",
+      {"\"foo\"", "https://origin2.com/foo",
        "Clear-Site-Data header on 'https://origin2.com/foo': "
-       "Expected a JSON dictionary with a 'types' field.\n"},
+       "Unrecognized type: \"foo\".\n"
+       "Clear-Site-Data header on 'https://origin2.com/foo': "
+       "No recognized types specified.\n"},
 
       // Redirect to another URL. Another unsuccessful deletion.
       {"\"some text\"", "https://origin3.com/bar",
        "Clear-Site-Data header on 'https://origin3.com/bar': "
-       "Expected a JSON dictionary with a 'types' field.\n"},
+       "Unrecognized type: \"some text\".\n"
+       "Clear-Site-Data header on 'https://origin3.com/bar': "
+       "No recognized types specified.\n"},
 
       // Yet another on the same URL.
-      {"{ \"types\" : [ \"passwords\" ] }", "https://origin3.com/bar",
+      {"\"passwords\"", "https://origin3.com/bar",
        "Clear-Site-Data header on 'https://origin3.com/bar': "
        "Unrecognized type: \"passwords\".\n"
        "Clear-Site-Data header on 'https://origin3.com/bar': "
-       "No recognized types specified in the 'types' field.\n"},
+       "No recognized types specified.\n"},
 
       // Successful deletion on the same URL.
-      {"{ \"types\": [ \"cache\" ] }", "https://origin3.com/bar",
+      {"\"cache\"", "https://origin3.com/bar",
        "Clear-Site-Data header on 'https://origin3.com/bar': "
-       "Cleared data types: cache.\n"},
+       "Cleared data types: \"cache\".\n"},
 
       // Redirect to the original URL.
       // Successful deletion outputs one line.
       {"", "https://origin1.com/foo",
        "Clear-Site-Data header on 'https://origin1.com/foo': "
-       "Expected valid JSON.\n"}};
+       "No recognized types specified.\n"}};
 
   bool kThrottleTypeIsNavigation[] = {true, false};
 
diff --git a/content/browser/download/download_request_core.cc b/content/browser/download/download_request_core.cc
index 34783e6..2d83b0f 100644
--- a/content/browser/download/download_request_core.cc
+++ b/content/browser/download/download_request_core.cc
@@ -347,9 +347,12 @@
 
   // GURL::GetOrigin() doesn't support getting the inner origin of a blob URL.
   // However, requesting a cross origin blob URL would have resulted in a
-  // network error, so we'll just ignore them here.
+  // network error, so we'll just ignore them here. Furthermore, we consider
+  // data: and about: schemes as same origin regardless of the initiator.
   if (request()->initiator().has_value() &&
       !create_info->url_chain.back().SchemeIsBlob() &&
+      !create_info->url_chain.back().SchemeIs(url::kAboutScheme) &&
+      !create_info->url_chain.back().SchemeIs(url::kDataScheme) &&
       request()->initiator()->GetURL() !=
           create_info->url_chain.back().GetOrigin()) {
     create_info->save_info->suggested_name.clear();
diff --git a/content/browser/frame_host/navigation_controller_impl_browsertest.cc b/content/browser/frame_host/navigation_controller_impl_browsertest.cc
index 6951052..db6deec 100644
--- a/content/browser/frame_host/navigation_controller_impl_browsertest.cc
+++ b/content/browser/frame_host/navigation_controller_impl_browsertest.cc
@@ -5843,10 +5843,7 @@
     EXPECT_EQ("GET", root_entry->method());
     EXPECT_EQ(-1, root_entry->post_id());
     EXPECT_EQ("POST", frame_entry->method());
-    // TODO(clamy): Check the post id as well when PlzNavigate handles it
-    // properly.
-    if (!IsBrowserSideNavigationEnabled())
-      EXPECT_NE(-1, frame_entry->post_id());
+    EXPECT_NE(-1, frame_entry->post_id());
     EXPECT_FALSE(entry->GetHasPostData());
     EXPECT_EQ(-1, entry->GetPostID());
   }
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 2a5d922..7e8adbe 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -374,23 +374,6 @@
   Send(new ViewMsg_SetRendererPrefs(GetRoutingID(), renderer_preferences));
 }
 
-namespace {
-
-void SetFloatParameterFromMap(
-    const std::map<std::string, std::string>& settings,
-    const std::string& setting_name,
-    float* value) {
-  const auto& find_it = settings.find(setting_name);
-  if (find_it == settings.end())
-    return;
-  double parsed_value;
-  if (!base::StringToDouble(find_it->second, &parsed_value))
-    return;
-  *value = parsed_value;
-}
-
-}  // namespace
-
 WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() {
   TRACE_EVENT0("browser", "RenderViewHostImpl::GetWebkitPrefs");
   WebPreferences prefs;
@@ -577,20 +560,6 @@
           media::kMemoryPressureBasedSourceBufferGC,
           "enable_instant_source_buffer_gc", false);
 
-  std::map<std::string, std::string> expensive_background_throttling_prefs;
-  variations::GetVariationParamsByFeature(
-      features::kExpensiveBackgroundTimerThrottling,
-      &expensive_background_throttling_prefs);
-  SetFloatParameterFromMap(expensive_background_throttling_prefs, "cpu_budget",
-                           &prefs.expensive_background_throttling_cpu_budget);
-  SetFloatParameterFromMap(
-      expensive_background_throttling_prefs, "initial_budget",
-      &prefs.expensive_background_throttling_initial_budget);
-  SetFloatParameterFromMap(expensive_background_throttling_prefs, "max_budget",
-                           &prefs.expensive_background_throttling_max_budget);
-  SetFloatParameterFromMap(expensive_background_throttling_prefs, "max_delay",
-                           &prefs.expensive_background_throttling_max_delay);
-
   GetContentClient()->browser()->OverrideWebkitPrefs(this, &prefs);
   return prefs;
 }
diff --git a/content/public/common/common_param_traits_macros.h b/content/public/common/common_param_traits_macros.h
index befe55e..d069b6b 100644
--- a/content/public/common/common_param_traits_macros.h
+++ b/content/public/common/common_param_traits_macros.h
@@ -214,10 +214,6 @@
   IPC_STRUCT_TRAITS_MEMBER(animation_policy)
   IPC_STRUCT_TRAITS_MEMBER(user_gesture_required_for_presentation)
   IPC_STRUCT_TRAITS_MEMBER(text_track_margin_percentage)
-  IPC_STRUCT_TRAITS_MEMBER(expensive_background_throttling_cpu_budget)
-  IPC_STRUCT_TRAITS_MEMBER(expensive_background_throttling_initial_budget)
-  IPC_STRUCT_TRAITS_MEMBER(expensive_background_throttling_max_budget)
-  IPC_STRUCT_TRAITS_MEMBER(expensive_background_throttling_max_delay)
 #if defined(OS_ANDROID)
   IPC_STRUCT_TRAITS_MEMBER(text_autosizing_enabled)
   IPC_STRUCT_TRAITS_MEMBER(font_scale_factor)
diff --git a/content/public/common/content_features.cc b/content/public/common/content_features.cc
index 43983508..15fb85f 100644
--- a/content/public/common/content_features.cc
+++ b/content/public/common/content_features.cc
@@ -69,7 +69,7 @@
 // Throttle tasks in Blink background timer queues based on CPU budgets
 // for the background tab. Bug: https://crbug.com/639852.
 const base::Feature kExpensiveBackgroundTimerThrottling{
-    "ExpensiveBackgroundTimerThrottling", base::FEATURE_DISABLED_BY_DEFAULT};
+    "ExpensiveBackgroundTimerThrottling", base::FEATURE_ENABLED_BY_DEFAULT};
 
 // Enables the Feature Policy framework for granting and removing access to
 // other features through HTTP headers.
diff --git a/content/public/common/web_preferences.cc b/content/public/common/web_preferences.cc
index 1e00ba53..2646681 100644
--- a/content/public/common/web_preferences.cc
+++ b/content/public/common/web_preferences.cc
@@ -179,10 +179,6 @@
       animation_policy(IMAGE_ANIMATION_POLICY_ALLOWED),
       user_gesture_required_for_presentation(true),
       text_track_margin_percentage(0.0f),
-      expensive_background_throttling_cpu_budget(-1.0f),
-      expensive_background_throttling_initial_budget(-1.0f),
-      expensive_background_throttling_max_budget(-1.0f),
-      expensive_background_throttling_max_delay(-1.0f),
 #if defined(OS_ANDROID)
       text_autosizing_enabled(true),
       font_scale_factor(1.0f),
diff --git a/content/public/common/web_preferences.h b/content/public/common/web_preferences.h
index 901b50ea..3332863 100644
--- a/content/public/common/web_preferences.h
+++ b/content/public/common/web_preferences.h
@@ -215,14 +215,6 @@
   // Cues will not be placed in this margin area.
   float text_track_margin_percentage;
 
-  // Specifies aggressiveness of background tab throttling.
-  // expensive_background_throttling_cpu_budget is given in percentages,
-  // other values are in seconds.
-  float expensive_background_throttling_cpu_budget;
-  float expensive_background_throttling_initial_budget;
-  float expensive_background_throttling_max_budget;
-  float expensive_background_throttling_max_delay;
-
 #if defined(OS_ANDROID)
   bool text_autosizing_enabled;
   float font_scale_factor;
diff --git a/content/public/renderer/content_renderer_client.cc b/content/public/renderer/content_renderer_client.cc
index 01fc07d..06afdb7 100644
--- a/content/public/renderer/content_renderer_client.cc
+++ b/content/public/renderer/content_renderer_client.cc
@@ -213,9 +213,10 @@
   return true;
 }
 
-blink::WebWorkerContentSettingsClientProxy*
-ContentRendererClient::CreateWorkerContentSettingsClientProxy(
-    RenderFrame* render_frame, blink::WebFrame* frame) {
+std::unique_ptr<blink::WebContentSettingsClient>
+ContentRendererClient::CreateWorkerContentSettingsClient(
+    RenderFrame* render_frame,
+    blink::WebFrame* frame) {
   return nullptr;
 }
 
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index 3cfb080..989fd178 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -19,6 +19,7 @@
 #include "build/build_config.h"
 #include "content/public/common/content_client.h"
 #include "media/base/decode_capabilities.h"
+#include "third_party/WebKit/public/platform/WebContentSettingsClient.h"
 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
 #include "third_party/WebKit/public/web/WebNavigationType.h"
@@ -52,7 +53,6 @@
 class WebURL;
 class WebURLResponse;
 class WebURLRequest;
-class WebWorkerContentSettingsClientProxy;
 struct WebPluginParams;
 struct WebURLError;
 }  // namespace blink
@@ -290,10 +290,10 @@
   // any pages.
   virtual bool ShouldGatherSiteIsolationStats() const;
 
-  // Creates a permission client proxy for in-renderer worker.
-  virtual blink::WebWorkerContentSettingsClientProxy*
-      CreateWorkerContentSettingsClientProxy(RenderFrame* render_frame,
-                                             blink::WebFrame* frame);
+  // Creates a permission client for in-renderer worker.
+  virtual std::unique_ptr<blink::WebContentSettingsClient>
+  CreateWorkerContentSettingsClient(RenderFrame* render_frame,
+                                    blink::WebFrame* frame);
 
   // Returns true if the page at |url| can use Pepper CameraDevice APIs.
   virtual bool IsPluginAllowedToUseCameraDeviceAPI(const GURL& url);
diff --git a/content/renderer/media/gpu/rtc_video_encoder.cc b/content/renderer/media/gpu/rtc_video_encoder.cc
index d9433d7..df1fe60 100644
--- a/content/renderer/media/gpu/rtc_video_encoder.cc
+++ b/content/renderer/media/gpu/rtc_video_encoder.cc
@@ -618,9 +618,16 @@
   }
 
   if (requires_copy) {
+    // TODO(magjed/emircan): This check is needed in order for the
+    // |pending_timestamps_| DHCECK below to not fail. It shouldn't be
+    // necessary.
+    const bool use_media_timestamp =
+        frame && (frame->HasTextures() ||
+                  frame->storage_type() == media::VideoFrame::STORAGE_SHMEM);
     const base::TimeDelta timestamp =
-        frame ? frame->timestamp()
-              : base::TimeDelta::FromMilliseconds(next_frame->ntp_time_ms());
+        use_media_timestamp
+            ? frame->timestamp()
+            : base::TimeDelta::FromMilliseconds(next_frame->ntp_time_ms());
     base::SharedMemory* input_buffer = input_buffers_[index].get();
     frame = media::VideoFrame::WrapExternalSharedMemory(
         media::PIXEL_FORMAT_I420, input_frame_coded_size_,
diff --git a/content/renderer/media/media_stream_audio_processor.cc b/content/renderer/media/media_stream_audio_processor.cc
index 45c3b20..d98b594 100644
--- a/content/renderer/media/media_stream_audio_processor.cc
+++ b/content/renderer/media/media_stream_audio_processor.cc
@@ -121,33 +121,6 @@
   return base::Optional<int>(startup_min_volume);
 }
 
-// Features for http://crbug.com/672476. These values will be given to WebRTC's
-// gain control (AGC) as lower bounds for the gain reduction during clipping.
-const base::Feature kTunedClippingLevelMin30{
-    "TunedClippingLevelMin30", base::FEATURE_DISABLED_BY_DEFAULT};
-const base::Feature kTunedClippingLevelMin70{
-    "TunedClippingLevelMin70", base::FEATURE_DISABLED_BY_DEFAULT};
-const base::Feature kTunedClippingLevelMin110{
-    "TunedClippingLevelMin110", base::FEATURE_DISABLED_BY_DEFAULT};
-const base::Feature kTunedClippingLevelMin150{
-    "TunedClippingLevelMin150", base::FEATURE_DISABLED_BY_DEFAULT};
-const base::Feature kTunedClippingLevelMin170{
-    "TunedClippingLevelMin170", base::FEATURE_DISABLED_BY_DEFAULT};
-
-base::Optional<int> GetClippingLevelMin() {
-  if (base::FeatureList::IsEnabled(kTunedClippingLevelMin30))
-    return base::Optional<int>(30);
-  if (base::FeatureList::IsEnabled(kTunedClippingLevelMin70))
-    return base::Optional<int>(70);
-  if (base::FeatureList::IsEnabled(kTunedClippingLevelMin110))
-    return base::Optional<int>(110);
-  if (base::FeatureList::IsEnabled(kTunedClippingLevelMin150))
-    return base::Optional<int>(150);
-  if (base::FeatureList::IsEnabled(kTunedClippingLevelMin170))
-    return base::Optional<int>(170);
-  return base::Optional<int>();
-}
-
 // Checks if the AEC's refined adaptive filter tuning was enabled on the command
 // line.
 bool UseAecRefinedAdaptiveFilter() {
@@ -678,12 +651,10 @@
   // If the experimental AGC is enabled, check for overridden config params.
   if (audio_constraints.GetGoogExperimentalAutoGainControl()) {
     auto startup_min_volume = GetStartupMinVolumeForAgc();
-    auto clipping_level_min = GetClippingLevelMin();
-    if (startup_min_volume || clipping_level_min) {
-      config.Set<webrtc::ExperimentalAgc>(new webrtc::ExperimentalAgc(
-          true, startup_min_volume.value_or(0),
-          clipping_level_min.value_or(webrtc::kClippedLevelMin)));
-    }
+    constexpr int kClippingLevelMin = 70;
+    // TODO(hlundin) Make this value default in WebRTC and clean up here.
+    config.Set<webrtc::ExperimentalAgc>(new webrtc::ExperimentalAgc(
+        true, startup_min_volume.value_or(0), kClippingLevelMin));
   }
 
   // Create and configure the webrtc::AudioProcessing.
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index c595af5..e1255bc 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2889,11 +2889,11 @@
       navigation_state->request_params().appcache_host_id);
 }
 
-blink::WebWorkerContentSettingsClientProxy*
-RenderFrameImpl::CreateWorkerContentSettingsClientProxy() {
+std::unique_ptr<blink::WebContentSettingsClient>
+RenderFrameImpl::CreateWorkerContentSettingsClient() {
   if (!frame_ || !frame_->View())
     return NULL;
-  return GetContentClient()->renderer()->CreateWorkerContentSettingsClientProxy(
+  return GetContentClient()->renderer()->CreateWorkerContentSettingsClient(
       this, frame_);
 }
 
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index a0cbc78..d2d1f79 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -489,8 +489,8 @@
       const blink::WebString& sink_id) override;
   std::unique_ptr<blink::WebApplicationCacheHost> CreateApplicationCacheHost(
       blink::WebApplicationCacheHostClient* client) override;
-  blink::WebWorkerContentSettingsClientProxy*
-  CreateWorkerContentSettingsClientProxy() override;
+  std::unique_ptr<blink::WebContentSettingsClient>
+  CreateWorkerContentSettingsClient() override;
   std::unique_ptr<blink::WebWorkerFetchContext> CreateWorkerFetchContext()
       override;
   blink::WebExternalPopupMenu* CreateExternalPopupMenu(
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 44f62f7..2cec6d95 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -925,15 +925,6 @@
   web_view->SetDefaultPageScaleLimits(prefs.default_minimum_page_scale_factor,
                                       prefs.default_maximum_page_scale_factor);
 
-  settings->SetExpensiveBackgroundThrottlingCPUBudget(
-      prefs.expensive_background_throttling_cpu_budget);
-  settings->SetExpensiveBackgroundThrottlingInitialBudget(
-      prefs.expensive_background_throttling_initial_budget);
-  settings->SetExpensiveBackgroundThrottlingMaxBudget(
-      prefs.expensive_background_throttling_max_budget);
-  settings->SetExpensiveBackgroundThrottlingMaxDelay(
-      prefs.expensive_background_throttling_max_delay);
-
 #if defined(OS_ANDROID)
   settings->SetAllowCustomScrollbarInMainFrame(false);
   settings->SetTextAutosizingEnabled(prefs.text_autosizing_enabled);
diff --git a/content/renderer/shared_worker/embedded_shared_worker_content_settings_client_proxy.cc b/content/renderer/shared_worker/embedded_shared_worker_content_settings_client_proxy.cc
index 1e041a51..506a79b 100644
--- a/content/renderer/shared_worker/embedded_shared_worker_content_settings_client_proxy.cc
+++ b/content/renderer/shared_worker/embedded_shared_worker_content_settings_client_proxy.cc
@@ -39,7 +39,8 @@
 }
 
 bool EmbeddedSharedWorkerContentSettingsClientProxy::AllowIndexedDB(
-    const blink::WebString& name) {
+    const blink::WebString& name,
+    const blink::WebSecurityOrigin&) {
   if (is_unique_origin_)
     return false;
   bool result = false;
diff --git a/content/renderer/shared_worker/embedded_shared_worker_content_settings_client_proxy.h b/content/renderer/shared_worker/embedded_shared_worker_content_settings_client_proxy.h
index e1a8fe87..fec6f96 100644
--- a/content/renderer/shared_worker/embedded_shared_worker_content_settings_client_proxy.h
+++ b/content/renderer/shared_worker/embedded_shared_worker_content_settings_client_proxy.h
@@ -7,7 +7,8 @@
 
 #include "base/macros.h"
 #include "base/memory/ref_counted.h"
-#include "third_party/WebKit/public/web/WebWorkerContentSettingsClientProxy.h"
+#include "third_party/WebKit/public/platform/WebContentSettingsClient.h"
+#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
 #include "url/gurl.h"
 
 namespace content {
@@ -17,7 +18,7 @@
 // This proxy is created on the main renderer thread then passed onto
 // the blink's worker thread.
 class EmbeddedSharedWorkerContentSettingsClientProxy
-    : public blink::WebWorkerContentSettingsClientProxy {
+    : public blink::WebContentSettingsClient {
  public:
   EmbeddedSharedWorkerContentSettingsClientProxy(
       const GURL& origin_url,
@@ -26,9 +27,10 @@
       ThreadSafeSender* thread_safe_sender);
   ~EmbeddedSharedWorkerContentSettingsClientProxy() override;
 
-  // WebWorkerContentSettingsClientProxy overrides.
+  // WebContentSettingsClient overrides.
   bool RequestFileSystemAccessSync() override;
-  bool AllowIndexedDB(const blink::WebString& name) override;
+  bool AllowIndexedDB(const blink::WebString& name,
+                      const blink::WebSecurityOrigin&) override;
 
  private:
   const GURL origin_url_;
diff --git a/content/renderer/shared_worker/embedded_shared_worker_stub.cc b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
index 927b3d0..8ee6002 100644
--- a/content/renderer/shared_worker/embedded_shared_worker_stub.cc
+++ b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
@@ -227,10 +227,10 @@
   return std::move(host);
 }
 
-blink::WebWorkerContentSettingsClientProxy*
-EmbeddedSharedWorkerStub::CreateWorkerContentSettingsClientProxy(
+std::unique_ptr<blink::WebContentSettingsClient>
+EmbeddedSharedWorkerStub::CreateWorkerContentSettingsClient(
     const blink::WebSecurityOrigin& origin) {
-  return new EmbeddedSharedWorkerContentSettingsClientProxy(
+  return base::MakeUnique<EmbeddedSharedWorkerContentSettingsClientProxy>(
       url::Origin(origin).GetURL(), origin.IsUnique(), route_id_,
       ChildThreadImpl::current()->thread_safe_sender());
 }
diff --git a/content/renderer/shared_worker/embedded_shared_worker_stub.h b/content/renderer/shared_worker/embedded_shared_worker_stub.h
index e2b95e63..497b9c0 100644
--- a/content/renderer/shared_worker/embedded_shared_worker_stub.h
+++ b/content/renderer/shared_worker/embedded_shared_worker_stub.h
@@ -14,6 +14,7 @@
 #include "ipc/ipc_listener.h"
 #include "third_party/WebKit/public/platform/WebAddressSpace.h"
 #include "third_party/WebKit/public/platform/WebContentSecurityPolicy.h"
+#include "third_party/WebKit/public/platform/WebContentSettingsClient.h"
 #include "third_party/WebKit/public/platform/WebString.h"
 #include "third_party/WebKit/public/web/WebSharedWorkerClient.h"
 #include "url/gurl.h"
@@ -24,7 +25,6 @@
 class WebNotificationPresenter;
 class WebSecurityOrigin;
 class WebSharedWorker;
-class WebWorkerContentSettingsClientProxy;
 }
 
 namespace content {
@@ -71,8 +71,8 @@
   blink::WebNotificationPresenter* NotificationPresenter() override;
   std::unique_ptr<blink::WebApplicationCacheHost> CreateApplicationCacheHost(
       blink::WebApplicationCacheHostClient*) override;
-  blink::WebWorkerContentSettingsClientProxy*
-  CreateWorkerContentSettingsClientProxy(
+  std::unique_ptr<blink::WebContentSettingsClient>
+  CreateWorkerContentSettingsClient(
       const blink::WebSecurityOrigin& origin) override;
   std::unique_ptr<blink::WebServiceWorkerNetworkProvider>
   CreateServiceWorkerNetworkProvider() override;
diff --git a/content/test/data/browsing_data/worker.js b/content/test/data/browsing_data/worker.js
index 27c17bd..71c3ee19 100644
--- a/content/test/data/browsing_data/worker.js
+++ b/content/test/data/browsing_data/worker.js
@@ -13,7 +13,7 @@
   if (url.pathname.match('resource_from_sw')) {
     event.respondWith(new Response(
         'Response content is not important, only the header is.', {
-            'headers': { 'Clear-Site-Data': '{ "types" : [ "cookies" ] }' }
+            'headers': { 'Clear-Site-Data': '"cookies"' }
         }));
     return;
   }
@@ -44,7 +44,7 @@
         origins[3] + 'resource_from_sw',
         origins[4] + 'another_resource_so_that_the_previous_one_isnt_reused',
     ];
-    var header = encodeURIComponent('{ "types": [ "cookies" ] }');
+    var header = encodeURIComponent('"cookies"');
 
     // Fetch all resources and report back to the C++ side by setting
     // the document title.
diff --git a/content/test/data/fuzzer_corpus/clear_site_data/all.txt b/content/test/data/fuzzer_corpus/clear_site_data/all.txt
index e7f0ddc..cde17c7f8 100644
--- a/content/test/data/fuzzer_corpus/clear_site_data/all.txt
+++ b/content/test/data/fuzzer_corpus/clear_site_data/all.txt
@@ -1 +1 @@
-{ "types": [ "cookies", "storage", "cache" ] }
+"cookies", "storage", "cache"
diff --git a/content/test/data/fuzzer_corpus/clear_site_data/cache.txt b/content/test/data/fuzzer_corpus/clear_site_data/cache.txt
index 50be4c6..ec3f455 100644
--- a/content/test/data/fuzzer_corpus/clear_site_data/cache.txt
+++ b/content/test/data/fuzzer_corpus/clear_site_data/cache.txt
@@ -1 +1 @@
-{ "types": [ "cache" ] }
+"cache"
diff --git a/content/test/data/fuzzer_corpus/clear_site_data/cookies.txt b/content/test/data/fuzzer_corpus/clear_site_data/cookies.txt
index f785c44c..7811b649 100644
--- a/content/test/data/fuzzer_corpus/clear_site_data/cookies.txt
+++ b/content/test/data/fuzzer_corpus/clear_site_data/cookies.txt
@@ -1 +1 @@
-{ "types": [ "cookies" ] }
+"cookies"
diff --git a/content/test/data/fuzzer_corpus/clear_site_data/extra.txt b/content/test/data/fuzzer_corpus/clear_site_data/extra.txt
index 53fcb8b..37ecc97 100644
--- a/content/test/data/fuzzer_corpus/clear_site_data/extra.txt
+++ b/content/test/data/fuzzer_corpus/clear_site_data/extra.txt
@@ -1 +1 @@
-{ "types": [ "cookies", "storage", "cache", "executionContexts" ] }
+"cookies", "storage", "cache", "executionContexts"
diff --git a/content/test/data/fuzzer_corpus/clear_site_data/storage.txt b/content/test/data/fuzzer_corpus/clear_site_data/storage.txt
index 2f4bdfb4..9cb7a53f 100644
--- a/content/test/data/fuzzer_corpus/clear_site_data/storage.txt
+++ b/content/test/data/fuzzer_corpus/clear_site_data/storage.txt
@@ -1 +1 @@
-{ "types": [ "storage" ] }
+"storage"
diff --git a/content/test/data/fuzzer_corpus/clear_site_data/unknown.txt b/content/test/data/fuzzer_corpus/clear_site_data/unknown.txt
index 946b8aa..669804a 100644
--- a/content/test/data/fuzzer_corpus/clear_site_data/unknown.txt
+++ b/content/test/data/fuzzer_corpus/clear_site_data/unknown.txt
@@ -1 +1 @@
-{ "types": [ "cookies" ], "and": "a", "few": [ "unrecognized"], "fields": { "of": "various" }, "JSON": "types" }
+"cookies", { "types": [ "cookies" ], "and": "a", "few": [ "unrecognized"], "fields": { "of": "various" }, "JSON": "types" }
diff --git a/content/test/gpu/gpu_tests/webgl_conformance_expectations.py b/content/test/gpu/gpu_tests/webgl_conformance_expectations.py
index ce36682..9b75f8c 100644
--- a/content/test/gpu/gpu_tests/webgl_conformance_expectations.py
+++ b/content/test/gpu/gpu_tests/webgl_conformance_expectations.py
@@ -156,6 +156,8 @@
         ['passthrough', 'opengl', 'intel'], bug=665521)
 
     # Passthrough command decoder / OpenGL / AMD
+    self.Fail('conformance/extensions/ext-sRGB.html',
+        ['passthrough', 'opengl', 'amd'], bug=679696)
     self.Fail('conformance/glsl/constructors/glsl-construct-mat2.html',
         ['passthrough', 'opengl', 'amd'], bug=665521)
     self.Fail('conformance/glsl/constructors/' +
@@ -170,6 +172,8 @@
         ['passthrough', 'opengl', 'amd', 'linux'], bug=1007) # angle bug ID
     self.Fail('conformance/glsl/misc/struct-nesting-of-variable-names.html',
         ['passthrough', 'opengl', 'amd', 'linux'], bug=665521)
+    self.Fail('conformance/renderbuffers/renderbuffer-initialization.html',
+        ['passthrough', 'opengl', 'amd'], bug=1635) # angle bug ID
     self.Fail('conformance/renderbuffers/framebuffer-state-restoration.html',
         ['passthrough', 'opengl', 'amd'], bug=665521)
     self.Fail('conformance/uniforms/out-of-bounds-uniform-array-access.html',
@@ -374,11 +378,6 @@
     # Win / Intel / Passthrough command decoder
     self.Flaky('conformance/renderbuffers/framebuffer-state-restoration.html',
         ['win', 'intel', 'passthrough', 'd3d11'], bug=602688)
-    self.Fail('conformance/textures/misc/' +
-        'copytexsubimage2d-large-partial-copy-corruption.html',
-        ['win', 'intel', 'passthrough', 'd3d11'], bug=602688)
-    self.Fail('conformance/textures/misc/copytexsubimage2d-subrects.html',
-        ['win10', 'intel', 'passthrough', 'd3d11'], bug=685232)
 
     # Mac failures
     self.Flaky('conformance/extensions/oes-texture-float-with-video.html',
diff --git a/extensions/renderer/resources/guest_view/guest_view_iframe.js b/extensions/renderer/resources/guest_view/guest_view_iframe.js
index 8b70b28..b8d54fae 100644
--- a/extensions/renderer/resources/guest_view/guest_view_iframe.js
+++ b/extensions/renderer/resources/guest_view/guest_view_iframe.js
@@ -107,3 +107,34 @@
 
   this.state = GuestViewImpl.GuestState.GUEST_STATE_CREATED;
 };
+
+// Internal implementation of destroy().
+GuestViewImpl.prototype.destroyImpl = function(callback) {
+  // Check the current state.
+  if (!this.checkState('destroy')) {
+    this.handleCallback(callback);
+    return;
+  }
+
+  if (this.state == GuestViewImpl.GuestState.GUEST_STATE_START) {
+    // destroy() does nothing in this case.
+    this.handleCallback(callback);
+    return;
+  }
+
+  // If this guest is attached, then detach it first.
+  if (!!this.internalInstanceId) {
+    GuestViewInternalNatives.DetachGuest(this.internalInstanceId);
+  }
+
+  this.handleCallback(callback);
+
+  // Reset the state of the destroyed guest;
+  this.contentWindow = null;
+  this.id = 0;
+  this.internalInstanceId = 0;
+  this.state = GuestViewImpl.GuestState.GUEST_STATE_START;
+  if (ResizeEvent.hasListener(this.callOnResize)) {
+    ResizeEvent.removeListener(this.callOnResize);
+  }
+};
diff --git a/ios/chrome/app/application_delegate/url_opener_unittest.mm b/ios/chrome/app/application_delegate/url_opener_unittest.mm
index b2aee14..cfee40e 100644
--- a/ios/chrome/app/application_delegate/url_opener_unittest.mm
+++ b/ios/chrome/app/application_delegate/url_opener_unittest.mm
@@ -77,6 +77,7 @@
 - (void)expectNewForegroundTab;
 - (void)setActive:(BOOL)active;
 - (TabModel*)tabModel;
+- (void)shutdown;
 @end
 
 @implementation URLOpenerMockBVC
@@ -110,10 +111,19 @@
   return nil;
 }
 
+- (void)shutdown {
+  // no-op
+}
+
 @end
 
 class URLOpenerTest : public PlatformTest {
  protected:
+  void TearDown() override {
+    [main_controller_ stopChromeMain];
+    PlatformTest::TearDown();
+  }
+
   MainController* GetMainController() {
     if (!main_controller_) {
       main_controller_ = [[MainController alloc] init];
diff --git a/ios/chrome/app/main_controller.mm b/ios/chrome/app/main_controller.mm
index 833e747..2c13635 100644
--- a/ios/chrome/app/main_controller.mm
+++ b/ios/chrome/app/main_controller.mm
@@ -268,14 +268,6 @@
   base::scoped_nsobject<SigninInteractionController>
       _signinInteractionController;
 
-  // The number of memory warnings that have been received in this
-  // foreground session.
-  int _foregroundMemoryWarningCount;
-
-  // The time at which to reset the OOM crash flag in the user defaults. This
-  // is used to handle receiving multiple memory warnings in short succession.
-  CFAbsoluteTime _outOfMemoryResetTime;
-
   // YES while animating the dismissal of stack view.
   BOOL _dismissingStackView;
 
@@ -694,6 +686,7 @@
   // Initialize and set the main browser state.
   [self initializeBrowserState:chromeBrowserState];
   _mainBrowserState = chromeBrowserState;
+  [_browserViewWrangler shutdown];
   _browserViewWrangler.reset([[BrowserViewWrangler alloc]
       initWithBrowserState:_mainBrowserState
           tabModelObserver:self]);
@@ -960,7 +953,9 @@
   [_spotlightManager shutdown];
   _spotlightManager.reset();
 
+  [_browserViewWrangler shutdown];
   _browserViewWrangler.reset();
+
   _chromeMain.reset();
 }
 
@@ -2600,6 +2595,7 @@
   // Create a BrowserViewWrangler with a null browser state. This will trigger
   // assertions if the BrowserViewWrangler is asked to create any BVC or
   // tabModel objects, but it will accept assignments to them.
+  [_browserViewWrangler shutdown];
   _browserViewWrangler.reset([[BrowserViewWrangler alloc]
       initWithBrowserState:nullptr
           tabModelObserver:self]);
diff --git a/ios/chrome/app/main_controller_unittest.mm b/ios/chrome/app/main_controller_unittest.mm
index 87dec94..36fa2c3 100644
--- a/ios/chrome/app/main_controller_unittest.mm
+++ b/ios/chrome/app/main_controller_unittest.mm
@@ -53,6 +53,11 @@
 
 class TabOpenerTest : public PlatformTest {
  protected:
+  void TearDown() override {
+    [main_controller_ stopChromeMain];
+    PlatformTest::TearDown();
+  }
+
   BOOL swizzleHasBeenCalled() { return swizzle_block_executed_; }
 
   void swizzleHandleLaunchOptions(
diff --git a/ios/chrome/browser/crash_report/BUILD.gn b/ios/chrome/browser/crash_report/BUILD.gn
index 1b6257f..e94ef6d 100644
--- a/ios/chrome/browser/crash_report/BUILD.gn
+++ b/ios/chrome/browser/crash_report/BUILD.gn
@@ -31,6 +31,7 @@
 }
 
 source_set("crash_report_internal") {
+  configs += [ "//build/config/compiler:enable_arc" ]
   sources = [
     "crash_report_helper.h",
     "crash_report_helper.mm",
diff --git a/ios/chrome/browser/crash_report/crash_report_helper.mm b/ios/chrome/browser/crash_report/crash_report_helper.mm
index bbb5fcb..8272205 100644
--- a/ios/chrome/browser/crash_report/crash_report_helper.mm
+++ b/ios/chrome/browser/crash_report/crash_report_helper.mm
@@ -13,7 +13,6 @@
 #include "base/files/file_path.h"
 #include "base/files/file_util.h"
 #include "base/location.h"
-#include "base/mac/scoped_nsobject.h"
 #include "base/path_service.h"
 #include "base/strings/sys_string_conversions.h"
 #include "base/time/time.h"
@@ -30,15 +29,19 @@
 #include "ios/web/public/web_thread.h"
 #import "net/base/mac/url_conversions.h"
 
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
 // TabModelObserver that allows loaded urls to be sent to the crash server.
 @interface CrashReporterURLObserver : NSObject<TabModelObserver> {
  @private
   // Map associating the tab id to the breakpad key used to keep track of the
   // loaded URL.
-  base::scoped_nsobject<NSMutableDictionary> breakpadKeyByTabId_;
+  NSMutableDictionary* breakpadKeyByTabId_;
   // List of keys to use for recording URLs. This list is sorted such that a new
   // tab must use the first key in this list to record its URLs.
-  base::scoped_nsobject<NSMutableArray> breakpadKeys_;
+  NSMutableArray* breakpadKeys_;
 }
 + (CrashReporterURLObserver*)uniqueInstance;
 // Removes the URL for the tab with the given id from the URLs sent to the crash
@@ -65,7 +68,7 @@
  @private
   // Map associating the tab id to an object describing the current state of the
   // tab.
-  base::scoped_nsobject<NSMutableDictionary> tabCurrentStateByTabId_;
+  NSMutableDictionary* tabCurrentStateByTabId_;
 }
 + (CrashReporterURLObserver*)uniqueInstance;
 // Removes the stats for the tab tabId
@@ -114,10 +117,10 @@
 
 - (id)init {
   if ((self = [super init])) {
-    breakpadKeyByTabId_.reset(
-        [[NSMutableDictionary alloc] initWithCapacity:kNumberOfURLsToSend]);
-    breakpadKeys_.reset(
-        [[NSMutableArray alloc] initWithCapacity:kNumberOfURLsToSend]);
+    breakpadKeyByTabId_ =
+        [[NSMutableDictionary alloc] initWithCapacity:kNumberOfURLsToSend];
+    breakpadKeys_ =
+        [[NSMutableArray alloc] initWithCapacity:kNumberOfURLsToSend];
     for (int i = 0; i < kNumberOfURLsToSend; ++i)
       [breakpadKeys_ addObject:[NSString stringWithFormat:@"url%d", i]];
     // Register for url changed notifications.
@@ -159,7 +162,6 @@
   NSString* key = [breakpadKeyByTabId_ objectForKey:tabId];
   if (!key)
     return;
-  base::scoped_nsobject<NSString> alive([key retain]);
   breakpad_helper::RemoveReportParameter(key);
   breakpad_helper::RemoveReportParameter(PendingURLKeyForKey(key));
   [breakpadKeyByTabId_ removeObjectForKey:tabId];
@@ -174,9 +176,7 @@
   BOOL reusingKey = NO;
   if (!breakpadKey) {
     // Get the first breakpad key and push it back at the end of the keys.
-    base::scoped_nsobject<NSString> alive(
-        [[breakpadKeys_ objectAtIndex:0] retain]);
-    breakpadKey = alive.get();
+    breakpadKey = [breakpadKeys_ objectAtIndex:0];
     [breakpadKeys_ removeObject:breakpadKey];
     [breakpadKeys_ addObject:breakpadKey];
     // Remove the current mapping to the breakpad key.
@@ -242,7 +242,7 @@
 
 - (id)init {
   if ((self = [super init])) {
-    tabCurrentStateByTabId_.reset([[NSMutableDictionary alloc] init]);
+    tabCurrentStateByTabId_ = [[NSMutableDictionary alloc] init];
     // Register for url changed notifications.
     [[NSNotificationCenter defaultCenter]
         addObserver:self
@@ -276,9 +276,9 @@
   NSMutableDictionary* tabCurrentState =
       [tabCurrentStateByTabId_ objectForKey:tabId];
   if (tabCurrentState == nil) {
-    base::scoped_nsobject<NSMutableDictionary> currentStateOfNewTab(
-        [[NSMutableDictionary alloc] init]);
-    [tabCurrentStateByTabId_ setObject:currentStateOfNewTab.get() forKey:tabId];
+    NSMutableDictionary* currentStateOfNewTab =
+        [[NSMutableDictionary alloc] init];
+    [tabCurrentStateByTabId_ setObject:currentStateOfNewTab forKey:tabId];
     tabCurrentState = [tabCurrentStateByTabId_ objectForKey:tabId];
   }
   [tabCurrentState setObject:value forKey:key];
diff --git a/ios/chrome/browser/crash_report/crash_restore_helper.mm b/ios/chrome/browser/crash_report/crash_restore_helper.mm
index 12b9676..2b8f9ad 100644
--- a/ios/chrome/browser/crash_report/crash_restore_helper.mm
+++ b/ios/chrome/browser/crash_report/crash_restore_helper.mm
@@ -29,6 +29,10 @@
 #include "ui/base/l10n/l10n_util.h"
 #include "ui/base/resource/resource_bundle.h"
 
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
 @protocol InfoBarManagerObserverBridgeProtocol
 - (void)infoBarRemoved:(infobars::InfoBar*)infobar;
 @end
@@ -110,16 +114,14 @@
   int GetIconId() const override;
 
   // The CrashRestoreHelper to restore sessions.
-  base::scoped_nsobject<CrashRestoreHelper> crash_restore_helper_;
-  // The TabModel to restore sessions to.
-  base::scoped_nsobject<TabModel> tab_model_;
+  CrashRestoreHelper* crash_restore_helper_;
 
   DISALLOW_COPY_AND_ASSIGN(SessionCrashedInfoBarDelegate);
 };
 
 SessionCrashedInfoBarDelegate::SessionCrashedInfoBarDelegate(
     CrashRestoreHelper* crash_restore_helper)
-    : crash_restore_helper_([crash_restore_helper retain]) {}
+    : crash_restore_helper_(crash_restore_helper) {}
 
 SessionCrashedInfoBarDelegate::~SessionCrashedInfoBarDelegate() {}
 
@@ -171,7 +173,7 @@
   BOOL _needRestoration;
   std::unique_ptr<InfoBarManagerObserverBridge> _infoBarBridge;
   // The TabModel to restore sessions to.
-  base::scoped_nsobject<TabModel> _tabModel;
+  TabModel* _tabModel;
 
   // Indicate that the session has been restored to tabs or to recently closed
   // and should not be rerestored.
@@ -195,7 +197,7 @@
   DCHECK([tabModel currentTab]);
   infobars::InfoBarManager* infoBarManager =
       [[tabModel currentTab] infoBarManager];
-  _tabModel.reset([tabModel retain]);
+  _tabModel = tabModel;
   SessionCrashedInfoBarDelegate::Create(infoBarManager, self);
   _infoBarBridge.reset(new InfoBarManagerObserverBridge(infoBarManager, self));
 }
diff --git a/ios/chrome/browser/infobars/confirm_infobar_controller.mm b/ios/chrome/browser/infobars/confirm_infobar_controller.mm
index 8f3ac3c..d4b2a94 100644
--- a/ios/chrome/browser/infobars/confirm_infobar_controller.mm
+++ b/ios/chrome/browser/infobars/confirm_infobar_controller.mm
@@ -118,9 +118,10 @@
     base::ReplaceFirstSubstringAfterOffset(
         &messageText, 0, _confirmInfobarDelegate->GetLinkText(), msgLink);
 
+    __weak ConfirmInfoBarController* weakSelf = self;
     [view addLabel:base::SysUTF16ToNSString(messageText)
             action:^(NSUInteger tag) {
-              [self infobarLinkDidPress:tag];
+              [weakSelf infobarLinkDidPress:tag];
             }];
   } else {
     NSString* label =
diff --git a/ios/chrome/browser/passwords/update_password_infobar_controller.mm b/ios/chrome/browser/passwords/update_password_infobar_controller.mm
index 656b3bb..ed3e451 100644
--- a/ios/chrome/browser/passwords/update_password_infobar_controller.mm
+++ b/ios/chrome/browser/passwords/update_password_infobar_controller.mm
@@ -4,6 +4,7 @@
 
 #import "ios/chrome/browser/passwords/update_password_infobar_controller.h"
 
+#include "base/ios/weak_nsobject.h"
 #import "base/mac/objc_property_releaser.h"
 #include "base/strings/string_util.h"
 #include "base/strings/sys_string_conversions.h"
@@ -61,9 +62,10 @@
         &messageText, 0, _delegate->selected_account(), usernameLink);
   }
 
+  base::WeakNSObject<UpdatePasswordInfoBarController> weakSelf(self);
   [view addLabel:base::SysUTF16ToNSString(messageText)
           action:^(NSUInteger tag) {
-            [self infobarLinkDidPress:tag];
+            [weakSelf infobarLinkDidPress:tag];
           }];
 }
 
diff --git a/ios/chrome/browser/translate/before_translate_infobar_controller.mm b/ios/chrome/browser/translate/before_translate_infobar_controller.mm
index 462ef17..59e97ee 100644
--- a/ios/chrome/browser/translate/before_translate_infobar_controller.mm
+++ b/ios/chrome/browser/translate/before_translate_infobar_controller.mm
@@ -7,6 +7,7 @@
 #include <stddef.h>
 #import <UIKit/UIKit.h>
 
+#include "base/ios/weak_nsobject.h"
 #include "base/logging.h"
 #include "base/mac/scoped_nsobject.h"
 #include "base/strings/sys_string_conversions.h"
@@ -172,9 +173,11 @@
   NSString* label =
       l10n_util::GetNSStringF(IDS_TRANSLATE_INFOBAR_BEFORE_MESSAGE_IOS,
                               originalLanguageWithLink, targetLanguageWithLink);
+
+  base::WeakNSObject<BeforeTranslateInfoBarController> weakSelf(self);
   [view addLabel:label
           action:^(NSUInteger tag) {
-            [self infobarLinkDidPress:tag];
+            [weakSelf infobarLinkDidPress:tag];
           }];
 }
 
diff --git a/ios/chrome/browser/ui/browser_view_controller.h b/ios/chrome/browser/ui/browser_view_controller.h
index 2870f45..d4af89e 100644
--- a/ios/chrome/browser/ui/browser_view_controller.h
+++ b/ios/chrome/browser/ui/browser_view_controller.h
@@ -155,6 +155,9 @@
 - (void)removeExternalFilesImmediately:(BOOL)immediately
                      completionHandler:(ProceduralBlock)completionHandler;
 
+// Called before the instance is deallocated.
+- (void)shutdown;
+
 @end
 
 #endif  // IOS_CHROME_BROWSER_UI_BROWSER_VIEW_CONTROLLER_H_
diff --git a/ios/chrome/browser/ui/browser_view_controller.mm b/ios/chrome/browser/ui/browser_view_controller.mm
index 663fe51..5d491c2e 100644
--- a/ios/chrome/browser/ui/browser_view_controller.mm
+++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -471,6 +471,9 @@
   // YES if waiting for a foreground tab due to expectNewForegroundTab.
   BOOL _expectingForegroundTab;
 
+  // Whether or not -shutdown has been called.
+  BOOL _isShutdown;
+
   // The ChromeBrowserState associated with this BVC.
   ios::ChromeBrowserState* _browserState;  // weak
 
@@ -989,19 +992,7 @@
 }
 
 - (void)dealloc {
-  _tabStripController = nil;
-  _infoBarContainer = nil;
-  _readingListMenuNotifier = nil;
-  if (_bookmarkModel)
-    _bookmarkModel->RemoveObserver(_bookmarkModelBridge.get());
-  [_model removeObserver:self];
-  [[UpgradeCenter sharedInstance] unregisterClient:self];
-  [[NSNotificationCenter defaultCenter] removeObserver:self];
-  [_toolbarController setDelegate:nil];
-  if (_voiceSearchController)
-    _voiceSearchController->SetDelegate(nil);
-  [_rateThisAppDialog setDelegate:nil];
-  [_model closeAllTabs];
+  DCHECK(_isShutdown) << "-shutdown must be called before dealloc.";
 }
 
 #pragma mark - Accessibility
@@ -2267,6 +2258,25 @@
                                              }));
 }
 
+- (void)shutdown {
+  DCHECK(!_isShutdown);
+  _isShutdown = YES;
+
+  _tabStripController = nil;
+  _infoBarContainer = nil;
+  _readingListMenuNotifier = nil;
+  if (_bookmarkModel)
+    _bookmarkModel->RemoveObserver(_bookmarkModelBridge.get());
+  [_model removeObserver:self];
+  [[UpgradeCenter sharedInstance] unregisterClient:self];
+  [[NSNotificationCenter defaultCenter] removeObserver:self];
+  [_toolbarController setDelegate:nil];
+  if (_voiceSearchController)
+    _voiceSearchController->SetDelegate(nil);
+  [_rateThisAppDialog setDelegate:nil];
+  [_model closeAllTabs];
+}
+
 #pragma mark - SnapshotOverlayProvider methods
 
 - (NSArray*)snapshotOverlaysForTab:(Tab*)tab {
diff --git a/ios/chrome/browser/ui/browser_view_controller_unittest.mm b/ios/chrome/browser/ui/browser_view_controller_unittest.mm
index 1d274ef..a5ee827 100644
--- a/ios/chrome/browser/ui/browser_view_controller_unittest.mm
+++ b/ios/chrome/browser/ui/browser_view_controller_unittest.mm
@@ -263,6 +263,8 @@
 
   void TearDown() override {
     [[bvc_ view] removeFromSuperview];
+    [bvc_ shutdown];
+
     BlockCleanupTest::TearDown();
   }
 
diff --git a/ios/chrome/browser/ui/main/browser_view_wrangler.h b/ios/chrome/browser/ui/main/browser_view_wrangler.h
index 5f887b4..4766291 100644
--- a/ios/chrome/browser/ui/main/browser_view_wrangler.h
+++ b/ios/chrome/browser/ui/main/browser_view_wrangler.h
@@ -57,6 +57,9 @@
 - (void)deleteIncognitoTabModelState:
     (BrowsingDataRemovalController*)removalController;
 
+// Called before the instance is deallocated.
+- (void)shutdown;
+
 @end
 
 @interface BrowserViewWrangler (Testing)
diff --git a/ios/chrome/browser/ui/main/browser_view_wrangler.mm b/ios/chrome/browser/ui/main/browser_view_wrangler.mm
index ef7f08f..d31d546 100644
--- a/ios/chrome/browser/ui/main/browser_view_wrangler.mm
+++ b/ios/chrome/browser/ui/main/browser_view_wrangler.mm
@@ -27,6 +27,7 @@
 @interface BrowserViewWrangler ()<TabModelObserver> {
   ios::ChromeBrowserState* _browserState;
   __unsafe_unretained id<TabModelObserver> _tabModelObserver;
+  BOOL _isShutdown;
 
   base::mac::ObjCPropertyReleaser _propertyReleaser_BrowserViewWrangler;
 }
@@ -82,25 +83,7 @@
 }
 
 - (void)dealloc {
-  if (_tabModelObserver) {
-    [_mainTabModel removeObserver:_tabModelObserver];
-    [_otrTabModel removeObserver:_tabModelObserver];
-  }
-  [_mainTabModel removeObserver:self];
-  [_otrTabModel removeObserver:self];
-
-  // Stop URL monitoring of the main tab model.
-  ios_internal::breakpad::StopMonitoringURLsForTabModel(_mainTabModel);
-
-  // Stop Breakpad state monitoring of both tab models (if necessary).
-  ios_internal::breakpad::StopMonitoringTabStateForTabModel(_mainTabModel);
-  ios_internal::breakpad::StopMonitoringTabStateForTabModel(_otrTabModel);
-
-  // Normally other objects will take care of unhooking the tab models from
-  // the browser state, but this code should ensure that it happens regardless.
-  [_mainTabModel browserStateDestroyed];
-  [_otrTabModel browserStateDestroyed];
-
+  DCHECK(_isShutdown) << "-shutdown must be called before -dealloc";
   [super dealloc];
 }
 
@@ -283,6 +266,39 @@
   }
 }
 
+- (void)shutdown {
+  DCHECK(!_isShutdown);
+  _isShutdown = YES;
+
+  if (_tabModelObserver) {
+    [_mainTabModel removeObserver:_tabModelObserver];
+    [_otrTabModel removeObserver:_tabModelObserver];
+    _tabModelObserver = nil;
+  }
+
+  [_mainTabModel removeObserver:self];
+  [_otrTabModel removeObserver:self];
+
+  // Stop URL monitoring of the main tab model.
+  ios_internal::breakpad::StopMonitoringURLsForTabModel(_mainTabModel);
+
+  // Stop Breakpad state monitoring of both tab models (if necessary).
+  ios_internal::breakpad::StopMonitoringTabStateForTabModel(_mainTabModel);
+  ios_internal::breakpad::StopMonitoringTabStateForTabModel(_otrTabModel);
+
+  // Normally other objects will take care of unhooking the tab models from
+  // the browser state, but this code should ensure that it happens regardless.
+  [_mainTabModel browserStateDestroyed];
+  [_otrTabModel browserStateDestroyed];
+
+  [_mainBVC shutdown];
+  [_otrBVC shutdown];
+  self.mainBVC = nil;
+  self.otrBVC = nil;
+
+  _browserState = nullptr;
+}
+
 #pragma mark - Internal methods
 
 - (TabModel*)buildOtrTabModel:(BOOL)empty {
diff --git a/ios/chrome/browser/ui/main/browser_view_wrangler_unittest.mm b/ios/chrome/browser/ui/main/browser_view_wrangler_unittest.mm
index 474ebb3f..cdc83472 100644
--- a/ios/chrome/browser/ui/main/browser_view_wrangler_unittest.mm
+++ b/ios/chrome/browser/ui/main/browser_view_wrangler_unittest.mm
@@ -50,6 +50,8 @@
   EXPECT_NE(bvc, [wrangler otrBVC]);
   EXPECT_NE(tabModel, [wrangler otrTabModel]);
   EXPECT_TRUE([wrangler otrTabModel].browserState->IsOffTheRecord());
+
+  [wrangler shutdown];
 }
 
 }  // namespace
diff --git a/ios/showcase/core/app_delegate.h b/ios/showcase/core/app_delegate.h
index e8c3c34..c16a993 100644
--- a/ios/showcase/core/app_delegate.h
+++ b/ios/showcase/core/app_delegate.h
@@ -11,6 +11,9 @@
 
 @property(strong, nonatomic) UIWindow* window;
 
+// Sets the application to display the Showcase home.
+- (void)setupUI;
+
 @end
 
 #endif  // IOS_SHOWCASE_CORE_APP_DELEGATE_H_
diff --git a/ios/showcase/core/app_delegate.mm b/ios/showcase/core/app_delegate.mm
index 12f1a43..8b7e4ed 100644
--- a/ios/showcase/core/app_delegate.mm
+++ b/ios/showcase/core/app_delegate.mm
@@ -18,17 +18,23 @@
 @implementation AppDelegate
 @synthesize window = _window;
 
+- (void)setupUI {
+  ShowcaseViewController* viewController =
+      [[ShowcaseViewController alloc] initWithRows:[AppDelegate rowsToDisplay]];
+  UINavigationController* navigationController = [[UINavigationController alloc]
+      initWithRootViewController:viewController];
+  self.window.rootViewController = navigationController;
+}
+
+#pragma mark - UIApplicationDelegate
+
 - (BOOL)application:(UIApplication*)application
     didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
   base::MakeUnique<IOSChromeMain>();
   ResourceBundle::InitSharedInstanceWithLocale(
       std::string(), nullptr, ResourceBundle::LOAD_COMMON_RESOURCES);
   self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
-  ShowcaseViewController* viewController =
-      [[ShowcaseViewController alloc] initWithRows:[self rowsToDisplay]];
-  UINavigationController* navigationController = [[UINavigationController alloc]
-      initWithRootViewController:viewController];
-  self.window.rootViewController = navigationController;
+  [self setupUI];
   [self.window makeKeyAndVisible];
 
   return YES;
@@ -37,7 +43,7 @@
 #pragma mark - Private
 
 // Creates model data to display in the view controller.
-- (NSArray<showcase::ModelRow*>*)rowsToDisplay {
++ (NSArray<showcase::ModelRow*>*)rowsToDisplay {
   NSArray<showcase::ModelRow*>* rows = [ShowcaseModel model];
   NSSortDescriptor* sortDescriptor =
       [NSSortDescriptor sortDescriptorWithKey:showcase::kClassForDisplayKey
diff --git a/ios/showcase/core/showcase_model.mm b/ios/showcase/core/showcase_model.mm
index 491b6ad..51bd3f4 100644
--- a/ios/showcase/core/showcase_model.mm
+++ b/ios/showcase/core/showcase_model.mm
@@ -86,6 +86,11 @@
       showcase::kClassForInstantiationKey : @"SCSearchWidgetCoordinator",
       showcase::kUseCaseKey : @"Search Widget",
     },
+    @{
+      showcase::kClassForDisplayKey : @"ContentWidgetViewController",
+      showcase::kClassForInstantiationKey : @"SCContentWidgetCoordinator",
+      showcase::kUseCaseKey : @"Content Widget",
+    },
   ];
 }
 
diff --git a/ios/showcase/test/BUILD.gn b/ios/showcase/test/BUILD.gn
index 0561a4f..365e3038 100644
--- a/ios/showcase/test/BUILD.gn
+++ b/ios/showcase/test/BUILD.gn
@@ -12,6 +12,7 @@
   ]
   deps = [
     "//base",
+    "//ios/showcase/core",
     "//ios/testing/earl_grey:earl_grey_support",
     "//ios/third_party/earl_grey",
     "//testing/gtest",
diff --git a/ios/showcase/test/showcase_eg_utils.mm b/ios/showcase/test/showcase_eg_utils.mm
index 111bac2..de66ab9 100644
--- a/ios/showcase/test/showcase_eg_utils.mm
+++ b/ios/showcase/test/showcase_eg_utils.mm
@@ -47,7 +47,11 @@
 void Close() {
   // Some screens hides the navigation bar. Make sure it is showing.
   ShowcaseNavigationController().navigationBarHidden = NO;
+  [[EarlGrey selectElementWithMatcher:BackButton()]
+      assertWithMatcher:grey_interactable()];
   [[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()];
+  [[EarlGrey selectElementWithMatcher:HomeScreen()]
+      assertWithMatcher:grey_sufficientlyVisible()];
 }
 
 }  // namespace showcase_utils
diff --git a/ios/showcase/test/showcase_test_case.mm b/ios/showcase/test/showcase_test_case.mm
index 6738c6d..ca4bfa9 100644
--- a/ios/showcase/test/showcase_test_case.mm
+++ b/ios/showcase/test/showcase_test_case.mm
@@ -7,6 +7,8 @@
 #import <EarlGrey/EarlGrey.h>
 
 #import "base/logging.h"
+#import "base/mac/foundation_util.h"
+#import "ios/showcase/core/app_delegate.h"
 #include "testing/coverage_util_ios.h"
 
 #if !defined(__has_feature) || !__has_feature(objc_arc)
@@ -33,4 +35,10 @@
   return [super testInvocations];
 }
 
+- (void)setUp {
+  AppDelegate* delegate = base::mac::ObjCCastStrict<AppDelegate>(
+      [UIApplication sharedApplication].delegate);
+  [delegate setupUI];
+}
+
 @end
diff --git a/ios/showcase/widget/BUILD.gn b/ios/showcase/widget/BUILD.gn
index aca54798..8e2884d 100644
--- a/ios/showcase/widget/BUILD.gn
+++ b/ios/showcase/widget/BUILD.gn
@@ -4,10 +4,13 @@
 
 source_set("widget") {
   sources = [
+    "sc_content_widget_coordinator.h",
+    "sc_content_widget_coordinator.mm",
     "sc_search_widget_coordinator.h",
     "sc_search_widget_coordinator.mm",
   ]
   deps = [
+    "//ios/chrome/content_widget_extension:content_widget",
     "//ios/chrome/search_widget_extension:search_widget",
     "//ios/showcase/common",
   ]
diff --git a/ios/showcase/widget/sc_content_widget_coordinator.h b/ios/showcase/widget/sc_content_widget_coordinator.h
new file mode 100644
index 0000000..501d08b
--- /dev/null
+++ b/ios/showcase/widget/sc_content_widget_coordinator.h
@@ -0,0 +1,15 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_SHOWCASE_TOOLBAR_SC_CONTENT_WIDGET_COORDINATOR_H_
+#define IOS_SHOWCASE_TOOLBAR_SC_CONTENT_WIDGET_COORDINATOR_H_
+
+#import <UIKit/UIKit.h>
+
+#import "ios/showcase/common/navigation_coordinator.h"
+
+@interface SCContentWidgetCoordinator : NSObject<NavigationCoordinator>
+@end
+
+#endif  // IOS_SHOWCASE_TOOLBAR_SC_CONTENT_WIDGET_COORDINATOR_H_
diff --git a/ios/showcase/widget/sc_content_widget_coordinator.mm b/ios/showcase/widget/sc_content_widget_coordinator.mm
new file mode 100644
index 0000000..b58a321e
--- /dev/null
+++ b/ios/showcase/widget/sc_content_widget_coordinator.mm
@@ -0,0 +1,25 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import "ios/showcase/widget/sc_content_widget_coordinator.h"
+
+#import "ios/chrome/content_widget_extension/content_widget_view_controller.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+@implementation SCContentWidgetCoordinator
+
+@synthesize baseViewController;
+
+- (void)start {
+  ContentWidgetViewController* contentWidget =
+      [[ContentWidgetViewController alloc] init];
+  contentWidget.title = @"Content Widget";
+  contentWidget.view.backgroundColor = [UIColor whiteColor];
+  [self.baseViewController pushViewController:contentWidget animated:YES];
+}
+
+@end
diff --git a/ios/web/BUILD.gn b/ios/web/BUILD.gn
index 32fd3f7..c2a9c4c 100644
--- a/ios/web/BUILD.gn
+++ b/ios/web/BUILD.gn
@@ -544,6 +544,7 @@
 }
 
 test("ios_web_inttests") {
+  configs += [ "//build/config/compiler:enable_arc" ]
   deps = [
     ":web",
     "//base/test:test_support",
diff --git a/ios/web/browser_state_web_view_partition_inttest.mm b/ios/web/browser_state_web_view_partition_inttest.mm
index e0b46d0..00396e9e 100644
--- a/ios/web/browser_state_web_view_partition_inttest.mm
+++ b/ios/web/browser_state_web_view_partition_inttest.mm
@@ -88,7 +88,7 @@
                            WKWebView* web_view) {
     NSString* set_local_storage_item = [NSString
         stringWithFormat:@"localStorage.setItem('%@', '%@')", key, value];
-    NSError* unused_error = nil;
+    __unsafe_unretained NSError* unused_error = nil;
     web::ExecuteJavaScript(web_view, set_local_storage_item, &unused_error);
   }
 
diff --git a/ios/web/web_state/navigation_callbacks_inttest.mm b/ios/web/web_state/navigation_callbacks_inttest.mm
index 76e3b92fc..ec7867d 100644
--- a/ios/web/web_state/navigation_callbacks_inttest.mm
+++ b/ios/web/web_state/navigation_callbacks_inttest.mm
@@ -509,9 +509,8 @@
 
   // Load request using POST HTTP method.
   web::NavigationManager::WebLoadParams params(url);
-  params.post_data.reset(
-      [[@"foo" dataUsingEncoding:NSUTF8StringEncoding] retain]);
-  params.extra_headers.reset([@{ @"Content-Type" : @"text/html" } retain]);
+  params.post_data.reset([@"foo" dataUsingEncoding:NSUTF8StringEncoding]);
+  params.extra_headers.reset(@{ @"Content-Type" : @"text/html" });
   LoadWithParams(params);
 }
 
diff --git a/net/BUILD.gn b/net/BUILD.gn
index 4006305..cd3d690 100644
--- a/net/BUILD.gn
+++ b/net/BUILD.gn
@@ -3037,8 +3037,12 @@
   sources = [
     "quic/chromium/crypto_test_utils_chromium.cc",
     "quic/platform/api/quic_test.h",
+    "quic/platform/api/quic_test_loopback.cc",
+    "quic/platform/api/quic_test_loopback.h",
     "quic/platform/impl/quic_test_impl.cc",
     "quic/platform/impl/quic_test_impl.h",
+    "quic/platform/impl/quic_test_loopback_impl.cc",
+    "quic/platform/impl/quic_test_loopback_impl.h",
     "quic/test_tools/crypto_test_utils.cc",
     "quic/test_tools/crypto_test_utils.h",
     "quic/test_tools/delayed_verify_strike_register_client.cc",
diff --git a/net/data/ssl/certificate_transparency/log_list.json b/net/data/ssl/certificate_transparency/log_list.json
index de13269..214c0354 100644
--- a/net/data/ssl/certificate_transparency/log_list.json
+++ b/net/data/ssl/certificate_transparency/log_list.json
@@ -158,16 +158,6 @@
     8
    ],
    "dns_api_endpoint": "startcom1.ct.googleapis.com"
-  },
-  {
-   "description": "PuChuangSiDa CT log",
-   "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArM8vS3Cs8Q2Wv+gK/kSd1IwXncOaEBGEE+2M+Tdtg+QAb7FLwKaJx2GPmjS7VlLKA1ZQ7yR/S0npNYHd8OcX9XLSI8XjE3/Xjng1j0nemASKY6+tojlwlYRoS5Ez/kzhMhfC8mG4Oo05f9WVgj5WGVBFb8sIMw3VGUIIGkhCEPFow8NBE8sNHtsCtyR6UZZuvAjqaa9t75KYjlXzZeXonL4aR2AwfXqArVaDepPDrpMraiiKpl9jGQy+fHshY0E4t/fodnNrhcy8civBUtBbXTFOnSrzTZtkFJkmxnH4e/hE1eMjIPMK14tRPnKA0nh4NS1K50CZEZU01C9/+V81NwIDAQAB",
-   "url": "www.certificatetransparency.cn/ct/",
-   "maximum_merge_delay": 86400,
-   "operated_by": [
-    9
-   ],
-   "dns_api_endpoint": "puchuangsida1.ct.googleapis.com"
   }
  ],
  "operators": [
@@ -206,10 +196,6 @@
   {
    "name": "StartSSL",
    "id": 8
-  },
-  {
-   "name": "Beijing PuChuangSiDa Technology Ltd.",
-   "id": 9
   }
  ]
-}
\ No newline at end of file
+}
diff --git a/net/quic/platform/api/quic_ip_address.h b/net/quic/platform/api/quic_ip_address.h
index 75b9f0c7..3d3100b9 100644
--- a/net/quic/platform/api/quic_ip_address.h
+++ b/net/quic/platform/api/quic_ip_address.h
@@ -21,6 +21,8 @@
     kIPv4AddressSize = QuicIpAddressImpl::kIPv4AddressSize,
     kIPv6AddressSize = QuicIpAddressImpl::kIPv6AddressSize
   };
+
+  // TODO(fayang): Remove Loopback*() and use TestLoopback*() in tests.
   static QuicIpAddress Loopback4();
   static QuicIpAddress Loopback6();
   static QuicIpAddress Any4();
diff --git a/net/quic/platform/api/quic_test_loopback.cc b/net/quic/platform/api/quic_test_loopback.cc
new file mode 100644
index 0000000..ea240604
--- /dev/null
+++ b/net/quic/platform/api/quic_test_loopback.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/quic/platform/api/quic_test_loopback.h"
+
+namespace net {
+
+IpAddressFamily AddressFamilyUnderTest() {
+  return AddressFamilyUnderTestImpl();
+}
+
+QuicIpAddress TestLoopback4() {
+  return TestLoopback4Impl();
+}
+
+QuicIpAddress TestLoopback6() {
+  return TestLoopback6Impl();
+}
+
+QuicIpAddress TestLoopback() {
+  return TestLoopbackImpl();
+}
+
+QuicIpAddress TestLoopback(int index) {
+  return TestLoopbackImpl(index);
+}
+
+}  // namespace net
diff --git a/net/quic/platform/api/quic_test_loopback.h b/net/quic/platform/api/quic_test_loopback.h
new file mode 100644
index 0000000..db7d2c08
--- /dev/null
+++ b/net/quic/platform/api/quic_test_loopback.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_QUIC_PLATFORM_API_QUIC_TEST_LOOPBACK_H_
+#define NET_QUIC_PLATFORM_API_QUIC_TEST_LOOPBACK_H_
+
+#include "net/quic/platform/impl/quic_test_loopback_impl.h"
+
+namespace net {
+
+// Returns the address family (IPv4 or IPv6) used to run test under.
+IpAddressFamily AddressFamilyUnderTest();
+
+// Returns an IPv4 loopback address.
+QuicIpAddress TestLoopback4();
+
+// Returns the only IPv6 loopback address.
+QuicIpAddress TestLoopback6();
+
+// Returns an appropriate IPv4/Ipv6 loopback address based upon whether the
+// test's environment.
+QuicIpAddress TestLoopback();
+
+// If address family under test is IPv4, returns an indexed IPv4 loopback
+// address. If address family under test is IPv6, the address returned is
+// platform-dependent.
+QuicIpAddress TestLoopback(int index);
+
+}  // namespace net
+
+#endif  // NET_QUIC_PLATFORM_API_QUIC_TEST_LOOPBACK_H_
diff --git a/net/quic/platform/impl/quic_test_loopback_impl.cc b/net/quic/platform/impl/quic_test_loopback_impl.cc
new file mode 100644
index 0000000..b836eb559
--- /dev/null
+++ b/net/quic/platform/impl/quic_test_loopback_impl.cc
@@ -0,0 +1,30 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/quic/platform/impl/quic_test_loopback_impl.h"
+
+namespace net {
+
+IpAddressFamily AddressFamilyUnderTestImpl() {
+  return IpAddressFamily::IP_V4;
+}
+
+QuicIpAddress TestLoopback4Impl() {
+  return QuicIpAddress(QuicIpAddressImpl(IPAddress::IPv4Localhost()));
+}
+
+QuicIpAddress TestLoopback6Impl() {
+  return QuicIpAddress(QuicIpAddressImpl(IPAddress::IPv6Localhost()));
+}
+
+QuicIpAddress TestLoopbackImpl() {
+  return QuicIpAddress(QuicIpAddressImpl(IPAddress::IPv4Localhost()));
+}
+
+QuicIpAddress TestLoopbackImpl(int index) {
+  const uint8_t kLocalhostIPv4[] = {127, 0, 0, index};
+  return QuicIpAddress(QuicIpAddressImpl(IPAddress(kLocalhostIPv4)));
+}
+
+}  // namespace net
diff --git a/net/quic/platform/impl/quic_test_loopback_impl.h b/net/quic/platform/impl/quic_test_loopback_impl.h
new file mode 100644
index 0000000..7fe1668
--- /dev/null
+++ b/net/quic/platform/impl/quic_test_loopback_impl.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_QUIC_PLATFORM_IMPL_QUIC_TEST_LOOPBACK_IMPL_H_
+#define NET_QUIC_PLATFORM_IMPL_QUIC_TEST_LOOPBACK_IMPL_H_
+
+#include "net/quic/platform/api/quic_ip_address.h"
+
+namespace net {
+
+// Returns the address family IPv4 used to run test under.
+IpAddressFamily AddressFamilyUnderTestImpl();
+
+// Returns an IPv4 loopback address.
+QuicIpAddress TestLoopback4Impl();
+
+// Returns the only IPv6 loopback address.
+QuicIpAddress TestLoopback6Impl();
+
+// Returns an IPv4 loopback address.
+QuicIpAddress TestLoopbackImpl();
+
+// Returns an indexed IPv4 loopback address.
+QuicIpAddress TestLoopbackImpl(int index);
+
+}  // namespace net
+
+#endif  // NET_QUIC_PLATFORM_IMPL_QUIC_TEST_LOOPBACK_IMPL_H_
diff --git a/net/tools/quic/end_to_end_test.cc b/net/tools/quic/end_to_end_test.cc
index f73e322..1b7e412 100644
--- a/net/tools/quic/end_to_end_test.cc
+++ b/net/tools/quic/end_to_end_test.cc
@@ -35,6 +35,7 @@
 #include "net/quic/platform/api/quic_str_cat.h"
 #include "net/quic/platform/api/quic_string_piece.h"
 #include "net/quic/platform/api/quic_test.h"
+#include "net/quic/platform/api/quic_test_loopback.h"
 #include "net/quic/platform/api/quic_text_utils.h"
 #include "net/quic/test_tools/crypto_test_utils.h"
 #include "net/quic/test_tools/quic_config_peer.h"
@@ -299,7 +300,7 @@
  protected:
   EndToEndTest()
       : initialized_(false),
-        server_address_(QuicSocketAddress(QuicIpAddress::Loopback4(), 0)),
+        server_address_(QuicSocketAddress(TestLoopback(), 0)),
         server_hostname_("test.example.com"),
         client_writer_(nullptr),
         server_writer_(nullptr),
@@ -1600,7 +1601,6 @@
 
 TEST_P(EndToEndTest, ConnectionMigrationClientIPChanged) {
   ASSERT_TRUE(Initialize());
-
   EXPECT_EQ(kFooResponseBody, client_->SendSynchronousRequest("/foo"));
   EXPECT_EQ("200", client_->response_headers()->find(":status")->second);
 
@@ -1608,8 +1608,7 @@
   QuicIpAddress old_host = client_->client()->GetLatestClientAddress().host();
 
   // Migrate socket to the new IP address.
-  QuicIpAddress new_host;
-  new_host.FromString("127.0.0.2");
+  QuicIpAddress new_host = TestLoopback(2);
   EXPECT_NE(old_host, new_host);
   ASSERT_TRUE(client_->client()->MigrateSocket(new_host));
 
diff --git a/net/tools/quic/quic_client_test.cc b/net/tools/quic/quic_client_test.cc
index 458a5b7a..973826d0 100644
--- a/net/tools/quic/quic_client_test.cc
+++ b/net/tools/quic/quic_client_test.cc
@@ -12,6 +12,7 @@
 #include "base/files/file_enumerator.h"
 #include "base/files/file_util.h"
 #include "net/quic/platform/api/quic_test.h"
+#include "net/quic/platform/api/quic_test_loopback.h"
 #include "net/quic/platform/api/quic_text_utils.h"
 #include "net/quic/test_tools/crypto_test_utils.h"
 #include "net/quic/test_tools/quic_test_utils.h"
@@ -49,8 +50,7 @@
 // Creates a new QuicClient and Initializes it. Caller is responsible for
 // deletion.
 QuicClient* CreateAndInitializeQuicClient(EpollServer* eps, uint16_t port) {
-  QuicSocketAddress server_address(
-      QuicSocketAddress(QuicIpAddress::Loopback4(), port));
+  QuicSocketAddress server_address(QuicSocketAddress(TestLoopback(), port));
   QuicServerId server_id("hostname", server_address.port(),
                          PRIVACY_MODE_DISABLED);
   QuicVersionVector versions = AllSupportedVersions();
diff --git a/net/tools/quic/quic_server_test.cc b/net/tools/quic/quic_server_test.cc
index 6c0037a..5c923d9 100644
--- a/net/tools/quic/quic_server_test.cc
+++ b/net/tools/quic/quic_server_test.cc
@@ -10,6 +10,7 @@
 #include "net/quic/platform/api/quic_logging.h"
 #include "net/quic/platform/api/quic_socket_address.h"
 #include "net/quic/platform/api/quic_test.h"
+#include "net/quic/platform/api/quic_test_loopback.h"
 #include "net/quic/test_tools/crypto_test_utils.h"
 #include "net/quic/test_tools/mock_quic_dispatcher.h"
 #include "net/tools/quic/quic_epoll_alarm_factory.h"
@@ -124,7 +125,9 @@
           DoAll(testing::Assign(&more_chlos, false), testing::Return(false)));
 
   // Send a packet to trigger epoll event.
-  int fd = socket(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK, IPPROTO_UDP);
+  int fd = socket(
+      AddressFamilyUnderTest() == IpAddressFamily::IP_V4 ? AF_INET : AF_INET6,
+      SOCK_DGRAM | SOCK_NONBLOCK, IPPROTO_UDP);
   ASSERT_LT(0, fd);
 
   char buf[1024];
diff --git a/net/url_request/url_request_quic_perftest.cc b/net/url_request/url_request_quic_perftest.cc
index ce545d1..7b881ba 100644
--- a/net/url_request/url_request_quic_perftest.cc
+++ b/net/url_request/url_request_quic_perftest.cc
@@ -19,6 +19,7 @@
 #include "base/test/trace_event_analyzer.h"
 #include "base/time/time.h"
 #include "base/trace_event/memory_dump_manager.h"
+#include "base/trace_event/memory_dump_manager_test_utils.h"
 #include "base/trace_event/memory_dump_request_args.h"
 #include "base/trace_event/process_memory_dump.h"
 #include "base/trace_event/trace_buffer.h"
@@ -87,37 +88,12 @@
                          static_cast<double>(value), unit, true);
 }
 
-void RequestGlobalDumpCallback(base::Closure quit_closure,
-                               uint64_t,
-                               bool success) {
-  base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, quit_closure);
-  ASSERT_TRUE(success);
-}
-
-void ProcessDumpCallbackAdapter(
-    base::trace_event::GlobalMemoryDumpCallback callback,
-    uint64_t dump_guid,
-    bool success,
-    const base::Optional<base::trace_event::MemoryDumpCallbackResult>&) {
-  callback.Run(dump_guid, success);
-}
-
-void RequestGlobalMemoryDumpCallback(
-    const base::trace_event::MemoryDumpRequestArgs& args,
-    const base::trace_event::GlobalMemoryDumpCallback& callback) {
-  base::trace_event::ProcessMemoryDumpCallback process_callback =
-      base::Bind(&ProcessDumpCallbackAdapter, callback);
-  base::trace_event::MemoryDumpManager::GetInstance()->CreateProcessDump(
-      args, process_callback);
-}
-
 class URLRequestQuicPerfTest : public ::testing::Test {
  protected:
   URLRequestQuicPerfTest() : message_loop_(new base::MessageLoopForIO()) {
     memory_dump_manager_ =
         base::trace_event::MemoryDumpManager::CreateInstanceForTesting();
-    memory_dump_manager_->Initialize(
-        base::BindRepeating(&RequestGlobalMemoryDumpCallback),
+    base::trace_event::InitializeMemoryDumpManagerForInProcessTesting(
         /*is_coordinator_process=*/false);
     memory_dump_manager_->set_dumper_registrations_ignored_for_testing(false);
     context_ = base::MakeUnique<TestURLRequestContext>(true);
@@ -269,11 +245,17 @@
       base::trace_event::TraceLog::RECORDING_MODE);
 
   base::RunLoop run_loop;
-  base::trace_event::MemoryDumpManager::GetInstance()->RequestGlobalDump(
-      base::trace_event::MemoryDumpType::EXPLICITLY_TRIGGERED,
-      base::trace_event::MemoryDumpLevelOfDetail::LIGHT,
-      base::Bind(&RequestGlobalDumpCallback, run_loop.QuitClosure()));
-
+  base::trace_event::MemoryDumpRequestArgs args{
+      1 /* dump_guid*/, base::trace_event::MemoryDumpType::EXPLICITLY_TRIGGERED,
+      base::trace_event::MemoryDumpLevelOfDetail::LIGHT};
+  auto on_memory_dump_done =
+      [](base::Closure quit_closure, uint64_t dump_guid, bool success,
+         const base::Optional<base::trace_event::MemoryDumpCallbackResult>&) {
+        base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, quit_closure);
+        ASSERT_TRUE(success);
+      };
+  base::trace_event::MemoryDumpManager::GetInstance()->CreateProcessDump(
+      args, base::Bind(on_memory_dump_done, run_loop.QuitClosure()));
   run_loop.Run();
   base::trace_event::TraceLog::GetInstance()->SetDisabled();
   std::unique_ptr<trace_analyzer::TraceAnalyzer> analyzer =
diff --git a/services/identity/BUILD.gn b/services/identity/BUILD.gn
index 7a5ddc81f9..3f3cfcd 100644
--- a/services/identity/BUILD.gn
+++ b/services/identity/BUILD.gn
@@ -18,6 +18,7 @@
     "//base",
     "//components/signin/core/account_id",
     "//components/signin/core/browser",
+    "//services/identity/public/cpp:cpp_types",
     "//services/identity/public/interfaces",
     "//services/service_manager/public/cpp",
     "//services/service_manager/public/interfaces",
diff --git a/services/identity/DEPS b/services/identity/DEPS
index 8d44541..ed6273e 100644
--- a/services/identity/DEPS
+++ b/services/identity/DEPS
@@ -2,9 +2,12 @@
   "+components/signin/core/account_id",
   "+components/signin/core/browser/account_info.h",
   "+components/signin/core/browser/account_tracker_service.h",
-  "+components/signin/core/browser/signin_manager_base.h",
+  "+components/signin/core/browser/fake_profile_oauth2_token_service.h",
   "+components/signin/core/browser/fake_signin_manager.h",
+  "+components/signin/core/browser/profile_oauth2_token_service.h",
+  "+components/signin/core/browser/signin_manager_base.h",
   "+components/signin/core/browser/test_signin_client.h",
   "+components/signin/public",
   "+components/sync_preferences/testing_pref_service_syncable.h",
+  "+google_apis/gaia/google_service_auth_error.h",
 ]
diff --git a/services/identity/identity_manager.cc b/services/identity/identity_manager.cc
index 7a8eddf..fb517b3 100644
--- a/services/identity/identity_manager.cc
+++ b/services/identity/identity_manager.cc
@@ -4,22 +4,70 @@
 
 #include "services/identity/identity_manager.h"
 
-#include "components/signin/core/account_id/account_id.h"
+#include <utility>
+
+#include "base/time/time.h"
 #include "components/signin/core/browser/account_info.h"
 #include "components/signin/core/browser/signin_manager_base.h"
+#include "google_apis/gaia/google_service_auth_error.h"
 #include "mojo/public/cpp/bindings/strong_binding.h"
 
 namespace identity {
 
-// static
-void IdentityManager::Create(mojom::IdentityManagerRequest request,
-                             SigninManagerBase* signin_manager) {
-  mojo::MakeStrongBinding(base::MakeUnique<IdentityManager>(signin_manager),
-                          std::move(request));
+IdentityManager::AccessTokenRequest::AccessTokenRequest(
+    const std::string& account_id,
+    const ScopeSet& scopes,
+    const std::string& consumer_id,
+    GetAccessTokenCallback consumer_callback,
+    ProfileOAuth2TokenService* token_service,
+    IdentityManager* manager)
+    : OAuth2TokenService::Consumer(consumer_id),
+      token_service_(token_service),
+      consumer_callback_(std::move(consumer_callback)),
+      manager_(manager) {
+  token_service_request_ =
+      token_service_->StartRequest(account_id, scopes, this);
 }
 
-IdentityManager::IdentityManager(SigninManagerBase* signin_manager)
-    : signin_manager_(signin_manager) {}
+IdentityManager::AccessTokenRequest::~AccessTokenRequest() = default;
+
+void IdentityManager::AccessTokenRequest::OnGetTokenSuccess(
+    const OAuth2TokenService::Request* request,
+    const std::string& access_token,
+    const base::Time& expiration_time) {
+  OnRequestCompleted(request, access_token, expiration_time,
+                     GoogleServiceAuthError::AuthErrorNone());
+}
+
+void IdentityManager::AccessTokenRequest::OnGetTokenFailure(
+    const OAuth2TokenService::Request* request,
+    const GoogleServiceAuthError& error) {
+  OnRequestCompleted(request, base::nullopt, base::Time(), error);
+}
+
+void IdentityManager::AccessTokenRequest::OnRequestCompleted(
+    const OAuth2TokenService::Request* request,
+    const base::Optional<std::string>& access_token,
+    base::Time expiration_time,
+    const GoogleServiceAuthError& error) {
+  std::move(consumer_callback_).Run(access_token, expiration_time, error);
+
+  // Causes |this| to be deleted.
+  manager_->AccessTokenRequestCompleted(this);
+}
+
+// static
+void IdentityManager::Create(mojom::IdentityManagerRequest request,
+                             SigninManagerBase* signin_manager,
+                             ProfileOAuth2TokenService* token_service) {
+  mojo::MakeStrongBinding(
+      base::MakeUnique<IdentityManager>(signin_manager, token_service),
+      std::move(request));
+}
+
+IdentityManager::IdentityManager(SigninManagerBase* signin_manager,
+                                 ProfileOAuth2TokenService* token_service)
+    : signin_manager_(signin_manager), token_service_(token_service) {}
 
 IdentityManager::~IdentityManager() {}
 
@@ -36,4 +84,21 @@
   std::move(callback).Run(account_id);
 }
 
+void IdentityManager::GetAccessToken(const std::string& account_id,
+                                     const ScopeSet& scopes,
+                                     const std::string& consumer_id,
+                                     GetAccessTokenCallback callback) {
+  std::unique_ptr<AccessTokenRequest> access_token_request =
+      base::MakeUnique<AccessTokenRequest>(account_id, scopes, consumer_id,
+                                           std::move(callback), token_service_,
+                                           this);
+
+  access_token_requests_[access_token_request.get()] =
+      std::move(access_token_request);
+}
+
+void IdentityManager::AccessTokenRequestCompleted(AccessTokenRequest* request) {
+  access_token_requests_.erase(request);
+}
+
 }  // namespace identity
diff --git a/services/identity/identity_manager.h b/services/identity/identity_manager.h
index 3f90e45..2e6a36f 100644
--- a/services/identity/identity_manager.h
+++ b/services/identity/identity_manager.h
@@ -5,6 +5,9 @@
 #ifndef SERVICES_IDENTITY_IDENTITY_MANAGER_H_
 #define SERVICES_IDENTITY_IDENTITY_MANAGER_H_
 
+#include "components/signin/core/account_id/account_id.h"
+#include "components/signin/core/browser/profile_oauth2_token_service.h"
+#include "services/identity/public/cpp/scope_set.h"
 #include "services/identity/public/interfaces/identity_manager.mojom.h"
 
 class SigninManagerBase;
@@ -14,16 +17,63 @@
 class IdentityManager : public mojom::IdentityManager {
  public:
   static void Create(mojom::IdentityManagerRequest request,
-                     SigninManagerBase* signin_manager);
+                     SigninManagerBase* signin_manager,
+                     ProfileOAuth2TokenService* token_service);
 
-  IdentityManager(SigninManagerBase* signin_manager);
+  IdentityManager(SigninManagerBase* signin_manager,
+                  ProfileOAuth2TokenService* token_service);
   ~IdentityManager() override;
 
  private:
+  // Makes an access token request to the OAuth2TokenService on behalf of a
+  // given consumer that has made the request to the Identity Service.
+  class AccessTokenRequest : public OAuth2TokenService::Consumer {
+   public:
+    AccessTokenRequest(const std::string& account_id,
+                       const ScopeSet& scopes,
+                       const std::string& consumer_id,
+                       GetAccessTokenCallback consumer_callback,
+                       ProfileOAuth2TokenService* token_service,
+                       IdentityManager* manager);
+    ~AccessTokenRequest() override;
+
+   private:
+    // OAuth2TokenService::Consumer:
+    void OnGetTokenSuccess(const OAuth2TokenService::Request* request,
+                           const std::string& access_token,
+                           const base::Time& expiration_time) override;
+    void OnGetTokenFailure(const OAuth2TokenService::Request* request,
+                           const GoogleServiceAuthError& error) override;
+
+    // Completes the pending access token request by calling back the consumer.
+    void OnRequestCompleted(const OAuth2TokenService::Request* request,
+                            const base::Optional<std::string>& access_token,
+                            base::Time expiration_time,
+                            const GoogleServiceAuthError& error);
+
+    ProfileOAuth2TokenService* token_service_;
+    std::unique_ptr<OAuth2TokenService::Request> token_service_request_;
+    GetAccessTokenCallback consumer_callback_;
+    IdentityManager* manager_;
+  };
+  using AccessTokenRequests =
+      std::map<AccessTokenRequest*, std::unique_ptr<AccessTokenRequest>>;
+
   // mojom::IdentityManager:
   void GetPrimaryAccountId(GetPrimaryAccountIdCallback callback) override;
+  void GetAccessToken(const std::string& account_id,
+                      const ScopeSet& scopes,
+                      const std::string& consumer_id,
+                      GetAccessTokenCallback callback) override;
+
+  // Deletes |request|.
+  void AccessTokenRequestCompleted(AccessTokenRequest* request);
 
   SigninManagerBase* signin_manager_;
+  ProfileOAuth2TokenService* token_service_;
+
+  // The set of pending requests for access tokens.
+  AccessTokenRequests access_token_requests_;
 };
 
 }  // namespace identity
diff --git a/services/identity/identity_manager_unittest.cc b/services/identity/identity_manager_unittest.cc
index 410d668..9838d0a 100644
--- a/services/identity/identity_manager_unittest.cc
+++ b/services/identity/identity_manager_unittest.cc
@@ -5,11 +5,13 @@
 #include "base/run_loop.h"
 #include "components/signin/core/account_id/account_id.h"
 #include "components/signin/core/browser/account_tracker_service.h"
+#include "components/signin/core/browser/fake_profile_oauth2_token_service.h"
 #include "components/signin/core/browser/fake_signin_manager.h"
 #include "components/signin/core/browser/test_signin_client.h"
 #include "components/sync_preferences/testing_pref_service_syncable.h"
 #include "mojo/public/cpp/bindings/binding_set.h"
 #include "services/identity/identity_service.h"
+#include "services/identity/public/cpp/scope_set.h"
 #include "services/identity/public/interfaces/constants.mojom.h"
 #include "services/identity/public/interfaces/identity_manager.mojom.h"
 #include "services/service_manager/public/cpp/binder_registry.h"
@@ -22,14 +24,18 @@
 
 const std::string kTestGaiaId = "dummyId";
 const std::string kTestEmail = "me@dummy.com";
+const std::string kTestRefreshToken = "dummy-refresh-token";
+const std::string kTestAccessToken = "access_token";
 
 class ServiceTestClient : public service_manager::test::ServiceTestClient,
                           public service_manager::mojom::ServiceFactory {
  public:
   ServiceTestClient(service_manager::test::ServiceTest* test,
-                    SigninManagerBase* signin_manager)
+                    SigninManagerBase* signin_manager,
+                    ProfileOAuth2TokenService* token_service)
       : service_manager::test::ServiceTestClient(test),
-        signin_manager_(signin_manager) {
+        signin_manager_(signin_manager),
+        token_service_(token_service) {
     registry_.AddInterface<service_manager::mojom::ServiceFactory>(
         base::Bind(&ServiceTestClient::Create, base::Unretained(this)));
   }
@@ -46,7 +52,7 @@
                      const std::string& name) override {
     if (name == mojom::kServiceName) {
       identity_service_context_.reset(new service_manager::ServiceContext(
-          base::MakeUnique<IdentityService>(signin_manager_),
+          base::MakeUnique<IdentityService>(signin_manager_, token_service_),
           std::move(request)));
     }
   }
@@ -58,6 +64,7 @@
 
  private:
   SigninManagerBase* signin_manager_;
+  ProfileOAuth2TokenService* token_service_;
   service_manager::BinderRegistry registry_;
   mojo::BindingSet<service_manager::mojom::ServiceFactory>
       service_factory_bindings_;
@@ -83,6 +90,15 @@
     quit_closure.Run();
   }
 
+  void OnReceivedAccessToken(base::Closure quit_closure,
+                             const base::Optional<std::string>& access_token,
+                             base::Time expiration_time,
+                             const GoogleServiceAuthError& error) {
+    access_token_ = access_token;
+    access_token_error_ = error;
+    quit_closure.Run();
+  }
+
  protected:
   void SetUp() override {
     ServiceTest::SetUp();
@@ -92,25 +108,30 @@
 
   // service_manager::test::ServiceTest:
   std::unique_ptr<service_manager::Service> CreateService() override {
-    return base::MakeUnique<ServiceTestClient>(this, &signin_manager_);
+    return base::MakeUnique<ServiceTestClient>(this, &signin_manager_,
+                                               &token_service_);
   }
 
   mojom::IdentityManagerPtr identity_manager_;
   base::Optional<AccountId> primary_account_id_;
+  base::Optional<std::string> access_token_;
+  GoogleServiceAuthError access_token_error_;
 
   SigninManagerBase* signin_manager() { return &signin_manager_; }
+  FakeProfileOAuth2TokenService* token_service() { return &token_service_; }
 
  private:
   sync_preferences::TestingPrefServiceSyncable pref_service_;
   AccountTrackerService account_tracker_;
   TestSigninClient signin_client_;
   FakeSigninManagerBase signin_manager_;
+  FakeProfileOAuth2TokenService token_service_;
 
   DISALLOW_COPY_AND_ASSIGN(IdentityManagerTest);
 };
 
 // Check that the primary account ID is null if not signed in.
-TEST_F(IdentityManagerTest, NotSignedIn) {
+TEST_F(IdentityManagerTest, GetPrimaryAccountNotSignedIn) {
   base::RunLoop run_loop;
   identity_manager_->GetPrimaryAccountId(
       base::Bind(&IdentityManagerTest::OnReceivedPrimaryAccountId,
@@ -120,7 +141,7 @@
 }
 
 // Check that the primary account ID has expected values if signed in.
-TEST_F(IdentityManagerTest, SignedIn) {
+TEST_F(IdentityManagerTest, GetPrimaryAccountSignedIn) {
   signin_manager()->SetAuthenticatedAccountInfo(kTestGaiaId, kTestEmail);
   base::RunLoop run_loop;
   identity_manager_->GetPrimaryAccountId(
@@ -132,5 +153,37 @@
   EXPECT_EQ(kTestEmail, primary_account_id_->GetUserEmail());
 }
 
+// Check that the expected error is received if requesting an access token when
+// not signed in.
+TEST_F(IdentityManagerTest, GetAccessTokenNotSignedIn) {
+  base::RunLoop run_loop;
+  identity_manager_->GetAccessToken(
+      kTestGaiaId, ScopeSet(), "dummy_consumer",
+      base::Bind(&IdentityManagerTest::OnReceivedAccessToken,
+                 base::Unretained(this), run_loop.QuitClosure()));
+  run_loop.Run();
+  EXPECT_FALSE(access_token_);
+  EXPECT_EQ(GoogleServiceAuthError::State::USER_NOT_SIGNED_UP,
+            access_token_error_.state());
+}
+
+// Check that the expected access token is received if requesting an access
+// token when signed in.
+TEST_F(IdentityManagerTest, GetAccessTokenSignedIn) {
+  signin_manager()->SetAuthenticatedAccountInfo(kTestGaiaId, kTestEmail);
+  token_service()->UpdateCredentials(kTestGaiaId, kTestRefreshToken);
+  token_service()->set_auto_post_fetch_response_on_message_loop(true);
+  base::RunLoop run_loop;
+
+  identity_manager_->GetAccessToken(
+      kTestGaiaId, ScopeSet(), "dummy_consumer",
+      base::Bind(&IdentityManagerTest::OnReceivedAccessToken,
+                 base::Unretained(this), run_loop.QuitClosure()));
+  run_loop.Run();
+  EXPECT_TRUE(access_token_);
+  EXPECT_EQ(kTestAccessToken, access_token_.value());
+  EXPECT_EQ(GoogleServiceAuthError::State::NONE, access_token_error_.state());
+}
+
 }  // namespace
 }  // namespace identity
diff --git a/services/identity/identity_service.cc b/services/identity/identity_service.cc
index 95e5643..b5f9df7b 100644
--- a/services/identity/identity_service.cc
+++ b/services/identity/identity_service.cc
@@ -9,8 +9,9 @@
 
 namespace identity {
 
-IdentityService::IdentityService(SigninManagerBase* signin_manager)
-    : signin_manager_(signin_manager) {
+IdentityService::IdentityService(SigninManagerBase* signin_manager,
+                                 ProfileOAuth2TokenService* token_service)
+    : signin_manager_(signin_manager), token_service_(token_service) {
   registry_.AddInterface<mojom::IdentityManager>(
       base::Bind(&IdentityService::Create, base::Unretained(this)));
 }
@@ -29,7 +30,7 @@
 
 void IdentityService::Create(const service_manager::BindSourceInfo& source_info,
                              mojom::IdentityManagerRequest request) {
-  IdentityManager::Create(std::move(request), signin_manager_);
+  IdentityManager::Create(std::move(request), signin_manager_, token_service_);
 }
 
 }  // namespace identity
diff --git a/services/identity/identity_service.h b/services/identity/identity_service.h
index 3925f30..472a911 100644
--- a/services/identity/identity_service.h
+++ b/services/identity/identity_service.h
@@ -10,12 +10,14 @@
 #include "services/service_manager/public/cpp/service.h"
 
 class SigninManagerBase;
+class ProfileOAuth2TokenService;
 
 namespace identity {
 
 class IdentityService : public service_manager::Service {
  public:
-  IdentityService(SigninManagerBase* signin_manager);
+  IdentityService(SigninManagerBase* signin_manager,
+                  ProfileOAuth2TokenService* token_service);
   ~IdentityService() override;
 
  private:
@@ -29,6 +31,7 @@
               mojom::IdentityManagerRequest request);
 
   SigninManagerBase* signin_manager_;
+  ProfileOAuth2TokenService* token_service_;
 
   service_manager::BinderRegistry registry_;
 
diff --git a/services/identity/public/interfaces/identity_manager.mojom b/services/identity/public/interfaces/identity_manager.mojom
index 756f0c38..70b1b54 100644
--- a/services/identity/public/interfaces/identity_manager.mojom
+++ b/services/identity/public/interfaces/identity_manager.mojom
@@ -4,14 +4,30 @@
 
 module identity.mojom;
 
-// TODO(blundell): Move account_id.mojom to
-// //services/identity/public/interfaces.
 import "components/signin/public/interfaces/account_id.mojom";
+import "mojo/common/time.mojom";
+import "services/identity/public/interfaces/google_service_auth_error.mojom";
+import "services/identity/public/interfaces/scope_set.mojom";
 
 // Gives access to information about the user's Google accounts.
 interface IdentityManager {
   // Returns the AccountId for the Google account that serves as the user's
   // primary account, or null if the user has no primary account (e.g., if they
   // are not signed in).
+  // TODO(blundell): Move away from using this struct to using a typemapped
+  // version of AccountInfo (and call this GetPrimaryAccountInfo()).
   GetPrimaryAccountId() => (signin.mojom.AccountId? account_id);
+
+  // Returns an access token with the requested scopes for the given
+  // |account_id|, or null if it is not possible to obtain such a token (e.g.,
+  // because the user is not signed in with that account). |expiration_time|
+  // gives the time until the returned token expires.  In the case of failure,
+  // |error| will give information detailing the reason for the failure, and
+  // |expiration_time| is undefined. |consumer_id| is an arbitrary string used
+  // to identity the consumer (e.g., in about:://signin-internals).
+  // NOTE: |account_id| corresponds to that used by OAuth2TokenService.
+  GetAccessToken(string account_id, ScopeSet scopes, string consumer_id) =>
+     (string? token,
+      mojo.common.mojom.Time expiration_time,
+      GoogleServiceAuthError error);
 };
diff --git a/services/resource_coordinator/memory_instrumentation/coordinator_impl.cc b/services/resource_coordinator/memory_instrumentation/coordinator_impl.cc
index 2d993c7..3d8dd34 100644
--- a/services/resource_coordinator/memory_instrumentation/coordinator_impl.cc
+++ b/services/resource_coordinator/memory_instrumentation/coordinator_impl.cc
@@ -117,7 +117,7 @@
       args.dump_type != base::trace_event::MemoryDumpType::SUMMARY_ONLY) {
     for (const auto& request : queued_memory_dump_requests_) {
       if (request.args.level_of_detail == args.level_of_detail) {
-        VLOG(1) << base::trace_event::MemoryDumpManager::kLogPrefix << " ("
+        VLOG(1) << "RequestGlobalMemoryDump("
                 << base::trace_event::MemoryDumpTypeToString(args.dump_type)
                 << ") skipped because another dump request with the same "
                    "level of detail ("
@@ -219,8 +219,7 @@
 
   if (!success) {
     ++failed_memory_dump_count_;
-    VLOG(1) << base::trace_event::MemoryDumpManager::kLogPrefix
-            << " failed because of NACK from client";
+    VLOG(1) << "RequestGlobalMemoryDump() FAIL: NACK from client process";
   }
 
   FinalizeGlobalMemoryDumpIfAllManagersReplied();
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index aa3cfbe..a68eeab6 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -3,6 +3,7 @@
 # found in the LICENSE file.
 
 import("//build/config/features.gni")
+import("//build/config/freetype/freetype.gni")
 import("//build/config/ui.gni")
 import("//build/config/sanitizers/sanitizers.gni")
 import("//printing/features/features.gni")
@@ -53,7 +54,7 @@
     defines += [ "SK_HAS_JPEG_LIBRARY" ]
   }
 
-  if (is_win || is_mac) {
+  if (!use_system_freetype) {
     defines += [ "SK_FREETYPE_MINIMUM_RUNTIME_VERSION=(((FREETYPE_MAJOR) * 0x01000000) | ((FREETYPE_MINOR) * 0x00010000) | ((FREETYPE_PATCH) * 0x00000100))" ]
   }
 
diff --git a/testing/buildbot/filters/mojo.fyi.network_content_browsertests.filter b/testing/buildbot/filters/mojo.fyi.network_content_browsertests.filter
index 69b2388..8a1d3d9 100644
--- a/testing/buildbot/filters/mojo.fyi.network_content_browsertests.filter
+++ b/testing/buildbot/filters/mojo.fyi.network_content_browsertests.filter
@@ -9,6 +9,8 @@
 -ServiceWorkerBrowserTest.Reload
 -ServiceWorkerBrowserTest.ResponseFromHTTPSServiceWorkerIsMarkedAsSecure
 -ServiceWorkerBrowserTest.ResponseFromHTTPServiceWorkerIsNotMarkedAsSecure
+-ServiceWorkerDisableWebSecurityTest.GetRegistrationNoCrash
+-ServiceWorkerDisableWebSecurityTest.RegisterNoCrash
 -ServiceWorkerDisableWebSecurityTest.UnregisterNoCrash
 -ServiceWorkerDisableWebSecurityTest.UpdateNoCrash
 -ServiceWorkerNavigationPreloadTest.CanceledByInterceptor
diff --git a/testing/variations/fieldtrial_testing_config.json b/testing/variations/fieldtrial_testing_config.json
index 149ffb46..4d4349f 100644
--- a/testing/variations/fieldtrial_testing_config.json
+++ b/testing/variations/fieldtrial_testing_config.json
@@ -1042,31 +1042,6 @@
             ]
         }
     ],
-    "ExpensiveBackgroundTimerThrottling": [
-        {
-            "platforms": [
-                "android",
-                "chromeos",
-                "linux",
-                "mac",
-                "win"
-            ],
-            "experiments": [
-                {
-                    "name": "Enabled_30sMaxThrottilingDelay",
-                    "params": {
-                        "cpu_budget": "0.01",
-                        "initial_budget": "1.0",
-                        "max_budget": "3.0",
-                        "max_delay": "-1"
-                    },
-                    "enable_features": [
-                        "ExpensiveBackgroundTimerThrottling"
-                    ]
-                }
-            ]
-        }
-    ],
     "ExtensionContentVerification": [
         {
             "platforms": [
@@ -3382,30 +3357,6 @@
             ]
         }
     ],
-    "WebRTC-TunedClippingLevelMin-SessionRandomized": [
-        {
-            "platforms": [
-                "chromeos",
-                "linux",
-                "mac",
-                "win"
-            ],
-            "experiments": [
-                {
-                    "name": "TunedClippingLevelMin070",
-                    "enable_features": [
-                        "TunedClippingLevelMin70"
-                    ],
-                    "disable_features": [
-                        "TunedClippingLevelMin110",
-                        "TunedClippingLevelMin150",
-                        "TunedClippingLevelMin170",
-                        "TunedClippingLevelMin30"
-                    ]
-                }
-            ]
-        }
-    ],
     "use-new-media-cache": [
         {
             "platforms": [
diff --git a/third_party/WebKit/LayoutTests/FlagExpectations/enable-network-service b/third_party/WebKit/LayoutTests/FlagExpectations/enable-network-service
index d9bcc1a8..07550bd 100644
--- a/third_party/WebKit/LayoutTests/FlagExpectations/enable-network-service
+++ b/third_party/WebKit/LayoutTests/FlagExpectations/enable-network-service
@@ -184,24 +184,6 @@
 Bug(none) external/wpt/credential-management/credentialscontainer-create-basics.https.html [ Timeout ]
 Bug(none) external/wpt/credential-management/idl.https.html [ Timeout ]
 Bug(none) external/wpt/css-font-display/font-display.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/background-image-alpha.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/background-image-multiple.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/background-image-tiled.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/invalid-image-constructor-error.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/invalid-image-paint-error.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/overdraw.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/paint-arguments.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/paint-function-arguments.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/paint2d-composite.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/paint2d-filter.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/paint2d-gradient.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/paint2d-image.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/paint2d-paths.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/paint2d-rects.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/paint2d-shadows.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/paint2d-transform.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/valid-image-after-load.html [ Timeout ]
-Bug(none) external/wpt/css-paint-api/valid-image-before-load.html [ Timeout ]
 Bug(none) external/wpt/css/css-grid-1/alignment/grid-content-distribution-018.html [ Timeout ]
 Bug(none) external/wpt/css/css-shapes-1/shape-outside/shape-box/shape-outside-box-003.html [ Timeout ]
 Bug(none) external/wpt/css/css-shapes-1/shape-outside/values/shape-outside-ellipse-004.html [ Timeout ]
@@ -1425,6 +1407,7 @@
 Bug(none) fast/peerconnection/RTCPeerConnection-lifetime.html [ Timeout ]
 Bug(none) fast/replaced/frame-removed-during-resize-smaller.html [ Timeout ]
 Bug(none) fast/replaced/frame-removed-during-resize.html [ Timeout ]
+Bug(none) fast/serviceworker/access-container-on-local-file.html [ Failure ]
 Bug(none) fast/spatial-navigation/snav-hidden-iframe-zero-size.html [ Failure ]
 Bug(none) fast/spatial-navigation/snav-hidden-iframe.html [ Failure ]
 Bug(none) fast/spatial-navigation/snav-iframe-nested.html [ Failure ]
@@ -1531,9 +1514,12 @@
 Bug(none) http/tests/appcache/404-manifest.html [ Failure ]
 Bug(none) http/tests/appcache/abort-cache-ondownloading-manifest-404.html [ Timeout ]
 Bug(none) http/tests/appcache/access-via-redirect.php [ Timeout ]
-Bug(none) http/tests/appcache/cyrillic-uri.html [ Failure ]
+Bug(none) http/tests/appcache/crash-when-navigating-away-then-back.html [ Timeout ]
+Bug(none) http/tests/appcache/cyrillic-uri.html [ Failure Timeout ]
 Bug(none) http/tests/appcache/different-https-origin-resource-main.html [ Timeout ]
+Bug(none) http/tests/appcache/fail-on-update-2.html [ Timeout ]
 Bug(none) http/tests/appcache/fallback.html [ Timeout ]
+Bug(none) http/tests/appcache/local-content.html [ Timeout ]
 Bug(none) http/tests/appcache/main-resource-hash.html [ Timeout ]
 Bug(none) http/tests/appcache/main-resource-redirect.html [ Timeout ]
 Bug(none) http/tests/appcache/manifest-parsing.html [ Failure ]
@@ -1546,6 +1532,8 @@
 Bug(none) http/tests/appcache/simple.html [ Timeout ]
 Bug(none) http/tests/appcache/top-frame-1.html [ Timeout ]
 Bug(none) http/tests/appcache/top-frame-2.html [ Timeout ]
+Bug(none) http/tests/appcache/top-frame-3.html [ Timeout ]
+Bug(none) http/tests/appcache/top-frame-4.html [ Timeout ]
 Bug(none) http/tests/appcache/update-cache.html [ Timeout ]
 Bug(none) http/tests/appcache/video.html [ Failure Timeout ]
 Bug(none) http/tests/appcache/whitelist-wildcard.html [ Failure ]
@@ -1610,8 +1598,8 @@
 Bug(none) http/tests/css/reflection-mask-image-loading.html [ Failure ]
 Bug(none) http/tests/csspaint/invalidation-background-image.html [ Failure ]
 Bug(none) http/tests/csspaint/invalidation-border-image.html [ Failure ]
-Bug(none) http/tests/csspaint/invalidation-content-image.html [ Failure ]
-Bug(none) http/tests/csspaint/paint2d-zoom.html [ Timeout ]
+Bug(none) http/tests/csspaint/invalidation-content-image.html [ Crash Failure ]
+Bug(none) http/tests/csspaint/paint2d-zoom.html [ Crash Timeout ]
 Bug(none) http/tests/csspaint/parse-input-arguments.html [ Timeout ]
 Bug(none) http/tests/csspaint/registered-properties-in-custom-paint.html [ Timeout ]
 Bug(none) http/tests/csspaint/registerPaint.html [ Timeout ]
@@ -1682,7 +1670,7 @@
 Bug(none) http/tests/fetch/serviceworker/fetch-base-https-other-https.html [ Timeout ]
 Bug(none) http/tests/fetch/serviceworker/fetch.html [ Failure Timeout ]
 Bug(none) http/tests/fetch/serviceworker/filtered-response-base-https-other-https.html [ Timeout Failure ]
-Bug(none) http/tests/fetch/serviceworker/filtered-response-other-https.html [ Timeout ]
+Bug(none) http/tests/fetch/serviceworker/filtered-response-other-https.html [ Failure Timeout ]
 Bug(none) http/tests/fetch/serviceworker/filtered-response.html [ Failure Timeout ]
 Bug(none) http/tests/fetch/serviceworker/headers-base-https-other-https.html [ Timeout ]
 Bug(none) http/tests/fetch/serviceworker/headers-guard-base-https-other-https.html [ Timeout ]
@@ -2122,7 +2110,7 @@
 Bug(none) http/tests/security/cookies/third-party-cookie-blocking-main-frame.html [ Failure ]
 Bug(none) http/tests/security/cookies/third-party-cookie-blocking-worker.html [ Failure ]
 Bug(none) http/tests/security/cookies/xmlhttprequest.html [ Timeout ]
-Bug(none) http/tests/security/cors-rfc1918/addressspace-serviceworker-basic.html [ Timeout ]
+Bug(none) http/tests/security/cors-rfc1918 [ Timeout ]
 Bug(none) http/tests/security/cross-frame-access-parent-explicit-domain-isolated-world.html [ Timeout ]
 Bug(none) http/tests/security/cross-frame-access-parent-isolated-world.html [ Timeout ]
 Bug(none) http/tests/security/cross-frame-access-protocol-explicit-domain.html [ Timeout ]
@@ -2138,7 +2126,7 @@
 Bug(none) http/tests/security/local-video-source-from-remote.html [ Timeout ]
 Bug(none) http/tests/security/location-change-from-detached-DOMWindow.html [ Timeout ]
 Bug(none) http/tests/security/media-element-audio-source-node-cross-origin-allowed.html [ Timeout ]
-Bug(none) http/tests/security/media-element-audio-source-node-cross-origin-with-credentials.html [ Timeout ]
+Bug(none) http/tests/security/media-element-audio-source-node-cross-origin-with-credentials.html [ Failure Timeout ]
 Bug(none) http/tests/security/media-element-audio-source-node-cross-origin.html [ Timeout ]
 Bug(none) http/tests/security/media-element-audio-source-node-same-origin.html [ Timeout ]
 Bug(none) http/tests/security/mime-type-execute-as-html-01.html [ Failure ]
@@ -2223,6 +2211,7 @@
 Bug(none) http/tests/security/powerfulFeatureRestrictions/geolocation-on-sandboxed-insecure-origin.html [ Timeout ]
 Bug(none) http/tests/security/powerfulFeatureRestrictions/geolocation-on-secure-origin-in-insecure-origin.html [ Timeout ]
 Bug(none) http/tests/security/powerfulFeatureRestrictions/geolocation-on-secure-origin-in-secure-origin.html [ Timeout ]
+Bug(none) http/tests/security/powerfulFeatureRestrictions/serviceworker-on-insecure-origin.html [ Failure ]
 Bug(none) http/tests/security/powerfulFeatureRestrictions/webshare-on-insecure-origin.html [ Timeout ]
 Bug(none) http/tests/security/referrer-on-client-redirect.html [ Timeout ]
 Bug(none) http/tests/security/referrer-policy-attribute-anchor-no-referrer-when-downgrade.html [ Timeout ]
@@ -2355,6 +2344,7 @@
 Bug(none) inspector/console/console-log-short-hand-method.html [ Failure ]
 Bug(none) inspector/console/console-object-constructor-name.html [ Failure ]
 Bug(none) inspector/console/console-tests.html [ Failure ]
+Bug(none) inspector/console/console-uncaught-promise.html [ Failure ]
 Bug(none) inspector/coverage/coverage-repeated.html [ Failure Timeout ]
 Bug(none) inspector/coverage/coverage-view-filter.html [ Failure ]
 Bug(none) inspector/coverage/coverage-view.html [ Failure Timeout ]
diff --git a/third_party/WebKit/LayoutTests/TestExpectations b/third_party/WebKit/LayoutTests/TestExpectations
index 2b68d84d..3eaa288 100644
--- a/third_party/WebKit/LayoutTests/TestExpectations
+++ b/third_party/WebKit/LayoutTests/TestExpectations
@@ -1804,7 +1804,6 @@
 crbug.com/594639 external/wpt/html/semantics/scripting-1/the-script-element/module/evaluation-error-2.html [ Failure ]
 crbug.com/594639 external/wpt/html/semantics/scripting-1/the-script-element/module/evaluation-error-3.html [ Failure ]
 crbug.com/594639 external/wpt/html/semantics/scripting-1/the-script-element/module/evaluation-error-4.html [ Failure ]
-crbug.com/594639 external/wpt/html/semantics/scripting-1/the-script-element/module/specifier-error.html [ Failure ]
 
 # This test has a failure console message with specific performance
 # numbers so a consistent baseline cannot be added. This test could be
@@ -1954,6 +1953,10 @@
 crbug.com/724251 virtual/threaded/animations/svg-attribute-interpolation/svg-startOffset-interpolation.html [ Failure Pass ]
 
 # ====== New tests from wpt-importer added here ======
+crbug.com/626703 external/wpt/wasm/wasm_indexeddb_test.html [ Timeout ]
+crbug.com/626703 external/wpt/wasm/wasm_local_iframe_test.html [ Failure ]
+crbug.com/626703 external/wpt/wasm/wasm_serialization_tests.html [ Failure ]
+crbug.com/626703 external/wpt/wasm/wasm_service_worker_test.html [ Failure ]
 crbug.com/626703 external/wpt/payment-request/payment-request-show-method.https.html [ Pass Failure ]
 crbug.com/626703 external/wpt/webrtc/RTCPeerConnection-createOffer.html [ Timeout ]
 crbug.com/626703 external/wpt/webrtc/RTCPeerConnection-onnegotiationneeded.html [ Timeout ]
@@ -2012,7 +2015,7 @@
 crbug.com/626703 external/wpt/html/semantics/embedded-content/the-iframe-element/cross_origin_parentage.html [ Timeout ]
 crbug.com/626703 external/wpt/html/semantics/grouping-content/the-li-element/grouping-li-reftest-list-owner-menu.html [ Failure ]
 crbug.com/626703 external/wpt/html/semantics/grouping-content/the-li-element/grouping-li-reftest-list-owner-skip-no-boxes.html [ Failure ]
-crbug.com/626703 external/wpt/html/semantics/interactive-elements/context-menus/contextmenu-event-manual.htm [ Timeout ]
+crbug.com/626703 external/wpt/html/webappapis/scripting/events/contextmenu-event-manual.htm [ Timeout ]
 crbug.com/626703 external/wpt/html/semantics/scripting-1/the-script-element/async_007.htm [ Timeout ]
 crbug.com/626703 external/wpt/html/semantics/scripting-1/the-script-element/async_010.htm [ Timeout ]
 crbug.com/626703 external/wpt/html/webappapis/idle-callbacks/callback-exception.html [ Timeout ]
diff --git a/third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST.json b/third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST.json
index 11826a3f..6720f53 100644
--- a/third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST.json
+++ b/third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST.json
@@ -2725,18 +2725,18 @@
      {}
     ]
    ],
-   "html/semantics/interactive-elements/context-menus/contextmenu-event-manual.htm": [
-    [
-     "/html/semantics/interactive-elements/context-menus/contextmenu-event-manual.htm",
-     {}
-    ]
-   ],
    "html/semantics/selectors/pseudo-classes/checked-001-manual.html": [
     [
      "/html/semantics/selectors/pseudo-classes/checked-001-manual.html",
      {}
     ]
    ],
+   "html/webappapis/scripting/events/contextmenu-event-manual.htm": [
+    [
+     "/html/webappapis/scripting/events/contextmenu-event-manual.htm",
+     {}
+    ]
+   ],
    "html/webappapis/scripting/events/event-handler-processing-algorithm-manual.html": [
     [
      "/html/webappapis/scripting/events/event-handler-processing-algorithm-manual.html",
@@ -78453,11 +78453,6 @@
      {}
     ]
    ],
-   "css/motion-1/parsing/offset-rotate-parsing-invalid-expected.txt": [
-    [
-     {}
-    ]
-   ],
    "css/motion-1/parsing/resources/parsing-testcommon.js": [
     [
      {}
@@ -80393,11 +80388,6 @@
      {}
     ]
    ],
-   "dom/interfaces-expected.txt": [
-    [
-     {}
-    ]
-   ],
    "dom/lists/DOMTokenList-coverage-for-attributes-expected.txt": [
     [
      {}
@@ -80778,11 +80768,6 @@
      {}
     ]
    ],
-   "dom/nodes/Node-insertBefore-expected.txt": [
-    [
-     {}
-    ]
-   ],
    "dom/nodes/Node-isEqualNode-iframe1.xml": [
     [
      {}
@@ -80798,11 +80783,6 @@
      {}
     ]
    ],
-   "dom/nodes/Node-replaceChild-expected.txt": [
-    [
-     {}
-    ]
-   ],
    "dom/nodes/ParentNode-querySelector-All-content.html": [
     [
      {}
@@ -80888,11 +80868,6 @@
      {}
     ]
    ],
-   "dom/traversal/TreeWalker-expected.txt": [
-    [
-     {}
-    ]
-   ],
    "dom/traversal/traversal-support.js": [
     [
      {}
@@ -82023,6 +81998,16 @@
      {}
     ]
    ],
+   "fetch/api/redirect/redirect-location-expected.txt": [
+    [
+     {}
+    ]
+   ],
+   "fetch/api/redirect/redirect-location-worker-expected.txt": [
+    [
+     {}
+    ]
+   ],
    "fetch/api/redirect/redirect-location.js": [
     [
      {}
@@ -90468,6 +90453,16 @@
      {}
     ]
    ],
+   "html/rendering/non-replaced-elements/the-hr-element-0/hr-expected.txt": [
+    [
+     {}
+    ]
+   ],
+   "html/rendering/non-replaced-elements/the-hr-element-0/setting-overflow-visible-expected.txt": [
+    [
+     {}
+    ]
+   ],
    "html/rendering/non-replaced-elements/the-hr-element-0/width-ref.html": [
     [
      {}
@@ -91923,11 +91918,6 @@
      {}
     ]
    ],
-   "html/semantics/interactive-elements/the-command-element/.gitkeep": [
-    [
-     {}
-    ]
-   ],
    "html/semantics/interactive-elements/the-details-element/.gitkeep": [
     [
      {}
@@ -91968,16 +91958,6 @@
      {}
     ]
    ],
-   "html/semantics/interactive-elements/the-menu-element/contains.json": [
-    [
-     {}
-    ]
-   ],
-   "html/semantics/interactive-elements/the-menu-element/menuitem-label-expected.txt": [
-    [
-     {}
-    ]
-   ],
    "html/semantics/interactive-elements/the-summary-element/.gitkeep": [
     [
      {}
@@ -92843,11 +92823,6 @@
      {}
     ]
    ],
-   "html/semantics/tabular-data/the-table-element/caption-methods-expected.txt": [
-    [
-     {}
-    ]
-   ],
    "html/semantics/tabular-data/the-table-element/contains.json": [
     [
      {}
@@ -94738,6 +94713,11 @@
      {}
     ]
    ],
+   "mediacapture-streams/MediaDevices-IDL-enumerateDevices-expected.txt": [
+    [
+     {}
+    ]
+   ],
    "mediacapture-streams/MediaStream-MediaElement-preload-none.https-expected.txt": [
     [
      {}
@@ -95928,6 +95908,16 @@
      {}
     ]
    ],
+   "payment-request/payment-request-abort-method.https-expected.txt": [
+    [
+     {}
+    ]
+   ],
+   "payment-request/payment-request-canmakepayment-method.https.http": [
+    [
+     {}
+    ]
+   ],
    "payment-request/payment-request-response-id.html": [
     [
      {}
@@ -99323,11 +99313,6 @@
      {}
     ]
    ],
-   "service-workers/service-worker/fetch-request-fallback.https-expected.txt": [
-    [
-     {}
-    ]
-   ],
    "service-workers/service-worker/fetch-request-resources.https-expected.txt": [
     [
      {}
@@ -101568,6 +101553,56 @@
      {}
     ]
    ],
+   "wasm/compile_worker.js": [
+    [
+     {}
+    ]
+   ],
+   "wasm/incrementer.wasm": [
+    [
+     {}
+    ]
+   ],
+   "wasm/resources/blank.html": [
+    [
+     {}
+    ]
+   ],
+   "wasm/resources/frame.html": [
+    [
+     {}
+    ]
+   ],
+   "wasm/resources/incrementer.wasm": [
+    [
+     {}
+    ]
+   ],
+   "wasm/resources/load_wasm.js": [
+    [
+     {}
+    ]
+   ],
+   "wasm/resources/service-worker.js": [
+    [
+     {}
+    ]
+   ],
+   "wasm/wasm_indexeddb_test.js": [
+    [
+     {}
+    ]
+   ],
+   "wasm/wasm_serialization_tests.js": [
+    [
+     {}
+    ]
+   ],
+   "wasm/wasm_serialization_worker.js": [
+    [
+     {}
+    ]
+   ],
    "web-animations/README.md": [
     [
      {}
@@ -101623,16 +101658,6 @@
      {}
     ]
    ],
-   "web-animations/interfaces/Animation/effect-expected.txt": [
-    [
-     {}
-    ]
-   ],
-   "web-animations/interfaces/Animation/finish-expected.txt": [
-    [
-     {}
-    ]
-   ],
    "web-animations/interfaces/Animation/finished-expected.txt": [
     [
      {}
@@ -101643,11 +101668,6 @@
      {}
     ]
    ],
-   "web-animations/interfaces/Animation/startTime-expected.txt": [
-    [
-     {}
-    ]
-   ],
    "web-animations/interfaces/AnimationEffectTiming/getComputedStyle-expected.txt": [
     [
      {}
@@ -101763,21 +101783,11 @@
      {}
     ]
    ],
-   "web-animations/timing-model/animations/current-time-expected.txt": [
-    [
-     {}
-    ]
-   ],
    "web-animations/timing-model/animations/reversing-an-animation-expected.txt": [
     [
      {}
     ]
    ],
-   "web-animations/timing-model/animations/set-the-animation-start-time-expected.txt": [
-    [
-     {}
-    ]
-   ],
    "web-animations/timing-model/animations/set-the-target-effect-of-an-animation-expected.txt": [
     [
      {}
@@ -102043,6 +102053,11 @@
      {}
     ]
    ],
+   "webrtc/RTCCertificate-expected.txt": [
+    [
+     {}
+    ]
+   ],
    "webrtc/RTCConfiguration-iceCandidatePoolSize-expected.txt": [
     [
      {}
@@ -102058,6 +102073,11 @@
      {}
     ]
    ],
+   "webrtc/RTCPeerConnection-addTransceiver-expected.txt": [
+    [
+     {}
+    ]
+   ],
    "webrtc/RTCPeerConnection-canTrickleIceCandidates-expected.txt": [
     [
      {}
@@ -102068,11 +102088,26 @@
      {}
     ]
    ],
+   "webrtc/RTCPeerConnection-createAnswer-expected.txt": [
+    [
+     {}
+    ]
+   ],
    "webrtc/RTCPeerConnection-createDataChannel-expected.txt": [
     [
      {}
     ]
    ],
+   "webrtc/RTCPeerConnection-generateCertificate-expected.txt": [
+    [
+     {}
+    ]
+   ],
+   "webrtc/RTCPeerConnection-getTransceivers-expected.txt": [
+    [
+     {}
+    ]
+   ],
    "webrtc/RTCPeerConnection-helper.js": [
     [
      {}
@@ -102093,6 +102128,11 @@
      {}
     ]
    ],
+   "webrtc/RTCPeerConnectionIceEvent-constructor-expected.txt": [
+    [
+     {}
+    ]
+   ],
    "webrtc/datachannel-emptystring-expected.txt": [
     [
      {}
@@ -117271,6 +117311,12 @@
      {}
     ]
    ],
+   "css/css-position-3/position-sticky-parsing.html": [
+    [
+     "/css/css-position-3/position-sticky-parsing.html",
+     {}
+    ]
+   ],
    "css/css-rhythm-1/line-height-step-dynamic-001.html": [
     [
      "/css/css-rhythm-1/line-height-step-dynamic-001.html",
@@ -119053,6 +119099,18 @@
      {}
     ]
    ],
+   "css/motion-1/parsing/offset-parsing-invalid.html": [
+    [
+     "/css/motion-1/parsing/offset-parsing-invalid.html",
+     {}
+    ]
+   ],
+   "css/motion-1/parsing/offset-parsing-valid.html": [
+    [
+     "/css/motion-1/parsing/offset-parsing-valid.html",
+     {}
+    ]
+   ],
    "css/motion-1/parsing/offset-path-parsing-invalid.html": [
     [
      "/css/motion-1/parsing/offset-path-parsing-invalid.html",
@@ -127637,6 +127695,18 @@
      {}
     ]
    ],
+   "html/rendering/non-replaced-elements/the-fieldset-element-0/legend-block-formatting-context.html": [
+    [
+     "/html/rendering/non-replaced-elements/the-fieldset-element-0/legend-block-formatting-context.html",
+     {}
+    ]
+   ],
+   "html/rendering/non-replaced-elements/the-fieldset-element-0/legend.html": [
+    [
+     "/html/rendering/non-replaced-elements/the-fieldset-element-0/legend.html",
+     {}
+    ]
+   ],
    "html/rendering/non-replaced-elements/the-hr-element-0/hr.html": [
     [
      "/html/rendering/non-replaced-elements/the-hr-element-0/hr.html",
@@ -129577,6 +129647,12 @@
      {}
     ]
    ],
+   "html/semantics/interactive-elements/contextmenu-historical.html": [
+    [
+     "/html/semantics/interactive-elements/contextmenu-historical.html",
+     {}
+    ]
+   ],
    "html/semantics/interactive-elements/the-details-element/details.html": [
     [
      "/html/semantics/interactive-elements/the-details-element/details.html",
@@ -129613,12 +129689,6 @@
      {}
     ]
    ],
-   "html/semantics/interactive-elements/the-menu-element/menuitem-label.html": [
-    [
-     "/html/semantics/interactive-elements/the-menu-element/menuitem-label.html",
-     {}
-    ]
-   ],
    "html/semantics/interactive-elements/the-summary-element/activation-behavior.html": [
     [
      "/html/semantics/interactive-elements/the-summary-element/activation-behavior.html",
@@ -130287,6 +130357,12 @@
      {}
     ]
    ],
+   "html/semantics/tabular-data/processing-model-1/col-span-limits.html": [
+    [
+     "/html/semantics/tabular-data/processing-model-1/col-span-limits.html",
+     {}
+    ]
+   ],
    "html/semantics/tabular-data/processing-model-1/span-limits.html": [
     [
      "/html/semantics/tabular-data/processing-model-1/span-limits.html",
@@ -132037,6 +132113,12 @@
      {}
     ]
    ],
+   "html/webappapis/scripting/events/event-handler-all-global-events.html": [
+    [
+     "/html/webappapis/scripting/events/event-handler-all-global-events.html",
+     {}
+    ]
+   ],
    "html/webappapis/scripting/events/event-handler-attributes-body-window.html": [
     [
      "/html/webappapis/scripting/events/event-handler-attributes-body-window.html",
@@ -132049,12 +132131,6 @@
      {}
     ]
    ],
-   "html/webappapis/scripting/events/event-handler-onauxclick.html": [
-    [
-     "/html/webappapis/scripting/events/event-handler-onauxclick.html",
-     {}
-    ]
-   ],
    "html/webappapis/scripting/events/event-handler-onresize.html": [
     [
      "/html/webappapis/scripting/events/event-handler-onresize.html",
@@ -132517,6 +132593,12 @@
      {}
     ]
    ],
+   "html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-pluginarray.html": [
+    [
+     "/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-pluginarray.html",
+     {}
+    ]
+   ],
    "html/webappapis/system-state-and-capabilities/the-navigator-object/navigator.any.js": [
     [
      "/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator.any.html",
@@ -135215,6 +135297,12 @@
      {}
     ]
    ],
+   "netinfo/netinfo-basics.html": [
+    [
+     "/netinfo/netinfo-basics.html",
+     {}
+    ]
+   ],
    "notifications/constructor-basic.html": [
     [
      "/notifications/constructor-basic.html",
@@ -144191,9 +144279,9 @@
      {}
     ]
    ],
-   "payment-request/payment-request-canmakepayment-method.html": [
+   "payment-request/payment-request-constructor-crash.https.html": [
     [
-     "/payment-request/payment-request-canmakepayment-method.html",
+     "/payment-request/payment-request-constructor-crash.https.html",
      {}
     ]
    ],
@@ -144215,12 +144303,36 @@
      {}
     ]
    ],
+   "payment-request/payment-request-onshippingaddresschange-attribute.https.html": [
+    [
+     "/payment-request/payment-request-onshippingaddresschange-attribute.https.html",
+     {}
+    ]
+   ],
+   "payment-request/payment-request-onshippingoptionchange-attribute.https.html": [
+    [
+     "/payment-request/payment-request-onshippingoptionchange-attribute.https.html",
+     {}
+    ]
+   ],
    "payment-request/payment-request-show-method.https.html": [
     [
      "/payment-request/payment-request-show-method.https.html",
      {}
     ]
    ],
+   "payment-request/payment-request-update-event-constructor.http.html": [
+    [
+     "/payment-request/payment-request-update-event-constructor.http.html",
+     {}
+    ]
+   ],
+   "payment-request/payment-request-update-event-constructor.https.html": [
+    [
+     "/payment-request/payment-request-update-event-constructor.https.html",
+     {}
+    ]
+   ],
    "performance-timeline/case-sensitivity.any.js": [
     [
      "/performance-timeline/case-sensitivity.any.html",
@@ -152901,6 +153013,12 @@
      {}
     ]
    ],
+   "scroll-into-view/check-scroll-position.html": [
+    [
+     "/scroll-into-view/check-scroll-position.html",
+     {}
+    ]
+   ],
    "secure-contexts/basic-dedicated-worker.html": [
     [
      "/secure-contexts/basic-dedicated-worker.html",
@@ -154455,6 +154573,12 @@
      {}
     ]
    ],
+   "shadow-dom/Range-prototype-insertNode.html": [
+    [
+     "/shadow-dom/Range-prototype-insertNode.html",
+     {}
+    ]
+   ],
    "shadow-dom/ShadowRoot-interface.html": [
     [
      "/shadow-dom/ShadowRoot-interface.html",
@@ -156353,6 +156477,30 @@
      {}
     ]
    ],
+   "wasm/wasm_indexeddb_test.html": [
+    [
+     "/wasm/wasm_indexeddb_test.html",
+     {}
+    ]
+   ],
+   "wasm/wasm_local_iframe_test.html": [
+    [
+     "/wasm/wasm_local_iframe_test.html",
+     {}
+    ]
+   ],
+   "wasm/wasm_serialization_tests.html": [
+    [
+     "/wasm/wasm_serialization_tests.html",
+     {}
+    ]
+   ],
+   "wasm/wasm_service_worker_test.html": [
+    [
+     "/wasm/wasm_service_worker_test.html",
+     {}
+    ]
+   ],
    "web-animations/animation-model/animation-types/accumulation-per-property.html": [
     [
      "/web-animations/animation-model/animation-types/accumulation-per-property.html",
@@ -157625,6 +157773,12 @@
      {}
     ]
    ],
+   "webrtc/RTCSctpTransport-constructor.html": [
+    [
+     "/webrtc/RTCSctpTransport-constructor.html",
+     {}
+    ]
+   ],
    "webrtc/datachannel-emptystring.html": [
     [
      "/webrtc/datachannel-emptystring.html",
@@ -162999,7 +163153,7 @@
    "support"
   ],
   "./lint.whitelist": [
-   "cfcc4a6cafa1cc4411d5aab437b5fd508dd4faa0",
+   "59074d9f9b155631ac1bf03a9b4b40175ca8b538",
    "support"
   ],
   "./update-built-tests.sh": [
@@ -189218,6 +189372,10 @@
    "5151bca08dff652ea728cb8bccbb6b7c6d364dd8",
    "reftest"
   ],
+  "css/css-position-3/position-sticky-parsing.html": [
+   "224bc984bc6eb4a55931461cf7e51f7b04d219f4",
+   "testharness"
+  ],
   "css/css-position-3/position-sticky-right-ref.html": [
    "9a4a11b22cb0ea13f38a7dded8469f4848550ed4",
    "support"
@@ -203875,7 +204033,7 @@
    "testharness"
   ],
   "css/geometry-1/DOMMatrix-stringifier-expected.txt": [
-   "7931de38416289e2d81f226df038edb67a1549c5",
+   "2c24707b18aac4b44848c447df4807417ae452a3",
    "support"
   ],
   "css/geometry-1/DOMMatrix-stringifier.html": [
@@ -204006,6 +204164,14 @@
    "cfd7f351c6e3721c28d5b4992be02d5f1f86fcb6",
    "testharness"
   ],
+  "css/motion-1/parsing/offset-parsing-invalid.html": [
+   "5e6caa06e6dfb706ea0f6a70442f814899c87dc3",
+   "testharness"
+  ],
+  "css/motion-1/parsing/offset-parsing-valid.html": [
+   "ffa92f921f3d85d77953f0fda58b8ae309e63aa1",
+   "testharness"
+  ],
   "css/motion-1/parsing/offset-path-parsing-invalid.html": [
    "5a37548528ea4d633f17b9a3215f9e6a30ce617c",
    "testharness"
@@ -204026,10 +204192,6 @@
    "878ef0365545f1ee0efcbd4ded1ec3dcda2c7543",
    "testharness"
   ],
-  "css/motion-1/parsing/offset-rotate-parsing-invalid-expected.txt": [
-   "e6d082696eb30d3741347185b10eaf1c7648fe01",
-   "support"
-  ],
   "css/motion-1/parsing/offset-rotate-parsing-invalid.html": [
    "36cebf21d27913e201a445cee732ed7bf6152b30",
    "testharness"
@@ -206939,7 +207101,7 @@
    "testharness"
   ],
   "cssom/CSSKeyframeRule.html": [
-   "0351ebe1e975932c7a79a0888e001e2afb41242b",
+   "0246cf2511a18c247db1eabefec8b3590127d3ee",
    "testharness"
   ],
   "cssom/CSSKeyframesRule-expected.txt": [
@@ -206963,7 +207125,7 @@
    "support"
   ],
   "cssom/CSSStyleRule.html": [
-   "b7cfe3da8454d5c64a25c440e0776c80d8c3a751",
+   "e9d0acfc0c9123dcd2295e217bdfc1ac5195c3f0",
    "testharness"
   ],
   "cssom/CSSStyleSheet.html": [
@@ -207870,10 +208032,6 @@
    "144554e0a9d53cdbb2c1f01d3dc169010db693b3",
    "testharness"
   ],
-  "dom/interfaces-expected.txt": [
-   "133f60942eae89418f507d7cea7cee10d3f0e4b0",
-   "support"
-  ],
   "dom/interfaces.html": [
    "f8eb7f5fcfdc9ca4a500d5e43855a24a169c81cf",
    "testharness"
@@ -208567,7 +208725,7 @@
    "testharness"
   ],
   "dom/nodes/Element-matches-expected.txt": [
-   "60e451c0194780deb441563c71b315873d692a2b",
+   "792eff6ef501669e9302c4d055f9c6d6c68b9410",
    "support"
   ],
   "dom/nodes/Element-matches.html": [
@@ -208627,7 +208785,7 @@
    "testharness"
   ],
   "dom/nodes/Element-webkitMatchesSelector-expected.txt": [
-   "30460192c627648001fb50d41863956acf217758",
+   "7cd50ed543d766b7e01698ac89707055dd8847f3",
    "support"
   ],
   "dom/nodes/Element-webkitMatchesSelector.html": [
@@ -208698,10 +208856,6 @@
    "67bd1d1271b8ea38af84c469d2d9293048f5a847",
    "testharness"
   ],
-  "dom/nodes/Node-insertBefore-expected.txt": [
-   "85a82bebb549c5c8a7c87e31bffb3a765bd48a91",
-   "support"
-  ],
   "dom/nodes/Node-insertBefore.html": [
    "4e03310ddb0e6725893ea6308b5ec08aba0aeb18",
    "testharness"
@@ -208774,10 +208928,6 @@
    "dfeb84db96081cfa4e705457b649a13c3a2c0be8",
    "testharness"
   ],
-  "dom/nodes/Node-replaceChild-expected.txt": [
-   "c3bd5e37d0be4bd282c2db5002117699b668bb79",
-   "support"
-  ],
   "dom/nodes/Node-replaceChild.html": [
    "d6a001e448e242ac6ee69307a496c72f7f61e8d0",
    "testharness"
@@ -208807,11 +208957,11 @@
    "support"
   ],
   "dom/nodes/ParentNode-querySelector-All-expected.txt": [
-   "a5763d32f4f20b7ed040e363d2672337527befd0",
+   "715db639aeacff91cb42e9c229c5c42c7c49bedf",
    "support"
   ],
   "dom/nodes/ParentNode-querySelector-All-xht-expected.txt": [
-   "45bc44d5bf0dcdf61c381f8f700f079aedbac622",
+   "d869a248d517d181bb78d614eda2a45ea32c0eb5",
    "support"
   ],
   "dom/nodes/ParentNode-querySelector-All-xht.xht": [
@@ -208851,7 +209001,7 @@
    "testharness"
   ],
   "dom/nodes/attributes-expected.txt": [
-   "73b6c667f996d29c447eebac84d5c144f3345ff1",
+   "abf874d5629a1099ad192bbb965c23e299a2cdc4",
    "support"
   ],
   "dom/nodes/attributes.html": [
@@ -209194,10 +209344,6 @@
    "a8029dd7b8774674dfbe40ab723e08cd666569c7",
    "testharness"
   ],
-  "dom/traversal/TreeWalker-expected.txt": [
-   "595fa1f36003b87c64152a75b1d83d791804cd06",
-   "support"
-  ],
   "dom/traversal/TreeWalker-previousNodeLastChildReject.html": [
    "78ab615dede4f1fa67e76538787e3bc32a2d6cde",
    "testharness"
@@ -211382,6 +211528,14 @@
    "2c01e28adc2334a1405fc2f53481584be89dd5d5",
    "support"
   ],
+  "fetch/api/redirect/redirect-location-expected.txt": [
+   "29d1e2d1ae898fcf90d4083075efbc14b7c1a309",
+   "support"
+  ],
+  "fetch/api/redirect/redirect-location-worker-expected.txt": [
+   "29d1e2d1ae898fcf90d4083075efbc14b7c1a309",
+   "support"
+  ],
   "fetch/api/redirect/redirect-location-worker.html": [
    "f3c0991345e839954459801454d22fe81df8d72d",
    "testharness"
@@ -211695,7 +211849,7 @@
    "testharness"
   ],
   "fetch/api/response/response-clone-expected.txt": [
-   "bde075808be5034bf1abee675645621ddbb5385e",
+   "fcde0384d772850a5931b5a19fd34662f1ba70b0",
    "support"
   ],
   "fetch/api/response/response-clone.html": [
@@ -214171,7 +214325,7 @@
    "support"
   ],
   "html/browsers/origin/cross-origin-objects/cross-origin-objects-expected.txt": [
-   "94b45bfb4fbf4ebd1b3c126df025440d176209ac",
+   "649e2d121634522b5623b1451f5fdfd2aba1f81b",
    "support"
   ],
   "html/browsers/origin/cross-origin-objects/cross-origin-objects-on-new-window.html": [
@@ -215899,7 +216053,7 @@
    "support"
   ],
   "html/dom/elements-misc.js": [
-   "ec0bd7b81c0d0fe1c525380eafd2a04a0a0fb219",
+   "59a2e8a1f2eddff79c28c72a7ac7aabb0d3dd87e",
    "support"
   ],
   "html/dom/elements-obsolete.js": [
@@ -215911,7 +216065,7 @@
    "support"
   ],
   "html/dom/elements-tabular.js": [
-   "db69341821cb76750da473664d806b4649c9b606",
+   "d48ca746757d7745c2ed7bdab4d8403e05a890d0",
    "support"
   ],
   "html/dom/elements-text.js": [
@@ -216747,7 +216901,7 @@
    "testharness"
   ],
   "html/dom/reflection-forms-expected.txt": [
-   "894f7725356b34612d700805df8adb1805128ba8",
+   "b76b432a1344a48b972ada891d8a58dff9c9092a",
    "support"
   ],
   "html/dom/reflection-forms.html": [
@@ -216759,7 +216913,7 @@
    "testharness"
   ],
   "html/dom/reflection-metadata-expected.txt": [
-   "b15548d7d88f894dcf309d4a042e9e2b9fc09a77",
+   "d129314a83384c1c536321480fac3b5de3ed1fb3",
    "support"
   ],
   "html/dom/reflection-metadata.html": [
@@ -220895,7 +221049,7 @@
    "support"
   ],
   "html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js": [
-   "2c408d03723d2b0fca4d15ec233f6b5143c93680",
+   "6f3dd9aeb9bc4c2419765519586349aaea4c4495",
    "support"
   ],
   "html/infrastructure/urls/resolving-urls/query-encoding/resources/resource.py": [
@@ -221642,6 +221796,14 @@
    "adcf6f1311695d9cc8f490be1f7e411a1048d824",
    "support"
   ],
+  "html/rendering/non-replaced-elements/the-fieldset-element-0/legend-block-formatting-context.html": [
+   "80d80d4934f0ad148458c5d5494946f5c7b126c8",
+   "testharness"
+  ],
+  "html/rendering/non-replaced-elements/the-fieldset-element-0/legend.html": [
+   "0e2847a09449bb086f2a18ed14e1b44315e3f84d",
+   "testharness"
+  ],
   "html/rendering/non-replaced-elements/the-fieldset-element-0/min-width-not-important.html": [
    "1b765f689ff6c297942d79fd093cb2d572e66f9a",
    "reftest"
@@ -221674,10 +221836,18 @@
    "37ba851b3393d3fe2e60985f502bf29438947449",
    "reftest"
   ],
+  "html/rendering/non-replaced-elements/the-hr-element-0/hr-expected.txt": [
+   "0e456341190c3f3495f89fb89e9b74439f6213c3",
+   "support"
+  ],
   "html/rendering/non-replaced-elements/the-hr-element-0/hr.html": [
    "c9b0d9a027965ad3d2b9414b2a1bf9cadaa845c5",
    "testharness"
   ],
+  "html/rendering/non-replaced-elements/the-hr-element-0/setting-overflow-visible-expected.txt": [
+   "d6c1f69560e9fe545290ad1c4e6f16aed4f35f87",
+   "support"
+  ],
   "html/rendering/non-replaced-elements/the-hr-element-0/setting-overflow-visible.html": [
    "3feaff941f19801bff86d3ee364a4da9e07ab60b",
    "testharness"
@@ -223911,7 +224081,7 @@
    "testharness"
   ],
   "html/semantics/forms/the-input-element/valueMode.html": [
-   "1446be6aa4ad1b3baee156a332d56989ebd88d3f",
+   "b9d5105852c5b2b8a4dc2feb2544ad709797669f",
    "testharness"
   ],
   "html/semantics/forms/the-input-element/week.html": [
@@ -224430,13 +224600,9 @@
    "6737e2d1d4510e1d0fd105c5a45f0d67e1a7ea0a",
    "support"
   ],
-  "html/semantics/interactive-elements/context-menus/contextmenu-event-manual.htm": [
-   "da34a14c36842d855a3d73a171e3e5a03282360f",
-   "manual"
-  ],
-  "html/semantics/interactive-elements/the-command-element/.gitkeep": [
-   "da39a3ee5e6b4b0d3255bfef95601890afd80709",
-   "support"
+  "html/semantics/interactive-elements/contextmenu-historical.html": [
+   "6e16c7701d1e8f0fe49b01d0edf0451d7f34d60e",
+   "testharness"
   ],
   "html/semantics/interactive-elements/the-details-element/.gitkeep": [
    "da39a3ee5e6b4b0d3255bfef95601890afd80709",
@@ -224494,18 +224660,6 @@
    "da39a3ee5e6b4b0d3255bfef95601890afd80709",
    "support"
   ],
-  "html/semantics/interactive-elements/the-menu-element/contains.json": [
-   "a79ad27e8f1e2eee47c89fa4530f7babfbb07dd5",
-   "support"
-  ],
-  "html/semantics/interactive-elements/the-menu-element/menuitem-label-expected.txt": [
-   "237def2c38478a46dbaf16029c5c2b2d5ff04993",
-   "support"
-  ],
-  "html/semantics/interactive-elements/the-menu-element/menuitem-label.html": [
-   "d11f6d0ef667da33d7981860b47e6d02f8c0ad24",
-   "testharness"
-  ],
   "html/semantics/interactive-elements/the-summary-element/.gitkeep": [
    "da39a3ee5e6b4b0d3255bfef95601890afd80709",
    "support"
@@ -224523,7 +224677,7 @@
    "testharness"
   ],
   "html/semantics/interfaces.js": [
-   "ca5bd62a7392b8dfb9aada99372e44e518b722d6",
+   "b63c7402601bbf801f65dff9bef38797cdaf9eae",
    "support"
   ],
   "html/semantics/links/.gitkeep": [
@@ -225527,7 +225681,7 @@
    "support"
   ],
   "html/semantics/selectors/pseudo-classes/checked.html": [
-   "14572cac6499939da279b1a4372dc86253617e75",
+   "b5790716eff3f91ac04f78e669bfacac4ede5642",
    "testharness"
   ],
   "html/semantics/selectors/pseudo-classes/default.html": [
@@ -225559,7 +225713,7 @@
    "support"
   ],
   "html/semantics/selectors/pseudo-classes/enabled.html": [
-   "ddd449bcf115f5c8616698cc0c249c0b8c2d7023",
+   "ad21e09513509f1131673dda3c3ed685b6cea069",
    "testharness"
   ],
   "html/semantics/selectors/pseudo-classes/focus-autofocus.html": [
@@ -225642,6 +225796,10 @@
    "da39a3ee5e6b4b0d3255bfef95601890afd80709",
    "support"
   ],
+  "html/semantics/tabular-data/processing-model-1/col-span-limits.html": [
+   "8a50d7de81bb0b1372fa6f5b8182af79207802ed",
+   "testharness"
+  ],
   "html/semantics/tabular-data/processing-model-1/contains.json": [
    "2bee37bc667b7aaf9ffc2be912288540896e3f03",
    "support"
@@ -225670,10 +225828,6 @@
    "da39a3ee5e6b4b0d3255bfef95601890afd80709",
    "support"
   ],
-  "html/semantics/tabular-data/the-table-element/caption-methods-expected.txt": [
-   "013faa4f75b482c177a16a219b72bf198447ddda",
-   "support"
-  ],
   "html/semantics/tabular-data/the-table-element/caption-methods.html": [
    "86605a4059ee7f25c555de2ad7f721beb566b2df",
    "testharness"
@@ -225715,7 +225869,7 @@
    "testharness"
   ],
   "html/semantics/tabular-data/the-table-element/tHead-expected.txt": [
-   "d3372ded99c871806b94cd8e6e0b3f01f49f257b",
+   "3f818b83fcb2f2b6335dc6d9e19feebe38ed7de8",
    "support"
   ],
   "html/semantics/tabular-data/the-table-element/tHead.html": [
@@ -227038,6 +227192,14 @@
    "2b05164b274d7719e27e3b9def3f25eaa156b839",
    "support"
   ],
+  "html/webappapis/scripting/events/contextmenu-event-manual.htm": [
+   "da34a14c36842d855a3d73a171e3e5a03282360f",
+   "manual"
+  ],
+  "html/webappapis/scripting/events/event-handler-all-global-events.html": [
+   "51076fe86edb21299d64d6a08616e677af98f4ff",
+   "testharness"
+  ],
   "html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt": [
    "020a492dab6307d5fc62119650b797a17b5aa4b7",
    "support"
@@ -227050,10 +227212,6 @@
    "2dece90b5e8b3ac3371a732e158ff44b8ea63b00",
    "testharness"
   ],
-  "html/webappapis/scripting/events/event-handler-onauxclick.html": [
-   "0f882828f5cc321992ab9265fe632e55c6d6760b",
-   "testharness"
-  ],
   "html/webappapis/scripting/events/event-handler-onresize.html": [
    "917a10cd8a60b916eb4e2ad7bb7cb1ae657335a8",
    "testharness"
@@ -227578,6 +227736,10 @@
    "3a478a2d6f508242244308641a2d57d4eb00798b",
    "testharness"
   ],
+  "html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-pluginarray.html": [
+   "f1907fd820e2f6a195400a9bca96f3dae45fc308",
+   "testharness"
+  ],
   "html/webappapis/system-state-and-capabilities/the-navigator-object/navigator.any.js": [
    "defa186d15df9349c70ca1c2b4f4877e06f63d3e",
    "testharness"
@@ -227967,7 +228129,7 @@
    "support"
   ],
   "interfaces/html.idl": [
-   "b0e4f7ea859518c04a21db8f0b69a07c6e11bbbe",
+   "137e061bbab6b23150d6ae9128df56a96cd1d68f",
    "support"
   ],
   "interfaces/mediacapture-main.idl": [
@@ -228762,6 +228924,10 @@
    "f1927866a05c7700dc2218e3a45eae1532a4171c",
    "testharness"
   ],
+  "mediacapture-streams/MediaDevices-IDL-enumerateDevices-expected.txt": [
+   "4fcd65f6b323caa19064d921f352d56fddf30cf3",
+   "support"
+  ],
   "mediacapture-streams/MediaDevices-IDL-enumerateDevices.html": [
    "0bebfb5c5a6204257f30d03fb16e4a35b8943814",
    "testharness"
@@ -230742,6 +230908,10 @@
    "b9d933d6a33eabc0b9c9f856c91b802677fa1094",
    "testharness"
   ],
+  "netinfo/netinfo-basics.html": [
+   "c98cb1ac5580fbd9f378313c5be1eb785585ede3",
+   "testharness"
+  ],
   "notifications/body-basic-manual.html": [
    "5894aac3053e72c488db99964980377c5418e1e6",
    "manual"
@@ -237138,12 +237308,20 @@
    "29af302db74de64e2bd1352ad92092a309d28c92",
    "testharness"
   ],
+  "payment-request/payment-request-abort-method.https-expected.txt": [
+   "a216c871066ec60f37e5df581541972132ae50b0",
+   "support"
+  ],
   "payment-request/payment-request-abort-method.https.html": [
    "c9ee5af2ccd5ad364090807c8427f1d4624d3747",
    "testharness"
   ],
-  "payment-request/payment-request-canmakepayment-method.html": [
+  "payment-request/payment-request-canmakepayment-method.https.http": [
    "b20131bc3f2717212f9940920183d650ee111333",
+   "support"
+  ],
+  "payment-request/payment-request-constructor-crash.https.html": [
+   "bbf131cd4517d450299cac05560a137c23f47e8f",
    "testharness"
   ],
   "payment-request/payment-request-constructor.https.html": [
@@ -237158,18 +237336,34 @@
    "26f2715d33e6d00e5ce03d7b07f35db2ac027acf",
    "testharness"
   ],
+  "payment-request/payment-request-onshippingaddresschange-attribute.https.html": [
+   "9a16b563d8b5f355b73b84d01f61f910bab7eb18",
+   "testharness"
+  ],
+  "payment-request/payment-request-onshippingoptionchange-attribute.https.html": [
+   "439c524e66216aad471ecea680a36430f89d9af9",
+   "testharness"
+  ],
   "payment-request/payment-request-response-id.html": [
    "88df88efdb1d44b56ac9758295f2e2920ae6c9ff",
    "support"
   ],
   "payment-request/payment-request-show-method.https-expected.txt": [
-   "3c41d4199d1d2da22c8ba49f283db6d8dc7a4250",
+   "c62407a14638111362250878c06947cac6a83cb6",
    "support"
   ],
   "payment-request/payment-request-show-method.https.html": [
    "518136ad885f95172e578f6e2c165a559c51896b",
    "testharness"
   ],
+  "payment-request/payment-request-update-event-constructor.http.html": [
+   "6ddbcd3b5847492daf0c2e913369bc861e4d006a",
+   "testharness"
+  ],
+  "payment-request/payment-request-update-event-constructor.https.html": [
+   "6b546870fd384a5bf2106d25fd3159a72f8537b2",
+   "testharness"
+  ],
   "performance-timeline/case-sensitivity.any.js": [
    "9c6b6edf19800a2730de2dfe601a7cd2503cf87d",
    "testharness"
@@ -245718,6 +245912,10 @@
    "de66dba5bce15b7403e9e582d982d4e3e4aed552",
    "testharness"
   ],
+  "scroll-into-view/check-scroll-position.html": [
+   "5241579f29d76391075b9066863e5fcb7673ad94",
+   "testharness"
+  ],
   "secure-contexts/basic-dedicated-worker.html": [
    "075f4170b133fe13e282ff5450871ef7960faf50",
    "testharness"
@@ -246578,10 +246776,6 @@
    "ca776bff1f106f9a1e2dfe4d25ff3618d99758b7",
    "testharness"
   ],
-  "service-workers/service-worker/fetch-request-fallback.https-expected.txt": [
-   "e6350dce3b9d25abc2ad0ac7c23478c864aee3e4",
-   "support"
-  ],
   "service-workers/service-worker/fetch-request-fallback.https.html": [
    "31a150bf8504f0607ac77a617ca8094336d1f31b",
    "testharness"
@@ -246903,7 +247097,7 @@
    "testharness"
   ],
   "service-workers/service-worker/redirected-response.https.html": [
-   "2b98005929b6cff548cf3be0181eec1ffca9abb0",
+   "38b406b1d9fd32296a72b264e2d7ccb0effed619",
    "testharness"
   ],
   "service-workers/service-worker/referer.https.html": [
@@ -247151,7 +247345,7 @@
    "support"
   ],
   "service-workers/service-worker/resources/fetch-access-control-login.html": [
-   "7603f015f115df4bc04e6c1b10d0d0b0abcd3f2d",
+   "c24c328c218060b8ee3a3d35abace8b2a498ef6f",
    "support"
   ],
   "service-workers/service-worker/resources/fetch-access-control.py": [
@@ -247163,7 +247357,7 @@
    "support"
   ],
   "service-workers/service-worker/resources/fetch-cors-xhr-iframe.html": [
-   "bbed4c0dcae12d91bcda4241103e674a6ffc73b1",
+   "604a64021a30d3cb9ecef7c3d8d6ec14bc75f5e8",
    "support"
   ],
   "service-workers/service-worker/resources/fetch-csp-iframe.html": [
@@ -247443,7 +247637,7 @@
    "support"
   ],
   "service-workers/service-worker/resources/invalid-blobtype-iframe.https.html": [
-   "37dde3429bce5e20e7158b02840cc1954c79b4b0",
+   "b491adf190bf4d891dfc613c10e3a05b8852969d",
    "support"
   ],
   "service-workers/service-worker/resources/invalid-blobtype-worker.js": [
@@ -247459,7 +247653,7 @@
    "support"
   ],
   "service-workers/service-worker/resources/invalid-header-iframe.https.html": [
-   "1ebab289fb121a6815cec017db2f1b3ce7447508",
+   "0ebcb0b918feb0f3cf9ab64fc29534c5a1718408",
    "support"
   ],
   "service-workers/service-worker/resources/invalid-header-worker.js": [
@@ -247883,7 +248077,7 @@
    "support"
   ],
   "service-workers/service-worker/update-after-oneday.https.html": [
-   "7c8c6c3edca83d54f1838eccf3afb0b1223c7a44",
+   "9f43ba359c4d564f75d4ce4b6a040aac6ba50d5b",
    "testharness"
   ],
   "service-workers/service-worker/update-recovery.https-expected.txt": [
@@ -248170,6 +248364,10 @@
    "e3e7f3973cf8f9b466d4f22d1ec3b9b9241fb906",
    "support"
   ],
+  "shadow-dom/Range-prototype-insertNode.html": [
+   "f840aa7e9789f052f9980a4db8ca1ad789d15242",
+   "testharness"
+  ],
   "shadow-dom/ShadowRoot-interface-expected.txt": [
    "53ebffd3d7f16acb54c7c938cdff08a765555e45",
    "support"
@@ -248239,7 +248437,7 @@
    "testharness"
   ],
   "shadow-dom/slotchange-event.html": [
-   "e9e7bfc014b1c8a9be7fa21da806860b60a62917",
+   "c72d9d156bf6772c3e5ea054310810b34a049b94",
    "testharness"
   ],
   "shadow-dom/slotchange.html": [
@@ -248251,15 +248449,15 @@
    "support"
   ],
   "shadow-dom/slots-fallback-in-document.html": [
-   "eac2fee4991725b4d2ca104a586c02d109b7d721",
+   "29ebbd1a4a4114acd4ff1fe5b30daf93b11d7910",
    "testharness"
   ],
   "shadow-dom/slots-fallback.html": [
-   "595bf7e71283bcf219849ebe13a1b913cd36f1b9",
+   "d39644486f8c5307d8095cc32396ca146881320b",
    "testharness"
   ],
   "shadow-dom/slots.html": [
-   "3cd698058a0f6a5a1185d24040c62964fd0a1d0f",
+   "1eadf08acc6340f9ebd46d7df1ced3dedb1c5915",
    "testharness"
   ],
   "shadow-dom/untriaged/LICENSE": [
@@ -250370,6 +250568,62 @@
    "f6ae98a534bfc2d0b57ef11f8f1ebb3d72629c3c",
    "manual"
   ],
+  "wasm/compile_worker.js": [
+   "652193b876206d7a0f361f145469a604d03e3784",
+   "support"
+  ],
+  "wasm/incrementer.wasm": [
+   "acdf9d22c042ea3b2637c14b1576b4c8ffb4e97a",
+   "support"
+  ],
+  "wasm/resources/blank.html": [
+   "0ddb4f1cf84729ed673295719ec58a3e5d600a12",
+   "support"
+  ],
+  "wasm/resources/frame.html": [
+   "1fd433c40c7364f6cc396c2a4a02ad5ee9d6cc49",
+   "support"
+  ],
+  "wasm/resources/incrementer.wasm": [
+   "acdf9d22c042ea3b2637c14b1576b4c8ffb4e97a",
+   "support"
+  ],
+  "wasm/resources/load_wasm.js": [
+   "36981e77dd62c1bdb5cebe0db38d15fc637f2f1d",
+   "support"
+  ],
+  "wasm/resources/service-worker.js": [
+   "240ed8ea51a45a84978a20240854ae70e1d460af",
+   "support"
+  ],
+  "wasm/wasm_indexeddb_test.html": [
+   "277f1401e7704dec540cacb0784ab8fff55ef8d8",
+   "testharness"
+  ],
+  "wasm/wasm_indexeddb_test.js": [
+   "4d17cb27a7541e117e5f7319f8103cabb591c1ce",
+   "support"
+  ],
+  "wasm/wasm_local_iframe_test.html": [
+   "dd715a4da792b9d8d634536d938b278230c66df5",
+   "testharness"
+  ],
+  "wasm/wasm_serialization_tests.html": [
+   "aa7f9d293f6752b392307b7bd346ac2913874356",
+   "testharness"
+  ],
+  "wasm/wasm_serialization_tests.js": [
+   "e5a6d0f1a2218df9b080df7e99b684ddaceb4a11",
+   "support"
+  ],
+  "wasm/wasm_serialization_worker.js": [
+   "d70aecce9f01ae39589bf339588d3a3002bed258",
+   "support"
+  ],
+  "wasm/wasm_service_worker_test.html": [
+   "894981ab7cb20e72dd683c8063868311ea226838",
+   "testharness"
+  ],
   "web-animations/README.md": [
    "d6cb0e31dc3cc6d83b5051cee38a0b8e118fd43f",
    "support"
@@ -250459,7 +250713,7 @@
    "testharness"
   ],
   "web-animations/interfaces/Animatable/animate-expected.txt": [
-   "a045e3296bdcf355ce831e232dae43bf94aa6e8d",
+   "904c6eafbc17ff15068dd5c3e8ae569716d982dd",
    "support"
   ],
   "web-animations/interfaces/Animatable/animate.html": [
@@ -250475,25 +250729,17 @@
    "testharness"
   ],
   "web-animations/interfaces/Animation/constructor-expected.txt": [
-   "641ffb2dee3c62704dd4cc90350ac11517d2fcee",
+   "d1d4a384fef71dca3e5d85a7b270c4f65689adb3",
    "support"
   ],
   "web-animations/interfaces/Animation/constructor.html": [
    "20604949fc295efc398e297b9e4f755a116f0fbb",
    "testharness"
   ],
-  "web-animations/interfaces/Animation/effect-expected.txt": [
-   "8ff9f57500ea7c7d9fba5f9fa7561aab43f965b6",
-   "support"
-  ],
   "web-animations/interfaces/Animation/effect.html": [
    "9e2551bfd9238ff99f30eabbd119a05fcf6dbeb9",
    "testharness"
   ],
-  "web-animations/interfaces/Animation/finish-expected.txt": [
-   "df2866630b88cc65bee2aec81e842566299ec064",
-   "support"
-  ],
   "web-animations/interfaces/Animation/finish.html": [
    "61ab2a2d822c25f2311756baeaaa98b44c3b3a62",
    "testharness"
@@ -250511,7 +250757,7 @@
    "testharness"
   ],
   "web-animations/interfaces/Animation/idlharness-expected.txt": [
-   "e807a5f1d87170520d3ef24d1db2239f7f5cb401",
+   "294230de230b84b8a637039748b726860c0f9700",
    "support"
   ],
   "web-animations/interfaces/Animation/idlharness.html": [
@@ -250546,10 +250792,6 @@
    "b23b76881f4d38c07710d0e59c1f6c8569de9060",
    "testharness"
   ],
-  "web-animations/interfaces/Animation/startTime-expected.txt": [
-   "86d25e2be39e0991d8730796c37b66bf4a71c058",
-   "support"
-  ],
   "web-animations/interfaces/Animation/startTime.html": [
    "284d55c141e4a93def32393577888ffc215a8b15",
    "testharness"
@@ -250611,7 +250853,7 @@
    "testharness"
   ],
   "web-animations/interfaces/Document/getAnimations-expected.txt": [
-   "1be509c6f02f7cf34df5c645c68134b7d3776858",
+   "d386431895bce43f102ea90762ae1d10d9a5c508",
    "support"
   ],
   "web-animations/interfaces/Document/getAnimations.html": [
@@ -250683,7 +250925,7 @@
    "testharness"
   ],
   "web-animations/interfaces/KeyframeEffect/setTarget-expected.txt": [
-   "c9b861ad1347adf68cfe49047d6eddc9c1e157a1",
+   "688e432c8eaa727144ce8263918c358653e28f25",
    "support"
   ],
   "web-animations/interfaces/KeyframeEffect/setTarget.html": [
@@ -250770,10 +251012,6 @@
    "079bc0e0f7ea60b94999ed1b4f92c1aa2fc2c7bb",
    "testharness"
   ],
-  "web-animations/timing-model/animations/current-time-expected.txt": [
-   "a18dd6fac631dc2beee45b4f1f1a75ca1bed1e82",
-   "support"
-  ],
   "web-animations/timing-model/animations/current-time.html": [
    "b1ea8e490cbfb69fd71b91a90e7e2d9ce99f42d3",
    "testharness"
@@ -250791,23 +251029,19 @@
    "testharness"
   ],
   "web-animations/timing-model/animations/reversing-an-animation-expected.txt": [
-   "24eccd08f0b05367da76c0899e63e8d70300f593",
+   "e2f13194df3bd695e36daec171941a01cebe104a",
    "support"
   ],
   "web-animations/timing-model/animations/reversing-an-animation.html": [
    "2b5631893d0d0846e5e57097ce4ae54dfa8a03e3",
    "testharness"
   ],
-  "web-animations/timing-model/animations/set-the-animation-start-time-expected.txt": [
-   "87e1f9a20eae0d6ac1a39e10ff6a8930f4dd39d3",
-   "support"
-  ],
   "web-animations/timing-model/animations/set-the-animation-start-time.html": [
    "84afa495b1a4c467e27b1394f6449a18c58ed98d",
    "testharness"
   ],
   "web-animations/timing-model/animations/set-the-target-effect-of-an-animation-expected.txt": [
-   "f535bf4fa066383c2ce0dc0df4deefeff825f61f",
+   "7c39205cf4c0817be1d1280ea31055be34601c9b",
    "support"
   ],
   "web-animations/timing-model/animations/set-the-target-effect-of-an-animation.html": [
@@ -250815,7 +251049,7 @@
    "testharness"
   ],
   "web-animations/timing-model/animations/set-the-timeline-of-an-animation-expected.txt": [
-   "c2be117cfd7f0ab890af4752d62c535551414052",
+   "2b9c1d6d8b662302c74dbe0e9eac9ac2f2cfc371",
    "support"
   ],
   "web-animations/timing-model/animations/set-the-timeline-of-an-animation.html": [
@@ -251059,7 +251293,7 @@
    "support"
   ],
   "webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html": [
-   "3c9dc0358862e39dfc3be1d80add650d028283bb",
+   "cc9f8148b1e7d75a61599a094f9ed21377e97edb",
    "testharness"
   ],
   "webauthn/helpers.js": [
@@ -251518,6 +251752,10 @@
    "7665873355c531e009824021a2b75daaf2dd6e3f",
    "testharness"
   ],
+  "webrtc/RTCCertificate-expected.txt": [
+   "29553dadcac7447b8d2a3d5e708b0fdd76705d13",
+   "support"
+  ],
   "webrtc/RTCCertificate.html": [
    "76e0c5f601c8ba4aefb06d1ebab8454c78fe07df",
    "testharness"
@@ -251554,6 +251792,10 @@
    "6ca52e2e6ec19dc38a7cc0a4ce132f7c5de9e398",
    "testharness"
   ],
+  "webrtc/RTCPeerConnection-addTransceiver-expected.txt": [
+   "24da6f2f6e5c18926fe65d3679de5ad10e92cffd",
+   "support"
+  ],
   "webrtc/RTCPeerConnection-addTransceiver.html": [
    "0ce85d1a83181d1bd0f337c7dbb5443efbda32cd",
    "testharness"
@@ -251567,15 +251809,19 @@
    "testharness"
   ],
   "webrtc/RTCPeerConnection-constructor-expected.txt": [
-   "44d65542c6dfcfe15b83f88172da69acb6f8d953",
+   "62dfc7cd8198f45406d10afacdc13d539414801d",
    "support"
   ],
   "webrtc/RTCPeerConnection-constructor.html": [
    "60e9ec4bec3e3d3b785568be8cf089c959e71813",
    "testharness"
   ],
+  "webrtc/RTCPeerConnection-createAnswer-expected.txt": [
+   "113ba364293c502ddd02722f40d9a6d3aaff3a47",
+   "support"
+  ],
   "webrtc/RTCPeerConnection-createAnswer.html": [
-   "454d00f0f44a423457148002e944b89ac06d3b9c",
+   "3aa68d867967e466b493a4f6cf27ba4f5839af88",
    "testharness"
   ],
   "webrtc/RTCPeerConnection-createDataChannel-expected.txt": [
@@ -251583,17 +251829,25 @@
    "support"
   ],
   "webrtc/RTCPeerConnection-createDataChannel.html": [
-   "025b3ac2230499375796145bdbcc3a9274a41605",
+   "47e58b26cf295fa1a0559ac7de7d1f119cb05106",
    "testharness"
   ],
   "webrtc/RTCPeerConnection-createOffer.html": [
-   "82fa509a012476b364662f1459051ef05998b378",
+   "07b9d476471b20d827a09a0c8b79a36e48d986b0",
    "testharness"
   ],
+  "webrtc/RTCPeerConnection-generateCertificate-expected.txt": [
+   "2a4ef86c32933083a41c7762bcf10243369f8109",
+   "support"
+  ],
   "webrtc/RTCPeerConnection-generateCertificate.html": [
    "27fb46922255203da0fc26a63808aeb98a60b640",
    "testharness"
   ],
+  "webrtc/RTCPeerConnection-getTransceivers-expected.txt": [
+   "c2256fadf711bf5daa8ee81af75c269e15e7c34d",
+   "support"
+  ],
   "webrtc/RTCPeerConnection-getTransceivers.html": [
    "498e9cb9d143626fb78839c1c550d05e9a46c22f",
    "testharness"
@@ -251623,7 +251877,7 @@
    "testharness"
   ],
   "webrtc/RTCPeerConnection-setLocalDescription.html": [
-   "ad354759c2c03909ed3834a0c9c10dee36becc31",
+   "3a182c851b4724e34e0baaacb9f0670e741c0e49",
    "testharness"
   ],
   "webrtc/RTCPeerConnection-setRemoteDescription-expected.txt": [
@@ -251631,13 +251885,21 @@
    "support"
   ],
   "webrtc/RTCPeerConnection-setRemoteDescription.html": [
-   "e5764f28f4d1b33323b574d87176f8ae9806308f",
+   "b3e0010a4e7a17a881c4d4a2dfc010cfad98a79a",
    "testharness"
   ],
+  "webrtc/RTCPeerConnectionIceEvent-constructor-expected.txt": [
+   "0a3133f813a8fee13aef6344c63c140db693f125",
+   "support"
+  ],
   "webrtc/RTCPeerConnectionIceEvent-constructor.html": [
    "f273bd7fdfc883a15e8fb16fef5309061254c6cc",
    "testharness"
   ],
+  "webrtc/RTCSctpTransport-constructor.html": [
+   "3b975dbe89ea36a78df48510bf1db5d06628db0f",
+   "testharness"
+  ],
   "webrtc/datachannel-emptystring-expected.txt": [
    "fe26a16716e99fd3ff9fef057a6de46b3439d1bf",
    "support"
diff --git a/third_party/WebKit/LayoutTests/external/wpt/common/css-paint-tests.js b/third_party/WebKit/LayoutTests/external/wpt/common/css-paint-tests.js
deleted file mode 100644
index 58a8e64..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/common/css-paint-tests.js
+++ /dev/null
@@ -1,18 +0,0 @@
-// To make sure that we take the snapshot at the right time, we do double
-// requestAnimationFrame. In the second frame, we take a screenshot, that makes
-// sure that we already have a full frame.
-function importPaintWorkletAndTerminateTestAfterAsyncPaint(code) {
-    if (typeof paintWorklet == "undefined") {
-        takeScreenshot();
-    } else {
-        var blob = new Blob([code], {type: 'text/javascript'});
-        paintWorklet.addModule(URL.createObjectURL(blob)).then(function() {
-            requestAnimationFrame(function() {
-                requestAnimationFrame(function() {
-                    takeScreenshot();
-                });
-            });
-        });
-    }
-}
-
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/securitypolicyviolation/upgrade-insecure-requests-reporting.https.html b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/securitypolicyviolation/upgrade-insecure-requests-reporting.https.html
index 692db02..5a0bc7c8 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/securitypolicyviolation/upgrade-insecure-requests-reporting.https.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/securitypolicyviolation/upgrade-insecure-requests-reporting.https.html
@@ -56,37 +56,5 @@
       i.src = url;
       document.body.appendChild(i);
     }, "Upgraded iframe is reported");
-
-    async_test(t => {
-      // Load an HTTPS iframe, then navigate it to an HTTP URL and check that the HTTP URL is both upgraded and reported.
-      var url = generateURL(Host.SAME_ORIGIN, Protocol.SECURE, ResourceType.FRAME).url;
-      var navigate_to = generateURL(Host.CROSS_ORIGIN, Protocol.INSECURE, ResourceType.FRAME).url;
-      var upgraded = new URL(navigate_to);
-      upgraded.protocol = "https";
-
-      var i = document.createElement('iframe');
-      var loaded = false;
-      var reported = false;
-
-      window.addEventListener("message", t.step_func(e => {
-        if (e.source == i.contentWindow) {
-          if (e.data == (new URL(url)).origin) {
-            waitForViolation(window, "frame-src")
-              .then(t.step_func(e => {
-                reported = true;
-                if (loaded)
-                  t.done();
-            }));
-            i.contentWindow.location.href = navigate_to;
-          } else if (e.data == (new URL(upgraded)).origin) {
-            loaded = true;
-            if (reported)
-              t.done();
-          }
-        }
-      }));
-      i.src = url;
-      document.body.appendChild(i);
-    }, "Navigated iframe is upgraded and reported");
 </script>
 </html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-alpha-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-alpha-ref.html
deleted file mode 100644
index 519b359..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-alpha-ref.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-#background {
-  background-color: yellow;
-  display: inline-block;
-}
-
-.container {
-  font-size: 0px;
-}
-</style>
-</head>
-<body>
-
-<div id="background">
-  <div class="container">
-    <canvas id ="opaque" width="100" height="100"></canvas>
-  </div>
-  <div class="container">
-    <canvas id ="nonopaque" width="100" height="100"></canvas>
-  </div>
-</div>
-
-<script>
-function drawCanvas(canvasID, hasAlpha) {
-  var canvas = document.getElementById(canvasID);
-  var context = canvas.getContext("2d", {alpha: hasAlpha});
-  context.clearRect(0, 0, canvas.width, canvas.height);
-  context.strokeStyle = 'blue';
-  context.lineWidth = 4;
-  context.strokeRect(20, 20, 60, 60);
-};
-
-drawCanvas('opaque', false);
-drawCanvas('nonopaque', true);
-
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-alpha.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-alpha.html
deleted file mode 100644
index ac69aa0..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-alpha.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="background-image-alpha-ref.html">
-<style>
-.container {
-  width: 100px;
-  height: 100px;
-}
-
-#canvas-opaque {
-  background-image: paint(opaque);
-}
-
-#canvas-nonopaque {
-  background-image: paint(nonOpaque);
-}
-
-#background {
-  background-color: yellow;
-  display: inline-block;
-}
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="background">
-  <div id="canvas-opaque" class="container"></div>
-  <div id="canvas-nonopaque" class="container"></div>
-</div>
-
-<script id="code" type="text/worklet">
-registerPaint('opaque', class {
-    static get alpha() { return false; }
-    paint(ctx, geom) {
-        ctx.strokeStyle = 'blue';
-        ctx.lineWidth = 4;
-        ctx.strokeRect(20, 20, 60, 60);
-    }
-});
-
-registerPaint('nonOpaque', class {
-    static get alpha() { return true; }
-    paint(ctx, geom) {
-        ctx.strokeStyle = 'blue';
-        ctx.lineWidth = 4;
-        ctx.strokeRect(20, 20, 60, 60);
-    }
-});
-</script>
-
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-multiple-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-multiple-ref.html
deleted file mode 100644
index 536258b..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-multiple-ref.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<canvas id ="output" width="100" height="100"></canvas>
-<script>
-var canvas = document.getElementById('output');
-var ctx = canvas.getContext('2d');
-
-var colors = ['red', 'green', 'blue'];
-for (var i = 2; i >= 0; i--) {
-    ctx.fillStyle = colors[i];
-    ctx.fillRect(i * 20, i * 20, 40, 40);
-}
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-multiple.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-multiple.html
deleted file mode 100644
index 7fb57510..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-multiple.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="background-image-multiple-ref.html">
-<style>
-    #output {
-        width: 100px;
-        height: 100px;
-        background-image: paint(n0), paint(n1), paint(n2);
-    }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="output"></div>
-
-<script id="code" type="text/worklet">
-var colors = ['red', 'green', 'blue'];
-
-for (let i = 0; i < 3; i++) {
-    registerPaint('n' + i, class {
-        paint(ctx, geom) {
-            ctx.fillStyle = colors[i];
-            ctx.fillRect(i * 20, i * 20, 40, 40);
-        }
-    });
-}
-</script>
-
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-tiled-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-tiled-ref.html
deleted file mode 100644
index a0151d8..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-tiled-ref.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<canvas id ="one" width="100" height="100"></canvas>
-<canvas id ="two" width="100" height="100"></canvas>
-<script>
-function drawCircle(ctx, geom) {
-    var x = geom.width / 2;
-    var y = geom.height / 2;
-
-    ctx.fillStyle = 'green';
-    ctx.beginPath();
-    ctx.ellipse(x, y, x - 1, y - 1, 0, 0, 2 * Math.PI);
-    ctx.fill();
-}
-
-var ctx1 = document.getElementById('one').getContext('2d');
-drawCircle(ctx1, {width: 50, height: 50});
-ctx1.translate(50, 0);
-drawCircle(ctx1, {width: 50, height: 50});
-ctx1.resetTransform();
-ctx1.translate(0, 50);
-drawCircle(ctx1, {width: 100, height: 50});
-
-var ctx2 = document.getElementById('two').getContext('2d');
-for (var i = 0; i < 5; i++) {
-    drawCircle(ctx2, {width: 50, height: 20});
-    ctx2.translate(0, 20);
-}
-ctx2.resetTransform();
-ctx2.translate(50, 25);
-drawCircle(ctx2, {width: 50, height: 50});
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-tiled.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-tiled.html
deleted file mode 100644
index 95d8c12..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/background-image-tiled.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="background-image-tiled-ref.html">
-<style>
-    div {
-        display: inline-block;
-        width: 100px;
-        height: 100px;
-    }
-
-    #one {
-        background:
-            paint(ellipse) top left/50% 50% repeat-x,
-            paint(ellipse) bottom left/100% 50% no-repeat;
-    }
-
-    #two {
-        background:
-            paint(ellipse) top left/50% 20% repeat-y,
-            paint(ellipse) center right/50% 50% no-repeat;
-    }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="one"></div>
-<div id="two"></div>
-
-<script id="code" type="text/worklet">
-registerPaint('ellipse', class {
-    paint(ctx, geom) {
-        var x = geom.width / 2;
-        var y = geom.height / 2;
-
-        ctx.fillStyle = 'green';
-        ctx.beginPath();
-        ctx.ellipse(x, y, x - 1, y - 1, 0, 0, 2 * Math.PI);
-        ctx.fill();
-    }
-});
-</script>
-
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-constructor-error-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-constructor-error-ref.html
deleted file mode 100644
index b6a6dec6..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-constructor-error-ref.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<div style="background: green; width: 100px; height: 100px"></div>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-constructor-error.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-constructor-error.html
deleted file mode 100644
index 30a06eb..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-constructor-error.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="invalid-image-constructor-error-ref.html">
-<style>
-    #output {
-        width: 100px;
-        height: 100px;
-        background-image: paint(error);
-        background-color: green;
-    }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="output"></div>
-
-<script id="code" type="text/worklet">
-registerPaint('error', class {
-    constructor() { throw Error('failed!'); }
-    paint(ctx, geom) {
-        ctx.fillStyle = 'red';
-        ctx.fillRect(0, 0, geom.width, geom.height);
-    }
-});
-</script>
-
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-paint-error-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-paint-error-ref.html
deleted file mode 100644
index b6a6dec6..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-paint-error-ref.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<div style="background: green; width: 100px; height: 100px"></div>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-paint-error.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-paint-error.html
deleted file mode 100644
index 6e117f8..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-paint-error.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="invalid-image-paint-error-ref.html">
-<style>
-    #output {
-        width: 100px;
-        height: 100px;
-        background-image: paint(error);
-        background-color: green;
-    }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="output"></div>
-
-<script id="code" type="text/worklet">
-registerPaint('error', class {
-    paint(ctx, geom) {
-        ctx.fillStyle = 'red';
-        ctx.fillRect(0, 0, geom.width, geom.height);
-        throw Error('failed!');
-    }
-});
-</script>
-
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-pending-script-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-pending-script-ref.html
deleted file mode 100644
index b6a6dec6..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-pending-script-ref.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<div style="background: green; width: 100px; height: 100px"></div>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-pending-script.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-pending-script.html
deleted file mode 100644
index c4cf755..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/invalid-image-pending-script.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="invalid-image-pending-script-ref.html">
-<style>
-    #output {
-        width: 100px;
-        height: 100px;
-        background-image: paint(invalid);
-        background-color: green;
-    }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="output"></div>
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint("");
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/overdraw-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/overdraw-ref.html
deleted file mode 100644
index b6a6dec6..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/overdraw-ref.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<div style="background: green; width: 100px; height: 100px"></div>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/overdraw.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/overdraw.html
deleted file mode 100644
index f95eeb5..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/overdraw.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html class=reftest-wait>
-<link rel="match" href="overdraw-ref.html">
-<style>
-    #output {
-        width: 100px;
-        height: 100px;
-        background-image: paint(green);
-        background-color: red;
-    }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="output"></div>
-
-<script id="code" type="text/worklet">
-registerPaint('green', class {
-    paint(ctx, geom) {
-        ctx.fillStyle = 'green';
-        ctx.fillRect(-10, -10, geom.width + 20, geom.height + 20);
-    }
-});
-</script>
-
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint-arguments-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint-arguments-ref.html
deleted file mode 100644
index 3352acf6..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint-arguments-ref.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-#background {
-  background-color: yellow;
-  display: inline-block;
-}
-
-.container {
-  font-size: 0px;
-}
-</style>
-</head>
-<body>
-
-<div id="background">
-  <div class="container">
-    <canvas id ="box-green" width="100" height="100"></canvas>
-  </div>
-  <div class="container">
-    <canvas id ="box-red" width="100" height="100"></canvas>
-  </div>
-</div>
-
-<script>
-function drawCanvas(canvasID, color) {
-  var canvas = document.getElementById(canvasID);
-  var context = canvas.getContext("2d", {alpha: true});
-  context.clearRect(0, 0, canvas.width, canvas.height);
-  context.strokeStyle = color;
-  context.lineWidth = 4;
-  context.strokeRect(20, 20, 60, 60);
-};
-
-drawCanvas('box-green', 'green');
-drawCanvas('box-red', 'red');
-
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint-arguments.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint-arguments.html
deleted file mode 100644
index ce2eec3..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint-arguments.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="paint-arguments-ref.html">
-<style>
-.container {
-  width: 100px;
-  height: 100px;
-}
-
-#canvas-box-green {
-  background-image: paint(box, green);
-}
-
-#canvas-box-red {
-  background-image: paint(box, red);
-}
-
-#background {
-  background-color: yellow;
-  display: inline-block;
-}
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-
-<div id="background">
-  <div id="canvas-box-green" class="container"></div>
-  <div id="canvas-box-red" class="container"></div>
-</div>
-
-<script id="code" type="text/worklet">
-registerPaint('box', class {
-    static get alpha() { return true; }
-    static get inputArguments() { return ['<color>']; }
-    paint(ctx, geom, properties, args) {
-        ctx.strokeStyle = args[0].toString();
-        ctx.lineWidth = 4;
-        ctx.strokeRect(20, 20, 60, 60);
-    }
-});
-
-</script>
-
-<script>
-  importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint-function-arguments-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint-function-arguments-ref.html
deleted file mode 100644
index 99adfd27..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint-function-arguments-ref.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-#background {
-  background-color: yellow;
-  display: inline-block;
-}
-
-.container {
-  font-size: 0px;
-}
-</style>
-</head>
-<body>
-
-<div id="background">
-  <div class="container">
-    <canvas id ="box-1" width="200" height="200"></canvas>
-  </div>
-  <div class="container">
-    <canvas id ="box-2" width="200" height="200"></canvas>
-  </div>
-</div>
-
-<script>
-function drawCanvas(canvasID, color, width) {
-  var canvas = document.getElementById(canvasID);
-  var context = canvas.getContext("2d", {alpha: true});
-  context.clearRect(0, 0, canvas.width, canvas.height);
-  context.strokeStyle = color;
-  context.lineWidth = width;
-  context.strokeRect(40, 40, 120, 120);
-};
-
-drawCanvas('box-1', 'rgb(50, 100, 150)', '5px');
-drawCanvas('box-2', 'rgb(150, 100, 50)', '10px');
-
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint-function-arguments.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint-function-arguments.html
deleted file mode 100644
index 6bae7ffe..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint-function-arguments.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="paint-function-arguments-ref.html">
-<style>
-.container {
-  width: 200px;
-  height: 200px;
-}
-
-#canvas-box-1 {
-  background-image: paint(box, rgb(50, 100, 150), 5px);
-}
-
-#canvas-box-2 {
-  background-image: paint(box, rgb(150, 100, 50), 10px);
-}
-
-#background {
-  background-color: yellow;
-  display: inline-block;
-}
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-
-<div id="background">
-  <div id="canvas-box-1" class="container"></div>
-  <div id="canvas-box-2" class="container"></div>
-</div>
-
-<script id="code" type="text/worklet">
-registerPaint('box', class {
-    static get alpha() { return true; }
-    static get inputArguments() { return ['<color>', '<length>']; }
-    paint(ctx, geom, properties, args) {
-        ctx.strokeStyle = args[0].toString();
-        ctx.lineWidth = args[1].toString();
-        ctx.strokeRect(40, 40, 120, 120);
-    }
-});
-
-</script>
-
-<script>
-  importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-composite-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-composite-ref.html
deleted file mode 100644
index 3b75d52..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-composite-ref.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-    canvas { display: inline-block; }
-</style>
-</head>
-<body>
-<canvas id="source-over" width="80" height="80"></canvas>
-<canvas id="source-in" width="80" height="80"></canvas>
-<canvas id="source-out" width="80" height="80"></canvas>
-<canvas id="source-atop" width="80" height="80"></canvas>
-<br>
-<canvas id="destination-over" width="80" height="80"></canvas>
-<canvas id="destination-in" width="80" height="80"></canvas>
-<canvas id="destination-out" width="80" height="80"></canvas>
-<canvas id="destination-atop" width="80" height="80"></canvas>
-<br>
-<canvas id="lighter" width="80" height="80"></canvas>
-<canvas id="xor" width="80" height="80"></canvas>
-<script>
-var compositeOps = [
-    'source-over',
-    'source-in',
-    'source-out',
-    'source-atop',
-    'destination-over',
-    'destination-in',
-    'destination-out',
-    'destination-atop',
-    'lighter',
-    'xor'
-];
-
-for (var i = 0; i < compositeOps.length; i++) {
-    var op = compositeOps[i];
-    var ctx = document.getElementById(op).getContext('2d');
-    ctx.fillStyle = 'red';
-    ctx.fillRect(5, 5, 40, 40);
-
-    ctx.globalCompositeOperation = op;
-
-    ctx.fillStyle = 'deepskyblue';
-    ctx.beginPath();
-    ctx.arc(45,45,20,0,Math.PI*2,true);
-    ctx.fill();
-}
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-composite.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-composite.html
deleted file mode 100644
index ba88f92..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-composite.html
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="paint2d-composite-ref.html">
-<style>
-    div {
-        display: inline-block;
-        width: 80px;
-        height: 80px;
-    }
-    #source-over { background-image: paint(source-over); }
-    #source-in { background-image: paint(source-in); }
-    #source-out { background-image: paint(source-out); }
-    #source-atop { background-image: paint(source-atop); }
-    #destination-over { background-image: paint(destination-over); }
-    #destination-in { background-image: paint(destination-in); }
-    #destination-out { background-image: paint(destination-out); }
-    #destination-atop { background-image: paint(destination-atop); }
-    #lighter { background-image: paint(lighter); }
-    #xor { background-image: paint(xor); }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="source-over"></div>
-<div id="source-in"></div>
-<div id="source-out"></div>
-<div id="source-atop"></div>
-<br>
-<div id="destination-over"></div>
-<div id="destination-in"></div>
-<div id="destination-out"></div>
-<div id="destination-atop"></div>
-<br>
-<div id="lighter"></div>
-<div id="xor"></div>
-
-<script id="code" type="text/worklet">
-var compositeOps = [
-    'source-over',
-    'source-in',
-    'source-out',
-    'source-atop',
-    'destination-over',
-    'destination-in',
-    'destination-out',
-    'destination-atop',
-    'lighter',
-    'xor'
-];
-
-function doPaint(ctx, op) {
-    ctx.fillStyle = 'red';
-    ctx.fillRect(5, 5, 40, 40);
-
-    ctx.globalCompositeOperation = op;
-
-    ctx.fillStyle = 'deepskyblue';
-    ctx.beginPath();
-    ctx.arc(45,45,20,0,Math.PI*2,true);
-    ctx.fill();
-}
-
-for (var i = 0; i < compositeOps.length; i++) {
-    let op = compositeOps[i];
-    registerPaint(op, class { paint(ctx, geom) { doPaint(ctx, op); } });
-}
-</script>
-
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-filter-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-filter-ref.html
deleted file mode 100644
index 4ca6383..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-filter-ref.html
+++ /dev/null
@@ -1,60 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-    canvas { display: inline-block; }
-</style>
-</head>
-<body>
-<canvas id='output0' width='100' height='100'></canvas>
-<canvas id='output1' width='100' height='100'></canvas>
-<canvas id='output2' width='100' height='100'></canvas>
-<canvas id='output3' width='100' height='100'></canvas>
-<canvas id='output4' width='100' height='100'></canvas>
-<br>
-<canvas id='output5' width='100' height='100'></canvas>
-<canvas id='output6' width='100' height='100'></canvas>
-<canvas id='output7' width='100' height='100'></canvas>
-<canvas id='output8' width='100' height='100'></canvas>
-<canvas id='output9' width='100' height='100'></canvas>
-<br>
-<canvas id='output10' width='100' height='100'></canvas>
-<canvas id='output11' width='100' height='100'></canvas>
-<canvas id='output12' width='100' height='100'></canvas>
-<canvas id='output13' width='100' height='100'></canvas>
-<canvas id='output14' width='100' height='100'></canvas>
-
-<script>
-var paint = function(id, filter) {
-  var c = document.getElementById(id);
-  var ctx = c.getContext('2d');
-  ctx.filter = filter;
-  ctx.fillStyle = '#A00';
-  ctx.fillRect(0, 0, 15, 15);
-  ctx.fillStyle = '#0A0';
-  ctx.fillRect(15, 0, 15, 15);
-  ctx.fillStyle = '#00A';
-  ctx.fillRect(0, 15, 15, 15);
-  ctx.fillStyle = "#AA0";
-  ctx.fillRect(15, 15, 15, 15);
-  return ctx;
-};
-
-paint('output0', "none");
-paint('output1', "blur(10px)");
-paint('output2', "blur(0px)");
-paint('output3', "blur(16px)");
-paint('output4', "blur(0px)");
-paint('output5', "brightness(40%)");
-paint('output6', "contrast(20%)");
-paint('output7', "drop-shadow(0 0 5px green)");
-paint('output8', "grayscale(100%)");
-paint('output9', "invert(100%)");
-paint('output10', "opacity(50%)");
-paint('output11', "saturate(20%)");
-paint('output12', "sepia(100%)");
-paint('output13', "sepia(1) hue-rotate(200deg)");
-paint('output14', "url(#url)");
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-filter.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-filter.html
deleted file mode 100644
index 560b1b2..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-filter.html
+++ /dev/null
@@ -1,106 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="paint2d-filter-ref.html">
-<style>
-    div {
-        display: inline-block;
-        width: 100px;
-        height: 100px;
-    }
-    #filter-none { background-image: paint(filter-none); }
-    #filter-blur-10px { background-image: paint(filter-blur-10px); }
-    #filter-blur-50vh { background-image: paint(filter-blur-50vh); }
-    #filter-blur-1em { background-image: paint(filter-blur-1em); }
-    #filter-blur-2percent { background-image: paint(filter-blur-2percent); }
-    #filter-brightness { background-image: paint(filter-brightness); }
-    #filter-contrast { background-image: paint(filter-contrast); }
-    #filter-drop-shadow { background-image: paint(filter-drop-shadow); }
-    #filter-grayscale { background-image: paint(filter-grayscale); }
-    #filter-invert { background-image: paint(filter-invert); }
-    #filter-opacity { background-image: paint(filter-opacity); }
-    #filter-saturate { background-image: paint(filter-saturate); }
-    #filter-sepia { background-image: paint(filter-sepia); }
-    #filter-hue-rotate { background-image: paint(filter-hue-rotate); }
-    #filter-url { background-image: paint(filter-url); }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="filter-none"></div>
-<div id="filter-blur-10px"></div>
-<div id="filter-blur-50vh"></div>
-<div id="filter-blur-1em"></div>
-<div id="filter-blur-2percent"></div>
-<br>
-<div id="filter-brightness"></div>
-<div id="filter-contrast"></div>
-<div id="filter-drop-shadow"></div>
-<div id="filter-grayscale"></div>
-<div id="filter-invert"></div>
-<br>
-<div id="filter-opacity"></div>
-<div id="filter-saturate"></div>
-<div id="filter-sepia"></div>
-<div id="filter-hue-rotate"></div>
-<div id="filter-url"></div>
-
-<script id="code" type="text/worklet">
-var paintNames = [
-    'filter-none',
-    'filter-blur-10px',
-    'filter-blur-50vh',
-    'filter-blur-1em',
-    'filter-blur-2percent',
-    'filter-brightness',
-    'filter-contrast',
-    'filter-drop-shadow',
-    'filter-grayscale',
-    'filter-invert',
-    'filter-opacity',
-    'filter-saturate',
-    'filter-sepia',
-    'filter-hue-rotate',
-    'filter-url'
-];
-
-var filterOps = [
-    'none',
-    'blur(10px)',
-    'blur(50vh)',
-    'blur(1em)',
-    'blur(2%)',
-    'brightness(40%)',
-    'contrast(20%)',
-    'drop-shadow(0 0 5px green)',
-    'grayscale(100%)',
-    'invert(100%)',
-    'opacity(50%)',
-    'saturate(20%)',
-    'sepia(100%)',
-    'sepia(1) hue-rotate(200deg)',
-    'url(#url)'
-];
-
-function doPaint(ctx, op) {
-  ctx.filter = op;
-  ctx.fillStyle = '#A00';
-  ctx.fillRect(0, 0, 15, 15);
-  ctx.fillStyle = '#0A0';
-  ctx.fillRect(15, 0, 15, 15);
-  ctx.fillStyle = '#00A';
-  ctx.fillRect(0, 15, 15, 15);
-  ctx.fillStyle = "#AA0";
-  ctx.fillRect(15, 15, 15, 15);
-};
-
-for (var i = 0; i < filterOps.length; i++) {
-  let op = filterOps[i];
-  registerPaint(paintNames[i], class { paint(ctx, geom) { doPaint(ctx, op); } });
-}
-</script>
-
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-gradient-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-gradient-ref.html
deleted file mode 100644
index a8064f59..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-gradient-ref.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<canvas id ="output" width="200" height="100"></canvas>
-<script>
-var canvas = document.getElementById('output');
-var ctx = canvas.getContext('2d');
-
-var linearGradient = ctx.createLinearGradient(0, 0, 100, 100);
-linearGradient.addColorStop(0, 'blue');
-linearGradient.addColorStop(0.5, 'red');
-linearGradient.addColorStop(1, 'white');
-ctx.fillStyle = linearGradient;
-ctx.fillRect(0, 0, 100, 100);
-
-var radialGradient = ctx.createRadialGradient(150, 50, 0, 150, 50, 50);
-radialGradient.addColorStop(0, 'blue');
-radialGradient.addColorStop(0.5, 'red');
-radialGradient.addColorStop(1, 'white');
-ctx.fillStyle = radialGradient;
-ctx.fillRect(100, 0, 100, 100);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-gradient.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-gradient.html
deleted file mode 100644
index b936430..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-gradient.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="paint2d-gradient-ref.html">
-<style>
-    #output {
-        width: 200px;
-        height: 100px;
-        background-image: paint(gradients);
-    }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="output"></div>
-
-<script id="code" type="text/worklet">
-registerPaint('gradients', class {
-    paint(ctx, geom) {
-        var linearGradient = ctx.createLinearGradient(0, 0, 100, 100);
-        linearGradient.addColorStop(0, 'blue');
-        linearGradient.addColorStop(0.5, 'red');
-        linearGradient.addColorStop(1, 'white');
-        ctx.fillStyle = linearGradient;
-        ctx.fillRect(0, 0, 100, 100);
-
-        var radialGradient = ctx.createRadialGradient(150, 50, 0, 150, 50, 50);
-        radialGradient.addColorStop(0, 'blue');
-        radialGradient.addColorStop(0.5, 'red');
-        radialGradient.addColorStop(1, 'white');
-        ctx.fillStyle = radialGradient;
-        ctx.fillRect(100, 0, 100, 100);
-    }
-});
-</script>
-
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-image-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-image-ref.html
deleted file mode 100644
index 31c9f3f..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-image-ref.html
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE html>
-<canvas id="canvas" width="300" height="300"></canvas>
-
-<script>
-    var canvas = document.getElementById("canvas");
-    var ctx = canvas.getContext("2d");
-    var img = new Image;
-    img.src = "resources/html5.png";
-    img.onload = function() {
-        ctx.drawImage(img, 0, 0);
-    };
-</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-image.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-image.html
deleted file mode 100644
index 5dc7ebf..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-image.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="paint2d-image-ref.html">
-<style>
-    #output {
-        width: 300px;
-        height: 300px;
-        background-image: paint(image);
-        border-image: url("resources/html5.png");
-    }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<div id="output"></div>
-
-<script id="code" type="text/worklet">
-    registerPaint('image', class {
-        static get inputProperties() { return [ 'border-image-source' ]; };
-        paint(ctx, geom, styleMap) {
-            ctx.drawImage(styleMap.get('border-image-source'), 0, 0);
-        }
-    });
-</script>
-
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-paths-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-paths-ref.html
deleted file mode 100644
index 7557411b..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-paths-ref.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<canvas id ="output" width="300" height="400"></canvas>
-<script>
-var canvas = document.getElementById('output');
-var ctx = canvas.getContext('2d');
-
-ctx.beginPath();
-ctx.lineWidth = '10';
-ctx.strokeStyle = 'green';
-ctx.moveTo(15, 15);
-ctx.lineTo(135, 15);
-ctx.lineTo(70, 170);
-ctx.closePath();
-ctx.stroke();
-
-var path1 = new Path2D();
-path1.moveTo(250, 25);
-path1.bezierCurveTo(110, 150, 110, 300, 200, 200);
-ctx.strokeStyle = 'purple';
-ctx.setLineDash([ 10, 5 ]);
-ctx.stroke(path1);
-
-ctx.fillStyle = 'red';
-ctx.beginPath()
-ctx.arc(75, 325, 50, 0, Math.PI * 2, true);
-ctx.arc(75, 325, 20, 0, Math.PI * 2, true);
-ctx.fill('evenodd');
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-paths.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-paths.html
deleted file mode 100644
index 55a01b4..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-paths.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="paint2d-paths-ref.html">
-<style>
-    #output {
-        width: 300px;
-        height: 400px;
-        background-image: paint(paths);
-    }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="output"></div>
-
-<script id="code" type="text/worklet">
-registerPaint('paths', class {
-    paint(ctx, geom) {
-        ctx.beginPath();
-        ctx.lineWidth = '10';
-        ctx.strokeStyle = 'green';
-        ctx.moveTo(15, 15);
-        ctx.lineTo(135, 15);
-        ctx.lineTo(70, 170);
-        ctx.closePath();
-        ctx.stroke();
-
-        var path1 = new Path2D();
-        path1.moveTo(250, 25);
-        path1.bezierCurveTo(110, 150, 110, 300, 200, 200);
-        ctx.strokeStyle = 'purple';
-        ctx.setLineDash([ 10, 5 ]);
-        ctx.stroke(path1);
-
-        ctx.fillStyle = 'red';
-        ctx.beginPath()
-        ctx.arc(75, 325, 50, 0, Math.PI * 2, true);
-        ctx.arc(75, 325, 20, 0, Math.PI * 2, true);
-        ctx.fill('evenodd');
-    }
-});
-</script>
-
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-rects-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-rects-ref.html
deleted file mode 100644
index fae2de7..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-rects-ref.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<canvas id ="output" width="100" height="100" style="background: blue;"></canvas>
-<script>
-var canvas = document.getElementById('output');
-var ctx = canvas.getContext('2d');
-
-ctx.fillStyle = 'green';
-ctx.fillRect(0, 0, 100, 100);
-
-ctx.clearRect(40, 40, 20, 20);
-
-ctx.strokeStyle = 'red';
-ctx.lineWidth = 4;
-ctx.strokeRect(20, 20, 60, 60);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-rects.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-rects.html
deleted file mode 100644
index 24247da2..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-rects.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="paint2d-rects-ref.html">
-<style>
-    #output {
-        width: 100px;
-        height: 100px;
-        background-image: paint(rects);
-        background-color: blue;
-    }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="output"></div>
-
-<script id="code" type="text/worklet">
-registerPaint('rects', class {
-    paint(ctx, geom) {
-        ctx.fillStyle = 'green';
-        ctx.fillRect(0, 0, geom.width, geom.height);
-
-        ctx.clearRect(40, 40, 20, 20);
-
-        ctx.strokeStyle = 'red';
-        ctx.lineWidth = 4;
-        ctx.strokeRect(20, 20, 60, 60);
-    }
-});
-</script>
-
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-shadows-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-shadows-ref.html
deleted file mode 100644
index 268db49..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-shadows-ref.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<canvas id ="output" width="200" height="100"></canvas>
-<script>
-var canvas = document.getElementById('output');
-var ctx = canvas.getContext('2d');
-
-ctx.shadowColor = 'black';
-ctx.shadowOffsetY = 10;
-ctx.shadowOffsetX = 10;
-ctx.fillStyle = 'green'
-ctx.fillRect(10, 10, 50, 50);
-
-ctx.shadowColor = 'blue';
-ctx.shadowBlur = 10;
-ctx.shadowOffsetX = 5;
-ctx.shadowOffsetY = 5;
-ctx.fillStyle = 'green';
-ctx.fillRect(110, 10, 50, 50);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-shadows.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-shadows.html
deleted file mode 100644
index ad0a1aac..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-shadows.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="paint2d-shadows-ref.html">
-<style>
-    #output {
-        width: 200px;
-        height: 100px;
-        background-image: paint(shadows);
-    }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="output"></div>
-
-<script id="code" type="text/worklet">
-registerPaint('shadows', class {
-    paint(ctx, geom) {
-        ctx.shadowColor = 'black';
-        ctx.shadowOffsetY = 10;
-        ctx.shadowOffsetX = 10;
-        ctx.fillStyle = 'green'
-        ctx.fillRect(10, 10, 50, 50);
-
-        ctx.shadowColor = 'blue';
-        ctx.shadowBlur = 10;
-        ctx.shadowOffsetX = 5;
-        ctx.shadowOffsetY = 5;
-        ctx.fillStyle = 'green';
-        ctx.fillRect(110, 10, 50, 50);
-    }
-});
-</script>
-
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-transform-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-transform-ref.html
deleted file mode 100644
index e863f36..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-transform-ref.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<canvas id ="output" width="200" height="200"></canvas>
-<script>
-var canvas = document.getElementById('output');
-var ctx = canvas.getContext('2d');
-
-ctx.fillStyle = 'green';
-ctx.transform(1, 0.5, 0, 1, 20, 20);
-ctx.fillRect(0, 0, 50, 50);
-
-ctx.resetTransform();
-
-ctx.fillStyle = 'blue';
-ctx.translate(150, 60);
-ctx.rotate(60 * Math.PI / 180);
-ctx.scale(1.5, 1);
-ctx.fillRect(0, 0, 50, 50);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-transform.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-transform.html
deleted file mode 100644
index f5b6aa84..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/paint2d-transform.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="paint2d-transform-ref.html">
-<style>
-    #output {
-        width: 200px;
-        height: 200px;
-        background-image: paint(transform);
-    }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="output"></div>
-
-<script id="code" type="text/worklet">
-registerPaint('transform', class {
-    paint(ctx, geom) {
-        ctx.fillStyle = 'green';
-        ctx.transform(1, 0.5, 0, 1, 20, 20);
-        ctx.fillRect(0, 0, 50, 50);
-
-        ctx.resetTransform();
-
-        ctx.fillStyle = 'blue';
-        ctx.translate(150, 60);
-        ctx.rotate(60 * Math.PI / 180);
-        ctx.scale(1.5, 1);
-        ctx.fillRect(0, 0, 50, 50);
-    }
-});
-</script>
-
-<script>
-    importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent);
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/valid-image-after-load-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/valid-image-after-load-ref.html
deleted file mode 100644
index b6a6dec6..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/valid-image-after-load-ref.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<div style="background: green; width: 100px; height: 100px"></div>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/valid-image-after-load.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/valid-image-after-load.html
deleted file mode 100644
index b1ad0d2..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/valid-image-after-load.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="valid-image-after-load-ref.html">
-<style>
-    #output {
-        width: 100px;
-        height: 100px;
-        background-color: red;
-    }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="output"></div>
-
-<script id="code" type="text/worklet">
-registerPaint('green', class {
-    paint(ctx, geom) {
-        ctx.fillStyle = 'green';
-        ctx.fillRect(0, 0, geom.width, geom.height);
-    }
-});
-</script>
-
-<script>
-if (window.testRunner) {
-  testRunner.waitUntilDone();
-}
-
-var blob = new Blob([document.getElementById('code').textContent],
-                    {type: 'text/javascript'});
-var frame_cnt = 0;
-paintWorklet.addModule(URL.createObjectURL(blob)).then(function() {
-    var el = document.getElementById('output');
-    el.style.backgroundImage = 'paint(green)';
-    requestAnimationFrame(function() {
-        takeScreenshot(frame_cnt);
-    });
-});
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/valid-image-before-load-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/valid-image-before-load-ref.html
deleted file mode 100644
index b6a6dec6..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/valid-image-before-load-ref.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<div style="background: green; width: 100px; height: 100px"></div>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/valid-image-before-load.html b/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/valid-image-before-load.html
deleted file mode 100644
index b4e6b0e..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/css-paint-api/valid-image-before-load.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<html class="reftest-wait">
-<link rel="match" href="valid-image-before-load-ref.html">
-<style>
-    #output {
-        width: 100px;
-        height: 100px;
-        background-color: red;
-    }
-</style>
-<script src="/common/reftest-wait.js"></script>
-<script src="/common/css-paint-tests.js"></script>
-<body>
-<div id="output"></div>
-
-<script id="code" type="text/worklet">
-registerPaint('green', class {
-    paint(ctx, geom) {
-        ctx.fillStyle = 'green';
-        ctx.fillRect(0, 0, geom.width, geom.height);
-    }
-});
-</script>
-
-<script>
-if (window.testRunner) {
-  testRunner.waitUntilDone();
-}
-
-var el = document.getElementById('output');
-el.style.backgroundImage = 'paint(green)';
-
-var blob = new Blob([document.getElementById('code').textContent],
-                    {type: 'text/javascript'});
-var frame_cnt = 0;
-paintWorklet.addModule(URL.createObjectURL(blob)).then(function() {
-    requestAnimationFrame(function() {
-        takeScreenshot(frame_cnt);
-    });
-});
-</script>
-</body>
-</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/cssom/CSSKeyframeRule-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/cssom/CSSKeyframeRule-expected.txt
new file mode 100644
index 0000000..fa42a82
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/cssom/CSSKeyframeRule-expected.txt
@@ -0,0 +1,5 @@
+This is a testharness.js-based test.
+PASS CSSKeyframeRule: style property 
+FAIL CSSKeyframeRule: style property has [PutForwards] assert_equals: margin-left expected "50%" but got "100%"
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/external/wpt/cssom/CSSKeyframeRule.html b/third_party/WebKit/LayoutTests/external/wpt/cssom/CSSKeyframeRule.html
index 20067f9..532aa6fa 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/cssom/CSSKeyframeRule.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/cssom/CSSKeyframeRule.html
@@ -41,4 +41,11 @@
     assert_equals(toRule.style.marginLeft, "-5%");
     assert_equals(toRule.style.width, "50%");
   }, "CSSKeyframeRule: style property");
+
+  test(function() {
+    fromRule.style = "margin-left: 50%; width: 100%;";
+
+    assert_equals(fromRule.style.marginLeft, "50%", "margin-left");
+    assert_equals(fromRule.style.width, "100%", "width");
+  }, "CSSKeyframeRule: style property has [PutForwards]");
 </script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/cssom/CSSStyleRule-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/cssom/CSSStyleRule-expected.txt
deleted file mode 100644
index 38ad468..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/cssom/CSSStyleRule-expected.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-This is a testharness.js-based test.
-PASS CSSRule and CSSStyleRule types 
-PASS Type of CSSRule#type and constant values 
-PASS Existence of CSSRule attributes 
-PASS Writability of CSSRule attributes 
-PASS Values of CSSRule attributes 
-PASS Existence, writability and type of CSSStyleRule attributes 
-PASS Values of CSSStyleRule attributes 
-FAIL Mutability of CSSStyleRule's style attribute assert_equals: expected "10px" but got ""
-Harness: the test ran to completion.
-
diff --git a/third_party/WebKit/LayoutTests/external/wpt/cssom/CSSStyleRule.html b/third_party/WebKit/LayoutTests/external/wpt/cssom/CSSStyleRule.html
index 65d6d534..b103d33 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/cssom/CSSStyleRule.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/cssom/CSSStyleRule.html
@@ -67,7 +67,6 @@
             assert_idl_attribute(rule, "selectorText");
             assert_equals(typeof rule.selectorText, "string");
             assert_idl_attribute(rule, "style");
-            assert_readonly(rule, "style");
         }, "Existence, writability and type of CSSStyleRule attributes");
 
         test(function() {
@@ -85,6 +84,13 @@
             assert_equals(rule.style.padding, "5px");
             assert_equals(rule.style.border, "1px solid");
         }, "Mutability of CSSStyleRule's style attribute");
+
+        test(function() {
+            rule.style = "margin: 15px; padding: 2px;";
+
+            assert_equals(rule.style.margin, "15px", "margin");
+            assert_equals(rule.style.padding, "2px", "padding");
+        }, "CSSStyleRule's style has [PutForwards]");
     </script>
 </body>
 </html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/dom/elements-misc.js b/third_party/WebKit/LayoutTests/external/wpt/html/dom/elements-misc.js
index 2dfd824b..eb68e10 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/dom/elements-misc.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/dom/elements-misc.js
@@ -40,23 +40,9 @@
   },
   summary: {},
   menu: {
-    // Conforming
-    //TODO: check that missing value default is context if parent's type is context
-    type: {type: "enum", keywords:["context", "toolbar"], defaultVal: "toolbar"},
-    label: "string",
-
     // Obsolete
     compact: "boolean",
   },
-  menuitem: {
-    type: {type: "enum", keywords: ["command", "checkbox", "radio"], defaultVal: "command"},
-    label: "string",
-    icon: "url",
-    disabled: "boolean",
-    checked: "boolean",
-    radiogroup: "string",
-    "default": "boolean",
-  },
   dialog: {
     open: "boolean",
   },
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/dom/elements-tabular.js b/third_party/WebKit/LayoutTests/external/wpt/html/dom/elements-tabular.js
index ee66f7a4..db7683c7 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/dom/elements-tabular.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/dom/elements-tabular.js
@@ -17,7 +17,7 @@
     align: "string",
   },
   colgroup: {
-    span: {type: "limited unsigned long with fallback", defaultVal: 1},
+    span: {type: "clamped unsigned long", defaultVal: 1, min: 1, max: 1000},
 
     // Obsolete
     align: "string",
@@ -28,7 +28,7 @@
   },
   col: {
     // Conforming
-    span: {type: "limited unsigned long with fallback", defaultVal: 1},
+    span: {type: "clamped unsigned long", defaultVal: 1, min: 1, max: 1000},
 
     // Obsolete
     align: "string",
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/dom/reflection-misc-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/html/dom/reflection-misc-expected.txt
index 3fe9a25..537824d 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/dom/reflection-misc-expected.txt
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/dom/reflection-misc-expected.txt
@@ -109,363 +109,7 @@
 PASS menu.hidden: 33 tests
 PASS menu.accessKey: 32 tests
 PASS menu.tabIndex: 24 tests
-FAIL menu.type: typeof IDL attribute assert_equals: expected "string" but got "undefined"
-FAIL menu.type: IDL get with DOM attribute unset assert_equals: expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to "" assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to undefined assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to 7 assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to 1.5 assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to true assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to false assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to object "[object Object]" assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to NaN assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to Infinity assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to -Infinity assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to "\0" assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to null assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to object "test-toString" assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to object "test-valueOf" assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to "context" assert_equals: IDL get expected (string) "context" but got (undefined) undefined
-FAIL menu.type: setAttribute() to "xcontext" assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to "context\0" assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to "ontext" assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to "CONTEXT" assert_equals: IDL get expected (string) "context" but got (undefined) undefined
-FAIL menu.type: setAttribute() to "toolbar" assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to "xtoolbar" assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to "toolbar\0" assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to "oolbar" assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: setAttribute() to "TOOLBAR" assert_equals: IDL get expected (string) "toolbar" but got (undefined) undefined
-FAIL menu.type: IDL set to "" assert_equals: getAttribute() expected "" but got "TOOLBAR"
-FAIL menu.type: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: getAttribute() expected " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " but got "TOOLBAR"
-FAIL menu.type: IDL set to undefined assert_equals: getAttribute() expected "undefined" but got "TOOLBAR"
-FAIL menu.type: IDL set to 7 assert_equals: getAttribute() expected "7" but got "TOOLBAR"
-FAIL menu.type: IDL set to 1.5 assert_equals: getAttribute() expected "1.5" but got "TOOLBAR"
-FAIL menu.type: IDL set to true assert_equals: getAttribute() expected "true" but got "TOOLBAR"
-FAIL menu.type: IDL set to false assert_equals: getAttribute() expected "false" but got "TOOLBAR"
-FAIL menu.type: IDL set to object "[object Object]" assert_equals: getAttribute() expected "[object Object]" but got "TOOLBAR"
-FAIL menu.type: IDL set to NaN assert_equals: getAttribute() expected "NaN" but got "TOOLBAR"
-FAIL menu.type: IDL set to Infinity assert_equals: getAttribute() expected "Infinity" but got "TOOLBAR"
-FAIL menu.type: IDL set to -Infinity assert_equals: getAttribute() expected "-Infinity" but got "TOOLBAR"
-FAIL menu.type: IDL set to "\0" assert_equals: getAttribute() expected "\0" but got "TOOLBAR"
-FAIL menu.type: IDL set to null assert_equals: IDL get expected (string) "toolbar" but got (object) null
-FAIL menu.type: IDL set to object "test-toString" assert_equals: getAttribute() expected "test-toString" but got "TOOLBAR"
-FAIL menu.type: IDL set to object "test-valueOf" assert_equals: getAttribute() expected "test-valueOf" but got "TOOLBAR"
-FAIL menu.type: IDL set to "context" assert_equals: getAttribute() expected "context" but got "TOOLBAR"
-FAIL menu.type: IDL set to "xcontext" assert_equals: getAttribute() expected "xcontext" but got "TOOLBAR"
-FAIL menu.type: IDL set to "context\0" assert_equals: getAttribute() expected "context\0" but got "TOOLBAR"
-FAIL menu.type: IDL set to "ontext" assert_equals: getAttribute() expected "ontext" but got "TOOLBAR"
-FAIL menu.type: IDL set to "CONTEXT" assert_equals: getAttribute() expected "CONTEXT" but got "TOOLBAR"
-FAIL menu.type: IDL set to "toolbar" assert_equals: getAttribute() expected "toolbar" but got "TOOLBAR"
-FAIL menu.type: IDL set to "xtoolbar" assert_equals: getAttribute() expected "xtoolbar" but got "TOOLBAR"
-FAIL menu.type: IDL set to "toolbar\0" assert_equals: getAttribute() expected "toolbar\0" but got "TOOLBAR"
-FAIL menu.type: IDL set to "oolbar" assert_equals: getAttribute() expected "oolbar" but got "TOOLBAR"
-FAIL menu.type: IDL set to "TOOLBAR" assert_equals: IDL get expected "toolbar" but got "TOOLBAR"
-FAIL menu.label: typeof IDL attribute assert_equals: expected "string" but got "undefined"
-FAIL menu.label: IDL get with DOM attribute unset assert_equals: expected (string) "" but got (undefined) undefined
-FAIL menu.label: setAttribute() to "" assert_equals: IDL get expected (string) "" but got (undefined) undefined
-FAIL menu.label: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: IDL get expected (string) " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " but got (undefined) undefined
-FAIL menu.label: setAttribute() to undefined assert_equals: IDL get expected (string) "undefined" but got (undefined) undefined
-FAIL menu.label: setAttribute() to 7 assert_equals: IDL get expected (string) "7" but got (undefined) undefined
-FAIL menu.label: setAttribute() to 1.5 assert_equals: IDL get expected (string) "1.5" but got (undefined) undefined
-FAIL menu.label: setAttribute() to true assert_equals: IDL get expected (string) "true" but got (undefined) undefined
-FAIL menu.label: setAttribute() to false assert_equals: IDL get expected (string) "false" but got (undefined) undefined
-FAIL menu.label: setAttribute() to object "[object Object]" assert_equals: IDL get expected (string) "[object Object]" but got (undefined) undefined
-FAIL menu.label: setAttribute() to NaN assert_equals: IDL get expected (string) "NaN" but got (undefined) undefined
-FAIL menu.label: setAttribute() to Infinity assert_equals: IDL get expected (string) "Infinity" but got (undefined) undefined
-FAIL menu.label: setAttribute() to -Infinity assert_equals: IDL get expected (string) "-Infinity" but got (undefined) undefined
-FAIL menu.label: setAttribute() to "\0" assert_equals: IDL get expected (string) "\0" but got (undefined) undefined
-FAIL menu.label: setAttribute() to null assert_equals: IDL get expected (string) "null" but got (undefined) undefined
-FAIL menu.label: setAttribute() to object "test-toString" assert_equals: IDL get expected (string) "test-toString" but got (undefined) undefined
-FAIL menu.label: setAttribute() to object "test-valueOf" assert_equals: IDL get expected (string) "test-valueOf" but got (undefined) undefined
-FAIL menu.label: IDL set to "" assert_equals: getAttribute() expected "" but got "test-valueOf"
-FAIL menu.label: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: getAttribute() expected " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " but got "test-valueOf"
-FAIL menu.label: IDL set to undefined assert_equals: getAttribute() expected "undefined" but got "test-valueOf"
-FAIL menu.label: IDL set to 7 assert_equals: getAttribute() expected "7" but got "test-valueOf"
-FAIL menu.label: IDL set to 1.5 assert_equals: getAttribute() expected "1.5" but got "test-valueOf"
-FAIL menu.label: IDL set to true assert_equals: getAttribute() expected "true" but got "test-valueOf"
-FAIL menu.label: IDL set to false assert_equals: getAttribute() expected "false" but got "test-valueOf"
-FAIL menu.label: IDL set to object "[object Object]" assert_equals: getAttribute() expected "[object Object]" but got "test-valueOf"
-FAIL menu.label: IDL set to NaN assert_equals: getAttribute() expected "NaN" but got "test-valueOf"
-FAIL menu.label: IDL set to Infinity assert_equals: getAttribute() expected "Infinity" but got "test-valueOf"
-FAIL menu.label: IDL set to -Infinity assert_equals: getAttribute() expected "-Infinity" but got "test-valueOf"
-FAIL menu.label: IDL set to "\0" assert_equals: getAttribute() expected "\0" but got "test-valueOf"
-FAIL menu.label: IDL set to null assert_equals: getAttribute() expected "null" but got "test-valueOf"
-FAIL menu.label: IDL set to object "test-toString" assert_equals: getAttribute() expected "test-toString" but got "test-valueOf"
-FAIL menu.label: IDL set to object "test-valueOf" assert_equals: IDL get expected (string) "test-valueOf" but got (object) object "test-valueOf"
 PASS menu.compact: 33 tests
-PASS menuitem.title: 32 tests
-PASS menuitem.lang: 32 tests
-PASS menuitem.dir: 62 tests
-PASS menuitem.className (<menuitem class>): 32 tests
-PASS menuitem.hidden: 33 tests
-PASS menuitem.accessKey: 32 tests
-PASS menuitem.tabIndex: 24 tests
-FAIL menuitem.type: typeof IDL attribute assert_equals: expected "string" but got "undefined"
-FAIL menuitem.type: IDL get with DOM attribute unset assert_equals: expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to undefined assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to 7 assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to 1.5 assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to true assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to false assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to object "[object Object]" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to NaN assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to Infinity assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to -Infinity assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "\0" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to null assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to object "test-toString" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to object "test-valueOf" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "command" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "xcommand" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "command\0" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "ommand" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "COMMAND" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "checkbox" assert_equals: IDL get expected (string) "checkbox" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "xcheckbox" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "checkbox\0" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "heckbox" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "CHECKBOX" assert_equals: IDL get expected (string) "checkbox" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "checKbox" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "radio" assert_equals: IDL get expected (string) "radio" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "xradio" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "radio\0" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "adio" assert_equals: IDL get expected (string) "command" but got (undefined) undefined
-FAIL menuitem.type: setAttribute() to "RADIO" assert_equals: IDL get expected (string) "radio" but got (undefined) undefined
-FAIL menuitem.type: IDL set to "" assert_equals: getAttribute() expected "" but got "RADIO"
-FAIL menuitem.type: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: getAttribute() expected " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " but got "RADIO"
-FAIL menuitem.type: IDL set to undefined assert_equals: getAttribute() expected "undefined" but got "RADIO"
-FAIL menuitem.type: IDL set to 7 assert_equals: getAttribute() expected "7" but got "RADIO"
-FAIL menuitem.type: IDL set to 1.5 assert_equals: getAttribute() expected "1.5" but got "RADIO"
-FAIL menuitem.type: IDL set to true assert_equals: getAttribute() expected "true" but got "RADIO"
-FAIL menuitem.type: IDL set to false assert_equals: getAttribute() expected "false" but got "RADIO"
-FAIL menuitem.type: IDL set to object "[object Object]" assert_equals: getAttribute() expected "[object Object]" but got "RADIO"
-FAIL menuitem.type: IDL set to NaN assert_equals: getAttribute() expected "NaN" but got "RADIO"
-FAIL menuitem.type: IDL set to Infinity assert_equals: getAttribute() expected "Infinity" but got "RADIO"
-FAIL menuitem.type: IDL set to -Infinity assert_equals: getAttribute() expected "-Infinity" but got "RADIO"
-FAIL menuitem.type: IDL set to "\0" assert_equals: getAttribute() expected "\0" but got "RADIO"
-FAIL menuitem.type: IDL set to null assert_equals: IDL get expected (string) "command" but got (object) null
-FAIL menuitem.type: IDL set to object "test-toString" assert_equals: getAttribute() expected "test-toString" but got "RADIO"
-FAIL menuitem.type: IDL set to object "test-valueOf" assert_equals: getAttribute() expected "test-valueOf" but got "RADIO"
-FAIL menuitem.type: IDL set to "command" assert_equals: getAttribute() expected "command" but got "RADIO"
-FAIL menuitem.type: IDL set to "xcommand" assert_equals: getAttribute() expected "xcommand" but got "RADIO"
-FAIL menuitem.type: IDL set to "command\0" assert_equals: getAttribute() expected "command\0" but got "RADIO"
-FAIL menuitem.type: IDL set to "ommand" assert_equals: getAttribute() expected "ommand" but got "RADIO"
-FAIL menuitem.type: IDL set to "COMMAND" assert_equals: getAttribute() expected "COMMAND" but got "RADIO"
-FAIL menuitem.type: IDL set to "checkbox" assert_equals: getAttribute() expected "checkbox" but got "RADIO"
-FAIL menuitem.type: IDL set to "xcheckbox" assert_equals: getAttribute() expected "xcheckbox" but got "RADIO"
-FAIL menuitem.type: IDL set to "checkbox\0" assert_equals: getAttribute() expected "checkbox\0" but got "RADIO"
-FAIL menuitem.type: IDL set to "heckbox" assert_equals: getAttribute() expected "heckbox" but got "RADIO"
-FAIL menuitem.type: IDL set to "CHECKBOX" assert_equals: getAttribute() expected "CHECKBOX" but got "RADIO"
-FAIL menuitem.type: IDL set to "checKbox" assert_equals: getAttribute() expected "checKbox" but got "RADIO"
-FAIL menuitem.type: IDL set to "radio" assert_equals: getAttribute() expected "radio" but got "RADIO"
-FAIL menuitem.type: IDL set to "xradio" assert_equals: getAttribute() expected "xradio" but got "RADIO"
-FAIL menuitem.type: IDL set to "radio\0" assert_equals: getAttribute() expected "radio\0" but got "RADIO"
-FAIL menuitem.type: IDL set to "adio" assert_equals: getAttribute() expected "adio" but got "RADIO"
-FAIL menuitem.type: IDL set to "RADIO" assert_equals: IDL get expected "radio" but got "RADIO"
-FAIL menuitem.label: typeof IDL attribute assert_equals: expected "string" but got "undefined"
-FAIL menuitem.label: IDL get with DOM attribute unset assert_equals: expected (string) "" but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to "" assert_equals: IDL get expected (string) "" but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: IDL get expected (string) " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to undefined assert_equals: IDL get expected (string) "undefined" but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to 7 assert_equals: IDL get expected (string) "7" but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to 1.5 assert_equals: IDL get expected (string) "1.5" but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to true assert_equals: IDL get expected (string) "true" but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to false assert_equals: IDL get expected (string) "false" but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to object "[object Object]" assert_equals: IDL get expected (string) "[object Object]" but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to NaN assert_equals: IDL get expected (string) "NaN" but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to Infinity assert_equals: IDL get expected (string) "Infinity" but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to -Infinity assert_equals: IDL get expected (string) "-Infinity" but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to "\0" assert_equals: IDL get expected (string) "\0" but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to null assert_equals: IDL get expected (string) "null" but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to object "test-toString" assert_equals: IDL get expected (string) "test-toString" but got (undefined) undefined
-FAIL menuitem.label: setAttribute() to object "test-valueOf" assert_equals: IDL get expected (string) "test-valueOf" but got (undefined) undefined
-FAIL menuitem.label: IDL set to "" assert_equals: getAttribute() expected "" but got "test-valueOf"
-FAIL menuitem.label: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: getAttribute() expected " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " but got "test-valueOf"
-FAIL menuitem.label: IDL set to undefined assert_equals: getAttribute() expected "undefined" but got "test-valueOf"
-FAIL menuitem.label: IDL set to 7 assert_equals: getAttribute() expected "7" but got "test-valueOf"
-FAIL menuitem.label: IDL set to 1.5 assert_equals: getAttribute() expected "1.5" but got "test-valueOf"
-FAIL menuitem.label: IDL set to true assert_equals: getAttribute() expected "true" but got "test-valueOf"
-FAIL menuitem.label: IDL set to false assert_equals: getAttribute() expected "false" but got "test-valueOf"
-FAIL menuitem.label: IDL set to object "[object Object]" assert_equals: getAttribute() expected "[object Object]" but got "test-valueOf"
-FAIL menuitem.label: IDL set to NaN assert_equals: getAttribute() expected "NaN" but got "test-valueOf"
-FAIL menuitem.label: IDL set to Infinity assert_equals: getAttribute() expected "Infinity" but got "test-valueOf"
-FAIL menuitem.label: IDL set to -Infinity assert_equals: getAttribute() expected "-Infinity" but got "test-valueOf"
-FAIL menuitem.label: IDL set to "\0" assert_equals: getAttribute() expected "\0" but got "test-valueOf"
-FAIL menuitem.label: IDL set to null assert_equals: getAttribute() expected "null" but got "test-valueOf"
-FAIL menuitem.label: IDL set to object "test-toString" assert_equals: getAttribute() expected "test-toString" but got "test-valueOf"
-FAIL menuitem.label: IDL set to object "test-valueOf" assert_equals: IDL get expected (string) "test-valueOf" but got (object) object "test-valueOf"
-FAIL menuitem.icon: typeof IDL attribute assert_equals: expected "string" but got "undefined"
-FAIL menuitem.icon: IDL get with DOM attribute unset assert_equals: expected (string) "" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to "" assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/reflection-misc.html" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to " foo " assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/foo" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to "http://site.example/" assert_equals: IDL get expected (string) "http://site.example/" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to "//site.example/path???@#l" assert_equals: IDL get expected (string) "http://site.example/path???@#l" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/reflection-misc.html" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to undefined assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/undefined" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to 7 assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/7" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to 1.5 assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/1.5" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to true assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/true" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to false assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/false" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to object "[object Object]" assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/[object%20Object]" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to NaN assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/NaN" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to Infinity assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/Infinity" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to -Infinity assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/-Infinity" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to "\0" assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/reflection-misc.html" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to null assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/null" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to object "test-toString" assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/test-toString" but got (undefined) undefined
-FAIL menuitem.icon: setAttribute() to object "test-valueOf" assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/test-valueOf" but got (undefined) undefined
-FAIL menuitem.icon: IDL set to "" assert_equals: getAttribute() expected "" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to " foo " assert_equals: getAttribute() expected " foo " but got "test-valueOf"
-FAIL menuitem.icon: IDL set to "http://site.example/" assert_equals: getAttribute() expected "http://site.example/" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to "//site.example/path???@#l" assert_equals: getAttribute() expected "//site.example/path???@#l" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " assert_equals: getAttribute() expected "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " but got "test-valueOf"
-FAIL menuitem.icon: IDL set to undefined assert_equals: getAttribute() expected "undefined" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to 7 assert_equals: getAttribute() expected "7" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to 1.5 assert_equals: getAttribute() expected "1.5" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to true assert_equals: getAttribute() expected "true" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to false assert_equals: getAttribute() expected "false" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to object "[object Object]" assert_equals: getAttribute() expected "[object Object]" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to NaN assert_equals: getAttribute() expected "NaN" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to Infinity assert_equals: getAttribute() expected "Infinity" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to -Infinity assert_equals: getAttribute() expected "-Infinity" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to "\0" assert_equals: getAttribute() expected "\0" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to null assert_equals: getAttribute() expected "null" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to object "test-toString" assert_equals: getAttribute() expected "test-toString" but got "test-valueOf"
-FAIL menuitem.icon: IDL set to object "test-valueOf" assert_equals: IDL get expected (string) "http://web-platform.test:8001/html/dom/test-valueOf" but got (object) object "test-valueOf"
-FAIL menuitem.disabled: typeof IDL attribute assert_equals: expected "boolean" but got "undefined"
-FAIL menuitem.disabled: IDL get with DOM attribute unset assert_equals: expected (boolean) false but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to "" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to " foo " assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to undefined assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to null assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to 7 assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to 1.5 assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to true assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to false assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to object "[object Object]" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to NaN assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to Infinity assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to -Infinity assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to "\0" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to object "test-toString" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to object "test-valueOf" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: setAttribute() to "disabled" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.disabled: IDL set to "" assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.disabled: IDL set to " foo " assert_equals: IDL get expected (boolean) true but got (string) " foo "
-FAIL menuitem.disabled: IDL set to undefined assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.disabled: IDL set to null assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.disabled: IDL set to 7 assert_equals: IDL get expected (boolean) true but got (number) 7
-FAIL menuitem.disabled: IDL set to 1.5 assert_equals: IDL get expected (boolean) true but got (number) 1.5
-PASS menuitem.disabled: IDL set to true 
-FAIL menuitem.disabled: IDL set to false assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.disabled: IDL set to object "[object Object]" assert_equals: IDL get expected (boolean) true but got (object) object "[object Object]"
-FAIL menuitem.disabled: IDL set to NaN assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.disabled: IDL set to Infinity assert_equals: IDL get expected (boolean) true but got (number) Infinity
-FAIL menuitem.disabled: IDL set to -Infinity assert_equals: IDL get expected (boolean) true but got (number) -Infinity
-FAIL menuitem.disabled: IDL set to "\0" assert_equals: IDL get expected (boolean) true but got (string) "\0"
-FAIL menuitem.disabled: IDL set to object "test-toString" assert_equals: IDL get expected (boolean) true but got (object) object "test-toString"
-FAIL menuitem.disabled: IDL set to object "test-valueOf" assert_equals: IDL get expected (boolean) true but got (object) object "test-valueOf"
-FAIL menuitem.checked: typeof IDL attribute assert_equals: expected "boolean" but got "undefined"
-FAIL menuitem.checked: IDL get with DOM attribute unset assert_equals: expected (boolean) false but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to "" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to " foo " assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to undefined assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to null assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to 7 assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to 1.5 assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to true assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to false assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to object "[object Object]" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to NaN assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to Infinity assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to -Infinity assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to "\0" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to object "test-toString" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to object "test-valueOf" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: setAttribute() to "checked" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.checked: IDL set to "" assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.checked: IDL set to " foo " assert_equals: IDL get expected (boolean) true but got (string) " foo "
-FAIL menuitem.checked: IDL set to undefined assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.checked: IDL set to null assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.checked: IDL set to 7 assert_equals: IDL get expected (boolean) true but got (number) 7
-FAIL menuitem.checked: IDL set to 1.5 assert_equals: IDL get expected (boolean) true but got (number) 1.5
-PASS menuitem.checked: IDL set to true 
-FAIL menuitem.checked: IDL set to false assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.checked: IDL set to object "[object Object]" assert_equals: IDL get expected (boolean) true but got (object) object "[object Object]"
-FAIL menuitem.checked: IDL set to NaN assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.checked: IDL set to Infinity assert_equals: IDL get expected (boolean) true but got (number) Infinity
-FAIL menuitem.checked: IDL set to -Infinity assert_equals: IDL get expected (boolean) true but got (number) -Infinity
-FAIL menuitem.checked: IDL set to "\0" assert_equals: IDL get expected (boolean) true but got (string) "\0"
-FAIL menuitem.checked: IDL set to object "test-toString" assert_equals: IDL get expected (boolean) true but got (object) object "test-toString"
-FAIL menuitem.checked: IDL set to object "test-valueOf" assert_equals: IDL get expected (boolean) true but got (object) object "test-valueOf"
-FAIL menuitem.radiogroup: typeof IDL attribute assert_equals: expected "string" but got "undefined"
-FAIL menuitem.radiogroup: IDL get with DOM attribute unset assert_equals: expected (string) "" but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to "" assert_equals: IDL get expected (string) "" but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: IDL get expected (string) " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to undefined assert_equals: IDL get expected (string) "undefined" but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to 7 assert_equals: IDL get expected (string) "7" but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to 1.5 assert_equals: IDL get expected (string) "1.5" but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to true assert_equals: IDL get expected (string) "true" but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to false assert_equals: IDL get expected (string) "false" but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to object "[object Object]" assert_equals: IDL get expected (string) "[object Object]" but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to NaN assert_equals: IDL get expected (string) "NaN" but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to Infinity assert_equals: IDL get expected (string) "Infinity" but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to -Infinity assert_equals: IDL get expected (string) "-Infinity" but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to "\0" assert_equals: IDL get expected (string) "\0" but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to null assert_equals: IDL get expected (string) "null" but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to object "test-toString" assert_equals: IDL get expected (string) "test-toString" but got (undefined) undefined
-FAIL menuitem.radiogroup: setAttribute() to object "test-valueOf" assert_equals: IDL get expected (string) "test-valueOf" but got (undefined) undefined
-FAIL menuitem.radiogroup: IDL set to "" assert_equals: getAttribute() expected "" but got "test-valueOf"
-FAIL menuitem.radiogroup: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: getAttribute() expected " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " but got "test-valueOf"
-FAIL menuitem.radiogroup: IDL set to undefined assert_equals: getAttribute() expected "undefined" but got "test-valueOf"
-FAIL menuitem.radiogroup: IDL set to 7 assert_equals: getAttribute() expected "7" but got "test-valueOf"
-FAIL menuitem.radiogroup: IDL set to 1.5 assert_equals: getAttribute() expected "1.5" but got "test-valueOf"
-FAIL menuitem.radiogroup: IDL set to true assert_equals: getAttribute() expected "true" but got "test-valueOf"
-FAIL menuitem.radiogroup: IDL set to false assert_equals: getAttribute() expected "false" but got "test-valueOf"
-FAIL menuitem.radiogroup: IDL set to object "[object Object]" assert_equals: getAttribute() expected "[object Object]" but got "test-valueOf"
-FAIL menuitem.radiogroup: IDL set to NaN assert_equals: getAttribute() expected "NaN" but got "test-valueOf"
-FAIL menuitem.radiogroup: IDL set to Infinity assert_equals: getAttribute() expected "Infinity" but got "test-valueOf"
-FAIL menuitem.radiogroup: IDL set to -Infinity assert_equals: getAttribute() expected "-Infinity" but got "test-valueOf"
-FAIL menuitem.radiogroup: IDL set to "\0" assert_equals: getAttribute() expected "\0" but got "test-valueOf"
-FAIL menuitem.radiogroup: IDL set to null assert_equals: getAttribute() expected "null" but got "test-valueOf"
-FAIL menuitem.radiogroup: IDL set to object "test-toString" assert_equals: getAttribute() expected "test-toString" but got "test-valueOf"
-FAIL menuitem.radiogroup: IDL set to object "test-valueOf" assert_equals: IDL get expected (string) "test-valueOf" but got (object) object "test-valueOf"
-FAIL menuitem.default: typeof IDL attribute assert_equals: expected "boolean" but got "undefined"
-FAIL menuitem.default: IDL get with DOM attribute unset assert_equals: expected (boolean) false but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to "" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to " foo " assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to undefined assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to null assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to 7 assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to 1.5 assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to true assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to false assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to object "[object Object]" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to NaN assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to Infinity assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to -Infinity assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to "\0" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to object "test-toString" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to object "test-valueOf" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: setAttribute() to "default" assert_equals: IDL get expected (boolean) true but got (undefined) undefined
-FAIL menuitem.default: IDL set to "" assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.default: IDL set to " foo " assert_equals: IDL get expected (boolean) true but got (string) " foo "
-FAIL menuitem.default: IDL set to undefined assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.default: IDL set to null assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.default: IDL set to 7 assert_equals: IDL get expected (boolean) true but got (number) 7
-FAIL menuitem.default: IDL set to 1.5 assert_equals: IDL get expected (boolean) true but got (number) 1.5
-PASS menuitem.default: IDL set to true 
-FAIL menuitem.default: IDL set to false assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.default: IDL set to object "[object Object]" assert_equals: IDL get expected (boolean) true but got (object) object "[object Object]"
-FAIL menuitem.default: IDL set to NaN assert_equals: hasAttribute() expected false but got true
-FAIL menuitem.default: IDL set to Infinity assert_equals: IDL get expected (boolean) true but got (number) Infinity
-FAIL menuitem.default: IDL set to -Infinity assert_equals: IDL get expected (boolean) true but got (number) -Infinity
-FAIL menuitem.default: IDL set to "\0" assert_equals: IDL get expected (boolean) true but got (string) "\0"
-FAIL menuitem.default: IDL set to object "test-toString" assert_equals: IDL get expected (boolean) true but got (object) object "test-toString"
-FAIL menuitem.default: IDL set to object "test-valueOf" assert_equals: IDL get expected (boolean) true but got (object) object "test-valueOf"
 PASS dialog.title: 32 tests
 PASS dialog.lang: 32 tests
 PASS dialog.dir: 62 tests
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/dom/reflection-tabular-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/html/dom/reflection-tabular-expected.txt
index 9804f57..100c512 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/dom/reflection-tabular-expected.txt
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/dom/reflection-tabular-expected.txt
@@ -31,13 +31,20 @@
 PASS colgroup.accessKey: 32 tests
 PASS colgroup.tabIndex: 24 tests
 PASS colgroup.span: 8 tests
-FAIL colgroup.span: setAttribute() to 2147483647 assert_equals: IDL get expected 2147483647 but got 8190
-FAIL colgroup.span: setAttribute() to 2147483648 assert_equals: IDL get expected 1 but got 8190
-FAIL colgroup.span: setAttribute() to 4294967295 assert_equals: IDL get expected 1 but got 8190
-PASS colgroup.span: 45 tests
-FAIL colgroup.span: IDL set to 2147483647 assert_equals: IDL get expected 2147483647 but got 8190
+FAIL colgroup.span: setAttribute() to 2147483647 assert_equals: IDL get expected 1000 but got 8190
+FAIL colgroup.span: setAttribute() to 2147483648 assert_equals: IDL get expected 1000 but got 8190
+FAIL colgroup.span: setAttribute() to 4294967295 assert_equals: IDL get expected 1000 but got 8190
+FAIL colgroup.span: setAttribute() to 4294967296 assert_equals: IDL get expected 1000 but got 1
+PASS colgroup.span: 43 tests
+FAIL colgroup.span: setAttribute() to 1001 assert_equals: IDL get expected 1000 but got 1001
+FAIL colgroup.span: IDL set to 0 assert_equals: getAttribute() expected "0" but got "1"
+PASS colgroup.span: 2 tests
+FAIL colgroup.span: IDL set to 2147483647 assert_equals: IDL get expected 1000 but got 8190
+FAIL colgroup.span: IDL set to "-0" assert_equals: getAttribute() expected "0" but got "1"
 FAIL colgroup.span: IDL set to 2147483648 assert_equals: getAttribute() expected "1" but got "0"
 FAIL colgroup.span: IDL set to 4294967295 assert_equals: getAttribute() expected "1" but got "0"
+PASS colgroup.span: IDL set to 1000 
+FAIL colgroup.span: IDL set to 1001 assert_equals: IDL get expected 1000 but got 1001
 PASS colgroup.align: 32 tests
 PASS colgroup.ch (<colgroup char>): 32 tests
 PASS colgroup.chOff (<colgroup charoff>): 32 tests
@@ -51,13 +58,20 @@
 PASS col.accessKey: 32 tests
 PASS col.tabIndex: 24 tests
 PASS col.span: 8 tests
-FAIL col.span: setAttribute() to 2147483647 assert_equals: IDL get expected 2147483647 but got 8190
-FAIL col.span: setAttribute() to 2147483648 assert_equals: IDL get expected 1 but got 8190
-FAIL col.span: setAttribute() to 4294967295 assert_equals: IDL get expected 1 but got 8190
-PASS col.span: 45 tests
-FAIL col.span: IDL set to 2147483647 assert_equals: IDL get expected 2147483647 but got 8190
+FAIL col.span: setAttribute() to 2147483647 assert_equals: IDL get expected 1000 but got 8190
+FAIL col.span: setAttribute() to 2147483648 assert_equals: IDL get expected 1000 but got 8190
+FAIL col.span: setAttribute() to 4294967295 assert_equals: IDL get expected 1000 but got 8190
+FAIL col.span: setAttribute() to 4294967296 assert_equals: IDL get expected 1000 but got 1
+PASS col.span: 43 tests
+FAIL col.span: setAttribute() to 1001 assert_equals: IDL get expected 1000 but got 1001
+FAIL col.span: IDL set to 0 assert_equals: getAttribute() expected "0" but got "1"
+PASS col.span: 2 tests
+FAIL col.span: IDL set to 2147483647 assert_equals: IDL get expected 1000 but got 8190
+FAIL col.span: IDL set to "-0" assert_equals: getAttribute() expected "0" but got "1"
 FAIL col.span: IDL set to 2147483648 assert_equals: getAttribute() expected "1" but got "0"
 FAIL col.span: IDL set to 4294967295 assert_equals: getAttribute() expected "1" but got "0"
+PASS col.span: IDL set to 1000 
+FAIL col.span: IDL set to 1001 assert_equals: IDL get expected 1000 but got 1001
 PASS col.align: 32 tests
 PASS col.ch (<col char>): 32 tests
 PASS col.chOff (<col charoff>): 32 tests
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js b/third_party/WebKit/LayoutTests/external/wpt/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js
index 4c586b2..907b5fb 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js
@@ -85,7 +85,7 @@
   }
 
   ('iframe src, a href, base href, link href, img src, embed src, object data, track src, video src, audio src, input src, form action, ' +
-  'input formaction formAction, button formaction formAction, menuitem icon, script src').split(', ').forEach(function(str) {
+  'input formaction formAction, button formaction formAction, script src').split(', ').forEach(function(str) {
     var arr = str.split(' ');
     test_reflecting(arr[0], arr[1], arr[2]);
   });
@@ -292,7 +292,6 @@
   });
 
   // XXX test <img srcset> or its successor
-  // <menuitem icon> could also be tested but the spec doesn't require it to be loaded...
 
   // loading video
   function test_load_video(tag, use_source_element) {
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-element-0/legend-block-formatting-context-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-element-0/legend-block-formatting-context-expected.txt
new file mode 100644
index 0000000..9d9de2c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-element-0/legend-block-formatting-context-expected.txt
@@ -0,0 +1,7 @@
+This is a testharness.js-based test.
+FAIL in-body assert_equals: legend.offsetLeft expected 0 but got 50
+PASS rendered-legend 
+FAIL in-fieldset-second-child assert_equals: legend.offsetLeft expected 2 but got 52
+FAIL in-fieldset-descendant assert_equals: legend.offsetTop expected 50 but got 100
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-element-0/legend-block-formatting-context.html b/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-element-0/legend-block-formatting-context.html
new file mode 100644
index 0000000..4e95391
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-element-0/legend-block-formatting-context.html
@@ -0,0 +1,81 @@
+<!DOCTYPE html>
+<title>The legend element: block formatting context</title>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<style>
+/* Set margin and padding for fieldset to 0 to make things simpler */
+fieldset {
+  margin: 0;
+  padding: 0;
+}
+.wrapper {
+  height: 200px;
+  position: relative;
+}
+.float {
+  float: left;
+  width: 50px;
+  height: 50px;
+  background-color: orange;
+}
+</style>
+
+<div class=wrapper>
+ <div class=float></div>
+ <legend id=in-body><div class=float></div></legend>
+ <div class=float></div>
+</div>
+
+<div class=wrapper>
+ <fieldset>
+  <div class=float></div>
+  <legend id=rendered-legend><div class=float></div></legend>
+  <legend id=in-fieldset-second-child><div class=float></div></legend>
+  <div><legend id=in-fieldset-descendant><div class=float></div></legend></div>
+ </fieldset>
+</div>
+
+<script>
+const fieldsetBorderWidth = 2;
+const legendPadding = 2;
+
+test(() => {
+  const legend = document.getElementById('in-body');
+  assert_equals(legend.offsetLeft, 0, 'legend.offsetLeft');
+  assert_equals(legend.offsetTop, 0, 'legend.offsetTop');
+  assert_equals(legend.clientHeight, 0, 'legend.clientHeight');
+  const divAfter = legend.nextElementSibling;
+  assert_equals(divAfter.offsetLeft, 100, 'divAfter.offsetLeft');
+  assert_equals(divAfter.offsetTop, 0, 'divAfter.offsetTop');
+}, 'in-body');
+
+test(() => {
+  const legend = document.getElementById('rendered-legend');
+  assert_equals(legend.offsetLeft, fieldsetBorderWidth, 'legend.offsetLeft');
+  assert_equals(legend.offsetTop, 0, 'legend.offsetTop');
+  assert_equals(legend.clientHeight, 50, 'legend.clientHeight');
+  const divChild = legend.firstChild;
+  assert_equals(divChild.offsetLeft, fieldsetBorderWidth + legendPadding, 'divChild.offsetLeft');
+  assert_equals(divChild.offsetTop, 0, 'divChild.offsetTop');
+}, 'rendered-legend');
+
+test(() => {
+  const legend = document.getElementById('in-fieldset-second-child');
+  assert_equals(legend.offsetLeft, fieldsetBorderWidth, 'legend.offsetLeft');
+  assert_equals(legend.offsetTop, 50, 'legend.offsetTop');
+  assert_equals(legend.clientHeight, 0, 'legend.clientHeight');
+  const divChild = legend.firstChild;
+  assert_equals(divChild.offsetLeft, fieldsetBorderWidth + 50, 'divChild.offsetLeft');
+  assert_equals(divChild.offsetTop, 50, 'divChild.offsetTop');
+}, 'in-fieldset-second-child');
+
+test(() => {
+  const legend = document.getElementById('in-fieldset-descendant');
+  assert_equals(legend.offsetLeft, fieldsetBorderWidth, 'legend.offsetLeft');
+  assert_equals(legend.offsetTop, 50, 'legend.offsetTop');
+  assert_equals(legend.clientHeight, 0, 'legend.clientHeight');
+  const divChild = legend.firstChild;
+  assert_equals(divChild.offsetLeft, fieldsetBorderWidth + 50 + 50, 'divChild.offsetLeft');
+  assert_equals(divChild.offsetTop, 50, 'divChild.offsetTop');
+}, 'in-fieldset-descendant');
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-element-0/legend-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-element-0/legend-expected.txt
new file mode 100644
index 0000000..6d4b5f9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-element-0/legend-expected.txt
@@ -0,0 +1,60 @@
+This is a testharness.js-based test.
+Found 56 tests; 49 PASS, 7 FAIL, 0 TIMEOUT, 0 NOTRUN.
+PASS in-body: display 
+FAIL in-body: unicodeBidi assert_equals: expected "isolate" but got "normal"
+PASS in-body: marginTop 
+PASS in-body: marginRight 
+PASS in-body: marginBottom 
+PASS in-body: marginLeft 
+PASS in-body: paddingTop 
+PASS in-body: paddingRight 
+PASS in-body: paddingBottom 
+PASS in-body: paddingLeft 
+PASS in-body: overflow 
+PASS in-body: height 
+PASS in-body: box-sizing 
+FAIL in-body: width assert_not_equals: got disallowed value "0px"
+PASS rendered-legend: display 
+FAIL rendered-legend: unicodeBidi assert_equals: expected "isolate" but got "normal"
+PASS rendered-legend: marginTop 
+PASS rendered-legend: marginRight 
+PASS rendered-legend: marginBottom 
+PASS rendered-legend: marginLeft 
+PASS rendered-legend: paddingTop 
+PASS rendered-legend: paddingRight 
+PASS rendered-legend: paddingBottom 
+PASS rendered-legend: paddingLeft 
+PASS rendered-legend: overflow 
+PASS rendered-legend: height 
+PASS rendered-legend: box-sizing 
+PASS rendered-legend: width 
+PASS in-fieldset-second-child: display 
+FAIL in-fieldset-second-child: unicodeBidi assert_equals: expected "isolate" but got "normal"
+PASS in-fieldset-second-child: marginTop 
+PASS in-fieldset-second-child: marginRight 
+PASS in-fieldset-second-child: marginBottom 
+PASS in-fieldset-second-child: marginLeft 
+PASS in-fieldset-second-child: paddingTop 
+PASS in-fieldset-second-child: paddingRight 
+PASS in-fieldset-second-child: paddingBottom 
+PASS in-fieldset-second-child: paddingLeft 
+PASS in-fieldset-second-child: overflow 
+PASS in-fieldset-second-child: height 
+PASS in-fieldset-second-child: box-sizing 
+FAIL in-fieldset-second-child: width assert_not_equals: got disallowed value "0px"
+PASS in-fieldset-descendant: display 
+FAIL in-fieldset-descendant: unicodeBidi assert_equals: expected "isolate" but got "normal"
+PASS in-fieldset-descendant: marginTop 
+PASS in-fieldset-descendant: marginRight 
+PASS in-fieldset-descendant: marginBottom 
+PASS in-fieldset-descendant: marginLeft 
+PASS in-fieldset-descendant: paddingTop 
+PASS in-fieldset-descendant: paddingRight 
+PASS in-fieldset-descendant: paddingBottom 
+PASS in-fieldset-descendant: paddingLeft 
+PASS in-fieldset-descendant: overflow 
+PASS in-fieldset-descendant: height 
+PASS in-fieldset-descendant: box-sizing 
+FAIL in-fieldset-descendant: width assert_not_equals: got disallowed value "0px"
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-element-0/legend.html b/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-element-0/legend.html
new file mode 100644
index 0000000..1cda91f3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-fieldset-element-0/legend.html
@@ -0,0 +1,62 @@
+<!doctype html>
+<title>The legend element</title>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<style>
+#ref {
+  display: block;
+  unicode-bidi: isolate;
+  padding-left: 2px;
+  padding-right: 2px;
+  /* TODO: uncomment this when these properties are widely supported
+  padding-inline-start: 2px; padding-inline-end: 2px;
+  */
+}
+</style>
+
+<legend id=in-body></legend>
+<fieldset>
+ <legend id=rendered-legend></legend>
+ <legend id=in-fieldset-second-child></legend>
+ <div><legend id=in-fieldset-descendant></legend></div>
+</fieldset>
+<div id=ref></div>
+
+<script>
+setup(() => {
+  self.legends = [].slice.call(document.querySelectorAll('legend'));
+  self.refStyle = getComputedStyle(document.getElementById('ref'));
+  self.props = ['display',
+                'unicodeBidi',
+                'marginTop',
+                'marginRight',
+                'marginBottom',
+                'marginLeft',
+                'paddingTop',
+                'paddingRight',
+                'paddingBottom',
+                'paddingLeft',
+                'overflow',
+                // Extra tests
+                'height',
+                'box-sizing',
+               ];
+});
+legends.forEach(legend => {
+  const testStyle = getComputedStyle(legend);
+  props.forEach(prop => {
+    test(() => {
+      assert_equals(testStyle[prop], refStyle[prop]);
+    }, `${legend.id}: ${prop}`);
+  });
+
+  // Test width separately since it differs outside fieldset vs. in fieldset vs. rendered legend
+  test(() => {
+    if (legend.id === 'rendered-legend') {
+      assert_equals(testStyle.width, '0px');
+    } else {
+      assert_not_equals(testStyle.width, '0px');
+    }
+  }, `${legend.id}: width`);
+});
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-hr-element-0/hr-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-hr-element-0/hr-expected.txt
index 86ddb325..14e95c2 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-hr-element-0/hr-expected.txt
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-hr-element-0/hr-expected.txt
@@ -1,6 +1,6 @@
 This is a testharness.js-based test.
 PASS display 
-FAIL unicodeBidi assert_equals: expected "isolate" but got "normal"
+PASS unicodeBidi 
 FAIL color assert_equals: expected "rgb(128, 128, 128)" but got "rgb(0, 0, 0)"
 PASS borderTopStyle 
 PASS borderRightStyle 
@@ -14,7 +14,7 @@
 PASS marginRight 
 PASS marginBottom 
 PASS marginLeft 
-FAIL overflow assert_equals: expected "hidden" but got "visible"
+PASS overflow 
 PASS height 
 PASS box-sizing 
 Harness: the test ran to completion.
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-hr-element-0/setting-overflow-visible-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-hr-element-0/setting-overflow-visible-expected.txt
deleted file mode 100644
index 221ccd4..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/html/rendering/non-replaced-elements/the-hr-element-0/setting-overflow-visible-expected.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-This is a testharness.js-based test.
-PASS control 
-FAIL overflow: visible assert_equals: hr.offsetLeft expected 0 but got 50
-Harness: the test ran to completion.
-
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/valueMode.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/valueMode.html
index 2a5b946..9525d3ca 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/valueMode.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/valueMode.html
@@ -10,296 +10,296 @@
 test(function () {
   var input = document.createElement("input");
   input.type = "hidden";
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\r\r\n\n\0");
 }, "value IDL attribute of input type hidden without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "hidden";
   input.setAttribute("value", "bar");
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\r\r\n\n\0");
 }, "value IDL attribute of input type hidden with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "submit";
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\r\r\n\n\0");
 }, "value IDL attribute of input type submit without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "submit";
   input.setAttribute("value", "bar");
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\r\r\n\n\0");
 }, "value IDL attribute of input type submit with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "image";
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\r\r\n\n\0");
 }, "value IDL attribute of input type image without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "image";
   input.setAttribute("value", "bar");
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\r\r\n\n\0");
 }, "value IDL attribute of input type image with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "reset";
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\r\r\n\n\0");
 }, "value IDL attribute of input type reset without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "reset";
   input.setAttribute("value", "bar");
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\r\r\n\n\0");
 }, "value IDL attribute of input type reset with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "button";
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\r\r\n\n\0");
 }, "value IDL attribute of input type button without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "button";
   input.setAttribute("value", "bar");
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\r\r\n\n\0");
 }, "value IDL attribute of input type button with value attribute");
 
 // MODE DEFAULT/ON
 test(function () {
   var input = document.createElement("input");
   input.type = "checkbox";
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\r\r\n\n\0");
 }, "value IDL attribute of input type checkbox without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "checkbox";
   input.setAttribute("value", "bar");
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\r\r\n\n\0");
 }, "value IDL attribute of input type checkbox with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "radio";
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\r\r\n\n\0");
 }, "value IDL attribute of input type radio without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "radio";
   input.setAttribute("value", "bar");
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\r\r\n\n\0");
 }, "value IDL attribute of input type radio with value attribute");
 
 // MODE VALUE
 test(function () {
   var input = document.createElement("input");
   input.type = "text";
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\0");
 }, "value IDL attribute of input type text without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "text";
   input.setAttribute("value", "bar");
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\0");
 }, "value IDL attribute of input type text with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "search";
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\0");
 }, "value IDL attribute of input type search without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "search";
   input.setAttribute("value", "bar");
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\0");
 }, "value IDL attribute of input type search with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "tel";
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\0");
 }, "value IDL attribute of input type tel without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "tel";
   input.setAttribute("value", "bar");
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\0");
 }, "value IDL attribute of input type tel with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "url";
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\0");
 }, "value IDL attribute of input type url without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "url";
   input.setAttribute("value", "bar");
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\0");
 }, "value IDL attribute of input type url with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "email";
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\0");
 }, "value IDL attribute of input type email without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "email";
   input.setAttribute("value", "bar");
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\0");
 }, "value IDL attribute of input type email with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "password";
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\0");
 }, "value IDL attribute of input type password without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "password";
   input.setAttribute("value", "bar");
-  input.value = "foo";
-  assert_equals(input.value, "foo");
+  input.value = "foo\r\r\n\n\0";
+  assert_equals(input.value, "foo\0");
 }, "value IDL attribute of input type password with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "datetime-local";
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "");
 }, "value IDL attribute of input type datetime-local without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "datetime-local";
   input.setAttribute("value", "bar");
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "");
 }, "value IDL attribute of input type datetime-local with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "date";
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "");
 }, "value IDL attribute of input type date without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "date";
   input.setAttribute("value", "bar");
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "");
 }, "value IDL attribute of input type date with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "month";
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "");
 }, "value IDL attribute of input type month without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "month";
   input.setAttribute("value", "bar");
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "");
 }, "value IDL attribute of input type month with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "week";
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "");
 }, "value IDL attribute of input type week without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "week";
   input.setAttribute("value", "bar");
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "");
 }, "value IDL attribute of input type week with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "time";
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "");
 }, "value IDL attribute of input type time without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "time";
   input.setAttribute("value", "bar");
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "");
 }, "value IDL attribute of input type time with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "number";
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "");
 }, "value IDL attribute of input type number without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "number";
   input.setAttribute("value", "bar");
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "");
 }, "value IDL attribute of input type number with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "range";
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "50");
 }, "value IDL attribute of input type range without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "range";
   input.setAttribute("value", "bar");
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "50");
 }, "value IDL attribute of input type range with value attribute");
 
 test(function () {
   var input = document.createElement("input");
   input.type = "color";
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "#000000");
 }, "value IDL attribute of input type color without value attribute");
 test(function() {
   var input = document.createElement("input");
   input.type = "color";
   input.setAttribute("value", "bar");
-  input.value = "foo";
+  input.value = "foo\r\r\n\n\0";
   assert_equals(input.value, "#000000");
 }, "value IDL attribute of input type color with value attribute");
 </script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/contextmenu-historical-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/contextmenu-historical-expected.txt
new file mode 100644
index 0000000..be066aa
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/contextmenu-historical-expected.txt
@@ -0,0 +1,14 @@
+This is a testharness.js-based test.
+PASS HTMLMenuItemElement must not be not present 
+FAIL onshow must not be present on the GlobalEventHandlers locations assert_false: Window must not have a property "onshow" expected false got true
+PASS RelatedEvent must not be present 
+PASS el.contextMenu must not be present 
+PASS menu.type must not exist or reflect the content attribute 
+PASS menu.label must not exist or reflect the content attribute 
+PASS :enabled must not match menuitems 
+PASS :disabled must not match menuitems 
+PASS :checked must not match menuitems 
+PASS :default must not match menuitems 
+PASS The user-agent stylesheet must leave type="context" menus as block display like other menus 
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/contextmenu-historical.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/contextmenu-historical.html
new file mode 100644
index 0000000..f723d3a9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/contextmenu-historical.html
@@ -0,0 +1,99 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>menu element removed properties</title>
+<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-menu-element">
+<link rel="help" href="https://github.com/whatwg/html/pull/2742">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+
+<menu type="context" label="label">
+  <menuitem>Text</menuitem>
+  <menuitem type="checkbox" checked>Checked</menuitem>
+  <menuitem disabled>Disabled</menuitem>
+  <menuitem default>Default</menuitem>
+</menu>
+
+<script>
+"use strict";
+
+const menu = document.querySelector("menu");
+const menuitem = document.querySelector("menuitem");
+
+test(() => {
+  assert_false("HTMLMenuItemElement" in window, "the HTMLMenuItemElement interface must not exist");
+  assert_equals(menuitem.constructor, HTMLUnknownElement, "A <menuitem> must be HTMLUnknownElement");
+
+  for (const prop of ["type", "label", "icon", "disabled", "checked", "radiogroup", "default"]) {
+    assert_false(prop in menuitem, `menuitem.${prop} must not be present`);
+  }
+}, "HTMLMenuItemElement must not be not present");
+
+test(() => {
+  const potentialBadLocations = [
+    window,
+    document,
+    HTMLElement.prototype,
+    SVGElement.prototype,
+    Document.prototype,
+    HTMLDocument.prototype,
+    Element.prototype
+  ];
+  for (const location of potentialBadLocations) {
+    assert_false("onshow" in location,
+      `${location.constructor.name} must not have a property "onshow"`);
+  }
+}, `onshow must not be present on the GlobalEventHandlers locations`);
+
+test(() => {
+  assert_false("RelatedEvent" in window);
+}, "RelatedEvent must not be present");
+
+test(() => {
+  assert_false("contextMenu" in HTMLElement.prototype,
+    "HTMLElement's prototype must not have a property \"contextMenu\"");
+  assert_false("contextMenu" in document.createElement("div"),
+    "A div must not have a property \"contextMenu\"");
+}, "el.contextMenu must not be present");
+
+test(() => {
+  assert_false("type" in menu);
+
+  menu.type = "toolbar";
+  assert_equals(menu.getAttribute("type"), "context");
+}, "menu.type must not exist or reflect the content attribute");
+
+test(() => {
+  assert_false("label" in menu);
+
+  menu.label = "new label";
+  assert_equals(menu.getAttribute("label"), "label");
+}, "menu.label must not exist or reflect the content attribute");
+
+test(() => {
+  assert_array_equals(document.querySelectorAll("menuitem:enabled"), []);
+}, ":enabled must not match menuitems");
+
+test(() => {
+  assert_array_equals(document.querySelectorAll("menuitem:disabled"), []);
+}, ":disabled must not match menuitems");
+
+test(() => {
+  assert_array_equals(document.querySelectorAll("menuitem:checked"), []);
+}, ":checked must not match menuitems");
+
+test(() => {
+  try {
+    assert_array_equals(document.querySelectorAll("menuitem:default"), []);
+  } catch (e) {
+    // Not everyone has implemented :default as of the time of this writing.
+    if (e.name !== "SyntaxError") {
+      throw e;
+    }
+  }
+}, ":default must not match menuitems");
+
+test(() => {
+  assert_equals(getComputedStyle(menu).display, "block");
+}, "The user-agent stylesheet must leave type=\"context\" menus as block display like other menus");
+
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-command-element/.gitkeep b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-command-element/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-command-element/.gitkeep
+++ /dev/null
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/contains.json b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/contains.json
deleted file mode 100644
index 20f2439..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/contains.json
+++ /dev/null
@@ -1,18 +0,0 @@
-[
-    {
-        "id": "menus-intro",
-        "original_id": "menus-intro"
-    },
-    {
-        "id": "building-menus-and-toolbars",
-        "original_id": "building-menus-and-toolbars"
-    },
-    {
-        "id": "context-menus",
-        "original_id": "context-menus"
-    },
-    {
-        "id": "toolbars",
-        "original_id": "toolbars"
-    }
-]
\ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label-expected.txt
deleted file mode 100644
index 5b43566..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label-expected.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-This is a testharness.js-based test.
-FAIL Menuitem.label should be the label attribute content or the result of stripping and collapsing ASCII whitespace from the child text content. assert_equals: expected (string) "item1" but got (undefined) undefined
-Harness: the test ran to completion.
-
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label.html
deleted file mode 100644
index 3f0f9ab..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<script src='/resources/testharness.js'></script>
-<script src='/resources/testharnessreport.js'></script>
-<menuitem id='item1' label='item1'></menuitem>
-<menuitem id='item2'>item2</menuitem>
-<menuitem id='item3'>   item     3   </menuitem>
-<menuitem id='item4' label=''>item4</menuitem>
-<menuitem id='item5' label='  item  5  '></menuitem>
-
-<script>
-test(() => {
-  assert_equals(document.querySelector('#item1').label, 'item1');
-  assert_equals(document.querySelector('#item2').label, 'item2');
-  assert_equals(document.querySelector('#item3').label, 'item 3');
-  assert_equals(document.querySelector('#item4').label, '');
-  assert_equals(document.querySelector('#item5').label, '  item  5  ');
-}, 'Menuitem.label should be the label attribute content or the result of '
- + 'stripping and collapsing ASCII whitespace from the child text content.');
-</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interfaces-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interfaces-expected.txt
index f55c54fa..c9006ec 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interfaces-expected.txt
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interfaces-expected.txt
@@ -1,5 +1,5 @@
 This is a testharness.js-based test.
-Found 295 tests; 284 PASS, 11 FAIL, 0 TIMEOUT, 0 NOTRUN.
+Found 293 tests; 284 PASS, 9 FAIL, 0 TIMEOUT, 0 NOTRUN.
 PASS Interfaces for a 
 PASS Interfaces for A 
 PASS Interfaces for abbr 
@@ -167,8 +167,6 @@
 PASS Interfaces for MARQUEE 
 PASS Interfaces for menu 
 PASS Interfaces for MENU 
-FAIL Interfaces for menuitem assert_equals: Element menuitem should have HTMLMenuItemElement as its primary interface. expected "[object HTMLMenuItemElement]" but got "[object HTMLUnknownElement]"
-FAIL Interfaces for MENUITEM assert_equals: Element MENUITEM should have HTMLMenuItemElement as its primary interface. expected "[object HTMLMenuItemElement]" but got "[object HTMLUnknownElement]"
 PASS Interfaces for meta 
 PASS Interfaces for META 
 PASS Interfaces for meter 
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interfaces.js b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interfaces.js
index b34a845d..5ccc891 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interfaces.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interfaces.js
@@ -83,7 +83,6 @@
   ["mark", ""],
   ["marquee", "Marquee"],
   ["menu", "Menu"],
-  ["menuitem", "MenuItem"],
   ["meta", "Meta"],
   ["meter", "Meter"],
   ["mod", "Unknown"],
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/specifier-error.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/specifier-error.html
index 2cc393e..d07005ca 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/specifier-error.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/specifier-error.html
@@ -4,6 +4,8 @@
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <script>
+    setup({allow_uncaught_exception: true});
+
     window.log = [];
 
     window.addEventListener("error", ev => log.push(ev.error));
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/checked-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/checked-expected.txt
deleted file mode 100644
index 22d4b59..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/checked-expected.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-This is a testharness.js-based test.
-FAIL ':checked' matches checked <input>/<menuitem> in checkbox and radio button states, selected <option>s assert_array_equals: lengths differ, expected 5 got 3
-FAIL ':checked' should no longer match <input>s whose type checkbox/radio has been removed assert_array_equals: lengths differ, expected 3 got 1
-FAIL ':checked' matches clicked checkbox and radio buttons assert_array_equals: lengths differ, expected 5 got 3
-Harness: the test ran to completion.
-
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/checked.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/checked.html
index bf59812..754c234 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/checked.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/checked.html
@@ -20,7 +20,8 @@
 <input type=radio id=radio2>
 <form>
   <p><input type=submit contextmenu=formmenu id="submitbutton"></p>
-  <menu type=popup id=formmenu>
+  <menu type=context id=formmenu>
+    <!-- historical; these should *not* match -->
     <menuitem type=checkbox checked default id=menuitem1>
     <menuitem type=checkbox default id=menuitem2>
     <menuitem type=checkbox id=menuitem3>
@@ -30,14 +31,14 @@
 </form>
 
 <script>
-  testSelectorIdsMatch(":checked", ["option1", "checkbox1", "radio1", "menuitem1", "menuitem4"], "':checked' matches checked <input>/<menuitem> in checkbox and radio button states, selected <option>s");
+  testSelectorIdsMatch(":checked", ["option1", "checkbox1", "radio1"], "':checked' matches checked <input>s in checkbox and radio button states, selected <option>s");
 
   document.getElementById("checkbox1").removeAttribute("type");  // change type of input
   document.getElementById("radio1").removeAttribute("type");  // change type of input
-  testSelectorIdsMatch(":checked", ["option1", "menuitem1", "menuitem4"], "':checked' should no longer match <input>s whose type checkbox/radio has been removed");
+  testSelectorIdsMatch(":checked", ["option1"], "':checked' should no longer match <input>s whose type checkbox/radio has been removed");
 
   document.getElementById("option2").selected = "selected";  // select option2
   document.getElementById("checkbox2").click();  // check chekbox2
   document.getElementById("radio2").click();  // check radio2
-  testSelectorIdsMatch(":checked", ["option2", "checkbox2", "radio2", "menuitem1", "menuitem4"], "':checked' matches clicked checkbox and radio buttons");
+  testSelectorIdsMatch(":checked", ["option2", "checkbox2", "radio2"], "':checked' matches clicked checkbox and radio buttons");
 </script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/enabled-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/enabled-expected.txt
index 4b71740..c92dbef 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/enabled-expected.txt
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/enabled-expected.txt
@@ -1,4 +1,4 @@
 This is a testharness.js-based test.
-FAIL ':enabled' elements that are not disabled assert_array_equals: lengths differ, expected 9 got 10
+FAIL ':enabled' elements that are not disabled assert_array_equals: lengths differ, expected 8 got 10
 Harness: the test ran to completion.
 
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/enabled.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/enabled.html
index 98d8129..0ad0e1b 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/enabled.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/selectors/pseudo-classes/enabled.html
@@ -29,7 +29,8 @@
 <textarea disabled id=textarea2>textarea2</textarea>
 <form>
  <p><input type=submit contextmenu=formmenu id=submitbutton></p>
- <menu type=popup id=formmenu>
+ <menu type=context id=formmenu>
+  <!-- historical; these should *not* match -->
   <menuitem command="submitbutton" default id=menuitem1>
   <menuitem command="resetbutton" disabled id=menuitem2>
  </menu>
@@ -38,5 +39,5 @@
 <fieldset disabled id=fieldset2></fieldset>
 
 <script>
-  testSelectorIdsMatch(":enabled", ["button1", "input1", "select1", "optgroup1", "option1", "textarea1", "submitbutton", "menuitem1", "fieldset1"], "':enabled' elements that are not disabled");
+  testSelectorIdsMatch(":enabled", ["button1", "input1", "select1", "optgroup1", "option1", "textarea1", "submitbutton", "fieldset1"], "':enabled' elements that are not disabled");
 </script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/tabular-data/processing-model-1/col-span-limits-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/tabular-data/processing-model-1/col-span-limits-expected.txt
new file mode 100644
index 0000000..c26568a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/tabular-data/processing-model-1/col-span-limits-expected.txt
@@ -0,0 +1,5 @@
+This is a testharness.js-based test.
+PASS col span of 1000 must work 
+FAIL col span of 1001 must be treated as 1000 assert_equals: table3 width expected 51 but got 53
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/tabular-data/processing-model-1/col-span-limits.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/tabular-data/processing-model-1/col-span-limits.html
new file mode 100644
index 0000000..a4a425b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/tabular-data/processing-model-1/col-span-limits.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<title>Limits on col/colgroup.span</title>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<style>
+  div.square {
+    height:20px;
+    width:20px;
+    border:1px solid lime;
+  }
+  main table {
+    border-collapse:collapse;
+    border:1px solid blue;
+  }
+  main table col {
+    border-left:2px solid black;
+  }
+</style>
+<div id=log></div>
+<main>
+<table id=table1>
+  <col span=1000>
+  <tr>
+    <td colspan=999><div class="square"></div></td>
+    <td><div class="square"></div></td>
+  </tr>
+  <tr>
+    <td colspan=1000><div class="square"></div></td>
+  </tr>
+</table>
+<br>
+These two must look the same, each having 2 cells in one row:
+<table id=table2>
+  <col span=1000>
+  <tr>
+    <td colspan=1000><div class="square"></div></td>
+    <td><div class="square"></div></td>
+  </tr>
+</table>
+<br>
+<table id=table3>
+  <col span=1001>
+  <tr>
+    <td colspan=1000><div class="square"></div></td>
+    <td><div class="square"></div></td>
+  </tr>
+</table>
+</main>
+
+<script>
+test(() => {
+    assert_equals(table1.offsetWidth, 53);
+}, "col span of 1000 must work");
+
+test(() => {
+    assert_equals(table2.offsetWidth, 51, "table2 width");
+    assert_equals(table3.offsetWidth, 51, "table3 width");
+}, "col span of 1001 must be treated as 1000");
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/context-menus/contextmenu-event-manual.htm b/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/events/contextmenu-event-manual.htm
similarity index 100%
rename from third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/context-menus/contextmenu-event-manual.htm
rename to third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/events/contextmenu-event-manual.htm
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt
new file mode 100644
index 0000000..f2866e5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/events/event-handler-all-global-events-expected.txt
@@ -0,0 +1,304 @@
+This is a testharness.js-based test.
+Found 300 tests; 291 PASS, 9 FAIL, 0 TIMEOUT, 0 NOTRUN.
+PASS onabort: must be on the appropriate locations for GlobalEventHandlers 
+PASS onabort: the default value must be null 
+PASS onabort: the content attribute must be compiled into a function as the corresponding property 
+PASS onabort: the content attribute must execute when an event is dispatched 
+PASS onabort: dispatching an Event at a <meta> element must trigger element.onabort 
+PASS onauxclick: must be on the appropriate locations for GlobalEventHandlers 
+PASS onauxclick: the default value must be null 
+PASS onauxclick: the content attribute must be compiled into a function as the corresponding property 
+PASS onauxclick: the content attribute must execute when an event is dispatched 
+PASS onauxclick: dispatching an Event at a <meta> element must trigger element.onauxclick 
+PASS onblur: must be on the appropriate locations for GlobalEventHandlers 
+PASS onblur: the default value must be null 
+PASS onblur: the content attribute must be compiled into a function as the corresponding property 
+PASS onblur: the content attribute must execute when an event is dispatched 
+PASS onblur: dispatching an Event at a <meta> element must trigger element.onblur 
+PASS oncancel: must be on the appropriate locations for GlobalEventHandlers 
+PASS oncancel: the default value must be null 
+PASS oncancel: the content attribute must be compiled into a function as the corresponding property 
+PASS oncancel: the content attribute must execute when an event is dispatched 
+PASS oncancel: dispatching an Event at a <meta> element must trigger element.oncancel 
+PASS oncanplay: must be on the appropriate locations for GlobalEventHandlers 
+PASS oncanplay: the default value must be null 
+PASS oncanplay: the content attribute must be compiled into a function as the corresponding property 
+PASS oncanplay: the content attribute must execute when an event is dispatched 
+PASS oncanplay: dispatching an Event at a <meta> element must trigger element.oncanplay 
+PASS oncanplaythrough: must be on the appropriate locations for GlobalEventHandlers 
+PASS oncanplaythrough: the default value must be null 
+PASS oncanplaythrough: the content attribute must be compiled into a function as the corresponding property 
+PASS oncanplaythrough: the content attribute must execute when an event is dispatched 
+PASS oncanplaythrough: dispatching an Event at a <meta> element must trigger element.oncanplaythrough 
+PASS onchange: must be on the appropriate locations for GlobalEventHandlers 
+PASS onchange: the default value must be null 
+PASS onchange: the content attribute must be compiled into a function as the corresponding property 
+PASS onchange: the content attribute must execute when an event is dispatched 
+PASS onchange: dispatching an Event at a <meta> element must trigger element.onchange 
+PASS onclick: must be on the appropriate locations for GlobalEventHandlers 
+PASS onclick: the default value must be null 
+PASS onclick: the content attribute must be compiled into a function as the corresponding property 
+PASS onclick: the content attribute must execute when an event is dispatched 
+PASS onclick: dispatching an Event at a <meta> element must trigger element.onclick 
+PASS onclose: must be on the appropriate locations for GlobalEventHandlers 
+PASS onclose: the default value must be null 
+PASS onclose: the content attribute must be compiled into a function as the corresponding property 
+PASS onclose: the content attribute must execute when an event is dispatched 
+PASS onclose: dispatching an Event at a <meta> element must trigger element.onclose 
+PASS oncontextmenu: must be on the appropriate locations for GlobalEventHandlers 
+PASS oncontextmenu: the default value must be null 
+PASS oncontextmenu: the content attribute must be compiled into a function as the corresponding property 
+PASS oncontextmenu: the content attribute must execute when an event is dispatched 
+PASS oncontextmenu: dispatching an Event at a <meta> element must trigger element.oncontextmenu 
+PASS oncuechange: must be on the appropriate locations for GlobalEventHandlers 
+PASS oncuechange: the default value must be null 
+PASS oncuechange: the content attribute must be compiled into a function as the corresponding property 
+PASS oncuechange: the content attribute must execute when an event is dispatched 
+PASS oncuechange: dispatching an Event at a <meta> element must trigger element.oncuechange 
+PASS ondblclick: must be on the appropriate locations for GlobalEventHandlers 
+PASS ondblclick: the default value must be null 
+PASS ondblclick: the content attribute must be compiled into a function as the corresponding property 
+PASS ondblclick: the content attribute must execute when an event is dispatched 
+PASS ondblclick: dispatching an Event at a <meta> element must trigger element.ondblclick 
+PASS ondrag: must be on the appropriate locations for GlobalEventHandlers 
+PASS ondrag: the default value must be null 
+PASS ondrag: the content attribute must be compiled into a function as the corresponding property 
+PASS ondrag: the content attribute must execute when an event is dispatched 
+PASS ondrag: dispatching an Event at a <meta> element must trigger element.ondrag 
+PASS ondragend: must be on the appropriate locations for GlobalEventHandlers 
+PASS ondragend: the default value must be null 
+PASS ondragend: the content attribute must be compiled into a function as the corresponding property 
+PASS ondragend: the content attribute must execute when an event is dispatched 
+PASS ondragend: dispatching an Event at a <meta> element must trigger element.ondragend 
+PASS ondragenter: must be on the appropriate locations for GlobalEventHandlers 
+PASS ondragenter: the default value must be null 
+PASS ondragenter: the content attribute must be compiled into a function as the corresponding property 
+PASS ondragenter: the content attribute must execute when an event is dispatched 
+PASS ondragenter: dispatching an Event at a <meta> element must trigger element.ondragenter 
+FAIL ondragexit: must be on the appropriate locations for GlobalEventHandlers assert_true: Window has an own property named "ondragexit" expected true got false
+FAIL ondragexit: the default value must be null assert_equals: The default value of the property is null for a Window instance expected (object) null but got (undefined) undefined
+FAIL ondragexit: the content attribute must be compiled into a function as the corresponding property assert_equals: The ondragexit property must be a function expected "function" but got "undefined"
+FAIL ondragexit: the content attribute must execute when an event is dispatched assert_true: Dispatching an event must run the code expected true got undefined
+PASS ondragexit: dispatching an Event at a <meta> element must trigger element.ondragexit 
+PASS ondragleave: must be on the appropriate locations for GlobalEventHandlers 
+PASS ondragleave: the default value must be null 
+PASS ondragleave: the content attribute must be compiled into a function as the corresponding property 
+PASS ondragleave: the content attribute must execute when an event is dispatched 
+PASS ondragleave: dispatching an Event at a <meta> element must trigger element.ondragleave 
+PASS ondragover: must be on the appropriate locations for GlobalEventHandlers 
+PASS ondragover: the default value must be null 
+PASS ondragover: the content attribute must be compiled into a function as the corresponding property 
+PASS ondragover: the content attribute must execute when an event is dispatched 
+PASS ondragover: dispatching an Event at a <meta> element must trigger element.ondragover 
+PASS ondragstart: must be on the appropriate locations for GlobalEventHandlers 
+PASS ondragstart: the default value must be null 
+PASS ondragstart: the content attribute must be compiled into a function as the corresponding property 
+PASS ondragstart: the content attribute must execute when an event is dispatched 
+PASS ondragstart: dispatching an Event at a <meta> element must trigger element.ondragstart 
+PASS ondrop: must be on the appropriate locations for GlobalEventHandlers 
+PASS ondrop: the default value must be null 
+PASS ondrop: the content attribute must be compiled into a function as the corresponding property 
+PASS ondrop: the content attribute must execute when an event is dispatched 
+PASS ondrop: dispatching an Event at a <meta> element must trigger element.ondrop 
+PASS ondurationchange: must be on the appropriate locations for GlobalEventHandlers 
+PASS ondurationchange: the default value must be null 
+PASS ondurationchange: the content attribute must be compiled into a function as the corresponding property 
+PASS ondurationchange: the content attribute must execute when an event is dispatched 
+PASS ondurationchange: dispatching an Event at a <meta> element must trigger element.ondurationchange 
+PASS onemptied: must be on the appropriate locations for GlobalEventHandlers 
+PASS onemptied: the default value must be null 
+PASS onemptied: the content attribute must be compiled into a function as the corresponding property 
+PASS onemptied: the content attribute must execute when an event is dispatched 
+PASS onemptied: dispatching an Event at a <meta> element must trigger element.onemptied 
+PASS onended: must be on the appropriate locations for GlobalEventHandlers 
+PASS onended: the default value must be null 
+PASS onended: the content attribute must be compiled into a function as the corresponding property 
+PASS onended: the content attribute must execute when an event is dispatched 
+PASS onended: dispatching an Event at a <meta> element must trigger element.onended 
+PASS onfocus: must be on the appropriate locations for GlobalEventHandlers 
+PASS onfocus: the default value must be null 
+PASS onfocus: the content attribute must be compiled into a function as the corresponding property 
+PASS onfocus: the content attribute must execute when an event is dispatched 
+PASS onfocus: dispatching an Event at a <meta> element must trigger element.onfocus 
+PASS oninput: must be on the appropriate locations for GlobalEventHandlers 
+PASS oninput: the default value must be null 
+PASS oninput: the content attribute must be compiled into a function as the corresponding property 
+PASS oninput: the content attribute must execute when an event is dispatched 
+PASS oninput: dispatching an Event at a <meta> element must trigger element.oninput 
+PASS oninvalid: must be on the appropriate locations for GlobalEventHandlers 
+PASS oninvalid: the default value must be null 
+PASS oninvalid: the content attribute must be compiled into a function as the corresponding property 
+PASS oninvalid: the content attribute must execute when an event is dispatched 
+PASS oninvalid: dispatching an Event at a <meta> element must trigger element.oninvalid 
+PASS onkeydown: must be on the appropriate locations for GlobalEventHandlers 
+PASS onkeydown: the default value must be null 
+PASS onkeydown: the content attribute must be compiled into a function as the corresponding property 
+PASS onkeydown: the content attribute must execute when an event is dispatched 
+PASS onkeydown: dispatching an Event at a <meta> element must trigger element.onkeydown 
+PASS onkeypress: must be on the appropriate locations for GlobalEventHandlers 
+PASS onkeypress: the default value must be null 
+PASS onkeypress: the content attribute must be compiled into a function as the corresponding property 
+PASS onkeypress: the content attribute must execute when an event is dispatched 
+PASS onkeypress: dispatching an Event at a <meta> element must trigger element.onkeypress 
+PASS onkeyup: must be on the appropriate locations for GlobalEventHandlers 
+PASS onkeyup: the default value must be null 
+PASS onkeyup: the content attribute must be compiled into a function as the corresponding property 
+PASS onkeyup: the content attribute must execute when an event is dispatched 
+PASS onkeyup: dispatching an Event at a <meta> element must trigger element.onkeyup 
+PASS onload: must be on the appropriate locations for GlobalEventHandlers 
+PASS onload: the default value must be null 
+PASS onload: the content attribute must be compiled into a function as the corresponding property 
+PASS onload: the content attribute must execute when an event is dispatched 
+PASS onload: dispatching an Event at a <meta> element must trigger element.onload 
+PASS onloadeddata: must be on the appropriate locations for GlobalEventHandlers 
+PASS onloadeddata: the default value must be null 
+PASS onloadeddata: the content attribute must be compiled into a function as the corresponding property 
+PASS onloadeddata: the content attribute must execute when an event is dispatched 
+PASS onloadeddata: dispatching an Event at a <meta> element must trigger element.onloadeddata 
+PASS onloadedmetadata: must be on the appropriate locations for GlobalEventHandlers 
+PASS onloadedmetadata: the default value must be null 
+PASS onloadedmetadata: the content attribute must be compiled into a function as the corresponding property 
+PASS onloadedmetadata: the content attribute must execute when an event is dispatched 
+PASS onloadedmetadata: dispatching an Event at a <meta> element must trigger element.onloadedmetadata 
+FAIL onloadend: must be on the appropriate locations for GlobalEventHandlers assert_true: Window has an own property named "onloadend" expected true got false
+FAIL onloadend: the default value must be null assert_equals: The default value of the property is null for a Window instance expected (object) null but got (undefined) undefined
+FAIL onloadend: the content attribute must be compiled into a function as the corresponding property assert_equals: The onloadend property must be a function expected "function" but got "undefined"
+FAIL onloadend: the content attribute must execute when an event is dispatched assert_true: Dispatching an event must run the code expected true got undefined
+PASS onloadend: dispatching an Event at a <meta> element must trigger element.onloadend 
+PASS onloadstart: must be on the appropriate locations for GlobalEventHandlers 
+PASS onloadstart: the default value must be null 
+PASS onloadstart: the content attribute must be compiled into a function as the corresponding property 
+PASS onloadstart: the content attribute must execute when an event is dispatched 
+PASS onloadstart: dispatching an Event at a <meta> element must trigger element.onloadstart 
+PASS onmousedown: must be on the appropriate locations for GlobalEventHandlers 
+PASS onmousedown: the default value must be null 
+PASS onmousedown: the content attribute must be compiled into a function as the corresponding property 
+PASS onmousedown: the content attribute must execute when an event is dispatched 
+PASS onmousedown: dispatching an Event at a <meta> element must trigger element.onmousedown 
+PASS onmouseenter: must be on the appropriate locations for GlobalEventHandlers 
+PASS onmouseenter: the default value must be null 
+PASS onmouseenter: the content attribute must be compiled into a function as the corresponding property 
+PASS onmouseenter: the content attribute must execute when an event is dispatched 
+PASS onmouseenter: dispatching an Event at a <meta> element must trigger element.onmouseenter 
+PASS onmouseleave: must be on the appropriate locations for GlobalEventHandlers 
+PASS onmouseleave: the default value must be null 
+PASS onmouseleave: the content attribute must be compiled into a function as the corresponding property 
+PASS onmouseleave: the content attribute must execute when an event is dispatched 
+PASS onmouseleave: dispatching an Event at a <meta> element must trigger element.onmouseleave 
+PASS onmousemove: must be on the appropriate locations for GlobalEventHandlers 
+PASS onmousemove: the default value must be null 
+PASS onmousemove: the content attribute must be compiled into a function as the corresponding property 
+PASS onmousemove: the content attribute must execute when an event is dispatched 
+PASS onmousemove: dispatching an Event at a <meta> element must trigger element.onmousemove 
+PASS onmouseout: must be on the appropriate locations for GlobalEventHandlers 
+PASS onmouseout: the default value must be null 
+PASS onmouseout: the content attribute must be compiled into a function as the corresponding property 
+PASS onmouseout: the content attribute must execute when an event is dispatched 
+PASS onmouseout: dispatching an Event at a <meta> element must trigger element.onmouseout 
+PASS onmouseover: must be on the appropriate locations for GlobalEventHandlers 
+PASS onmouseover: the default value must be null 
+PASS onmouseover: the content attribute must be compiled into a function as the corresponding property 
+PASS onmouseover: the content attribute must execute when an event is dispatched 
+PASS onmouseover: dispatching an Event at a <meta> element must trigger element.onmouseover 
+PASS onmouseup: must be on the appropriate locations for GlobalEventHandlers 
+PASS onmouseup: the default value must be null 
+PASS onmouseup: the content attribute must be compiled into a function as the corresponding property 
+PASS onmouseup: the content attribute must execute when an event is dispatched 
+PASS onmouseup: dispatching an Event at a <meta> element must trigger element.onmouseup 
+FAIL onwheel: must be on the appropriate locations for GlobalEventHandlers assert_true: HTMLElement has an own property named "onwheel" expected true got false
+PASS onwheel: the default value must be null 
+PASS onwheel: the content attribute must be compiled into a function as the corresponding property 
+PASS onwheel: the content attribute must execute when an event is dispatched 
+PASS onwheel: dispatching an Event at a <meta> element must trigger element.onwheel 
+PASS onpause: must be on the appropriate locations for GlobalEventHandlers 
+PASS onpause: the default value must be null 
+PASS onpause: the content attribute must be compiled into a function as the corresponding property 
+PASS onpause: the content attribute must execute when an event is dispatched 
+PASS onpause: dispatching an Event at a <meta> element must trigger element.onpause 
+PASS onplay: must be on the appropriate locations for GlobalEventHandlers 
+PASS onplay: the default value must be null 
+PASS onplay: the content attribute must be compiled into a function as the corresponding property 
+PASS onplay: the content attribute must execute when an event is dispatched 
+PASS onplay: dispatching an Event at a <meta> element must trigger element.onplay 
+PASS onplaying: must be on the appropriate locations for GlobalEventHandlers 
+PASS onplaying: the default value must be null 
+PASS onplaying: the content attribute must be compiled into a function as the corresponding property 
+PASS onplaying: the content attribute must execute when an event is dispatched 
+PASS onplaying: dispatching an Event at a <meta> element must trigger element.onplaying 
+PASS onprogress: must be on the appropriate locations for GlobalEventHandlers 
+PASS onprogress: the default value must be null 
+PASS onprogress: the content attribute must be compiled into a function as the corresponding property 
+PASS onprogress: the content attribute must execute when an event is dispatched 
+PASS onprogress: dispatching an Event at a <meta> element must trigger element.onprogress 
+PASS onratechange: must be on the appropriate locations for GlobalEventHandlers 
+PASS onratechange: the default value must be null 
+PASS onratechange: the content attribute must be compiled into a function as the corresponding property 
+PASS onratechange: the content attribute must execute when an event is dispatched 
+PASS onratechange: dispatching an Event at a <meta> element must trigger element.onratechange 
+PASS onreset: must be on the appropriate locations for GlobalEventHandlers 
+PASS onreset: the default value must be null 
+PASS onreset: the content attribute must be compiled into a function as the corresponding property 
+PASS onreset: the content attribute must execute when an event is dispatched 
+PASS onreset: dispatching an Event at a <meta> element must trigger element.onreset 
+PASS onresize: must be on the appropriate locations for GlobalEventHandlers 
+PASS onresize: the default value must be null 
+PASS onresize: the content attribute must be compiled into a function as the corresponding property 
+PASS onresize: the content attribute must execute when an event is dispatched 
+PASS onresize: dispatching an Event at a <meta> element must trigger element.onresize 
+PASS onscroll: must be on the appropriate locations for GlobalEventHandlers 
+PASS onscroll: the default value must be null 
+PASS onscroll: the content attribute must be compiled into a function as the corresponding property 
+PASS onscroll: the content attribute must execute when an event is dispatched 
+PASS onscroll: dispatching an Event at a <meta> element must trigger element.onscroll 
+PASS onseeked: must be on the appropriate locations for GlobalEventHandlers 
+PASS onseeked: the default value must be null 
+PASS onseeked: the content attribute must be compiled into a function as the corresponding property 
+PASS onseeked: the content attribute must execute when an event is dispatched 
+PASS onseeked: dispatching an Event at a <meta> element must trigger element.onseeked 
+PASS onseeking: must be on the appropriate locations for GlobalEventHandlers 
+PASS onseeking: the default value must be null 
+PASS onseeking: the content attribute must be compiled into a function as the corresponding property 
+PASS onseeking: the content attribute must execute when an event is dispatched 
+PASS onseeking: dispatching an Event at a <meta> element must trigger element.onseeking 
+PASS onselect: must be on the appropriate locations for GlobalEventHandlers 
+PASS onselect: the default value must be null 
+PASS onselect: the content attribute must be compiled into a function as the corresponding property 
+PASS onselect: the content attribute must execute when an event is dispatched 
+PASS onselect: dispatching an Event at a <meta> element must trigger element.onselect 
+PASS onstalled: must be on the appropriate locations for GlobalEventHandlers 
+PASS onstalled: the default value must be null 
+PASS onstalled: the content attribute must be compiled into a function as the corresponding property 
+PASS onstalled: the content attribute must execute when an event is dispatched 
+PASS onstalled: dispatching an Event at a <meta> element must trigger element.onstalled 
+PASS onsubmit: must be on the appropriate locations for GlobalEventHandlers 
+PASS onsubmit: the default value must be null 
+PASS onsubmit: the content attribute must be compiled into a function as the corresponding property 
+PASS onsubmit: the content attribute must execute when an event is dispatched 
+PASS onsubmit: dispatching an Event at a <meta> element must trigger element.onsubmit 
+PASS onsuspend: must be on the appropriate locations for GlobalEventHandlers 
+PASS onsuspend: the default value must be null 
+PASS onsuspend: the content attribute must be compiled into a function as the corresponding property 
+PASS onsuspend: the content attribute must execute when an event is dispatched 
+PASS onsuspend: dispatching an Event at a <meta> element must trigger element.onsuspend 
+PASS ontimeupdate: must be on the appropriate locations for GlobalEventHandlers 
+PASS ontimeupdate: the default value must be null 
+PASS ontimeupdate: the content attribute must be compiled into a function as the corresponding property 
+PASS ontimeupdate: the content attribute must execute when an event is dispatched 
+PASS ontimeupdate: dispatching an Event at a <meta> element must trigger element.ontimeupdate 
+PASS ontoggle: must be on the appropriate locations for GlobalEventHandlers 
+PASS ontoggle: the default value must be null 
+PASS ontoggle: the content attribute must be compiled into a function as the corresponding property 
+PASS ontoggle: the content attribute must execute when an event is dispatched 
+PASS ontoggle: dispatching an Event at a <meta> element must trigger element.ontoggle 
+PASS onvolumechange: must be on the appropriate locations for GlobalEventHandlers 
+PASS onvolumechange: the default value must be null 
+PASS onvolumechange: the content attribute must be compiled into a function as the corresponding property 
+PASS onvolumechange: the content attribute must execute when an event is dispatched 
+PASS onvolumechange: dispatching an Event at a <meta> element must trigger element.onvolumechange 
+PASS onwaiting: must be on the appropriate locations for GlobalEventHandlers 
+PASS onwaiting: the default value must be null 
+PASS onwaiting: the content attribute must be compiled into a function as the corresponding property 
+PASS onwaiting: the content attribute must execute when an event is dispatched 
+PASS onwaiting: dispatching an Event at a <meta> element must trigger element.onwaiting 
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/events/event-handler-all-global-events.html b/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/events/event-handler-all-global-events.html
new file mode 100644
index 0000000..caeac8e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/events/event-handler-all-global-events.html
@@ -0,0 +1,74 @@
+<!DOCTYPE html>
+<title>GlobalEventHandlers</title>
+<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
+<link rel="help" href="https://html.spec.whatwg.org/multipage/#globaleventhandlers">
+<link rel="help" href="https://html.spec.whatwg.org/multipage/#event-handler-idl-attributes">
+<link rel="help" href="https://html.spec.whatwg.org/multipage/#event-handler-content-attributes">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/WebIDLParser.js"></script>
+
+<script>
+"use strict";
+setup({ explicit_done: true });
+
+fetch("/interfaces/html.idl").then(res => res.text()).then(htmlIDL => {
+  const parsedHTMLIDL = WebIDL2.parse(htmlIDL);
+  const globalEventHandlers = parsedHTMLIDL.find(idl => idl.name === "GlobalEventHandlers");
+
+  // onerror is too special
+  const names = globalEventHandlers.members.map(member => member.name).filter(name => name !== "onerror");
+
+  for (const name of names) {
+    const withoutOn = name.substring(2);
+
+    test(() => {
+      for (const location of [window, HTMLElement.prototype, SVGElement.prototype, Document.prototype]) {
+        assert_true(location.hasOwnProperty(name),
+          `${location.constructor.name} has an own property named "${name}"`);
+      }
+      assert_false(name in Element.prototype, `Element.prototype must not contain a "${name}" property`);
+    }, `${name}: must be on the appropriate locations for GlobalEventHandlers`);
+
+    test(() => {
+      const htmlElement = document.createElement("span");
+      const svgElement = document.createElementNS("http://www.w3.org/2000/svg", "g");
+
+      for (var location of [window, htmlElement, svgElement, document]) {
+        assert_equals(location[name], null,
+          `The default value of the property is null for a ${location.constructor.name} instance`);
+      }
+    }, `${name}: the default value must be null`);
+
+    test(() => {
+      const el = document.createElement("div");
+      el.setAttribute(name, `window.${name}Happened = true;`);
+      const compiledHandler = el[name];
+
+      assert_equals(typeof compiledHandler, "function", `The ${name} property must be a function`);
+      compiledHandler();
+      assert_true(window[name + "Happened"], "Calling the handler must run the code");
+    }, `${name}: the content attribute must be compiled into a function as the corresponding property`);
+
+    test(() => {
+      const el = document.createElement("div");
+      el.setAttribute(name, `window.${name}Happened2 = true;`);
+
+      el.dispatchEvent(new Event(withoutOn));
+
+      assert_true(window[name + "Happened2"], "Dispatching an event must run the code");
+    }, `${name}: the content attribute must execute when an event is dispatched`);
+
+    test(() => {
+      const element = document.createElement("meta");
+      element[name] = e => {
+        assert_equals(e.currentTarget, element, "The event must be fired at the <meta> element");
+      };
+
+      element.dispatchEvent(new Event(withoutOn));
+    }, `${name}: dispatching an Event at a <meta> element must trigger element.${name}`);
+  }
+
+  done();
+});
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/events/event-handler-onauxclick.html b/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/events/event-handler-onauxclick.html
deleted file mode 100644
index a1c9e9c..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/events/event-handler-onauxclick.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<!DOCTYPE html>
-<title>onauxclick</title>
-<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
-<link rel="help" href="https://html.spec.whatwg.org/multipage/#handler-onauxclick">
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-
-<div id="auxclickme1" onauxclick="window.auxClick1Happened = true;"></div>
-<div id="auxclickme2" onauxclick="window.auxClick2Happened = true;"></div>
-
-<script>
-"use strict";
-window.auxClick1Happened = false;
-window.auxClick2Happened = false;
-
-test(() => {
-  for (var location of [window, HTMLElement.prototype, SVGElement.prototype, Document.prototype]) {
-    assert_true(location.hasOwnProperty("onauxclick"),
-      `${location.constructor.name} has an own property named "onauxclick"`);
-  }
-}, "onauxclick is on the appropriate locations for GlobalEventHandlers");
-
-test(() => {
-  const htmlElement = document.createElement("span");
-  const svgElement = document.createElementNS("http://www.w3.org/2000/svg", "g");
-
-  for (var location of [window, htmlElement, svgElement, document]) {
-    assert_equals(location.onauxclick, null,
-      `The default value of the property is null for a ${location.constructor.name} instance`);
-  }
-}, "The default value of onauxclick is always null");
-
-test(() => {
-  const element = document.querySelector("#auxclickme1");
-  const compiledHandler = element.onauxclick;
-
-  assert_equals(typeof compiledHandler, "function", "The onauxclick property must be a function");
-  compiledHandler();
-  assert_true(window.auxClick1Happened, "Calling the handler must run the code");
-}, "The onauxclick content attribute must be compiled into the onauxclick property");
-
-test(() => {
-  const element = document.querySelector("#auxclickme2");
-  element.dispatchEvent(new Event("auxclick"));
-
-  assert_true(window.auxClick2Happened, "Dispatching the event must run the code");
-}, "The onauxclick content attribute must execute when an event is dispatched");
-
-test(() => {
-  const element = document.createElement("meta");
-  element.onauxclick = e => {
-    assert_equals(e.currentTarget, element, "The event must be fired at the <meta> element");
-  };
-
-  element.dispatchEvent(new Event("auxclick"));
-}, "dispatching an auxclick event must trigger element.onauxclick");
-
-</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-pluginarray.html b/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-pluginarray.html
new file mode 100644
index 0000000..8798b263
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-pluginarray.html
@@ -0,0 +1,55 @@
+<!doctype html>
+<html>
+<body>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script type="text/javascript">
+test(function () {
+  for (var i = 0; i < navigator.plugins.length; i++) {
+    var plugin = navigator.plugins[i];
+    var name = plugin.name;
+    assert_equals(plugin, navigator.plugins[i]);
+    assert_equals(plugin, navigator.plugins[name]);
+  }
+  for (var i = 0; i < navigator.mimeTypes.length; i++) {
+    var mime_type = navigator.mimeTypes[i];
+    var type = mime_type.type;
+    assert_equals(mime_type, navigator.mimeTypes[i]);
+    assert_equals(mime_type, navigator.mimeTypes[type]);
+    assert_equals(mime_type.enabledPlugin, navigator.plugins[mime_type.enabledPlugin.name]);
+  }
+}, "Tests that navigator.plugins and navigator.mimeTypes returns the same object when queried multiple times.");
+
+test(function () {
+  var iframe = document.createElement("iframe");
+  iframe.src = "about:blank";
+  document.body.appendChild(iframe);
+  assert_equals(navigator.plugins.length, iframe.contentWindow.navigator.plugins.length);
+  assert_equals(navigator.mimeTypes.length, iframe.contentWindow.navigator.mimeTypes.length);
+  for (var i = 0; i < navigator.plugins.length; i++) {
+    var plugin = navigator.plugins[i];
+    var name = plugin.name;
+    assert_not_equals(plugin, iframe.contentWindow.navigator.plugins[i]);
+    assert_not_equals(plugin, iframe.contentWindow.navigator.plugins[name]);
+  }
+  for (var i = 0; i < navigator.mimeTypes.length; i++) {
+    var mime_type = navigator.mimeTypes[i];
+    var type = mime_type.type;
+    assert_not_equals(mime_type, iframe.contentWindow.navigator.mimeTypes[i]);
+    assert_not_equals(mime_type, iframe.contentWindow.navigator.mimeTypes[type]);
+    assert_not_equals(mime_type.enabledPlugin, iframe.contentWindow.navigator.plugins[mime_type.enabledPlugin.name]);
+  }
+  iframe.remove();
+}, "Tests that navigator.plugins and navigator.mimeTypes does not return the same object on different frames.");
+
+test(function () {
+  for (var i = 1; i < navigator.plugins.length; i++) {
+    assert_less_than_equal(navigator.plugins[i-1].name.localeCompare(navigator.plugins[i].name), 0);
+  }
+  for (var i = 1; i < navigator.mimeTypes.length; i++) {
+    assert_less_than_equal(navigator.mimeTypes[i-1].type.localeCompare(navigator.mimeTypes[i].type), 0);
+  }
+}, "Tests that navigator.plugins and navigator.mimeTypes returns plugins sorted in alphabetical order by plugin name.");
+</script>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/interfaces/html.idl b/third_party/WebKit/LayoutTests/external/wpt/interfaces/html.idl
index feb0a45..93653d0d 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/interfaces/html.idl
+++ b/third_party/WebKit/LayoutTests/external/wpt/interfaces/html.idl
@@ -136,7 +136,6 @@
   [CEReactions] attribute DOMString accessKey;
   readonly attribute DOMString accessKeyLabel;
   [CEReactions] attribute boolean draggable;
-  [CEReactions] attribute HTMLMenuElement? contextMenu;
   [CEReactions] attribute boolean spellcheck;
   void forceSpellCheck();
 
@@ -956,32 +955,9 @@
 };
 
 interface HTMLMenuElement : HTMLElement {
-           attribute DOMString type;
-           attribute DOMString label;
-
   // also has obsolete members
 };
 
-interface HTMLMenuItemElement : HTMLElement {
-           attribute DOMString type;
-           attribute DOMString label;
-           attribute DOMString icon;
-           attribute boolean disabled;
-           attribute boolean checked;
-           attribute DOMString radiogroup;
-           attribute boolean default;
-  readonly attribute HTMLElement? command;
-};
-
-[Constructor(DOMString type, optional RelatedEventInit eventInitDict)]
-interface RelatedEvent : Event {
-  readonly attribute EventTarget? relatedTarget;
-};
-
-dictionary RelatedEventInit : EventInit {
-  EventTarget? relatedTarget;
-};
-
 interface HTMLDialogElement : HTMLElement {
            attribute boolean open;
            attribute DOMString returnValue;
@@ -1548,67 +1524,67 @@
 
 [NoInterfaceObject]
 interface GlobalEventHandlers {
-           attribute EventHandler onabort;
-           attribute EventHandler onauxclick;
-           attribute EventHandler onblur;
-           attribute EventHandler oncancel;
-           attribute EventHandler oncanplay;
-           attribute EventHandler oncanplaythrough;
-           attribute EventHandler onchange;
-           attribute EventHandler onclick;
-           attribute EventHandler onclose;
-           attribute EventHandler oncontextmenu;
-           attribute EventHandler oncuechange;
-           attribute EventHandler ondblclick;
-           attribute EventHandler ondrag;
-           attribute EventHandler ondragend;
-           attribute EventHandler ondragenter;
-           attribute EventHandler ondragexit;
-           attribute EventHandler ondragleave;
-           attribute EventHandler ondragover;
-           attribute EventHandler ondragstart;
-           attribute EventHandler ondrop;
-           attribute EventHandler ondurationchange;
-           attribute EventHandler onemptied;
-           attribute EventHandler onended;
-           attribute OnErrorEventHandler onerror;
-           attribute EventHandler onfocus;
-           attribute EventHandler oninput;
-           attribute EventHandler oninvalid;
-           attribute EventHandler onkeydown;
-           attribute EventHandler onkeypress;
-           attribute EventHandler onkeyup;
-           attribute EventHandler onload;
-           attribute EventHandler onloadeddata;
-           attribute EventHandler onloadedmetadata;
-           attribute EventHandler onloadstart;
-           attribute EventHandler onmousedown;
+  attribute EventHandler onabort;
+  attribute EventHandler onauxclick;
+  attribute EventHandler onblur;
+  attribute EventHandler oncancel;
+  attribute EventHandler oncanplay;
+  attribute EventHandler oncanplaythrough;
+  attribute EventHandler onchange;
+  attribute EventHandler onclick;
+  attribute EventHandler onclose;
+  attribute EventHandler oncontextmenu;
+  attribute EventHandler oncuechange;
+  attribute EventHandler ondblclick;
+  attribute EventHandler ondrag;
+  attribute EventHandler ondragend;
+  attribute EventHandler ondragenter;
+  attribute EventHandler ondragexit;
+  attribute EventHandler ondragleave;
+  attribute EventHandler ondragover;
+  attribute EventHandler ondragstart;
+  attribute EventHandler ondrop;
+  attribute EventHandler ondurationchange;
+  attribute EventHandler onemptied;
+  attribute EventHandler onended;
+  attribute OnErrorEventHandler onerror;
+  attribute EventHandler onfocus;
+  attribute EventHandler oninput;
+  attribute EventHandler oninvalid;
+  attribute EventHandler onkeydown;
+  attribute EventHandler onkeypress;
+  attribute EventHandler onkeyup;
+  attribute EventHandler onload;
+  attribute EventHandler onloadeddata;
+  attribute EventHandler onloadedmetadata;
+  attribute EventHandler onloadend;
+  attribute EventHandler onloadstart;
+  attribute EventHandler onmousedown;
   [LenientThis] attribute EventHandler onmouseenter;
   [LenientThis] attribute EventHandler onmouseleave;
-           attribute EventHandler onmousemove;
-           attribute EventHandler onmouseout;
-           attribute EventHandler onmouseover;
-           attribute EventHandler onmouseup;
-           attribute EventHandler onmousewheel;
-           attribute EventHandler onpause;
-           attribute EventHandler onplay;
-           attribute EventHandler onplaying;
-           attribute EventHandler onprogress;
-           attribute EventHandler onratechange;
-           attribute EventHandler onreset;
-           attribute EventHandler onresize;
-           attribute EventHandler onscroll;
-           attribute EventHandler onseeked;
-           attribute EventHandler onseeking;
-           attribute EventHandler onselect;
-           attribute EventHandler onshow;
-           attribute EventHandler onstalled;
-           attribute EventHandler onsubmit;
-           attribute EventHandler onsuspend;
-           attribute EventHandler ontimeupdate;
-           attribute EventHandler ontoggle;
-           attribute EventHandler onvolumechange;
-           attribute EventHandler onwaiting;
+  attribute EventHandler onmousemove;
+  attribute EventHandler onmouseout;
+  attribute EventHandler onmouseover;
+  attribute EventHandler onmouseup;
+  attribute EventHandler onwheel;
+  attribute EventHandler onpause;
+  attribute EventHandler onplay;
+  attribute EventHandler onplaying;
+  attribute EventHandler onprogress;
+  attribute EventHandler onratechange;
+  attribute EventHandler onreset;
+  attribute EventHandler onresize;
+  attribute EventHandler onscroll;
+  attribute EventHandler onseeked;
+  attribute EventHandler onseeking;
+  attribute EventHandler onselect;
+  attribute EventHandler onstalled;
+  attribute EventHandler onsubmit;
+  attribute EventHandler onsuspend;
+  attribute EventHandler ontimeupdate;
+  attribute EventHandler ontoggle;
+  attribute EventHandler onvolumechange;
+  attribute EventHandler onwaiting;
 };
 
 [NoInterfaceObject]
diff --git a/third_party/WebKit/LayoutTests/external/wpt/lint.whitelist b/third_party/WebKit/LayoutTests/external/wpt/lint.whitelist
index 97b57c60..a5b620a3 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/lint.whitelist
+++ b/third_party/WebKit/LayoutTests/external/wpt/lint.whitelist
@@ -73,6 +73,7 @@
 TRAILING WHITESPACE, INDENT TABS, CR AT EOL: *.ani
 TRAILING WHITESPACE, INDENT TABS, CR AT EOL: *.cur
 TRAILING WHITESPACE, INDENT TABS, CR AT EOL: *.ico
+TRAILING WHITESPACE, INDENT TABS, CR AT EOL: *.wasm
 
 ## Documentation ##
 
diff --git a/third_party/WebKit/LayoutTests/external/wpt/netinfo/netinfo-basics.html b/third_party/WebKit/LayoutTests/external/wpt/netinfo/netinfo-basics.html
index f043425..31ad9fce 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/netinfo/netinfo-basics.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/netinfo/netinfo-basics.html
@@ -7,29 +7,29 @@
 
 <script>
 test(function() {
-      assert_in_array(navigator.connection.type,  ["bluetooth", "cellular", 
-        "ethernet", "mixed", "none", "other", "unknown", "wifi", "wimax"], 'type is unexpected');      
- }, "type attribute");
+      assert_in_array(navigator.connection.type,  ["bluetooth", "cellular",
+        "ethernet", "mixed", "none", "other", "unknown", "wifi", "wimax"], 'type is unexpected');
+ });
 
 test(function() {
       assert_greater_than_equal(navigator.connection.downlinkMax, 0);
- }, "downlinkMax attribute");
+ });
 
 test(function() {
       assert_in_array(navigator.connection.effectiveType, ["slow-2g", "2g",
           "3g", "4g"], 'effectiveType is unexpected');
- }, "effectiveType attribute");
+ });
 
 test(function() {
       assert_greater_than_equal(navigator.connection.rtt, 0);
       assert_equals(navigator.connection.rtt % 25, 0,
         'rtt must be a multiple of 25 msec');
- }, "rtt attribute");
+ });
 
 test(function() {
       assert_greater_than_equal(navigator.connection.downlink, 0);
       var downlink  = navigator.connection.downlink ;
       assert_equals(((downlink  - Math.floor(downlink)) *1000) % 25, 0,
         'downlink must be a multiple of 25 kbps');
- }, "downlink attribute");
-</script>
\ No newline at end of file
+ });
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-canmakepayment-method-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-canmakepayment-method-expected.txt
deleted file mode 100644
index bfcbf39..0000000
--- a/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-canmakepayment-method-expected.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-This is a testharness.js-based test.
-FAIL If request.[[state]] is "created", then return a promise that resolves to true for known method. promise_test: Unhandled rejection with value: object "SecurityError: Failed to construct 'PaymentRequest': Must be in a secure context"
-FAIL If request.[[state]] is "interactive", then return a promise rejected with an "InvalidStateError" DOMException. promise_test: Unhandled rejection with value: object "SecurityError: Failed to construct 'PaymentRequest': Must be in a secure context"
-FAIL If request.[[state]] is "closed", then return a promise rejected with an "InvalidStateError" DOMException. promise_test: Unhandled rejection with value: object "SecurityError: Failed to construct 'PaymentRequest': Must be in a secure context"
-FAIL If payment method identifier and serialized parts are supported, resolve promise with true. promise_test: Unhandled rejection with value: object "SecurityError: Failed to construct 'PaymentRequest': Must be in a secure context"
-FAIL If payment method identifier is unknown, resolve promise with false. assert_true: Unexpected exception testing method this-is-not-supported, expected false. See error console. expected true got false
-FAIL Optionally, at the user agent's discretion, return a promise rejected with a "NotAllowedError" DOMException. promise_test: Unhandled rejection with value: object "SecurityError: Failed to construct 'PaymentRequest': Must be in a secure context"
-Harness: the test ran to completion.
-
diff --git a/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-canmakepayment-method.html b/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-canmakepayment-method.https.http
similarity index 100%
rename from third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-canmakepayment-method.html
rename to third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-canmakepayment-method.https.http
diff --git a/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-constructor-crash.https.html b/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-constructor-crash.https.html
new file mode 100644
index 0000000..8ca0a47
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-constructor-crash.https.html
@@ -0,0 +1,269 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>Crash tests PaymentRequest Constructor</title>
+<link rel="help" href="https://w3c.github.io/browser-payment-api/#constructor">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+/**
+    dictionary PaymentItem {
+        required DOMString             label;
+        required PaymentCurrencyAmount amount;
+                boolean               pending = false;
+    };
+
+    dictionary PaymentDetailsBase {
+        sequence<PaymentItem>            displayItems;
+        sequence<PaymentShippingOption>  shippingOptions;
+        sequence<PaymentDetailsModifier> modifiers;
+    };
+
+    dictionary PaymentCurrencyAmount {
+        required DOMString currency;
+        required DOMString value;
+    };
+**/
+
+"use strict";
+const ABUSIVE_AMOUNT = 100000;
+
+const basicCard = Object.freeze({
+  supportedMethods: ["basic-card"],
+});
+
+const defaultAmount = Object.freeze({
+  currency: "USD",
+  value: "1.00",
+});
+
+const evilAmount = Object.freeze({
+  currency: "USD",
+  value: "1".repeat(ABUSIVE_AMOUNT),
+});
+
+const defaultMethods = Object.freeze([basicCard]);
+
+const defaultTotal = Object.freeze({
+  label: "label",
+  amount: defaultAmount,
+});
+
+const evilTotal = Object.freeze({
+  label: "a".repeat(ABUSIVE_AMOUNT),
+  amount: evilAmount,
+});
+
+const defaultDetails = Object.freeze({
+  total: defaultTotal,
+  get id() {
+    return Math.random();
+  },
+});
+
+const defaultPaymentItem = Object.freeze({
+  label: "label",
+  amount: defaultAmount,
+});
+
+const defaultShippingOption = {
+  get id() {
+    return "shipping option " + Math.random();
+  },
+  amount: defaultAmount,
+  label: "shipping option label",
+};
+
+// First argument is sequence<PaymentMethodData> methodData
+test(() => {
+  let evilMethods = [Object.assign({}, basicCard)];
+  // smoke test
+  try {
+    new PaymentRequest(evilMethods, defaultDetails);
+  } catch (err) {
+    assert_true(false, "failed smoke test: " + err.stack);
+  }
+  // Now, let's add an abusive amount of methods.
+  while (evilMethods.length < ABUSIVE_AMOUNT) {
+    evilMethods = evilMethods.concat(evilMethods);
+  }
+  try {
+    new PaymentRequest(evilMethods, defaultDetails);
+  } catch (err) {
+    assert_equals(err.name, "TypeError", "must be a TypeError");
+  }
+  assert_true(true, "Didn't crash");
+}, "Don't crash if there is a abusive number of payment methods in the methodData sequence");
+
+test(() => {
+  let supportedMethods = ["basic-card"];
+  // Smoke test
+  try {
+    new PaymentRequest([{ supportedMethods }], defaultDetails);
+  } catch (err) {
+    assert_true(false, "failed smoke test: " + err.stack);
+  }
+  // Now, let's add an abusive number of supportedMethods to a single PaymentMethodData
+  for (let i = 0; i < ABUSIVE_AMOUNT; i++) {
+    supportedMethods.push(`https://example.com/${i}/evil_${Math.random()}`);
+  }
+  const evilMethodData = [{ supportedMethods }];
+  try {
+    new PaymentRequest(evilMethodData, defaultDetails);
+  } catch (err) {
+    assert_equals(err.name, "TypeError", "must be a TypeError");
+  }
+  assert_true(true, "Didn't crash");
+}, "Don't crash if there is a abusive number of supported methods in one sequence");
+
+// PaymentDetailsInit.id
+test(() => {
+  const id = "abc";
+  // Smoke Test
+  try {
+    new PaymentRequest(
+      defaultMethods,
+      Object.assign({}, defaultDetails, { id })
+    );
+  } catch (err) {
+    assert_true(false, "failed smoke test: " + err.stack);
+  }
+  // Now, we make the id super large;
+  const evilDetails = Object.assign({}, defaultDetails, {
+    id: id.repeat(ABUSIVE_AMOUNT),
+  });
+  try {
+    new PaymentRequest(defaultMethods, evilDetails);
+  } catch (err) {
+    assert_equals(err.name, "TypeError", "must be a TypeError");
+  }
+  assert_true(true, "Didn't crash");
+}, "Don't crash if the request id has an abusive length");
+
+// PaymentDetailsInit.total.label
+test(() => {
+  const evilDetails = Object.assign({}, defaultDetails);
+  // Smoke Test
+  try {
+    new PaymentRequest(defaultMethods, evilDetails);
+  } catch (err) {
+    assert_true(false, "failed smoke test: " + err.stack);
+  }
+  // Now, we make the label super large;
+  evilDetails.total = {
+    label: "l".repeat(ABUSIVE_AMOUNT),
+    amount: defaultAmount,
+  };
+  try {
+    new PaymentRequest(defaultMethods, evilDetails);
+  } catch (err) {
+    assert_equals(err.name, "TypeError", "must be a TypeError");
+  }
+  assert_true(true, "Didn't crash");
+}, "Don't crash if PaymentDetailsInit.total.label is an abusive length");
+
+test(() => {
+  const evilDetails = Object.assign({}, defaultDetails);
+  // Smoke Test
+  try {
+    new PaymentRequest(defaultMethods, evilDetails);
+  } catch (err) {
+    assert_true(false, "failed smoke test: " + err.stack);
+  }
+  // Now, we can use evilAmount
+  evilDetails.total = evilAmount;
+  try {
+    new PaymentRequest(defaultMethods, evilDetails);
+  } catch (err) {
+    assert_equals(err.name, "TypeError", "must be a TypeError");
+  }
+  assert_true(true, "Didn't crash");
+}, "Don't crash if total.amount.value is an abusive length");
+
+for (const [prop, defaultValue] of [
+  ["displayItems", defaultPaymentItem],
+  ["shippingOptions", defaultShippingOption],
+]) {
+  test(() => {
+    const evilDetails = Object.assign({}, defaultDetails);
+    evilDetails[prop] = [defaultValue];
+    // Smoke Test
+    try {
+      new PaymentRequest(defaultMethods, evilDetails);
+    } catch (err) {
+      assert_true(false, "failed smoke test: " + err.stack);
+    }
+    while (evilDetails[prop].length < ABUSIVE_AMOUNT) {
+      evilDetails[prop] = evilDetails[prop].concat(evilDetails[prop]);
+    }
+    // Now, construct with evil items!
+    try {
+      new PaymentRequest(defaultMethods, evilDetails);
+    } catch (err) {
+      assert_equals(err.name, "TypeError", "must be a TypeError");
+    }
+    assert_true(true, "Didn't crash");
+  }, `Don't crash if details.${prop} has an abusive number of items`);
+}
+
+test(() => {
+  const evilDetails = Object.assign({}, defaultDetails);
+  const evilShippingOption = Object.assign({}, defaultShippingOption);
+  evilDetails.shippingOptions = [evilShippingOption];
+  // Smoke Test
+  try {
+    new PaymentRequest(defaultMethods, evilDetails);
+  } catch (err) {
+    assert_true(false, "failed smoke test: " + err.stack);
+  }
+  // Now, we make the label super large;
+  evilShippingOption.label = "l".repeat(ABUSIVE_AMOUNT);
+  try {
+    new PaymentRequest(defaultMethods, evilDetails);
+  } catch (err) {
+    assert_equals(err.name, "TypeError", "must be a TypeError");
+  }
+  assert_true(true, "Didn't crash");
+}, "Don't crash if PaymentShippingOptions.label is an abusive length");
+
+test(() => {
+  const evilDetails = Object.assign({}, defaultDetails);
+  const evilShippingOption = Object.assign({}, defaultShippingOption);
+  evilDetails.shippingOptions = [evilShippingOption];
+  // Smoke Test
+  try {
+    new PaymentRequest(defaultMethods, evilDetails);
+  } catch (err) {
+    assert_true(false, "failed smoke test: " + err.stack);
+  }
+  // Now, we make use of evilAmount;
+  evilShippingOption.amount = evilAmount;
+  try {
+    new PaymentRequest(defaultMethods, evilDetails);
+  } catch (err) {
+    assert_equals(err.name, "TypeError", "must be a TypeError");
+  }
+  assert_true(true, "Didn't crash");
+}, "Don't crash if the PaymentShippingOptions.amount.value is an abusive length");
+
+test(() => {
+  const evilDetails = Object.assign({}, defaultDetails);
+  const evilDisplayItem = Object.assign({}, defaultPaymentItem);
+  evilDetails.displayItems = [evilDisplayItem];
+  // Smoke Test
+  try {
+    new PaymentRequest(defaultMethods, evilDetails);
+  } catch (err) {
+    assert_true(false, "failed smoke test: " + err.stack);
+  }
+  // Now, we make the label super large;
+  evilDisplayItem.label = "l".repeat(ABUSIVE_AMOUNT);
+  try {
+    new PaymentRequest(defaultMethods, evilDetails);
+  } catch (err) {
+    assert_equals(err.name, "TypeError", "must be a TypeError");
+  }
+  assert_true(true, "Didn't crash");
+}, "Don't crash if PaymentItem.label is an abusive length");
+
+
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-onshippingaddresschange-attribute.https.html b/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-onshippingaddresschange-attribute.https.html
new file mode 100644
index 0000000..7d5530a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-onshippingaddresschange-attribute.https.html
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<!-- Copyright © 2017 Chromium authors and World Wide Web Consortium, (Massachusetts Institute of Technology, ERCIM, Keio University, Beihang). -->
+<meta charset="utf-8">
+<title>Test for onshippingaddresschange attribute</title>
+<link rel="help" href="https://w3c.github.io/browser-payment-api/#onshippingaddresschange-attribute">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+"use strict";
+const basicCard = Object.freeze({ supportedMethods: ["basic-card"] });
+const defaultMethods = Object.freeze([basicCard]);
+const defaultDetails = Object.freeze({
+  total: {
+    label: "Total",
+    amount: {
+      currency: "USD",
+      value: "1.00",
+    },
+  },
+});
+
+test(() => {
+  const request = new PaymentRequest(defaultMethods, defaultDetails);
+  const ev = new Event("shippingaddresschange");
+  let didHandle = false;
+  request.onshippingaddresschange = evt => {
+    assert_equals(ev, evt, "must be same event");
+    didHandle = true;
+  };
+  request.dispatchEvent(ev);
+  assert_true(didHandle, "event did not fire");
+}, `onshippingaddresschange attribute is a generic handler for "shippingaddresschange"`);
+
+test(() => {
+  const request = new PaymentRequest(defaultMethods, defaultDetails);
+  const ev = new PaymentRequestUpdateEvent("shippingaddresschange");
+  let didHandle = false;
+  request.onshippingaddresschange = evt => {
+    assert_equals(ev, evt, "must be same event");
+    didHandle = true;
+  };
+  request.dispatchEvent(ev);
+  assert_true(didHandle, "event did not fire");
+}, `onshippingaddresschange attribute is a handler for PaymentRequestUpdateEvent`);
+
+test(() => {
+  const request = new PaymentRequest(defaultMethods, defaultDetails);
+  const ev = new PaymentRequestUpdateEvent("shippingaddresschange");
+  let didHandle = false;
+  let didListen = false;
+  request.onshippingaddresschange = evt => {
+    assert_equals(ev, evt, "must be same event");
+    didHandle = true;
+  };
+  request.addEventListener("shippingaddresschange", evt => {
+    assert_equals(ev, evt, "must be same event");
+    didListen = true;
+  });
+  request.dispatchEvent(ev);
+  assert_true(didHandle, "onshippingaddresschange did not receive the event");
+  assert_true(didListen, "addEventListener did not receive the event");
+}, `onshippingaddresschange attribute and listeners both work`);
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-onshippingoptionchange-attribute.https.html b/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-onshippingoptionchange-attribute.https.html
new file mode 100644
index 0000000..05c3dbf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-onshippingoptionchange-attribute.https.html
@@ -0,0 +1,64 @@
+<!DOCTYPE html>
+<!-- Copyright © 2017 Chromium authors and World Wide Web Consortium, (Massachusetts Institute of Technology, ERCIM, Keio University, Beihang). -->
+<meta charset="utf-8">
+<title>Test for onshippingoptionchange attribute</title>
+<link rel="help" href="https://w3c.github.io/browser-payment-api/#onshippingoptionchange-attribute">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+"use strict";
+const basicCard = Object.freeze({ supportedMethods: ["basic-card"] });
+const defaultMethods = Object.freeze([basicCard]);
+const defaultDetails = Object.freeze({
+  total: {
+    label: "Total",
+    amount: {
+      currency: "USD",
+      value: "1.00",
+    },
+  },
+});
+
+test(() => {
+  const request = new PaymentRequest(defaultMethods, defaultDetails);
+  const ev = new Event("shippingoptionchange");
+  let didHandle = false;
+  request.onshippingoptionchange = evt => {
+    assert_equals(ev, evt, "must be same event");
+    didHandle = true;
+  };
+  request.dispatchEvent(ev);
+  assert_true(didHandle, "event did not fire");
+}, `onshippingoptionchange attribute is a generic handler for "shippingoptionchange"`);
+
+test(() => {
+  const request = new PaymentRequest(defaultMethods, defaultDetails);
+  const ev = new PaymentRequestUpdateEvent("shippingoptionchange");
+  let didHandle = false;
+  request.onshippingoptionchange = evt => {
+    assert_equals(ev, evt, "must be same event");
+    didHandle = true;
+  };
+  request.dispatchEvent(ev);
+  assert_true(didHandle, "event did not fire");
+}, `onshippingoptionchange attribute is a handler for PaymentRequestUpdateEvent`);
+
+test(() => {
+  const request = new PaymentRequest(defaultMethods, defaultDetails);
+  const ev = new PaymentRequestUpdateEvent("shippingoptionchange");
+  let didHandle = false;
+  let didListen = false;
+  request.onshippingoptionchange = evt => {
+    assert_equals(ev, evt, "must be same event");
+    didHandle = true;
+  };
+  request.addEventListener("shippingoptionchange", evt => {
+    assert_equals(ev, evt, "must be same event");
+    didListen = true;
+  });
+  request.dispatchEvent(ev);
+  assert_true(didHandle, "onshippingoptionchange did not receive the event");
+  assert_true(didListen, "addEventListener did not receive the event");
+}, `onshippingoptionchange attribute and listeners both work`);
+
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-update-event-constructor.http-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-update-event-constructor.http-expected.txt
new file mode 100644
index 0000000..d3f21b34
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-update-event-constructor.http-expected.txt
@@ -0,0 +1,6 @@
+This is a testharness.js-based test.
+FAIL PaymentRequestUpdateEvent constructor throws in a non-secure context assert_throws: function "() => {
+    new PaymentRequestUpdateEvent("test");
+  }" did not throw
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-update-event-constructor.http.html b/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-update-event-constructor.http.html
new file mode 100644
index 0000000..685eed6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-update-event-constructor.http.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<!-- Copyright © 2017 Chromium authors and World Wide Web Consortium, (Massachusetts Institute of Technology, ERCIM, Keio University, Beihang). -->
+<meta charset="utf-8">
+<title>Test for PaymentRequestUpdateEvent Constructor</title>
+<link rel="help" href="https://w3c.github.io/browser-payment-api/#constructor">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+test(() => {
+  assert_throws("SecurityError", () => {
+    new PaymentRequestUpdateEvent("test");
+  });
+}, "PaymentRequestUpdateEvent constructor throws in a non-secure context");
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-update-event-constructor.https.html b/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-update-event-constructor.https.html
new file mode 100644
index 0000000..bb83e5d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-update-event-constructor.https.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<!-- Copyright © 2017 Chromium authors and World Wide Web Consortium, (Massachusetts Institute of Technology, ERCIM, Keio University, Beihang). -->
+<meta charset="utf-8">
+<title>Test for PaymentRequestUpdateEvent Constructor</title>
+<link rel="help" href="https://w3c.github.io/browser-payment-api/#constructor">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+const basicCard = Object.freeze({ supportedMethods: ["basic-card"] });
+const defaultMethods = Object.freeze([basicCard]);
+const defaultDetails = Object.freeze({
+  total: {
+    label: "Total",
+    amount: {
+      currency: "USD",
+      value: "1.00",
+    },
+  },
+});
+
+test(() => {
+  try {
+    new PaymentRequestUpdateEvent("test");
+  } catch (err) {
+    assert_true(false, `Unexpected exception: ${err.message}`);
+  }
+}, "PaymentRequestUpdateEvent can be constructed in secure-context");
+
+test(() => {
+  const ev = new PaymentRequestUpdateEvent("test", {
+    bubbles: true,
+    cancelable: true,
+    composed: true,
+  });
+  assert_false(ev.isTrusted, "constructed in script, so not be trusted");
+  assert_true(ev.bubbles, "set by EventInitDict");
+  assert_true(ev.cancelable, "set by EventInitDict");
+  assert_true(ev.composed, "set by EventInitDict");
+  assert_equals(ev.type, "test");
+}, "PaymentRequestUpdateEvent can be constructed with an EventInitDict, even if not trusted");
+
+test(() => {
+  const request = new PaymentRequest(defaultMethods, defaultDetails);
+  const ev = new PaymentRequestUpdateEvent("test");
+  request.addEventListener("test", evt => {
+    assert_equals(ev, evt);
+  });
+  request.dispatchEvent(ev);
+}, "PaymentRequestUpdateEvent can be dispatched, even if not trusted");
+
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/resources/idlharness.js b/third_party/WebKit/LayoutTests/external/wpt/resources/idlharness.js
index 9dd8b4ad..b04e8b5 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/resources/idlharness.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/resources/idlharness.js
@@ -1137,6 +1137,83 @@
         }
     }.bind(this), this.name + " interface: existence and properties of interface prototype object");
 
+    if (this.is_global() && typeof Object.setPrototypeOf === "function") {
+        // These functions test WebIDL as of 2017-06-06.
+        // https://heycam.github.io/webidl/#platform-object-setprototypeof
+        test(function() {
+            var originalValue = Object.getPrototypeOf(self[this.name].prototype);
+            var newValue = Object.create(null);
+
+            assert_throws(new TypeError(), function() {
+                Object.setPrototypeOf(self[this.name].prototype, newValue);
+            });
+
+            assert_equals(
+                    Object.getPrototypeOf(self[this.name].prototype),
+                    originalValue,
+                    "original value not modified"
+                );
+        }.bind(this), this.name + " interface: internal [[SetPrototypeOf]] method " +
+            "of global platform object - setting to a new value via Object.setPrototypeOf " +
+            "should throw a TypeError");
+
+        test(function() {
+            var originalValue = Object.getPrototypeOf(self[this.name].prototype);
+            var newValue = Object.create(null);
+
+            assert_throws(new TypeError(), function() {
+                self[this.name].prototype.__proto__ = newValue;
+            });
+
+            assert_equals(
+                    Object.getPrototypeOf(self[this.name].prototype),
+                    originalValue,
+                    "original value not modified"
+                );
+        }.bind(this), this.name + " interface: internal [[SetPrototypeOf]] method " +
+            "of global platform object - setting to a new value via __proto__ " +
+            "should throw a TypeError");
+
+        test(function() {
+            var originalValue = Object.getPrototypeOf(self[this.name].prototype);
+            var newValue = Object.create(null);
+
+            assert_false(Reflect.setPrototypeOf(self[this.name].prototype.__proto__, newValue));
+
+            assert_equals(
+                    Object.getPrototypeOf(self[this.name].prototype),
+                    originalValue,
+                    "original value not modified"
+                );
+        }.bind(this), this.name + " interface: internal [[SetPrototypeOf]] method " +
+            "of global platform object - setting to a new value via Reflect.setPrototypeOf " +
+            "should return false");
+
+        test(function() {
+            var originalValue = Object.getPrototypeOf(self[this.name].prototype);
+
+            Object.setPrototypeOf(self[this.name].prototype, originalValue);
+        }.bind(this), this.name + " interface: internal [[SetPrototypeOf]] method " +
+            "of global platform object - setting to its original value via Object.setPrototypeOf " +
+            "should not throw");
+
+        test(function() {
+            var originalValue = Object.getPrototypeOf(self[this.name].prototype);
+
+            self[this.name].prototype.__proto__ = originalValue;
+        }.bind(this), this.name + " interface: internal [[SetPrototypeOf]] method " +
+            "of global platform object - setting to its original value via __proto__ " +
+            "should not throw");
+
+        test(function() {
+            var originalValue = Object.getPrototypeOf(self[this.name].prototype);
+
+            assert_true(Reflect.setPrototypeOf(self[this.name].prototype, originalValue));
+        }.bind(this), this.name + " interface: internal [[SetPrototypeOf]] method " +
+            "of global platform object - setting to its original value via Reflect.setPrototypeOf " +
+            "should return true");
+    }
+
     test(function()
     {
         if (this.is_callback() && !this.has_constants()) {
diff --git a/third_party/WebKit/LayoutTests/external/wpt/resources/test/tests/add_cleanup.html b/third_party/WebKit/LayoutTests/external/wpt/resources/test/tests/add_cleanup.html
new file mode 100644
index 0000000..d47e7ff2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/resources/test/tests/add_cleanup.html
@@ -0,0 +1,96 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<title>Test#add_cleanup</title>
+<script src="../../testharness.js"></script>
+<script src="../../testharnessreport.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+"use strict";
+
+var log_sync;
+test(function(t) {
+  log_sync = "";
+  t.add_cleanup(function() { log_sync += "1"; });
+  t.add_cleanup(function() { log_sync += "2"; });
+  t.add_cleanup(function() { log_sync += "3"; });
+  t.add_cleanup(function() { log_sync += "4"; });
+  t.add_cleanup(function() { log_sync += "5"; });
+  log_sync += "0";
+}, "probe synchronous");
+
+test(function() {
+  if (log_sync !== "012345") {
+    throw new Error("Expected: '012345'. Actual: '" + log_sync + "'.");
+  }
+}, "Cleanup methods are invoked exactly once and in the expected sequence.");
+
+var complete, log_async;
+async_test(function(t) {
+  complete = t.step_func(function() {
+    if (log_async !== "012") {
+      throw new Error("Expected: '012'. Actual: '" + log_async + "'.");
+    }
+
+    t.done();
+  });
+}, "Cleanup methods are invoked following the completion of asynchronous tests");
+
+async_test(function(t) {
+  log_async = "";
+  t.add_cleanup(function() { log_async += "1"; });
+
+  setTimeout(t.step_func(function() {
+    t.add_cleanup(function() {
+      log_async += "2";
+      complete();
+    });
+    log_async += "0";
+    t.done();
+  }), 0);
+}, "probe asynchronous");
+</script>
+<script type="text/json" id="expected">
+{
+  "summarized_status": {
+    "status_string": "OK",
+    "message": null,
+    "stack": null
+  },
+  "summarized_tests": [
+    {
+      "status_string": "PASS",
+      "name": "Cleanup methods are invoked exactly once and in the expected sequence.",
+      "properties": {},
+      "message": null,
+      "stack": null
+    },
+    {
+      "status_string": "PASS",
+      "name": "Cleanup methods are invoked following the completion of asynchronous tests",
+      "properties": {},
+      "message": null,
+      "stack": null
+    },
+    {
+      "status_string": "PASS",
+      "name": "probe asynchronous",
+      "properties": {},
+      "message": null,
+      "stack": null
+    },
+    {
+      "status_string": "PASS",
+      "name": "probe synchronous",
+      "properties": {},
+      "message": null,
+      "stack": null
+    }
+  ],
+  "type": "complete"
+}
+</script>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/resources/test/tests/add_cleanup_err.html b/third_party/WebKit/LayoutTests/external/wpt/resources/test/tests/add_cleanup_err.html
new file mode 100644
index 0000000..66efb07
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/resources/test/tests/add_cleanup_err.html
@@ -0,0 +1,48 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<title>Test#add_cleanup: error</title>
+<script src="../../testharness.js"></script>
+<script src="../../testharnessreport.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+"use strict";
+
+test(function(t) {
+  t.add_cleanup(function() {
+    throw new Error('exception in cleanup function');
+  });
+}, "Exception in cleanup function causes harness failure.");
+
+test(function() {}, "This test should not be run.");
+</script>
+<script type="text/json" id="expected">
+{
+  "summarized_status": {
+    "status_string": "ERROR",
+    "message": "Test named 'Exception in cleanup function causes harness failure.' specified 1 'cleanup' function, and 1 failed.",
+    "stack": null
+  },
+  "summarized_tests": [
+    {
+      "status_string": "PASS",
+      "name": "Exception in cleanup function causes harness failure.",
+      "properties": {},
+      "message": null,
+      "stack": null
+    },
+    {
+      "status_string": "NOTRUN",
+      "name": "This test should not be run.",
+      "properties": {},
+      "message": null,
+      "stack": null
+    }
+  ],
+  "type": "complete"
+}
+</script>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/resources/test/tests/add_cleanup_err_multi.html b/third_party/WebKit/LayoutTests/external/wpt/resources/test/tests/add_cleanup_err_multi.html
new file mode 100644
index 0000000..b60668c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/resources/test/tests/add_cleanup_err_multi.html
@@ -0,0 +1,55 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<title>Test#add_cleanup: multiple functions with one in error</title>
+<script src="../../testharness.js"></script>
+<script src="../../testharnessreport.js"></script>
+</head>
+<body>
+<div id="log"></div>
+
+<script>
+"use strict";
+
+test(function(t) {
+    t.add_cleanup(function() {
+      throw new Error("exception in cleanup function");
+    });
+
+    // The following cleanup function defines a test so that the reported
+    // data demonstrates the intended run-time behavior, i.e. that
+    // `testharness.js` invokes all cleanup functions even when one or more
+    // throw errors.
+    t.add_cleanup(function() {
+      test(function() {}, "Verification test");
+    });
+  }, "Test with multiple cleanup functions");
+</script>
+<script type="text/json" id="expected">
+{
+  "summarized_status": {
+    "status_string": "ERROR",
+    "message": "Test named 'Test with multiple cleanup functions' specified 2 'cleanup' functions, and 1 failed.",
+    "stack": null
+  },
+  "summarized_tests": [
+    {
+      "status_string": "PASS",
+      "name": "Test with multiple cleanup functions",
+      "properties": {},
+      "message": null,
+      "stack": null
+    },
+    {
+      "status_string": "NOTRUN",
+      "name": "Verification test",
+      "properties": {},
+      "message": null,
+      "stack": null
+    }
+  ],
+  "type": "complete"
+}
+</script>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js b/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js
index 0e6f760..39aa686c 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/resources/testharness.js
@@ -1326,7 +1326,8 @@
         }
         this.name = name;
 
-        this.phase = this.phases.INITIAL;
+        this.phase = tests.phase === tests.phases.ABORTED ?
+            this.phases.COMPLETE : this.phases.INITIAL;
 
         this.status = this.NOTRUN;
         this.timeout_id = null;
@@ -1522,11 +1523,35 @@
         this.cleanup();
     };
 
+    /*
+     * Invoke all specified cleanup functions. If one or more produce an error,
+     * the context is in an unpredictable state, so all further testing should
+     * be cancelled.
+     */
     Test.prototype.cleanup = function() {
+        var error_count = 0;
+        var total;
+
         forEach(this.cleanup_callbacks,
                 function(cleanup_callback) {
-                    cleanup_callback();
+                    try {
+                        cleanup_callback();
+                    } catch (e) {
+                        // Set test phase immediately so that tests declared
+                        // within subsequent cleanup functions are not run.
+                        tests.phase = tests.phases.ABORTED;
+                        error_count += 1;
+                    }
                 });
+
+        if (error_count > 0) {
+            total = this.cleanup_callbacks.length;
+            tests.status.status = tests.status.ERROR;
+            tests.status.message = "Test named '" + this.name +
+                "' specified " + total + " 'cleanup' function" +
+                (total > 1 ? "s" : "") + ", and " + error_count + " failed.";
+            tests.status.stack = null;
+        }
     };
 
     /*
@@ -1710,7 +1735,8 @@
             SETUP:1,
             HAVE_TESTS:2,
             HAVE_RESULTS:3,
-            COMPLETE:4
+            COMPLETE:4,
+            ABORTED:5
         };
         this.phase = this.phases.INITIAL;
 
@@ -1844,7 +1870,8 @@
     };
 
     Tests.prototype.all_done = function() {
-        return (this.tests.length > 0 && test_environment.all_loaded &&
+        return this.phase === this.phases.ABORTED ||
+            (this.tests.length > 0 && test_environment.all_loaded &&
                 this.num_pending === 0 && !this.wait_for_finish &&
                 !this.processing_callbacks &&
                 !this.pending_remotes.some(function(w) { return w.running; }));
diff --git a/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slotchange-event-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slotchange-event-expected.txt
new file mode 100644
index 0000000..a3475b7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slotchange-event-expected.txt
@@ -0,0 +1,36 @@
+This is a testharness.js-based test.
+Harness Error. harness_status.status = 1 , harness_status.message = Uncaught Error: assert_equals: slotchange must not be fired on a slot element if the assigned nodes changed after the slot was removed expected 2 but got 0
+PASS slotchange event must fire on a default slot element inside an open shadow root  in a document 
+PASS slotchange event must fire on a default slot element inside a closed shadow root  in a document 
+PASS slotchange event must fire on a default slot element inside an open shadow root  not in a document 
+PASS slotchange event must fire on a default slot element inside a closed shadow root  not in a document 
+PASS slotchange event must fire on a named slot element insidean open shadow root  in a document 
+PASS slotchange event must fire on a named slot element insidea closed shadow root  in a document 
+PASS slotchange event must fire on a named slot element insidean open shadow root  not in a document 
+PASS slotchange event must fire on a named slot element insidea closed shadow root  not in a document 
+PASS slotchange event must not fire on a slot element inside an open shadow root  in a document when another slot's assigned nodes change 
+PASS slotchange event must not fire on a slot element inside a closed shadow root  in a document when another slot's assigned nodes change 
+PASS slotchange event must not fire on a slot element inside an open shadow root  not in a document when another slot's assigned nodes change 
+PASS slotchange event must not fire on a slot element inside a closed shadow root  not in a document when another slot's assigned nodes change 
+FAIL slotchange event must fire on a slot element when a shadow host has a slotable and the slot was inserted and must not fire when the shadow host was mutated after the slot was removed inside an open shadow root  in a document assert_equals: slotchange must be fired on a slot element if there is assigned nodes when the slot was inserted expected 1 but got 0
+FAIL slotchange event must fire on a slot element when a shadow host has a slotable and the slot was inserted and must not fire when the shadow host was mutated after the slot was removed inside a closed shadow root  in a document assert_equals: slotchange must be fired on a slot element if there is assigned nodes when the slot was inserted expected 1 but got 0
+FAIL slotchange event must fire on a slot element when a shadow host has a slotable and the slot was inserted and must not fire when the shadow host was mutated after the slot was removed inside an open shadow root  not in a document assert_equals: slotchange must be fired on a slot element if there is assigned nodes when the slot was inserted expected 1 but got 0
+FAIL slotchange event must fire on a slot element when a shadow host has a slotable and the slot was inserted and must not fire when the shadow host was mutated after the slot was removed inside a closed shadow root  not in a document assert_equals: slotchange must be fired on a slot element if there is assigned nodes when the slot was inserted expected 1 but got 0
+PASS slotchange event must fire on a slot element inside an open shadow root  in a document even if the slot was removed immediately after the assigned nodes were mutated 
+PASS slotchange event must fire on a slot element inside a closed shadow root  in a document even if the slot was removed immediately after the assigned nodes were mutated 
+PASS slotchange event must fire on a slot element inside an open shadow root  not in a document even if the slot was removed immediately after the assigned nodes were mutated 
+PASS slotchange event must fire on a slot element inside a closed shadow root  not in a document even if the slot was removed immediately after the assigned nodes were mutated 
+PASS slotchange event must fire on a slot element inside an open shadow root  in a document when innerHTML modifies the children of the shadow host 
+PASS slotchange event must fire on a slot element inside a closed shadow root  in a document when innerHTML modifies the children of the shadow host 
+PASS slotchange event must fire on a slot element inside an open shadow root  not in a document when innerHTML modifies the children of the shadow host 
+PASS slotchange event must fire on a slot element inside a closed shadow root  not in a document when innerHTML modifies the children of the shadow host 
+FAIL slotchange event must fire on a slot element inside an open shadow root  in a document when nested slots's contents change assert_equals: slotchange event's target must be the inner slot element at 1st slotchange expected Element node <slot></slot> but got Element node <slot></slot>
+FAIL slotchange event must fire on a slot element inside a closed shadow root  in a document when nested slots's contents change assert_equals: slotchange event's target must be the inner slot element at 1st slotchange expected Element node <slot></slot> but got Element node <slot></slot>
+FAIL slotchange event must fire on a slot element inside an open shadow root  not in a document when nested slots's contents change assert_equals: slotchange event's target must be the inner slot element at 1st slotchange expected Element node <slot></slot> but got Element node <slot></slot>
+FAIL slotchange event must fire on a slot element inside a closed shadow root  not in a document when nested slots's contents change assert_equals: slotchange event's target must be the inner slot element at 1st slotchange expected Element node <slot></slot> but got Element node <slot></slot>
+PASS slotchange event must fire at the end of current microtask after mutation observers are invoked inside an open shadow root  in a document when slots's contents change 
+PASS slotchange event must fire at the end of current microtask after mutation observers are invoked inside a closed shadow root  in a document when slots's contents change 
+PASS slotchange event must fire at the end of current microtask after mutation observers are invoked inside an open shadow root  not in a document when slots's contents change 
+PASS slotchange event must fire at the end of current microtask after mutation observers are invoked inside a closed shadow root  not in a document when slots's contents change 
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slotchange-event.html b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slotchange-event.html
index 62675de..167d600a 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slotchange-event.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slotchange-event.html
@@ -241,11 +241,11 @@
 testSlotchangeDoesNotFireWhenOtherSlotsChange('open', false);
 testSlotchangeDoesNotFireWhenOtherSlotsChange('closed', false);
 
-function testSlotchangeDoesNotFireForMutationBeforeOrAfterSlotWasPresent(mode, connectedToDocument)
+function testSlotchangeDoesFireAtInsertedAndDoesNotFireForMutationAfterRemoved(mode, connectedToDocument)
 {
-    var test = async_test('slotchange event must not fire on a slot element inside '
-        + treeName(mode, connectedToDocument)
-        + ' when the shadow host was mutated before the slot was inserted or after the slot was removed');
+    var test = async_test('slotchange event must fire on a slot element when a shadow host has a slotable and the slot was inserted'
+                        + ' and must not fire when the shadow host was mutated after the slot was removed inside '
+                        + treeName(mode, connectedToDocument));
 
     var host;
     var slot;
@@ -273,32 +273,32 @@
 
     setTimeout(function () {
         test.step(function () {
-            assert_equals(eventCount, 0,
-                'slotchange must not be fired on a slot element if the assigned nodes changed before the slot was inserted');
+            assert_equals(eventCount, 1,
+                          'slotchange must be fired on a slot element if there is assigned nodes when the slot was inserted');
             host.removeChild(host.firstChild);
         });
 
         setTimeout(function () {
             test.step(function () {
-                assert_equals(eventCount, 1,
-                    'slotchange must be fired exactly once after the assigned nodes change on a slot while the slot element was in the tree');
+                assert_equals(eventCount, 2,
+                              'slotchange must be fired after the assigned nodes change on a slot while the slot element was in the tree');
                 slot.parentNode.removeChild(slot);
                 host.appendChild(document.createElement('span'));
             });
 
             setTimeout(function () {
-                assert_equals(eventCount, 1,
-                    'slotchange must not be fired on a slot element if the assigned nodes changed after the slot was removed');
+                assert_equals(eventCount, 2,
+                              'slotchange must not be fired on a slot element if the assigned nodes changed after the slot was removed');
                 test.done();
             }, 1);
         }, 1);
     }, 1);
 }
 
-testSlotchangeDoesNotFireForMutationBeforeOrAfterSlotWasPresent('open', true);
-testSlotchangeDoesNotFireForMutationBeforeOrAfterSlotWasPresent('closed', true);
-testSlotchangeDoesNotFireForMutationBeforeOrAfterSlotWasPresent('open', false);
-testSlotchangeDoesNotFireForMutationBeforeOrAfterSlotWasPresent('closed', false);
+testSlotchangeDoesFireAtInsertedAndDoesNotFireForMutationAfterRemoved('open', true);
+testSlotchangeDoesFireAtInsertedAndDoesNotFireForMutationAfterRemoved('closed', true);
+testSlotchangeDoesFireAtInsertedAndDoesNotFireForMutationAfterRemoved('open', false);
+testSlotchangeDoesFireAtInsertedAndDoesNotFireForMutationAfterRemoved('closed', false);
 
 function testSlotchangeFiresOnTransientlyPresentSlot(mode, connectedToDocument)
 {
@@ -505,7 +505,11 @@
         innerSlot.addEventListener('slotchange', function (event) {
             event.stopPropagation();
             test.step(function () {
-                assert_equals(event.target, outerSlot, 'slotchange event\'s target must be the outer slot element');
+                if (innerSlotEventCount === 0) {
+                    assert_equals(event.target, innerSlot, 'slotchange event\'s target must be the inner slot element at 1st slotchange');
+                } else if (innerSlotEventCount === 1) {
+                    assert_equals(event.target, outerSlot, 'slotchange event\'s target must be the outer slot element at 2nd sltochange');
+                }
             });
             innerSlotEventCount++;
         });
@@ -521,7 +525,7 @@
         test.step(function () {
             assert_equals(outerSlotEventCount, 1,
                 'slotchange must be fired on a slot element if the assigned nodes changed');
-            assert_equals(innerSlotEventCount, 1,
+            assert_equals(innerSlotEventCount, 2,
                 'slotchange must be fired on a slot element and must bubble');
         });
         test.done();
diff --git a/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-expected.txt
new file mode 100644
index 0000000..b4b83e8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-expected.txt
@@ -0,0 +1,26 @@
+This is a testharness.js-based test.
+PASS Slots: Basic. 
+PASS Slots: Slots in closed. 
+PASS Slots: Slots not in a shadow tree. 
+FAIL Slots: Distributed nooes for Slots not in a shadow tree. assert_array_equals: lengths differ, expected 0 got 1
+PASS Slots: Name matching 
+PASS Slots: No direct host child. 
+PASS Slots: Default Slot. 
+PASS Slots: Slot in Slot does not matter in assignment. 
+PASS Slots: Slot is assigned to another slot 
+PASS Slots: Open > Closed. 
+PASS Slots: Closed > Closed. 
+PASS Slots: Closed > Open. 
+PASS Slots: Complex case: Basi line. 
+PASS Slots: Mutation: appendChild. 
+PASS Slots: Mutation: Change slot= attribute 1. 
+PASS Slots: Mutation: Change slot= attribute 2. 
+PASS Slots: Mutation: Change slot= attribute 3. 
+PASS Slots: Mutation: Remove a child. 
+PASS Slots: Mutation: Add a slot: after. 
+PASS Slots: Mutation: Add a slot: before. 
+PASS Slots: Mutation: Remove a slot. 
+PASS Slots: Mutation: Change slot name= attribute. 
+PASS Slots: Mutation: Change slot slot= attribute. 
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback-expected.txt
new file mode 100644
index 0000000..18e357b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback-expected.txt
@@ -0,0 +1,13 @@
+This is a testharness.js-based test.
+PASS Slots fallback: Basic. 
+PASS Slots fallback: Slots in Slots. 
+PASS Slots fallback: Fallback contents should not be used if a node is assigned. 
+PASS Slots fallback: Slots in Slots: Assinged nodes should be used as fallback contents of another slot 
+PASS Slots fallback: Complex case. 
+PASS Slots fallback: Mutation. Append fallback contents. 
+PASS Slots fallback: Mutation. Remove fallback contents. 
+PASS Slots fallback: Mutation. Assign a node to a slot so that fallback contens are no longer used. 
+PASS Slots fallback: Mutation. Remove an assigned node from a slot so that fallback contens will be used. 
+FAIL Slots fallback: Mutation.  Remove a slot which is a fallback content of another slot. assert_array_equals: fall back contents should be empty because s1 is not in a shadow tree. lengths differ, expected 0 got 1
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback-in-document-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback-in-document-expected.txt
index 8bd029e9..229f763 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback-in-document-expected.txt
+++ b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback-in-document-expected.txt
@@ -1,5 +1,5 @@
 This is a testharness.js-based test.
-FAIL Slot fallback content in document tree should be counted in flattened assigned nodes. assert_array_equals: lengths differ, expected 1 got 0
+FAIL Children of a slot in a document tree should not be counted in flattened assigned nodes. assert_array_equals: lengths differ, expected 1 got 0
 PASS Slot fallback content in shadow tree should be counted in flattened assigned nodes. 
 Harness: the test ran to completion.
 
diff --git a/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback-in-document.html b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback-in-document.html
index 91acc5d5..846f3e0 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback-in-document.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback-in-document.html
@@ -22,9 +22,8 @@
 
 test(() => {
   assert_array_equals(n1.innerSlot.assignedNodes(), [n1.slot]);
-  assert_array_equals(n1.innerSlot.assignedNodes({ flatten: true }),
-                      [n1.fallback]);
-}, 'Slot fallback content in document tree should be counted in flattened ' +
+  assert_array_equals(n1.innerSlot.assignedNodes({ flatten: true }), [n1.slot]);
+}, 'Children of a slot in a document tree should not be counted in flattened ' +
    'assigned nodes.');
 </script>
 
diff --git a/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback.html b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback.html
index 8721fe9..a8d60e8 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots-fallback.html
@@ -213,7 +213,8 @@
 
   assert_array_equals(n.s1.assignedNodes(), []);
 
-  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.f1]);
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [],
+                      'fall back contents should be empty because s1 is not in a shadow tree.');
   assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.f2]);
   assert_array_equals(n.s3.assignedNodes({ flatten: true }), [n.f2]);
   assert_array_equals(n.s4.assignedNodes({ flatten: true }), [n.f2, n.f4]);
diff --git a/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots.html b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots.html
index 67e1589..550d7d454 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/shadow-dom/slots.html
@@ -83,9 +83,9 @@
   assert_array_equals(n.s2.assignedNodes(), []);
   assert_array_equals(n.s3.assignedNodes(), []);
 
-  assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.c1]);
-  assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.c2, n.c3_1, n.c3_2]);
-  assert_array_equals(n.s3.assignedNodes({ flatten: true }), [n.c3_1, n.c3_2]);
+  assert_array_equals(n.s1.assignedNodes({ flatten: true }), []);
+  assert_array_equals(n.s2.assignedNodes({ flatten: true }), []);
+  assert_array_equals(n.s3.assignedNodes({ flatten: true }), []);
 }, 'Slots: Distributed nooes for Slots not in a shadow tree.');
 </script>
 
diff --git a/third_party/WebKit/LayoutTests/external/wpt/wasm/compile_worker.js b/third_party/WebKit/LayoutTests/external/wpt/wasm/compile_worker.js
new file mode 100644
index 0000000..e89065c3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/wasm/compile_worker.js
@@ -0,0 +1,11 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+this.importScripts("resources/load_wasm.js");
+
+onmessage = function(msg) {
+    createWasmModule()
+        .then(postMessage)
+
+}
diff --git a/third_party/WebKit/LayoutTests/external/wpt/wasm/incrementer.wasm b/third_party/WebKit/LayoutTests/external/wpt/wasm/incrementer.wasm
new file mode 100644
index 0000000..47afcde
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/wasm/incrementer.wasm
Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/blank.html b/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/blank.html
new file mode 100644
index 0000000..a3c3a46
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/blank.html
@@ -0,0 +1,2 @@
+<!DOCTYPE html>
+<title>Empty doc</title>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/frame.html b/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/frame.html
new file mode 100644
index 0000000..d1c83e1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/frame.html
@@ -0,0 +1,18 @@
+<script>
+function listener(event) {
+  var mod = event.data;
+  try {
+    var i = new WebAssembly.Instance(mod);
+    var ans = i.exports.increment(42);
+    event.source.postMessage(ans, event.origin);
+  } catch (e) {
+    event.source.postMessage(e, event.origin);
+  }
+}
+
+if (window.addEventListener){
+  addEventListener("message", listener, false)
+} else {
+  attachEvent("onmessage", listener)
+}
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/incrementer.wasm b/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/incrementer.wasm
new file mode 100644
index 0000000..47afcde
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/incrementer.wasm
Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/load_wasm.js b/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/load_wasm.js
new file mode 100644
index 0000000..5123246
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/load_wasm.js
@@ -0,0 +1,12 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+function createWasmModule() {
+    return fetch('incrementer.wasm')
+        .then(response => {
+            if (!response.ok) throw new Error(response.statusText);
+            return response.arrayBuffer();
+        })
+        .then(WebAssembly.compile);
+}
diff --git a/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/service-worker.js b/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/service-worker.js
new file mode 100644
index 0000000..bb0ec21
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/wasm/resources/service-worker.js
@@ -0,0 +1,26 @@
+var port;
+
+importScripts('load_wasm.js');
+
+self.onmessage = function(e) {
+    var message = e.data;
+    if ('port' in message) {
+        port = message.port;
+    }
+};
+
+// And an event listener:
+self.addEventListener('message', function(e) {
+    var message = e.data;
+    if ("compile" in message) {
+        createWasmModule()
+            .then(m => {
+                try {
+                    port.postMessage({type:"OK", module:m});
+                } catch (e) {
+                    port.postMessage({type:"SEND ERROR"});
+                }
+            })
+            .catch(e => port.postMessage({type:"OTHER ERROR"}));
+    }
+});
diff --git a/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_indexeddb_test.html b/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_indexeddb_test.html
new file mode 100644
index 0000000..ec91708
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_indexeddb_test.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/common/get-host-info.sub.js"></script>
+<script src="resources/load_wasm.js"></script>
+<script src="wasm_indexeddb_test.js"></script>
+</head>
+<body>
+<script>
+  if (window.location.origin != get_host_info().AUTHENTICATED_ORIGIN) {
+    window.location = get_host_info().AUTHENTICATED_ORIGIN + window.location.pathname;
+  } else {
+    promise_test(TestIndexedDBLoadStoreSecure, "serialize/deserialize to IndexedDB in secure context");
+  }
+</script>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_indexeddb_test.js b/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_indexeddb_test.js
new file mode 100644
index 0000000..301cbd2f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_indexeddb_test.js
@@ -0,0 +1,81 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+var db_name = 'db';
+var obj_store = 'store';
+var module_key = 'my_module';
+
+function createAndSaveToIndexedDB() {
+  return new Promise((resolve, reject) => {
+    createWasmModule()
+      .then(mod => {
+        var delete_request = indexedDB.deleteDatabase(db_name);
+        delete_request.onsuccess = function() {
+          var open_request = indexedDB.open(db_name);
+          open_request.onupgradeneeded = function() {
+            var db = open_request.result;
+            db.createObjectStore(obj_store);
+          };
+          open_request.onsuccess = function() {
+            var db = open_request.result;
+            var tx = db.transaction(obj_store, 'readwrite');
+            var store = tx.objectStore(obj_store);
+            try {
+              store.put(mod, module_key);
+            } catch(e) {
+              reject(e);
+              return;
+            }
+            tx.oncomplete = function() {
+              resolve();
+            };
+            tx.onabort = function() {
+              reject(transaction.error);
+            };
+          };
+        };
+      })
+      .catch(error => reject(error));
+  });
+}
+
+function loadFromIndexedDB(prev) {
+  return new Promise((resolve, reject) => {
+    prev.then(() => {
+      var open_request = indexedDB.open(db_name);
+      open_request.onsuccess = function() {
+        var db = open_request.result;
+        var tx = db.transaction(obj_store);
+        var store = tx.objectStore(obj_store);
+        var get_request = store.get(module_key);
+        get_request.onsuccess = function() {
+          var mod = get_request.result;
+          assert_true(mod instanceof WebAssembly.Module);
+          try {
+            var instance = new WebAssembly.Instance(mod);
+          } catch(e) {
+            reject(e);
+            return;
+          }
+          resolve(instance.exports.increment(1));
+        };
+      };
+    });
+  });
+}
+
+function TestIndexedDBLoadStoreSecure() {
+  return loadFromIndexedDB(createAndSaveToIndexedDB())
+    .then(res => assert_equals(res, 2),
+          error => assert_unreached(error));
+}
+
+function TestIndexedDBLoadStoreInsecure() {
+  return createAndSaveToIndexedDB()
+    .then(assert_unreached,
+          error => {
+            assert_true(error instanceof DOMException);
+            assert_equals(error.name, 'DataCloneError');
+          });
+}
diff --git a/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_local_iframe_test.html b/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_local_iframe_test.html
new file mode 100644
index 0000000..9ccebdc7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_local_iframe_test.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="resources/load_wasm.js"></script>
+<iframe src="resources/frame.html" id="iframe"></iframe>
+<script>
+  promise_test(async function() {
+    var mod = await createWasmModule();
+    assert_true(mod instanceof WebAssembly.Module);
+    var ans = await new Promise((resolve, reject) => {
+      var iframe = document.getElementById("iframe").contentWindow;
+      iframe.postMessage(mod, '*');
+      window.addEventListener("message", (reply) => resolve(reply.data), false);
+    });
+    assert_equals(ans, 43);
+  }, "send wasm module to iframe");
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_serialization_tests.html b/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_serialization_tests.html
new file mode 100644
index 0000000..49766c77
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_serialization_tests.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="resources/load_wasm.js"></script>
+<script src="wasm_serialization_tests.js"></script>
+<script>
+  promise_test(TestInstantiateInWorker, "serialize wasm to worker");
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_serialization_tests.js b/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_serialization_tests.js
new file mode 100644
index 0000000..3cc41661
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_serialization_tests.js
@@ -0,0 +1,18 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+function TestInstantiateInWorker() {
+  return createWasmModule()
+    .then((mod) => {
+      var worker = new Worker("wasm_serialization_worker.js");
+      return new Promise((resolve, reject) => {
+        worker.postMessage(mod);
+        worker.onmessage = function(event) {
+          resolve(event.data);
+        }
+      });
+    })
+    .then(data => assert_equals(data, 43))
+    .catch(error => assert_unreached(error));
+}
diff --git a/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_serialization_worker.js b/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_serialization_worker.js
new file mode 100644
index 0000000..3361ed7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_serialization_worker.js
@@ -0,0 +1,21 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+onmessage = function(e) {
+    var compiled_module = e.data;
+    var instance = new WebAssembly.Instance(compiled_module);
+    if (instance === undefined) {
+        postMessage("error!");
+        return;
+    }
+    var entrypoint = instance.exports["increment"];
+
+    if (typeof entrypoint !== "function") {
+        postMessage("error!");
+        return;
+    }
+
+    var ret = entrypoint(42);
+    postMessage(ret);
+}
diff --git a/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_service_worker_test.html b/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_service_worker_test.html
new file mode 100644
index 0000000..9d4afb8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/wasm/wasm_service_worker_test.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<title>Service Worker: postMessage with wasm</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/serviceworker/resources/test-helpers.js"></script>
+<script>
+  promise_test(async test => {
+    var registration = await service_worker_unregister_and_register(
+      test, 'resources/service-worker.js', 'resources/blank.html');
+      add_completion_callback(() => registration.unregister());
+      var worker = registration.installing;
+      var data = await new Promise((resolve, reject) => {
+        var messageChannel = new MessageChannel();
+        worker.postMessage({port: messageChannel.port2}, [messageChannel.port2]);
+        worker.postMessage({compile: true});
+        messageChannel.port1.onmessage = event => resolve(event.data);
+      });
+      assert_equals(data, null);
+  }, 'postMessaging wasm from a service worker should fail');
+</script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createAnswer.html b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createAnswer.html
index 63860b2..86e3863 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createAnswer.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createAnswer.html
@@ -10,6 +10,11 @@
   // Test is based on the following editor draft:
   // https://w3c.github.io/webrtc-pc/archives/20170515/webrtc.html
 
+  // The following helper functions are called from RTCPeerConnection-helper.js:
+  //   generateOffer()
+  //   generateAnswer()
+  //   test_never_resolve()
+
   /*
    * 4.3.2. createAnswer()
    */
diff --git a/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createDataChannel-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createDataChannel-expected.txt
index e090430..b6eb02ef 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createDataChannel-expected.txt
+++ b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createDataChannel-expected.txt
@@ -1,30 +1,42 @@
 This is a testharness.js-based test.
-PASS createDataChannel required arguments 
-PASS createDataChannel with closed connection 
-FAIL createDataChannel defaults assert_equals: maxPacketLifeTime expected (object) null but got (undefined) undefined
-PASS createDataChannel with label "foo" 
-PASS createDataChannel with label null 
-PASS createDataChannel with label undefined 
-PASS createDataChannel with label lone surrogate 
-PASS createDataChannel with ordered false 
-PASS createDataChannel with ordered null/undefined 
-FAIL createDataChannel with maxPacketLifeTime 0 assert_equals: expected (number) 0 but got (undefined) undefined
-PASS createDataChannel with maxRetransmits 0 
-FAIL createDataChannel with both maxPacketLifeTime and maxRetransmits assert_throws: function "() => pc.createDataChannel('', {
+PASS createDataChannel with no argument should throw TypeError 
+PASS createDataChannel with closed connection should throw InvalidStateError 
+FAIL createDataChannel attribute default values assert_equals: maxPacketLifeTime expected (object) null but got (undefined) undefined
+PASS createDataChannel with label "foo" should succeed 
+PASS createDataChannel with label null should succeed 
+PASS createDataChannel with label undefined should succeed 
+PASS createDataChannel with label lone surrogate should succeed 
+PASS createDataChannel with ordered false should succeed 
+PASS createDataChannel with ordered null/undefined should succeed 
+FAIL createDataChannel with maxPacketLifeTime 0 should succeed assert_equals: expected (number) 0 but got (undefined) undefined
+PASS createDataChannel with maxRetransmits 0 should succeed 
+FAIL createDataChannel with both maxPacketLifeTime and maxRetransmits should throw SyntaxError assert_throws: function "() => pc.createDataChannel('', {
     maxPacketLifeTime: 0,
     maxRetransmits: 0
   })" did not throw
-PASS createDataChannel with protocol "foo" 
-PASS createDataChannel with protocol null 
-PASS createDataChannel with protocol undefined 
-PASS createDataChannel with protocol lone surrogate 
-PASS createDataChannel with negotiated true 
-PASS createDataChannel with id -1 
-PASS createDataChannel with id 0 
-PASS createDataChannel with id 1 
-PASS createDataChannel with id 65534 
-FAIL createDataChannel with id 65535 assert_throws: function "() => pc.createDataChannel('', { id: id })" did not throw
-PASS createDataChannel with id 65536 
-FAIL createDataChannel with priority "high" assert_equals: expected (string) "high" but got (undefined) undefined
+PASS createDataChannel with protocol "foo" should succeed 
+PASS createDataChannel with protocol null should succeed 
+PASS createDataChannel with protocol undefined should succeed 
+PASS createDataChannel with protocol lone surrogate should succeed 
+PASS createDataChannel with negotiated true should succeed 
+PASS createDataChannel with id 0 should succeed 
+PASS createDataChannel with id 1 should succeed 
+PASS createDataChannel with id 65534 should succeed 
+PASS createDataChannel with id -1 should throw TypeError 
+FAIL createDataChannel with id 65535 should throw TypeError assert_throws: function "() => pc.createDataChannel('', { id })" did not throw
+PASS createDataChannel with id 65536 should throw TypeError 
+FAIL createDataChannel with priority "high" should succeed assert_equals: expected (string) "high" but got (undefined) undefined
+FAIL createDataChannel with invalid priority should throw TypeError assert_throws: function "() => pc.createDataChannel('', { priority: 'invalid' })" did not throw
+FAIL createDataChannel with negotiated false and long label should throw TypeError assert_throws: function "() =>
+    pc.createDataChannel('', {
+      label: ' '.repeat(65536),
+      negotiated: false
+    })" did not throw
+FAIL createDataChannel with negotiated false and long protocol should throw TypeError assert_throws: function "() =>
+    pc.createDataChannel('', {
+      protocol: ' '.repeat(65536),
+      negotiated: false
+    })" did not throw
+PASS createDataChannel with negotiated true and long label and long protocol should succeed 
 Harness: the test ran to completion.
 
diff --git a/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createDataChannel.html b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createDataChannel.html
index 9a50b18..1022e8f 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createDataChannel.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createDataChannel.html
@@ -1,26 +1,63 @@
 <!doctype html>
 <meta charset=utf-8>
-<title>RTCPeerConnection createDataChannel method</title>
+<title>RTCPeerConnection.prototype.createDataChannel</title>
 <script src=/resources/testharness.js></script>
 <script src=/resources/testharnessreport.js></script>
 <script>
 'use strict';
 
-test(() => {
-  const pc = new RTCPeerConnection;
-  assert_equals(pc.createDataChannel.length, 1);
-  assert_throws(new TypeError, () => pc.createDataChannel());
-}, 'createDataChannel required arguments');
+// Test is based on the following editor draft:
+// https://w3c.github.io/webrtc-pc/archives/20170605/webrtc.html
+
+/*
+  6.1.  RTCPeerConnection Interface Extensions
+
+    partial interface RTCPeerConnection {
+      RTCDataChannel createDataChannel(USVString label,
+                                        optional RTCDataChannelInit dataChannelDict);
+      ...
+    };
+
+  6.2.  RTCDataChannel
+    dictionary RTCDataChannelInit {
+      boolean         ordered = true;
+      unsigned short  maxPacketLifeTime;
+      unsigned short  maxRetransmits;
+      USVString       protocol = "";
+      boolean         negotiated = false;
+      [EnforceRange]
+      unsigned short  id;
+      RTCPriorityType priority = "low";
+    };
+ */
 
 test(() => {
-  const pc = new RTCPeerConnection;
+  const pc = new RTCPeerConnection();
+  assert_equals(pc.createDataChannel.length, 1);
+  assert_throws(new TypeError(), () => pc.createDataChannel());
+}, 'createDataChannel with no argument should throw TypeError');
+
+/*
+  6.2.  createDataChannel
+    2.  If connection's [[isClosed]] slot is true, throw an InvalidStateError.
+ */
+test(() => {
+  const pc = new RTCPeerConnection();
   pc.close();
   assert_equals(pc.signalingState, 'closed', 'signaling state');
   assert_throws('InvalidStateError', () => pc.createDataChannel(''));
-}, 'createDataChannel with closed connection');
+}, 'createDataChannel with closed connection should throw InvalidStateError');
 
+/*
+  6.2.  createDataChannel
+    4.  Initialize channel's label attribute to the value of the first argument.
+    5.  Set channel's ordered , maxPacketLifeTime , maxRetransmits , protocol,
+        negotiated , id and priority attributes to the values of the corresponding
+        members of the dataChannelDict argument, using a value of null if the
+        corresponding dictionary member is missing.
+ */
 test(() => {
-  const pc = new RTCPeerConnection;
+  const pc = new RTCPeerConnection();
   const channel = pc.createDataChannel('');
   assert_true(channel instanceof RTCDataChannel, 'is RTCDataChannel');
   assert_equals(channel.label, '', 'label');
@@ -33,8 +70,19 @@
   // and so the ID should be null.
   assert_equals(channel.id, null, 'id');
   assert_equals(channel.priority, 'low', 'priority');
-}, 'createDataChannel defaults');
+}, 'createDataChannel attribute default values');
 
+
+/*
+  6.2.  createDataChannel
+    4.  Initialize channel's label attribute to the value of the first argument.
+
+  [ECMA262] 7.1.12. ToString(argument)
+    undefined -> "undefined"
+    null -> "null"
+
+  [WebIDL] 3.10.15. Convert a DOMString to a sequence of Unicode scalar values
+ */
 const labels = [
   ['"foo"', 'foo', 'foo'],
   ['null', null, 'null'],
@@ -46,45 +94,78 @@
     const pc = new RTCPeerConnection;
     const channel = pc.createDataChannel(label);
     assert_equals(channel.label, expected);
-  }, 'createDataChannel with label ' + description);
+  }, `createDataChannel with label ${description} should succeed`);
 }
 
+/*
+  6.2.  RTCDataChannel
+    dictionary RTCDataChannelInit {
+      boolean         ordered = true;
+      ...
+    }
+ */
 test(() => {
-  const pc = new RTCPeerConnection;
+  const pc = new RTCPeerConnection();
   const channel = pc.createDataChannel('', { ordered: false });
   assert_equals(channel.ordered, false);
-}, 'createDataChannel with ordered false');
+}, 'createDataChannel with ordered false should succeed');
 
 // true as the default value of a boolean is confusing because null is converted
 // to false while undefined is converted to true.
 test(() => {
-  const pc = new RTCPeerConnection;
+  const pc = new RTCPeerConnection();
   const channel1 = pc.createDataChannel('', { ordered: null });
   assert_equals(channel1.ordered, false);
   const channel2 = pc.createDataChannel('', { ordered: undefined });
   assert_equals(channel2.ordered, true);
-}, 'createDataChannel with ordered null/undefined');
+}, 'createDataChannel with ordered null/undefined should succeed');
 
+/*
+  6.2.  RTCDataChannel
+    dictionary RTCDataChannelInit {
+      unsigned short  maxPacketLifeTime;
+      ...
+    }
+ */
 test(() => {
   const pc = new RTCPeerConnection;
   const channel = pc.createDataChannel('', { maxPacketLifeTime: 0 });
   assert_equals(channel.maxPacketLifeTime, 0);
-}, 'createDataChannel with maxPacketLifeTime 0');
+}, 'createDataChannel with maxPacketLifeTime 0 should succeed');
 
+/*
+  6.2.  RTCDataChannel
+    dictionary RTCDataChannelInit {
+      unsigned short  maxRetransmits;
+      ...
+    }
+ */
 test(() => {
   const pc = new RTCPeerConnection;
   const channel = pc.createDataChannel('', { maxRetransmits: 0 });
   assert_equals(channel.maxRetransmits, 0);
-}, 'createDataChannel with maxRetransmits 0');
+}, 'createDataChannel with maxRetransmits 0 should succeed');
 
+/*
+  6.2.  createDataChannel
+    8.  If both the maxPacketLifeTime and maxRetransmits attributes are set
+        (not null), throw a SyntaxError.
+ */
 test(() => {
   const pc = new RTCPeerConnection;
   assert_throws('SyntaxError', () => pc.createDataChannel('', {
     maxPacketLifeTime: 0,
     maxRetransmits: 0
   }));
-}, 'createDataChannel with both maxPacketLifeTime and maxRetransmits');
+}, 'createDataChannel with both maxPacketLifeTime and maxRetransmits should throw SyntaxError');
 
+/*
+  6.2.  RTCDataChannel
+    dictionary RTCDataChannelInit {
+      USVString       protocol = "";
+      ...
+    }
+ */
 const protocols = [
   ['"foo"', 'foo', 'foo'],
   ['null', null, 'null'],
@@ -94,36 +175,132 @@
 for (const [description, protocol, expected] of protocols) {
   test(() => {
     const pc = new RTCPeerConnection;
-    const channel = pc.createDataChannel('', { protocol: protocol });
+    const channel = pc.createDataChannel('', { protocol });
     assert_equals(channel.protocol, expected);
-  }, 'createDataChannel with protocol ' + description);
+  }, `createDataChannel with protocol ${description} should succeed`);
 }
 
+/*
+  6.2.  RTCDataChannel
+    dictionary RTCDataChannelInit {
+      boolean         negotiated = false;
+      ...
+    }
+ */
 test(() => {
   const pc = new RTCPeerConnection;
   const channel = pc.createDataChannel('', { negotiated: true });
   assert_equals(channel.negotiated, true);
-}, 'createDataChannel with negotiated true');
+}, 'createDataChannel with negotiated true should succeed');
 
-// |id| is an unsigned short using [EnforceRange]. Additionally,
-// https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-createdatachannel
-// says: "If id is equal to 65535, which is greater than the maximum allowed ID
-// of 65534 but still qualifies as an unsigned short, throw a TypeError."
-for (const id of [-1, 0, 1, 65534, 65535, 65536]) {
-  test(() => {
-    const pc = new RTCPeerConnection;
-    if (id >= 0 && id <= 65534) {
-      const channel = pc.createDataChannel('', { id: id });
-      assert_equals(channel.id, id);
-    } else {
-      assert_throws(new TypeError, () => pc.createDataChannel('', { id: id }));
+
+/*
+  6.2.  RTCDataChannel
+    dictionary RTCDataChannelInit {
+      [EnforceRange]
+      unsigned short  id;
+      ...
     }
-  }, 'createDataChannel with id ' + id);
+
+    createDataChannel
+      10. If id is equal to 65535, which is greater than the maximum allowed ID
+          of 65534 but still qualifies as an unsigned short, throw a TypeError.
+ */
+for (const id of [0, 1, 65534]) {
+  test(() => {
+    const pc = new RTCPeerConnection();
+    const channel = pc.createDataChannel('', { id });
+    assert_equals(channel.id, id);
+  }, `createDataChannel with id ${id} should succeed`);
 }
 
+for (const id of [-1, 65535, 65536]) {
+  test(() => {
+    const pc = new RTCPeerConnection();
+    assert_throws(new TypeError(), () => pc.createDataChannel('', { id }));
+  }, `createDataChannel with id ${id} should throw TypeError`);
+}
+
+/*
+  6.2.  RTCDataChannel
+    dictionary RTCDataChannelInit {
+      RTCPriorityType priority = "low";
+      ...
+    }
+
+  4.9.1.  RTCPriorityType Enum
+    enum RTCPriorityType {
+      "very-low",
+      "low",
+      "medium",
+      "high"
+    };
+ */
 test(() => {
-  const pc = new RTCPeerConnection;
-  const channel = pc.createDataChannel('', { priority: "high" });
-  assert_equals(channel.priority, "high");
-}, 'createDataChannel with priority "high"');
+  const pc = new RTCPeerConnection();
+  const channel = pc.createDataChannel('', { priority: 'high' });
+  assert_equals(channel.priority, 'high');
+}, 'createDataChannel with priority "high" should succeed');
+
+test(() => {
+  const pc = new RTCPeerConnection();
+  assert_throws(new TypeError(),
+    () => pc.createDataChannel('', { priority: 'invalid' }));
+}, 'createDataChannel with invalid priority should throw TypeError');
+
+/*
+  6.2.  createDataChannel
+    6.  If negotiated is false and label is longer than 65535 bytes long,
+        throw a TypeError.
+ */
+test(() => {
+  const pc = new RTCPeerConnection();
+  assert_throws(new TypeError(), () =>
+    pc.createDataChannel('', {
+      label: ' '.repeat(65536),
+      negotiated: false
+    }));
+}, 'createDataChannel with negotiated false and long label should throw TypeError');
+
+/*
+  6.2.  createDataChannel
+    7.  If negotiated is false and protocol is longer than 65535 bytes long,
+        throw a TypeError.
+ */
+test(() => {
+  const pc = new RTCPeerConnection();
+  assert_throws(new TypeError(), () =>
+    pc.createDataChannel('', {
+      protocol: ' '.repeat(65536),
+      negotiated: false
+    }));
+}, 'createDataChannel with negotiated false and long protocol should throw TypeError');
+
+test(() => {
+  const pc = new RTCPeerConnection();
+  pc.createDataChannel('', {
+    label: ' '.repeat(65536),
+    protocol: ' '.repeat(65536),
+    negotiated: true
+  });
+}, 'createDataChannel with negotiated true and long label and long protocol should succeed');
+
+/*
+  TODO
+  6.2.  createDataChannel
+    11. If the id attribute is null (due to no ID being passed into
+        createDataChannel), and the DTLS role of the SCTP transport has already
+        been negotiated, then initialize id to a value generated by the user
+        agent, according to [RTCWEB-DATA-PROTOCOL], and skip to the next step.
+        If no available ID could be generated, or if the value of the id member
+        of the dictionary is taken by an existing RTCDataChannel , throw a
+        ResourceInUse exception.
+
+  Untestable
+  6.2.  createDataChannel
+    9.  If an attribute, either maxPacketLifeTime or maxRetransmits , has been
+        set to indicate unreliable mode, and that value exceeds the maximum
+        value supported by the user agent, the value must be set to the user
+        agents maximum value.
+ */
 </script>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createOffer.html b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createOffer.html
index deab23ce..a717bf0 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createOffer.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-createOffer.html
@@ -10,6 +10,15 @@
   // Test is based on the following editor draft:
   // https://w3c.github.io/webrtc-pc/archives/20170515/webrtc.html
 
+  // The following helper functions are called from RTCPeerConnection-helper.js:
+  //   generateOffer()
+  //   generateAnswer()
+  //   countAudioLine()
+  //   countVideoLine()
+  //   test_state_change_event()
+  //   test_never_resolve()
+  //   assert_session_desc_equals()
+
   /*
    *  4.3.2.  createOffer()
    */
diff --git a/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription.html b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription.html
index 5b75534..be8ae58 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setLocalDescription.html
@@ -10,6 +10,15 @@
   // Test is based on the following editor draft:
   // https://w3c.github.io/webrtc-pc/archives/20170515/webrtc.html
 
+  // The following helper functions are called from RTCPeerConnection-helper.js:
+  //   generateOffer()
+  //   generateAnswer()
+  //   assert_session_desc_not_equals()
+  //   assert_session_desc_equals()
+  //   test_state_change_event()
+  //   test_never_resolve()
+
+
   /*
    * 4.3.2. setLocalDescription(offer)
    */
diff --git a/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setRemoteDescription.html b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setRemoteDescription.html
index 4ea18622..da1f488e 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setRemoteDescription.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCPeerConnection-setRemoteDescription.html
@@ -10,6 +10,14 @@
   // Test is based on the following editor draft:
   // https://w3c.github.io/webrtc-pc/archives/20170515/webrtc.html
 
+  // The following helper functions are called from RTCPeerConnection-helper.js:
+  //   generateOffer()
+  //   generateAnswer()
+  //   assert_session_desc_not_equals()
+  //   assert_session_desc_equals()
+  //   test_state_change_event()
+  //   test_never_resolve()
+
   /*
    *  4.3.2.  setRemoteDescription(offer)
    */
diff --git a/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCSctpTransport-constructor-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCSctpTransport-constructor-expected.txt
new file mode 100644
index 0000000..f4f36f4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCSctpTransport-constructor-expected.txt
@@ -0,0 +1,5 @@
+This is a testharness.js-based test.
+FAIL setRemoteDescription() with answer containing data media should initialize pc.sctp assert_equals: expected (object) null but got (undefined) undefined
+FAIL setLocalDescription() with answer containing data media should initialize pc.sctp assert_equals: expected (object) null but got (undefined) undefined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCSctpTransport-constructor.html b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCSctpTransport-constructor.html
new file mode 100644
index 0000000..f840f1e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/webrtc/RTCSctpTransport-constructor.html
@@ -0,0 +1,89 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>RTCSctpTransport constructor</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="RTCPeerConnection-helper.js"></script>
+<script>
+  'use strict';
+
+  // Test is based on the following editor draft:
+  // https://w3c.github.io/webrtc-pc/archives/20170515/webrtc.html
+
+  // The following helper functions are called from RTCPeerConnection-helper.js:
+  //   generateOffer()
+  //   generateAnswer()
+
+  /*
+    6.1.  RTCPeerConnection Interface Extensions
+      partial interface RTCPeerConnection {
+        readonly attribute RTCSctpTransport? sctp;
+        ...
+      };
+
+      1.1.  RTCSctpTransport Interface
+        interface RTCSctpTransport {
+          readonly attribute RTCDtlsTransport transport;
+          readonly attribute unsigned long    maxMessageSize;
+        };
+
+    4.3.1.  Operation
+      When the RTCPeerConnection() constructor is invoked
+        8.  Let connection have an [[sctpTransport]] internal slot,
+            initialized to null.
+
+      To set an RTCSessionDescription description
+      6.  If description is of type "answer" or "pranswer", then run the
+          following steps:
+        1.  If description initiates the establishment of a new SCTP
+            association, as defined in [SCTP-SDP], Sections 10.3 and 10.4,
+            set the value of connection's [[sctpTransport]] internal slot
+            to a newly created RTCSctpTransport.
+   */
+
+  promise_test(t => {
+    const pc = new RTCPeerConnection();
+    assert_equals(pc.sctp, null);
+    pc.createDataChannel('test');
+
+    return pc.createOffer()
+    .then(offer =>
+      pc.setLocalDescription(offer)
+      .then(() => generateAnswer(offer)))
+    .then(answer => pc.setRemoteDescription(answer))
+    .then(() => {
+      const { sctp } = pc;
+      assert_not_equals(sctp, null);
+      assert_true(sctp instanceof RTCSctpTransport,
+        'Expect pc.sctp to be instance of RTCSctpTransport');
+
+      assert_true(sctp.transport instanceof RTCDtlsTransport,
+        'Expect sctp.transport to be instance of RTCDtlsTransport');
+
+      assert_true(typeof sctp.maxMessageSize, 'number',
+        'Expect sctp.maxMessageSize to be a number');
+    });
+  }, 'setRemoteDescription() with answer containing data media should initialize pc.sctp');
+
+  promise_test(t => {
+    const pc = new RTCPeerConnection();
+    assert_equals(pc.sctp, null);
+
+    return generateOffer({ data: true })
+    .then(offer => pc.setRemoteDescription(offer))
+    .then(() => pc.createAnswer())
+    .then(answer => pc.setLocalDescription(answer))
+    .then(() => {
+      const { sctp } = pc;
+      assert_not_equals(sctp, null);
+      assert_true(sctp instanceof RTCSctpTransport,
+        'Expect pc.sctp to be instance of RTCSctpTransport');
+
+      assert_true(sctp.transport instanceof RTCDtlsTransport,
+        'Expect sctp.transport to be instance of RTCDtlsTransport');
+
+      assert_true(typeof sctp.maxMessageSize, 'number',
+        'Expect sctp.maxMessageSize to be a number');
+    });
+  }, 'setLocalDescription() with answer containing data media should initialize pc.sctp');
+</script>
diff --git a/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/change-inside-percent-height.html b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/change-inside-percent-height.html
new file mode 100644
index 0000000..86545491
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/change-inside-percent-height.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<p>There should be a blue square below.</p>
+<div id="container" style="float:left; height:100px; background:blue;" data-expected-width="100">
+    <div style="height:100%;">
+        <div id="boo" style="display:none; width:100px; height:1px;"></div>
+        <div style="width:10px; height:1px;"></div>
+    </div>
+</div>
+<div style="clear:both;"></div>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../../resources/check-layout-th.js"></script>
+<script>
+    document.body.offsetTop;
+    document.getElementById("boo").style.display = "block";
+    checkLayout("#container");
+</script>
diff --git a/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/change-inside-percent-padding.html b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/change-inside-percent-padding.html
new file mode 100644
index 0000000..e4d495d3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/change-inside-percent-padding.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<p>There should be a blue square below.</p>
+<div id="container" style="float:left; height:100px; background:blue;" data-expected-width="100">
+    <div style="padding-right:10%;">
+        <div id="boo" style="display:none; width:100px; height:1px;"></div>
+        <div style="width:10px; height:1px;"></div>
+    </div>
+</div>
+<div style="clear:both;"></div>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../../resources/check-layout-th.js"></script>
+<script>
+    document.body.offsetTop;
+    document.getElementById("boo").style.display = "block";
+    checkLayout("#container");
+</script>
diff --git a/third_party/WebKit/LayoutTests/fast/dom/custom/svg-use-shadow-tree-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/custom/svg-use-shadow-tree-expected.txt
index 545ef949..7cdcb3b8 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/custom/svg-use-shadow-tree-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/dom/custom/svg-use-shadow-tree-expected.txt
@@ -1,7 +1,7 @@
-CONSOLE ERROR: line 2542: Uncaught Error: assert_false: Should not call createdCallback in UA ShadowRoot. expected false got true
-CONSOLE ERROR: line 2542: Uncaught Error: assert_false: Should not call attachedCallback in UA ShadowRoot. expected false got true
-CONSOLE ERROR: line 2542: Uncaught Error: assert_false: Should not call createdCallback in UA ShadowRoot. expected false got true
-CONSOLE ERROR: line 2542: Uncaught Error: assert_false: Should not call attachedCallback in UA ShadowRoot. expected false got true
+CONSOLE ERROR: line 2569: Uncaught Error: assert_false: Should not call createdCallback in UA ShadowRoot. expected false got true
+CONSOLE ERROR: line 2569: Uncaught Error: assert_false: Should not call attachedCallback in UA ShadowRoot. expected false got true
+CONSOLE ERROR: line 2569: Uncaught Error: assert_false: Should not call createdCallback in UA ShadowRoot. expected false got true
+CONSOLE ERROR: line 2569: Uncaught Error: assert_false: Should not call attachedCallback in UA ShadowRoot. expected false got true
 This is a testharness.js-based test.
 Harness Error. harness_status.status = 1 , harness_status.message = Uncaught Error: assert_false: Should not call attachedCallback in UA ShadowRoot. expected false got true
 PASS SVG <use> shadow trees should not be exposed through custom elements. 
diff --git a/third_party/WebKit/LayoutTests/http/tests/webaudio/autoplay-crossorigin-expected.txt b/third_party/WebKit/LayoutTests/http/tests/webaudio/autoplay-crossorigin-expected.txt
index b5910f1..1b18cfdf 100644
--- a/third_party/WebKit/LayoutTests/http/tests/webaudio/autoplay-crossorigin-expected.txt
+++ b/third_party/WebKit/LayoutTests/http/tests/webaudio/autoplay-crossorigin-expected.txt
@@ -1,7 +1,7 @@
 CONSOLE WARNING: line 13: An AudioContext in a cross origin iframe must be created or resumed from a user gesture to enable audio output.
 CONSOLE WARNING: line 23: An AudioContext in a cross origin iframe must be created or resumed from a user gesture to enable audio output.
 CONSOLE WARNING: line 36: An AudioContext in a cross origin iframe must be created or resumed from a user gesture to enable audio output.
-CONSOLE ERROR: line 2542: Uncaught Error: assert_equals: stateAfterClick expected "running" but got "suspended"
+CONSOLE ERROR: line 2569: Uncaught Error: assert_equals: stateAfterClick expected "running" but got "suspended"
 This is a testharness.js-based test.
 Harness Error. harness_status.status = 1 , harness_status.message = Uncaught Error: assert_equals: stateAfterClick expected "running" but got "suspended"
 PASS Verify that autoplaying Web Audio from a cross origin iframe is blocked by mediaPlaybackRequiresUserGesture 
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/basic/comments-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/basic/comments-expected.txt
index 82a10a6..1a9619c 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/basic/comments-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/basic/comments-expected.txt
@@ -37,7 +37,6 @@
           text run at (0,208) width 176: ".eight {color: green;}"
           text run at (176,208) width 0: " "
           text run at (0,224) width 0: " "
-      LayoutBlockFlow {HR} at (0,289) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,307) size 769x20 [color=#008000]
         LayoutText {#text} at (0,0) size 194x19
           text run at (0,0) width 194: "This sentence should be green."
@@ -98,3 +97,5 @@
               LayoutBlockFlow {P} at (4,256) size 194x20 [color=#008000]
                 LayoutText {#text} at (0,0) size 194x19
                   text run at (0,0) width 194: "This sentence should be green."
+layer at (8,297) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,289) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/basic/containment-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/basic/containment-expected.txt
index a098c9e..3e77590 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/basic/containment-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/basic/containment-expected.txt
@@ -28,7 +28,6 @@
           text run at (168,128) width 0: " "
           text run at (0,144) width 24: "-->"
           text run at (24,144) width 0: " "
-      LayoutBlockFlow {HR} at (0,209) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,227) size 769x20
         LayoutText {#text} at (0,0) size 404x19
           text run at (0,0) width 404: "This sentence should be underlined due to the linked style sheet "
@@ -208,3 +207,5 @@
               LayoutBlockFlow {P} at (4,360) size 747x20 [color=#008000]
                 LayoutText {#text} at (0,0) size 203x19
                   text run at (0,0) width 203: "This paragraph should be green."
+layer at (8,217) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,209) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/basic/contextual_selectors-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/basic/contextual_selectors-expected.txt
index 2ea3da94..0c57862 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/basic/contextual_selectors-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/basic/contextual_selectors-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 224: "EM, UL LI LI {color: green;}"
           text run at (224,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 784x20 [color=#000080]
         LayoutText {#text} at (0,0) size 625x19
           text run at (0,0) width 625: "This sentence should be navy serif in the first half of the page, but purple and sans-serif in the table."
@@ -80,3 +79,5 @@
                       LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
                       LayoutText {#text} at (0,0) size 136x19
                         text run at (0,0) width 136: "This should be green."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/basic/grouping-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/basic/grouping-expected.txt
index 9b3f2e4..2b6ca6d 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/basic/grouping-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/basic/grouping-expected.txt
@@ -11,7 +11,6 @@
           text run at (0,0) width 272: ".one, .two, .three {color: green;}"
           text run at (272,0) width 0: " "
           text run at (0,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,99) size 784x20 [color=#008000]
         LayoutText {#text} at (0,0) size 194x19
           text run at (0,0) width 194: "This sentence should be green."
@@ -42,3 +41,5 @@
               LayoutBlockFlow {P} at (4,76) size 194x20 [color=#008000]
                 LayoutText {#text} at (0,0) size 194x19
                   text run at (0,0) width 194: "This sentence should be green."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/basic/id_as_selector-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/basic/id_as_selector-expected.txt
index 74fa0af1..05ba2d1 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/basic/id_as_selector-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/basic/id_as_selector-expected.txt
@@ -23,7 +23,6 @@
           text run at (0,96) width 240: "P#five, P#five2 {color: blue;}"
           text run at (240,96) width 0: " "
           text run at (0,112) width 240: "P#six, P#six2 {color: purple;}"
-      LayoutBlockFlow {HR} at (0,177) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,195) size 769x20 [color=#008000]
         LayoutText {#text} at (0,0) size 194x19
           text run at (0,0) width 194: "This sentence should be green."
@@ -90,3 +89,5 @@
                   LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
                   LayoutText {#text} at (0,0) size 237x19
                     text run at (0,0) width 237: "This sentence should NOT be purple."
+layer at (8,185) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,177) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/basic/inheritance-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/basic/inheritance-expected.txt
index 880003e..385205e 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/basic/inheritance-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/basic/inheritance-expected.txt
@@ -22,7 +22,6 @@
           text run at (152,80) width 0: " "
           text run at (0,96) width 184: ".three {color: purple;}"
           text run at (184,96) width 0: " "
-      LayoutBlockFlow {HR} at (0,161) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {H3} at (0,181.72) size 784x24 [color=#0000FF]
         LayoutText {#text} at (0,0) size 220x22
           text run at (0,0) width 220: "This sentence should show "
@@ -187,3 +186,5 @@
                     text run at (354,0) width 173: "this part (which is spanned)"
                 LayoutText {#text} at (527,0) size 4x19
                   text run at (527,0) width 4: "."
+layer at (8,169) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border-expected.txt
index 4b3c862..088e98e 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border-expected.txt
@@ -26,7 +26,6 @@
           text run at (168,112) width 0: " "
           text run at (0,128) width 232: "TD {border: 2px solid green;}"
           text run at (232,128) width 0: " "
-      LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,211) size 769x40
         LayoutText {#text} at (0,0) size 748x39
           text run at (0,0) width 627: "Note that all table cells on this page should have a two-pixel solid green border along all four sides. "
@@ -184,3 +183,5 @@
               LayoutBlockFlow {P} at (5,600) size 743x20
                 LayoutText {#text} at (0,0) size 175x19
                   text run at (0,0) width 175: "This is an unstyled element."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom-expected.txt
index 4461804..e44fb27 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom-expected.txt
@@ -16,7 +16,6 @@
           text run at (344,32) width 0: " "
           text run at (0,48) width 288: "TD {border-bottom: green 2px solid;}"
           text run at (288,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x40
         LayoutText {#text} at (0,0) size 731x39
           text run at (0,0) width 658: "Note that all table cells on this page should have a two-pixel solid green border along their bottom sides. "
@@ -161,3 +160,5 @@
                       text run at (131,20) width 50: "beneath"
                   LayoutText {#text} at (181,20) size 390x19
                     text run at (181,20) width 390: " the nested list (below the line \"...nested within the list item.\")."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom_inline-expected.txt
index d9ca275..46324cd2 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 320: ".two {border-bottom: purple thin solid;}"
           text run at (320,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 666x19
           text run at (0,0) width 666: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
@@ -57,3 +56,5 @@
                   text run at (463,20) width 292: ", which should have a thin solid purple bottom"
                   text run at (0,40) width 49: "border. "
                   text run at (48,40) width 430: "The line-height of the parent element should not change on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom_width-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom_width-expected.txt
index 2882e86..46eecd0 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (440,64) width 0: " "
           text run at (0,80) width 272: ".five {border-bottom-width: 25px;}"
           text run at (272,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20
         LayoutText {#text} at (0,0) size 157x19
           text run at (0,0) width 157: "(These will only work if "
@@ -101,3 +100,5 @@
               LayoutBlockFlow {P} at (4,327) size 687x20 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 203x19
                   text run at (0,0) width 203: "This element has a class of zero."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom_width_inline-expected.txt
index 5cc63bb..aaa790c 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_bottom_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (432,16) width 0: " "
           text run at (0,32) width 280: ".three {border-bottom-width: 25px;}"
           text run at (280,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x108 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
         LayoutText {#text} at (3,3) size 172x19
           text run at (3,3) width 172: "This element has a class of "
@@ -85,3 +84,5 @@
                 LayoutText {#text} at (248,43) size 751x39
                   text run at (248,43) width 506: ", which should have no bottom border width or visible border because no border"
                   text run at (3,63) width 83: "style was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_color-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_color-expected.txt
index b3fd76e69..0a59aac0 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_color-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_color-expected.txt
@@ -14,7 +14,6 @@
           text run at (568,16) width 0: " "
           text run at (0,32) width 728: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
           text run at (728,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x26 [border: (3px solid #800080)]
         LayoutText {#text} at (3,3) size 357x19
           text run at (3,3) width 357: "This element should have a purple border surrounding it."
@@ -47,3 +46,5 @@
                 LayoutText {#text} at (3,3) size 740x39
                   text run at (3,3) width 740: "This element should be surrounded by a medium width border which is purple on top, green on the right side, blue on"
                   text run at (3,23) width 245: "the bottom, and yellow on the left side."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_color_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_color_inline-expected.txt
index 79bcc152..28bc9a3 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_color_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_color_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (568,16) width 0: " "
           text run at (0,32) width 728: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
           text run at (728,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x80 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 677x19
           text run at (0,0) width 677: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
@@ -72,3 +71,5 @@
                   text run at (0,40) width 620: "the first and second cases, and a purple-green-blue-yellow medium-width solid border in the third. "
                   text run at (620,40) width 136: "The line-height of the"
                   text run at (0,60) width 327: "parent element should not change at all, on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_inline-expected.txt
index 12d947c..9e6aee4 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 256: ".two {border: 10px olive inset;}"
           text run at (256,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 677x19
           text run at (0,0) width 677: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
@@ -56,3 +55,5 @@
                 LayoutText {#text} at (431,20) size 762x39
                   text run at (431,20) width 331: ", which should result in a 10-pixel inset olive border."
                   text run at (0,40) width 429: "The line-height of the parent element should not change on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left-expected.txt
index 5ad51b1a..e8bd419 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left-expected.txt
@@ -22,7 +22,6 @@
           text run at (328,80) width 0: " "
           text run at (0,96) width 272: "TD {border-left: green 2px solid;}"
           text run at (272,96) width 0: " "
-      LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (20,179) size 749x40
         LayoutText {#text} at (0,0) size 707x39
           text run at (0,0) width 634: "Note that all table cells on this page should have a two-pixel solid green border along their left sides. "
@@ -160,3 +159,5 @@
                     text run at (3,0) width 691: "Each list item in this 'parent' list should have a medium-width border along its left side, in each of three colors."
                     text run at (3,20) width 641: "The first item's border should travel the entire height the nested list (to end near the baseline of the line"
                     text run at (3,40) width 597: "\"...nested within the list item.\"), even though the nested list does not have any border styles set."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left_inline-expected.txt
index 0cef3d89..2ba28bc1 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left_inline-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 304: ".two {border-left: purple thin solid;}"
           text run at (304,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (20,131) size 764x60 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 760x19
           text run at (0,0) width 760: "This paragraph has a background color of silver and a 20-pixel left margin, and it contains inline elements with classes of"
@@ -59,3 +58,5 @@
                   text run at (579,20) width 138: ", which should have a"
                   text run at (0,40) width 179: "thin solid purple left border. "
                   text run at (178,40) width 430: "The line-height of the parent element should not change on any line."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left_width-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left_width-expected.txt
index 6ecd9b46..c86cbcfa 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (424,64) width 0: " "
           text run at (0,80) width 256: ".five {border-left-width: 25px;}"
           text run at (256,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20
         LayoutText {#text} at (0,0) size 157x19
           text run at (0,0) width 157: "(These will only work if "
@@ -101,3 +100,5 @@
                     text run at (513,3) width 96: "border-style"
                 LayoutText {#text} at (609,0) size 54x19
                   text run at (609,0) width 54: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left_width_inline-expected.txt
index 040b9c1d..289bb38 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_left_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (416,16) width 0: " "
           text run at (0,32) width 264: ".three {border-left-width: 25px;}"
           text run at (264,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x86 [border: (3px solid #000000) (25px solid #000000)]
         LayoutText {#text} at (25,3) size 172x19
           text run at (25,3) width 172: "This element has a class of "
@@ -95,3 +94,5 @@
                 LayoutText {#text} at (355,43) size 693x39
                   text run at (355,43) width 363: ", which should have no left border width or visible border"
                   text run at (25,63) width 202: "because no border style was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right-expected.txt
index 7a49cc7..550508a9 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 312: ".two {border-right: purple thin solid;}"
           text run at (312,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 764x60 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 752x39
           text run at (0,0) width 752: "This paragraph has a background color of silver and a 20-pixel right margin, and it contains inline elements with classes"
@@ -60,3 +59,5 @@
                   text run at (588,20) width 138: ", which should have a"
                   text run at (0,40) width 188: "thin solid purple right border. "
                   text run at (187,40) width 430: "The line-height of the parent element should not change on any line."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right_inline-expected.txt
index 776991a..e6faca3 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right_inline-expected.txt
@@ -22,7 +22,6 @@
           text run at (336,80) width 0: " "
           text run at (0,96) width 280: "TD {border-right: green 2px solid;}"
           text run at (280,96) width 0: " "
-      LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,179) size 749x40
         LayoutText {#text} at (0,0) size 716x39
           text run at (0,0) width 643: "Note that all table cells on this page should have a two-pixel solid green border along their right sides. "
@@ -164,3 +163,5 @@
                     text run at (601,40) width 76: "The borders"
                     text run at (0,60) width 668: "should line up together at the right edge of the document's body, as each list element has a default width of"
                     text run at (0,80) width 41: "100%."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right_width-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right_width-expected.txt
index 22a7aa2c..d2aa7db 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (432,64) width 0: " "
           text run at (0,80) width 272: ".five {border-right-width: 100px;}"
           text run at (272,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20
         LayoutText {#text} at (0,0) size 157x19
           text run at (0,0) width 157: "(These will only work if "
@@ -102,3 +101,5 @@
                     text run at (522,3) width 96: "border-style"
                 LayoutText {#text} at (618,0) size 54x19
                   text run at (618,0) width 54: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right_width_inline-expected.txt
index bde86ba..bb033458 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_right_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (424,16) width 0: " "
           text run at (0,32) width 272: ".three {border-right-width: 25px;}"
           text run at (272,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x86 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
         LayoutText {#text} at (3,3) size 172x19
           text run at (3,3) width 172: "This element has a class of "
@@ -95,3 +94,5 @@
                 LayoutText {#text} at (333,43) size 702x39
                   text run at (333,43) width 372: ", which should have no right border width or visible border"
                   text run at (3,63) width 202: "because no border style was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_style-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_style-expected.txt
index 2307f29..bfd7463 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_style-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_style-expected.txt
@@ -32,7 +32,6 @@
           text run at (368,160) width 0: " "
           text run at (0,176) width 552: ".eleven {border-style: none; border-color: red; border-width: thick;}"
           text run at (552,176) width 0: " "
-      LayoutBlockFlow {HR} at (0,241) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,259) size 769x30 [border: (5px dotted #000000)]
         LayoutText {#text} at (5,5) size 472x19
           text run at (5,5) width 472: "This paragraph should have a thick black dotted border all the way around."
@@ -119,3 +118,5 @@
               LayoutBlockFlow {P} at (4,504) size 747x20
                 LayoutText {#text} at (0,0) size 278x19
                   text run at (0,0) width 278: "This paragraph should have no border at all."
+layer at (8,249) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,241) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_style_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_style_inline-expected.txt
index d285584..8ff3921f 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_style_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_style_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (544,16) width 0: " "
           text run at (0,32) width 568: ".three {border-style: none; border-color: purple; border-width: thick;}"
           text run at (568,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 664x19
           text run at (0,0) width 664: "This is an unstyled element, save for the background color, and it contains inline elements with classes of "
@@ -68,3 +67,5 @@
                 LayoutText {#text} at (65,40) size 687x19
                   text run at (65,40) width 254: ", which should result in no border at all. "
                   text run at (319,40) width 433: "The line-height of the parent element should not change, on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top-expected.txt
index ce22c311..4bcea375 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top-expected.txt
@@ -16,7 +16,6 @@
           text run at (320,32) width 0: " "
           text run at (0,48) width 264: "TD {border-top: green 2px solid;}"
           text run at (264,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x40
         LayoutText {#text} at (0,0) size 755x39
           text run at (0,0) width 634: "Note that all table cells on this page should have a two-pixel solid green border along their top sides. "
@@ -149,3 +148,5 @@
                   LayoutListMarker (anonymous) at (-18,3) size 7x19: bullet
                   LayoutText {#text} at (0,3) size 480x19
                     text run at (0,3) width 480: "Each list item in this list should have a medium-width black border at its top."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top_inline-expected.txt
index a306882..65b75a3 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 296: ".two {border-top: purple thin solid;}"
           text run at (296,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 666x19
           text run at (0,0) width 666: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
@@ -57,3 +56,5 @@
                 LayoutText {#text} at (439,20) size 756x39
                   text run at (439,20) width 317: ", which should have a thin solid purple top border."
                   text run at (0,40) width 429: "The line-height of the parent element should not change on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top_width-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top_width-expected.txt
index 2beeb0e..6b05407 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (416,64) width 0: " "
           text run at (0,80) width 248: ".five {border-top-width: 25px;}"
           text run at (248,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20
         LayoutText {#text} at (0,0) size 157x19
           text run at (0,0) width 157: "(These will only work if "
@@ -95,3 +94,5 @@
                     text run at (527,3) width 96: "border-style"
                 LayoutText {#text} at (623,0) size 54x19
                   text run at (623,0) width 54: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top_width_inline-expected.txt
index d47d849..62c8bdd4 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_top_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (408,16) width 0: " "
           text run at (0,32) width 256: ".three {border-top-width: 25px;}"
           text run at (256,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x88 [border: (25px solid #000000) (3px solid #000000)]
         LayoutText {#text} at (3,25) size 172x19
           text run at (3,25) width 172: "This element has a class of "
@@ -84,3 +83,5 @@
                 LayoutText {#text} at (234,65) size 746x39
                   text run at (234,65) width 515: ", which should have no top border width or visible border because no border style"
                   text run at (3,85) width 50: "was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_width-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_width-expected.txt
index ce76531..fda2646 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (384,64) width 0: " "
           text run at (0,80) width 216: ".five {border-width: 25px;}"
           text run at (216,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20
         LayoutText {#text} at (0,0) size 157x19
           text run at (0,0) width 157: "(These will only work if "
@@ -95,3 +94,5 @@
                     text run at (498,3) width 96: "border-style"
                 LayoutText {#text} at (594,0) size 54x19
                   text run at (594,0) width 54: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_width_inline-expected.txt
index 547baec..6465ff64 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/border_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (376,16) width 0: " "
           text run at (0,32) width 224: ".three {border-width: 25px;}"
           text run at (224,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x110 [border: (25px solid #000000)]
         LayoutText {#text} at (25,25) size 172x19
           text run at (25,25) width 172: "This element has a class of "
@@ -83,3 +82,5 @@
                 LayoutText {#text} at (713,45) size 692x39
                   text run at (713,45) width 4: ","
                   text run at (25,65) width 430: "which should have no border width because no border style was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/clear-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/clear-expected.txt
index 92368dc..345d819 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/clear-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/clear-expected.txt
@@ -16,7 +16,6 @@
           text run at (168,32) width 0: " "
           text run at (0,48) width 160: ".four {clear: none;}"
           text run at (160,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutImage (floating) {IMG} at (0,123) size 15x50
       LayoutBlockFlow {P} at (0,131) size 769x20
         LayoutText {#text} at (18,0) size 594x19
@@ -89,3 +88,5 @@
                   text run at (18,0) width 390: "This paragraph should be between both tall orange rectangles."
               LayoutBlockFlow (anonymous) at (4,394) size 658x20
                 LayoutBR {BR} at (18,0) size 0x19
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/clear_float-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/clear_float-expected.txt
index 745c91eb..088bc55 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/clear_float-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/clear_float-expected.txt
@@ -24,7 +24,6 @@
           text run at (0,112) width 480: "             color: black; background: yellow; clear: none;}"
           text run at (480,112) width 0: " "
           text run at (0,128) width 0: " "
-      LayoutBlockFlow {HR} at (0,190) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (floating) {DIV} at (0,200) size 192x125.38 [color=#FFFFFF] [bgcolor=#008000]
         LayoutBlockFlow {H1} at (8,8) size 176x23
           LayoutText {#text} at (0,0) size 84x22
@@ -158,3 +157,5 @@
                     text run at (0,0) width 298: "The top of the yellow rectangle (to which this"
                     text run at (0,20) width 298: "paragraph belongs) should be vertically aligned"
                     text run at (0,40) width 219: "with the top of the green rectangle."
+layer at (8,198) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,190) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float-expected.txt
index ae5cbb34..d306f80 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 160: ".two {float: right;}"
           text run at (160,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutImage (floating) {IMG} at (0,107) size 15x50
       LayoutBlockFlow {P} at (0,115) size 784x40
         LayoutText {#text} at (15,0) size 763x39
@@ -22,7 +21,6 @@
           text run at (15,20) width 212: "which has been floated to the left."
       LayoutBlockFlow (anonymous) at (0,171) size 784x20
         LayoutBR {BR} at (0,0) size 0x19
-      LayoutBlockFlow {HR} at (0,199) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutImage (floating) {IMG} at (769,209) size 15x50
       LayoutBlockFlow {P} at (0,217) size 784x40
         LayoutText {#text} at (0,0) size 730x39
@@ -49,10 +47,15 @@
                   text run at (15,20) width 254: "image which has been floated to the left."
               LayoutBlockFlow (anonymous) at (4,60) size 762x20
                 LayoutBR {BR} at (0,0) size 0x19
-              LayoutBlockFlow {HR} at (4,88) size 762x2 [border: (1px inset #EEEEEE)]
               LayoutImage (floating) {IMG} at (751,98) size 15x50
               LayoutBlockFlow {P} at (4,106) size 762x40
                 LayoutText {#text} at (0,0) size 730x39
                   text run at (0,0) width 607: "This text should be flowing past a tall orange rectangle on the right side of the browser window. "
                   text run at (606,0) width 124: "In this case, it is the"
                   text run at (0,20) width 263: "image which has been floated to the right."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,207) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,199) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (25,398) size 762x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,88) size 762x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float_elements_in_series-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float_elements_in_series-expected.txt
index 28431d1..527a8af1 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float_elements_in_series-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float_elements_in_series-expected.txt
@@ -32,7 +32,6 @@
           text run at (0,176) width 200: "TABLE {margin: 20px 0px;}"
           text run at (200,176) width 0: " "
           text run at (0,192) width 0: " "
-      LayoutBlockFlow {HR} at (0,254) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,264) size 769x40
         LayoutText {#text} at (0,0) size 769x39
           text run at (0,0) width 769: "The four floating DIV elements below should appear next to each other horizontally. The table at the bottom of this page"
@@ -157,6 +156,8 @@
                         LayoutBlockFlow {IMG} at (0,0) size 100x1
                       LayoutTableCell {TD} at (600,10) size 20x1 [bgcolor=#000000] [r=0 c=14 rs=1 cs=1]
                         LayoutBlockFlow {IMG} at (0,0) size 20x1
+layer at (8,262) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,254) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (8,442) size 20x1
   LayoutBlockFlow {SPAN} at (0,0) size 20x1
     LayoutInline {SPAN} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float_margin-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float_margin-expected.txt
index 3281c57..b620475 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float_margin-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float_margin-expected.txt
@@ -25,7 +25,6 @@
           text run at (0,112) width 400: "#img5 {margin-right: -30px; margin-bottom: -30px;}"
           text run at (400,112) width 0: " "
           text run at (0,128) width 0: " "
-      LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (30,215) size 729x92 [bgcolor=#FFFFFF]
         LayoutText {#text} at (0,0) size 729x91
           text run at (0,0) width 663: "This paragraph should have a white background which extends to the edges of the"
@@ -163,3 +162,5 @@
                   text run at (0,92) width 489: "first of all, which extends to the edges of the element's box. "
                   text run at (489,92) width 214: "There is no padding set on"
                   text run at (0,115) width 217: "this paragraph whatsoever."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float_on_text_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float_on_text_elements-expected.txt
index f952eed..d883c0ad 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float_on_text_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/float_on_text_elements-expected.txt
@@ -16,7 +16,6 @@
           text run at (0,80) width 36: "other."
       LayoutBlockFlow (anonymous) at (0,100) size 769x20
         LayoutBR {BR} at (0,0) size 0x19
-      LayoutBlockFlow {HR} at (0,128) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,138) size 769x100
         LayoutBlockFlow (floating) {P} at (0,0) size 769x80 [bgcolor=#FFFF00]
           LayoutText {#text} at (0,0) size 769x79
@@ -28,7 +27,6 @@
         LayoutText {#text} at (15,80) size 4x19
           text run at (15,80) width 4: " "
         LayoutBR {BR} at (19,95) size 0x0
-      LayoutBlockFlow {HR} at (0,246) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,256) size 769x120
         LayoutBlockFlow (floating) {P} at (0,0) size 384.50x120 [bgcolor=#FFFF00]
           LayoutText {#text} at (0,0) size 385x119
@@ -42,7 +40,6 @@
         LayoutText {#text} at (399,0) size 5x19
           text run at (399,0) width 5: " "
         LayoutBR {BR} at (403,15) size 1x0
-      LayoutBlockFlow {HR} at (0,384) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,394) size 769x120
         LayoutBlockFlow (floating) {P} at (384.50,0) size 384.50x120 [bgcolor=#FFFF00]
           LayoutText {#text} at (0,0) size 384x119
@@ -56,7 +53,6 @@
         LayoutText {#text} at (15,0) size 4x19
           text run at (15,0) width 4: " "
         LayoutBR {BR} at (19,15) size 0x0
-      LayoutBlockFlow {HR} at (0,522) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,532) size 769x60
         LayoutBlockFlow (floating) {SPAN} at (0,0) size 48x37 [bgcolor=#C0C0C0]
           LayoutText {#text} at (0,0) size 21x36
@@ -68,7 +64,6 @@
           text run at (0,40) width 675: "be vertically aligned with the top of the first line of this paragraph. This is commonly known as \"drop-cap\"."
       LayoutBlockFlow (anonymous) at (0,592) size 769x20
         LayoutBR {BR} at (0,0) size 0x19
-      LayoutBlockFlow {HR} at (0,620) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (floating) {P} at (423,640) size 336x216 [bgcolor=#FFFF00] [border: (3px solid #FF0000)]
         LayoutText {#text} at (8,8) size 320x199
           text run at (8,8) width 320: "This paragraph should be floated to the right, sort"
@@ -100,7 +95,6 @@
           text run at (0,200) width 319: "due to the margin styles set for the floated element."
       LayoutBlockFlow (anonymous) at (0,850) size 769x20
         LayoutBR {BR} at (0,0) size 0x19
-      LayoutBlockFlow {HR} at (0,878) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,888) size 769x28 [bgcolor=#66CCFF] [border: (4px solid #FF0000)]
         LayoutBlockFlow (floating) {DIV} at (425,14) size 330x250 [bgcolor=#FFFF00]
           LayoutBlockFlow {P} at (5,5) size 320x240
@@ -122,7 +116,6 @@
             text run at (0,0) width 268: "See description in the box on the right side"
       LayoutBlockFlow (anonymous) at (0,916) size 769x246
         LayoutBR {BR} at (0,0) size 0x19
-      LayoutBlockFlow {HR} at (0,1170) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (floating) {DIV} at (0,1180) size 192.25x80 [bgcolor=#66CCFF]
         LayoutBlockFlow {P} at (0,0) size 192.25x80
           LayoutText {#text} at (0,0) size 192x79
@@ -144,7 +137,6 @@
           text run at (221,20) width 200: "and a yellow box (on the right)."
       LayoutBlockFlow (anonymous) at (0,1220) size 769x40
         LayoutBR {BR} at (192,0) size 1x19
-      LayoutBlockFlow {HR} at (0,1268) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,1278) size 769x140
         LayoutBlockFlow (floating) {DIV} at (0,0) size 576.75x140 [bgcolor=#66CCFF]
           LayoutBlockFlow (floating) {DIV} at (422.56,0) size 144.19x40 [bgcolor=#FFFF00]
@@ -168,7 +160,6 @@
               text run at (0,120) width 31: "blue "
               text run at (31,120) width 138: "stripe on its right side."
         LayoutBR {BR} at (576,0) size 1x19
-      LayoutBlockFlow {HR} at (0,1426) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutTable {TABLE} at (0,1436) size 769x1494 [border: (1px outset #808080)]
         LayoutTableSection {TBODY} at (1,1) size 767x1492
           LayoutTableRow {TR} at (0,0) size 767x28
@@ -194,7 +185,6 @@
                   text run at (0,80) width 69: "each other."
               LayoutBlockFlow (anonymous) at (4,104) size 747x20
                 LayoutBR {BR} at (0,0) size 0x19
-              LayoutBlockFlow {HR} at (4,132) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (anonymous) at (4,142) size 747x100
                 LayoutBlockFlow (floating) {P} at (0,0) size 747x80 [bgcolor=#FFFF00]
                   LayoutText {#text} at (0,0) size 747x79
@@ -206,7 +196,6 @@
                 LayoutText {#text} at (15,80) size 4x19
                   text run at (15,80) width 4: " "
                 LayoutBR {BR} at (19,95) size 0x0
-              LayoutBlockFlow {HR} at (4,250) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (anonymous) at (4,260) size 747x120
                 LayoutBlockFlow (floating) {P} at (0,0) size 373.50x120 [bgcolor=#FFFF00]
                   LayoutText {#text} at (0,0) size 373x119
@@ -220,7 +209,6 @@
                 LayoutText {#text} at (388,0) size 5x19
                   text run at (388,0) width 5: " "
                 LayoutBR {BR} at (392,15) size 1x0
-              LayoutBlockFlow {HR} at (4,388) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (anonymous) at (4,398) size 747x120
                 LayoutBlockFlow (floating) {P} at (373.50,0) size 373.50x120 [bgcolor=#FFFF00]
                   LayoutText {#text} at (0,0) size 373x119
@@ -234,7 +222,6 @@
                 LayoutText {#text} at (15,0) size 4x19
                   text run at (15,0) width 4: " "
                 LayoutBR {BR} at (19,15) size 0x0
-              LayoutBlockFlow {HR} at (4,526) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {P} at (4,536) size 747x60
                 LayoutBlockFlow (floating) {SPAN} at (0,0) size 48x37 [bgcolor=#C0C0C0]
                   LayoutText {#text} at (0,0) size 21x36
@@ -246,7 +233,6 @@
                   text run at (0,40) width 721: "should be vertically aligned with the top of the first line of this paragraph. This is commonly known as \"drop-cap\"."
               LayoutBlockFlow (anonymous) at (4,596) size 747x20
                 LayoutBR {BR} at (0,0) size 0x19
-              LayoutBlockFlow {HR} at (4,624) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (floating) {P} at (405,644) size 336x216 [bgcolor=#FFFF00] [border: (3px solid #FF0000)]
                 LayoutText {#text} at (8,8) size 320x199
                   text run at (8,8) width 320: "This paragraph should be floated to the right, sort"
@@ -279,7 +265,6 @@
                   text run at (0,220) width 166: "set for the floated element."
               LayoutBlockFlow (anonymous) at (4,874) size 747x20
                 LayoutBR {BR} at (0,0) size 0x19
-              LayoutBlockFlow {HR} at (4,902) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (4,912) size 747x28 [bgcolor=#66CCFF] [border: (4px solid #FF0000)]
                 LayoutBlockFlow (floating) {DIV} at (403,14) size 330x250 [bgcolor=#FFFF00]
                   LayoutBlockFlow {P} at (5,5) size 320x240
@@ -301,7 +286,6 @@
                     text run at (0,0) width 268: "See description in the box on the right side"
               LayoutBlockFlow (anonymous) at (4,940) size 747x246
                 LayoutBR {BR} at (0,0) size 0x19
-              LayoutBlockFlow {HR} at (4,1194) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (floating) {DIV} at (4,1204) size 186.75x80 [bgcolor=#66CCFF]
                 LayoutBlockFlow {P} at (0,0) size 186.75x80
                   LayoutText {#text} at (0,0) size 186x79
@@ -324,7 +308,6 @@
                   text run at (215,20) width 200: "and a yellow box (on the right)."
               LayoutBlockFlow (anonymous) at (4,1244) size 747x40
                 LayoutBR {BR} at (186,0) size 1x19
-              LayoutBlockFlow {HR} at (4,1292) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (anonymous) at (4,1302) size 747x140
                 LayoutBlockFlow (floating) {DIV} at (0,0) size 560.25x140 [bgcolor=#66CCFF]
                   LayoutBlockFlow (floating) {DIV} at (410.19,0) size 140.06x40 [bgcolor=#FFFF00]
@@ -349,4 +332,39 @@
                       text run at (0,120) width 112: "have a 10px blue "
                       text run at (112,120) width 138: "stripe on its right side."
                 LayoutBR {BR} at (560,0) size 1x19
-              LayoutBlockFlow {HR} at (4,1450) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (8,136) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,128) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,254) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,246) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,392) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,384) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,530) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,522) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,628) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,620) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,886) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,878) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1178) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1170) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1276) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1268) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1434) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1426) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (25,1605) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,132) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1723) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,250) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1861) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,388) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1999) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,526) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2097) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,624) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2375) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,902) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2667) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1194) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2765) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1292) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2923) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1450) size 747x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/height-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/height-expected.txt
index 8f9764a..6f7f6591 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/height-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/height-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 168: ".two {height: 100px;}"
           text run at (168,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,107) size 769x50
         LayoutImage {IMG} at (0,0) size 50x50
         LayoutText {#text} at (0,0) size 0x0
@@ -74,3 +73,5 @@
                     text run at (175,23) width 48: "height"
                 LayoutText {#text} at (223,20) size 66x19
                   text run at (223,20) width 66: " property)."
+layer at (8,105) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin-expected.txt
index f821211..f2cf746 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin-expected.txt
@@ -22,7 +22,6 @@
           text run at (168,80) width 0: " "
           text run at (0,96) width 360: ".six {margin: -10px; background-color: aqua;}"
           text run at (360,96) width 0: " "
-      LayoutBlockFlow {HR} at (0,161) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,179) size 784x40
         LayoutText {#text} at (0,0) size 738x39
           text run at (0,0) width 738: "NOTE: The following tests are separated by class-zero paragraphs, so as to prevent margin-collapsing as described in"
@@ -162,3 +161,5 @@
               LayoutBlockFlow {P} at (4,1227) size 762x20 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 203x19
                   text run at (0,0) width 203: "This element has a class of zero."
+layer at (8,169) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_bottom-expected.txt
index 4a79943c..4ad886b 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_bottom-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_bottom-expected.txt
@@ -25,7 +25,6 @@
           text run at (0,112) width 176: "P, UL {margin-top: 0;}"
           text run at (176,112) width 0: " "
           text run at (0,128) width 0: " "
-      LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,203) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 203x19
           text run at (0,0) width 203: "This element has a class of zero."
@@ -148,3 +147,5 @@
               LayoutBlockFlow {P} at (4,763.75) size 747x20 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 232x19
                   text run at (0,0) width 232: "This element also has a class of zero."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_bottom_inline-expected.txt
index 331cbce4..7399d38f 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_bottom_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_bottom_inline-expected.txt
@@ -12,7 +12,6 @@
           text run at (408,0) width 0: " "
           text run at (0,16) width 416: ".two {margin-bottom: -10px; background-color: aqua;}"
           text run at (416,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,99) size 784x60 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 480x19
           text run at (0,0) width 392: "This element is unstyled save for a background color of gray.. "
@@ -93,3 +92,5 @@
                   text run at (249,20) width 9: ". "
                   text run at (257,20) width 490: "Margins on inline elements does not affect line-height calculations, so all lines"
                   text run at (0,40) width 305: "in this element should have the same line-height."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_inline-expected.txt
index bba1eaf..29f7c7d 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (352,16) width 0: " "
           text run at (0,32) width 360: ".two {margin: -10px; background-color: aqua;}"
           text run at (360,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,107) size 784x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 203x19
           text run at (0,0) width 203: "This element has a class of zero."
@@ -122,3 +121,5 @@
               LayoutBlockFlow {P} at (4,288) size 762x20 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 203x19
                   text run at (0,0) width 203: "This element has a class of zero."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_left-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_left-expected.txt
index 1b6f9175..287e2e8 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_left-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_left-expected.txt
@@ -20,7 +20,6 @@
           text run at (392,64) width 0: " "
           text run at (0,80) width 408: ".five {margin-left: -10px; background-color: aqua;}"
           text run at (408,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 203x19
           text run at (0,0) width 203: "This element has a class of zero."
@@ -118,3 +117,5 @@
                   text run at (146,20) width 386: "In all other respects, however, the element should be normal. "
                   text run at (531,20) width 206: "No styles have been applied to it"
                   text run at (0,40) width 366: "besides the negative left margin and the background color."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_left_inline-expected.txt
index 1a76650..a9c479c 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_left_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_left_inline-expected.txt
@@ -12,7 +12,6 @@
           text run at (392,0) width 0: " "
           text run at (0,16) width 400: ".two {margin-left: -10px; background-color: aqua;}"
           text run at (400,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,99) size 784x40 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 542x19
           text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
@@ -97,3 +96,5 @@
                     text run at (283,20) width 28: "first"
                 LayoutText {#text} at (310,20) size 233x19
                   text run at (310,20) width 233: " line in which the inline box appears."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_right-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_right-expected.txt
index 4cf1c10..fcacfb5 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_right-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_right-expected.txt
@@ -20,7 +20,6 @@
           text run at (552,64) width 0: " "
           text run at (0,80) width 416: ".five {margin-right: -10px; background-color: aqua;}"
           text run at (416,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 784x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (581,0) size 203x19
           text run at (581,0) width 203: "This element has a class of zero."
@@ -118,3 +117,5 @@
                   text run at (114,20) width 386: "In all other respects, however, the element should be normal. "
                   text run at (499,20) width 256: "No styles have been applied to it besides"
                   text run at (0,40) width 325: "the negative right margin and the background color."
+layer at (8,153) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_right_inline-expected.txt
index df6f6c8..389f43a 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_right_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_right_inline-expected.txt
@@ -12,7 +12,6 @@
           text run at (552,0) width 0: " "
           text run at (0,16) width 408: ".two {margin-right: -10px; background-color: aqua;}"
           text run at (408,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,99) size 784x40 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 542x19
           text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
@@ -97,3 +96,5 @@
                     text run at (292,20) width 24: "last"
                 LayoutText {#text} at (315,20) size 233x19
                   text run at (315,20) width 233: " line in which the inline box appears."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_top-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_top-expected.txt
index 5a49d49..cceec31b 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_top-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_top-expected.txt
@@ -24,7 +24,6 @@
           text run at (392,96) width 0: " "
           text run at (0,112) width 200: "P, UL {margin-bottom: 0;}"
           text run at (200,112) width 0: " "
-      LayoutBlockFlow {HR} at (0,174) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,184) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 203x19
           text run at (0,0) width 203: "This element has a class of zero."
@@ -135,3 +134,5 @@
                   text run at (51,20) width 488: "No other styles have been applied to it besides a light blue background color. "
                   text run at (538,20) width 203: "In all other respects, the element"
                   text run at (0,40) width 113: "should be normal."
+layer at (8,182) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,174) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_top_inline-expected.txt
index 411ca21..5a863e0 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_top_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/margin_top_inline-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 392: ".two {margin-top: -10px; background-color: aqua;}"
           text run at (392,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 784x60 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 476x19
           text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
@@ -96,3 +95,5 @@
                   text run at (331,20) width 9: ". "
                   text run at (339,20) width 407: "Margins on inline elements do not affect line-height calculations,"
                   text run at (0,40) width 375: "so all lines in this element should have the same line-height."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding-expected.txt
index 29166c25..8bdf7b4 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding-expected.txt
@@ -20,7 +20,6 @@
           text run at (360,64) width 0: " "
           text run at (0,80) width 376: ".five {padding: -20px; background-color: aqua;}"
           text run at (376,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 203x19
           text run at (0,0) width 203: "This element has a class of zero."
@@ -91,3 +90,5 @@
                   text run at (0,0) width 541: "This element should have no padding, since negative padding values are not allowed. "
                   text run at (541,0) width 183: "Both the content background"
                   text run at (0,20) width 325: "and the normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_bottom-expected.txt
index c1fca379..c2d5034 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_bottom-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_bottom-expected.txt
@@ -20,7 +20,6 @@
           text run at (416,64) width 0: " "
           text run at (0,80) width 432: ".five {padding-bottom: -20px; background-color: aqua;}"
           text run at (432,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 203x19
           text run at (0,0) width 203: "This element has a class of zero."
@@ -97,3 +96,5 @@
                   text run at (0,0) width 589: "This element should have no bottom padding, since negative padding values are not allowed. "
                   text run at (589,0) width 104: "Both the content"
                   text run at (0,20) width 404: "background and the normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_bottom_inline-expected.txt
index f31ee89..165bd15 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_bottom_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_bottom_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 424: ".two {padding-bottom: -10px; background-color: aqua;}"
           text run at (424,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x80 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 476x19
           text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
@@ -98,3 +97,5 @@
                   text run at (522,20) width 8: ". "
                   text run at (530,20) width 227: "Padding on inline elements does not"
                   text run at (0,40) width 567: "affect line-height calculations, so all lines in this element should have the same line-height."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_inline-expected.txt
index 85d9102..de24b3d 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_inline-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 368: ".two {padding: -10px; background-color: aqua;}"
           text run at (368,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 203x19
           text run at (0,0) width 203: "This element has a class of zero."
@@ -124,3 +123,5 @@
               LayoutBlockFlow {P} at (4,288) size 747x20 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 203x19
                   text run at (0,0) width 203: "This element has a class of zero."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_left-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_left-expected.txt
index ce000c86..6fea302 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_left-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_left-expected.txt
@@ -20,7 +20,6 @@
           text run at (400,64) width 0: " "
           text run at (0,80) width 416: ".five {padding-left: -20px; background-color: aqua;}"
           text run at (416,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 203x19
           text run at (0,0) width 203: "This element has a class of zero."
@@ -114,3 +113,5 @@
                   text run at (0,0) width 565: "This element should have no left padding, since negative padding values are not allowed. "
                   text run at (565,0) width 104: "Both the content"
                   text run at (0,20) width 404: "background and the normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_left_inline-expected.txt
index 5ebba3e6..25146a6 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_left_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_left_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 408: ".two {padding-left: -10px; background-color: aqua;}"
           text run at (408,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 542x19
           text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
@@ -100,3 +99,5 @@
                 LayoutText {#text} at (539,20) size 715x39
                   text run at (539,20) width 176: " line in which the inline box"
                   text run at (0,40) width 52: "appears."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_right-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_right-expected.txt
index 758f04d..d318d8e 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_right-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_right-expected.txt
@@ -20,7 +20,6 @@
           text run at (560,64) width 0: " "
           text run at (0,80) width 576: ".five {padding-right: -20px; text-align: right; background-color: aqua;}"
           text run at (576,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 203x19
           text run at (0,0) width 203: "This element has a class of zero."
@@ -132,3 +131,5 @@
                   text run at (14,20) width 408: "background and the normal padding should be aqua (light blue). "
                   text run at (422,20) width 325: "The text has been right-aligned in order to make the"
                   text run at (532,40) width 215: "lack of right padding easier to see."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_right_inline-expected.txt
index d7a0f33..4ed3e6b 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_right_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_right_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 568: ".two {padding-right: -10px; text-align: right; background-color: aqua;}"
           text run at (568,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x40 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 542x19
           text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
@@ -101,3 +100,5 @@
                 LayoutText {#text} at (571,20) size 747x39
                   text run at (571,20) width 176: " line in which the inline box"
                   text run at (0,40) width 52: "appears."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_top-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_top-expected.txt
index fe84802..f986bff7 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_top-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_top-expected.txt
@@ -20,7 +20,6 @@
           text run at (392,64) width 0: " "
           text run at (0,80) width 408: ".five {padding-top: -20px; background-color: aqua;}"
           text run at (408,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 203x19
           text run at (0,0) width 203: "This element has a class of zero."
@@ -90,3 +89,5 @@
                   text run at (0,0) width 565: "This element should have no top padding, since negative padding values are not allowed. "
                   text run at (565,0) width 104: "Both the content"
                   text run at (0,20) width 404: "background and the normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_top_inline-expected.txt
index 8c11a3a..643a2d8f 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_top_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/padding_top_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 400: ".two {padding-top: -10px; background-color: aqua;}"
           text run at (400,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x80 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 476x19
           text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
@@ -98,3 +97,5 @@
                   text run at (498,20) width 8: ". "
                   text run at (506,20) width 227: "Padding on inline elements does not"
                   text run at (0,40) width 567: "affect line-height calculations, so all lines in this element should have the same line-height."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/width-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/width-expected.txt
index 86904ed..c056d92 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/box_properties/width-expected.txt
@@ -14,7 +14,6 @@
           text run at (144,16) width 0: " "
           text run at (0,32) width 152: "TABLE {width: 50%;}"
           text run at (152,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,107) size 769x50
         LayoutImage {IMG} at (0,0) size 50x50
         LayoutText {#text} at (0,0) size 0x0
@@ -84,3 +83,5 @@
                   text run at (63,160) width 109: " property without"
                   text run at (0,180) width 144: "the need for the user to"
                   text run at (0,200) width 173: "resize the viewing window."
+layer at (8,105) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/cascade/cascade_order-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/cascade/cascade_order-expected.txt
index 8eaf452..c6fb7ba60 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/cascade/cascade_order-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/cascade/cascade_order-expected.txt
@@ -29,7 +29,6 @@
           text run at (0,144) width 296: ".one {text-decoration: line-through;}"
           text run at (296,144) width 0: " "
           text run at (0,160) width 0: " "
-      LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,243) size 769x160
         LayoutListItem {LI} at (40,0) size 729x20 [color=#0000FF]
           LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
@@ -140,3 +139,5 @@
               LayoutBlockFlow {P} at (4,252) size 683x20
                 LayoutText {#text} at (0,0) size 683x19
                   text run at (0,0) width 683: "This text should be stricken (overriding the imported underline; only works if LINKed sheets are supported)."
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/cascade/important-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/cascade/important-expected.txt
index 57d496e..56bb801 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/cascade/important-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/cascade/important-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 176: "P#id1 {color: purple;}"
           text run at (176,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 784x40 [color=#008000]
         LayoutText {#text} at (0,0) size 767x39
           text run at (0,0) width 767: "This sentence should be green, because the declaration marked important should override any other normal declaration for"
@@ -66,3 +65,5 @@
                   text run at (0,0) width 604: "This sentence should also be green, even though it has a STYLE attribute declaring it to be red. "
                   text run at (604,0) width 96: "This is because"
                   text run at (0,20) width 645: "declarations marked important have more weight than normal declarations given in a STYLE attribute."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/classification/display-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/classification/display-expected.txt
index 3a1f03d1..f511b8e 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/classification/display-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/classification/display-expected.txt
@@ -18,7 +18,6 @@
           text run at (272,48) width 0: " "
           text run at (0,64) width 152: "I {display: block;}"
           text run at (152,64) width 0: " "
-      LayoutBlockFlow {HR} at (0,129) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,147) size 769x20
         LayoutText {#text} at (0,0) size 293x19
           text run at (0,0) width 293: "This sentence should be a block-level element."
@@ -129,3 +128,5 @@
                 LayoutBlockFlow (anonymous) at (0,40) size 747x20
                   LayoutText {#text} at (0,0) size 203x19
                     text run at (0,0) width 203: "should be a block-level element."
+layer at (8,137) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,129) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style-expected.txt
index 05977e2..4c4676f5 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style-expected.txt
@@ -12,7 +12,6 @@
           text run at (304,0) width 0: " "
           text run at (0,16) width 496: ".two {list-style: url(../resources/oransqr.gif) disc outside;}"
           text run at (496,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,99) size 784x40
         LayoutListItem {LI} at (40,0) size 744x40
           LayoutListMarker (anonymous) at (0,0) size 20x19: "A"
@@ -51,3 +50,5 @@
                     text run at (0,0) width 476: "The text in this item have an orange square for its bullet; failing that, a disc. "
                     text run at (476,0) width 233: "Also, the bullet should be outside the"
                     text run at (0,20) width 283: "text block, as the list has been set to 'outside'."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style_image-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style_image-expected.txt
index f888b02..b2b4173 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style_image-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style_image-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 240: ".two {list-style-image: none;}"
           text run at (240,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,115) size 784x60
         LayoutListItem {LI} at (40,0) size 744x20
           LayoutListMarker (anonymous) at (-22,0) size 15x15
@@ -78,3 +77,5 @@
                   LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
                   LayoutText {#text} at (0,0) size 231x19
                     text run at (0,0) width 231: "...standard list markers for each item."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style_position-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style_position-expected.txt
index 27118d1..98bde63 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style_position-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style_position-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 280: ".two {list-style-position: inside;}"
           text run at (280,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,115) size 784x40
         LayoutListItem {LI} at (40,0) size 744x40
           LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
@@ -50,3 +49,5 @@
                   LayoutText {#text} at (22,0) size 710x39
                     text run at (22,0) width 688: "The text in this item should not behave as expected; that is, it should line up with the bullet on the left margin,"
                     text run at (0,20) width 263: "leaving no blank space beneath the bullet."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style_type-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style_type-expected.txt
index 9739db2d..387eec5d 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style_type-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/classification/list_style_type-expected.txt
@@ -27,7 +27,6 @@
           text run at (0,128) width 240: ".nine {list-style-type: none;}"
           text run at (240,128) width 0: " "
           text run at (0,144) width 0: " "
-      LayoutBlockFlow {HR} at (0,209) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,227) size 769x60
         LayoutListItem {LI} at (40,0) size 729x20
           LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
@@ -268,3 +267,5 @@
                 LayoutListItem {LI} at (40,40) size 276x20
                   LayoutText {#text} at (0,0) size 150x19
                     text run at (0,0) width 150: "...nothing for each item."
+layer at (8,217) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,209) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/classification/white_space-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/classification/white_space-expected.txt
index 77b69b0..242c504b 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/classification/white_space-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/classification/white_space-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 232: ".three {white-space: normal;}"
           text run at (232,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 784x100
         LayoutText {#text} at (0,0) size 568x99
           text run at (0,0) width 0: " "
@@ -78,3 +77,5 @@
                 LayoutText {#text} at (452,20) size 4x19
                   text run at (452,20) width 4: "."
                   text run at (456,20) width 0: " "
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background-expected.txt
index 07a4d4b..6b255d11 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background-expected.txt
@@ -16,7 +16,6 @@
           text run at (592,32) width 0: " "
           text run at (0,48) width 592: ".three {background: lime url(../resources/oransqr.gif) repeat-x left top;}"
           text run at (592,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x60
         LayoutText {#text} at (0,0) size 728x19
           text run at (0,0) width 728: "This document should have a green background with an orange strip running across the entire top of the page, since"
@@ -88,3 +87,5 @@
                   text run at (0,20) width 703: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in"
                   text run at (0,40) width 178: "handling these declarations. "
                   text run at (178,40) width 306: "Hey, I didn't say the page would be pretty, did I?"
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_attachment-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_attachment-expected.txt
index 45a890e5..b1aaa57 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_attachment-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_attachment-expected.txt
@@ -11,7 +11,6 @@
           text run at (0,0) width 872: "BODY {background-image: url(../resources/bg.gif); background-repeat: repeat-x; background-attachment: fixed;}"
           text run at (872,0) width 0: " "
           text run at (0,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,99) size 784x100
         LayoutText {#text} at (0,0) size 780x99
           text run at (0,0) width 763: "This document should have a green grid-pattern line across the top of the page (or at least a tiled background) which does"
@@ -26,8 +25,6 @@
         LayoutText {#text} at (0,0) size 508x19
           text run at (0,0) width 417: "In fact, why not the relevant section from the CSS1 specification? "
           text run at (417,0) width 91: "A capital idea."
-      LayoutBlockFlow {HR} at (0,251) size 784x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow {HR} at (0,261) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {H4} at (0,284.27) size 784x20
         LayoutInline {A} at (0,0) size 220x19
           LayoutText {#text} at (0,0) size 220x19
@@ -115,8 +112,6 @@
                 LayoutText {#text} at (0,0) size 508x19
                   text run at (0,0) width 417: "In fact, why not the relevant section from the CSS1 specification? "
                   text run at (417,0) width 91: "A capital idea."
-              LayoutBlockFlow {HR} at (4,156) size 762x2 [border: (1px inset #EEEEEE)]
-              LayoutBlockFlow {HR} at (4,166) size 762x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H4} at (4,189.27) size 762x20
                 LayoutInline {A} at (0,0) size 220x19
                   LayoutText {#text} at (0,0) size 220x19
@@ -177,3 +172,13 @@
                   text run at (71,0) width 670: " UAs may treat 'fixed' as 'scroll'. However, it is recommended they interpret 'fixed' correctly, at least on the"
                   text run at (0,20) width 716: "HTML and BODY elements, since there is no way for an author to provide an image only for those browsers that"
                   text run at (0,40) width 93: "support 'fixed'."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,259) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,251) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,269) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,261) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (25,863) size 762x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,156) size 762x2 [border: (1px inset #EEEEEE)]
+layer at (25,873) size 762x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,166) size 762x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_color-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_color-expected.txt
index b90ff19b..8a60759 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_color-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_color-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 296: ".two {background-color: transparent;}"
           text run at (296,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 784x20 [bgcolor=#008000]
         LayoutText {#text} at (0,0) size 277x19
           text run at (0,0) width 277: "This element's background should be green."
@@ -81,3 +80,5 @@
                 LayoutText {#text} at (0,0) size 744x19
                   text run at (0,0) width 462: "This element should allow the document background to \"shine through.\" "
                   text run at (462,0) width 282: "There should be no green backgrounds here!"
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_image-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_image-expected.txt
index 6c118856..543ce73 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_image-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_image-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 240: ".one {background-image: none;}"
           text run at (240,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x40
         LayoutText {#text} at (0,0) size 746x39
           text run at (0,0) width 502: "This sentence should be backed by an image-- a green grid pattern, in this case. "
@@ -92,3 +91,5 @@
                 LayoutText {#text} at (0,0) size 705x39
                   text run at (0,0) width 705: "This sentence should NOT be backed by a repeated green-grid image, allowing the page's background to \"shine"
                   text run at (0,20) width 108: "through\" instead."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_position-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_position-expected.txt
index cfe290d3..6350d97 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_position-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_position-expected.txt
@@ -41,7 +41,6 @@
           text run at (0,240) width 488: "       background-repeat: no-repeat; background-color: aqua;}"
           text run at (488,240) width 0: " "
           text run at (0,256) width 0: " "
-      LayoutBlockFlow {HR} at (0,321) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,339) size 769x20
         LayoutText {#text} at (0,0) size 503x19
           text run at (0,0) width 503: "This document should have a single, small green image in its upper right corner."
@@ -146,3 +145,5 @@
                   text run at (0,40) width 141: "corner of the element. "
                   text run at (141,40) width 603: "The background color will make it easier to determine the edges of the paragraph, which should"
                   text run at (0,60) width 173: "assist in evaluating this test."
+layer at (8,329) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,321) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_repeat-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_repeat-expected.txt
index 4f465149..624f90b 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_repeat-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/background_repeat-expected.txt
@@ -37,7 +37,6 @@
           text run at (0,208) width 240: "       background-color: red;}"
           text run at (240,208) width 0: " "
           text run at (0,224) width 0: " "
-      LayoutBlockFlow {HR} at (0,289) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,307) size 784x60
         LayoutText {#text} at (0,0) size 784x19
           text run at (0,0) width 784: "This sentence should have an orange stripe repeated in the \"y\" direction, starting at the upper left corner (since the default for"
@@ -305,3 +304,5 @@
                   text run at (173,80) width 241: "This ought to be enough text, though. "
                   text run at (414,80) width 341: "A background color is present, although if it is visible,"
                   text run at (0,100) width 308: "then the image may not have been tiled correctly."
+layer at (8,297) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,289) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/color-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/color-expected.txt
index 4514142..c3b1fc7 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/color-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/color_and_background/color-expected.txt
@@ -11,7 +11,6 @@
           text run at (0,0) width 160: ".one {color: green;}"
           text run at (160,0) width 0: " "
           text run at (0,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,99) size 784x20 [color=#008000]
         LayoutText {#text} at (0,0) size 194x19
           text run at (0,0) width 194: "This sentence should be green."
@@ -36,3 +35,5 @@
               LayoutBlockFlow {P} at (4,40) size 194x20 [color=#008000]
                 LayoutText {#text} at (0,0) size 194x19
                   text run at (0,0) width 194: "This sentence should be green."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/conformance/forward_compatible_parsing-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/conformance/forward_compatible_parsing-expected.txt
index 6e56c63..66ce4051 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/conformance/forward_compatible_parsing-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/conformance/forward_compatible_parsing-expected.txt
@@ -113,7 +113,6 @@
           text run at (0,832) width 208: "P.twentyfour {color: red;}"
           text run at (208,832) width 0: " "
           text run at (0,848) width 0: " "
-      LayoutBlockFlow {HR} at (0,913) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,931) size 769x20 [color=#008000]
         LayoutText {#text} at (0,0) size 485x19
           text run at (0,0) width 485: "This paragraph should be green, because only the rotation should be ignored."
@@ -543,3 +542,5 @@
                 LayoutText {#text} at (0,0) size 728x39
                   text run at (0,0) width 728: "This paragraph should be black, because the color declaration after the previous ruleset should be considered part of"
                   text run at (0,20) width 639: "the selector for this ruleset, and this ruleset therefore has an invalid selector and should not be applied."
+layer at (8,921) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,913) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/canvas-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/canvas-expected.txt
index d783f1c..a027deb 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/canvas-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/canvas-expected.txt
@@ -12,7 +12,6 @@
           text run at (240,0) width 0: " "
           text run at (0,16) width 552: "BODY {background-color: green; background-image: none; margin: 25px;}"
           text run at (552,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 750x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,99) size 750x60
         LayoutText {#text} at (0,0) size 737x59
           text run at (0,0) width 387: "The body of this document should have a green background. "
@@ -39,3 +38,5 @@
                   text run at (0,20) width 430: "background set for the HTML element should surround the BODY. "
                   text run at (429,20) width 277: "If the BODY content is significantly shorter"
                   text run at (0,40) width 550: "than the browser's window height, then the bottom border may be larger than 25 pixels."
+layer at (25,106) size 750x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 750x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/floating_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/floating_elements-expected.txt
index fb570ddf..a92b1b2 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/floating_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/floating_elements-expected.txt
@@ -25,13 +25,11 @@
           text run at (0,112) width 176: ".right {float: right;}"
           text run at (176,112) width 0: " "
           text run at (0,128) width 0: " "
-      LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,211) size 769x40
         LayoutText {#text} at (0,0) size 751x39
           text run at (0,0) width 681: "On this test page, each test is performed once with floating paragraphs, and then again with floating images. "
           text run at (681,0) width 67: "Other than"
           text run at (0,20) width 751: "the substitution of images for pargraphs, the structure of the test is exactly the same, including the direction of the floats."
-      LayoutBlockFlow {HR} at (24,275) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,301) size 765x110 [border: (5px solid #800080)]
         LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
           LayoutText {#text} at (17,17) size 130x59
@@ -50,7 +48,6 @@
           text run at (199,45) width 354: "of this DIV, which means that the borders of the floating"
           text run at (199,65) width 360: "elements should not overlap the top or side borders of the"
           text run at (199,85) width 31: "DIV."
-      LayoutBlockFlow {HR} at (364.28,419) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,429) size 765x70 [border: (5px solid #800080)]
         LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
         LayoutImage (floating) {IMG} at (745,5) size 15x36 [border: (3px solid #000000)]
@@ -59,7 +56,6 @@
           text run at (194,5) width 537: "The floating images within this DIV should not go beyond the left or right inner edge"
           text run at (20,25) width 707: "of this DIV, which means that the borders of the floating images should not overlap the top or side borders of the"
           text run at (5,45) width 31: "DIV."
-      LayoutBlockFlow {HR} at (24,523) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,549) size 442x250 [border: (5px solid #800080)]
         LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
           LayoutText {#text} at (17,17) size 122x39
@@ -88,7 +84,6 @@
           text run at (114,185) width 298: "In addition, they should not overlap each other."
           text run at (5,205) width 425: "The first two should be side by side, whereas the third should be on"
           text run at (5,225) width 95: "the next \"line.\""
-      LayoutBlockFlow {HR} at (364.28,807) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,817) size 360x210 [border: (5px solid #800080)]
         LayoutImage (floating) {IMG} at (5,5) size 156x36 [border: (3px solid #000000)]
         LayoutImage (floating) {IMG} at (161,5) size 156x36 [border: (3px solid #000000)]
@@ -107,7 +102,6 @@
           text run at (5,165) width 40: "other. "
           text run at (44,165) width 308: "The first two should be side by side, whereas the"
           text run at (5,185) width 213: "third should be on the next \"line.\""
-      LayoutBlockFlow {HR} at (24,1051) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,1077) size 314x384 [border: (5px solid #800080)]
         LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
           LayoutText {#text} at (17,17) size 130x59
@@ -139,7 +133,6 @@
           text run at (5,319) width 268: "side-by-side, but instead the first should be"
           text run at (5,339) width 288: "floated left, and the second floated to the right"
           text run at (5,359) width 94: "below the first."
-      LayoutBlockFlow {HR} at (364.28,1469) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,1479) size 410x246 [border: (5px solid #800080)]
         LayoutImage (floating) {IMG} at (5,5) size 256x36 [border: (3px solid #000000)]
         LayoutImage (floating) {IMG} at (149,41) size 256x36 [border: (3px solid #000000)]
@@ -158,7 +151,6 @@
           text run at (69,181) width 334: "In addition, the floated images should not be side-by-"
           text run at (5,201) width 390: "side, but instead the first should be floated left, and the second"
           text run at (5,221) width 213: "floated to the right below the first."
-      LayoutBlockFlow {HR} at (24,1749) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,1775) size 765x130 [border: (5px solid #800080)]
         LayoutBlockFlow (floating) {P} at (566,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
           LayoutText {#text} at (17,17) size 139x59
@@ -179,7 +171,6 @@
           text run at (199,85) width 61: "any way. "
           text run at (259,85) width 265: "In addition, the top of the left-floating box"
           text run at (5,105) width 365: "should not be higher than the top of the right-floating box."
-      LayoutBlockFlow {HR} at (364.28,1913) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,1923) size 765x70 [border: (5px solid #800080)]
         LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
         LayoutImage (floating) {IMG} at (745,5) size 15x36 [border: (3px solid #000000)]
@@ -189,7 +180,6 @@
           text run at (20,25) width 705: "which means that the borders of the floating images should not overlap the top or side borders of the DIV in any"
           text run at (5,45) width 34: "way. "
           text run at (38,45) width 662: "In addition, the top of the left-floating image should not be higher than the top of the right-floating image."
-      LayoutBlockFlow {HR} at (24,2017) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2043) size 765x150 [border: (5px solid #800080)]
         LayoutText {#text} at (199,5) size 183x19
           text run at (199,5) width 175: "This is text within the DIV. "
@@ -216,7 +206,6 @@
           text run at (530,85) width 13: "In"
           text run at (5,105) width 544: "order to mark these points clearly, an asterisk has been inserted just before each floated"
           text run at (5,125) width 53: "element."
-      LayoutBlockFlow {HR} at (364.28,2201) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2211) size 765x90 [border: (5px solid #800080)]
         LayoutText {#text} at (20,5) size 183x19
           text run at (20,5) width 175: "This is text within the DIV. "
@@ -232,7 +221,6 @@
           text run at (5,45) width 725: "high as the top edge of the inline element containing the content just before the floating images occur in the source. "
           text run at (730,45) width 13: "In"
           text run at (5,65) width 590: "order to mark these points clearly, an asterisk has been inserted just before each floated image."
-      LayoutBlockFlow {HR} at (24,2325) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2351) size 765x290 [border: (5px solid #800080)]
         LayoutText {#text} at (199,5) size 183x19
           text run at (199,5) width 175: "This is text within the DIV. "
@@ -282,7 +270,6 @@
           text run at (5,245) width 722: "has room for a floated element, then the element should float so that its top is aligned with the top of the line-box in"
           text run at (5,265) width 173: "which the asterisk appears. "
           text run at (178,265) width 402: "Otherwise, its top should align with the top of the next line-box."
-      LayoutBlockFlow {HR} at (364.28,2649) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2659) size 765x130 [border: (5px solid #800080)]
         LayoutText {#text} at (20,5) size 183x19
           text run at (20,5) width 175: "This is text within the DIV. "
@@ -309,7 +296,6 @@
           text run at (20,85) width 700: "has room for a floated image, then the image should float so that its top is aligned with the top of the line-box in"
           text run at (5,105) width 173: "which the asterisk appears. "
           text run at (178,105) width 402: "Otherwise, its top should align with the top of the next line-box."
-      LayoutBlockFlow {HR} at (24,2813) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2839) size 490x330 [border: (5px solid #800080)]
         LayoutText {#text} at (199,5) size 54x19
           text run at (199,5) width 54: "This is *"
@@ -342,7 +328,6 @@
           text run at (5,265) width 475: "align with the top of the line-box following the insertion point of the floated"
           text run at (5,285) width 466: "element to avoid floating elements appearing before text which precedes it"
           text run at (5,305) width 150: "in the source document."
-      LayoutBlockFlow {HR} at (364.28,3177) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,3187) size 490x250 [border: (5px solid #800080)]
         LayoutText {#text} at (20,5) size 54x19
           text run at (20,5) width 54: "This is *"
@@ -365,7 +350,6 @@
           text run at (5,185) width 429: "line-box following the insertion point of the floated element to avoid"
           text run at (5,205) width 442: "floating elements appearing before text which precedes it in the source"
           text run at (5,225) width 66: "document."
-      LayoutBlockFlow {HR} at (24,3461) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutTable {TABLE} at (0,3487) size 769x3295 [border: (1px outset #808080)]
         LayoutTableSection {TBODY} at (1,1) size 767x3293
           LayoutTableRow {TR} at (0,0) size 767x28
@@ -384,7 +368,6 @@
                   text run at (681,0) width 36: "Other"
                   text run at (0,20) width 740: "than the substitution of images for pargraphs, the structure of the test is exactly the same, including the direction of the"
                   text run at (0,40) width 38: "floats."
-              LayoutBlockFlow {HR} at (28,88) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,114) size 743x110 [border: (5px solid #800080)]
                 LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
                   LayoutText {#text} at (17,17) size 130x59
@@ -403,7 +386,6 @@
                   text run at (199,45) width 332: "inner edge of this DIV, which means that the borders"
                   text run at (199,65) width 332: "of the floating elements should not overlap the top or"
                   text run at (199,85) width 151: "side borders of the DIV."
-              LayoutBlockFlow {HR} at (357.83,232) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,242) size 743x70 [border: (5px solid #800080)]
                 LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
                 LayoutImage (floating) {IMG} at (723,5) size 15x36 [border: (3px solid #000000)]
@@ -412,7 +394,6 @@
                   text run at (194,5) width 503: "The floating images within this DIV should not go beyond the left or right inner"
                   text run at (20,25) width 701: "edge of this DIV, which means that the borders of the floating images should not overlap the top or side borders"
                   text run at (5,45) width 71: "of the DIV."
-              LayoutBlockFlow {HR} at (28,336) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,362) size 442x250 [border: (5px solid #800080)]
                 LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
                   LayoutText {#text} at (17,17) size 122x39
@@ -441,7 +422,6 @@
                   text run at (114,185) width 298: "In addition, they should not overlap each other."
                   text run at (5,205) width 425: "The first two should be side by side, whereas the third should be on"
                   text run at (5,225) width 95: "the next \"line.\""
-              LayoutBlockFlow {HR} at (357.83,620) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,630) size 360x210 [border: (5px solid #800080)]
                 LayoutImage (floating) {IMG} at (5,5) size 156x36 [border: (3px solid #000000)]
                 LayoutImage (floating) {IMG} at (161,5) size 156x36 [border: (3px solid #000000)]
@@ -460,7 +440,6 @@
                   text run at (5,165) width 40: "other. "
                   text run at (44,165) width 308: "The first two should be side by side, whereas the"
                   text run at (5,185) width 213: "third should be on the next \"line.\""
-              LayoutBlockFlow {HR} at (28,864) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,890) size 314x384 [border: (5px solid #800080)]
                 LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
                   LayoutText {#text} at (17,17) size 130x59
@@ -492,7 +471,6 @@
                   text run at (5,319) width 268: "side-by-side, but instead the first should be"
                   text run at (5,339) width 288: "floated left, and the second floated to the right"
                   text run at (5,359) width 94: "below the first."
-              LayoutBlockFlow {HR} at (357.83,1282) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,1292) size 410x246 [border: (5px solid #800080)]
                 LayoutImage (floating) {IMG} at (5,5) size 256x36 [border: (3px solid #000000)]
                 LayoutImage (floating) {IMG} at (149,41) size 256x36 [border: (3px solid #000000)]
@@ -511,7 +489,6 @@
                   text run at (69,181) width 334: "In addition, the floated images should not be side-by-"
                   text run at (5,201) width 390: "side, but instead the first should be floated left, and the second"
                   text run at (5,221) width 213: "floated to the right below the first."
-              LayoutBlockFlow {HR} at (28,1562) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,1588) size 743x130 [border: (5px solid #800080)]
                 LayoutBlockFlow (floating) {P} at (544,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
                   LayoutText {#text} at (17,17) size 139x59
@@ -532,7 +509,6 @@
                   text run at (199,85) width 133: "the DIV in any way. "
                   text run at (331,85) width 189: "In addition, the top of the left-"
                   text run at (5,105) width 445: "floating box should not be higher than the top of the right-floating box."
-              LayoutBlockFlow {HR} at (357.83,1726) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,1736) size 743x70 [border: (5px solid #800080)]
                 LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
                 LayoutImage (floating) {IMG} at (723,5) size 15x36 [border: (3px solid #000000)]
@@ -542,7 +518,6 @@
                   text run at (20,25) width 678: "which means that the borders of the floating images should not overlap the top or side borders of the DIV in"
                   text run at (5,45) width 61: "any way. "
                   text run at (65,45) width 662: "In addition, the top of the left-floating image should not be higher than the top of the right-floating image."
-              LayoutBlockFlow {HR} at (28,1830) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,1856) size 743x150 [border: (5px solid #800080)]
                 LayoutText {#text} at (199,5) size 183x19
                   text run at (199,5) width 175: "This is text within the DIV. "
@@ -568,7 +543,6 @@
                   text run at (5,105) width 127: "occur in the source. "
                   text run at (132,105) width 411: "In order to mark these points clearly, an asterisk has been inserted"
                   text run at (5,125) width 203: "just before each floated element."
-              LayoutBlockFlow {HR} at (357.83,2014) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,2024) size 743x90 [border: (5px solid #800080)]
                 LayoutText {#text} at (20,5) size 183x19
                   text run at (20,5) width 175: "This is text within the DIV. "
@@ -584,7 +558,6 @@
                   text run at (5,45) width 689: "as high as the top edge of the inline element containing the content just before the floating images occur in the"
                   text run at (5,65) width 49: "source. "
                   text run at (54,65) width 607: "In order to mark these points clearly, an asterisk has been inserted just before each floated image."
-              LayoutBlockFlow {HR} at (28,2138) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,2164) size 743x250 [border: (5px solid #800080)]
                 LayoutText {#text} at (199,5) size 183x19
                   text run at (199,5) width 175: "This is text within the DIV. "
@@ -631,7 +604,6 @@
                   text run at (199,205) width 470: "its top is aligned with the top of the line-box in which the asterisk appears. "
                   text run at (669,205) width 69: "Otherwise,"
                   text run at (199,225) width 329: "its top should align with the top of the next line-box."
-              LayoutBlockFlow {HR} at (357.83,2423) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,2433) size 743x130 [border: (5px solid #800080)]
                 LayoutText {#text} at (20,5) size 183x19
                   text run at (20,5) width 175: "This is text within the DIV. "
@@ -657,7 +629,6 @@
                   text run at (20,85) width 712: "If a line has room for a floated image, then the image should float so that its top is aligned with the top of the line-"
                   text run at (5,105) width 217: "box in which the asterisk appears. "
                   text run at (222,105) width 402: "Otherwise, its top should align with the top of the next line-box."
-              LayoutBlockFlow {HR} at (28,2587) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,2613) size 490x330 [border: (5px solid #800080)]
                 LayoutText {#text} at (199,5) size 54x19
                   text run at (199,5) width 54: "This is *"
@@ -690,7 +661,6 @@
                   text run at (5,265) width 475: "align with the top of the line-box following the insertion point of the floated"
                   text run at (5,285) width 466: "element to avoid floating elements appearing before text which precedes it"
                   text run at (5,305) width 150: "in the source document."
-              LayoutBlockFlow {HR} at (357.83,2951) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,2961) size 490x250 [border: (5px solid #800080)]
                 LayoutText {#text} at (20,5) size 54x19
                   text run at (20,5) width 54: "This is *"
@@ -713,4 +683,65 @@
                   text run at (5,185) width 429: "line-box following the insertion point of the floated element to avoid"
                   text run at (5,205) width 442: "floating elements appearing before text which precedes it in the source"
                   text run at (5,225) width 66: "document."
-              LayoutBlockFlow {HR} at (28,3235) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (32,283) size 579x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,275) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,427) size 41x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,419) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,531) size 579x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,523) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,815) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,807) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1059) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,1051) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,1477) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,1469) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1757) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,1749) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,1921) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,1913) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,2025) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,2017) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2209) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2201) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,2333) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,2325) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2657) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2649) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,2821) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,2813) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,3185) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,3177) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,3469) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,3461) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (49,3612) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,88) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,3756) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,232) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,3860) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,336) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,4144) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,620) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,4388) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,864) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,4806) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1282) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5086) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,1562) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,5250) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1726) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5354) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,1830) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,5538) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,2014) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5662) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,2138) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,5947) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,2423) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,6111) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,2587) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,6475) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,2951) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,6759) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,3235) size 562.25x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/height_of_lines-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/height_of_lines-expected.txt
index c799fd6d..114d900 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/height_of_lines-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/height_of_lines-expected.txt
@@ -41,7 +41,6 @@
           text run at (0,256) width 320: "     border-width: 10px; margin: -10px;}"
           text run at (320,256) width 0: " "
           text run at (0,272) width 0: " "
-      LayoutBlockFlow {HR} at (0,337) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,353) size 769x464
         LayoutText {#text} at (0,2) size 767x238
           text run at (0,2) width 420: "This paragraph should have a font size of 14px and a line height of 20px. "
@@ -131,3 +130,5 @@
                   text run at (475,424) width 8: ". "
                   text run at (483,424) width 241: "The last image in this paragraph has -10px"
                   text run at (0,466) width 714: "margins set on it, so that should pull the text in toward the image in the vertical direction, and also in the horizontal direction."
+layer at (8,345) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,337) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/inline_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/inline_elements-expected.txt
index 36bc39a2..23fb586 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/inline_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/inline_elements-expected.txt
@@ -21,7 +21,6 @@
           text run at (0,80) width 192: "          padding: 2pt;}"
           text run at (192,80) width 0: " "
           text run at (0,96) width 0: " "
-      LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,179) size 769x192
         LayoutText {#text} at (0,6) size 187x19
           text run at (0,6) width 187: "This is a paragraph that has a "
@@ -94,3 +93,5 @@
                 LayoutText {#text} at (171,48) size 415x15
                   text run at (171,48) width 3: " "
                   text run at (174,48) width 412: "The line spacing in the whole paragraph should be 12pt, with font-size 10pt."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/replaced_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/replaced_elements-expected.txt
index 9ea477e..bf3b75c2 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/replaced_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/replaced_elements-expected.txt
@@ -24,7 +24,6 @@
           text run at (200,96) width 0: " "
           text run at (0,112) width 464: "          margin-right: 0; margin-left: auto; width: 50%;}"
           text run at (464,112) width 0: " "
-      LayoutBlockFlow {HR} at (0,177) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,195) size 769x20
         LayoutImage {IMG} at (0,0) size 15x15
         LayoutText {#text} at (15,0) size 434x19
@@ -85,3 +84,5 @@
                   text run at (0,0) width 735: "The above image should be a square resized so its width is 50% of its parent element, and aligned at the right edge of"
                   text run at (0,20) width 123: "the parent element: "
                   text run at (123,20) width 395: "the document body in the first half, and the table in the second."
+layer at (8,185) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,177) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/vertical_formatting-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/vertical_formatting-expected.txt
index 396d56f..0c0bb39 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/vertical_formatting-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/formatting_model/vertical_formatting-expected.txt
@@ -47,7 +47,6 @@
           text run at (0,288) width 160: "TABLE {clear: both;}"
           text run at (160,288) width 0: " "
           text run at (0,304) width 0: " "
-      LayoutBlockFlow {HR} at (0,369) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,387) size 769x40
         LayoutText {#text} at (0,0) size 754x39
           text run at (0,0) width 754: "There should be a two-centimeter margin between this paragraph and the next, because adjacent vertical margins should"
@@ -170,3 +169,5 @@
               LayoutBlockFlow {P} at (4,1017) size 747x57.78
                 LayoutText {#text} at (0,38) size 167x19
                   text run at (0,38) width 167: "This is the next paragraph."
+layer at (8,377) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,369) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/anchor-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/anchor-expected.txt
index 698c90ed..dde77cd 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/anchor-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/anchor-expected.txt
@@ -19,7 +19,6 @@
           text run at (0,64) width 176: "#one {color: #006600;}"
           text run at (176,64) width 0: " "
           text run at (0,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20
         LayoutText {#text} at (0,0) size 500x19
           text run at (0,0) width 500: "The following anchors should appear as described; none of them should be red."
@@ -160,3 +159,5 @@
                   text run at (539,0) width 192: "It's a named anchor, and styles"
                   text run at (0,20) width 350: "declared for the A tag are applied to them under CSS1. "
                   text run at (350,20) width 326: "It also should NOT turn orange when clicked upon."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/firstletter-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/firstletter-expected.txt
index 9c7d02b5..f4b18344 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/firstletter-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/firstletter-expected.txt
@@ -18,7 +18,6 @@
           text run at (0,32) width 312: "P.three:first-letter {font-size: 350%;}"
           text run at (312,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x60
         LayoutInline {<pseudo:first-letter>} at (0,0) size 10x19 [color=#800000]
           LayoutTextFragment (anonymous) at (0,0) size 10x19
@@ -91,3 +90,5 @@
                   text run at (0,66) width 617: "quote mark and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon. "
                   text run at (617,66) width 122: "Note that this is not"
                   text run at (0,86) width 284: "required under CSS1, but it is recommended."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/firstline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/firstline-expected.txt
index e4c5f8ce..e3fe5eb 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/firstline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/firstline-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 360: ".three:first-line {font-variant: small-caps;}"
           text run at (360,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x60
         LayoutText {#text} at (0,0) size 761x59
           text run at (0,0) width 423: "The first line of this paragraph, and only that one, should be green. "
@@ -80,3 +79,5 @@
                   text run at (309,40) width 225: " is not supported by your browser). "
                   text run at (534,40) width 207: "This is extra text included for the"
                   text run at (0,60) width 472: "purposes of making the paragraph long enough to have more than one line."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/multiple_pseudo_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/multiple_pseudo_elements-expected.txt
index c45bcb2..dc49c2e 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/multiple_pseudo_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/multiple_pseudo_elements-expected.txt
@@ -24,7 +24,6 @@
           text run at (0,80) width 368: "P.three:first-line {font-variant: small-caps;}"
           text run at (368,80) width 0: " "
           text run at (0,96) width 0: " "
-      LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,179) size 769x60
         LayoutInline {<pseudo:first-letter>} at (0,0) size 10x19 [color=#800000]
           LayoutTextFragment (anonymous) at (0,0) size 10x19
@@ -102,3 +101,5 @@
                   text run at (0,86) width 739: "Note that the inclusion of both the quotation mark and the 'W' in the first-letter style is not required under CSS1, but it"
                   text run at (0,106) width 111: "is recommended. "
                   text run at (111,106) width 450: "In addition, the entire first line should be in a small-caps font and green."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/pseudo_elements_in_selectors-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/pseudo_elements_in_selectors-expected.txt
index 2f3966a2..92c169e 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/pseudo_elements_in_selectors-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/pseudo/pseudo_elements_in_selectors-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 256: "P:first-line.three {color: red;}"
           text run at (256,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x40
         LayoutText {#text} at (0,0) size 718x39
           text run at (0,0) width 339: "The first line of this sentence should be boldfaced. "
@@ -75,3 +74,5 @@
                   text run at (446,20) width 277: "If neither is the case, then the user agent has"
                   text run at (0,40) width 687: "correctly ignored the incorrect selector, but has suppressed other styles which are valid, and therefore must be"
                   text run at (0,60) width 209: "considered to have failed the test."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/units/color_units-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/units/color_units-expected.txt
index b33d7392..ac0a5e34 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/units/color_units-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/units/color_units-expected.txt
@@ -32,7 +32,6 @@
           text run at (264,160) width 0: " "
           text run at (0,176) width 264: ".eleven {color: rgb(50%,0%,60%);}"
           text run at (264,176) width 0: " "
-      LayoutBlockFlow {HR} at (0,241) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,259) size 769x20
         LayoutText {#text} at (0,0) size 193x19
           text run at (0,0) width 193: "This sentence should be black."
@@ -236,3 +235,5 @@
                     text run at (281,3) width 40: "style"
                 LayoutText {#text} at (321,0) size 59x19
                   text run at (321,0) width 59: " attribute."
+layer at (8,249) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,241) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/units/length_units-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/units/length_units-expected.txt
index aa1c1d3..a8965ee 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/units/length_units-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/units/length_units-expected.txt
@@ -30,7 +30,6 @@
           text run at (208,144) width 0: " "
           text run at (0,160) width 624: ".ten {font-size: 40px; border-left: 1ex solid purple; background-color: aqua;}"
           text run at (624,160) width 0: " "
-      LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,243) size 769x40
         LayoutText {#text} at (0,0) size 761x39
           text run at (0,0) width 761: "This paragraph has no left margin. The following paragraphs have all been given a left margin and their left (outer) edges"
@@ -170,3 +169,5 @@
                   text run at (18,145) width 710: "the same number of pixels as the lower-case"
                   text run at (18,193) width 642: "'x' in this element's font, as well as solid"
                   text run at (18,241) width 112: "purple."
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/units/percentage_units-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/units/percentage_units-expected.txt
index c6284ac9..c629852 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/units/percentage_units-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/units/percentage_units-expected.txt
@@ -17,7 +17,6 @@
           text run at (0,48) width 208: ".three {margin-left: 25%;}"
           text run at (208,48) width 0: " "
           text run at (0,64) width 0: " "
-      LayoutBlockFlow {HR} at (0,129) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,147) size 769x136 [bgcolor=#FFFF00]
         LayoutBlockFlow {DIV} at (192.25,0) size 384.50x60 [bgcolor=#FFFFFF]
           LayoutBlockFlow {P} at (0,0) size 384.50x60
@@ -64,3 +63,5 @@
                 LayoutText {#text} at (0,0) size 549x39
                   text run at (0,0) width 549: "This paragraph should have a left margin of 25% the width of its parent element, which"
                   text run at (0,20) width 356: "should require some extra text in order to test effectively."
+layer at (8,137) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,129) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/css1/units/urls-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/css1/units/urls-expected.txt
index 9bf389b5..1c05dc9 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/css1/units/urls-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/css1/units/urls-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 352: "BODY {background: url(../resources/bg.gif);}"
           text run at (352,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 784x20
         LayoutText {#text} at (0,0) size 386x19
           text run at (0,0) width 386: "This page should have a green grid pattern as its background."
@@ -58,3 +57,5 @@
                   text run at (620,0) width 117: "If an image, in this"
                   text run at (0,20) width 759: "case a red square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in relation"
                   text run at (0,40) width 313: "to the document's URL, not the stylesheet's URL."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/editing/inserting/4278698-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/editing/inserting/4278698-expected.txt
index 67a34ca..dfb3dc5 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/editing/inserting/4278698-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/editing/inserting/4278698-expected.txt
@@ -15,9 +15,10 @@
       LayoutBlockFlow {P} at (0,56) size 784x20
         LayoutText {#text} at (0,0) size 444x19
           text run at (0,0) width 444: "If successful, you should see 'a' followed by 10 spaces followed by 'b'."
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,102) size 784x24 [border: (2px solid #FFAAAA)]
         LayoutBlockFlow {PRE} at (2,2) size 780x20 [border: (2px solid #AAAAFF)]
           LayoutText {#text} at (2,2) size 96x16
             text run at (2,2) width 96: "a          b"
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 3 of child 0 {#text} of child 1 {PRE} of child 7 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/linux/editing/pasteboard/drop-text-without-selection-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/editing/pasteboard/drop-text-without-selection-expected.txt
index 8a7368f23..1e2efa4 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/editing/pasteboard/drop-text-without-selection-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/editing/pasteboard/drop-text-without-selection-expected.txt
@@ -23,7 +23,6 @@
         LayoutText {#text} at (0,0) size 653x19
           text run at (0,0) width 478: "The text field should accept drag-and-dropped text, such as the link, even if "
           text run at (478,0) width 175: "no text is currently selected."
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,102) size 784x22
         LayoutTextControl {INPUT} at (0,0) size 154x22 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
         LayoutText {#text} at (154,1) size 4x19
@@ -33,6 +32,8 @@
             text run at (158,1) width 162: "drop me into the text field"
         LayoutText {#text} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (10,113) size 150x16
   LayoutBlockFlow {DIV} at (2,3) size 150x16
     LayoutText {#text} at (0,0) size 119x16
diff --git a/third_party/WebKit/LayoutTests/platform/linux/editing/selection/4402375-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/editing/selection/4402375-expected.txt
index e205460..30ef675c 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/editing/selection/4402375-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/editing/selection/4402375-expected.txt
@@ -13,7 +13,6 @@
         LayoutText {#text} at (280,0) size 761x39
           text run at (280,0) width 481: " \"REGRESSION (417.8-TOT): finding text sometimes also selects previous"
           text run at (0,20) width 137: "image (5127) (6451)\""
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,74) size 784x40
         LayoutText {#text} at (0,0) size 743x39
           text run at (0,0) width 413: "This test uses a right aligned image next to some left aligned text. "
@@ -23,5 +22,7 @@
         LayoutImage (floating) {IMG} at (708,0) size 76x103
         LayoutText {#text} at (0,0) size 178x19
           text run at (0,0) width 178: "This text should be selected."
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
 selection start: position 0 of child 1 {#text} of child 6 {DIV} of body
 selection end:   position 29 of child 1 {#text} of child 6 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/linux/editing/selection/6476-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/editing/selection/6476-expected.txt
index 0473f08d..885a6af 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/editing/selection/6476-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/editing/selection/6476-expected.txt
@@ -15,7 +15,6 @@
         LayoutInline {SPAN} at (0,0) size 1x19
         LayoutText {#text} at (0,20) size 181x19
           text run at (0,20) width 181: "thisshouldbeonthesecondline"
-      LayoutBlockFlow {HR} at (0,48) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,66) size 784x40
         LayoutText {#text} at (0,0) size 131x19
           text run at (0,0) width 131: "This is a testcase for "
@@ -32,4 +31,6 @@
           text run at (318,0) width 446: "To run it manually, click in the space after all the text on the first line in"
           text run at (0,20) width 166: "the above editable region. "
           text run at (166,20) width 384: "Clicking should create a caret after the first space after the 'e'."
+layer at (8,56) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,48) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 1 of child 2 {#text} of child 1 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/linux/editing/selection/click-start-of-line-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/editing/selection/click-start-of-line-expected.txt
index 25d898e6..71cb288 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/editing/selection/click-start-of-line-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/editing/selection/click-start-of-line-expected.txt
@@ -21,10 +21,11 @@
         LayoutText {#text} at (0,0) size 728x19
           text run at (0,0) width 549: "To test interactively, click the left side of the W on the second line. The caret should be "
           text run at (548,0) width 180: "move to the start of that line."
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,102) size 250x114
         LayoutText {#text} at (0,1) size 233x112
           text run at (0,1) width 152: "Alice in"
           text run at (152,1) width 12: " "
           text run at (0,58) width 233: "Wonderland"
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 10 of child 0 {#text} of child 7 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/backgrounds/background-inherit-color-bug-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/backgrounds/background-inherit-color-bug-expected.txt
index 650318cd..63ff7f3 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/backgrounds/background-inherit-color-bug-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/backgrounds/background-inherit-color-bug-expected.txt
@@ -8,13 +8,11 @@
           LayoutText {#text} at (0,0) size 580x36
             text run at (0,0) width 580: "Affected Browsers: Safari 2.0, Windows Internet Explorer 6"
             text run at (0,18) width 30: "SP2"
-        LayoutBlockFlow {HR} at (4,72) size 615.19x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (4,90) size 615.19x54
           LayoutText {#text} at (0,0) size 610x54
             text run at (0,0) width 610: "Bug Description: On the Affected Browsers, if a rule sets the"
             text run at (0,18) width 540: "'background-color' of an element, this color cannot be"
             text run at (0,36) width 480: "overridden by 'background:inherit' declarations."
-        LayoutBlockFlow {HR} at (4,160) size 615.19x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (4,178) size 615.19x90
           LayoutText {#text} at (0,0) size 600x54
             text run at (0,0) width 600: "Example: With the following code, the background color of H1"
@@ -28,13 +26,11 @@
           LayoutText {#text} at (0,72) size 290x18
             text run at (0,72) width 50: "  H1 "
             text run at (50,72) width 240: "{ background: inherit; }"
-        LayoutBlockFlow {HR} at (4,284) size 615.19x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (4,302) size 615.19x54
           LayoutText {#text} at (0,0) size 610x54
             text run at (0,0) width 610: "Work-around: The 'background-color' can only be overridden by"
             text run at (0,18) width 600: "another 'background-color' declaration, or by a 'background'"
             text run at (0,36) width 380: "declaration that does specify a color."
-        LayoutBlockFlow {HR} at (4,372) size 615.19x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow (anonymous) at (4,382) size 615.19x20
           LayoutText {#text} at (0,0) size 401x19
             text run at (0,0) width 401: "This is in contradiction with the CSS2 specification which says:"
@@ -75,3 +71,11 @@
           LayoutText {#text} at (4,4) size 485x73
             text run at (4,4) width 485: "This header has a pink background"
             text run at (4,41) width 219: "and that's good."
+layer at (85,80) size 615x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,72) size 615.19x2 [border: (1px inset #EEEEEE)]
+layer at (85,168) size 615x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,160) size 615.19x2 [border: (1px inset #EEEEEE)]
+layer at (85,292) size 615x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,284) size 615.19x2 [border: (1px inset #EEEEEE)]
+layer at (85,380) size 615x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,372) size 615.19x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/css-generated-content/014-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/css-generated-content/014-expected.txt
index d2d8fce..8d4ea39 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/css-generated-content/014-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/css-generated-content/014-expected.txt
@@ -70,7 +70,6 @@
         LayoutInline {CODE} at (0,0) size 440x16
           LayoutText {#text} at (0,0) size 440x16
             text run at (0,0) width 440: "div.box.one:after{ content:'generated content here!'; }"
-      LayoutBlockFlow {HR} at (0,392.44) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {H2} at (0,414.34) size 769x27
         LayoutText {#text} at (0,0) size 477x26
           text run at (0,0) width 477: "Example (view source to see CSS and HTML):"
@@ -104,3 +103,5 @@
           LayoutBlockFlow {<pseudo:after>} at (0,20) size 717x20 [color=#008000]
             LayoutTextFragment (anonymous) at (0,0) size 111x19
               text run at (0,0) width 111: "generated content"
+layer at (8,414) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,392.44) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/css-generated-content/016-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/css-generated-content/016-expected.txt
index dc214f67..0b8eb3b 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/css-generated-content/016-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/css-generated-content/016-expected.txt
@@ -9,7 +9,6 @@
       LayoutBlockFlow {P} at (0,36) size 784x20
         LayoutText {#text} at (0,0) size 323x19
           text run at (0,0) width 323: "The href attribute of the last one is changed onload."
-      LayoutBlockFlow {HR} at (0,72) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,90) size 784x20
         LayoutInline {A} at (0,0) size 60x19 [color=#0000EE]
           LayoutText {#text} at (0,0) size 8x19
@@ -38,3 +37,5 @@
           LayoutInline {<pseudo:after>} at (0,0) size 52x19
             LayoutTextFragment (anonymous) at (8,0) size 52x19
               text run at (8,0) width 52: "(href=4)"
+layer at (8,88) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,72) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/css-generated-content/hover-style-change-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/css-generated-content/hover-style-change-expected.txt
index 259e9770..1c3b34d9 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/css-generated-content/hover-style-change-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/css-generated-content/hover-style-change-expected.txt
@@ -9,7 +9,6 @@
         LayoutInline {<pseudo:after>} at (0,0) size 178x19
           LayoutTextFragment (anonymous) at (82,0) size 178x19
             text run at (82,0) width 178: "and generated hover content"
-      LayoutBlockFlow {HR} at (0,28) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,46) size 784x40
         LayoutText {#text} at (0,0) size 52x19
           text run at (0,0) width 52: "Test for "
@@ -34,4 +33,6 @@
           text run at (0,0) width 754: "To reproduce the bug outside of DumpRenderTree, mouse over the div several times, and the style change won't update"
           text run at (0,20) width 70: "every time "
           text run at (70,20) width 85: "like it should."
+layer at (8,36) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 3 of child 0 {#text} of child 1 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/css/find-next-layer-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/css/find-next-layer-expected.txt
index 2d375f3..4596e352 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/css/find-next-layer-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/css/find-next-layer-expected.txt
@@ -15,7 +15,8 @@
             text run at (403,0) width 375: "Drop shadow obscures \"add more stuff\" bubble at live.com"
         LayoutText {#text} at (777,0) size 5x19
           text run at (777,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,54) size 784x0
   LayoutBlockFlow (relative positioned) {DIV} at (0,46) size 784x0
 layer at (8,54) size 100x100
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/css/first-letter-detach-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/css/first-letter-detach-expected.txt
index bf210d3d..349e37e 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/css/first-letter-detach-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/css/first-letter-detach-expected.txt
@@ -23,7 +23,6 @@
             text run at (231,0) width 9: "P"
         LayoutText {#text} at (240,0) size 208x19
           text run at (240,0) width 208: "ASS\x{201D}, with nothing before the P."
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x20
         LayoutInline {<pseudo:first-letter>} at (0,0) size 9x19 [color=#0000FF]
           LayoutTextFragment (anonymous) at (0,0) size 9x19
@@ -42,3 +41,5 @@
             text run at (0,0) width 9: "P"
         LayoutTextFragment {#text} at (9,0) size 30x19
           text run at (9,0) width 30: "ASS"
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/css/h1-in-section-elements-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/css/h1-in-section-elements-expected.txt
index d4a5cd43..5721458f 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/css/h1-in-section-elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/css/h1-in-section-elements-expected.txt
@@ -12,65 +12,49 @@
           LayoutTableRow {TR} at (0,2) size 152x75
             LayoutTableCell {TD} at (2,2) size 73x74.81 [r=0 c=0 rs=1 cs=1]
               LayoutBlockFlow {SECTION} at (1,1) size 71x72.81
-                LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
                 LayoutBlockFlow {H1} at (0,21.91) size 71x29 [border: (1px solid #00FF00)]
                   LayoutText {#text} at (1,1) size 69x26
                     text run at (1,1) width 69: "MMM"
-                LayoutBlockFlow {HR} at (0,70.81) size 71x2 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (77,2) size 73x74.81 [r=0 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H2} at (1,22.91) size 71x29 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 69x26
                   text run at (1,1) width 69: "MMM"
-              LayoutBlockFlow {HR} at (1,71.81) size 71x2 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (0,79) size 152x68
             LayoutTableCell {TD} at (2,79) size 73x68.44 [r=1 c=0 rs=1 cs=1]
               LayoutBlockFlow {ARTICLE} at (1,1) size 71x66.44
                 LayoutBlockFlow {SECTION} at (0,0) size 71x66.44
-                  LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
                   LayoutBlockFlow {H1} at (0,20.72) size 71x25 [border: (1px solid #00FF00)]
                     LayoutText {#text} at (1,1) size 54x22
                       text run at (1,1) width 54: "MMM"
-                  LayoutBlockFlow {HR} at (0,64.44) size 71x2 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (77,79) size 73x68.44 [r=1 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H3} at (1,21.72) size 71x25 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 54x22
                   text run at (1,1) width 54: "MMM"
-              LayoutBlockFlow {HR} at (1,65.44) size 71x2 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (0,149) size 152x71
             LayoutTableCell {TD} at (2,149) size 73x70.53 [r=2 c=0 rs=1 cs=1]
               LayoutBlockFlow {NAV} at (1,1) size 71x68.53
                 LayoutBlockFlow {ARTICLE} at (0,0) size 71x68.53
                   LayoutBlockFlow {SECTION} at (0,0) size 71x68.53
-                    LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
                     LayoutBlockFlow {H1} at (0,23.27) size 71x22 [border: (1px solid #00FF00)]
                       LayoutText {#text} at (1,1) size 45x19
                         text run at (1,1) width 45: "MMM"
-                    LayoutBlockFlow {HR} at (0,66.53) size 71x2 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (77,149) size 73x70.53 [r=2 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H4} at (1,24.27) size 71x22 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 45x19
                   text run at (1,1) width 45: "MMM"
-              LayoutBlockFlow {HR} at (1,67.53) size 71x2 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (0,222) size 152x68
             LayoutTableCell {TD} at (2,222) size 73x68.34 [r=3 c=0 rs=1 cs=1]
               LayoutBlockFlow {NAV} at (1,1) size 71x66.34
                 LayoutBlockFlow {ASIDE} at (0,0) size 71x66.34
                   LayoutBlockFlow {ARTICLE} at (0,0) size 71x66.34
                     LayoutBlockFlow {SECTION} at (0,0) size 71x66.34
-                      LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
                       LayoutBlockFlow {H1} at (0,24.17) size 71x18 [border: (1px solid #00FF00)]
                         LayoutText {#text} at (1,1) size 36x15
                           text run at (1,1) width 36: "MMM"
-                      LayoutBlockFlow {HR} at (0,64.34) size 71x2 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (77,222) size 73x68.34 [r=3 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H5} at (1,25.17) size 71x18 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 36x15
                   text run at (1,1) width 36: "MMM"
-              LayoutBlockFlow {HR} at (1,65.34) size 71x2 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (0,292) size 152x71
             LayoutTableCell {TD} at (2,292) size 73x70.94 [r=4 c=0 rs=1 cs=1]
               LayoutBlockFlow {SECTION} at (1,1) size 71x68.94
@@ -79,82 +63,62 @@
                     LayoutBlockFlow {ASIDE} at (0,0) size 71x68.94
                       LayoutBlockFlow {ARTICLE} at (0,0) size 71x68.94
                         LayoutBlockFlow {SECTION} at (0,0) size 71x68.94
-                          LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
                           LayoutBlockFlow {H1} at (0,26.97) size 71x15 [border: (1px solid #00FF00)]
                             LayoutText {#text} at (1,1) size 30x13
                               text run at (1,1) width 30: "MMM"
-                          LayoutBlockFlow {HR} at (0,66.94) size 71x2 [border: (1px inset #EEEEEE)]
                   LayoutBlockFlow {DIV} at (0,68.94) size 71x0
             LayoutTableCell {TD} at (77,292) size 73x70.94 [r=4 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H6} at (1,27.97) size 71x15 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 30x13
                   text run at (1,1) width 30: "MMM"
-              LayoutBlockFlow {HR} at (1,67.94) size 71x2 [border: (1px inset #EEEEEE)]
       LayoutTable {TABLE} at (152,36) size 365x152
         LayoutTableSection {TBODY} at (0,0) size 365x152
           LayoutTableRow {TR} at (2,0) size 75x152
             LayoutTableCell {TD} at (2,2) size 74.81x73 [r=0 c=0 rs=1 cs=1]
               LayoutBlockFlow {SECTION} at (1,1) size 72.81x71
-                LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
                 LayoutBlockFlow {H1} at (21.91,0) size 29x71 [border: (1px solid #00FF00)]
                   LayoutText {#text} at (1,1) size 26x69
                     text run at (1,1) width 69: "MMM"
-                LayoutBlockFlow {HR} at (70.81,0) size 2x71 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (2,77) size 74.81x73 [r=0 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H2} at (22.91,1) size 29x71 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 26x69
                   text run at (1,1) width 69: "MMM"
-              LayoutBlockFlow {HR} at (71.81,1) size 2x71 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (79,0) size 68x152
             LayoutTableCell {TD} at (79,2) size 68.44x73 [r=1 c=0 rs=1 cs=1]
               LayoutBlockFlow {ARTICLE} at (1,1) size 66.44x71
                 LayoutBlockFlow {SECTION} at (0,0) size 66.44x71
-                  LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
                   LayoutBlockFlow {H1} at (20.72,0) size 25x71 [border: (1px solid #00FF00)]
                     LayoutText {#text} at (1,1) size 22x54
                       text run at (1,1) width 54: "MMM"
-                  LayoutBlockFlow {HR} at (64.44,0) size 2x71 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (79,77) size 68.44x73 [r=1 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H3} at (21.72,1) size 25x71 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 22x54
                   text run at (1,1) width 54: "MMM"
-              LayoutBlockFlow {HR} at (65.44,1) size 2x71 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (149,0) size 71x152
             LayoutTableCell {TD} at (149,2) size 70.53x73 [r=2 c=0 rs=1 cs=1]
               LayoutBlockFlow {NAV} at (1,1) size 68.53x71
                 LayoutBlockFlow {ARTICLE} at (0,0) size 68.53x71
                   LayoutBlockFlow {SECTION} at (0,0) size 68.53x71
-                    LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
                     LayoutBlockFlow {H1} at (23.27,0) size 22x71 [border: (1px solid #00FF00)]
                       LayoutText {#text} at (1,1) size 19x45
                         text run at (1,1) width 45: "MMM"
-                    LayoutBlockFlow {HR} at (66.53,0) size 2x71 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (149,77) size 70.53x73 [r=2 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H4} at (24.27,1) size 22x71 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 19x45
                   text run at (1,1) width 45: "MMM"
-              LayoutBlockFlow {HR} at (67.53,1) size 2x71 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (222,0) size 68x152
             LayoutTableCell {TD} at (222,2) size 68.34x73 [r=3 c=0 rs=1 cs=1]
               LayoutBlockFlow {NAV} at (1,1) size 66.34x71
                 LayoutBlockFlow {ASIDE} at (0,0) size 66.34x71
                   LayoutBlockFlow {ARTICLE} at (0,0) size 66.34x71
                     LayoutBlockFlow {SECTION} at (0,0) size 66.34x71
-                      LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
                       LayoutBlockFlow {H1} at (24.17,0) size 18x71 [border: (1px solid #00FF00)]
                         LayoutText {#text} at (1,1) size 15x36
                           text run at (1,1) width 36: "MMM"
-                      LayoutBlockFlow {HR} at (64.34,0) size 2x71 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (222,77) size 68.34x73 [r=3 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H5} at (25.17,1) size 18x71 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 15x36
                   text run at (1,1) width 36: "MMM"
-              LayoutBlockFlow {HR} at (65.34,1) size 2x71 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (292,0) size 71x152
             LayoutTableCell {TD} at (292,2) size 70.94x73 [r=4 c=0 rs=1 cs=1]
               LayoutBlockFlow {SECTION} at (1,1) size 68.94x71
@@ -163,15 +127,91 @@
                     LayoutBlockFlow {ASIDE} at (0,0) size 68.94x71
                       LayoutBlockFlow {ARTICLE} at (0,0) size 68.94x71
                         LayoutBlockFlow {SECTION} at (0,0) size 68.94x71
-                          LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
                           LayoutBlockFlow {H1} at (26.97,0) size 15x71 [border: (1px solid #00FF00)]
                             LayoutText {#text} at (1,1) size 13x30
                               text run at (1,1) width 30: "MMM"
-                          LayoutBlockFlow {HR} at (66.94,0) size 2x71 [border: (1px inset #EEEEEE)]
                   LayoutBlockFlow {DIV} at (68.94,0) size 0x71
             LayoutTableCell {TD} at (292,77) size 70.94x73 [r=4 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H6} at (27.97,1) size 15x71 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 13x30
                   text run at (1,1) width 30: "MMM"
-              LayoutBlockFlow {HR} at (67.94,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (11,55) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,126) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,70.81) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,55) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,126) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,71.81) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,132) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,196) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,64.44) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,132) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,196) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,65.44) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,202) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,269) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,66.53) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,202) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,269) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,67.53) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,275) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,339) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,64.34) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,275) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,339) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,65.34) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,345) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,412) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,66.94) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,345) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,412) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,67.94) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (520,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (449,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (70.81,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (520,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (449,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (71.81,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (443,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (379,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (64.44,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (443,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (379,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (65.44,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (373,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (306,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (66.53,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (373,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (306,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (67.53,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (300,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (236,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (64.34,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (300,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (236,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (65.34,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (230,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (163,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (66.94,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (230,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (163,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (67.94,1) size 2x71 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/css/hover-subselector-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/css/hover-subselector-expected.txt
index 54f4a6b..5f7df57f 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/css/hover-subselector-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/css/hover-subselector-expected.txt
@@ -8,7 +8,6 @@
           LayoutText {#text} at (0,0) size 225x19
             text run at (0,0) width 225: "This should turn red when hovered."
         LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,28) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,46) size 784x40
         LayoutText {#text} at (0,0) size 52x19
           text run at (0,0) width 52: "Test for "
@@ -26,3 +25,5 @@
             text run at (191,23) width 97: "span#t:hover"
         LayoutText {#text} at (287,20) size 171x19
           text run at (287,20) width 171: " matches the hovered span."
+layer at (8,36) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/css/resize-corner-tracking-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/css/resize-corner-tracking-expected.txt
index 296f200..f2a5042 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/css/resize-corner-tracking-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/css/resize-corner-tracking-expected.txt
@@ -3,7 +3,6 @@
 layer at (0,0) size 800x600
   LayoutBlockFlow {HTML} at (0,0) size 800x600
     LayoutBlockFlow {BODY} at (8,8) size 784x584
-      LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,18) size 784x20
         LayoutText {#text} at (0,0) size 52x19
           text run at (0,0) width 52: "Test for "
@@ -16,7 +15,6 @@
             text run at (403,0) width 318: "Resize corner does not track the mouse accurately"
         LayoutText {#text} at (720,0) size 5x19
           text run at (720,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,54) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,189) size 784x363
         LayoutText {#text} at (169,106) size 4x19
           text run at (169,106) width 4: " "
@@ -25,6 +23,10 @@
           text run at (198,168) width 4: " "
         LayoutBR {BR} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,8) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,62) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,54) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,72) size 173x125 clip at (10,74) size 169x121
   LayoutBlockFlow {DIV} at (0,64) size 173x125 [border: (2px solid #0000FF)]
 layer at (8,197) size 169x121 clip at (10,199) size 165x117
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/css/resize-corner-tracking-transformed-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/css/resize-corner-tracking-transformed-expected.txt
index 6d68a76..cf7b541 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/css/resize-corner-tracking-transformed-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/css/resize-corner-tracking-transformed-expected.txt
@@ -3,7 +3,6 @@
 layer at (0,0) size 800x600
   LayoutBlockFlow {HTML} at (0,0) size 800x600
     LayoutBlockFlow {BODY} at (8,8) size 784x542
-      LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,18) size 784x20
         LayoutText {#text} at (0,0) size 52x19
           text run at (0,0) width 52: "Test for "
@@ -16,6 +15,9 @@
             text run at (361,0) width 336: "Resize corner does not track in transformed elements"
         LayoutText {#text} at (696,0) size 5x19
           text run at (696,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,54) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,8) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,62) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,54) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (58,114) size 163x129 clip at (60,116) size 159x125
   LayoutBlockFlow {DIV} at (50,106) size 163x129 [border: (2px solid #0000FF)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/css/resize-corner-tracking-transformed-iframe-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/css/resize-corner-tracking-transformed-iframe-expected.txt
index 1a69f90..40e9a40 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/css/resize-corner-tracking-transformed-iframe-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/css/resize-corner-tracking-transformed-iframe-expected.txt
@@ -3,7 +3,6 @@
 layer at (0,0) size 800x600
   LayoutBlockFlow {HTML} at (0,0) size 800x600
     LayoutBlockFlow {BODY} at (8,8) size 784x584
-      LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,18) size 784x20
         LayoutText {#text} at (0,0) size 52x19
           text run at (0,0) width 52: "Test for "
@@ -16,9 +15,12 @@
             text run at (354,0) width 249: "resize property doesn't work on iframes"
         LayoutText {#text} at (602,0) size 5x19
           text run at (602,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,54) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,64) size 784x230
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,8) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,62) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,54) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (58,122) size 163x130
   LayoutIFrame {IFRAME} at (50,50) size 163x130 [border: (2px solid #0000FF)]
     layer at (0,0) size 159x126
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/css/rtl-ordering-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/css/rtl-ordering-expected.txt
index 6764ff6e..11501fbe 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/css/rtl-ordering-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/css/rtl-ordering-expected.txt
@@ -15,7 +15,6 @@
             text run at (0,20) width 370 LTR override: "type=\"button\"> text is reversed on \"visual Hebrew\" pages"
         LayoutText {#text} at (369,20) size 5x19
           text run at (369,20) width 5 LTR override: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,74) size 784x20
         LayoutText {#text} at (0,0) size 295x19
           text run at (0,0) width 295 LTR override: "The text on both buttons should like this: \x{5E8}\x{5D5}\x{5EA}\x{5E4}\x{5DB}"
@@ -32,7 +31,6 @@
             LayoutText {#text} at (0,0) size 31x16
               text run at (0,0) width 31 RTL: "\x{5DB}\x{5E4}\x{5EA}\x{5D5}\x{5E8}"
         LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,162) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,180) size 784x20
         LayoutText {#text} at (0,0) size 249x19
           text run at (0,0) width 249 LTR override: "The following lines should be identical:"
@@ -43,3 +41,7 @@
       LayoutBlockFlow {P} at (0,252) size 784x20
         LayoutText {#text} at (0,0) size 65x19
           text run at (0,0) width 65 LTR override: "21-\x{5D4} \x{5D4}\x{5D0}\x{5DE}\x{5D4}"
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,170) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,162) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/css/universal-hover-quirk-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/css/universal-hover-quirk-expected.txt
index 3e91f3a6..11bb2d4 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/css/universal-hover-quirk-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/css/universal-hover-quirk-expected.txt
@@ -8,7 +8,6 @@
           LayoutText {#text} at (0,0) size 249x19
             text run at (0,0) width 249: "This should not turn red when hovered."
         LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,28) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,46) size 784x40
         LayoutText {#text} at (0,0) size 52x19
           text run at (0,0) width 52: "Test for "
@@ -26,4 +25,6 @@
         LayoutText {#text} at (750,0) size 784x39
           text run at (750,0) width 34: " does"
           text run at (0,20) width 223: "not match anything in quirks mode."
+layer at (8,36) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/dom/34176-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/dom/34176-expected.txt
index 3385ba9..ea0aa89 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/dom/34176-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/dom/34176-expected.txt
@@ -10,7 +10,6 @@
           text run at (53,20) width 716: "TextRun3's bidi level is 1. TextRun2 and TextRun3 are siblings. But their ancestor (not their parent) is a sibling of"
           text run at (96,40) width 72: "TextRun1. "
           text run at (167,40) width 602: "The visual order should be TextRun3 TextRun1 TextRun2, not TextRun3 TextRun2 TextRun1."
-      LayoutBlockFlow {HR} at (0,76) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,94) size 769x20
         LayoutText {#text} at (312,0) size 457x19
           text run at (312,0) width 342: "Pure text. The following 3 lines should all display as \""
@@ -49,7 +48,6 @@
           LayoutInline {SPAN} at (0,0) size 23x19
             LayoutText {#text} at (660,0) size 23x19
               text run at (660,0) width 23 RTL: "\x{5E9}\x{5E0}\x{5D1}"
-      LayoutBlockFlow {HR} at (0,198) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,216) size 769x20
         LayoutText {#text} at (321,0) size 448x19
           text run at (321,0) width 448: "Text in <em>. The English text should be displayed as \"This is a Test\"."
@@ -96,7 +94,6 @@
           LayoutInline {EM} at (0,0) size 25x19
             LayoutText {#text} at (744,0) size 25x19
               text run at (744,0) width 25: "Test"
-      LayoutBlockFlow {HR} at (0,360) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,378) size 769x20
         LayoutText {#text} at (297,0) size 472x19
           text run at (297,0) width 472: "Text in <strong>. The following lines should all display as \"This is a Test\"."
@@ -132,7 +129,6 @@
           LayoutInline {STRONG} at (0,0) size 28x19
             LayoutText {#text} at (741,0) size 28x19
               text run at (741,0) width 28: "Test"
-      LayoutBlockFlow {HR} at (0,502) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,520) size 769x20
         LayoutText {#text} at (332,0) size 437x19
           text run at (332,0) width 437: "Text in <i>. The following lines should all display as \"This is a Test\"."
@@ -168,7 +164,6 @@
           LayoutInline {I} at (0,0) size 25x19
             LayoutText {#text} at (744,0) size 25x19
               text run at (744,0) width 25: "Test"
-      LayoutBlockFlow {HR} at (0,644) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,662) size 769x20
         LayoutText {#text} at (328,0) size 441x19
           text run at (328,0) width 441: "Text in <b>. The following lines should all display as \"This is a Test\"."
@@ -208,7 +203,6 @@
         LayoutInline {B} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,786) size 769x746
-        LayoutBlockFlow {HR} at (0,0) size 769x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (0,18) size 769x20
           LayoutText {#text} at (100,0) size 669x19
             text run at (100,0) width 669: "Text in <img>, <href>, <em>, <tr>. The following English text should all display as \"This is a Test\"."
@@ -281,7 +275,6 @@
           LayoutBlockFlow (anonymous) at (0,46) size 769x0
             LayoutInline {SPAN} at (0,0) size 0x0
               LayoutInline {EM} at (0,0) size 0x0
-        LayoutBlockFlow {HR} at (0,208) size 769x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {UL} at (0,226) size 769x520
           LayoutListItem {LI} at (40,0) size 729x20
             LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
@@ -389,5 +382,19 @@
               text run at (0,0) width 117: "Test 25: : Success"
       LayoutBlockFlow (anonymous) at (0,1548) size 769x0
         LayoutInline {B} at (0,0) size 0x0
+layer at (8,92) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,76) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,214) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,198) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,376) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,360) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,518) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,502) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,660) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,644) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,802) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1010) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,208) size 769x2 [border: (1px inset #EEEEEE)]
 selection start: position 0 of child 0 {#text} of child 14 {DIV} of child 56 {B} of body
 selection end:   position 4 of child 0 {#text} of child 14 {DIV} of child 56 {B} of body
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/dom/HTMLElement/bdo-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/dom/HTMLElement/bdo-expected.txt
index 0643b448..98e5ab3 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/dom/HTMLElement/bdo-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/dom/HTMLElement/bdo-expected.txt
@@ -14,7 +14,6 @@
           text run at (0,0) width 727: "If successful, the first sentence would be backward, and the second sentence regular. There should then be an extra "
           text run at (726,0) width 36: "blank"
           text run at (0,20) width 697: "line, followed by a line reading only \"A,\" and finally, a sentence where only the word \"umbrella\" is backward."
-      LayoutBlockFlow {HR} at (0,128) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,138) size 784x120
         LayoutBR {BR} at (0,0) size 0x19
         LayoutInline {BDO} at (0,0) size 221x19
@@ -47,3 +46,5 @@
           LayoutText {#text} at (81,100) size 209x19
             text run at (81,100) width 209 LTR override: " sure would be useful in this rain."
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,136) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,128) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt
index 02fd1dd..bb640df 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt
@@ -19,6 +19,7 @@
       LayoutBlockFlow {P} at (0,56) size 784x20
         LayoutText {#text} at (0,0) size 243x19
           text run at (0,0) width 243: "There should be a green square below."
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,102) size 784x0
       LayoutBlockFlow {DIV} at (0,102) size 100x100 [bgcolor=#008000]
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/dynamic/012-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/dynamic/012-expected.txt
index 1e89d0d9..359eafa 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/dynamic/012-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/dynamic/012-expected.txt
@@ -18,7 +18,6 @@
           text run at (0,0) width 579: "Note that the second section is collapsed when the page opens and expanding it works fine. "
           text run at (579,0) width 168: "Just the collapse is broken."
       LayoutBlockFlow {DIV} at (0,154.91) size 784x157
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {DIV} at (0,10) size 784x21
           LayoutImage {IMG} at (0,0) size 16x16
           LayoutText {#text} at (16,1) size 75x19
@@ -55,7 +54,10 @@
                 LayoutTableCell {TD} at (36,50) size 746x22 [r=2 c=1 rs=1 cs=1]
                   LayoutText {#text} at (1,1) size 74x19
                     text run at (1,1) width 74: "block three."
-        LayoutBlockFlow {HR} at (0,155) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,163) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,318) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,155) size 784x2 [border: (1px inset #EEEEEE)]
 hidden layer at (8,194) size 109x74
   LayoutBlockFlow (positioned) {DIV} at (8,193.91) size 109x74
     LayoutTable {TABLE} at (0,0) size 109x74
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/dynamic/selection-highlight-adjust-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/dynamic/selection-highlight-adjust-expected.txt
index 05292e3..4db2889 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/dynamic/selection-highlight-adjust-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/dynamic/selection-highlight-adjust-expected.txt
@@ -16,7 +16,6 @@
             text run at (0,20) width 138: "highlight stays behind"
         LayoutText {#text} at (138,20) size 4x19
           text run at (138,20) width 4: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,66) size 784x75
         LayoutImage {IMG} at (0,0) size 0x30
         LayoutBR {BR} at (0,15) size 0x19
@@ -27,5 +26,7 @@
         LayoutText {#text} at (309,55) size 4x19
           text run at (309,55) width 4: " "
         LayoutBR {BR} at (313,55) size 0x19
+layer at (8,72) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
 selection start: position 0 of child 0 {#text} of child 6 {SPAN} of child 5 {DIV} of body
 selection end:   position 51 of child 0 {#text} of child 6 {SPAN} of child 5 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/encoding/invalid-UTF-8-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/encoding/invalid-UTF-8-expected.txt
index e12d7b98..cee56e07 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/encoding/invalid-UTF-8-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/encoding/invalid-UTF-8-expected.txt
@@ -9,7 +9,8 @@
       LayoutBlockFlow {P} at (0,36) size 784x20
         LayoutText {#text} at (0,0) size 502x19
           text run at (0,0) width 502: "The output should be: \"\x{442}??\x{442}\" (with black diamonds in place of question marks)."
-      LayoutBlockFlow {HR} at (0,72) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,90) size 784x28
         LayoutText {#text} at (0,3) size 36x19
           text run at (0,3) width 36: "\x{442}\x{FFFD}\x{FFFD}\x{442}"
+layer at (8,80) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,72) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/encoding/utf-16-big-endian-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/encoding/utf-16-big-endian-expected.txt
index 7b806aa..3fc1c58 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/encoding/utf-16-big-endian-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/encoding/utf-16-big-endian-expected.txt
@@ -22,7 +22,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,28.66) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,37.31) size 784x37
         LayoutInline {SPAN} at (0,0) size 110x35
           LayoutInline {SPAN} at (0,0) size 110x35
@@ -45,7 +44,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,80.97) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,89.63) size 784x52
         LayoutInline {SPAN} at (0,0) size 571x50
           LayoutInline {SPAN} at (0,0) size 571x50
@@ -65,7 +63,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,148.28) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,156.94) size 784x21
         LayoutInline {SPAN} at (0,0) size 126x22
           LayoutInline {SPAN} at (0,0) size 126x22
@@ -88,7 +85,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,246.59) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,255.25) size 784x21
         LayoutInline {SPAN} at (0,0) size 128x16
           LayoutInline {SPAN} at (0,0) size 128x16
@@ -137,7 +133,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,345.91) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,354.56) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -237,7 +232,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,567.22) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,575.88) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -337,7 +331,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,788.53) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,797.19) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -394,7 +387,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,923.84) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,932.50) size 784x52
         LayoutInline {SPAN} at (0,0) size 196x50
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -419,7 +411,6 @@
             LayoutBR {BR} at (195,49) size 1x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,991.16) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,999.81) size 784x21
         LayoutInline {SPAN} at (0,0) size 182x16
           LayoutInline {SPAN} at (0,0) size 182x19
@@ -442,7 +433,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,1027.47) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,1036.13) size 784x20
         LayoutInline {SPAN} at (0,0) size 257x16
           LayoutInline {SPAN} at (0,0) size 257x16
@@ -459,7 +449,6 @@
             LayoutText {#text} at (0,0) size 0x0
             LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,1062.78) size 784x31.33
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (0,15.33) size 784x16
           LayoutText {#text} at (0,0) size 204x16
             text run at (0,0) width 204: "This itinerary is subject to change. "
@@ -471,6 +460,28 @@
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
+layer at (8,37) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,156) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,255) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,354) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,575) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,797) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,932) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,999) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,1035) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,1071) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (23,45) size 84x16
   LayoutInline (relative positioned) {SPAN} at (0,0) size 84x16
     LayoutText {#text} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/encoding/utf-16-little-endian-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/encoding/utf-16-little-endian-expected.txt
index 7b806aa..3fc1c58 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/encoding/utf-16-little-endian-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/encoding/utf-16-little-endian-expected.txt
@@ -22,7 +22,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,28.66) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,37.31) size 784x37
         LayoutInline {SPAN} at (0,0) size 110x35
           LayoutInline {SPAN} at (0,0) size 110x35
@@ -45,7 +44,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,80.97) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,89.63) size 784x52
         LayoutInline {SPAN} at (0,0) size 571x50
           LayoutInline {SPAN} at (0,0) size 571x50
@@ -65,7 +63,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,148.28) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,156.94) size 784x21
         LayoutInline {SPAN} at (0,0) size 126x22
           LayoutInline {SPAN} at (0,0) size 126x22
@@ -88,7 +85,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,246.59) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,255.25) size 784x21
         LayoutInline {SPAN} at (0,0) size 128x16
           LayoutInline {SPAN} at (0,0) size 128x16
@@ -137,7 +133,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,345.91) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,354.56) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -237,7 +232,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,567.22) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,575.88) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -337,7 +331,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,788.53) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,797.19) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -394,7 +387,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,923.84) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,932.50) size 784x52
         LayoutInline {SPAN} at (0,0) size 196x50
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -419,7 +411,6 @@
             LayoutBR {BR} at (195,49) size 1x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,991.16) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,999.81) size 784x21
         LayoutInline {SPAN} at (0,0) size 182x16
           LayoutInline {SPAN} at (0,0) size 182x19
@@ -442,7 +433,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,1027.47) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,1036.13) size 784x20
         LayoutInline {SPAN} at (0,0) size 257x16
           LayoutInline {SPAN} at (0,0) size 257x16
@@ -459,7 +449,6 @@
             LayoutText {#text} at (0,0) size 0x0
             LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,1062.78) size 784x31.33
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (0,15.33) size 784x16
           LayoutText {#text} at (0,0) size 204x16
             text run at (0,0) width 204: "This itinerary is subject to change. "
@@ -471,6 +460,28 @@
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
+layer at (8,37) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,156) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,255) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,354) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,575) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,797) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,932) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,999) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,1035) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,1071) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (23,45) size 84x16
   LayoutInline (relative positioned) {SPAN} at (0,0) size 84x16
     LayoutText {#text} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/button/button-inner-block-reuse-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/button/button-inner-block-reuse-expected.txt
index 086c346..c2c0577 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/button/button-inner-block-reuse-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/button/button-inner-block-reuse-expected.txt
@@ -21,7 +21,6 @@
           text run at (0,0) width 559: "In the render tree, the button should have only one child, an anonymous block wrapping "
           text run at (559,0) width 144: "all of the button's other"
           text run at (0,20) width 80: "descendants."
-      LayoutBlockFlow {HR} at (0,112) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,122) size 784x6
         LayoutButton {BUTTON} at (0,0) size 16x6 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
           LayoutBlockFlow (anonymous) at (8,3) size 0x0
@@ -32,3 +31,5 @@
             LayoutBlockFlow (anonymous) at (0,0) size 0x0
               LayoutInline {SPAN} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,120) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,112) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/fieldset/fieldset-align-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/fieldset/fieldset-align-expected.txt
index 5dc98b03..d1bb674 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/fieldset/fieldset-align-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/fieldset/fieldset-align-expected.txt
@@ -34,7 +34,6 @@
         LayoutBlockFlow (anonymous) at (14,25.59) size 737x22
           LayoutTextControl {INPUT} at (0,0) size 154x22 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
           LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,282.38) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,300.38) size 769x20
         LayoutText {#text} at (0,0) size 147x19
           text run at (0,0) width 147: "Legend align test, RTL"
@@ -73,7 +72,6 @@
       LayoutBlockFlow (anonymous) at (0,574.75) size 769x0
         LayoutInline {SPAN} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,582.75) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,600.75) size 769x20
         LayoutText {#text} at (0,0) size 270x19
           text run at (0,0) width 270: "Legend align test with margin and padding"
@@ -105,7 +103,6 @@
         LayoutBlockFlow (anonymous) at (17,35) size 705x22
           LayoutTextControl {INPUT} at (0,0) size 154x22 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
           LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,992.75) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,1010.75) size 769x20
         LayoutText {#text} at (0,0) size 308x19
           text run at (0,0) width 308: "Legend align test with margin and padding, RTL"
@@ -152,6 +149,8 @@
   LayoutBlockFlow {DIV} at (2,3) size 150x16
 layer at (26,251) size 150x16
   LayoutBlockFlow {DIV} at (2,3) size 150x16
+layer at (8,290) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,282.38) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (609,373) size 150x16
   LayoutBlockFlow {DIV} at (2,3) size 150x16
 layer at (609,433) size 150x16
@@ -160,6 +159,8 @@
   LayoutBlockFlow {DIV} at (2,3) size 150x16
 layer at (609,552) size 150x16
   LayoutBlockFlow {DIV} at (2,3) size 150x16
+layer at (8,591) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,582.75) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (42,683) size 150x16 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
   LayoutBlockFlow {DIV} at (2,3) size 150x16
 layer at (42,772) size 150x16 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
@@ -168,6 +169,8 @@
   LayoutBlockFlow {DIV} at (2,3) size 150x16
 layer at (42,950) size 150x16 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
   LayoutBlockFlow {DIV} at (2,3) size 150x16
+layer at (8,1001) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,992.75) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (593,1093) size 150x16 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
   LayoutBlockFlow {DIV} at (2,3) size 150x16
 layer at (593,1182) size 150x16 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/floating-textfield-relayout-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/floating-textfield-relayout-expected.txt
index 3eadbde..44db997 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/floating-textfield-relayout-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/floating-textfield-relayout-expected.txt
@@ -16,7 +16,8 @@
             text run at (0,20) width 59: "keystroke"
         LayoutText {#text} at (58,20) size 5x19
           text run at (58,20) width 5: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,74) size 784x0
   LayoutBlockFlow (relative positioned) {DIV} at (0,66) size 784x0
     LayoutTextControl (floating) {INPUT} at (0,0) size 392x22 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/image-border-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/image-border-expected.txt
index 998fcb9..2f294bd 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/image-border-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/image-border-expected.txt
@@ -12,9 +12,10 @@
         LayoutText {#text} at (0,35) size 53x19
           text run at (0,35) width 53: "border:0"
         LayoutImage {IMG} at (53,0) size 338x50
-      LayoutBlockFlow {HR} at (0,119) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,129) size 784x57
         LayoutText {#text} at (0,37) size 53x19
           text run at (0,37) width 53: "border:1"
         LayoutImage {IMG} at (53,0) size 340x52 [border: (1px solid #000000)]
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,127) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,119) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/input-value-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/input-value-expected.txt
index 5aa5e21..3f8a443 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/input-value-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/input-value-expected.txt
@@ -10,7 +10,6 @@
       LayoutBlockFlow {P} at (0,56) size 784x20
         LayoutText {#text} at (0,0) size 712x19
           text run at (0,0) width 712: "Results that match Gecko are like WinIE, but with \"before\" for the attribute in the first two rows and the last row."
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {FORM} at (0,102) size 784x376
         LayoutTable {TABLE} at (0,0) size 758x376
           LayoutTableSection {THEAD} at (0,0) size 758x26
@@ -204,6 +203,8 @@
               LayoutTableCell {TD} at (695,325) size 61x22 [r=13 c=3 rs=1 cs=1]
                 LayoutText {#text} at (1,1) size 40x19
                   text run at (1,1) width 40: "before"
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (400,140) size 150x16
   LayoutBlockFlow {DIV} at (2,3) size 150x16
     LayoutText {#text} at (0,0) size 36x16
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/select/menulist-appearance-rtl-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/select/menulist-appearance-rtl-expected.txt
index 42fe2cb..f36f8b47 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/select/menulist-appearance-rtl-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/select/menulist-appearance-rtl-expected.txt
@@ -53,7 +53,6 @@
             LayoutText {#text} at (0,0) size 69x19
               text run at (0,0) width 22: "abc"
               text run at (22,0) width 47 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
-      LayoutBlockFlow {HR} at (0,252) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,262) size 784x59
         LayoutBlockFlow (anonymous) at (0,0) size 784x20
           LayoutText {#text} at (0,0) size 622x19
@@ -67,10 +66,13 @@
               LayoutText (anonymous) at (4,1) size 91x16
                 text run at (4,1) width 91 RTL: "\x{627}\x{644}\x{627}\x{642}\x{62A}\x{631}\x{627}\x{62D}\x{627}\x{62A} / \x{627}\x{644}\x{634}\x{643}\x{627}\x{648}\x{64A}"
           LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,329) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,347) size 784x20
         LayoutText {#text} at (0,0) size 694x19
           text run at (0,0) width 694: "Verify that the alignment and writing direction of each selected item matches the one below the pop-up button."
+layer at (8,268) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,252) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,345) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,329) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,399) size 784x160
   LayoutBlockFlow {DIV} at (0,383) size 784x160
     LayoutMultiColumnSet (anonymous) at (0,0) size 784x160
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/select/select-visual-hebrew-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/select/select-visual-hebrew-expected.txt
index 9b78ded..3cfe2cef 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/select/select-visual-hebrew-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/select/select-visual-hebrew-expected.txt
@@ -6,7 +6,6 @@
       LayoutBlockFlow {P} at (0,0) size 784x20
         LayoutText {#text} at (0,0) size 619x19
           text run at (0,0) width 619 LTR override: "This tests that native pop-ups are rendered in logical order even in visually-ordered Hebrew pages."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,54) size 784x20
         LayoutText {#text} at (0,0) size 381x19
           text run at (0,0) width 381 LTR override: "Text on the pop-up and in the list should look like this: \x{5E8}\x{5D5}\x{5EA}\x{5E4}\x{5DB}"
@@ -16,3 +15,5 @@
             LayoutText (anonymous) at (4,1) size 31x16
               text run at (4,1) width 31 RTL: "\x{5DB}\x{5E4}\x{5EA}\x{5D5}\x{5E8}"
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/visual-hebrew-text-field-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/visual-hebrew-text-field-expected.txt
index 135bf2a..cbf1ff1 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/forms/visual-hebrew-text-field-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/forms/visual-hebrew-text-field-expected.txt
@@ -15,13 +15,14 @@
             text run at (0,20) width 249 LTR override: "are reversed on \"visual Hebrew\" pages"
         LayoutText {#text} at (248,20) size 5x19
           text run at (248,20) width 5 LTR override: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,74) size 784x20
         LayoutText {#text} at (0,0) size 272x19
           text run at (0,0) width 272 LTR override: "Text in the field should look like this: \x{5E8}\x{5D5}\x{5EA}\x{5E4}\x{5DB}"
       LayoutBlockFlow (anonymous) at (0,110) size 784x22
         LayoutTextControl {INPUT} at (0,0) size 154x22 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (10,121) size 150x16
   LayoutBlockFlow {DIV} at (2,3) size 150x16
     LayoutText {#text} at (0,0) size 31x16
diff --git a/third_party/WebKit/LayoutTests/platform/linux/fast/layers/opacity-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/fast/layers/opacity-outline-expected.txt
index 24ddf213..45825d1 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/fast/layers/opacity-outline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/fast/layers/opacity-outline-expected.txt
@@ -16,6 +16,7 @@
             text run at (0,20) width 314: "outline causes the outline to disappear completely"
         LayoutText {#text} at (314,20) size 4x19
           text run at (314,20) width 4: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,74) size 100x100 transparent
   LayoutBlockFlow {DIV} at (0,66) size 100x100 [bgcolor=#C0C0C0]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/html/tabular_data/table_createcaption-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/html/tabular_data/table_createcaption-expected.txt
index bb22c9e..397654d 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/html/tabular_data/table_createcaption-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/html/tabular_data/table_createcaption-expected.txt
@@ -29,7 +29,6 @@
         LayoutText {#text} at (733,0) size 778x39
           text run at (733,0) width 45: ". Upon"
           text run at (0,20) width 584: "failure, the first table will have no caption, and the second table will have the caption Things."
-      LayoutBlockFlow {HR} at (0,168) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutTable {TABLE} at (0,178) size 110x102 [border: (1px outset #808080)]
         LayoutBlockFlow {CAPTION} at (0,0) size 110x20
           LayoutInline {B} at (0,0) size 44x19
@@ -86,3 +85,5 @@
             LayoutTableCell {TD} at (74,54) size 51x24 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
               LayoutText {#text} at (2,2) size 39x19
                 text run at (2,2) width 39: "Green"
+layer at (8,176) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,168) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/html/tabular_data/td_colspan_rendering-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/html/tabular_data/td_colspan_rendering-expected.txt
index 17f8d44..81243d88 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/html/tabular_data/td_colspan_rendering-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/html/tabular_data/td_colspan_rendering-expected.txt
@@ -23,7 +23,6 @@
           text run at (0,20) width 709: "column in the first row should span only column \"one\" and the second cell should span all of the other columns. "
           text run at (709,20) width 73: "The second"
           text run at (0,40) width 520: "table tests the zero value. \"Just A\" should span \"A\" and \"Just B\" should span \"B.\""
-      LayoutBlockFlow {HR} at (0,208) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,218) size 784x20
         LayoutBR {BR} at (0,0) size 0x19
       LayoutTable {TABLE} at (0,238) size 270x76 [border: (1px outset #808080)]
@@ -102,3 +101,5 @@
             LayoutTableCell {TD} at (177,28) size 16x24 [border: (1px inset #808080)] [r=1 c=7 rs=1 cs=1]
               LayoutText {#text} at (2,2) size 12x19
                 text run at (2,2) width 12: "H"
+layer at (8,216) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,208) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/flexible-box-overflow-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/flexible-box-overflow-expected.txt
index 8ee9ff0b..1b3a288 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/flexible-box-overflow-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/flexible-box-overflow-expected.txt
@@ -16,7 +16,6 @@
             text run at (0,20) width 238: "their top, left and children's overflows"
         LayoutText {#text} at (237,20) size 5x19
           text run at (237,20) width 5: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,66) size 784x100
         LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
           LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
@@ -40,3 +39,5 @@
               text run at (1,101) width 31: "Nam"
               text run at (1,121) width 98: "consectetuer mi"
               text run at (1,141) width 61: "eget velit."
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/flexible-box-overflow-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
index 8ee9ff0b..1b3a288 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
@@ -16,7 +16,6 @@
             text run at (0,20) width 238: "their top, left and children's overflows"
         LayoutText {#text} at (237,20) size 5x19
           text run at (237,20) width 5: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,66) size 784x100
         LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
           LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
@@ -40,3 +39,5 @@
               text run at (1,101) width 31: "Nam"
               text run at (1,121) width 98: "consectetuer mi"
               text run at (1,141) width 61: "eget velit."
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/inline-block-overflow-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/inline-block-overflow-expected.txt
index 49b1491..3780744 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/inline-block-overflow-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/inline-block-overflow-expected.txt
@@ -6,7 +6,6 @@
       LayoutBlockFlow {P} at (0,0) size 784x20
         LayoutText {#text} at (0,0) size 322x19
           text run at (0,0) width 322: "This is a repaint test of inline blocks with overflow."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,46) size 784x20
         LayoutInline {SPAN} at (0,0) size 198x19
           LayoutText {#text} at (0,0) size 98x19
@@ -16,3 +15,5 @@
               text run at (0,0) width 74: "inline block"
               text run at (0,20) width 92: "with overflow."
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/layer-child-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/layer-child-outline-expected.txt
index 5f06479..50deb47b4 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/layer-child-outline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/layer-child-outline-expected.txt
@@ -6,7 +6,8 @@
       LayoutBlockFlow {P} at (0,0) size 784x20
         LayoutText {#text} at (0,0) size 319x19
           text run at (0,0) width 319: "This tests repainting of a layer's children's outlines."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,54) size 100x100
   LayoutBlockFlow (relative positioned) {DIV} at (0,46) size 100x100 [bgcolor=#C0C0C0]
     LayoutBlockFlow {DIV} at (0,0) size 100x100
diff --git a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/layer-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/layer-outline-expected.txt
index f0c6cc6..10c2f0a 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/layer-outline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/layer-outline-expected.txt
@@ -14,7 +14,8 @@
             text run at (554,0) width 194: " Layer outline does not repaint"
         LayoutText {#text} at (747,0) size 5x19
           text run at (747,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (18,194) size 100x100 clip at (19,195) size 98x98
   LayoutBlockFlow {DIV} at (10,186) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
 layer at (8,54) size 784x130
diff --git a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/layer-outline-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/layer-outline-horizontal-expected.txt
index f0c6cc6..10c2f0a 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/layer-outline-horizontal-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/layer-outline-horizontal-expected.txt
@@ -14,7 +14,8 @@
             text run at (554,0) width 194: " Layer outline does not repaint"
         LayoutText {#text} at (747,0) size 5x19
           text run at (747,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (18,194) size 100x100 clip at (19,195) size 98x98
   LayoutBlockFlow {DIV} at (10,186) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
 layer at (8,54) size 784x130
diff --git a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/text-shadow-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/text-shadow-expected.txt
index 8d4aaf9..076a8ffc 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/text-shadow-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/text-shadow-expected.txt
@@ -15,7 +15,6 @@
             text run at (523,0) width 244: "Text shadow does not repaint correctly"
         LayoutText {#text} at (766,0) size 5x19
           text run at (766,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (30,68) size 724x21
         LayoutInline {SPAN} at (0,0) size 202x20 [bgcolor=#C0C0C0]
           LayoutText {#text} at (0,0) size 202x20
@@ -39,3 +38,5 @@
             text run at (0,0) width 97: "Lorem ipsum"
         LayoutText {#text} at (97,1) size 89x19
           text run at (97,1) width 89: " dolor sit amet"
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/text-shadow-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/text-shadow-horizontal-expected.txt
index 8d4aaf9..076a8ffc 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/text-shadow-horizontal-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/text-shadow-horizontal-expected.txt
@@ -15,7 +15,6 @@
             text run at (523,0) width 244: "Text shadow does not repaint correctly"
         LayoutText {#text} at (766,0) size 5x19
           text run at (766,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (30,68) size 724x21
         LayoutInline {SPAN} at (0,0) size 202x20 [bgcolor=#C0C0C0]
           LayoutText {#text} at (0,0) size 202x20
@@ -39,3 +38,5 @@
             text run at (0,0) width 97: "Lorem ipsum"
         LayoutText {#text} at (97,1) size 89x19
           text run at (97,1) width 89: " dolor sit amet"
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/plugins/embed-attributes-style-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/plugins/embed-attributes-style-expected.txt
index 625653f..d655f7b 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/plugins/embed-attributes-style-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/plugins/embed-attributes-style-expected.txt
@@ -9,7 +9,6 @@
           text run at (395,0) width 366: "Previous versions of WebKit supported valign and border,"
           text run at (0,20) width 43: "which "
           text run at (43,20) width 451: "didn't match IE and FF. The only special support should be for 'hidden.'"
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,66) size 784x0
       LayoutBlockFlow {DIV} at (0,66) size 784x105
         LayoutText {#text} at (50,85) size 122x19
@@ -23,6 +22,8 @@
         LayoutText {#text} at (52,87) size 102x19
           text run at (52,87) width 4: " "
           text run at (56,87) width 98: "hidden attribute"
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,74) size 50x100
   LayoutEmbeddedObject (relative positioned) {EMBED} at (0,0) size 50x100
 layer at (8,179) size 50x100
diff --git a/third_party/WebKit/LayoutTests/platform/linux/printing/absolute-position-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/printing/absolute-position-headers-and-footers-expected.txt
index 2de4fbb..01a0487 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/printing/absolute-position-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/printing/absolute-position-headers-and-footers-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 606x20
         LayoutText {#text} at (0,0) size 606x19
           text run at (0,0) width 606: "crbug.com/303728: Header Line is absolute positioned so should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 606x2 [border: (1px inset #EEEEEE)]
+layer at (8,28) size 606x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 606x2 [border: (1px inset #EEEEEE)]
 layer at (8,761) size 601x38
   LayoutBlockFlow (positioned) {DIV} at (8,761) size 601x38
     LayoutBlockFlow {DIV} at (0,8) size 601x30
-      LayoutBlockFlow {HR} at (0,0) size 601x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 601x20
         LayoutText {#text} at (0,0) size 601x19
           text run at (0,0) width 601: "crbug.com/303728: Footer Line is absolute positioned so should not be repeated on every page."
+layer at (8,769) size 601x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 601x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-but-static-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
index b1e3497..5753a61 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 667x20
         LayoutText {#text} at (0,0) size 667x19
           text run at (0,0) width 667: "crbug.com/303728: Fixed-position header Line is statically positioned and will be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 667x2 [border: (1px inset #EEEEEE)]
+layer at (8,44) size 667x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 667x2 [border: (1px inset #EEEEEE)]
 layer at (8,2685) size 613x38 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) {DIV} at (8,2685) size 613x38
     LayoutBlockFlow {DIV} at (0,8) size 613x30
-      LayoutBlockFlow {HR} at (0,0) size 613x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 613x20
         LayoutText {#text} at (0,0) size 613x19
           text run at (0,0) width 613: "crbug.com/303728: Footer Line is statically positioned and should not be repeated on every page."
+layer at (8,2693) size 613x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 613x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
index 81b9030b..f001a86 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
@@ -11,7 +11,8 @@
         LayoutText {#text} at (0,0) size 466x39
           text run at (0,0) width 466: "crbug.com/303728: Header Line should be repeated on every page except"
           text run at (0,20) width 377: "where it's clipped by the absolute element on pages 3 and 4."
-      LayoutBlockFlow {HR} at (0,48) size 500x2 [border: (1px inset #EEEEEE)]
+layer at (5,53) size 500x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,48) size 500x2 [border: (1px inset #EEEEEE)]
 layer at (0,1000) size 600x2000 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) zI: 2 {DIV} at (0,1000) size 600x2000 [bgcolor=#000000]
     LayoutText zI: 2 {#text} at (0,0) size 57x19
diff --git a/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-expected.txt
index 978427f..36751ff 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 516x20
         LayoutText {#text} at (0,0) size 516x19
           text run at (0,0) width 516: "crbug.com/303728: Fixed-position header Line should be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 516x2 [border: (1px inset #EEEEEE)]
+layer at (8,28) size 516x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 516x2 [border: (1px inset #EEEEEE)]
 layer at (8,761) size 420x38
   LayoutBlockFlow (positioned) {DIV} at (8,761) size 420x38
     LayoutBlockFlow {DIV} at (0,8) size 420x30
-      LayoutBlockFlow {HR} at (0,0) size 420x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 420x20
         LayoutText {#text} at (0,0) size 420x19
           text run at (0,0) width 420: "crbug.com/303728: Footer Line should be repeated on every page."
+layer at (8,769) size 420x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 420x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
index ff752a5..fc91a85 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
@@ -233,13 +233,15 @@
       LayoutBlockFlow (anonymous) at (0,0) size 449x20
         LayoutText {#text} at (0,0) size 449x19
           text run at (0,0) width 449: "crbug.com/303728: Header Line should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 449x2 [border: (1px inset #EEEEEE)]
+layer at (8,44) size 449x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 449x2 [border: (1px inset #EEEEEE)]
 layer at (8,2685) size 1030x0
   LayoutBlockFlow {DIV} at (0,2669) size 1030x0
 layer at (8,2647) size 444x38 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) {DIV} at (0,-38) size 444x38
     LayoutBlockFlow {DIV} at (0,8) size 444x30
-      LayoutBlockFlow {HR} at (0,0) size 444x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 444x20
         LayoutText {#text} at (0,0) size 444x19
           text run at (0,0) width 444: "crbug.com/303728: Footer Line should not be repeated on every page."
+layer at (8,2655) size 444x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 444x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
index 2f703cab..fb731ac 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 2000x20
         LayoutText {#text} at (0,0) size 696x19
           text run at (0,0) width 696: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
-      LayoutBlockFlow {HR} at (0,28) size 2000x2 [border: (1px inset #EEEEEE)]
+layer at (13,33) size 2000x2 backgroundClip at (13,33) size 1033x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 2000x2 [border: (1px inset #EEEEEE)]
 layer at (8,751) size 2010x48 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) {DIV} at (8,751) size 2010x48 [border: (5px solid #000000)]
     LayoutBlockFlow {DIV} at (5,13) size 2000x30
-      LayoutBlockFlow {HR} at (0,0) size 2000x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 2000x20
         LayoutText {#text} at (0,0) size 696x19
           text run at (0,0) width 696: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
+layer at (13,764) size 2000x2 backgroundClip at (13,764) size 1033x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2000x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/svg/custom/svg-float-border-padding-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/svg/custom/svg-float-border-padding-expected.txt
index 97d1450f..00f324b 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/svg/custom/svg-float-border-padding-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/svg/custom/svg-float-border-padding-expected.txt
@@ -15,7 +15,6 @@
       LayoutBlockFlow {p} at (0,232) size 784x20
         LayoutText {#text} at (0,0) size 353x19
           text run at (0,0) width 353: "There should be a red, white and blue pattern above this"
-      LayoutBlockFlow {hr} at (0,268) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {p} at (0,286) size 784x20
         LayoutText {#text} at (0,0) size 354x19
           text run at (0,0) width 354: "There should be a red, white and blue pattern below this"
@@ -24,3 +23,5 @@
       LayoutBlockFlow {p} at (0,482) size 784x20
         LayoutText {#text} at (0,0) size 353x19
           text run at (0,0) width 353: "There should be a red, white and blue pattern above this"
+layer at (8,276) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {hr} at (0,268) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/svg/zoom/page/zoom-svg-float-border-padding-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/svg/zoom/page/zoom-svg-float-border-padding-expected.txt
index 5d63c8d..4b4e705 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/svg/zoom/page/zoom-svg-float-border-padding-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/svg/zoom/page/zoom-svg-float-border-padding-expected.txt
@@ -16,7 +16,6 @@
       LayoutBlockFlow {p} at (0,357.41) size 761.97x27
         LayoutText {#text} at (0,0) size 523x26
           text run at (0,0) width 523: "There should be a red, white and blue pattern above this"
-      LayoutBlockFlow {hr} at (0,407.44) size 761.97x2.88 [border: (1.44px inset #EEEEEE)]
       LayoutBlockFlow {p} at (0,433.34) size 761.97x27
         LayoutText {#text} at (0,0) size 524x26
           text run at (0,0) width 524: "There should be a red, white and blue pattern below this"
@@ -25,3 +24,5 @@
       LayoutBlockFlow {p} at (0,713.73) size 761.97x27
         LayoutText {#text} at (0,0) size 523x26
           text run at (0,0) width 523: "There should be a red, white and blue pattern above this"
+layer at (12,419) size 762x3 backgroundClip at (12,419) size 761x3 clip at (0,0) size 0x0
+  LayoutBlockFlow {hr} at (0,407.44) size 761.97x2.88 [border: (1.44px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/svg/zoom/text/zoom-svg-float-border-padding-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/svg/zoom/text/zoom-svg-float-border-padding-expected.txt
index 56ca777..f4ef9d1 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/svg/zoom/text/zoom-svg-float-border-padding-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/svg/zoom/text/zoom-svg-float-border-padding-expected.txt
@@ -16,7 +16,6 @@
       LayoutBlockFlow {p} at (0,287.06) size 769x27
         LayoutText {#text} at (0,0) size 523x26
           text run at (0,0) width 523: "There should be a red, white and blue pattern above this"
-      LayoutBlockFlow {hr} at (0,337.09) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {p} at (0,362.13) size 769x27
         LayoutText {#text} at (0,0) size 524x26
           text run at (0,0) width 524: "There should be a red, white and blue pattern below this"
@@ -25,3 +24,5 @@
       LayoutBlockFlow {p} at (0,572.16) size 769x27
         LayoutText {#text} at (0,0) size 523x26
           text run at (0,0) width 523: "There should be a red, white and blue pattern above this"
+layer at (8,345) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {hr} at (0,337.09) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-expected.txt
index 8ee9ff0b..1b3a288 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-expected.txt
@@ -16,7 +16,6 @@
             text run at (0,20) width 238: "their top, left and children's overflows"
         LayoutText {#text} at (237,20) size 5x19
           text run at (237,20) width 5: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,66) size 784x100
         LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
           LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
@@ -40,3 +39,5 @@
               text run at (1,101) width 31: "Nam"
               text run at (1,121) width 98: "consectetuer mi"
               text run at (1,141) width 61: "eget velit."
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
index 8ee9ff0b..1b3a288 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
@@ -16,7 +16,6 @@
             text run at (0,20) width 238: "their top, left and children's overflows"
         LayoutText {#text} at (237,20) size 5x19
           text run at (237,20) width 5: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,66) size 784x100
         LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
           LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
@@ -40,3 +39,5 @@
               text run at (1,101) width 31: "Nam"
               text run at (1,121) width 98: "consectetuer mi"
               text run at (1,141) width 61: "eget velit."
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/inline-block-overflow-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/inline-block-overflow-expected.txt
index 49b1491..3780744 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/inline-block-overflow-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/inline-block-overflow-expected.txt
@@ -6,7 +6,6 @@
       LayoutBlockFlow {P} at (0,0) size 784x20
         LayoutText {#text} at (0,0) size 322x19
           text run at (0,0) width 322: "This is a repaint test of inline blocks with overflow."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,46) size 784x20
         LayoutInline {SPAN} at (0,0) size 198x19
           LayoutText {#text} at (0,0) size 98x19
@@ -16,3 +15,5 @@
               text run at (0,0) width 74: "inline block"
               text run at (0,20) width 92: "with overflow."
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/layer-child-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/layer-child-outline-expected.txt
index 5f06479..50deb47b4 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/layer-child-outline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/layer-child-outline-expected.txt
@@ -6,7 +6,8 @@
       LayoutBlockFlow {P} at (0,0) size 784x20
         LayoutText {#text} at (0,0) size 319x19
           text run at (0,0) width 319: "This tests repainting of a layer's children's outlines."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,54) size 100x100
   LayoutBlockFlow (relative positioned) {DIV} at (0,46) size 100x100 [bgcolor=#C0C0C0]
     LayoutBlockFlow {DIV} at (0,0) size 100x100
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/layer-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/layer-outline-expected.txt
index f0c6cc6..10c2f0a 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/layer-outline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/layer-outline-expected.txt
@@ -14,7 +14,8 @@
             text run at (554,0) width 194: " Layer outline does not repaint"
         LayoutText {#text} at (747,0) size 5x19
           text run at (747,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (18,194) size 100x100 clip at (19,195) size 98x98
   LayoutBlockFlow {DIV} at (10,186) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
 layer at (8,54) size 784x130
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/layer-outline-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/layer-outline-horizontal-expected.txt
index f0c6cc6..10c2f0a 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/layer-outline-horizontal-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/layer-outline-horizontal-expected.txt
@@ -14,7 +14,8 @@
             text run at (554,0) width 194: " Layer outline does not repaint"
         LayoutText {#text} at (747,0) size 5x19
           text run at (747,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (18,194) size 100x100 clip at (19,195) size 98x98
   LayoutBlockFlow {DIV} at (10,186) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
 layer at (8,54) size 784x130
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/text-shadow-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/text-shadow-expected.txt
index 8d4aaf9..076a8ffc 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/text-shadow-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/text-shadow-expected.txt
@@ -15,7 +15,6 @@
             text run at (523,0) width 244: "Text shadow does not repaint correctly"
         LayoutText {#text} at (766,0) size 5x19
           text run at (766,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (30,68) size 724x21
         LayoutInline {SPAN} at (0,0) size 202x20 [bgcolor=#C0C0C0]
           LayoutText {#text} at (0,0) size 202x20
@@ -39,3 +38,5 @@
             text run at (0,0) width 97: "Lorem ipsum"
         LayoutText {#text} at (97,1) size 89x19
           text run at (97,1) width 89: " dolor sit amet"
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/text-shadow-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/text-shadow-horizontal-expected.txt
index 8d4aaf9..076a8ffc 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/text-shadow-horizontal-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/disable-spinvalidation/paint/invalidation/text-shadow-horizontal-expected.txt
@@ -15,7 +15,6 @@
             text run at (523,0) width 244: "Text shadow does not repaint correctly"
         LayoutText {#text} at (766,0) size 5x19
           text run at (766,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (30,68) size 724x21
         LayoutInline {SPAN} at (0,0) size 202x20 [bgcolor=#C0C0C0]
           LayoutText {#text} at (0,0) size 202x20
@@ -39,3 +38,5 @@
             text run at (0,0) width 97: "Lorem ipsum"
         LayoutText {#text} at (97,1) size 89x19
           text run at (97,1) width 89: " dolor sit amet"
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/comments-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/comments-expected.txt
new file mode 100644
index 0000000..1a9619c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/comments-expected.txt
@@ -0,0 +1,101 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 921
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x921 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x921
+    LayoutBlockFlow {BODY} at (8,8) size 769x905 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x240
+        LayoutText {#text} at (0,0) size 334x240
+          text run at (0,0) width 230: "/* This is a CSS1 comment. */"
+          text run at (230,0) width 0: " "
+          text run at (0,16) width 334: ".one {color: green;} /* Another comment */"
+          text run at (334,16) width 0: " "
+          text run at (0,32) width 287: "/* The following should not be used:"
+          text run at (287,32) width 0: " "
+          text run at (0,48) width 167: ".two {color: red;} */"
+          text run at (167,48) width 0: " "
+          text run at (0,64) width 318: ".three {color: green; /* color: red; */}"
+          text run at (318,64) width 0: " "
+          text run at (0,80) width 22: "/**"
+          text run at (22,80) width 0: " "
+          text run at (0,96) width 175: ".four {color: red;} */"
+          text run at (175,96) width 0: " "
+          text run at (0,112) width 168: ".five {color: green;}"
+          text run at (168,112) width 0: " "
+          text run at (0,128) width 30: "/**/"
+          text run at (30,128) width 0: " "
+          text run at (0,144) width 160: ".six {color: green;}"
+          text run at (160,144) width 0: " "
+          text run at (0,160) width 79: "/*********/"
+          text run at (79,160) width 0: " "
+          text run at (0,176) width 176: ".seven {color: green;}"
+          text run at (176,176) width 0: " "
+          text run at (0,192) width 125: "/* a comment **/"
+          text run at (125,192) width 0: " "
+          text run at (0,208) width 176: ".eight {color: green;}"
+          text run at (176,208) width 0: " "
+          text run at (0,224) width 0: " "
+      LayoutBlockFlow {P} at (0,307) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,343) size 769x20
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This sentence should be black."
+      LayoutBlockFlow {P} at (0,379) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,415) size 769x20
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This sentence should be black."
+      LayoutBlockFlow {P} at (0,451) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,487) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,523) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,559) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutTable {TABLE} at (0,595) size 216x310 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 214x308
+          LayoutTableRow {TR} at (0,0) size 214x28
+            LayoutTableCell {TD} at (0,0) size 214x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 214x280
+            LayoutTableCell {TD} at (0,154) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 202x280 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 194x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,40) size 194x20
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This sentence should be black."
+              LayoutBlockFlow {P} at (4,76) size 194x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,112) size 194x20
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This sentence should be black."
+              LayoutBlockFlow {P} at (4,148) size 194x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,184) size 194x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,220) size 194x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,256) size 194x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+layer at (8,297) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,289) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/containment-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/containment-expected.txt
new file mode 100644
index 0000000..3e77590
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/containment-expected.txt
@@ -0,0 +1,211 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1029
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1029 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1029
+    LayoutBlockFlow {BODY} at (8,8) size 769x1013 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x160
+        LayoutText {#text} at (0,0) size 728x160
+          text run at (0,0) width 624: "<LINK rel=\"stylesheet\" type=\"text/css\" href=\"linktest.css\" title=\"Default SS\">"
+          text run at (624,0) width 0: " "
+          text run at (0,16) width 728: "<LINK rel=\"alternate stylesheet\" type=\"text/css\" href=\"linktest2.css\" title=\"Alternate SS\">"
+          text run at (728,16) width 0: " "
+          text run at (0,32) width 208: "@import url(imptest1.css);"
+          text run at (208,32) width 0: " "
+          text run at (0,48) width 192: "@import \"imptest1a.css\";"
+          text run at (192,48) width 0: " "
+          text run at (0,64) width 128: "UL {color: red;}"
+          text run at (128,64) width 0: " "
+          text run at (0,80) width 176: ".four {color: purple;}"
+          text run at (176,80) width 0: " "
+          text run at (0,96) width 208: "@import url(imptest2.css);"
+          text run at (208,96) width 0: " "
+          text run at (0,112) width 32: "<!--"
+          text run at (32,112) width 0: " "
+          text run at (0,128) width 168: "P.six {color: green;}"
+          text run at (168,128) width 0: " "
+          text run at (0,144) width 24: "-->"
+          text run at (24,144) width 0: " "
+      LayoutBlockFlow {P} at (0,227) size 769x20
+        LayoutText {#text} at (0,0) size 404x19
+          text run at (0,0) width 404: "This sentence should be underlined due to the linked style sheet "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (404,3) size 96x16
+            text run at (404,3) width 96: "linktest.css"
+        LayoutText {#text} at (500,0) size 254x19
+          text run at (500,0) width 254: ", the reference to which is shown above."
+      LayoutBlockFlow {P} at (0,263) size 769x40
+        LayoutText {#text} at (0,0) size 442x19
+          text run at (0,0) width 442: "This sentence should NOT be underlined due to the linked style sheet "
+        LayoutInline {CODE} at (0,0) size 104x16
+          LayoutText {#text} at (442,3) size 104x16
+            text run at (442,3) width 104: "linktest2.css"
+        LayoutText {#text} at (546,0) size 8x19
+          text run at (546,0) width 8: ", "
+        LayoutInline {STRONG} at (0,0) size 41x19
+          LayoutText {#text} at (554,0) size 41x19
+            text run at (554,0) width 41: "unless"
+        LayoutText {#text} at (595,0) size 741x39
+          text run at (595,0) width 146: " the external style sheet"
+          text run at (0,20) width 325: "\"Alternate SS\" has been selected via the user agent."
+      LayoutBlockFlow {UL} at (0,319) size 769x60 [color=#FF0000]
+        LayoutListItem {LI} at (40,0) size 729x20 [color=#008000]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 390x19
+            text run at (0,0) width 390: "This sentence should be green due to an imported style sheet ["
+          LayoutInline {CODE} at (0,0) size 208x16
+            LayoutText {#text} at (390,3) size 208x16
+              text run at (390,3) width 208: "@import url(imptest1.css);"
+          LayoutText {#text} at (598,0) size 9x19
+            text run at (598,0) width 9: "]."
+        LayoutListItem {LI} at (40,20) size 729x20 [color=#800080]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 395x19
+            text run at (0,0) width 395: "This sentence should be purple due to an imported style sheet ["
+          LayoutInline {CODE} at (0,0) size 184x16
+            LayoutText {#text} at (395,3) size 184x16
+              text run at (395,3) width 184: "@import \"imptest1a.css\""
+          LayoutText {#text} at (579,0) size 9x19
+            text run at (579,0) width 9: "]."
+        LayoutListItem {LI} at (40,40) size 729x20 [color=#008000]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 393x19
+            text run at (0,0) width 393: "This sentence should be green thanks to the STYLE attribute ["
+          LayoutInline {CODE} at (0,0) size 168x16
+            LayoutText {#text} at (393,3) size 168x16
+              text run at (393,3) width 168: "STYLE=\"color: green;\""
+          LayoutText {#text} at (561,0) size 9x19
+            text run at (561,0) width 9: "]."
+      LayoutBlockFlow {P} at (0,395) size 769x20 [color=#800080]
+        LayoutText {#text} at (0,0) size 500x19
+          text run at (0,0) width 500: "This sentence should be purple, and it doesn't have a terminating paragraph tag."
+      LayoutBlockFlow {OL} at (0,431) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-16,0) size 16x19: "1"
+          LayoutText {#text} at (0,0) size 201x19
+            text run at (0,0) width 201: "This list should NOT be purple."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-16,0) size 16x19: "2"
+          LayoutText {#text} at (0,0) size 172x19
+            text run at (0,0) width 172: "It should, instead, be black."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-16,0) size 16x19: "3"
+          LayoutText {#text} at (0,0) size 501x19
+            text run at (0,0) width 501: "If it IS purple, then the browser hasn't correctly parsed the preceding paragraph."
+      LayoutBlockFlow {P} at (0,507) size 769x40
+        LayoutText {#text} at (0,0) size 697x19
+          text run at (0,0) width 197: "This sentence should be black. "
+          text run at (197,0) width 500: "If it is red, then the browser has inappropriately imported the styles from the file"
+        LayoutInline {TT} at (0,0) size 96x16
+          LayoutText {#text} at (0,23) size 96x16
+            text run at (0,23) width 96: "imptest2.css"
+        LayoutText {#text} at (96,20) size 33x19
+          text run at (96,20) width 33: " (see "
+        LayoutInline {A} at (0,0) size 68x19 [color=#0000FF]
+          LayoutText {#text} at (129,20) size 68x19
+            text run at (129,20) width 68: "section 3.0"
+        LayoutText {#text} at (197,20) size 275x19
+          text run at (197,20) width 275: " of the CSS1 specification for more details)."
+      LayoutBlockFlow {P} at (0,563) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This paragraph should be green."
+      LayoutTable {TABLE} at (0,599) size 769x414 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x412
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x384
+            LayoutTableCell {TD} at (0,206) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x384 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x40
+                LayoutText {#text} at (0,0) size 404x19
+                  text run at (0,0) width 404: "This sentence should be underlined due to the linked style sheet "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (404,3) size 96x16
+                    text run at (404,3) width 96: "linktest.css"
+                LayoutText {#text} at (500,0) size 708x39
+                  text run at (500,0) width 208: ", the reference to which is shown"
+                  text run at (0,20) width 42: "above."
+              LayoutBlockFlow {P} at (4,60) size 747x40
+                LayoutText {#text} at (0,0) size 442x19
+                  text run at (0,0) width 442: "This sentence should NOT be underlined due to the linked style sheet "
+                LayoutInline {CODE} at (0,0) size 104x16
+                  LayoutText {#text} at (442,3) size 104x16
+                    text run at (442,3) width 104: "linktest2.css"
+                LayoutText {#text} at (546,0) size 8x19
+                  text run at (546,0) width 8: ", "
+                LayoutInline {STRONG} at (0,0) size 41x19
+                  LayoutText {#text} at (554,0) size 41x19
+                    text run at (554,0) width 41: "unless"
+                LayoutText {#text} at (595,0) size 741x39
+                  text run at (595,0) width 146: " the external style sheet"
+                  text run at (0,20) width 325: "\"Alternate SS\" has been selected via the user agent."
+              LayoutBlockFlow {UL} at (4,116) size 747x60 [color=#FF0000]
+                LayoutListItem {LI} at (40,0) size 707x20 [color=#008000]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 390x19
+                    text run at (0,0) width 390: "This sentence should be green due to an imported style sheet ["
+                  LayoutInline {CODE} at (0,0) size 208x16
+                    LayoutText {#text} at (390,3) size 208x16
+                      text run at (390,3) width 208: "@import url(imptest1.css);"
+                  LayoutText {#text} at (598,0) size 9x19
+                    text run at (598,0) width 9: "]."
+                LayoutListItem {LI} at (40,20) size 707x20 [color=#800080]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 395x19
+                    text run at (0,0) width 395: "This sentence should be purple due to an imported style sheet ["
+                  LayoutInline {CODE} at (0,0) size 184x16
+                    LayoutText {#text} at (395,3) size 184x16
+                      text run at (395,3) width 184: "@import \"imptest1a.css\""
+                  LayoutText {#text} at (579,0) size 9x19
+                    text run at (579,0) width 9: "]."
+                LayoutListItem {LI} at (40,40) size 707x20 [color=#008000]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 393x19
+                    text run at (0,0) width 393: "This sentence should be green thanks to the STYLE attribute ["
+                  LayoutInline {CODE} at (0,0) size 168x16
+                    LayoutText {#text} at (393,3) size 168x16
+                      text run at (393,3) width 168: "STYLE=\"color: green;\""
+                  LayoutText {#text} at (561,0) size 9x19
+                    text run at (561,0) width 9: "]."
+              LayoutBlockFlow {P} at (4,192) size 747x20 [color=#800080]
+                LayoutText {#text} at (0,0) size 500x19
+                  text run at (0,0) width 500: "This sentence should be purple, and it doesn't have a terminating paragraph tag."
+              LayoutBlockFlow {OL} at (4,228) size 747x60
+                LayoutListItem {LI} at (40,0) size 707x20
+                  LayoutListMarker (anonymous) at (-16,0) size 16x19: "1"
+                  LayoutText {#text} at (0,0) size 201x19
+                    text run at (0,0) width 201: "This list should NOT be purple."
+                LayoutListItem {LI} at (40,20) size 707x20
+                  LayoutListMarker (anonymous) at (-16,0) size 16x19: "2"
+                  LayoutText {#text} at (0,0) size 172x19
+                    text run at (0,0) width 172: "It should, instead, be black."
+                LayoutListItem {LI} at (40,40) size 707x20
+                  LayoutListMarker (anonymous) at (-16,0) size 16x19: "3"
+                  LayoutText {#text} at (0,0) size 501x19
+                    text run at (0,0) width 501: "If it IS purple, then the browser hasn't correctly parsed the preceding paragraph."
+              LayoutBlockFlow {P} at (4,304) size 747x40
+                LayoutText {#text} at (0,0) size 697x19
+                  text run at (0,0) width 197: "This sentence should be black. "
+                  text run at (197,0) width 500: "If it is red, then the browser has inappropriately imported the styles from the file"
+                LayoutInline {TT} at (0,0) size 96x16
+                  LayoutText {#text} at (0,23) size 96x16
+                    text run at (0,23) width 96: "imptest2.css"
+                LayoutText {#text} at (96,20) size 33x19
+                  text run at (96,20) width 33: " (see "
+                LayoutInline {A} at (0,0) size 68x19 [color=#0000FF]
+                  LayoutText {#text} at (129,20) size 68x19
+                    text run at (129,20) width 68: "section 3.0"
+                LayoutText {#text} at (197,20) size 275x19
+                  text run at (197,20) width 275: " of the CSS1 specification for more details)."
+              LayoutBlockFlow {P} at (4,360) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This paragraph should be green."
+layer at (8,217) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,209) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/contextual_selectors-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/contextual_selectors-expected.txt
new file mode 100644
index 0000000..0c57862
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/contextual_selectors-expected.txt
@@ -0,0 +1,83 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20 [color=#000080]
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 472x64
+          text run at (0,0) width 288: "P {color: navy; font-family: serif;}"
+          text run at (288,0) width 0: " "
+          text run at (0,16) width 472: "HTML BODY TABLE P {color: purple; font-family: sans-serif;}"
+          text run at (472,16) width 0: " "
+          text run at (0,32) width 224: "EM, UL LI LI {color: green;}"
+          text run at (224,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 784x20 [color=#000080]
+        LayoutText {#text} at (0,0) size 625x19
+          text run at (0,0) width 625: "This sentence should be navy serif in the first half of the page, but purple and sans-serif in the table."
+      LayoutBlockFlow {P} at (0,167) size 784x20 [color=#000080]
+        LayoutText {#text} at (0,0) size 559x19
+          text run at (0,0) width 559: "This sentence should be normal for its section, except for the last word, which should be "
+        LayoutInline {EM} at (0,0) size 36x19 [color=#008000]
+          LayoutText {#text} at (559,0) size 36x19
+            text run at (559,0) width 36: "green"
+        LayoutText {#text} at (594,0) size 5x19
+          text run at (594,0) width 5: "."
+      LayoutBlockFlow {UL} at (0,203) size 784x40
+        LayoutListItem {LI} at (40,0) size 744x40
+          LayoutBlockFlow (anonymous) at (0,0) size 744x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutInline {EM} at (0,0) size 39x19 [color=#008000]
+              LayoutText {#text} at (0,0) size 39x19
+                text run at (0,0) width 39: "Hello."
+            LayoutText {#text} at (39,0) size 399x19
+              text run at (39,0) width 4: " "
+              text run at (43,0) width 395: "The first \"hello\" should be green, but this part should be black."
+          LayoutBlockFlow {UL} at (0,20) size 744x20
+            LayoutListItem {LI} at (40,0) size 704x20 [color=#008000]
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 136x19
+                text run at (0,0) width 136: "This should be green."
+      LayoutTable {TABLE} at (0,259) size 722x165 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 720x163
+          LayoutTableRow {TR} at (0,0) size 720x28
+            LayoutTableCell {TD} at (0,0) size 720x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 720x135
+            LayoutTableCell {TD} at (0,81) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 708x135 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 700x19 [color=#800080]
+                LayoutText {#text} at (0,0) size 700x18
+                  text run at (0,0) width 700: "This sentence should be navy serif in the first half of the page, but purple and sans-serif in the table."
+              LayoutBlockFlow {P} at (4,39) size 700x20 [color=#800080]
+                LayoutText {#text} at (0,1) size 623x18
+                  text run at (0,1) width 623: "This sentence should be normal for its section, except for the last word, which should be "
+                LayoutInline {EM} at (0,0) size 41x19 [color=#008000]
+                  LayoutText {#text} at (623,0) size 41x19
+                    text run at (623,0) width 41: "green"
+                LayoutText {#text} at (664,1) size 4x18
+                  text run at (664,1) width 4: "."
+              LayoutBlockFlow {UL} at (4,75) size 700x40
+                LayoutListItem {LI} at (40,0) size 660x40
+                  LayoutBlockFlow (anonymous) at (0,0) size 660x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutInline {EM} at (0,0) size 39x19 [color=#008000]
+                      LayoutText {#text} at (0,0) size 39x19
+                        text run at (0,0) width 39: "Hello."
+                    LayoutText {#text} at (39,0) size 399x19
+                      text run at (39,0) width 4: " "
+                      text run at (43,0) width 395: "The first \"hello\" should be green, but this part should be black."
+                  LayoutBlockFlow {UL} at (0,20) size 660x20
+                    LayoutListItem {LI} at (40,0) size 620x20 [color=#008000]
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 136x19
+                        text run at (0,0) width 136: "This should be green."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/grouping-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/grouping-expected.txt
new file mode 100644
index 0000000..2b6ca6d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/grouping-expected.txt
@@ -0,0 +1,45 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x32
+        LayoutText {#text} at (0,0) size 272x32
+          text run at (0,0) width 272: ".one, .two, .three {color: green;}"
+          text run at (272,0) width 0: " "
+          text run at (0,16) width 0: " "
+      LayoutBlockFlow {P} at (0,99) size 784x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,135) size 784x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,171) size 784x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutTable {TABLE} at (0,207) size 216x130 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 214x128
+          LayoutTableRow {TR} at (0,0) size 214x28
+            LayoutTableCell {TD} at (0,0) size 214x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 214x100
+            LayoutTableCell {TD} at (0,64) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 202x100 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 194x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,40) size 194x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,76) size 194x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/id_as_selector-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/id_as_selector-expected.txt
new file mode 100644
index 0000000..05ba2d1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/id_as_selector-expected.txt
@@ -0,0 +1,93 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 659
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x659 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x659
+    LayoutBlockFlow {BODY} at (8,8) size 769x643 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x128
+        LayoutText {#text} at (0,0) size 272x128
+          text run at (0,0) width 160: "#one {color: green;}"
+          text run at (160,0) width 0: " "
+          text run at (0,16) width 152: "#a1 {color: green;}"
+          text run at (152,16) width 0: " "
+          text run at (0,32) width 224: "P#two, P#two2 {color: blue;}"
+          text run at (224,32) width 0: " "
+          text run at (0,48) width 272: "P#three, P#three2 {color: purple;}"
+          text run at (272,48) width 0: " "
+          text run at (0,64) width 168: "#four {color: green;}"
+          text run at (168,64) width 0: " "
+          text run at (0,80) width 152: "#a2 {color: green;}"
+          text run at (152,80) width 0: " "
+          text run at (0,96) width 240: "P#five, P#five2 {color: blue;}"
+          text run at (240,96) width 0: " "
+          text run at (0,112) width 240: "P#six, P#six2 {color: purple;}"
+      LayoutBlockFlow {P} at (0,195) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,231) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,267) size 769x20 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 200x19
+          text run at (0,0) width 200: "This paragraph should be blue ["
+        LayoutInline {TT} at (0,0) size 64x16
+          LayoutText {#text} at (200,3) size 64x16
+            text run at (200,3) width 64: "ID=\"two\""
+        LayoutText {#text} at (264,0) size 9x19
+          text run at (264,0) width 9: "]."
+      LayoutBlockFlow {PRE} at (0,303) size 769x16
+        LayoutText {#text} at (0,0) size 392x16
+          text run at (0,0) width 392: "This sentence should NOT be blue [PRE ID=\"two2\"]."
+          text run at (392,0) width 0: " "
+      LayoutBlockFlow {PRE} at (0,332) size 769x16
+        LayoutText {#text} at (0,0) size 472x16
+          text run at (0,0) width 472: "This sentence should be black, not purple [PRE ID=\"three\"]."
+          text run at (472,0) width 0: " "
+      LayoutBlockFlow {UL} at (0,364) size 769x20
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 237x19
+            text run at (0,0) width 237: "This sentence should NOT be purple."
+      LayoutTable {TABLE} at (0,400) size 422x243 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 420x241
+          LayoutTableRow {TR} at (0,0) size 420x28
+            LayoutTableCell {TD} at (0,0) size 420x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 420x213
+            LayoutTableCell {TD} at (0,120) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 408x213 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 400x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,40) size 400x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,76) size 400x20 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 200x19
+                  text run at (0,0) width 200: "This paragraph should be blue ["
+                LayoutInline {TT} at (0,0) size 72x16
+                  LayoutText {#text} at (200,3) size 72x16
+                    text run at (200,3) width 72: "ID=\"five\""
+                LayoutText {#text} at (272,0) size 9x19
+                  text run at (272,0) width 9: "]."
+              LayoutBlockFlow {PRE} at (4,112) size 400x16
+                LayoutText {#text} at (0,0) size 400x16
+                  text run at (0,0) width 400: "This sentence should NOT be blue [PRE ID=\"five2\"]."
+                  text run at (400,0) width 0: " "
+              LayoutBlockFlow {PRE} at (4,141) size 400x16
+                LayoutText {#text} at (0,0) size 360x16
+                  text run at (0,0) width 360: "This sentence should be black [PRE ID=\"six\"]."
+                  text run at (360,0) width 0: " "
+              LayoutBlockFlow {UL} at (4,173) size 400x20
+                LayoutListItem {LI} at (40,0) size 360x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 237x19
+                    text run at (0,0) width 237: "This sentence should NOT be purple."
+layer at (8,185) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,177) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/inheritance-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/inheritance-expected.txt
new file mode 100644
index 0000000..385205e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/basic/inheritance-expected.txt
@@ -0,0 +1,190 @@
+layer at (0,0) size 800x600 scrollHeight 768
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x768 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x767.59
+    LayoutBlockFlow {BODY} at (8,8) size 784x751.59 [color=#008000] [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x112
+        LayoutText {#text} at (0,0) size 272x112
+          text run at (0,0) width 160: "BODY {color: green;}"
+          text run at (160,0) width 0: " "
+          text run at (0,16) width 136: "H3 {color: blue;}"
+          text run at (136,16) width 0: " "
+          text run at (0,32) width 152: "EM {color: purple;}"
+          text run at (152,32) width 0: " "
+          text run at (0,48) width 208: ".one {font-style: italic;}"
+          text run at (208,48) width 0: " "
+          text run at (0,64) width 272: ".two {text-decoration: underline;}"
+          text run at (272,64) width 0: " "
+          text run at (0,80) width 152: "#two {color: navy;}"
+          text run at (152,80) width 0: " "
+          text run at (0,96) width 184: ".three {color: purple;}"
+          text run at (184,96) width 0: " "
+      LayoutBlockFlow {H3} at (0,181.72) size 784x24 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 220x22
+          text run at (0,0) width 220: "This sentence should show "
+        LayoutInline {STRONG} at (0,0) size 35x22
+          LayoutText {#text} at (220,0) size 35x22
+            text run at (220,0) width 35: "blue"
+        LayoutText {#text} at (255,0) size 42x22
+          text run at (255,0) width 42: " and "
+        LayoutInline {EM} at (0,0) size 51x22 [color=#800080]
+          LayoutText {#text} at (297,1) size 51x22
+            text run at (297,1) width 51: "purple"
+        LayoutText {#text} at (348,0) size 5x22
+          text run at (348,0) width 5: "."
+      LayoutBlockFlow {H3} at (0,224.44) size 784x24 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 197x22
+          text run at (0,0) width 197: "This sentence should be "
+        LayoutInline {SPAN} at (0,0) size 34x22
+          LayoutText {#text} at (197,1) size 34x22
+            text run at (197,1) width 34: "blue"
+        LayoutText {#text} at (231,0) size 104x22
+          text run at (231,0) width 104: " throughout."
+      LayoutBlockFlow {P} at (0,267.16) size 784x20
+        LayoutText {#text} at (0,0) size 226x19
+          text run at (0,0) width 226: "This should be green except for the "
+        LayoutInline {EM} at (0,0) size 117x19 [color=#800080]
+          LayoutText {#text} at (226,0) size 117x19
+            text run at (226,0) width 117: "emphasized words"
+        LayoutText {#text} at (342,0) size 161x19
+          text run at (342,0) width 161: ", which should be purple."
+      LayoutBlockFlow {H3} at (0,305.88) size 784x23 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 296x22
+          text run at (0,0) width 296: "This should be blue and underlined."
+      LayoutBlockFlow {P} at (0,347.59) size 784x20
+        LayoutText {#text} at (0,0) size 293x19
+          text run at (0,0) width 293: "This sentence should be underlined, including "
+        LayoutInline {TT} at (0,0) size 72x16
+          LayoutText {#text} at (293,3) size 72x16
+            text run at (293,3) width 72: "this part"
+        LayoutText {#text} at (365,0) size 8x19
+          text run at (365,0) width 8: ", "
+        LayoutInline {I} at (0,0) size 52x19
+          LayoutText {#text} at (373,0) size 52x19
+            text run at (373,0) width 52: "this part"
+        LayoutText {#text} at (425,0) size 8x19
+          text run at (425,0) width 8: ", "
+        LayoutInline {EM} at (0,0) size 52x19 [color=#800080]
+          LayoutText {#text} at (433,0) size 52x19
+            text run at (433,0) width 52: "this part"
+        LayoutText {#text} at (485,0) size 35x19
+          text run at (485,0) width 35: ", and "
+        LayoutInline {STRONG} at (0,0) size 57x19
+          LayoutText {#text} at (520,0) size 57x19
+            text run at (520,0) width 57: "this part"
+        LayoutText {#text} at (577,0) size 4x19
+          text run at (577,0) width 4: "."
+      LayoutBlockFlow {P} at (0,383.59) size 784x20 [color=#000080]
+        LayoutText {#text} at (0,0) size 436x19
+          text run at (0,0) width 436: "This sentence should also be underlined, as well as dark blue (navy), "
+        LayoutInline {TT} at (0,0) size 152x16
+          LayoutText {#text} at (436,3) size 152x16
+            text run at (436,3) width 152: "including this part"
+        LayoutText {#text} at (588,0) size 4x19
+          text run at (588,0) width 4: "."
+      LayoutBlockFlow {P} at (0,419.59) size 784x20 [color=#800080]
+        LayoutText {#text} at (0,0) size 266x19
+          text run at (0,0) width 266: "This sentence should be purple, including "
+        LayoutInline {STRONG} at (0,0) size 57x19
+          LayoutText {#text} at (266,0) size 57x19
+            text run at (266,0) width 57: "this part"
+        LayoutText {#text} at (323,0) size 31x19
+          text run at (323,0) width 31: " and "
+        LayoutInline {SPAN} at (0,0) size 173x19
+          LayoutText {#text} at (354,0) size 173x19
+            text run at (354,0) width 173: "this part (which is spanned)"
+        LayoutText {#text} at (527,0) size 4x19
+          text run at (527,0) width 4: "."
+      LayoutTable {TABLE} at (0,455.59) size 614x296 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 612x294
+          LayoutTableRow {TR} at (0,0) size 612x28
+            LayoutTableCell {TD} at (0,0) size 612x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 612x266
+            LayoutTableCell {TD} at (0,147) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 600x265.88 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {H3} at (4,4) size 592x24 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 220x22
+                  text run at (0,0) width 220: "This sentence should show "
+                LayoutInline {STRONG} at (0,0) size 35x22
+                  LayoutText {#text} at (220,0) size 35x22
+                    text run at (220,0) width 35: "blue"
+                LayoutText {#text} at (255,0) size 42x22
+                  text run at (255,0) width 42: " and "
+                LayoutInline {EM} at (0,0) size 51x22 [color=#800080]
+                  LayoutText {#text} at (297,1) size 51x22
+                    text run at (297,1) width 51: "purple"
+                LayoutText {#text} at (348,0) size 5x22
+                  text run at (348,0) width 5: "."
+              LayoutBlockFlow {H3} at (4,46.72) size 592x24 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 197x22
+                  text run at (0,0) width 197: "This sentence should be "
+                LayoutInline {SPAN} at (0,0) size 34x22
+                  LayoutText {#text} at (197,1) size 34x22
+                    text run at (197,1) width 34: "blue"
+                LayoutText {#text} at (231,0) size 104x22
+                  text run at (231,0) width 104: " throughout."
+              LayoutBlockFlow {P} at (4,89.44) size 592x20
+                LayoutText {#text} at (0,0) size 226x19
+                  text run at (0,0) width 226: "This should be green except for the "
+                LayoutInline {EM} at (0,0) size 117x19 [color=#800080]
+                  LayoutText {#text} at (226,0) size 117x19
+                    text run at (226,0) width 117: "emphasized words"
+                LayoutText {#text} at (342,0) size 161x19
+                  text run at (342,0) width 161: ", which should be purple."
+              LayoutBlockFlow {H3} at (4,128.16) size 592x23 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 296x22
+                  text run at (0,0) width 296: "This should be blue and underlined."
+              LayoutBlockFlow {P} at (4,169.88) size 592x20
+                LayoutText {#text} at (0,0) size 293x19
+                  text run at (0,0) width 293: "This sentence should be underlined, including "
+                LayoutInline {TT} at (0,0) size 72x16
+                  LayoutText {#text} at (293,3) size 72x16
+                    text run at (293,3) width 72: "this part"
+                LayoutText {#text} at (365,0) size 8x19
+                  text run at (365,0) width 8: ", "
+                LayoutInline {I} at (0,0) size 52x19
+                  LayoutText {#text} at (373,0) size 52x19
+                    text run at (373,0) width 52: "this part"
+                LayoutText {#text} at (425,0) size 8x19
+                  text run at (425,0) width 8: ", "
+                LayoutInline {EM} at (0,0) size 52x19 [color=#800080]
+                  LayoutText {#text} at (433,0) size 52x19
+                    text run at (433,0) width 52: "this part"
+                LayoutText {#text} at (485,0) size 35x19
+                  text run at (485,0) width 35: ", and "
+                LayoutInline {STRONG} at (0,0) size 57x19
+                  LayoutText {#text} at (520,0) size 57x19
+                    text run at (520,0) width 57: "this part"
+                LayoutText {#text} at (577,0) size 4x19
+                  text run at (577,0) width 4: "."
+              LayoutBlockFlow {P} at (4,205.88) size 592x20 [color=#000080]
+                LayoutText {#text} at (0,0) size 436x19
+                  text run at (0,0) width 436: "This sentence should also be underlined, as well as dark blue (navy), "
+                LayoutInline {TT} at (0,0) size 152x16
+                  LayoutText {#text} at (436,3) size 152x16
+                    text run at (436,3) width 152: "including this part"
+                LayoutText {#text} at (588,0) size 4x19
+                  text run at (588,0) width 4: "."
+              LayoutBlockFlow {P} at (4,241.88) size 592x20 [color=#800080]
+                LayoutText {#text} at (0,0) size 266x19
+                  text run at (0,0) width 266: "This sentence should be purple, including "
+                LayoutInline {STRONG} at (0,0) size 57x19
+                  LayoutText {#text} at (266,0) size 57x19
+                    text run at (266,0) width 57: "this part"
+                LayoutText {#text} at (323,0) size 31x19
+                  text run at (323,0) width 31: " and "
+                LayoutInline {SPAN} at (0,0) size 173x19
+                  LayoutText {#text} at (354,0) size 173x19
+                    text run at (354,0) width 173: "this part (which is spanned)"
+                LayoutText {#text} at (527,0) size 4x19
+                  text run at (527,0) width 4: "."
+layer at (8,169) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border-expected.txt
new file mode 100644
index 0000000..088e98e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border-expected.txt
@@ -0,0 +1,187 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1475
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1475 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1475
+    LayoutBlockFlow {BODY} at (8,8) size 769x1459 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x144
+        LayoutText {#text} at (0,0) size 272x144
+          text run at (0,0) width 272: ".one {border: medium black solid;}"
+          text run at (272,0) width 0: " "
+          text run at (0,16) width 264: ".two {border: thin maroon ridge;}"
+          text run at (264,16) width 0: " "
+          text run at (0,32) width 272: ".three {border: 10px teal outset;}"
+          text run at (272,32) width 0: " "
+          text run at (0,48) width 264: ".four {border: 10px olive inset;}"
+          text run at (264,48) width 0: " "
+          text run at (0,64) width 224: ".five {border: 10px maroon;}"
+          text run at (224,64) width 0: " "
+          text run at (0,80) width 232: ".six {border: maroon double;}"
+          text run at (232,80) width 0: " "
+          text run at (0,96) width 256: ".seven {border: left red solid;}"
+          text run at (256,96) width 0: " "
+          text run at (0,112) width 168: ".eight {border: 0px;}"
+          text run at (168,112) width 0: " "
+          text run at (0,128) width 232: "TD {border: 2px solid green;}"
+          text run at (232,128) width 0: " "
+      LayoutBlockFlow {P} at (0,211) size 769x40
+        LayoutText {#text} at (0,0) size 748x39
+          text run at (0,0) width 627: "Note that all table cells on this page should have a two-pixel solid green border along all four sides. "
+          text run at (627,0) width 121: "This border applies"
+          text run at (0,20) width 317: "only to the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (0,267) size 769x26 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 483x19
+          text run at (3,3) width 483: "This paragraph should have a medium black solid border all the way around."
+      LayoutBlockFlow {P} at (0,309) size 769x22 [border: (1px ridge #800000)]
+        LayoutText {#text} at (1,1) size 480x19
+          text run at (1,1) width 480: "This paragraph should have a thin maroon ridged border all the way around."
+      LayoutBlockFlow {P} at (0,347) size 769x40 [border: (10px outset #008080)]
+        LayoutText {#text} at (10,10) size 518x19
+          text run at (10,10) width 518: "This paragraph should have a ten-pixel-wide teal outset border all the way around."
+      LayoutBlockFlow {P} at (0,403) size 769x40 [border: (10px inset #808000)]
+        LayoutText {#text} at (10,10) size 519x19
+          text run at (10,10) width 519: "This paragraph should have a ten-pixel-wide olive inset border all the way around."
+      LayoutBlockFlow {P} at (0,459) size 769x20
+        LayoutText {#text} at (0,0) size 348x19
+          text run at (0,0) width 348: "This paragraph should have no border around it, as the "
+        LayoutInline {TT} at (0,0) size 96x16
+          LayoutText {#text} at (348,3) size 96x16
+            text run at (348,3) width 96: "border-style"
+        LayoutText {#text} at (444,0) size 322x19
+          text run at (444,0) width 322: " was not set, and it should not be offset in any way."
+      LayoutBlockFlow {P} at (0,495) size 769x46 [border: (3px double #800000)]
+        LayoutText {#text} at (3,3) size 535x19
+          text run at (3,3) width 535: "This paragraph should have a medium maroon double border around it, even though "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (538,6) size 96x16
+            text run at (538,6) width 96: "border-width"
+        LayoutText {#text} at (634,3) size 746x39
+          text run at (634,3) width 115: " was not explicitly"
+          text run at (3,23) width 21: "set."
+      LayoutBlockFlow {P} at (0,557) size 769x20
+        LayoutText {#text} at (0,0) size 621x19
+          text run at (0,0) width 621: "This paragraph should have no border around it, as its declaration is invalid and should be ignored."
+      LayoutBlockFlow {P} at (0,593) size 769x20
+        LayoutInline {A} at (0,0) size 25x19
+          LayoutText {#text} at (0,0) size 25x19
+            text run at (0,0) width 25: "The"
+        LayoutText {#text} at (25,0) size 715x19
+          text run at (25,0) width 715: " following image is also an anchor which points to a target on this page, but it should not have a border around it: "
+        LayoutInline {A} at (0,0) size 16x19 [color=#0000FF]
+          LayoutImage {IMG} at (739.70,0) size 15x15
+        LayoutText {#text} at (754,0) size 5x19
+          text run at (754,0) width 5: "."
+      LayoutTable {TABLE} at (0,629) size 769x121 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x119
+          LayoutTableRow {TR} at (0,5) size 767x46
+            LayoutTableCell {TD} at (5,5) size 757x46 [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (3,3) size 711x39
+                text run at (3,3) width 405: "Every cell in this table should have a 2-pixel solid green border. "
+                text run at (407,3) width 307: "This is also true of the table-testing section in the"
+                text run at (3,23) width 175: "second half of the test page."
+          LayoutTableRow {TR} at (0,56) size 767x58
+            LayoutTableCell {TD} at (5,72) size 194x26 [border: (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (3,3) size 53x19
+                text run at (3,3) width 53: "Cell one"
+            LayoutTableCell {TD} at (204,56) size 558x58 [border: (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (3,3) size 552x20
+                LayoutText {#text} at (0,0) size 54x19
+                  text run at (0,0) width 54: "Cell two"
+              LayoutTable {TABLE} at (3,23) size 163x32 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 161x30
+                  LayoutTableRow {TR} at (0,2) size 161x26
+                    LayoutTableCell {TD} at (2,2) size 157x26 [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (3,3) size 151x19
+                        text run at (3,3) width 151: "Nested single-cell table!"
+      LayoutBlockFlow {P} at (0,766) size 769x20
+        LayoutText {#text} at (0,0) size 175x19
+          text run at (0,0) width 175: "This is an unstyled element."
+      LayoutTable {TABLE} at (0,802) size 769x657 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x655
+          LayoutTableRow {TR} at (0,0) size 767x30
+            LayoutTableCell {TD} at (0,0) size 767x30 [bgcolor=#C0C0C0] [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (5,5) size 161x19
+                  text run at (5,5) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,30) size 767x625
+            LayoutTableCell {TD} at (0,327) size 14x30 [bgcolor=#C0C0C0] [border: (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (5,5) size 4x19
+                text run at (5,5) width 4: " "
+            LayoutTableCell {TD} at (14,30) size 753x625 [border: (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (5,5) size 743x40
+                LayoutText {#text} at (0,0) size 700x39
+                  text run at (0,0) width 627: "Note that all table cells on this page should have a two-pixel solid green border along all four sides. "
+                  text run at (627,0) width 73: "This border"
+                  text run at (0,20) width 365: "applies only to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (5,61) size 743x26 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 483x19
+                  text run at (3,3) width 483: "This paragraph should have a medium black solid border all the way around."
+              LayoutBlockFlow {P} at (5,103) size 743x22 [border: (1px ridge #800000)]
+                LayoutText {#text} at (1,1) size 480x19
+                  text run at (1,1) width 480: "This paragraph should have a thin maroon ridged border all the way around."
+              LayoutBlockFlow {P} at (5,141) size 743x40 [border: (10px outset #008080)]
+                LayoutText {#text} at (10,10) size 518x19
+                  text run at (10,10) width 518: "This paragraph should have a ten-pixel-wide teal outset border all the way around."
+              LayoutBlockFlow {P} at (5,197) size 743x40 [border: (10px inset #808000)]
+                LayoutText {#text} at (10,10) size 519x19
+                  text run at (10,10) width 519: "This paragraph should have a ten-pixel-wide olive inset border all the way around."
+              LayoutBlockFlow {P} at (5,253) size 743x40
+                LayoutText {#text} at (0,0) size 348x19
+                  text run at (0,0) width 348: "This paragraph should have no border around it, as the "
+                LayoutInline {TT} at (0,0) size 96x16
+                  LayoutText {#text} at (348,3) size 96x16
+                    text run at (348,3) width 96: "border-style"
+                LayoutText {#text} at (444,0) size 732x39
+                  text run at (444,0) width 288: " was not set, and it should not be offset in any"
+                  text run at (0,20) width 30: "way."
+              LayoutBlockFlow {P} at (5,309) size 743x46 [border: (3px double #800000)]
+                LayoutText {#text} at (3,3) size 535x19
+                  text run at (3,3) width 535: "This paragraph should have a medium maroon double border around it, even though "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (538,6) size 96x16
+                    text run at (538,6) width 96: "border-width"
+                LayoutText {#text} at (634,3) size 684x39
+                  text run at (634,3) width 53: " was not"
+                  text run at (3,23) width 83: "explicitly set."
+              LayoutBlockFlow {P} at (5,371) size 743x20
+                LayoutText {#text} at (0,0) size 621x19
+                  text run at (0,0) width 621: "This paragraph should have no border around it, as its declaration is invalid and should be ignored."
+              LayoutBlockFlow {P} at (5,407) size 743x40
+                LayoutInline {A} at (0,0) size 25x19
+                  LayoutText {#text} at (0,0) size 25x19
+                    text run at (0,0) width 25: "The"
+                LayoutText {#text} at (25,0) size 715x19
+                  text run at (25,0) width 715: " following image is also an anchor which points to a target on this page, but it should not have a border around it: "
+                LayoutInline {A} at (0,0) size 15x19 [color=#0000FF]
+                  LayoutImage {IMG} at (0,20) size 15x15
+                LayoutText {#text} at (15,20) size 4x19
+                  text run at (15,20) width 4: "."
+              LayoutTable {TABLE} at (5,463) size 743x121 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 741x119
+                  LayoutTableRow {TR} at (0,5) size 741x46
+                    LayoutTableCell {TD} at (5,5) size 731x46 [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (3,3) size 711x39
+                        text run at (3,3) width 405: "Every cell in this table should have a 2-pixel solid green border. "
+                        text run at (407,3) width 307: "This is also true of the table-testing section in the"
+                        text run at (3,23) width 175: "second half of the test page."
+                  LayoutTableRow {TR} at (0,56) size 741x58
+                    LayoutTableCell {TD} at (5,72) size 187x26 [border: (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (3,3) size 53x19
+                        text run at (3,3) width 53: "Cell one"
+                    LayoutTableCell {TD} at (197,56) size 539x58 [border: (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (3,3) size 533x20
+                        LayoutText {#text} at (0,0) size 54x19
+                          text run at (0,0) width 54: "Cell two"
+                      LayoutTable {TABLE} at (3,23) size 163x32 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 161x30
+                          LayoutTableRow {TR} at (0,2) size 161x26
+                            LayoutTableCell {TD} at (2,2) size 157x26 [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (3,3) size 151x19
+                                text run at (3,3) width 151: "Nested single-cell table!"
+              LayoutBlockFlow {P} at (5,600) size 743x20
+                LayoutText {#text} at (0,0) size 175x19
+                  text run at (0,0) width 175: "This is an unstyled element."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_bottom-expected.txt
new file mode 100644
index 0000000..e44fb27
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_bottom-expected.txt
@@ -0,0 +1,164 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1063
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1063 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1063
+    LayoutBlockFlow {BODY} at (8,8) size 769x1047 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 344x64
+          text run at (0,0) width 328: ".one {border-bottom: purple double 10px;}"
+          text run at (328,0) width 0: " "
+          text run at (0,16) width 320: ".two {border-bottom: purple thin solid;}"
+          text run at (320,16) width 0: " "
+          text run at (0,32) width 344: ".three {border-bottom: black medium solid;}"
+          text run at (344,32) width 0: " "
+          text run at (0,48) width 288: "TD {border-bottom: green 2px solid;}"
+          text run at (288,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 769x40
+        LayoutText {#text} at (0,0) size 731x39
+          text run at (0,0) width 658: "Note that all table cells on this page should have a two-pixel solid green border along their bottom sides. "
+          text run at (658,0) width 73: "This border"
+          text run at (0,20) width 365: "applies only to the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (0,187) size 769x30 [border: none (10px double #800080) none]
+        LayoutText {#text} at (0,0) size 438x19
+          text run at (0,0) width 438: "This paragraph should have a purple, double, 10-pixel bottom border."
+      LayoutBlockFlow {P} at (0,233) size 769x21 [border: none (1px solid #800080) none]
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "This paragraph should have a thin purple bottom border."
+      LayoutTable {TABLE} at (0,270) size 769x118 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x116
+          LayoutTableRow {TR} at (0,5) size 767x45
+            LayoutTableCell {TD} at (5,5) size 757x45 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (2,2) size 736x39
+                text run at (2,2) width 453: "Every cell in this table should have a 2-pixel solid green bottom border. "
+                text run at (454,2) width 284: "This is also true of the table-testing section in"
+                text run at (2,22) width 198: "the second half of the test page."
+          LayoutTableRow {TR} at (0,55) size 767x56
+            LayoutTableCell {TD} at (5,70) size 192x25 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (2,2) size 53x19
+                text run at (2,2) width 53: "Cell one"
+            LayoutTableCell {TD} at (202,55) size 560x56 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (2,2) size 556x20
+                LayoutText {#text} at (0,0) size 54x19
+                  text run at (0,0) width 54: "Cell two"
+              LayoutTable {TABLE} at (2,22) size 161x31 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 159x29
+                  LayoutTableRow {TR} at (0,2) size 159x25
+                    LayoutTableCell {TD} at (2,2) size 155x25 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,2) size 151x19
+                        text run at (2,2) width 151: "Nested single-cell table!"
+      LayoutBlockFlow {UL} at (0,404) size 769x149
+        LayoutListItem {LI} at (40,0) size 729x83 [border: none (3px solid #000000) none]
+          LayoutBlockFlow (anonymous) at (0,0) size 729x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 118x19
+              text run at (0,0) width 118: "This is a list item..."
+          LayoutBlockFlow {UL} at (0,20) size 729x60
+            LayoutListItem {LI} at (40,0) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 73x19
+                text run at (0,0) width 73: "...and this..."
+            LayoutListItem {LI} at (40,20) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 115x19
+                text run at (0,0) width 115: "...is a second list..."
+            LayoutListItem {LI} at (40,40) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 176x19
+                text run at (0,0) width 176: "...nested within the list item."
+        LayoutListItem {LI} at (40,83) size 729x23 [border: none (3px solid #000000) none]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 158x19
+            text run at (0,0) width 158: "This is a second list item."
+        LayoutListItem {LI} at (40,106) size 729x43 [border: none (3px solid #000000) none]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 722x39
+            text run at (0,0) width 722: "Each list item in this list should have a medium-width black border at its bottom, which for the first item means that"
+            text run at (0,20) width 104: "it should appear "
+          LayoutInline {EM} at (0,0) size 50x19
+            LayoutText {#text} at (104,20) size 50x19
+              text run at (104,20) width 50: "beneath"
+          LayoutText {#text} at (154,20) size 390x19
+            text run at (154,20) width 390: " the nested list (below the line \"...nested within the list item.\")."
+      LayoutTable {TABLE} at (0,569) size 769x478 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x476
+          LayoutTableRow {TR} at (0,0) size 767x29
+            LayoutTableCell {TD} at (0,0) size 767x29 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,29) size 767x447
+            LayoutTableCell {TD} at (0,238) size 12x29 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,29) size 755x447 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x40
+                LayoutText {#text} at (0,0) size 731x39
+                  text run at (0,0) width 658: "Note that all table cells on this page should have a two-pixel solid green border along their bottom sides. "
+                  text run at (658,0) width 73: "This border"
+                  text run at (0,20) width 365: "applies only to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (4,60) size 747x30 [border: none (10px double #800080) none]
+                LayoutText {#text} at (0,0) size 438x19
+                  text run at (0,0) width 438: "This paragraph should have a purple, double, 10-pixel bottom border."
+              LayoutBlockFlow {P} at (4,106) size 747x21 [border: none (1px solid #800080) none]
+                LayoutText {#text} at (0,0) size 355x19
+                  text run at (0,0) width 355: "This paragraph should have a thin purple bottom border."
+              LayoutTable {TABLE} at (4,143) size 747x118 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 745x116
+                  LayoutTableRow {TR} at (0,5) size 745x45
+                    LayoutTableCell {TD} at (5,5) size 735x45 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (2,2) size 720x39
+                        text run at (2,2) width 453: "Every cell in this table should have a 2-pixel solid green bottom border. "
+                        text run at (454,2) width 268: "This is also true of the table-testing section"
+                        text run at (2,22) width 214: "in the second half of the test page."
+                  LayoutTableRow {TR} at (0,55) size 745x56
+                    LayoutTableCell {TD} at (5,70) size 186x25 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,2) size 53x19
+                        text run at (2,2) width 53: "Cell one"
+                    LayoutTableCell {TD} at (196,55) size 544x56 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (2,2) size 540x20
+                        LayoutText {#text} at (0,0) size 54x19
+                          text run at (0,0) width 54: "Cell two"
+                      LayoutTable {TABLE} at (2,22) size 161x31 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 159x29
+                          LayoutTableRow {TR} at (0,2) size 159x25
+                            LayoutTableCell {TD} at (2,2) size 155x25 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (2,2) size 151x19
+                                text run at (2,2) width 151: "Nested single-cell table!"
+              LayoutBlockFlow {UL} at (4,277) size 747x149
+                LayoutListItem {LI} at (40,0) size 707x83 [border: none (3px solid #000000) none]
+                  LayoutBlockFlow (anonymous) at (0,0) size 707x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 118x19
+                      text run at (0,0) width 118: "This is a list item..."
+                  LayoutBlockFlow {UL} at (0,20) size 707x60
+                    LayoutListItem {LI} at (40,0) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 73x19
+                        text run at (0,0) width 73: "...and this..."
+                    LayoutListItem {LI} at (40,20) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 115x19
+                        text run at (0,0) width 115: "...is a second list..."
+                    LayoutListItem {LI} at (40,40) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 176x19
+                        text run at (0,0) width 176: "...nested within the list item."
+                LayoutListItem {LI} at (40,83) size 707x23 [border: none (3px solid #000000) none]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 158x19
+                    text run at (0,0) width 158: "This is a second list item."
+                LayoutListItem {LI} at (40,106) size 707x43 [border: none (3px solid #000000) none]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 695x39
+                    text run at (0,0) width 695: "Each list item in this list should have a medium-width black border at its bottom, which for the first item means"
+                    text run at (0,20) width 131: "that it should appear "
+                  LayoutInline {EM} at (0,0) size 50x19
+                    LayoutText {#text} at (131,20) size 50x19
+                      text run at (131,20) width 50: "beneath"
+                  LayoutText {#text} at (181,20) size 390x19
+                    text run at (181,20) width 390: " the nested list (below the line \"...nested within the list item.\")."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_bottom_inline-expected.txt
new file mode 100644
index 0000000..46324cd2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_bottom_inline-expected.txt
@@ -0,0 +1,60 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 328x48
+          text run at (0,0) width 328: ".one {border-bottom: purple double 10px;}"
+          text run at (328,0) width 0: " "
+          text run at (0,16) width 320: ".two {border-bottom: purple thin solid;}"
+          text run at (320,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 666x19
+          text run at (0,0) width 666: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
+        LayoutInline {SPAN} at (0,0) size 58x29 [border: none (10px double #800080) none]
+          LayoutText {#text} at (665,0) size 58x19
+            text run at (665,0) width 58: "class one"
+        LayoutText {#text} at (722,0) size 770x39
+          text run at (722,0) width 48: ", which"
+          text run at (0,20) width 362: "should have a 10-pixel purple double bottom border; and "
+        LayoutInline {SPAN} at (0,0) size 58x20 [border: none (1px solid #800080) none]
+          LayoutText {#text} at (362,20) size 58x19
+            text run at (362,20) width 58: "class two"
+        LayoutText {#text} at (420,20) size 761x39
+          text run at (420,20) width 341: ", which should have a thin solid purple bottom border."
+          text run at (0,40) width 429: "The line-height of the parent element should not change on any line."
+      LayoutTable {TABLE} at (0,191) size 784x98 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x96
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x68
+            LayoutTableCell {TD} at (0,48) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x68 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 666x19
+                  text run at (0,0) width 666: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
+                LayoutInline {SPAN} at (0,0) size 58x29 [border: none (10px double #800080) none]
+                  LayoutText {#text} at (665,0) size 58x19
+                    text run at (665,0) width 58: "class one"
+                LayoutText {#text} at (722,0) size 727x39
+                  text run at (722,0) width 5: ","
+                  text run at (0,20) width 405: "which should have a 10-pixel purple double bottom border; and "
+                LayoutInline {SPAN} at (0,0) size 58x20 [border: none (1px solid #800080) none]
+                  LayoutText {#text} at (405,20) size 58x19
+                    text run at (405,20) width 58: "class two"
+                LayoutText {#text} at (463,20) size 755x39
+                  text run at (463,20) width 292: ", which should have a thin solid purple bottom"
+                  text run at (0,40) width 49: "border. "
+                  text run at (48,40) width 430: "The line-height of the parent element should not change on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_bottom_width-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_bottom_width-expected.txt
new file mode 100644
index 0000000..46eecd0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_bottom_width-expected.txt
@@ -0,0 +1,104 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 919
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x919 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x919
+    LayoutBlockFlow {BODY} at (8,8) size 769x903 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 464x96
+          text run at (0,0) width 456: ".zero {background-color: silver; border-bottom-width: 0;}"
+          text run at (456,0) width 0: " "
+          text run at (0,16) width 432: ".one {border-bottom-width: 50px; border-style: solid;}"
+          text run at (432,16) width 0: " "
+          text run at (0,32) width 440: ".two {border-bottom-width: thick; border-style: solid;}"
+          text run at (440,32) width 0: " "
+          text run at (0,48) width 464: ".three {border-bottom-width: medium; border-style: solid;}"
+          text run at (464,48) width 0: " "
+          text run at (0,64) width 440: ".four {border-bottom-width: thin; border-style: solid;}"
+          text run at (440,64) width 0: " "
+          text run at (0,80) width 272: ".five {border-bottom-width: 25px;}"
+          text run at (272,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20
+        LayoutText {#text} at (0,0) size 157x19
+          text run at (0,0) width 157: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (157,3) size 96x16
+            text run at (157,3) width 96: "border-style"
+        LayoutText {#text} at (253,0) size 89x19
+          text run at (253,0) width 89: " is supported.)"
+      LayoutBlockFlow {P} at (0,199) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,235) size 769x73 [border: (3px solid #000000) (50px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 387x19
+          text run at (3,3) width 387: "This element should have a bottom border width of 50 pixels."
+      LayoutBlockFlow {P} at (0,324) size 769x28 [border: (3px solid #000000) (5px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 344x19
+          text run at (3,3) width 344: "This element should have a thick bottom border width."
+      LayoutBlockFlow {P} at (0,368) size 769x26 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 364x19
+          text run at (3,3) width 364: "This element should have a medium bottom border width."
+      LayoutBlockFlow {P} at (0,410) size 769x24 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 337x19
+          text run at (3,3) width 337: "This element should have a thin bottom border width."
+      LayoutBlockFlow {P} at (0,450) size 769x20
+        LayoutText {#text} at (0,0) size 537x19
+          text run at (0,0) width 537: "This element should have no border and no extra \"padding\" on its bottom side, as no "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (537,3) size 96x16
+            text run at (537,3) width 96: "border-style"
+        LayoutText {#text} at (633,0) size 54x19
+          text run at (633,0) width 54: " was set."
+      LayoutBlockFlow {P} at (0,486) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutTable {TABLE} at (0,522) size 709x381 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 707x379
+          LayoutTableRow {TR} at (0,0) size 707x28
+            LayoutTableCell {TD} at (0,0) size 707x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 707x351
+            LayoutTableCell {TD} at (0,189) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 695x351 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 687x20
+                LayoutText {#text} at (0,0) size 157x19
+                  text run at (0,0) width 157: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (157,3) size 96x16
+                    text run at (157,3) width 96: "border-style"
+                LayoutText {#text} at (253,0) size 89x19
+                  text run at (253,0) width 89: " is supported.)"
+              LayoutBlockFlow {P} at (4,40) size 687x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,76) size 687x73 [border: (3px solid #000000) (50px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 387x19
+                  text run at (3,3) width 387: "This element should have a bottom border width of 50 pixels."
+              LayoutBlockFlow {P} at (4,165) size 687x28 [border: (3px solid #000000) (5px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 344x19
+                  text run at (3,3) width 344: "This element should have a thick bottom border width."
+              LayoutBlockFlow {P} at (4,209) size 687x26 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 364x19
+                  text run at (3,3) width 364: "This element should have a medium bottom border width."
+              LayoutBlockFlow {P} at (4,251) size 687x24 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 337x19
+                  text run at (3,3) width 337: "This element should have a thin bottom border width."
+              LayoutBlockFlow {P} at (4,291) size 687x20
+                LayoutText {#text} at (0,0) size 537x19
+                  text run at (0,0) width 537: "This element should have no border and no extra \"padding\" on its bottom side, as no "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (537,3) size 96x16
+                    text run at (537,3) width 96: "border-style"
+                LayoutText {#text} at (633,0) size 54x19
+                  text run at (633,0) width 54: " was set."
+              LayoutBlockFlow {P} at (4,327) size 687x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_bottom_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_bottom_width_inline-expected.txt
new file mode 100644
index 0000000..aaa790c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_bottom_width_inline-expected.txt
@@ -0,0 +1,88 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 432x48
+          text run at (0,0) width 432: ".one {border-bottom-width: 25px; border-style: solid;}"
+          text run at (432,0) width 0: " "
+          text run at (0,16) width 432: ".two {border-bottom-width: thin; border-style: solid;}"
+          text run at (432,16) width 0: " "
+          text run at (0,32) width 280: ".three {border-bottom-width: 25px;}"
+          text run at (280,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x108 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 172x19
+          text run at (3,3) width 172: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 24x16
+          LayoutText {#text} at (175,6) size 24x16
+            text run at (175,6) width 24: "one"
+        LayoutText {#text} at (199,3) size 162x19
+          text run at (199,3) width 8: ". "
+          text run at (207,3) width 154: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 174x23 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+          LayoutText {#text} at (363,3) size 144x19
+            text run at (363,3) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (506,6) size 25x16
+              text run at (506,6) width 25: "two"
+        LayoutText {#text} at (533,3) size 767x59
+          text run at (533,3) width 221: ", which should result in a thin solid"
+          text run at (3,23) width 716: "border on the bottom side of each box in the inline element (and the UA's default border on the other three sides). "
+          text run at (719,23) width 51: "There is"
+          text run at (3,43) width 48: "also an "
+        LayoutInline {SPAN} at (0,0) size 183x19
+          LayoutText {#text} at (51,43) size 143x19
+            text run at (51,43) width 143: "inline element of class "
+          LayoutInline {TT} at (0,0) size 40x16
+            LayoutText {#text} at (194,46) size 40x16
+              text run at (194,46) width 40: "three"
+        LayoutText {#text} at (234,43) size 770x39
+          text run at (234,43) width 539: ", which should have no bottom border width or visible border because no border style"
+          text run at (3,63) width 50: "was set."
+      LayoutTable {TABLE} at (0,239) size 784x146 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x144
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x116
+            LayoutTableCell {TD} at (0,72) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x116 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x108 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 172x19
+                  text run at (3,3) width 172: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 24x16
+                  LayoutText {#text} at (175,6) size 24x16
+                    text run at (175,6) width 24: "one"
+                LayoutText {#text} at (199,3) size 162x19
+                  text run at (199,3) width 8: ". "
+                  text run at (207,3) width 154: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 174x23 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+                  LayoutText {#text} at (363,3) size 144x19
+                    text run at (363,3) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (506,6) size 25x16
+                      text run at (506,6) width 25: "two"
+                LayoutText {#text} at (533,3) size 753x59
+                  text run at (533,3) width 221: ", which should result in a thin solid"
+                  text run at (3,23) width 716: "border on the bottom side of each box in the inline element (and the UA's default border on the other three sides). "
+                  text run at (719,23) width 37: "There"
+                  text run at (3,43) width 62: "is also an "
+                LayoutInline {SPAN} at (0,0) size 183x19
+                  LayoutText {#text} at (65,43) size 143x19
+                    text run at (65,43) width 143: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 40x16
+                    LayoutText {#text} at (208,46) size 40x16
+                      text run at (208,46) width 40: "three"
+                LayoutText {#text} at (248,43) size 751x39
+                  text run at (248,43) width 506: ", which should have no bottom border width or visible border because no border"
+                  text run at (3,63) width 83: "style was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_color-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_color-expected.txt
new file mode 100644
index 0000000..0a59aac0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_color-expected.txt
@@ -0,0 +1,50 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 728x48
+          text run at (0,0) width 392: ".one {border-color: purple; border-style: solid;}"
+          text run at (392,0) width 0: " "
+          text run at (0,16) width 568: ".two {border-color: purple; border-width: medium; border-style: solid;}"
+          text run at (568,16) width 0: " "
+          text run at (0,32) width 728: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
+          text run at (728,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x26 [border: (3px solid #800080)]
+        LayoutText {#text} at (3,3) size 357x19
+          text run at (3,3) width 357: "This element should have a purple border surrounding it."
+      LayoutBlockFlow {P} at (0,157) size 784x26 [border: (3px solid #800080)]
+        LayoutText {#text} at (3,3) size 453x19
+          text run at (3,3) width 453: "This element should have a medium-width purple border surrounding it."
+      LayoutBlockFlow {P} at (0,199) size 784x46 [border: (3px solid #800080) (3px solid #008000) (3px solid #0000FF) (3px solid #FFFF00)]
+        LayoutText {#text} at (3,3) size 763x39
+          text run at (3,3) width 763: "This element should be surrounded by a medium width border which is purple on top, green on the right side, blue on the"
+          text run at (3,23) width 222: "bottom, and yellow on the left side."
+      LayoutTable {TABLE} at (0,261) size 784x168 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x166
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x138
+            LayoutTableCell {TD} at (0,83) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x138 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x26 [border: (3px solid #800080)]
+                LayoutText {#text} at (3,3) size 357x19
+                  text run at (3,3) width 357: "This element should have a purple border surrounding it."
+              LayoutBlockFlow {P} at (4,46) size 762x26 [border: (3px solid #800080)]
+                LayoutText {#text} at (3,3) size 453x19
+                  text run at (3,3) width 453: "This element should have a medium-width purple border surrounding it."
+              LayoutBlockFlow {P} at (4,88) size 762x46 [border: (3px solid #800080) (3px solid #008000) (3px solid #0000FF) (3px solid #FFFF00)]
+                LayoutText {#text} at (3,3) size 740x39
+                  text run at (3,3) width 740: "This element should be surrounded by a medium width border which is purple on top, green on the right side, blue on"
+                  text run at (3,23) width 245: "the bottom, and yellow on the left side."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_color_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_color_inline-expected.txt
new file mode 100644
index 0000000..28bc9a3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_color_inline-expected.txt
@@ -0,0 +1,75 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 728x48
+          text run at (0,0) width 392: ".one {border-color: purple; border-style: solid;}"
+          text run at (392,0) width 0: " "
+          text run at (0,16) width 568: ".two {border-color: purple; border-width: medium; border-style: solid;}"
+          text run at (568,16) width 0: " "
+          text run at (0,32) width 728: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
+          text run at (728,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x80 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 677x19
+          text run at (0,0) width 677: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
+        LayoutInline {SPAN} at (0,0) size 64x25 [border: (3px solid #800080)]
+          LayoutText {#text} at (679,0) size 58x19
+            text run at (679,0) width 58: "class one"
+        LayoutText {#text} at (739,0) size 9x19
+          text run at (739,0) width 9: ", "
+        LayoutInline {SPAN} at (0,0) size 781x45 [border: (3px solid #800080)]
+          LayoutText {#text} at (750,0) size 781x39
+            text run at (750,0) width 31: "class"
+            text run at (0,20) width 24: "two"
+        LayoutText {#text} at (27,20) size 35x19
+          text run at (27,20) width 35: ", and "
+        LayoutInline {SPAN} at (0,0) size 71x25 [border: (3px solid #800080) (3px solid #008000) (3px solid #0000FF) (3px solid #FFFF00)]
+          LayoutText {#text} at (65,20) size 65x19
+            text run at (65,20) width 65: "class three"
+        LayoutText {#text} at (133,20) size 764x59
+          text run at (133,20) width 8: ". "
+          text run at (141,20) width 623: "The effect for each inline element should be to have a purple medium-width solid border in the first"
+          text run at (0,40) width 569: "and second cases, and a purple-green-blue-yellow medium-width solid border in the third. "
+          text run at (569,40) width 179: "The line-height of the parent"
+          text run at (0,60) width 284: "element should not change at all, on any line."
+      LayoutTable {TABLE} at (0,211) size 784x118 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x116
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x88
+            LayoutTableCell {TD} at (0,58) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x88 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x80 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 677x19
+                  text run at (0,0) width 677: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
+                LayoutInline {SPAN} at (0,0) size 64x25 [border: (3px solid #800080)]
+                  LayoutText {#text} at (679,0) size 58x19
+                    text run at (679,0) width 58: "class one"
+                LayoutText {#text} at (739,0) size 5x19
+                  text run at (739,0) width 5: ","
+                LayoutInline {SPAN} at (0,0) size 64x25 [border: (3px solid #800080)]
+                  LayoutText {#text} at (3,20) size 58x19
+                    text run at (3,20) width 58: "class two"
+                LayoutText {#text} at (64,20) size 35x19
+                  text run at (64,20) width 35: ", and "
+                LayoutInline {SPAN} at (0,0) size 71x25 [border: (3px solid #800080) (3px solid #008000) (3px solid #0000FF) (3px solid #FFFF00)]
+                  LayoutText {#text} at (102,20) size 65x19
+                    text run at (102,20) width 65: "class three"
+                LayoutText {#text} at (170,20) size 756x59
+                  text run at (170,20) width 8: ". "
+                  text run at (178,20) width 572: "The effect for each inline element should be to have a purple medium-width solid border in"
+                  text run at (0,40) width 620: "the first and second cases, and a purple-green-blue-yellow medium-width solid border in the third. "
+                  text run at (620,40) width 136: "The line-height of the"
+                  text run at (0,60) width 327: "parent element should not change at all, on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_inline-expected.txt
new file mode 100644
index 0000000..9e6aee4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_inline-expected.txt
@@ -0,0 +1,59 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 256x48
+          text run at (0,0) width 256: ".one {border: 10px teal outset;}"
+          text run at (256,0) width 0: " "
+          text run at (0,16) width 256: ".two {border: 10px olive inset;}"
+          text run at (256,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 677x19
+          text run at (0,0) width 677: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
+        LayoutInline {SPAN} at (0,0) size 78x39 [border: (10px outset #008080)]
+          LayoutText {#text} at (686,0) size 58x19
+            text run at (686,0) width 58: "class one"
+        LayoutText {#text} at (753,0) size 758x39
+          text run at (753,0) width 5: ","
+          text run at (0,20) width 353: "which should result in a 10-pixel outset teal border; and "
+        LayoutInline {SPAN} at (0,0) size 78x39 [border: (10px inset #808000)]
+          LayoutText {#text} at (363,20) size 58x19
+            text run at (363,20) width 58: "class two"
+        LayoutText {#text} at (431,20) size 762x39
+          text run at (431,20) width 331: ", which should result in a 10-pixel inset olive border."
+          text run at (0,40) width 429: "The line-height of the parent element should not change on any line."
+      LayoutTable {TABLE} at (0,191) size 784x98 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x96
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x68
+            LayoutTableCell {TD} at (0,48) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x68 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 677x19
+                  text run at (0,0) width 677: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
+                LayoutInline {SPAN} at (0,0) size 78x39 [border: (10px outset #008080)]
+                  LayoutText {#text} at (686,0) size 58x19
+                    text run at (686,0) width 58: "class one"
+                LayoutText {#text} at (753,0) size 758x39
+                  text run at (753,0) width 5: ","
+                  text run at (0,20) width 353: "which should result in a 10-pixel outset teal border; and "
+                LayoutInline {SPAN} at (0,0) size 78x39 [border: (10px inset #808000)]
+                  LayoutText {#text} at (363,20) size 58x19
+                    text run at (363,20) width 58: "class two"
+                LayoutText {#text} at (431,20) size 762x39
+                  text run at (431,20) width 331: ", which should result in a 10-pixel inset olive border."
+                  text run at (0,40) width 429: "The line-height of the parent element should not change on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_left-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_left-expected.txt
new file mode 100644
index 0000000..e8bd419
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_left-expected.txt
@@ -0,0 +1,163 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1103
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1103 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1103
+    LayoutBlockFlow {BODY} at (8,8) size 769x1087 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (20,0) size 749x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x112
+        LayoutText {#text} at (0,0) size 344x112
+          text run at (0,0) width 176: "P {margin-left: 20px;}"
+          text run at (176,0) width 0: " "
+          text run at (0,16) width 312: ".one {border-left: purple double 10px;}"
+          text run at (312,16) width 0: " "
+          text run at (0,32) width 304: ".two {border-left: purple thin solid;}"
+          text run at (304,32) width 0: " "
+          text run at (0,48) width 336: ".threea {border-left: black medium solid;}"
+          text run at (336,48) width 0: " "
+          text run at (0,64) width 344: ".threeb {border-left: purple medium solid;}"
+          text run at (344,64) width 0: " "
+          text run at (0,80) width 328: ".threec {border-left: blue medium solid;}"
+          text run at (328,80) width 0: " "
+          text run at (0,96) width 272: "TD {border-left: green 2px solid;}"
+          text run at (272,96) width 0: " "
+      LayoutBlockFlow {P} at (20,179) size 749x40
+        LayoutText {#text} at (0,0) size 707x39
+          text run at (0,0) width 634: "Note that all table cells on this page should have a two-pixel solid green border along their left sides. "
+          text run at (634,0) width 73: "This border"
+          text run at (0,20) width 365: "applies only to the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (20,235) size 749x20 [border: none (10px double #800080)]
+        LayoutText {#text} at (10,0) size 414x19
+          text run at (10,0) width 414: "This paragraph should have a purple, double, 10-pixel left border."
+      LayoutBlockFlow {P} at (20,271) size 749x20 [border: none (1px solid #800080)]
+        LayoutText {#text} at (1,0) size 331x19
+          text run at (1,0) width 331: "This paragraph should have a thin purple left border."
+      LayoutTable {TABLE} at (0,307) size 769x115 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x113
+          LayoutTableRow {TR} at (0,5) size 767x44
+            LayoutTableCell {TD} at (5,5) size 757x44 [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (3,2) size 735x39
+                text run at (3,2) width 429: "Every cell in this table should have a 2-pixel solid green left border. "
+                text run at (431,2) width 307: "This is also true of the table-testing section in the"
+                text run at (3,22) width 175: "second half of the test page."
+          LayoutTableRow {TR} at (0,54) size 767x54
+            LayoutTableCell {TD} at (5,69) size 193x24 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (3,2) size 53x19
+                text run at (3,2) width 53: "Cell one"
+            LayoutTableCell {TD} at (203,54) size 559x54 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (3,2) size 554x20
+                LayoutText {#text} at (0,0) size 54x19
+                  text run at (0,0) width 54: "Cell two"
+              LayoutTable {TABLE} at (3,22) size 162x30 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 160x28
+                  LayoutTableRow {TR} at (0,2) size 160x24
+                    LayoutTableCell {TD} at (2,2) size 156x24 [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (3,2) size 151x19
+                        text run at (3,2) width 151: "Nested single-cell table!"
+      LayoutBlockFlow {UL} at (0,438) size 769x160
+        LayoutListItem {LI} at (40,0) size 729x80 [border: none (3px solid #000000)]
+          LayoutBlockFlow (anonymous) at (3,0) size 726x20
+            LayoutListMarker (anonymous) at (-21,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 118x19
+              text run at (0,0) width 118: "This is a list item..."
+          LayoutBlockFlow {UL} at (3,20) size 726x60
+            LayoutListItem {LI} at (40,0) size 686x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 73x19
+                text run at (0,0) width 73: "...and this..."
+            LayoutListItem {LI} at (40,20) size 686x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 115x19
+                text run at (0,0) width 115: "...is a second list..."
+            LayoutListItem {LI} at (40,40) size 686x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 176x19
+                text run at (0,0) width 176: "...nested within the list item."
+        LayoutListItem {LI} at (40,80) size 729x20 [border: none (3px solid #800080)]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (3,0) size 158x19
+            text run at (3,0) width 158: "This is a second list item."
+        LayoutListItem {LI} at (40,100) size 729x60 [border: none (3px solid #0000FF)]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (3,0) size 720x59
+            text run at (3,0) width 695: "Each list item in this 'parent' list should have a medium-width border along its left side, in each of three colors. "
+            text run at (698,0) width 25: "The"
+            text run at (3,20) width 719: "first item's border should travel the entire height the nested list (to end near the baseline of the line \"...nested within"
+            text run at (3,40) width 490: "the list item.\"), even though the nested list does not have any border styles set."
+      LayoutTable {TABLE} at (0,614) size 769x473 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x471
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (5,4) size 161x19
+                  text run at (5,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x443
+            LayoutTableCell {TD} at (0,235) size 13x28 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (5,4) size 4x19
+                text run at (5,4) width 4: " "
+            LayoutTableCell {TD} at (13,28) size 754x443 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (25,4) size 725x40
+                LayoutText {#text} at (0,0) size 707x39
+                  text run at (0,0) width 634: "Note that all table cells on this page should have a two-pixel solid green border along their left sides. "
+                  text run at (634,0) width 73: "This border"
+                  text run at (0,20) width 365: "applies only to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (25,60) size 725x20 [border: none (10px double #800080)]
+                LayoutText {#text} at (10,0) size 414x19
+                  text run at (10,0) width 414: "This paragraph should have a purple, double, 10-pixel left border."
+              LayoutBlockFlow {P} at (25,96) size 725x20 [border: none (1px solid #800080)]
+                LayoutText {#text} at (1,0) size 331x19
+                  text run at (1,0) width 331: "This paragraph should have a thin purple left border."
+              LayoutTable {TABLE} at (5,132) size 745x115 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 743x113
+                  LayoutTableRow {TR} at (0,5) size 743x44
+                    LayoutTableCell {TD} at (5,5) size 733x44 [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (3,2) size 712x39
+                        text run at (3,2) width 429: "Every cell in this table should have a 2-pixel solid green left border. "
+                        text run at (431,2) width 284: "This is also true of the table-testing section in"
+                        text run at (3,22) width 198: "the second half of the test page."
+                  LayoutTableRow {TR} at (0,54) size 743x54
+                    LayoutTableCell {TD} at (5,69) size 187x24 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (3,2) size 53x19
+                        text run at (3,2) width 53: "Cell one"
+                    LayoutTableCell {TD} at (197,54) size 541x54 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (3,2) size 536x20
+                        LayoutText {#text} at (0,0) size 54x19
+                          text run at (0,0) width 54: "Cell two"
+                      LayoutTable {TABLE} at (3,22) size 162x30 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 160x28
+                          LayoutTableRow {TR} at (0,2) size 160x24
+                            LayoutTableCell {TD} at (2,2) size 156x24 [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (3,2) size 151x19
+                                text run at (3,2) width 151: "Nested single-cell table!"
+              LayoutBlockFlow {UL} at (5,263) size 745x160
+                LayoutListItem {LI} at (40,0) size 705x80 [border: none (3px solid #000000)]
+                  LayoutBlockFlow (anonymous) at (3,0) size 702x20
+                    LayoutListMarker (anonymous) at (-21,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 118x19
+                      text run at (0,0) width 118: "This is a list item..."
+                  LayoutBlockFlow {UL} at (3,20) size 702x60
+                    LayoutListItem {LI} at (40,0) size 662x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 73x19
+                        text run at (0,0) width 73: "...and this..."
+                    LayoutListItem {LI} at (40,20) size 662x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 115x19
+                        text run at (0,0) width 115: "...is a second list..."
+                    LayoutListItem {LI} at (40,40) size 662x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 176x19
+                        text run at (0,0) width 176: "...nested within the list item."
+                LayoutListItem {LI} at (40,80) size 705x20 [border: none (3px solid #800080)]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (3,0) size 158x19
+                    text run at (3,0) width 158: "This is a second list item."
+                LayoutListItem {LI} at (40,100) size 705x60 [border: none (3px solid #0000FF)]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (3,0) size 691x59
+                    text run at (3,0) width 691: "Each list item in this 'parent' list should have a medium-width border along its left side, in each of three colors."
+                    text run at (3,20) width 641: "The first item's border should travel the entire height the nested list (to end near the baseline of the line"
+                    text run at (3,40) width 597: "\"...nested within the list item.\"), even though the nested list does not have any border styles set."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_left_inline-expected.txt
new file mode 100644
index 0000000..2ba28bc1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_left_inline-expected.txt
@@ -0,0 +1,62 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (20,0) size 764x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 312x64
+          text run at (0,0) width 176: "P {margin-left: 20px;}"
+          text run at (176,0) width 0: " "
+          text run at (0,16) width 312: ".one {border-left: purple double 10px;}"
+          text run at (312,16) width 0: " "
+          text run at (0,32) width 304: ".two {border-left: purple thin solid;}"
+          text run at (304,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (20,131) size 764x60 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 760x19
+          text run at (0,0) width 760: "This paragraph has a background color of silver and a 20-pixel left margin, and it contains inline elements with classes of"
+        LayoutInline {SPAN} at (0,0) size 67x19 [border: none (10px double #800080)]
+          LayoutText {#text} at (10,20) size 57x19
+            text run at (10,20) width 57: "class one"
+        LayoutText {#text} at (67,20) size 389x19
+          text run at (67,20) width 389: ", which should have a 10-pixel purple double left border; and "
+        LayoutInline {SPAN} at (0,0) size 59x19 [border: none (1px solid #800080)]
+          LayoutText {#text} at (457,20) size 58x19
+            text run at (457,20) width 58: "class two"
+        LayoutText {#text} at (515,20) size 759x39
+          text run at (515,20) width 244: ", which should have a thin solid purple"
+          text run at (0,40) width 73: "left border. "
+          text run at (72,40) width 430: "The line-height of the parent element should not change on any line."
+      LayoutTable {TABLE} at (0,207) size 784x98 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x96
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x68
+            LayoutTableCell {TD} at (0,48) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x68 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (24,4) size 742x60 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 696x39
+                  text run at (0,0) width 696: "This paragraph has a background color of silver and a 20-pixel left margin, and it contains inline elements with"
+                  text run at (0,20) width 64: "classes of "
+                LayoutInline {SPAN} at (0,0) size 67x19 [border: none (10px double #800080)]
+                  LayoutText {#text} at (74,20) size 57x19
+                    text run at (74,20) width 57: "class one"
+                LayoutText {#text} at (131,20) size 389x19
+                  text run at (131,20) width 389: ", which should have a 10-pixel purple double left border; and "
+                LayoutInline {SPAN} at (0,0) size 59x19 [border: none (1px solid #800080)]
+                  LayoutText {#text} at (521,20) size 58x19
+                    text run at (521,20) width 58: "class two"
+                LayoutText {#text} at (579,20) size 717x39
+                  text run at (579,20) width 138: ", which should have a"
+                  text run at (0,40) width 179: "thin solid purple left border. "
+                  text run at (178,40) width 430: "The line-height of the parent element should not change on any line."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_left_width-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_left_width-expected.txt
new file mode 100644
index 0000000..c86cbcfa
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_left_width-expected.txt
@@ -0,0 +1,104 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 873
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x873 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x873
+    LayoutBlockFlow {BODY} at (8,8) size 769x857 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 448x96
+          text run at (0,0) width 440: ".zero {background-color: silver; border-left-width: 0;}"
+          text run at (440,0) width 0: " "
+          text run at (0,16) width 416: ".one {border-left-width: 50px; border-style: solid;}"
+          text run at (416,16) width 0: " "
+          text run at (0,32) width 424: ".two {border-left-width: thick; border-style: solid;}"
+          text run at (424,32) width 0: " "
+          text run at (0,48) width 448: ".three {border-left-width: medium; border-style: solid;}"
+          text run at (448,48) width 0: " "
+          text run at (0,64) width 424: ".four {border-left-width: thin; border-style: solid;}"
+          text run at (424,64) width 0: " "
+          text run at (0,80) width 256: ".five {border-left-width: 25px;}"
+          text run at (256,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20
+        LayoutText {#text} at (0,0) size 157x19
+          text run at (0,0) width 157: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (157,3) size 96x16
+            text run at (157,3) width 96: "border-style"
+        LayoutText {#text} at (253,0) size 89x19
+          text run at (253,0) width 89: " is supported.)"
+      LayoutBlockFlow {P} at (0,199) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,235) size 769x46 [border: (3px solid #000000) (50px solid #000000)]
+        LayoutText {#text} at (50,3) size 713x39
+          text run at (50,3) width 713: "This element should have a left border width of 50 pixels, which will be more obvious if the element is more than"
+          text run at (50,23) width 86: "one line long."
+      LayoutBlockFlow {P} at (0,297) size 769x26 [border: (3px solid #000000) (5px solid #000000)]
+        LayoutText {#text} at (5,3) size 760x19
+          text run at (5,3) width 760: "This element should have a thick left border width, which will be more obvious if the element is more than one line long."
+      LayoutBlockFlow {P} at (0,339) size 769x46 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 744x39
+          text run at (3,3) width 744: "This element should have a medium left border width, which will be more obvious if the element is more than one line"
+          text run at (3,23) width 32: "long."
+      LayoutBlockFlow {P} at (0,401) size 769x26 [border: (3px solid #000000) (1px solid #000000)]
+        LayoutText {#text} at (1,3) size 753x19
+          text run at (1,3) width 753: "This element should have a thin left border width, which will be more obvious if the element is more than one line long."
+      LayoutBlockFlow {P} at (0,443) size 769x20
+        LayoutText {#text} at (0,0) size 513x19
+          text run at (0,0) width 513: "This element should have no border and no extra \"padding\" on its left side, as no "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (513,3) size 96x16
+            text run at (513,3) width 96: "border-style"
+        LayoutText {#text} at (609,0) size 54x19
+          text run at (609,0) width 54: " was set."
+      LayoutTable {TABLE} at (0,479) size 769x378 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x376
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x348
+            LayoutTableCell {TD} at (0,188) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x348 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 157x19
+                  text run at (0,0) width 157: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (157,3) size 96x16
+                    text run at (157,3) width 96: "border-style"
+                LayoutText {#text} at (253,0) size 89x19
+                  text run at (253,0) width 89: " is supported.)"
+              LayoutBlockFlow {P} at (4,40) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,76) size 747x46 [border: (3px solid #000000) (50px solid #000000)]
+                LayoutText {#text} at (50,3) size 682x39
+                  text run at (50,3) width 682: "This element should have a left border width of 50 pixels, which will be more obvious if the element is more"
+                  text run at (50,23) width 117: "than one line long."
+              LayoutBlockFlow {P} at (4,138) size 747x46 [border: (3px solid #000000) (5px solid #000000)]
+                LayoutText {#text} at (5,3) size 724x39
+                  text run at (5,3) width 724: "This element should have a thick left border width, which will be more obvious if the element is more than one line"
+                  text run at (5,23) width 32: "long."
+              LayoutBlockFlow {P} at (4,200) size 747x46 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 717x39
+                  text run at (3,3) width 717: "This element should have a medium left border width, which will be more obvious if the element is more than one"
+                  text run at (3,23) width 59: "line long."
+              LayoutBlockFlow {P} at (4,262) size 747x46 [border: (3px solid #000000) (1px solid #000000)]
+                LayoutText {#text} at (1,3) size 717x39
+                  text run at (1,3) width 717: "This element should have a thin left border width, which will be more obvious if the element is more than one line"
+                  text run at (1,23) width 32: "long."
+              LayoutBlockFlow {P} at (4,324) size 747x20
+                LayoutText {#text} at (0,0) size 513x19
+                  text run at (0,0) width 513: "This element should have no border and no extra \"padding\" on its left side, as no "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (513,3) size 96x16
+                    text run at (513,3) width 96: "border-style"
+                LayoutText {#text} at (609,0) size 54x19
+                  text run at (609,0) width 54: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_left_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_left_width_inline-expected.txt
new file mode 100644
index 0000000..289bb38
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_left_width_inline-expected.txt
@@ -0,0 +1,98 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 416x48
+          text run at (0,0) width 416: ".one {border-left-width: 25px; border-style: solid;}"
+          text run at (416,0) width 0: " "
+          text run at (0,16) width 416: ".two {border-left-width: thin; border-style: solid;}"
+          text run at (416,16) width 0: " "
+          text run at (0,32) width 264: ".three {border-left-width: 25px;}"
+          text run at (264,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x86 [border: (3px solid #000000) (25px solid #000000)]
+        LayoutText {#text} at (25,3) size 172x19
+          text run at (25,3) width 172: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 24x16
+          LayoutText {#text} at (197,6) size 24x16
+            text run at (197,6) width 24: "one"
+        LayoutText {#text} at (221,3) size 162x19
+          text run at (221,3) width 8: ". "
+          text run at (229,3) width 154: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 172x25 [border: (3px solid #000000) (1px solid #000000)]
+          LayoutText {#text} at (383,3) size 144x19
+            text run at (383,3) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (526,6) size 25x16
+              text run at (526,6) width 25: "two"
+        LayoutText {#text} at (553,3) size 749x39
+          text run at (553,3) width 221: ", which should result in a thin solid"
+          text run at (25,23) width 181: "border on the left side of the "
+        LayoutInline {STRONG} at (0,0) size 27x19
+          LayoutText {#text} at (206,23) size 27x19
+            text run at (206,23) width 27: "first"
+        LayoutText {#text} at (233,23) size 750x39
+          text run at (233,23) width 505: " box in the inline element (and the UA's default border on the other three sides). "
+          text run at (738,23) width 37: "There"
+          text run at (25,43) width 62: "is also an "
+        LayoutInline {SPAN} at (0,0) size 183x19
+          LayoutText {#text} at (87,43) size 143x19
+            text run at (87,43) width 143: "inline element of class "
+          LayoutInline {TT} at (0,0) size 40x16
+            LayoutText {#text} at (230,46) size 40x16
+              text run at (230,46) width 40: "three"
+        LayoutText {#text} at (270,43) size 727x39
+          text run at (270,43) width 482: ", which should have no left border width or visible border because no border"
+          text run at (25,63) width 83: "style was set."
+      LayoutTable {TABLE} at (0,217) size 784x124 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x122
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x94
+            LayoutTableCell {TD} at (0,61) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x94 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x86 [border: (3px solid #000000) (25px solid #000000)]
+                LayoutText {#text} at (25,3) size 172x19
+                  text run at (25,3) width 172: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 24x16
+                  LayoutText {#text} at (197,6) size 24x16
+                    text run at (197,6) width 24: "one"
+                LayoutText {#text} at (221,3) size 162x19
+                  text run at (221,3) width 8: ". "
+                  text run at (229,3) width 154: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 172x25 [border: (3px solid #000000) (1px solid #000000)]
+                  LayoutText {#text} at (383,3) size 144x19
+                    text run at (383,3) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (526,6) size 25x16
+                      text run at (526,6) width 25: "two"
+                LayoutText {#text} at (553,3) size 715x39
+                  text run at (553,3) width 187: ", which should result in a thin"
+                  text run at (25,23) width 215: "solid border on the left side of the "
+                LayoutInline {STRONG} at (0,0) size 27x19
+                  LayoutText {#text} at (240,23) size 27x19
+                    text run at (240,23) width 27: "first"
+                LayoutText {#text} at (267,23) size 699x39
+                  text run at (267,23) width 457: " box in the inline element (and the UA's default border on the other three"
+                  text run at (25,43) width 44: "sides). "
+                  text run at (69,43) width 103: "There is also an "
+                LayoutInline {SPAN} at (0,0) size 183x19
+                  LayoutText {#text} at (172,43) size 143x19
+                    text run at (172,43) width 143: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 40x16
+                    LayoutText {#text} at (315,46) size 40x16
+                      text run at (315,46) width 40: "three"
+                LayoutText {#text} at (355,43) size 693x39
+                  text run at (355,43) width 363: ", which should have no left border width or visible border"
+                  text run at (25,63) width 202: "because no border style was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_right-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_right-expected.txt
new file mode 100644
index 0000000..550508a9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_right-expected.txt
@@ -0,0 +1,63 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 764x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 320x64
+          text run at (0,0) width 184: "P {margin-right: 20px;}"
+          text run at (184,0) width 0: " "
+          text run at (0,16) width 320: ".one {border-right: purple double 10px;}"
+          text run at (320,16) width 0: " "
+          text run at (0,32) width 312: ".two {border-right: purple thin solid;}"
+          text run at (312,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 764x60 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 752x39
+          text run at (0,0) width 752: "This paragraph has a background color of silver and a 20-pixel right margin, and it contains inline elements with classes"
+          text run at (0,20) width 17: "of "
+        LayoutInline {SPAN} at (0,0) size 67x19 [border: none (10px double #800080) none]
+          LayoutText {#text} at (17,20) size 57x19
+            text run at (17,20) width 57: "class one"
+        LayoutText {#text} at (84,20) size 398x19
+          text run at (84,20) width 398: ", which should have a 10-pixel purple double right border; and "
+        LayoutInline {SPAN} at (0,0) size 59x19 [border: none (1px solid #800080) none]
+          LayoutText {#text} at (482,20) size 58x19
+            text run at (482,20) width 58: "class two"
+        LayoutText {#text} at (541,20) size 741x39
+          text run at (541,20) width 200: ", which should have a thin solid"
+          text run at (0,40) width 126: "purple right border. "
+          text run at (125,40) width 430: "The line-height of the parent element should not change on any line."
+      LayoutTable {TABLE} at (0,207) size 784x98 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x96
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x68
+            LayoutTableCell {TD} at (0,48) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x68 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 742x60 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 705x39
+                  text run at (0,0) width 705: "This paragraph has a background color of silver and a 20-pixel right margin, and it contains inline elements with"
+                  text run at (0,20) width 64: "classes of "
+                LayoutInline {SPAN} at (0,0) size 67x19 [border: none (10px double #800080) none]
+                  LayoutText {#text} at (64,20) size 57x19
+                    text run at (64,20) width 57: "class one"
+                LayoutText {#text} at (131,20) size 398x19
+                  text run at (131,20) width 398: ", which should have a 10-pixel purple double right border; and "
+                LayoutInline {SPAN} at (0,0) size 59x19 [border: none (1px solid #800080) none]
+                  LayoutText {#text} at (529,20) size 58x19
+                    text run at (529,20) width 58: "class two"
+                LayoutText {#text} at (588,20) size 726x39
+                  text run at (588,20) width 138: ", which should have a"
+                  text run at (0,40) width 188: "thin solid purple right border. "
+                  text run at (187,40) width 430: "The line-height of the parent element should not change on any line."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_right_inline-expected.txt
new file mode 100644
index 0000000..e6faca3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_right_inline-expected.txt
@@ -0,0 +1,167 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1163
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1163 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1163
+    LayoutBlockFlow {BODY} at (8,8) size 769x1147 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 749x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x112
+        LayoutText {#text} at (0,0) size 352x112
+          text run at (0,0) width 184: "P {margin-right: 20px;}"
+          text run at (184,0) width 0: " "
+          text run at (0,16) width 320: ".one {border-right: purple double 10px;}"
+          text run at (320,16) width 0: " "
+          text run at (0,32) width 312: ".two {border-right: purple thin solid;}"
+          text run at (312,32) width 0: " "
+          text run at (0,48) width 344: ".threea {border-right: black medium solid;}"
+          text run at (344,48) width 0: " "
+          text run at (0,64) width 352: ".threeb {border-right: purple medium solid;}"
+          text run at (352,64) width 0: " "
+          text run at (0,80) width 336: ".threec {border-right: blue medium solid;}"
+          text run at (336,80) width 0: " "
+          text run at (0,96) width 280: "TD {border-right: green 2px solid;}"
+          text run at (280,96) width 0: " "
+      LayoutBlockFlow {P} at (0,179) size 749x40
+        LayoutText {#text} at (0,0) size 716x39
+          text run at (0,0) width 643: "Note that all table cells on this page should have a two-pixel solid green border along their right sides. "
+          text run at (643,0) width 73: "This border"
+          text run at (0,20) width 365: "applies only to the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (0,235) size 749x20 [border: none (10px double #800080) none]
+        LayoutText {#text} at (0,0) size 423x19
+          text run at (0,0) width 423: "This paragraph should have a purple, double, 10-pixel right border."
+      LayoutBlockFlow {P} at (0,271) size 749x20 [border: none (1px solid #800080) none]
+        LayoutText {#text} at (0,0) size 340x19
+          text run at (0,0) width 340: "This paragraph should have a thin purple right border."
+      LayoutTable {TABLE} at (0,307) size 769x115 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x113
+          LayoutTableRow {TR} at (0,5) size 767x44
+            LayoutTableCell {TD} at (5,5) size 757x44 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (2,2) size 744x39
+                text run at (2,2) width 438: "Every cell in this table should have a 2-pixel solid green right border. "
+                text run at (439,2) width 307: "This is also true of the table-testing section in the"
+                text run at (2,22) width 175: "second half of the test page."
+          LayoutTableRow {TR} at (0,54) size 767x54
+            LayoutTableCell {TD} at (5,69) size 193x24 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (2,2) size 53x19
+                text run at (2,2) width 53: "Cell one"
+            LayoutTableCell {TD} at (203,54) size 559x54 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (2,2) size 554x20
+                LayoutText {#text} at (0,0) size 54x19
+                  text run at (0,0) width 54: "Cell two"
+              LayoutTable {TABLE} at (2,22) size 162x30 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 160x28
+                  LayoutTableRow {TR} at (0,2) size 160x24
+                    LayoutTableCell {TD} at (2,2) size 156x24 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,2) size 151x19
+                        text run at (2,2) width 151: "Nested single-cell table!"
+      LayoutBlockFlow {UL} at (0,438) size 769x180
+        LayoutListItem {LI} at (40,0) size 729x80 [border: none (3px solid #000000) none]
+          LayoutBlockFlow (anonymous) at (0,0) size 726x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 118x19
+              text run at (0,0) width 118: "This is a list item..."
+          LayoutBlockFlow {UL} at (0,20) size 726x60
+            LayoutListItem {LI} at (40,0) size 686x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 73x19
+                text run at (0,0) width 73: "...and this..."
+            LayoutListItem {LI} at (40,20) size 686x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 115x19
+                text run at (0,0) width 115: "...is a second list..."
+            LayoutListItem {LI} at (40,40) size 686x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 176x19
+                text run at (0,0) width 176: "...nested within the list item."
+        LayoutListItem {LI} at (40,80) size 729x20 [border: none (3px solid #800080) none]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 158x19
+            text run at (0,0) width 158: "This is a second list item."
+        LayoutListItem {LI} at (40,100) size 729x80 [border: none (3px solid #0000FF) none]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 707x79
+            text run at (0,0) width 700: "Each list item in this 'parent' list should have a medium-width border along its right side, in each of three colors."
+            text run at (0,20) width 704: "The first item's border should travel the entire height the nested list (to end near the baseline of the line \"...nested"
+            text run at (0,40) width 538: "within the list item.\"), even though the nested list does not have any border styles set. "
+            text run at (538,40) width 169: "The borders should line up"
+            text run at (0,60) width 620: "together at the right edge of the document's body, as each list element has a default width of 100%."
+      LayoutTable {TABLE} at (0,634) size 769x513 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x511
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x483
+            LayoutTableCell {TD} at (0,255) size 13x28 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (13,28) size 754x483 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 725x40
+                LayoutText {#text} at (0,0) size 716x39
+                  text run at (0,0) width 643: "Note that all table cells on this page should have a two-pixel solid green border along their right sides. "
+                  text run at (643,0) width 73: "This border"
+                  text run at (0,20) width 365: "applies only to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (4,60) size 725x20 [border: none (10px double #800080) none]
+                LayoutText {#text} at (0,0) size 423x19
+                  text run at (0,0) width 423: "This paragraph should have a purple, double, 10-pixel right border."
+              LayoutBlockFlow {P} at (4,96) size 725x20 [border: none (1px solid #800080) none]
+                LayoutText {#text} at (0,0) size 340x19
+                  text run at (0,0) width 340: "This paragraph should have a thin purple right border."
+              LayoutTable {TABLE} at (4,132) size 745x115 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 743x113
+                  LayoutTableRow {TR} at (0,5) size 743x44
+                    LayoutTableCell {TD} at (5,5) size 733x44 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (2,2) size 721x39
+                        text run at (2,2) width 438: "Every cell in this table should have a 2-pixel solid green right border. "
+                        text run at (439,2) width 284: "This is also true of the table-testing section in"
+                        text run at (2,22) width 198: "the second half of the test page."
+                  LayoutTableRow {TR} at (0,54) size 743x54
+                    LayoutTableCell {TD} at (5,69) size 186x24 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,2) size 53x19
+                        text run at (2,2) width 53: "Cell one"
+                    LayoutTableCell {TD} at (196,54) size 542x54 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (2,2) size 537x20
+                        LayoutText {#text} at (0,0) size 54x19
+                          text run at (0,0) width 54: "Cell two"
+                      LayoutTable {TABLE} at (2,22) size 162x30 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 160x28
+                          LayoutTableRow {TR} at (0,2) size 160x24
+                            LayoutTableCell {TD} at (2,2) size 156x24 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (2,2) size 151x19
+                                text run at (2,2) width 151: "Nested single-cell table!"
+              LayoutBlockFlow {UL} at (4,263) size 745x200
+                LayoutListItem {LI} at (40,0) size 705x80 [border: none (3px solid #000000) none]
+                  LayoutBlockFlow (anonymous) at (0,0) size 702x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 118x19
+                      text run at (0,0) width 118: "This is a list item..."
+                  LayoutBlockFlow {UL} at (0,20) size 702x60
+                    LayoutListItem {LI} at (40,0) size 662x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 73x19
+                        text run at (0,0) width 73: "...and this..."
+                    LayoutListItem {LI} at (40,20) size 662x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 115x19
+                        text run at (0,0) width 115: "...is a second list..."
+                    LayoutListItem {LI} at (40,40) size 662x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 176x19
+                        text run at (0,0) width 176: "...nested within the list item."
+                LayoutListItem {LI} at (40,80) size 705x20 [border: none (3px solid #800080) none]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 158x19
+                    text run at (0,0) width 158: "This is a second list item."
+                LayoutListItem {LI} at (40,100) size 705x100 [border: none (3px solid #0000FF) none]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 700x99
+                    text run at (0,0) width 700: "Each list item in this 'parent' list should have a medium-width border along its right side, in each of three colors."
+                    text run at (0,20) width 641: "The first item's border should travel the entire height the nested list (to end near the baseline of the line"
+                    text run at (0,40) width 601: "\"...nested within the list item.\"), even though the nested list does not have any border styles set. "
+                    text run at (601,40) width 76: "The borders"
+                    text run at (0,60) width 668: "should line up together at the right edge of the document's body, as each list element has a default width of"
+                    text run at (0,80) width 41: "100%."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_right_width-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_right_width-expected.txt
new file mode 100644
index 0000000..d2aa7db
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_right_width-expected.txt
@@ -0,0 +1,105 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 893
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x893 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x893
+    LayoutBlockFlow {BODY} at (8,8) size 769x877 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 456x96
+          text run at (0,0) width 448: ".zero {background-color: silver; border-right-width: 0;}"
+          text run at (448,0) width 0: " "
+          text run at (0,16) width 424: ".one {border-right-width: 25px; border-style: solid;}"
+          text run at (424,16) width 0: " "
+          text run at (0,32) width 432: ".two {border-right-width: thick; border-style: solid;}"
+          text run at (432,32) width 0: " "
+          text run at (0,48) width 456: ".three {border-right-width: medium; border-style: solid;}"
+          text run at (456,48) width 0: " "
+          text run at (0,64) width 432: ".four {border-right-width: thin; border-style: solid;}"
+          text run at (432,64) width 0: " "
+          text run at (0,80) width 272: ".five {border-right-width: 100px;}"
+          text run at (272,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20
+        LayoutText {#text} at (0,0) size 157x19
+          text run at (0,0) width 157: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (157,3) size 96x16
+            text run at (157,3) width 96: "border-style"
+        LayoutText {#text} at (253,0) size 89x19
+          text run at (253,0) width 89: " is supported.)"
+      LayoutBlockFlow {P} at (0,199) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,235) size 769x46 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 722x39
+          text run at (3,3) width 722: "This element should have a right border width of 25 pixels, which will be more obvious if the element is more than"
+          text run at (3,23) width 86: "one line long."
+      LayoutBlockFlow {P} at (0,297) size 769x46 [border: (3px solid #000000) (5px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 733x39
+          text run at (3,3) width 733: "This element should have a thick right border width, which will be more obvious if the element is more than one line"
+          text run at (3,23) width 32: "long."
+      LayoutBlockFlow {P} at (0,359) size 769x46 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 753x39
+          text run at (3,3) width 753: "This element should have a medium right border width, which will be more obvious if the element is more than one line"
+          text run at (3,23) width 32: "long."
+      LayoutBlockFlow {P} at (0,421) size 769x26 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 762x19
+          text run at (3,3) width 762: "This element should have a thin right border width, which will be more obvious if the element is more than one line long."
+      LayoutBlockFlow {P} at (0,463) size 769x20
+        LayoutText {#text} at (0,0) size 522x19
+          text run at (0,0) width 522: "This element should have no border and no extra \"padding\" on its right side, as no "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (522,3) size 96x16
+            text run at (522,3) width 96: "border-style"
+        LayoutText {#text} at (618,0) size 54x19
+          text run at (618,0) width 54: " was set."
+      LayoutTable {TABLE} at (0,499) size 769x378 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x376
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x348
+            LayoutTableCell {TD} at (0,188) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x348 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 157x19
+                  text run at (0,0) width 157: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (157,3) size 96x16
+                    text run at (157,3) width 96: "border-style"
+                LayoutText {#text} at (253,0) size 89x19
+                  text run at (253,0) width 89: " is supported.)"
+              LayoutBlockFlow {P} at (4,40) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,76) size 747x46 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 691x39
+                  text run at (3,3) width 691: "This element should have a right border width of 25 pixels, which will be more obvious if the element is more"
+                  text run at (3,23) width 117: "than one line long."
+              LayoutBlockFlow {P} at (4,138) size 747x46 [border: (3px solid #000000) (5px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 733x39
+                  text run at (3,3) width 733: "This element should have a thick right border width, which will be more obvious if the element is more than one line"
+                  text run at (3,23) width 32: "long."
+              LayoutBlockFlow {P} at (4,200) size 747x46 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 726x39
+                  text run at (3,3) width 726: "This element should have a medium right border width, which will be more obvious if the element is more than one"
+                  text run at (3,23) width 59: "line long."
+              LayoutBlockFlow {P} at (4,262) size 747x46 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 726x39
+                  text run at (3,3) width 726: "This element should have a thin right border width, which will be more obvious if the element is more than one line"
+                  text run at (3,23) width 32: "long."
+              LayoutBlockFlow {P} at (4,324) size 747x20
+                LayoutText {#text} at (0,0) size 522x19
+                  text run at (0,0) width 522: "This element should have no border and no extra \"padding\" on its right side, as no "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (522,3) size 96x16
+                    text run at (522,3) width 96: "border-style"
+                LayoutText {#text} at (618,0) size 54x19
+                  text run at (618,0) width 54: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_right_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_right_width_inline-expected.txt
new file mode 100644
index 0000000..bb033458
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_right_width_inline-expected.txt
@@ -0,0 +1,98 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 424x48
+          text run at (0,0) width 424: ".one {border-right-width: 25px; border-style: solid;}"
+          text run at (424,0) width 0: " "
+          text run at (0,16) width 424: ".two {border-right-width: thin; border-style: solid;}"
+          text run at (424,16) width 0: " "
+          text run at (0,32) width 272: ".three {border-right-width: 25px;}"
+          text run at (272,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x86 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 172x19
+          text run at (3,3) width 172: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 24x16
+          LayoutText {#text} at (175,6) size 24x16
+            text run at (175,6) width 24: "one"
+        LayoutText {#text} at (199,3) size 162x19
+          text run at (199,3) width 8: ". "
+          text run at (207,3) width 154: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 172x25 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+          LayoutText {#text} at (363,3) size 144x19
+            text run at (363,3) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (506,6) size 25x16
+              text run at (506,6) width 25: "two"
+        LayoutText {#text} at (531,3) size 749x39
+          text run at (531,3) width 221: ", which should result in a thin solid"
+          text run at (3,23) width 190: "border on the right side of the "
+        LayoutInline {STRONG} at (0,0) size 23x19
+          LayoutText {#text} at (193,23) size 23x19
+            text run at (193,23) width 23: "last"
+        LayoutText {#text} at (216,23) size 756x39
+          text run at (216,23) width 506: " box of the inline element (and the UA's default border on the other three sides). "
+          text run at (722,23) width 37: "There"
+          text run at (3,43) width 62: "is also an "
+        LayoutInline {SPAN} at (0,0) size 183x19
+          LayoutText {#text} at (65,43) size 143x19
+            text run at (65,43) width 143: "inline element of class "
+          LayoutInline {TT} at (0,0) size 40x16
+            LayoutText {#text} at (208,46) size 40x16
+              text run at (208,46) width 40: "three"
+        LayoutText {#text} at (248,43) size 736x39
+          text run at (248,43) width 491: ", which should have no right border width or visible border because no border"
+          text run at (3,63) width 83: "style was set."
+      LayoutTable {TABLE} at (0,217) size 784x124 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x122
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x94
+            LayoutTableCell {TD} at (0,61) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x94 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x86 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 172x19
+                  text run at (3,3) width 172: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 24x16
+                  LayoutText {#text} at (175,6) size 24x16
+                    text run at (175,6) width 24: "one"
+                LayoutText {#text} at (199,3) size 162x19
+                  text run at (199,3) width 8: ". "
+                  text run at (207,3) width 154: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 172x25 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+                  LayoutText {#text} at (363,3) size 144x19
+                    text run at (363,3) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (506,6) size 25x16
+                      text run at (506,6) width 25: "two"
+                LayoutText {#text} at (531,3) size 715x39
+                  text run at (531,3) width 187: ", which should result in a thin"
+                  text run at (3,23) width 224: "solid border on the right side of the "
+                LayoutInline {STRONG} at (0,0) size 23x19
+                  LayoutText {#text} at (227,23) size 23x19
+                    text run at (227,23) width 23: "last"
+                LayoutText {#text} at (250,23) size 705x39
+                  text run at (250,23) width 458: " box of the inline element (and the UA's default border on the other three"
+                  text run at (3,43) width 44: "sides). "
+                  text run at (47,43) width 103: "There is also an "
+                LayoutInline {SPAN} at (0,0) size 183x19
+                  LayoutText {#text} at (150,43) size 143x19
+                    text run at (150,43) width 143: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 40x16
+                    LayoutText {#text} at (293,46) size 40x16
+                      text run at (293,46) width 40: "three"
+                LayoutText {#text} at (333,43) size 702x39
+                  text run at (333,43) width 372: ", which should have no right border width or visible border"
+                  text run at (3,63) width 202: "because no border style was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_style-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_style-expected.txt
new file mode 100644
index 0000000..bfd7463
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_style-expected.txt
@@ -0,0 +1,122 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1369
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1369 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1369
+    LayoutBlockFlow {BODY} at (8,8) size 769x1353 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x192
+        LayoutText {#text} at (0,0) size 632x192
+          text run at (0,0) width 560: ".one {border-style: dotted; border-color: black; border-width: thick;}"
+          text run at (560,0) width 0: " "
+          text run at (0,16) width 560: ".two {border-style: dashed; border-color: black; border-width: thick;}"
+          text run at (560,16) width 0: " "
+          text run at (0,32) width 568: ".three {border-style: solid; border-color: black; border-width: thick;}"
+          text run at (568,32) width 0: " "
+          text run at (0,48) width 568: ".four {border-style: double; border-color: black; border-width: thick;}"
+          text run at (568,48) width 0: " "
+          text run at (0,64) width 568: ".five {border-style: groove; border-color: olive; border-width: thick;}"
+          text run at (568,64) width 0: " "
+          text run at (0,80) width 552: ".six {border-style: ridge; border-color: olive; border-width: thick;}"
+          text run at (552,80) width 0: " "
+          text run at (0,96) width 568: ".seven {border-style: inset; border-color: olive; border-width: thick;}"
+          text run at (568,96) width 0: " "
+          text run at (0,112) width 576: ".eight {border-style: outset; border-color: olive; border-width: thick;}"
+          text run at (576,112) width 0: " "
+          text run at (0,128) width 632: ".nine {border-style: double groove; border-color: purple; border-width: thick;}"
+          text run at (632,128) width 0: " "
+          text run at (0,144) width 368: ".ten {border-style: double groove ridge inset;"
+          text run at (368,144) width 0: " "
+          text run at (0,160) width 368: "   border-color: purple; border-width: thick;}"
+          text run at (368,160) width 0: " "
+          text run at (0,176) width 552: ".eleven {border-style: none; border-color: red; border-width: thick;}"
+          text run at (552,176) width 0: " "
+      LayoutBlockFlow {P} at (0,259) size 769x30 [border: (5px dotted #000000)]
+        LayoutText {#text} at (5,5) size 472x19
+          text run at (5,5) width 472: "This paragraph should have a thick black dotted border all the way around."
+      LayoutBlockFlow {P} at (0,305) size 769x30 [border: (5px dashed #000000)]
+        LayoutText {#text} at (5,5) size 477x19
+          text run at (5,5) width 477: "This paragraph should have a thick black dashed border all the way around."
+      LayoutBlockFlow {P} at (0,351) size 769x30 [border: (5px solid #000000)]
+        LayoutText {#text} at (5,5) size 463x19
+          text run at (5,5) width 463: "This paragraph should have a thick black solid border all the way around."
+      LayoutBlockFlow {P} at (0,397) size 769x30 [border: (5px double #000000)]
+        LayoutText {#text} at (5,5) size 476x19
+          text run at (5,5) width 476: "This paragraph should have a thick black double border all the way around."
+      LayoutBlockFlow {P} at (0,443) size 769x30 [border: (5px groove #808000)]
+        LayoutText {#text} at (5,5) size 474x19
+          text run at (5,5) width 474: "This paragraph should have a thick olive groove border all the way around."
+      LayoutBlockFlow {P} at (0,489) size 769x30 [border: (5px ridge #808000)]
+        LayoutText {#text} at (5,5) size 462x19
+          text run at (5,5) width 462: "This paragraph should have a thick olive ridge border all the way around."
+      LayoutBlockFlow {P} at (0,535) size 769x30 [border: (5px inset #808000)]
+        LayoutText {#text} at (5,5) size 459x19
+          text run at (5,5) width 459: "This paragraph should have a thick olive inset border all the way around."
+      LayoutBlockFlow {P} at (0,581) size 769x30 [border: (5px outset #808000)]
+        LayoutText {#text} at (5,5) size 467x19
+          text run at (5,5) width 467: "This paragraph should have a thick olive outset border all the way around."
+      LayoutBlockFlow {P} at (0,627) size 769x50 [border: (5px double #800080) (5px groove #800080) (5px double #800080) (5px groove #800080)]
+        LayoutText {#text} at (5,5) size 744x39
+          text run at (5,5) width 617: "This paragraph should have thick double top and bottom borders, and thick grooved side borders. "
+          text run at (622,5) width 127: "The color of all four"
+          text run at (5,25) width 204: "sides should be based on purple."
+      LayoutBlockFlow {P} at (0,693) size 769x50 [border: (5px double #800080) (5px groove #800080) (5px ridge #800080) (5px inset #800080)]
+        LayoutText {#text} at (5,5) size 727x39
+          text run at (5,5) width 702: "This paragraph should have, in clockwise order from the top, a double, grooved, ridged, and inset thick border. "
+          text run at (706,5) width 26: "The"
+          text run at (5,25) width 306: "color of all four sides should be based on purple."
+      LayoutBlockFlow {P} at (0,759) size 769x20
+        LayoutText {#text} at (0,0) size 278x19
+          text run at (0,0) width 278: "This paragraph should have no border at all."
+      LayoutTable {TABLE} at (0,795) size 769x558 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x556
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x528
+            LayoutTableCell {TD} at (0,278) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x528 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x30 [border: (5px dotted #000000)]
+                LayoutText {#text} at (5,5) size 472x19
+                  text run at (5,5) width 472: "This paragraph should have a thick black dotted border all the way around."
+              LayoutBlockFlow {P} at (4,50) size 747x30 [border: (5px dashed #000000)]
+                LayoutText {#text} at (5,5) size 477x19
+                  text run at (5,5) width 477: "This paragraph should have a thick black dashed border all the way around."
+              LayoutBlockFlow {P} at (4,96) size 747x30 [border: (5px solid #000000)]
+                LayoutText {#text} at (5,5) size 463x19
+                  text run at (5,5) width 463: "This paragraph should have a thick black solid border all the way around."
+              LayoutBlockFlow {P} at (4,142) size 747x30 [border: (5px double #000000)]
+                LayoutText {#text} at (5,5) size 476x19
+                  text run at (5,5) width 476: "This paragraph should have a thick black double border all the way around."
+              LayoutBlockFlow {P} at (4,188) size 747x30 [border: (5px groove #808000)]
+                LayoutText {#text} at (5,5) size 474x19
+                  text run at (5,5) width 474: "This paragraph should have a thick olive groove border all the way around."
+              LayoutBlockFlow {P} at (4,234) size 747x30 [border: (5px ridge #808000)]
+                LayoutText {#text} at (5,5) size 462x19
+                  text run at (5,5) width 462: "This paragraph should have a thick olive ridge border all the way around."
+              LayoutBlockFlow {P} at (4,280) size 747x30 [border: (5px inset #808000)]
+                LayoutText {#text} at (5,5) size 459x19
+                  text run at (5,5) width 459: "This paragraph should have a thick olive inset border all the way around."
+              LayoutBlockFlow {P} at (4,326) size 747x30 [border: (5px outset #808000)]
+                LayoutText {#text} at (5,5) size 467x19
+                  text run at (5,5) width 467: "This paragraph should have a thick olive outset border all the way around."
+              LayoutBlockFlow {P} at (4,372) size 747x50 [border: (5px double #800080) (5px groove #800080) (5px double #800080) (5px groove #800080)]
+                LayoutText {#text} at (5,5) size 714x39
+                  text run at (5,5) width 617: "This paragraph should have thick double top and bottom borders, and thick grooved side borders. "
+                  text run at (622,5) width 97: "The color of all"
+                  text run at (5,25) width 234: "four sides should be based on purple."
+              LayoutBlockFlow {P} at (4,438) size 747x50 [border: (5px double #800080) (5px groove #800080) (5px ridge #800080) (5px inset #800080)]
+                LayoutText {#text} at (5,5) size 727x39
+                  text run at (5,5) width 702: "This paragraph should have, in clockwise order from the top, a double, grooved, ridged, and inset thick border. "
+                  text run at (706,5) width 26: "The"
+                  text run at (5,25) width 306: "color of all four sides should be based on purple."
+              LayoutBlockFlow {P} at (4,504) size 747x20
+                LayoutText {#text} at (0,0) size 278x19
+                  text run at (0,0) width 278: "This paragraph should have no border at all."
+layer at (8,249) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,241) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_style_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_style_inline-expected.txt
new file mode 100644
index 0000000..8ff3921f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_style_inline-expected.txt
@@ -0,0 +1,71 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 568x48
+          text run at (0,0) width 560: ".one {border-style: dashed; border-color: black; border-width: thick;}"
+          text run at (560,0) width 0: " "
+          text run at (0,16) width 544: ".two {border-style: groove; border-color: red; border-width: thick;}"
+          text run at (544,16) width 0: " "
+          text run at (0,32) width 568: ".three {border-style: none; border-color: purple; border-width: thick;}"
+          text run at (568,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 664x19
+          text run at (0,0) width 664: "This is an unstyled element, save for the background color, and it contains inline elements with classes of "
+        LayoutInline {SPAN} at (0,0) size 68x29 [border: (5px dashed #000000)]
+          LayoutText {#text} at (668,0) size 58x19
+            text run at (668,0) width 58: "class one"
+        LayoutText {#text} at (730,0) size 778x39
+          text run at (730,0) width 48: ", which"
+          text run at (0,20) width 263: "will result in a dashed thick black border; "
+        LayoutInline {SPAN} at (0,0) size 68x29 [border: (5px groove #FF0000)]
+          LayoutText {#text} at (268,20) size 58x19
+            text run at (268,20) width 58: "class two"
+        LayoutText {#text} at (331,20) size 373x19
+          text run at (331,20) width 373: ", which should result in a grooved thick purple border, and "
+        LayoutInline {SPAN} at (0,0) size 66x19
+          LayoutText {#text} at (703,20) size 66x19
+            text run at (703,20) width 66: "class three"
+        LayoutText {#text} at (768,20) size 773x39
+          text run at (768,20) width 5: ","
+          text run at (0,40) width 246: "which should result in no border at all. "
+          text run at (246,40) width 433: "The line-height of the parent element should not change, on any line."
+      LayoutTable {TABLE} at (0,191) size 784x98 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x96
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x68
+            LayoutTableCell {TD} at (0,48) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x68 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 664x19
+                  text run at (0,0) width 664: "This is an unstyled element, save for the background color, and it contains inline elements with classes of "
+                LayoutInline {SPAN} at (0,0) size 68x29 [border: (5px dashed #000000)]
+                  LayoutText {#text} at (668,0) size 58x19
+                    text run at (668,0) width 58: "class one"
+                LayoutText {#text} at (730,0) size 735x39
+                  text run at (730,0) width 5: ","
+                  text run at (0,20) width 306: "which will result in a dashed thick black border; "
+                LayoutInline {SPAN} at (0,0) size 68x29 [border: (5px groove #FF0000)]
+                  LayoutText {#text} at (311,20) size 58x19
+                    text run at (311,20) width 58: "class two"
+                LayoutText {#text} at (374,20) size 369x19
+                  text run at (374,20) width 369: ", which should result in a grooved thick purple border, and"
+                LayoutInline {SPAN} at (0,0) size 65x19
+                  LayoutText {#text} at (0,40) size 65x19
+                    text run at (0,40) width 65: "class three"
+                LayoutText {#text} at (65,40) size 687x19
+                  text run at (65,40) width 254: ", which should result in no border at all. "
+                  text run at (319,40) width 433: "The line-height of the parent element should not change, on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_top-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_top-expected.txt
new file mode 100644
index 0000000..4bcea375
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_top-expected.txt
@@ -0,0 +1,152 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1023
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1023 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1023
+    LayoutBlockFlow {BODY} at (8,8) size 769x1007 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 320x64
+          text run at (0,0) width 304: ".one {border-top: purple double 10px;}"
+          text run at (304,0) width 0: " "
+          text run at (0,16) width 296: ".two {border-top: purple thin solid;}"
+          text run at (296,16) width 0: " "
+          text run at (0,32) width 320: ".three {border-top: black medium solid;}"
+          text run at (320,32) width 0: " "
+          text run at (0,48) width 264: "TD {border-top: green 2px solid;}"
+          text run at (264,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 769x40
+        LayoutText {#text} at (0,0) size 755x39
+          text run at (0,0) width 634: "Note that all table cells on this page should have a two-pixel solid green border along their top sides. "
+          text run at (634,0) width 121: "This border applies"
+          text run at (0,20) width 317: "only to the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (0,187) size 769x30 [border: (10px double #800080) none]
+        LayoutText {#text} at (0,10) size 414x19
+          text run at (0,10) width 414: "This paragraph should have a purple, double, 10-pixel top border."
+      LayoutBlockFlow {P} at (0,233) size 769x21 [border: (1px solid #800080) none]
+        LayoutText {#text} at (0,1) size 331x19
+          text run at (0,1) width 331: "This paragraph should have a thin purple top border."
+      LayoutTable {TABLE} at (0,270) size 769x118 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x116
+          LayoutTableRow {TR} at (0,5) size 767x45
+            LayoutTableCell {TD} at (5,5) size 757x45 [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (2,3) size 735x39
+                text run at (2,3) width 429: "Every cell in this table should have a 2-pixel solid green top border. "
+                text run at (430,3) width 307: "This is also true of the table-testing section in the"
+                text run at (2,23) width 175: "second half of the test page."
+          LayoutTableRow {TR} at (0,55) size 767x56
+            LayoutTableCell {TD} at (5,70) size 192x25 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (2,3) size 53x19
+                text run at (2,3) width 53: "Cell one"
+            LayoutTableCell {TD} at (202,55) size 560x56 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (2,3) size 556x20
+                LayoutText {#text} at (0,0) size 54x19
+                  text run at (0,0) width 54: "Cell two"
+              LayoutTable {TABLE} at (2,23) size 161x31 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 159x29
+                  LayoutTableRow {TR} at (0,2) size 159x25
+                    LayoutTableCell {TD} at (2,2) size 155x25 [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,3) size 151x19
+                        text run at (2,3) width 151: "Nested single-cell table!"
+      LayoutBlockFlow {UL} at (0,404) size 769x129
+        LayoutListItem {LI} at (40,0) size 729x83 [border: (3px solid #000000) none]
+          LayoutBlockFlow (anonymous) at (0,3) size 729x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 118x19
+              text run at (0,0) width 118: "This is a list item..."
+          LayoutBlockFlow {UL} at (0,23) size 729x60
+            LayoutListItem {LI} at (40,0) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 73x19
+                text run at (0,0) width 73: "...and this..."
+            LayoutListItem {LI} at (40,20) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 115x19
+                text run at (0,0) width 115: "...is a second list..."
+            LayoutListItem {LI} at (40,40) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 176x19
+                text run at (0,0) width 176: "...nested within the list item."
+        LayoutListItem {LI} at (40,83) size 729x23 [border: (3px solid #000000) none]
+          LayoutListMarker (anonymous) at (-18,3) size 7x19: bullet
+          LayoutText {#text} at (0,3) size 158x19
+            text run at (0,3) width 158: "This is a second list item."
+        LayoutListItem {LI} at (40,106) size 729x23 [border: (3px solid #000000) none]
+          LayoutListMarker (anonymous) at (-18,3) size 7x19: bullet
+          LayoutText {#text} at (0,3) size 480x19
+            text run at (0,3) width 480: "Each list item in this list should have a medium-width black border at its top."
+      LayoutTable {TABLE} at (0,549) size 769x458 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x456
+          LayoutTableRow {TR} at (0,0) size 767x29
+            LayoutTableCell {TD} at (0,0) size 767x29 [bgcolor=#C0C0C0] [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,5) size 161x19
+                  text run at (4,5) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,29) size 767x427
+            LayoutTableCell {TD} at (0,228) size 12x29 [bgcolor=#C0C0C0] [border: (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,5) size 4x19
+                text run at (4,5) width 4: " "
+            LayoutTableCell {TD} at (12,29) size 755x427 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,5) size 747x40
+                LayoutText {#text} at (0,0) size 707x39
+                  text run at (0,0) width 634: "Note that all table cells on this page should have a two-pixel solid green border along their top sides. "
+                  text run at (634,0) width 73: "This border"
+                  text run at (0,20) width 365: "applies only to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (4,61) size 747x30 [border: (10px double #800080) none]
+                LayoutText {#text} at (0,10) size 414x19
+                  text run at (0,10) width 414: "This paragraph should have a purple, double, 10-pixel top border."
+              LayoutBlockFlow {P} at (4,107) size 747x21 [border: (1px solid #800080) none]
+                LayoutText {#text} at (0,1) size 331x19
+                  text run at (0,1) width 331: "This paragraph should have a thin purple top border."
+              LayoutTable {TABLE} at (4,144) size 747x118 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 745x116
+                  LayoutTableRow {TR} at (0,5) size 745x45
+                    LayoutTableCell {TD} at (5,5) size 735x45 [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (2,3) size 712x39
+                        text run at (2,3) width 429: "Every cell in this table should have a 2-pixel solid green top border. "
+                        text run at (430,3) width 284: "This is also true of the table-testing section in"
+                        text run at (2,23) width 198: "the second half of the test page."
+                  LayoutTableRow {TR} at (0,55) size 745x56
+                    LayoutTableCell {TD} at (5,70) size 187x25 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,3) size 53x19
+                        text run at (2,3) width 53: "Cell one"
+                    LayoutTableCell {TD} at (197,55) size 543x56 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (2,3) size 539x20
+                        LayoutText {#text} at (0,0) size 54x19
+                          text run at (0,0) width 54: "Cell two"
+                      LayoutTable {TABLE} at (2,23) size 161x31 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 159x29
+                          LayoutTableRow {TR} at (0,2) size 159x25
+                            LayoutTableCell {TD} at (2,2) size 155x25 [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (2,3) size 151x19
+                                text run at (2,3) width 151: "Nested single-cell table!"
+              LayoutBlockFlow {UL} at (4,278) size 747x129
+                LayoutListItem {LI} at (40,0) size 707x83 [border: (3px solid #000000) none]
+                  LayoutBlockFlow (anonymous) at (0,3) size 707x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 118x19
+                      text run at (0,0) width 118: "This is a list item..."
+                  LayoutBlockFlow {UL} at (0,23) size 707x60
+                    LayoutListItem {LI} at (40,0) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 73x19
+                        text run at (0,0) width 73: "...and this..."
+                    LayoutListItem {LI} at (40,20) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 115x19
+                        text run at (0,0) width 115: "...is a second list..."
+                    LayoutListItem {LI} at (40,40) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 176x19
+                        text run at (0,0) width 176: "...nested within the list item."
+                LayoutListItem {LI} at (40,83) size 707x23 [border: (3px solid #000000) none]
+                  LayoutListMarker (anonymous) at (-18,3) size 7x19: bullet
+                  LayoutText {#text} at (0,3) size 158x19
+                    text run at (0,3) width 158: "This is a second list item."
+                LayoutListItem {LI} at (40,106) size 707x23 [border: (3px solid #000000) none]
+                  LayoutListMarker (anonymous) at (-18,3) size 7x19: bullet
+                  LayoutText {#text} at (0,3) size 480x19
+                    text run at (0,3) width 480: "Each list item in this list should have a medium-width black border at its top."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_top_inline-expected.txt
new file mode 100644
index 0000000..65b75a3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_top_inline-expected.txt
@@ -0,0 +1,60 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 304x48
+          text run at (0,0) width 304: ".one {border-top: purple double 10px;}"
+          text run at (304,0) width 0: " "
+          text run at (0,16) width 296: ".two {border-top: purple thin solid;}"
+          text run at (296,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 666x19
+          text run at (0,0) width 666: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
+        LayoutInline {SPAN} at (0,0) size 58x29 [border: (10px double #800080) none]
+          LayoutText {#text} at (665,0) size 58x19
+            text run at (665,0) width 58: "class one"
+        LayoutText {#text} at (722,0) size 770x39
+          text run at (722,0) width 48: ", which"
+          text run at (0,20) width 338: "should have a 10-pixel purple double top border; and "
+        LayoutInline {SPAN} at (0,0) size 58x20 [border: (1px solid #800080) none]
+          LayoutText {#text} at (338,20) size 58x19
+            text run at (338,20) width 58: "class two"
+        LayoutText {#text} at (396,20) size 774x39
+          text run at (396,20) width 321: ", which should have a thin solid purple top border. "
+          text run at (716,20) width 58: "The line-"
+          text run at (0,40) width 372: "height of the parent element should not change on any line."
+      LayoutTable {TABLE} at (0,191) size 784x98 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x96
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x68
+            LayoutTableCell {TD} at (0,48) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x68 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 666x19
+                  text run at (0,0) width 666: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
+                LayoutInline {SPAN} at (0,0) size 58x29 [border: (10px double #800080) none]
+                  LayoutText {#text} at (665,0) size 58x19
+                    text run at (665,0) width 58: "class one"
+                LayoutText {#text} at (722,0) size 727x39
+                  text run at (722,0) width 5: ","
+                  text run at (0,20) width 381: "which should have a 10-pixel purple double top border; and "
+                LayoutInline {SPAN} at (0,0) size 58x20 [border: (1px solid #800080) none]
+                  LayoutText {#text} at (381,20) size 58x19
+                    text run at (381,20) width 58: "class two"
+                LayoutText {#text} at (439,20) size 756x39
+                  text run at (439,20) width 317: ", which should have a thin solid purple top border."
+                  text run at (0,40) width 429: "The line-height of the parent element should not change on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_top_width-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_top_width-expected.txt
new file mode 100644
index 0000000..6b05407
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_top_width-expected.txt
@@ -0,0 +1,98 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 797
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x797 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x797
+    LayoutBlockFlow {BODY} at (8,8) size 769x781 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 440x96
+          text run at (0,0) width 432: ".zero {background-color: silver; border-top-width: 0;}"
+          text run at (432,0) width 0: " "
+          text run at (0,16) width 408: ".one {border-top-width: 25px; border-style: solid;}"
+          text run at (408,16) width 0: " "
+          text run at (0,32) width 416: ".two {border-top-width: thick; border-style: solid;}"
+          text run at (416,32) width 0: " "
+          text run at (0,48) width 440: ".three {border-top-width: medium; border-style: solid;}"
+          text run at (440,48) width 0: " "
+          text run at (0,64) width 416: ".four {border-top-width: thin; border-style: solid;}"
+          text run at (416,64) width 0: " "
+          text run at (0,80) width 248: ".five {border-top-width: 25px;}"
+          text run at (248,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20
+        LayoutText {#text} at (0,0) size 157x19
+          text run at (0,0) width 157: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (157,3) size 96x16
+            text run at (157,3) width 96: "border-style"
+        LayoutText {#text} at (253,0) size 89x19
+          text run at (253,0) width 89: " is supported.)"
+      LayoutBlockFlow {P} at (0,199) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,235) size 769x48 [border: (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,25) size 377x19
+          text run at (3,25) width 377: "This paragraph should have a top border width of 25 pixels."
+      LayoutBlockFlow {P} at (0,299) size 769x28 [border: (5px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,5) size 334x19
+          text run at (3,5) width 334: "This paragraph should have a thick top border width."
+      LayoutBlockFlow {P} at (0,343) size 769x26 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 354x19
+          text run at (3,3) width 354: "This paragraph should have a medium top border width."
+      LayoutBlockFlow {P} at (0,385) size 769x24 [border: (1px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,1) size 327x19
+          text run at (3,1) width 327: "This paragraph should have a thin top border width."
+      LayoutBlockFlow {P} at (0,425) size 769x20
+        LayoutText {#text} at (0,0) size 527x19
+          text run at (0,0) width 527: "This paragraph should have no border and no extra \"padding\" on its top side, as no "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (527,3) size 96x16
+            text run at (527,3) width 96: "border-style"
+        LayoutText {#text} at (623,0) size 54x19
+          text run at (623,0) width 54: " was set."
+      LayoutTable {TABLE} at (0,461) size 699x320 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 697x318
+          LayoutTableRow {TR} at (0,0) size 697x28
+            LayoutTableCell {TD} at (0,0) size 697x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 697x290
+            LayoutTableCell {TD} at (0,159) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 685x290 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 677x20
+                LayoutText {#text} at (0,0) size 157x19
+                  text run at (0,0) width 157: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (157,3) size 96x16
+                    text run at (157,3) width 96: "border-style"
+                LayoutText {#text} at (253,0) size 89x19
+                  text run at (253,0) width 89: " is supported.)"
+              LayoutBlockFlow {P} at (4,40) size 677x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,76) size 677x48 [border: (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,25) size 377x19
+                  text run at (3,25) width 377: "This paragraph should have a top border width of 25 pixels."
+              LayoutBlockFlow {P} at (4,140) size 677x28 [border: (5px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,5) size 334x19
+                  text run at (3,5) width 334: "This paragraph should have a thick top border width."
+              LayoutBlockFlow {P} at (4,184) size 677x26 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 354x19
+                  text run at (3,3) width 354: "This paragraph should have a medium top border width."
+              LayoutBlockFlow {P} at (4,226) size 677x24 [border: (1px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,1) size 327x19
+                  text run at (3,1) width 327: "This paragraph should have a thin top border width."
+              LayoutBlockFlow {P} at (4,266) size 677x20
+                LayoutText {#text} at (0,0) size 527x19
+                  text run at (0,0) width 527: "This paragraph should have no border and no extra \"padding\" on its top side, as no "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (527,3) size 96x16
+                    text run at (527,3) width 96: "border-style"
+                LayoutText {#text} at (623,0) size 54x19
+                  text run at (623,0) width 54: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_top_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_top_width_inline-expected.txt
new file mode 100644
index 0000000..62c8bdd4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_top_width_inline-expected.txt
@@ -0,0 +1,87 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 408x48
+          text run at (0,0) width 408: ".one {border-top-width: 25px; border-style: solid;}"
+          text run at (408,0) width 0: " "
+          text run at (0,16) width 408: ".two {border-top-width: thin; border-style: solid;}"
+          text run at (408,16) width 0: " "
+          text run at (0,32) width 256: ".three {border-top-width: 25px;}"
+          text run at (256,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x88 [border: (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,25) size 172x19
+          text run at (3,25) width 172: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 24x16
+          LayoutText {#text} at (175,28) size 24x16
+            text run at (175,28) width 24: "one"
+        LayoutText {#text} at (199,25) size 162x19
+          text run at (199,25) width 8: ". "
+          text run at (207,25) width 154: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 174x23 [border: (1px solid #000000) (3px solid #000000)]
+          LayoutText {#text} at (363,25) size 144x19
+            text run at (363,25) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (506,28) size 25x16
+              text run at (506,28) width 25: "two"
+        LayoutText {#text} at (533,25) size 772x59
+          text run at (533,25) width 221: ", which should result in a thin solid"
+          text run at (3,45) width 692: "border on the top side of each box in the inline element (and the UA's default border on the other three sides). "
+          text run at (695,45) width 80: "There is also"
+          text run at (3,65) width 19: "an "
+        LayoutInline {SPAN} at (0,0) size 183x19
+          LayoutText {#text} at (22,65) size 143x19
+            text run at (22,65) width 143: "inline element of class "
+          LayoutInline {TT} at (0,0) size 40x16
+            LayoutText {#text} at (165,68) size 40x16
+              text run at (165,68) width 40: "three"
+        LayoutText {#text} at (205,65) size 569x19
+          text run at (205,65) width 569: ", which should have no top border width or visible border because no border style was set."
+      LayoutTable {TABLE} at (0,219) size 784x146 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x144
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x116
+            LayoutTableCell {TD} at (0,72) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x116 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x108 [border: (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,25) size 172x19
+                  text run at (3,25) width 172: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 24x16
+                  LayoutText {#text} at (175,28) size 24x16
+                    text run at (175,28) width 24: "one"
+                LayoutText {#text} at (199,25) size 162x19
+                  text run at (199,25) width 8: ". "
+                  text run at (207,25) width 154: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 174x23 [border: (1px solid #000000) (3px solid #000000)]
+                  LayoutText {#text} at (363,25) size 144x19
+                    text run at (363,25) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (506,28) size 25x16
+                      text run at (506,28) width 25: "two"
+                LayoutText {#text} at (533,25) size 751x59
+                  text run at (533,25) width 221: ", which should result in a thin solid"
+                  text run at (3,45) width 692: "border on the top side of each box in the inline element (and the UA's default border on the other three sides). "
+                  text run at (695,45) width 51: "There is"
+                  text run at (3,65) width 48: "also an "
+                LayoutInline {SPAN} at (0,0) size 183x19
+                  LayoutText {#text} at (51,65) size 143x19
+                    text run at (51,65) width 143: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 40x16
+                    LayoutText {#text} at (194,68) size 40x16
+                      text run at (194,68) width 40: "three"
+                LayoutText {#text} at (234,65) size 746x39
+                  text run at (234,65) width 515: ", which should have no top border width or visible border because no border style"
+                  text run at (3,85) width 50: "was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_width-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_width-expected.txt
new file mode 100644
index 0000000..fda2646
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_width-expected.txt
@@ -0,0 +1,98 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 941
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x941 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x941
+    LayoutBlockFlow {BODY} at (8,8) size 769x925 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 408x96
+          text run at (0,0) width 400: ".zero {background-color: silver; border-width: 0;}"
+          text run at (400,0) width 0: " "
+          text run at (0,16) width 376: ".one {border-width: 50px; border-style: solid;}"
+          text run at (376,16) width 0: " "
+          text run at (0,32) width 384: ".two {border-width: thick; border-style: solid;}"
+          text run at (384,32) width 0: " "
+          text run at (0,48) width 408: ".three {border-width: medium; border-style: solid;}"
+          text run at (408,48) width 0: " "
+          text run at (0,64) width 384: ".four {border-width: thin; border-style: solid;}"
+          text run at (384,64) width 0: " "
+          text run at (0,80) width 216: ".five {border-width: 25px;}"
+          text run at (216,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20
+        LayoutText {#text} at (0,0) size 157x19
+          text run at (0,0) width 157: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (157,3) size 96x16
+            text run at (157,3) width 96: "border-style"
+        LayoutText {#text} at (253,0) size 89x19
+          text run at (253,0) width 89: " is supported.)"
+      LayoutBlockFlow {P} at (0,199) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,235) size 769x120 [border: (50px solid #000000)]
+        LayoutText {#text} at (50,50) size 394x19
+          text run at (50,50) width 394: "This element should have an overall border width of 50 pixels."
+      LayoutBlockFlow {P} at (0,371) size 769x30 [border: (5px solid #000000)]
+        LayoutText {#text} at (5,5) size 343x19
+          text run at (5,5) width 343: "This element should have a thick overall border width."
+      LayoutBlockFlow {P} at (0,417) size 769x26 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 363x19
+          text run at (3,3) width 363: "This element should have a medium overall border width."
+      LayoutBlockFlow {P} at (0,459) size 769x22 [border: (1px solid #000000)]
+        LayoutText {#text} at (1,1) size 336x19
+          text run at (1,1) width 336: "This element should have a thin overall border width."
+      LayoutBlockFlow {P} at (0,497) size 769x20
+        LayoutText {#text} at (0,0) size 498x19
+          text run at (0,0) width 498: "This element should have no border and no extra \"padding\" on any side, as no "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (498,3) size 96x16
+            text run at (498,3) width 96: "border-style"
+        LayoutText {#text} at (594,0) size 54x19
+          text run at (594,0) width 54: " was set."
+      LayoutTable {TABLE} at (0,533) size 670x392 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 668x390
+          LayoutTableRow {TR} at (0,0) size 668x28
+            LayoutTableCell {TD} at (0,0) size 668x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 668x362
+            LayoutTableCell {TD} at (0,195) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 656x362 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 648x20
+                LayoutText {#text} at (0,0) size 157x19
+                  text run at (0,0) width 157: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (157,3) size 96x16
+                    text run at (157,3) width 96: "border-style"
+                LayoutText {#text} at (253,0) size 89x19
+                  text run at (253,0) width 89: " is supported.)"
+              LayoutBlockFlow {P} at (4,40) size 648x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,76) size 648x120 [border: (50px solid #000000)]
+                LayoutText {#text} at (50,50) size 394x19
+                  text run at (50,50) width 394: "This element should have an overall border width of 50 pixels."
+              LayoutBlockFlow {P} at (4,212) size 648x30 [border: (5px solid #000000)]
+                LayoutText {#text} at (5,5) size 343x19
+                  text run at (5,5) width 343: "This element should have a thick overall border width."
+              LayoutBlockFlow {P} at (4,258) size 648x26 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 363x19
+                  text run at (3,3) width 363: "This element should have a medium overall border width."
+              LayoutBlockFlow {P} at (4,300) size 648x22 [border: (1px solid #000000)]
+                LayoutText {#text} at (1,1) size 336x19
+                  text run at (1,1) width 336: "This element should have a thin overall border width."
+              LayoutBlockFlow {P} at (4,338) size 648x20
+                LayoutText {#text} at (0,0) size 498x19
+                  text run at (0,0) width 498: "This element should have no border and no extra \"padding\" on any side, as no "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (498,3) size 96x16
+                    text run at (498,3) width 96: "border-style"
+                LayoutText {#text} at (594,0) size 54x19
+                  text run at (594,0) width 54: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_width_inline-expected.txt
new file mode 100644
index 0000000..6465ff64
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/border_width_inline-expected.txt
@@ -0,0 +1,86 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 376x48
+          text run at (0,0) width 376: ".one {border-width: 25px; border-style: solid;}"
+          text run at (376,0) width 0: " "
+          text run at (0,16) width 376: ".two {border-width: thin; border-style: solid;}"
+          text run at (376,16) width 0: " "
+          text run at (0,32) width 224: ".three {border-width: 25px;}"
+          text run at (224,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x110 [border: (25px solid #000000)]
+        LayoutText {#text} at (25,25) size 172x19
+          text run at (25,25) width 172: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 24x16
+          LayoutText {#text} at (197,28) size 24x16
+            text run at (197,28) width 24: "one"
+        LayoutText {#text} at (221,25) size 162x19
+          text run at (221,25) width 8: ". "
+          text run at (229,25) width 154: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 170x21 [border: (1px solid #000000)]
+          LayoutText {#text} at (383,25) size 144x19
+            text run at (383,25) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (526,28) size 25x16
+              text run at (526,28) width 25: "two"
+        LayoutText {#text} at (551,25) size 713x39
+          text run at (551,25) width 187: ", which should result in a thin"
+          text run at (25,45) width 374: "solid border on each side of each box in the inline element. "
+          text run at (399,45) width 103: "There is also an "
+        LayoutInline {SPAN} at (0,0) size 183x19
+          LayoutText {#text} at (502,45) size 143x19
+            text run at (502,45) width 143: "inline element of class "
+          LayoutInline {TT} at (0,0) size 40x16
+            LayoutText {#text} at (645,48) size 40x16
+              text run at (645,48) width 40: "three"
+        LayoutText {#text} at (685,45) size 707x39
+          text run at (685,45) width 47: ", which"
+          text run at (25,65) width 387: "should have no border width because no border style was set."
+      LayoutTable {TABLE} at (0,241) size 784x148 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x146
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x118
+            LayoutTableCell {TD} at (0,73) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x118 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x110 [border: (25px solid #000000)]
+                LayoutText {#text} at (25,25) size 172x19
+                  text run at (25,25) width 172: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 24x16
+                  LayoutText {#text} at (197,28) size 24x16
+                    text run at (197,28) width 24: "one"
+                LayoutText {#text} at (221,25) size 162x19
+                  text run at (221,25) width 8: ". "
+                  text run at (229,25) width 154: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 170x21 [border: (1px solid #000000)]
+                  LayoutText {#text} at (383,25) size 144x19
+                    text run at (383,25) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (526,28) size 25x16
+                      text run at (526,28) width 25: "two"
+                LayoutText {#text} at (551,25) size 685x39
+                  text run at (551,25) width 159: ", which should result in a"
+                  text run at (25,45) width 402: "thin solid border on each side of each box in the inline element. "
+                  text run at (427,45) width 103: "There is also an "
+                LayoutInline {SPAN} at (0,0) size 183x19
+                  LayoutText {#text} at (530,45) size 143x19
+                    text run at (530,45) width 143: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 40x16
+                    LayoutText {#text} at (673,48) size 40x16
+                      text run at (673,48) width 40: "three"
+                LayoutText {#text} at (713,45) size 692x39
+                  text run at (713,45) width 4: ","
+                  text run at (25,65) width 430: "which should have no border width because no border style was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/clear-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/clear-expected.txt
new file mode 100644
index 0000000..345d819
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/clear-expected.txt
@@ -0,0 +1,92 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1005
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1005 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1005
+    LayoutBlockFlow {BODY} at (8,8) size 769x989 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 168x64
+          text run at (0,0) width 152: ".one {clear: left;}"
+          text run at (152,0) width 0: " "
+          text run at (0,16) width 160: ".two {clear: right;}"
+          text run at (160,16) width 0: " "
+          text run at (0,32) width 168: ".three {clear: both;}"
+          text run at (168,32) width 0: " "
+          text run at (0,48) width 160: ".four {clear: none;}"
+          text run at (160,48) width 0: " "
+      LayoutImage (floating) {IMG} at (0,123) size 15x50
+      LayoutBlockFlow {P} at (0,131) size 769x20
+        LayoutText {#text} at (18,0) size 594x19
+          text run at (18,0) width 594: "This text should be flowing past a tall orange rectangle on the left side of the browser window."
+      LayoutBlockFlow (anonymous) at (0,167) size 769x20
+        LayoutBR {BR} at (18,0) size 0x19
+        LayoutImage (floating) {IMG} at (0,20) size 15x50
+      LayoutBlockFlow {P} at (0,237) size 769x20
+        LayoutText {#text} at (0,0) size 649x19
+          text run at (0,0) width 649: "This paragraph should appear below the tall orange rectangle above and to the left, and not flow past it."
+      LayoutBlockFlow (anonymous) at (0,273) size 769x20
+        LayoutBR {BR} at (0,0) size 0x19
+        LayoutImage (floating) {IMG} at (754,20) size 15x50
+      LayoutBlockFlow {P} at (0,343) size 769x20
+        LayoutText {#text} at (0,0) size 658x19
+          text run at (0,0) width 658: "This paragraph should appear below the tall orange rectangle above and to the right, and not flow past it."
+      LayoutBlockFlow (anonymous) at (0,379) size 769x20
+        LayoutBR {BR} at (0,0) size 0x19
+        LayoutImage (floating) {IMG} at (0,20) size 15x50
+        LayoutImage (floating) {IMG} at (754,20) size 15x50
+      LayoutBlockFlow {P} at (0,449) size 769x20
+        LayoutText {#text} at (0,0) size 602x19
+          text run at (0,0) width 602: "This paragraph should appear below the two tall orange rectangles, and not flow between them."
+      LayoutImage (floating) {IMG} at (0,485) size 15x50
+      LayoutImage (floating) {IMG} at (754,485) size 15x50
+      LayoutBlockFlow {P} at (0,485) size 769x20
+        LayoutText {#text} at (18,0) size 390x19
+          text run at (18,0) width 390: "This paragraph should be between both tall orange rectangles."
+      LayoutBlockFlow (anonymous) at (0,521) size 769x20
+        LayoutBR {BR} at (18,0) size 0x19
+      LayoutTable {TABLE} at (0,541) size 680x448 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 678x446
+          LayoutTableRow {TR} at (0,0) size 678x28
+            LayoutTableCell {TD} at (0,0) size 678x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 678x418
+            LayoutTableCell {TD} at (0,223) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 666x418 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutImage (floating) {IMG} at (4,4) size 15x50
+              LayoutBlockFlow {P} at (4,4) size 658x20
+                LayoutText {#text} at (18,0) size 594x19
+                  text run at (18,0) width 594: "This text should be flowing past a tall orange rectangle on the left side of the browser window."
+              LayoutBlockFlow (anonymous) at (4,40) size 658x20
+                LayoutBR {BR} at (18,0) size 0x19
+                LayoutImage (floating) {IMG} at (0,20) size 15x50
+              LayoutBlockFlow {P} at (4,110) size 658x20
+                LayoutText {#text} at (0,0) size 649x19
+                  text run at (0,0) width 649: "This paragraph should appear below the tall orange rectangle above and to the left, and not flow past it."
+              LayoutBlockFlow (anonymous) at (4,146) size 658x20
+                LayoutBR {BR} at (0,0) size 0x19
+                LayoutImage (floating) {IMG} at (643,20) size 15x50
+              LayoutBlockFlow {P} at (4,216) size 658x20
+                LayoutText {#text} at (0,0) size 658x19
+                  text run at (0,0) width 658: "This paragraph should appear below the tall orange rectangle above and to the right, and not flow past it."
+              LayoutBlockFlow (anonymous) at (4,252) size 658x20
+                LayoutBR {BR} at (0,0) size 0x19
+                LayoutImage (floating) {IMG} at (0,20) size 15x50
+                LayoutImage (floating) {IMG} at (643,20) size 15x50
+              LayoutBlockFlow {P} at (4,322) size 658x20
+                LayoutText {#text} at (0,0) size 602x19
+                  text run at (0,0) width 602: "This paragraph should appear below the two tall orange rectangles, and not flow between them."
+              LayoutImage (floating) {IMG} at (4,358) size 15x50
+              LayoutImage (floating) {IMG} at (647,358) size 15x50
+              LayoutBlockFlow {P} at (4,358) size 658x20
+                LayoutText {#text} at (18,0) size 390x19
+                  text run at (18,0) width 390: "This paragraph should be between both tall orange rectangles."
+              LayoutBlockFlow (anonymous) at (4,394) size 658x20
+                LayoutBR {BR} at (18,0) size 0x19
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/clear_float-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/clear_float-expected.txt
new file mode 100644
index 0000000..088bc55
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/clear_float-expected.txt
@@ -0,0 +1,161 @@
+layer at (0,0) size 800x600 scrollHeight 826
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x826 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x825.88
+    LayoutBlockFlow {BODY} at (8,8) size 784x809.88 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,33) size 784x144
+        LayoutText {#text} at (0,0) size 616x144
+          text run at (0,0) width 392: "P { margin: 0; padding: 0; text-align:  justify;}"
+          text run at (392,0) width 0: " "
+          text run at (0,16) width 0: " "
+          text run at (0,32) width 384: "DIV.menu {float: left; clear: left; width: 11em;"
+          text run at (384,32) width 0: " "
+          text run at (0,48) width 464: "          margin: 0; margin-bottom: 10px; padding: 0.5em;}"
+          text run at (464,48) width 0: " "
+          text run at (0,64) width 432: "DIV.menu H1 {font-size: 1.2em; margin: 0; padding: 0;}"
+          text run at (432,64) width 0: " "
+          text run at (0,80) width 448: "DIV.menu UL {margin: 0.2em 0.3em 0.2em 1em; padding: 0;}"
+          text run at (448,80) width 0: " "
+          text run at (0,96) width 616: "DIV.article {padding: 0.5em; margin: 0; margin-left: 14em; margin-right: 2em;"
+          text run at (616,96) width 0: " "
+          text run at (0,112) width 480: "             color: black; background: yellow; clear: none;}"
+          text run at (480,112) width 0: " "
+          text run at (0,128) width 0: " "
+      LayoutBlockFlow (floating) {DIV} at (0,200) size 192x125.38 [color=#FFFFFF] [bgcolor=#008000]
+        LayoutBlockFlow {H1} at (8,8) size 176x23
+          LayoutText {#text} at (0,0) size 84x22
+            text run at (0,0) width 84: "Top menu"
+        LayoutBlockFlow {UL} at (24,34.19) size 155.20x80
+          LayoutListItem {LI} at (0,0) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 35x19
+              text run at (0,0) width 35: "green"
+          LayoutListItem {LI} at (0,20) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 62x19
+              text run at (0,0) width 62: "white text"
+          LayoutListItem {LI} at (0,40) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 94x19
+              text run at (0,0) width 94: "0.5em padding"
+          LayoutListItem {LI} at (0,60) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 87x19
+              text run at (0,0) width 87: "0.5em margin"
+      LayoutBlockFlow (floating) {DIV} at (0,335.38) size 192x125.38 [color=#FFFFFF] [bgcolor=#0000FF]
+        LayoutBlockFlow {H1} at (8,8) size 176x23
+          LayoutText {#text} at (0,0) size 112x22
+            text run at (0,0) width 112: "Bottom menu"
+        LayoutBlockFlow {UL} at (24,34.19) size 155.20x80
+          LayoutListItem {LI} at (0,0) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 106x19
+              text run at (0,0) width 106: "blue background"
+          LayoutListItem {LI} at (0,20) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 62x19
+              text run at (0,0) width 62: "white text"
+          LayoutListItem {LI} at (0,40) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 94x19
+              text run at (0,0) width 94: "0.5em padding"
+          LayoutListItem {LI} at (0,60) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 87x19
+              text run at (0,0) width 87: "0.5em margin"
+      LayoutBlockFlow {DIV} at (224,200) size 528x235.88 [bgcolor=#FFFF00]
+        LayoutBlockFlow {H1} at (8,29.44) size 512x37
+          LayoutText {#text} at (0,0) size 275x36
+            text run at (0,0) width 275: "The 'clear' property"
+        LayoutBlockFlow {P} at (8,87.88) size 512x100
+          LayoutText {#text} at (0,0) size 512x99
+            text run at (0,0) width 512: "This page has two floating \"menus\" on the side; one has a green background,"
+            text run at (0,20) width 238: "and the other a blue background. "
+            text run at (238,20) width 274: "Due to settings on the 'float' and 'clear'"
+            text run at (0,40) width 512: "properties, the two menus should appear on the left side of the page, the blue"
+            text run at (0,60) width 512: "below the green. There should be a 10px gap between the two menus. There"
+            text run at (0,80) width 459: "should also be a 10px gap between the top menu and the top of the page."
+        LayoutBlockFlow {P} at (8,187.88) size 512x40
+          LayoutText {#text} at (0,0) size 512x39
+            text run at (0,0) width 512: "The top of the yellow rectangle (to which this paragraph belongs) should be"
+            text run at (0,20) width 331: "vertically aligned with the top of the green rectangle."
+      LayoutTable {TABLE} at (192,435.88) size 592x374 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 590x372
+          LayoutTableRow {TR} at (0,0) size 590x28
+            LayoutTableCell {TD} at (0,0) size 590x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 590x344
+            LayoutTableCell {TD} at (0,186) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 578x343.88 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (floating) {DIV} at (4,4) size 192x125.38 [color=#FFFFFF] [bgcolor=#008000]
+                LayoutBlockFlow {H1} at (8,8) size 176x23
+                  LayoutText {#text} at (0,0) size 84x22
+                    text run at (0,0) width 84: "Top menu"
+                LayoutBlockFlow {UL} at (24,34.19) size 155.20x80
+                  LayoutListItem {LI} at (0,0) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 35x19
+                      text run at (0,0) width 35: "green"
+                  LayoutListItem {LI} at (0,20) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 62x19
+                      text run at (0,0) width 62: "white text"
+                  LayoutListItem {LI} at (0,40) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 94x19
+                      text run at (0,0) width 94: "0.5em padding"
+                  LayoutListItem {LI} at (0,60) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 87x19
+                      text run at (0,0) width 87: "0.5em margin"
+              LayoutBlockFlow (floating) {DIV} at (4,139.38) size 192x125.38 [color=#FFFFFF] [bgcolor=#0000FF]
+                LayoutBlockFlow {H1} at (8,8) size 176x23
+                  LayoutText {#text} at (0,0) size 112x22
+                    text run at (0,0) width 112: "Bottom menu"
+                LayoutBlockFlow {UL} at (24,34.19) size 155.20x80
+                  LayoutListItem {LI} at (0,0) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 106x19
+                      text run at (0,0) width 106: "blue background"
+                  LayoutListItem {LI} at (0,20) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 62x19
+                      text run at (0,0) width 62: "white text"
+                  LayoutListItem {LI} at (0,40) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 94x19
+                      text run at (0,0) width 94: "0.5em padding"
+                  LayoutListItem {LI} at (0,60) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 87x19
+                      text run at (0,0) width 87: "0.5em margin"
+              LayoutBlockFlow {DIV} at (228,4) size 314x335.88 [bgcolor=#FFFF00]
+                LayoutBlockFlow {H1} at (8,29.44) size 298x37
+                  LayoutText {#text} at (0,0) size 275x36
+                    text run at (0,0) width 275: "The 'clear' property"
+                LayoutBlockFlow {P} at (8,87.88) size 298x180
+                  LayoutText {#text} at (0,0) size 298x179
+                    text run at (0,0) width 298: "This page has two floating \"menus\" on the"
+                    text run at (0,20) width 298: "side; one has a green background, and the"
+                    text run at (0,40) width 161: "other a blue background. "
+                    text run at (161,40) width 137: "Due to settings on the"
+                    text run at (0,60) width 298: "'float' and 'clear' properties, the two menus"
+                    text run at (0,80) width 298: "should appear on the left side of the page, the"
+                    text run at (0,100) width 298: "blue below the green. There should be a 10px"
+                    text run at (0,120) width 298: "gap between the two menus. There should also"
+                    text run at (0,140) width 298: "be a 10px gap between the top menu and the"
+                    text run at (0,160) width 98: "top of the page."
+                LayoutBlockFlow {P} at (8,267.88) size 298x60
+                  LayoutText {#text} at (0,0) size 298x59
+                    text run at (0,0) width 298: "The top of the yellow rectangle (to which this"
+                    text run at (0,20) width 298: "paragraph belongs) should be vertically aligned"
+                    text run at (0,40) width 219: "with the top of the green rectangle."
+layer at (8,198) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,190) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/float-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/float-expected.txt
new file mode 100644
index 0000000..d306f80
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/float-expected.txt
@@ -0,0 +1,61 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 160x48
+          text run at (0,0) width 152: ".one {float: left;}"
+          text run at (152,0) width 0: " "
+          text run at (0,16) width 160: ".two {float: right;}"
+          text run at (160,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutImage (floating) {IMG} at (0,107) size 15x50
+      LayoutBlockFlow {P} at (0,115) size 784x40
+        LayoutText {#text} at (15,0) size 763x39
+          text run at (15,0) width 598: "This text should be flowing past a tall orange rectangle on the left side of the browser window. "
+          text run at (612,0) width 166: "In this case, it is the image"
+          text run at (15,20) width 212: "which has been floated to the left."
+      LayoutBlockFlow (anonymous) at (0,171) size 784x20
+        LayoutBR {BR} at (0,0) size 0x19
+      LayoutImage (floating) {IMG} at (769,209) size 15x50
+      LayoutBlockFlow {P} at (0,217) size 784x40
+        LayoutText {#text} at (0,0) size 730x39
+          text run at (0,0) width 607: "This text should be flowing past a tall orange rectangle on the right side of the browser window. "
+          text run at (606,0) width 124: "In this case, it is the"
+          text run at (0,20) width 263: "image which has been floated to the right."
+      LayoutTable {TABLE} at (0,273) size 784x182 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x180
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x152
+            LayoutTableCell {TD} at (0,90) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x152 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutImage (floating) {IMG} at (4,4) size 15x50
+              LayoutBlockFlow {P} at (4,4) size 762x40
+                LayoutText {#text} at (15,0) size 721x39
+                  text run at (15,0) width 598: "This text should be flowing past a tall orange rectangle on the left side of the browser window. "
+                  text run at (612,0) width 124: "In this case, it is the"
+                  text run at (15,20) width 254: "image which has been floated to the left."
+              LayoutBlockFlow (anonymous) at (4,60) size 762x20
+                LayoutBR {BR} at (0,0) size 0x19
+              LayoutImage (floating) {IMG} at (751,98) size 15x50
+              LayoutBlockFlow {P} at (4,106) size 762x40
+                LayoutText {#text} at (0,0) size 730x39
+                  text run at (0,0) width 607: "This text should be flowing past a tall orange rectangle on the right side of the browser window. "
+                  text run at (606,0) width 124: "In this case, it is the"
+                  text run at (0,20) width 263: "image which has been floated to the right."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,207) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,199) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (25,398) size 762x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,88) size 762x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/float_elements_in_series-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/float_elements_in_series-expected.txt
index 28431d1..527a8af1 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/float_elements_in_series-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/float_elements_in_series-expected.txt
@@ -32,7 +32,6 @@
           text run at (0,176) width 200: "TABLE {margin: 20px 0px;}"
           text run at (200,176) width 0: " "
           text run at (0,192) width 0: " "
-      LayoutBlockFlow {HR} at (0,254) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,264) size 769x40
         LayoutText {#text} at (0,0) size 769x39
           text run at (0,0) width 769: "The four floating DIV elements below should appear next to each other horizontally. The table at the bottom of this page"
@@ -157,6 +156,8 @@
                         LayoutBlockFlow {IMG} at (0,0) size 100x1
                       LayoutTableCell {TD} at (600,10) size 20x1 [bgcolor=#000000] [r=0 c=14 rs=1 cs=1]
                         LayoutBlockFlow {IMG} at (0,0) size 20x1
+layer at (8,262) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,254) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (8,442) size 20x1
   LayoutBlockFlow {SPAN} at (0,0) size 20x1
     LayoutInline {SPAN} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/float_margin-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/float_margin-expected.txt
new file mode 100644
index 0000000..b620475
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/float_margin-expected.txt
@@ -0,0 +1,166 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1915
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1915 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1915
+    LayoutBlockFlow {BODY} at (8,8) size 769x1899 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x144
+        LayoutText {#text} at (0,0) size 560x144
+          text run at (0,0) width 344: "P.test {background: white; font-size: 20px;"
+          text run at (344,0) width 0: " "
+          text run at (0,16) width 560: "        margin-left: 30px; margin-right: 10px; padding: 0; border: 0;}"
+          text run at (560,16) width 0: " "
+          text run at (0,32) width 312: "IMG {padding: 0; border: 0; margin: 0;}"
+          text run at (312,32) width 0: " "
+          text run at (0,48) width 200: "P.test IMG {float: left;}"
+          text run at (200,48) width 0: " "
+          text run at (0,64) width 352: "#img2 {margin-top: 30px; margin-left: 30px;}"
+          text run at (352,64) width 0: " "
+          text run at (0,80) width 368: "#img3 {margin-top: -30px; margin-left: -30px;}"
+          text run at (368,80) width 0: " "
+          text run at (0,96) width 384: "#img4 {margin-right: 30px; margin-bottom: 30px;}"
+          text run at (384,96) width 0: " "
+          text run at (0,112) width 400: "#img5 {margin-right: -30px; margin-bottom: -30px;}"
+          text run at (400,112) width 0: " "
+          text run at (0,128) width 0: " "
+      LayoutBlockFlow {P} at (30,215) size 729x92 [bgcolor=#FFFFFF]
+        LayoutText {#text} at (0,0) size 729x91
+          text run at (0,0) width 663: "This paragraph should have a white background which extends to the edges of the"
+          text run at (0,23) width 122: "element's box. "
+          text run at (122,23) width 441: "There is no padding set on this paragraph whatsoever. "
+          text run at (562,23) width 167: "If the background of"
+          text run at (0,46) width 721: "the entire box is not white, this may cause problems with the following tests; at any rate,"
+          text run at (0,69) width 240: "it must be taken into account."
+      LayoutBlockFlow {P} at (30,327) size 729x115 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (0,0) size 60x60
+        LayoutText {#text} at (60,0) size 719x114
+          text run at (60,0) width 638: "The image in the upper left corner of this paragraph should be floated left, and"
+          text run at (60,23) width 119: "nothing more. "
+          text run at (179,23) width 540: "The edges of the white background should line up with the top and"
+          text run at (60,46) width 196: "left edges of the image. "
+          text run at (256,46) width 454: "This paragraph should have a white background, first of"
+          text run at (0,69) width 428: "all, which extends to the edges of the element's box. "
+          text run at (428,69) width 249: "There is no padding set on this"
+          text run at (0,92) width 182: "paragraph whatsoever."
+      LayoutBlockFlow {P} at (30,462) size 729x115 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (30,30) size 60x60
+        LayoutText {#text} at (90,0) size 717x114
+          text run at (90,0) width 615: "The image in the upper left corner of this paragraph should be pushed down"
+          text run at (90,23) width 611: "and to the right 30 pixels each from the upper left corner of the paragraph's"
+          text run at (90,46) width 403: "box, and displace the paragraph text accordingly. "
+          text run at (492,46) width 225: "This paragraph should have"
+          text run at (90,69) width 613: "a white background, first of all, which extends to the edges of the element's"
+          text run at (0,92) width 40: "box. "
+          text run at (40,92) width 436: "There is no padding set on this paragraph whatsoever."
+      LayoutBlockFlow {P} at (30,597) size 729x115 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (-30,-30) size 60x60
+        LayoutText {#text} at (30,0) size 721x114
+          text run at (30,0) width 676: "The image in the upper left corner of this paragraph should be pushed up and to the"
+          text run at (30,23) width 691: "left 30 pixels each from the upper left corner of the paragraph's box, thus causing the"
+          text run at (0,46) width 633: "edges of the white background to align with the thick gray lines in the image. "
+          text run at (633,46) width 36: "This"
+          text run at (0,69) width 719: "paragraph should have a white background, first of all, which extends to the edges of the"
+          text run at (0,92) width 122: "element's box. "
+          text run at (122,92) width 436: "There is no padding set on this paragraph whatsoever."
+      LayoutBlockFlow {P} at (30,732) size 729x138 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (0,0) size 60x60
+        LayoutText {#text} at (90,0) size 728x137
+          text run at (90,0) width 638: "The image in the upper left corner of this paragraph should be floated left, and"
+          text run at (90,23) width 618: "the edges of the white background should line up with the top and left edges"
+          text run at (90,46) width 112: "of the image. "
+          text run at (202,46) width 504: "However, there should be 30 pixels of space between the right"
+          text run at (90,69) width 524: "and bottom edges of the image and the paragraph text around it. "
+          text run at (614,69) width 36: "This"
+          text run at (0,92) width 719: "paragraph should have a white background, first of all, which extends to the edges of the"
+          text run at (0,115) width 122: "element's box. "
+          text run at (122,115) width 436: "There is no padding set on this paragraph whatsoever."
+      LayoutBlockFlow {P} at (30,890) size 729x138 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (0,0) size 60x60
+        LayoutText {#text} at (30,0) size 706x137
+          text run at (30,0) width 668: "The image in the upper left corner of this paragraph should be floated left, and the"
+          text run at (30,23) width 640: "edges of the white background should line up with the top and left edges of the"
+          text run at (0,46) width 60: "image. "
+          text run at (60,46) width 636: "However, the text should overlap the image's right and bottom sides, lining up"
+          text run at (0,69) width 313: "with the thick gray lines in the image. "
+          text run at (313,69) width 393: "This paragraph should have a white background,"
+          text run at (0,92) width 489: "first of all, which extends to the edges of the element's box. "
+          text run at (489,92) width 214: "There is no padding set on"
+          text run at (0,115) width 217: "this paragraph whatsoever."
+      LayoutTable {TABLE} at (0,1048) size 769x851 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x849
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x821
+            LayoutTableCell {TD} at (0,424) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x821 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (34,4) size 707x92 [bgcolor=#FFFFFF]
+                LayoutText {#text} at (0,0) size 707x91
+                  text run at (0,0) width 663: "This paragraph should have a white background which extends to the edges of the"
+                  text run at (0,23) width 122: "element's box. "
+                  text run at (122,23) width 441: "There is no padding set on this paragraph whatsoever. "
+                  text run at (562,23) width 145: "If the background"
+                  text run at (0,46) width 702: "of the entire box is not white, this may cause problems with the following tests; at any"
+                  text run at (0,69) width 281: "rate, it must be taken into account."
+              LayoutBlockFlow {P} at (34,116) size 707x115 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (0,0) size 60x60
+                LayoutText {#text} at (60,0) size 703x114
+                  text run at (60,0) width 638: "The image in the upper left corner of this paragraph should be floated left, and"
+                  text run at (60,23) width 119: "nothing more. "
+                  text run at (179,23) width 506: "The edges of the white background should line up with the top"
+                  text run at (60,46) width 230: "and left edges of the image. "
+                  text run at (290,46) width 393: "This paragraph should have a white background,"
+                  text run at (0,69) width 489: "first of all, which extends to the edges of the element's box. "
+                  text run at (489,69) width 214: "There is no padding set on"
+                  text run at (0,92) width 217: "this paragraph whatsoever."
+              LayoutBlockFlow {P} at (34,251) size 707x115 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (30,30) size 60x60
+                LayoutText {#text} at (90,0) size 705x114
+                  text run at (90,0) width 615: "The image in the upper left corner of this paragraph should be pushed down"
+                  text run at (90,23) width 611: "and to the right 30 pixels each from the upper left corner of the paragraph's"
+                  text run at (90,46) width 403: "box, and displace the paragraph text accordingly. "
+                  text run at (492,46) width 182: "This paragraph should"
+                  text run at (90,69) width 574: "have a white background, first of all, which extends to the edges of the"
+                  text run at (0,92) width 122: "element's box. "
+                  text run at (122,92) width 436: "There is no padding set on this paragraph whatsoever."
+              LayoutBlockFlow {P} at (34,386) size 707x115 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (-30,-30) size 60x60
+                LayoutText {#text} at (30,0) size 706x114
+                  text run at (30,0) width 676: "The image in the upper left corner of this paragraph should be pushed up and to the"
+                  text run at (30,23) width 661: "left 30 pixels each from the upper left corner of the paragraph's box, thus causing"
+                  text run at (0,46) width 663: "the edges of the white background to align with the thick gray lines in the image. "
+                  text run at (663,46) width 36: "This"
+                  text run at (0,69) width 689: "paragraph should have a white background, first of all, which extends to the edges of"
+                  text run at (0,92) width 152: "the element's box. "
+                  text run at (152,92) width 436: "There is no padding set on this paragraph whatsoever."
+              LayoutBlockFlow {P} at (34,521) size 707x138 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (0,0) size 60x60
+                LayoutText {#text} at (90,0) size 694x137
+                  text run at (90,0) width 604: "The image in the upper left corner of this paragraph should be floated left,"
+                  text run at (90,23) width 601: "and the edges of the white background should line up with the top and left"
+                  text run at (90,46) width 163: "edges of the image. "
+                  text run at (253,46) width 430: "However, there should be 30 pixels of space between"
+                  text run at (90,69) width 593: "the right and bottom edges of the image and the paragraph text around it."
+                  text run at (0,92) width 657: "This paragraph should have a white background, first of all, which extends to the"
+                  text run at (0,115) width 225: "edges of the element's box. "
+                  text run at (225,115) width 436: "There is no padding set on this paragraph whatsoever."
+              LayoutBlockFlow {P} at (34,679) size 707x138 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (0,0) size 60x60
+                LayoutText {#text} at (30,0) size 706x137
+                  text run at (30,0) width 668: "The image in the upper left corner of this paragraph should be floated left, and the"
+                  text run at (30,23) width 640: "edges of the white background should line up with the top and left edges of the"
+                  text run at (0,46) width 60: "image. "
+                  text run at (60,46) width 636: "However, the text should overlap the image's right and bottom sides, lining up"
+                  text run at (0,69) width 313: "with the thick gray lines in the image. "
+                  text run at (313,69) width 393: "This paragraph should have a white background,"
+                  text run at (0,92) width 489: "first of all, which extends to the edges of the element's box. "
+                  text run at (489,92) width 214: "There is no padding set on"
+                  text run at (0,115) width 217: "this paragraph whatsoever."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/float_on_text_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/float_on_text_elements-expected.txt
new file mode 100644
index 0000000..d883c0ad
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/float_on_text_elements-expected.txt
@@ -0,0 +1,370 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2946
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2946 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2946
+    LayoutBlockFlow {BODY} at (8,8) size 769x2930 [bgcolor=#CCCCCC]
+      LayoutBlockFlow (floating) {P} at (0,0) size 384.50x40 [bgcolor=#FFFF00]
+        LayoutText {#text} at (0,0) size 384x39
+          text run at (0,0) width 384: "This paragraph is of class \"one\". It has a width of 50% and"
+          text run at (0,20) width 124: "is floated to the left."
+      LayoutBlockFlow {P} at (0,0) size 769x100
+        LayoutText {#text} at (384,0) size 769x99
+          text run at (384,0) width 385: "This paragraph should start on the right side of a yellow box"
+          text run at (384,20) width 385: "which contains the previous paragraph. Since the text of this"
+          text run at (0,40) width 769: "element is much longer than the text in the previous element, the text will wrap around the yellow box. There is no"
+          text run at (0,60) width 769: "padding, border or margins on this and the previous element, so the text of the two elements should be very close to each"
+          text run at (0,80) width 36: "other."
+      LayoutBlockFlow (anonymous) at (0,100) size 769x20
+        LayoutBR {BR} at (0,0) size 0x19
+      LayoutBlockFlow (anonymous) at (0,138) size 769x100
+        LayoutBlockFlow (floating) {P} at (0,0) size 769x80 [bgcolor=#FFFF00]
+          LayoutText {#text} at (0,0) size 769x79
+            text run at (0,0) width 769: "This paragraph is of class \"two\". Since the width has been set to 100%, it should automatically be as wide as its parent"
+            text run at (0,20) width 769: "element allows it to be. Therefore, even though the element is floated, there is no room for other content on the sides and a"
+            text run at (0,40) width 769: "orange square image should be seen AFTER the paragraph, not next to it. A yellow background has been added to this"
+            text run at (0,60) width 217: "paragraph for diagnostic purposes."
+        LayoutImage {IMG} at (0,80) size 15x15
+        LayoutText {#text} at (15,80) size 4x19
+          text run at (15,80) width 4: " "
+        LayoutBR {BR} at (19,95) size 0x0
+      LayoutBlockFlow (anonymous) at (0,256) size 769x120
+        LayoutBlockFlow (floating) {P} at (0,0) size 384.50x120 [bgcolor=#FFFF00]
+          LayoutText {#text} at (0,0) size 385x119
+            text run at (0,0) width 384: "This paragraph is floated to the left and the orange square"
+            text run at (0,20) width 384: "image should appear to the right of the paragraph. This"
+            text run at (0,40) width 384: "paragraph has a yellow background and no padding, margin"
+            text run at (0,60) width 385: "or border. The right edge of this yellow box should be"
+            text run at (0,80) width 384: "horizontally aligned with the left edge of the yellow box"
+            text run at (0,100) width 79: "undernearth."
+        LayoutImage {IMG} at (384.50,0) size 15x15
+        LayoutText {#text} at (399,0) size 5x19
+          text run at (399,0) width 5: " "
+        LayoutBR {BR} at (403,15) size 1x0
+      LayoutBlockFlow (anonymous) at (0,394) size 769x120
+        LayoutBlockFlow (floating) {P} at (384.50,0) size 384.50x120 [bgcolor=#FFFF00]
+          LayoutText {#text} at (0,0) size 384x119
+            text run at (0,0) width 384: "This paragraph is floated to the right (using a STYLE"
+            text run at (0,20) width 384: "attribute) and the orange square image should appear to the"
+            text run at (0,40) width 384: "left of the paragraph. This paragraph has a yellow"
+            text run at (0,60) width 384: "background and no padding, margin or border. The left edge"
+            text run at (0,80) width 384: "of this yellow box should be horizonally aligned with the"
+            text run at (0,100) width 224: "right edge of the yellow box above."
+        LayoutImage {IMG} at (0,0) size 15x15
+        LayoutText {#text} at (15,0) size 4x19
+          text run at (15,0) width 4: " "
+        LayoutBR {BR} at (19,15) size 0x0
+      LayoutBlockFlow {P} at (0,532) size 769x60
+        LayoutBlockFlow (floating) {SPAN} at (0,0) size 48x37 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 21x36
+            text run at (0,0) width 21: "T"
+        LayoutText {#text} at (48,0) size 769x59
+          text run at (48,0) width 721: "he first letter (a \"T\") of this paragraph should float left and be twice the font-size of the rest of the paragraph, as"
+          text run at (48,20) width 496: "well as bold, with a content width of 1.5em and a background-color of silver. "
+          text run at (543,20) width 226: "The top of the big letter \"T\" should"
+          text run at (0,40) width 675: "be vertically aligned with the top of the first line of this paragraph. This is commonly known as \"drop-cap\"."
+      LayoutBlockFlow (anonymous) at (0,592) size 769x20
+        LayoutBR {BR} at (0,0) size 0x19
+      LayoutBlockFlow (floating) {P} at (423,640) size 336x216 [bgcolor=#FFFF00] [border: (3px solid #FF0000)]
+        LayoutText {#text} at (8,8) size 320x199
+          text run at (8,8) width 320: "This paragraph should be floated to the right, sort"
+          text run at (8,28) width 320: "of like a 'sidebar' in a magazine article. Its width is"
+          text run at (8,48) width 320: "20em so the box should not be reformatted when"
+          text run at (8,68) width 320: "the size of the viewport is changed (e.g. when the"
+          text run at (8,88) width 320: "window is resized). The background color of the"
+          text run at (8,108) width 320: "element is yellow, and there should be a 3px solid"
+          text run at (8,128) width 320: "red border outside a 5px wide padding. Also, the"
+          text run at (8,148) width 320: "element has a 10px wide margin around it where"
+          text run at (8,168) width 320: "the blue background of the paragraph in the"
+          text run at (8,188) width 217: "normal flow should shine through."
+      LayoutBlockFlow {P} at (0,630) size 769x220 [bgcolor=#66CCFF]
+        LayoutText {#text} at (0,0) size 413x219
+          text run at (0,0) width 413: "This paragraph is not floating. If there is enough room, the textual"
+          text run at (0,20) width 413: "content of the paragraph should appear on the left side of the"
+          text run at (0,40) width 193: "yellow \"sidebar\" on the right. "
+          text run at (193,40) width 220: "The content of this element should"
+          text run at (0,60) width 220: "flow around the floated element. "
+          text run at (220,60) width 193: "However, the floated element"
+          text run at (0,80) width 413: "may or may not be obscured by the blue background of this"
+          text run at (0,100) width 413: "element, as the specification does not say which is drawn \"on"
+          text run at (0,120) width 37: "top.\" "
+          text run at (37,120) width 376: "Even if the floated element is obscured, it still forces the"
+          text run at (0,140) width 263: "content of this element to flow around it. "
+          text run at (263,140) width 150: "If the floated element is"
+          text run at (0,160) width 413: "not obscured, then the blue rectangle of this paragraph should"
+          text run at (0,180) width 413: "extend 10px above and to the right of the sidebar's red border,"
+          text run at (0,200) width 319: "due to the margin styles set for the floated element."
+      LayoutBlockFlow (anonymous) at (0,850) size 769x20
+        LayoutBR {BR} at (0,0) size 0x19
+      LayoutBlockFlow {DIV} at (0,888) size 769x28 [bgcolor=#66CCFF] [border: (4px solid #FF0000)]
+        LayoutBlockFlow (floating) {DIV} at (425,14) size 330x250 [bgcolor=#FFFF00]
+          LayoutBlockFlow {P} at (5,5) size 320x240
+            LayoutText {#text} at (0,0) size 320x239
+              text run at (0,0) width 320: "This paragraph is placed inside a DIV element"
+              text run at (0,20) width 320: "which is floated to the right. The width of the DIV"
+              text run at (0,40) width 320: "element is 20em. The background is yellow and"
+              text run at (0,60) width 320: "there is a 5px padding, a 10px margin and no"
+              text run at (0,80) width 320: "border. Since it is floated, the yellow box should"
+              text run at (0,100) width 320: "be rendered on top of the background and borders"
+              text run at (0,120) width 320: "of adjacent non-floated elements. To the left of this"
+              text run at (0,140) width 320: "yellow box there should be a short paragraph with"
+              text run at (0,160) width 320: "a blue background and a red border. The yellow"
+              text run at (0,180) width 320: "box should be rendered on top of the bottom red"
+              text run at (0,200) width 320: "border. I.e., the bottom red border will appear"
+              text run at (0,220) width 318: "broken where it's overlaid by the yellow rectangle."
+        LayoutBlockFlow {P} at (4,4) size 761x20
+          LayoutText {#text} at (0,0) size 268x19
+            text run at (0,0) width 268: "See description in the box on the right side"
+      LayoutBlockFlow (anonymous) at (0,916) size 769x246
+        LayoutBR {BR} at (0,0) size 0x19
+      LayoutBlockFlow (floating) {DIV} at (0,1180) size 192.25x80 [bgcolor=#66CCFF]
+        LayoutBlockFlow {P} at (0,0) size 192.25x80
+          LayoutText {#text} at (0,0) size 192x79
+            text run at (0,0) width 192: "This paragraph is inside a"
+            text run at (0,20) width 192: "DIV which is floated left. Its"
+            text run at (0,40) width 192: "background is blue and the"
+            text run at (0,60) width 87: "width is 25%."
+      LayoutBlockFlow (floating) {DIV} at (576.75,1180) size 192.25x80 [bgcolor=#FFFF00]
+        LayoutBlockFlow {P} at (0,0) size 192.25x80
+          LayoutText {#text} at (0,0) size 192x79
+            text run at (0,0) width 192: "This paragraph is inside a"
+            text run at (0,20) width 192: "DIV which is floated right. Its"
+            text run at (0,40) width 192: "background is yellow and the"
+            text run at (0,60) width 87: "width is 25%."
+      LayoutBlockFlow {P} at (0,1180) size 769x40
+        LayoutText {#text} at (192,0) size 385x39
+          text run at (192,0) width 385: "This paragraph should appear between a blue box (on the"
+          text run at (192,20) width 30: "left) "
+          text run at (221,20) width 200: "and a yellow box (on the right)."
+      LayoutBlockFlow (anonymous) at (0,1220) size 769x40
+        LayoutBR {BR} at (192,0) size 1x19
+      LayoutBlockFlow (anonymous) at (0,1278) size 769x140
+        LayoutBlockFlow (floating) {DIV} at (0,0) size 576.75x140 [bgcolor=#66CCFF]
+          LayoutBlockFlow (floating) {DIV} at (422.56,0) size 144.19x40 [bgcolor=#FFFF00]
+            LayoutBlockFlow {P} at (0,0) size 144.19x40
+              LayoutText {#text} at (0,0) size 144x39
+                text run at (0,0) width 144: "See description in the"
+                text run at (0,20) width 124: "box on the left side."
+          LayoutBlockFlow {P} at (0,0) size 576.75x140
+            LayoutText {#text} at (0,0) size 577x139
+              text run at (0,0) width 422: "This paragraph is inside a DIV which is floated left. The"
+              text run at (0,20) width 422: "background of the DIV element is blue and its width is 75%. This"
+              text run at (0,40) width 365: "text should all be inside the blue rectangle. The blue DIV "
+              text run at (365,40) width 211: "element has another DIV element"
+              text run at (0,60) width 166: "as a child. It has a yellow "
+              text run at (166,60) width 362: "background color and is floated to the right. Since it is a "
+              text run at (528,60) width 48: "child of"
+              text run at (0,80) width 373: "the blue DIV, the yellow DIV should appear inside the "
+              text run at (372,80) width 204: "blue rectangle. Due to it being"
+              text run at (0,100) width 193: "floated to the right and having "
+              text run at (193,100) width 384: "a 10px right margin, the yellow rectange should have a 10px"
+              text run at (0,120) width 31: "blue "
+              text run at (31,120) width 138: "stripe on its right side."
+        LayoutBR {BR} at (576,0) size 1x19
+      LayoutTable {TABLE} at (0,1436) size 769x1494 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1492
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x1464
+            LayoutTableCell {TD} at (0,746) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x1464 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (floating) {P} at (4,4) size 373.50x40 [bgcolor=#FFFF00]
+                LayoutText {#text} at (0,0) size 373x39
+                  text run at (0,0) width 373: "This paragraph is of class \"one\". It has a width of 50% and"
+                  text run at (0,20) width 124: "is floated to the left."
+              LayoutBlockFlow {P} at (4,4) size 747x100
+                LayoutText {#text} at (373,0) size 747x99
+                  text run at (373,0) width 374: "This paragraph should start on the right side of a yellow"
+                  text run at (373,20) width 374: "box which contains the previous paragraph. Since the text"
+                  text run at (0,40) width 747: "of this element is much longer than the text in the previous element, the text will wrap around the yellow box. There is"
+                  text run at (0,60) width 747: "no padding, border or margins on this and the previous element, so the text of the two elements should be very close to"
+                  text run at (0,80) width 69: "each other."
+              LayoutBlockFlow (anonymous) at (4,104) size 747x20
+                LayoutBR {BR} at (0,0) size 0x19
+              LayoutBlockFlow (anonymous) at (4,142) size 747x100
+                LayoutBlockFlow (floating) {P} at (0,0) size 747x80 [bgcolor=#FFFF00]
+                  LayoutText {#text} at (0,0) size 747x79
+                    text run at (0,0) width 747: "This paragraph is of class \"two\". Since the width has been set to 100%, it should automatically be as wide as its parent"
+                    text run at (0,20) width 747: "element allows it to be. Therefore, even though the element is floated, there is no room for other content on the sides"
+                    text run at (0,40) width 747: "and a orange square image should be seen AFTER the paragraph, not next to it. A yellow background has been added"
+                    text run at (0,60) width 259: "to this paragraph for diagnostic purposes."
+                LayoutImage {IMG} at (0,80) size 15x15
+                LayoutText {#text} at (15,80) size 4x19
+                  text run at (15,80) width 4: " "
+                LayoutBR {BR} at (19,95) size 0x0
+              LayoutBlockFlow (anonymous) at (4,260) size 747x120
+                LayoutBlockFlow (floating) {P} at (0,0) size 373.50x120 [bgcolor=#FFFF00]
+                  LayoutText {#text} at (0,0) size 373x119
+                    text run at (0,0) width 373: "This paragraph is floated to the left and the orange square"
+                    text run at (0,20) width 373: "image should appear to the right of the paragraph. This"
+                    text run at (0,40) width 373: "paragraph has a yellow background and no padding,"
+                    text run at (0,60) width 373: "margin or border. The right edge of this yellow box should"
+                    text run at (0,80) width 373: "be horizontally aligned with the left edge of the yellow box"
+                    text run at (0,100) width 79: "undernearth."
+                LayoutImage {IMG} at (373.50,0) size 15x15
+                LayoutText {#text} at (388,0) size 5x19
+                  text run at (388,0) width 5: " "
+                LayoutBR {BR} at (392,15) size 1x0
+              LayoutBlockFlow (anonymous) at (4,398) size 747x120
+                LayoutBlockFlow (floating) {P} at (373.50,0) size 373.50x120 [bgcolor=#FFFF00]
+                  LayoutText {#text} at (0,0) size 373x119
+                    text run at (0,0) width 373: "This paragraph is floated to the right (using a STYLE"
+                    text run at (0,20) width 373: "attribute) and the orange square image should appear to the"
+                    text run at (0,40) width 373: "left of the paragraph. This paragraph has a yellow"
+                    text run at (0,60) width 373: "background and no padding, margin or border. The left"
+                    text run at (0,80) width 373: "edge of this yellow box should be horizonally aligned with"
+                    text run at (0,100) width 247: "the right edge of the yellow box above."
+                LayoutImage {IMG} at (0,0) size 15x15
+                LayoutText {#text} at (15,0) size 4x19
+                  text run at (15,0) width 4: " "
+                LayoutBR {BR} at (19,15) size 0x0
+              LayoutBlockFlow {P} at (4,536) size 747x60
+                LayoutBlockFlow (floating) {SPAN} at (0,0) size 48x37 [bgcolor=#C0C0C0]
+                  LayoutText {#text} at (0,0) size 21x36
+                    text run at (0,0) width 21: "T"
+                LayoutText {#text} at (48,0) size 747x59
+                  text run at (48,0) width 699: "he first letter (a \"T\") of this paragraph should float left and be twice the font-size of the rest of the paragraph, as"
+                  text run at (48,20) width 513: "well as bold, with a content width of 1.5em and a background-color of silver. "
+                  text run at (560,20) width 187: "The top of the big letter \"T\""
+                  text run at (0,40) width 721: "should be vertically aligned with the top of the first line of this paragraph. This is commonly known as \"drop-cap\"."
+              LayoutBlockFlow (anonymous) at (4,596) size 747x20
+                LayoutBR {BR} at (0,0) size 0x19
+              LayoutBlockFlow (floating) {P} at (405,644) size 336x216 [bgcolor=#FFFF00] [border: (3px solid #FF0000)]
+                LayoutText {#text} at (8,8) size 320x199
+                  text run at (8,8) width 320: "This paragraph should be floated to the right, sort"
+                  text run at (8,28) width 320: "of like a 'sidebar' in a magazine article. Its width is"
+                  text run at (8,48) width 320: "20em so the box should not be reformatted when"
+                  text run at (8,68) width 320: "the size of the viewport is changed (e.g. when the"
+                  text run at (8,88) width 320: "window is resized). The background color of the"
+                  text run at (8,108) width 320: "element is yellow, and there should be a 3px solid"
+                  text run at (8,128) width 320: "red border outside a 5px wide padding. Also, the"
+                  text run at (8,148) width 320: "element has a 10px wide margin around it where"
+                  text run at (8,168) width 320: "the blue background of the paragraph in the"
+                  text run at (8,188) width 217: "normal flow should shine through."
+              LayoutBlockFlow {P} at (4,634) size 747x240 [bgcolor=#66CCFF]
+                LayoutText {#text} at (0,0) size 391x239
+                  text run at (0,0) width 391: "This paragraph is not floating. If there is enough room, the"
+                  text run at (0,20) width 391: "textual content of the paragraph should appear on the left side"
+                  text run at (0,40) width 260: "of the yellow \"sidebar\" on the right. "
+                  text run at (260,40) width 131: "The content of this"
+                  text run at (0,60) width 328: "element should flow around the floated element. "
+                  text run at (328,60) width 63: "However,"
+                  text run at (0,80) width 391: "the floated element may or may not be obscured by the blue"
+                  text run at (0,100) width 391: "background of this element, as the specification does not say"
+                  text run at (0,120) width 185: "which is drawn \"on top.\" "
+                  text run at (185,120) width 206: "Even if the floated element is"
+                  text run at (0,140) width 391: "obscured, it still forces the content of this element to flow"
+                  text run at (0,160) width 65: "around it. "
+                  text run at (65,160) width 326: "If the floated element is not obscured, then the blue"
+                  text run at (0,180) width 391: "rectangle of this paragraph should extend 10px above and to"
+                  text run at (0,200) width 391: "the right of the sidebar's red border, due to the margin styles"
+                  text run at (0,220) width 166: "set for the floated element."
+              LayoutBlockFlow (anonymous) at (4,874) size 747x20
+                LayoutBR {BR} at (0,0) size 0x19
+              LayoutBlockFlow {DIV} at (4,912) size 747x28 [bgcolor=#66CCFF] [border: (4px solid #FF0000)]
+                LayoutBlockFlow (floating) {DIV} at (403,14) size 330x250 [bgcolor=#FFFF00]
+                  LayoutBlockFlow {P} at (5,5) size 320x240
+                    LayoutText {#text} at (0,0) size 320x239
+                      text run at (0,0) width 320: "This paragraph is placed inside a DIV element"
+                      text run at (0,20) width 320: "which is floated to the right. The width of the DIV"
+                      text run at (0,40) width 320: "element is 20em. The background is yellow and"
+                      text run at (0,60) width 320: "there is a 5px padding, a 10px margin and no"
+                      text run at (0,80) width 320: "border. Since it is floated, the yellow box should"
+                      text run at (0,100) width 320: "be rendered on top of the background and borders"
+                      text run at (0,120) width 320: "of adjacent non-floated elements. To the left of this"
+                      text run at (0,140) width 320: "yellow box there should be a short paragraph with"
+                      text run at (0,160) width 320: "a blue background and a red border. The yellow"
+                      text run at (0,180) width 320: "box should be rendered on top of the bottom red"
+                      text run at (0,200) width 320: "border. I.e., the bottom red border will appear"
+                      text run at (0,220) width 318: "broken where it's overlaid by the yellow rectangle."
+                LayoutBlockFlow {P} at (4,4) size 739x20
+                  LayoutText {#text} at (0,0) size 268x19
+                    text run at (0,0) width 268: "See description in the box on the right side"
+              LayoutBlockFlow (anonymous) at (4,940) size 747x246
+                LayoutBR {BR} at (0,0) size 0x19
+              LayoutBlockFlow (floating) {DIV} at (4,1204) size 186.75x80 [bgcolor=#66CCFF]
+                LayoutBlockFlow {P} at (0,0) size 186.75x80
+                  LayoutText {#text} at (0,0) size 186x79
+                    text run at (0,0) width 186: "This paragraph is inside a"
+                    text run at (0,20) width 186: "DIV which is floated left. Its"
+                    text run at (0,40) width 186: "background is blue and the"
+                    text run at (0,60) width 87: "width is 25%."
+              LayoutBlockFlow (floating) {DIV} at (564.25,1204) size 186.75x80 [bgcolor=#FFFF00]
+                LayoutBlockFlow {P} at (0,0) size 186.75x80
+                  LayoutText {#text} at (0,0) size 186x79
+                    text run at (0,0) width 186: "This paragraph is inside a"
+                    text run at (0,20) width 186: "DIV which is floated right."
+                    text run at (0,40) width 20: "Its "
+                    text run at (20,40) width 166: "background is yellow and"
+                    text run at (0,60) width 110: "the width is 25%."
+              LayoutBlockFlow {P} at (4,1204) size 747x40
+                LayoutText {#text} at (186,0) size 374x39
+                  text run at (186,0) width 374: "This paragraph should appear between a blue box (on the"
+                  text run at (186,20) width 30: "left) "
+                  text run at (215,20) width 200: "and a yellow box (on the right)."
+              LayoutBlockFlow (anonymous) at (4,1244) size 747x40
+                LayoutBR {BR} at (186,0) size 1x19
+              LayoutBlockFlow (anonymous) at (4,1302) size 747x140
+                LayoutBlockFlow (floating) {DIV} at (0,0) size 560.25x140 [bgcolor=#66CCFF]
+                  LayoutBlockFlow (floating) {DIV} at (410.19,0) size 140.06x40 [bgcolor=#FFFF00]
+                    LayoutBlockFlow {P} at (0,0) size 140.06x40
+                      LayoutText {#text} at (0,0) size 140x39
+                        text run at (0,0) width 140: "See description in the"
+                        text run at (0,20) width 124: "box on the left side."
+                  LayoutBlockFlow {P} at (0,0) size 560.25x140
+                    LayoutText {#text} at (0,0) size 560x139
+                      text run at (0,0) width 410: "This paragraph is inside a DIV which is floated left. The"
+                      text run at (0,20) width 410: "background of the DIV element is blue and its width is 75%."
+                      text run at (0,40) width 32: "This "
+                      text run at (32,40) width 368: "text should all be inside the blue rectangle. The blue DIV "
+                      text run at (400,40) width 160: "element has another DIV"
+                      text run at (0,60) width 217: "element as a child. It has a yellow "
+                      text run at (217,60) width 343: "background color and is floated to the right. Since it is"
+                      text run at (0,80) width 11: "a "
+                      text run at (11,80) width 408: "child of the blue DIV, the yellow DIV should appear inside the "
+                      text run at (418,80) width 142: "blue rectangle. Due to"
+                      text run at (0,100) width 252: "it being floated to the right and having "
+                      text run at (252,100) width 308: "a 10px right margin, the yellow rectange should"
+                      text run at (0,120) width 112: "have a 10px blue "
+                      text run at (112,120) width 138: "stripe on its right side."
+                LayoutBR {BR} at (560,0) size 1x19
+layer at (8,136) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,128) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,254) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,246) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,392) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,384) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,530) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,522) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,628) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,620) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,886) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,878) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1178) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1170) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1276) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1268) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1434) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1426) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (25,1605) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,132) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1723) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,250) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1861) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,388) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1999) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,526) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2097) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,624) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2375) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,902) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2667) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1194) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2765) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1292) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2923) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1450) size 747x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/height-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/height-expected.txt
new file mode 100644
index 0000000..6f7f6591
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/height-expected.txt
@@ -0,0 +1,77 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 997
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x997 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x997
+    LayoutBlockFlow {BODY} at (8,8) size 769x981 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x48
+        LayoutText {#text} at (0,0) size 168x48
+          text run at (0,0) width 160: ".one {height: 50px;}"
+          text run at (160,0) width 0: " "
+          text run at (0,16) width 168: ".two {height: 100px;}"
+          text run at (168,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow (anonymous) at (0,107) size 769x50
+        LayoutImage {IMG} at (0,0) size 50x50
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,173) size 769x20
+        LayoutText {#text} at (0,0) size 275x19
+          text run at (0,0) width 275: "The square above should be fifty pixels tall."
+      LayoutBlockFlow (anonymous) at (0,209) size 769x100
+        LayoutImage {IMG} at (0,0) size 100x100
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,325) size 769x20
+        LayoutText {#text} at (0,0) size 335x19
+          text run at (0,0) width 335: "The square above should be 100 pixels tall and wide."
+      LayoutBlockFlow (anonymous) at (0,361) size 769x100
+        LayoutImage {IMG} at (0,0) size 30x100
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,477) size 769x40
+        LayoutText {#text} at (0,0) size 750x39
+          text run at (0,0) width 750: "The rectangular image above should be 100 pixels tall and 30 pixels wide (the original image is 50x15, and the size has"
+          text run at (0,20) width 150: "been doubled using the "
+        LayoutInline {CODE} at (0,0) size 48x16
+          LayoutText {#text} at (150,23) size 48x16
+            text run at (150,23) width 48: "height"
+        LayoutText {#text} at (198,20) size 66x19
+          text run at (198,20) width 66: " property)."
+      LayoutTable {TABLE} at (0,533) size 769x448 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x446
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x418
+            LayoutTableCell {TD} at (0,223) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x418 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (4,4) size 747x50
+                LayoutImage {IMG} at (0,0) size 50x50
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,70) size 747x20
+                LayoutText {#text} at (0,0) size 275x19
+                  text run at (0,0) width 275: "The square above should be fifty pixels tall."
+              LayoutBlockFlow (anonymous) at (4,106) size 747x100
+                LayoutImage {IMG} at (0,0) size 100x100
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,222) size 747x20
+                LayoutText {#text} at (0,0) size 335x19
+                  text run at (0,0) width 335: "The square above should be 100 pixels tall and wide."
+              LayoutBlockFlow (anonymous) at (4,258) size 747x100
+                LayoutImage {IMG} at (0,0) size 30x100
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,374) size 747x40
+                LayoutText {#text} at (0,0) size 725x39
+                  text run at (0,0) width 725: "The rectangular image above should be 100 pixels tall and 30 pixels wide (the original image is 50x15, and the size"
+                  text run at (0,20) width 175: "has been doubled using the "
+                LayoutInline {CODE} at (0,0) size 48x16
+                  LayoutText {#text} at (175,23) size 48x16
+                    text run at (175,23) width 48: "height"
+                LayoutText {#text} at (223,20) size 66x19
+                  text run at (223,20) width 66: " property)."
+layer at (8,105) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin-expected.txt
new file mode 100644
index 0000000..f2cf746
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin-expected.txt
@@ -0,0 +1,165 @@
+layer at (0,0) size 800x600 scrollWidth 802 scrollHeight 2710
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x2710 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x2710
+    LayoutBlockFlow {BODY} at (8,8) size 784x2694 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x112
+        LayoutText {#text} at (0,0) size 360x112
+          text run at (0,0) width 352: ".zero {background-color: silver; margin: 0;}"
+          text run at (352,0) width 0: " "
+          text run at (0,16) width 360: ".one {margin: 0.5in; background-color: aqua;}"
+          text run at (360,16) width 0: " "
+          text run at (0,32) width 352: ".two {margin: 25px; background-color: aqua;}"
+          text run at (352,32) width 0: " "
+          text run at (0,48) width 360: ".three {margin: 5em; background-color: aqua;}"
+          text run at (360,48) width 0: " "
+          text run at (0,64) width 352: ".four {margin: 25%; background-color: aqua;}"
+          text run at (352,64) width 0: " "
+          text run at (0,80) width 168: ".five {margin: 25px;}"
+          text run at (168,80) width 0: " "
+          text run at (0,96) width 360: ".six {margin: -10px; background-color: aqua;}"
+          text run at (360,96) width 0: " "
+      LayoutBlockFlow {P} at (0,179) size 784x40
+        LayoutText {#text} at (0,0) size 738x39
+          text run at (0,0) width 738: "NOTE: The following tests are separated by class-zero paragraphs, so as to prevent margin-collapsing as described in"
+          text run at (0,20) width 248: "section 4.1.1 of the CSS1 specification."
+      LayoutBlockFlow {P} at (0,235) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (48,303) size 688x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 658x19
+          text run at (0,0) width 658: "This sentence should have an overall margin of half an inch, which will require extra text in order to test."
+      LayoutBlockFlow {P} at (0,371) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (25,416) size 734x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 641x19
+          text run at (0,0) width 641: "This sentence should have an overall margin of 25 pixels, which will require extra text in order to test."
+      LayoutBlockFlow {P} at (0,461) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (80,561) size 624x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 615x19
+          text run at (0,0) width 615: "This sentence should have an overall margin of 5 em, which will require extra text in order to test."
+      LayoutBlockFlow {P} at (0,661) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (196,877) size 392x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 391x59
+          text run at (0,0) width 391: "This sentence should have an overall margin of 25%, which is"
+          text run at (0,20) width 362: "calculated with respect to the width of the parent element."
+          text run at (0,40) width 264: "This will require extra text in order to test."
+      LayoutBlockFlow {P} at (0,1133) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {UL} at (25,1178) size 734x130 [bgcolor=#00FFFF]
+        LayoutListItem {LI} at (40,0) size 694x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 375x19
+            text run at (0,0) width 375: "This list has a margin of 25px, and a light blue background."
+        LayoutListItem {LI} at (40,20) size 694x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 264x19
+            text run at (0,0) width 264: "Therefore, it ought to have such a margin."
+        LayoutListItem {LI} at (65,65) size 644x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 543x19
+            text run at (0,0) width 543: "This list item has a margin of 25px, which should cause it to be offset in some fashion."
+        LayoutListItem {LI} at (40,110) size 694x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 294x19
+            text run at (0,0) width 294: "This list item has no special styles applied to it."
+      LayoutBlockFlow {P} at (0,1333) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (-10,1343) size 804x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 775x59
+          text run at (0,0) width 758: "This paragraph has an overall margin of -10px, which should make it wider than usual as well as shift it upward and pull"
+          text run at (0,20) width 369: "subsequent text up toward it, and a light blue background. "
+          text run at (369,20) width 386: "In all other respects, however, the element should be normal. "
+          text run at (754,20) width 21: "No"
+          text run at (0,40) width 527: "styles have been applied to it besides the negative margin and the background color."
+      LayoutBlockFlow {P} at (0,1393) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutTable {TABLE} at (0,1413) size 784x1281 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x1279
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x1251
+            LayoutTableCell {TD} at (0,639) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x1251 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x40
+                LayoutText {#text} at (0,0) size 738x39
+                  text run at (0,0) width 738: "NOTE: The following tests are separated by class-zero paragraphs, so as to prevent margin-collapsing as described in"
+                  text run at (0,20) width 248: "section 4.1.1 of the CSS1 specification."
+              LayoutBlockFlow {P} at (4,60) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (52,128) size 666x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 658x19
+                  text run at (0,0) width 658: "This sentence should have an overall margin of half an inch, which will require extra text in order to test."
+              LayoutBlockFlow {P} at (4,196) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (29,241) size 712x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 641x19
+                  text run at (0,0) width 641: "This sentence should have an overall margin of 25 pixels, which will require extra text in order to test."
+              LayoutBlockFlow {P} at (4,286) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (84,386) size 602x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 586x39
+                  text run at (0,0) width 586: "This sentence should have an overall margin of 5 em, which will require extra text in order to"
+                  text run at (0,20) width 25: "test."
+              LayoutBlockFlow {P} at (4,506) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (194.50,716.50) size 381x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 377x59
+                  text run at (0,0) width 377: "This sentence should have an overall margin of 25%, which"
+                  text run at (0,20) width 376: "is calculated with respect to the width of the parent element."
+                  text run at (0,40) width 264: "This will require extra text in order to test."
+              LayoutBlockFlow {P} at (4,967) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {UL} at (29,1012) size 712x130 [bgcolor=#00FFFF]
+                LayoutListItem {LI} at (40,0) size 672x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 375x19
+                    text run at (0,0) width 375: "This list has a margin of 25px, and a light blue background."
+                LayoutListItem {LI} at (40,20) size 672x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 264x19
+                    text run at (0,0) width 264: "Therefore, it ought to have such a margin."
+                LayoutListItem {LI} at (65,65) size 622x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 543x19
+                    text run at (0,0) width 543: "This list item has a margin of 25px, which should cause it to be offset in some fashion."
+                LayoutListItem {LI} at (40,110) size 672x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 294x19
+                    text run at (0,0) width 294: "This list item has no special styles applied to it."
+              LayoutBlockFlow {P} at (4,1167) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (-6,1177) size 782x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 775x59
+                  text run at (0,0) width 758: "This paragraph has an overall margin of -10px, which should make it wider than usual as well as shift it upward and pull"
+                  text run at (0,20) width 369: "subsequent text up toward it, and a light blue background. "
+                  text run at (369,20) width 386: "In all other respects, however, the element should be normal. "
+                  text run at (754,20) width 21: "No"
+                  text run at (0,40) width 527: "styles have been applied to it besides the negative margin and the background color."
+              LayoutBlockFlow {P} at (4,1227) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+layer at (8,169) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_bottom-expected.txt
new file mode 100644
index 0000000..4ad886b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_bottom-expected.txt
@@ -0,0 +1,151 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1822
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1822 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1822.25
+    LayoutBlockFlow {BODY} at (8,8) size 769x1806.25 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x144
+        LayoutText {#text} at (0,0) size 416x144
+          text run at (0,0) width 408: ".zero {background-color: silver; margin-bottom: 0;}"
+          text run at (408,0) width 0: " "
+          text run at (0,16) width 416: ".one {margin-bottom: 0.5in; background-color: aqua;}"
+          text run at (416,16) width 0: " "
+          text run at (0,32) width 408: ".two {margin-bottom: 25px; background-color: aqua;}"
+          text run at (408,32) width 0: " "
+          text run at (0,48) width 416: ".three {margin-bottom: 5em; background-color: aqua;}"
+          text run at (416,48) width 0: " "
+          text run at (0,64) width 408: ".four {margin-bottom: 25%; background-color: aqua;}"
+          text run at (408,64) width 0: " "
+          text run at (0,80) width 224: ".five {margin-bottom: 25px;}"
+          text run at (224,80) width 0: " "
+          text run at (0,96) width 416: ".six {margin-bottom: -10px; background-color: aqua;}"
+          text run at (416,96) width 0: " "
+          text run at (0,112) width 176: "P, UL {margin-top: 0;}"
+          text run at (176,112) width 0: " "
+          text run at (0,128) width 0: " "
+      LayoutBlockFlow {P} at (0,203) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,223) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 740x39
+          text run at (0,0) width 740: "This sentence should have a bottom margin of half an inch, which will require extra text in order to make sure that the"
+          text run at (0,20) width 203: "margin isn't applied to each line."
+      LayoutBlockFlow {P} at (0,311) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 723x39
+          text run at (0,0) width 723: "This sentence should have a bottom margin of 25 pixels, which will require extra text in order to make sure that the"
+          text run at (0,20) width 203: "margin isn't applied to each line."
+      LayoutBlockFlow {P} at (0,376) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 745x39
+          text run at (0,0) width 745: "This sentence should have a bottom margin of 5 em, which will require extra text in order to make sure that the margin"
+          text run at (0,20) width 155: "isn't applied to each line."
+      LayoutBlockFlow {P} at (0,496) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 767x39
+          text run at (0,0) width 767: "This element should have a bottom margin of 25%, which will require extra text in order to make sure that the margin isn't"
+          text run at (0,20) width 126: "applied to each line."
+      LayoutBlockFlow {P} at (0,728.25) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,748.25) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 232x19
+          text run at (0,0) width 232: "This element also has a class of zero."
+      LayoutBlockFlow {UL} at (0,768.25) size 769x105 [bgcolor=#00FFFF]
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 424x19
+            text run at (0,0) width 424: "This list has a margin-bottom of 25px, and a light blue background."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 264x19
+            text run at (0,0) width 264: "Therefore, it ought to have such a margin."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 591x19
+            text run at (0,0) width 591: "This list item has a bottom margin of 25px, which should cause it to be offset in some fashion."
+        LayoutListItem {LI} at (40,85) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 294x19
+            text run at (0,0) width 294: "This list item has no special styles applied to it."
+      LayoutBlockFlow {P} at (0,898.25) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 759x59
+          text run at (0,0) width 748: "This paragraph has a bottom margin of -10px, which should cause elements after it to be shifted \"upward\" on the page,"
+          text run at (0,20) width 123: "and no top margin. "
+          text run at (122,20) width 488: "No other styles have been applied to it besides a light blue background color. "
+          text run at (609,20) width 150: "In all other respects, the"
+          text run at (0,40) width 166: "element should be normal."
+      LayoutBlockFlow {P} at (0,948.25) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,968.25) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 232x19
+          text run at (0,0) width 232: "This element also has a class of zero."
+      LayoutTable {TABLE} at (0,988.25) size 769x818 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x816
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x788
+            LayoutTableCell {TD} at (0,408) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x787.75 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,24) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 740x39
+                  text run at (0,0) width 740: "This sentence should have a bottom margin of half an inch, which will require extra text in order to make sure that the"
+                  text run at (0,20) width 203: "margin isn't applied to each line."
+              LayoutBlockFlow {P} at (4,112) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 723x39
+                  text run at (0,0) width 723: "This sentence should have a bottom margin of 25 pixels, which will require extra text in order to make sure that the"
+                  text run at (0,20) width 203: "margin isn't applied to each line."
+              LayoutBlockFlow {P} at (4,177) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 745x39
+                  text run at (0,0) width 745: "This sentence should have a bottom margin of 5 em, which will require extra text in order to make sure that the margin"
+                  text run at (0,20) width 155: "isn't applied to each line."
+              LayoutBlockFlow {P} at (4,297) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 738x39
+                  text run at (0,0) width 738: "This element should have a bottom margin of 25%, which will require extra text in order to make sure that the margin"
+                  text run at (0,20) width 155: "isn't applied to each line."
+              LayoutBlockFlow {P} at (4,523.75) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,543.75) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 232x19
+                  text run at (0,0) width 232: "This element also has a class of zero."
+              LayoutBlockFlow {UL} at (4,563.75) size 747x105 [bgcolor=#00FFFF]
+                LayoutListItem {LI} at (40,0) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 424x19
+                    text run at (0,0) width 424: "This list has a margin-bottom of 25px, and a light blue background."
+                LayoutListItem {LI} at (40,20) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 264x19
+                    text run at (0,0) width 264: "Therefore, it ought to have such a margin."
+                LayoutListItem {LI} at (40,40) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 591x19
+                    text run at (0,0) width 591: "This list item has a bottom margin of 25px, which should cause it to be offset in some fashion."
+                LayoutListItem {LI} at (40,85) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 294x19
+                    text run at (0,0) width 294: "This list item has no special styles applied to it."
+              LayoutBlockFlow {P} at (4,693.75) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 716x59
+                  text run at (0,0) width 710: "This paragraph has a bottom margin of -10px, which should cause elements after it to be shifted \"upward\" on the"
+                  text run at (0,20) width 161: "page, and no top margin. "
+                  text run at (160,20) width 488: "No other styles have been applied to it besides a light blue background color. "
+                  text run at (647,20) width 69: "In all other"
+                  text run at (0,40) width 247: "respects, the element should be normal."
+              LayoutBlockFlow {P} at (4,743.75) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,763.75) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 232x19
+                  text run at (0,0) width 232: "This element also has a class of zero."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_bottom_inline-expected.txt
new file mode 100644
index 0000000..7399d38f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_bottom_inline-expected.txt
@@ -0,0 +1,96 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x32
+        LayoutText {#text} at (0,0) size 416x32
+          text run at (0,0) width 408: ".one {margin-bottom: 25px; background-color: aqua;}"
+          text run at (408,0) width 0: " "
+          text run at (0,16) width 416: ".two {margin-bottom: -10px; background-color: aqua;}"
+          text run at (416,16) width 0: " "
+      LayoutBlockFlow {P} at (0,99) size 784x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 480x19
+          text run at (0,0) width 392: "This element is unstyled save for a background color of gray.. "
+          text run at (391,0) width 89: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 760x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (479,0) size 144x19
+            text run at (479,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (622,3) size 25x16
+              text run at (622,3) width 25: "one"
+          LayoutText {#text} at (646,0) size 760x39
+            text run at (646,0) width 114: ", giving it an aqua"
+            text run at (0,20) width 245: "background and a 25px bottom margin"
+        LayoutText {#text} at (244,20) size 784x39
+          text run at (244,20) width 9: ". "
+          text run at (252,20) width 532: "Margins on inline elements does not affect line-height calculations, so all lines in this"
+          text run at (0,40) width 263: "element should have the same line-height."
+      LayoutBlockFlow {P} at (0,175) size 784x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 480x19
+          text run at (0,0) width 392: "This element is unstyled save for a background color of gray.. "
+          text run at (391,0) width 89: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 760x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (479,0) size 144x19
+            text run at (479,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (622,3) size 25x16
+              text run at (622,3) width 25: "two"
+          LayoutText {#text} at (646,0) size 760x39
+            text run at (646,0) width 114: ", giving it an aqua"
+            text run at (0,20) width 250: "background and a -10px bottom margin"
+        LayoutText {#text} at (249,20) size 763x39
+          text run at (249,20) width 9: ". "
+          text run at (257,20) width 506: "Margins on inline elements does not affect line-height calculations, so all lines in"
+          text run at (0,40) width 289: "this element should have the same line-height."
+      LayoutTable {TABLE} at (0,251) size 784x174 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x172
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x144
+            LayoutTableCell {TD} at (0,86) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x144 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 480x19
+                  text run at (0,0) width 392: "This element is unstyled save for a background color of gray.. "
+                  text run at (391,0) width 89: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 760x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (479,0) size 144x19
+                    text run at (479,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (622,3) size 25x16
+                      text run at (622,3) width 25: "one"
+                  LayoutText {#text} at (646,0) size 760x39
+                    text run at (646,0) width 114: ", giving it an aqua"
+                    text run at (0,20) width 245: "background and a 25px bottom margin"
+                LayoutText {#text} at (244,20) size 758x39
+                  text run at (244,20) width 9: ". "
+                  text run at (252,20) width 506: "Margins on inline elements does not affect line-height calculations, so all lines in"
+                  text run at (0,40) width 289: "this element should have the same line-height."
+              LayoutBlockFlow {P} at (4,80) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 480x19
+                  text run at (0,0) width 392: "This element is unstyled save for a background color of gray.. "
+                  text run at (391,0) width 89: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 760x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (479,0) size 144x19
+                    text run at (479,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (622,3) size 25x16
+                      text run at (622,3) width 25: "two"
+                  LayoutText {#text} at (646,0) size 760x39
+                    text run at (646,0) width 114: ", giving it an aqua"
+                    text run at (0,20) width 250: "background and a -10px bottom margin"
+                LayoutText {#text} at (249,20) size 747x39
+                  text run at (249,20) width 9: ". "
+                  text run at (257,20) width 490: "Margins on inline elements does not affect line-height calculations, so all lines"
+                  text run at (0,40) width 305: "in this element should have the same line-height."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_inline-expected.txt
new file mode 100644
index 0000000..29f7c7d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_inline-expected.txt
@@ -0,0 +1,125 @@
+layer at (0,0) size 800x600 scrollHeight 749
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x749 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x749
+    LayoutBlockFlow {BODY} at (8,8) size 784x733 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 360x48
+          text run at (0,0) width 352: ".zero {background-color: silver; margin: 0;}"
+          text run at (352,0) width 0: " "
+          text run at (0,16) width 352: ".one {margin: 25px; background-color: aqua;}"
+          text run at (352,16) width 0: " "
+          text run at (0,32) width 360: ".two {margin: -10px; background-color: aqua;}"
+          text run at (360,32) width 0: " "
+      LayoutBlockFlow {P} at (0,107) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,143) size 784x80 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 480x19
+          text run at (0,0) width 392: "This element is unstyled save for a background color of gray.. "
+          text run at (391,0) width 89: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 751x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (504,0) size 144x19
+            text run at (504,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (647,3) size 25x16
+              text run at (647,3) width 25: "one"
+          LayoutText {#text} at (671,0) size 751x39
+            text run at (671,0) width 80: ", giving it an"
+            text run at (0,20) width 231: "aqua background and a 25px margin"
+        LayoutText {#text} at (255,20) size 769x59
+          text run at (255,20) width 9: ". "
+          text run at (263,20) width 506: "Margins on inline elements does not affect line-height calculations, so all lines in"
+          text run at (0,40) width 293: "this element should have the same line-height. "
+          text run at (293,40) width 473: "However, there should be a 25px margin to the left side of the inline box in"
+          text run at (0,60) width 727: "the first line it appears, and a 25px margin to the right side of the inline element box in the last line where it appears."
+      LayoutBlockFlow {P} at (0,239) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,275) size 784x80 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 480x19
+          text run at (0,0) width 392: "This element is unstyled save for a background color of gray.. "
+          text run at (391,0) width 89: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 750x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (469,0) size 144x19
+            text run at (469,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (612,3) size 25x16
+              text run at (612,3) width 25: "two"
+          LayoutText {#text} at (636,0) size 750x39
+            text run at (636,0) width 114: ", giving it an aqua"
+            text run at (0,20) width 202: "background and a -10px margin"
+        LayoutText {#text} at (191,20) size 784x59
+          text run at (191,20) width 9: ". "
+          text run at (199,20) width 585: "Margins on inline elements does not affect line-height calculations, so all lines in this element"
+          text run at (0,40) width 214: "should have the same line-height. "
+          text run at (214,40) width 568: "However, there should be a -10px margin to the left side of the inline box in the first line it"
+          text run at (0,60) width 642: "appears, and a -10px margin to the right side of the inline element box in the last line where it appears."
+      LayoutBlockFlow {P} at (0,371) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutTable {TABLE} at (0,391) size 784x342 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x340
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x312
+            LayoutTableCell {TD} at (0,170) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x312 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 762x100 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 480x19
+                  text run at (0,0) width 392: "This element is unstyled save for a background color of gray.. "
+                  text run at (391,0) width 89: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 751x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (504,0) size 144x19
+                    text run at (504,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (647,3) size 25x16
+                      text run at (647,3) width 25: "one"
+                  LayoutText {#text} at (671,0) size 751x39
+                    text run at (671,0) width 80: ", giving it an"
+                    text run at (0,20) width 231: "aqua background and a 25px margin"
+                LayoutText {#text} at (255,20) size 753x79
+                  text run at (255,20) width 9: ". "
+                  text run at (263,20) width 490: "Margins on inline elements does not affect line-height calculations, so all lines"
+                  text run at (0,40) width 309: "in this element should have the same line-height. "
+                  text run at (309,40) width 429: "However, there should be a 25px margin to the left side of the inline"
+                  text run at (0,60) width 715: "box in the first line it appears, and a 25px margin to the right side of the inline element box in the last line where it"
+                  text run at (0,80) width 52: "appears."
+              LayoutBlockFlow {P} at (4,156) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,192) size 762x80 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 480x19
+                  text run at (0,0) width 392: "This element is unstyled save for a background color of gray.. "
+                  text run at (391,0) width 89: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 750x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (469,0) size 144x19
+                    text run at (469,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (612,3) size 25x16
+                      text run at (612,3) width 25: "two"
+                  LayoutText {#text} at (636,0) size 750x39
+                    text run at (636,0) width 114: ", giving it an aqua"
+                    text run at (0,20) width 202: "background and a -10px margin"
+                LayoutText {#text} at (191,20) size 745x59
+                  text run at (191,20) width 9: ". "
+                  text run at (199,20) width 532: "Margins on inline elements does not affect line-height calculations, so all lines in this"
+                  text run at (0,40) width 267: "element should have the same line-height. "
+                  text run at (267,40) width 478: "However, there should be a -10px margin to the left side of the inline box in"
+                  text run at (0,60) width 732: "the first line it appears, and a -10px margin to the right side of the inline element box in the last line where it appears."
+              LayoutBlockFlow {P} at (4,288) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_left-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_left-expected.txt
new file mode 100644
index 0000000..287e2e8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_left-expected.txt
@@ -0,0 +1,121 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1077
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1077 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1077
+    LayoutBlockFlow {BODY} at (8,8) size 769x1061 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 408x96
+          text run at (0,0) width 392: ".zero {background-color: silver; margin-left: 0;}"
+          text run at (392,0) width 0: " "
+          text run at (0,16) width 400: ".one {margin-left: 0.5in; background-color: aqua;}"
+          text run at (400,16) width 0: " "
+          text run at (0,32) width 392: ".two {margin-left: 25px; background-color: aqua;}"
+          text run at (392,32) width 0: " "
+          text run at (0,48) width 400: ".three {margin-left: 5em; background-color: aqua;}"
+          text run at (400,48) width 0: " "
+          text run at (0,64) width 392: ".four {margin-left: 25%; background-color: aqua;}"
+          text run at (392,64) width 0: " "
+          text run at (0,80) width 408: ".five {margin-left: -10px; background-color: aqua;}"
+          text run at (408,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (48,199) size 721x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 348x19
+          text run at (0,0) width 348: "This sentence should have a left margin of half an inch."
+      LayoutBlockFlow {P} at (25,235) size 744x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 331x19
+          text run at (0,0) width 331: "This sentence should have a left margin of 25 pixels."
+      LayoutBlockFlow {P} at (80,271) size 689x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 305x19
+          text run at (0,0) width 305: "This sentence should have a left margin of 5 em."
+      LayoutBlockFlow {P} at (192.25,307) size 576.75x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 546x39
+          text run at (0,0) width 546: "This sentence should have a left margin of 25%, which is calculated with respect to the"
+          text run at (0,20) width 176: "width of the parent element."
+      LayoutBlockFlow {UL} at (25,363) size 744x100 [bgcolor=#808080]
+        LayoutListItem {LI} at (40,0) size 704x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 685x19
+            text run at (0,0) width 685: "The left margin on this unordered list has been set to 25 pixels, and its background color has been set to gray."
+        LayoutListItem {LI} at (65,20) size 679x60 [bgcolor=#FFFFFF]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 668x59
+            text run at (0,0) width 656: "Another list item might not be such a bad idea, either, considering that such things do need to be double-"
+            text run at (0,20) width 60: "checked. "
+            text run at (60,20) width 608: "This list item has its left margin also set to 25 pixels, which should combine with the list's margin"
+            text run at (0,40) width 479: "to make 50 pixels of margin, and its background color has been set to white."
+        LayoutListItem {LI} at (40,80) size 704x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 179x19
+            text run at (0,0) width 179: "This is an unclassed list item"
+      LayoutBlockFlow {P} at (0,479) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (-10,515) size 779x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 778x59
+          text run at (0,0) width 758: "This paragraph has a left margin of -10px, which should cause it to be wider than it might otherwise be, and it has a light"
+          text run at (0,20) width 114: "blue background. "
+          text run at (114,20) width 386: "In all other respects, however, the element should be normal. "
+          text run at (499,20) width 279: "No styles have been applied to it besides the"
+          text run at (0,40) width 293: "negative left margin and the background color."
+      LayoutTable {TABLE} at (0,591) size 769x470 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x468
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x440
+            LayoutTableCell {TD} at (0,234) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x440 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (52,40) size 699x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 348x19
+                  text run at (0,0) width 348: "This sentence should have a left margin of half an inch."
+              LayoutBlockFlow {P} at (29,76) size 722x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 331x19
+                  text run at (0,0) width 331: "This sentence should have a left margin of 25 pixels."
+              LayoutBlockFlow {P} at (84,112) size 667x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 305x19
+                  text run at (0,0) width 305: "This sentence should have a left margin of 5 em."
+              LayoutBlockFlow {P} at (190.75,148) size 560.25x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 546x39
+                  text run at (0,0) width 546: "This sentence should have a left margin of 25%, which is calculated with respect to the"
+                  text run at (0,20) width 176: "width of the parent element."
+              LayoutBlockFlow {UL} at (29,204) size 722x120 [bgcolor=#808080]
+                LayoutListItem {LI} at (40,0) size 682x40
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 650x39
+                    text run at (0,0) width 650: "The left margin on this unordered list has been set to 25 pixels, and its background color has been set to"
+                    text run at (0,20) width 31: "gray."
+                LayoutListItem {LI} at (65,40) size 657x60 [bgcolor=#FFFFFF]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 656x59
+                    text run at (0,0) width 656: "Another list item might not be such a bad idea, either, considering that such things do need to be double-"
+                    text run at (0,20) width 60: "checked. "
+                    text run at (60,20) width 560: "This list item has its left margin also set to 25 pixels, which should combine with the list's"
+                    text run at (0,40) width 527: "margin to make 50 pixels of margin, and its background color has been set to white."
+                LayoutListItem {LI} at (40,100) size 682x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 179x19
+                    text run at (0,0) width 179: "This is an unclassed list item"
+              LayoutBlockFlow {P} at (4,340) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (-6,376) size 757x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 737x59
+                  text run at (0,0) width 726: "This paragraph has a left margin of -10px, which should cause it to be wider than it might otherwise be, and it has a"
+                  text run at (0,20) width 146: "light blue background. "
+                  text run at (146,20) width 386: "In all other respects, however, the element should be normal. "
+                  text run at (531,20) width 206: "No styles have been applied to it"
+                  text run at (0,40) width 366: "besides the negative left margin and the background color."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_left_inline-expected.txt
new file mode 100644
index 0000000..a9c479c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_left_inline-expected.txt
@@ -0,0 +1,100 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x32
+        LayoutText {#text} at (0,0) size 400x32
+          text run at (0,0) width 392: ".one {margin-left: 25px; background-color: aqua;}"
+          text run at (392,0) width 0: " "
+          text run at (0,16) width 400: ".two {margin-left: -10px; background-color: aqua;}"
+          text run at (400,16) width 0: " "
+      LayoutBlockFlow {P} at (0,99) size 784x40 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 542x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 155: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 168x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (566,0) size 144x19
+            text run at (566,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (709,3) size 25x16
+              text run at (709,3) width 25: "one"
+        LayoutText {#text} at (733,0) size 781x39
+          text run at (733,0) width 48: ", which"
+          text run at (0,20) width 299: "should result in 25-pixel left margin only in the "
+        LayoutInline {STRONG} at (0,0) size 28x19
+          LayoutText {#text} at (298,20) size 28x19
+            text run at (298,20) width 28: "first"
+        LayoutText {#text} at (325,20) size 233x19
+          text run at (325,20) width 233: " line in which the inline box appears."
+      LayoutBlockFlow {P} at (0,155) size 784x40 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 542x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 155: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 168x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (531,0) size 144x19
+            text run at (531,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (674,3) size 25x16
+              text run at (674,3) width 25: "two"
+        LayoutText {#text} at (698,0) size 746x39
+          text run at (698,0) width 48: ", which"
+          text run at (0,20) width 284: "should result in -10px left margin only in the "
+        LayoutInline {STRONG} at (0,0) size 28x19
+          LayoutText {#text} at (283,20) size 28x19
+            text run at (283,20) width 28: "first"
+        LayoutText {#text} at (310,20) size 233x19
+          text run at (310,20) width 233: " line in which the inline box appears."
+      LayoutTable {TABLE} at (0,211) size 784x134 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x132
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x104
+            LayoutTableCell {TD} at (0,66) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x104 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x40 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 542x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 155: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 168x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (566,0) size 144x19
+                    text run at (566,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (709,3) size 25x16
+                      text run at (709,3) width 25: "one"
+                LayoutText {#text} at (733,0) size 738x39
+                  text run at (733,0) width 5: ","
+                  text run at (0,20) width 342: "which should result in 25-pixel left margin only in the "
+                LayoutInline {STRONG} at (0,0) size 28x19
+                  LayoutText {#text} at (341,20) size 28x19
+                    text run at (341,20) width 28: "first"
+                LayoutText {#text} at (368,20) size 233x19
+                  text run at (368,20) width 233: " line in which the inline box appears."
+              LayoutBlockFlow {P} at (4,60) size 762x40 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 542x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 155: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 168x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (531,0) size 144x19
+                    text run at (531,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (674,3) size 25x16
+                      text run at (674,3) width 25: "two"
+                LayoutText {#text} at (698,0) size 746x39
+                  text run at (698,0) width 48: ", which"
+                  text run at (0,20) width 284: "should result in -10px left margin only in the "
+                LayoutInline {STRONG} at (0,0) size 28x19
+                  LayoutText {#text} at (283,20) size 28x19
+                    text run at (283,20) width 28: "first"
+                LayoutText {#text} at (310,20) size 233x19
+                  text run at (310,20) width 233: " line in which the inline box appears."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_right-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_right-expected.txt
new file mode 100644
index 0000000..fcacfb5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_right-expected.txt
@@ -0,0 +1,121 @@
+layer at (0,0) size 800x600 scrollWidth 802 scrollHeight 1077
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x1077 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x1077
+    LayoutBlockFlow {BODY} at (8,8) size 784x1061 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x96
+        LayoutText {#text} at (0,0) size 560x96
+          text run at (0,0) width 552: ".zero {background-color: silver; margin-right: 0; text-align: right;}"
+          text run at (552,0) width 0: " "
+          text run at (0,16) width 560: ".one {margin-right: 0.5in; text-align: right; background-color: aqua;}"
+          text run at (560,16) width 0: " "
+          text run at (0,32) width 552: ".two {margin-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (552,32) width 0: " "
+          text run at (0,48) width 560: ".three {margin-right: 5em; text-align: right; background-color: aqua;}"
+          text run at (560,48) width 0: " "
+          text run at (0,64) width 552: ".four {margin-right: 25%; text-align: right; background-color: aqua;}"
+          text run at (552,64) width 0: " "
+          text run at (0,80) width 416: ".five {margin-right: -10px; background-color: aqua;}"
+          text run at (416,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (581,0) size 203x19
+          text run at (581,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,199) size 736x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (379,0) size 357x19
+          text run at (379,0) width 357: "This sentence should have a right margin of half an inch."
+      LayoutBlockFlow {P} at (0,235) size 759x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (419,0) size 340x19
+          text run at (419,0) width 340: "This sentence should have a right margin of 25 pixels."
+      LayoutBlockFlow {P} at (0,271) size 704x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (390,0) size 314x19
+          text run at (390,0) width 314: "This sentence should have a right margin of 5 em."
+      LayoutBlockFlow {P} at (0,307) size 588x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (33,0) size 555x39
+          text run at (33,0) width 555: "This sentence should have a right margin of 25%, which is calculated with respect to the"
+          text run at (412,20) width 176: "width of the parent element."
+      LayoutBlockFlow {UL} at (0,363) size 759x100 [bgcolor=#808080]
+        LayoutListItem {LI} at (40,0) size 719x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (20,0) size 699x19
+            text run at (20,0) width 699: "The right margin on this unordered list has been set to 25 pixels, and the background color has been set to gray."
+        LayoutListItem {LI} at (40,20) size 694x60 [bgcolor=#FFFFFF]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (38,0) size 693x59
+            text run at (38,0) width 656: "Another list item might not be such a bad idea, either, considering that such things do need to be double-"
+            text run at (1,20) width 61: "checked. "
+            text run at (61,20) width 633: "This list item has its right margin also set to 25 pixels, which should combine with the list's margin to"
+            text run at (230,40) width 464: "make 50 pixels of margin, and its background-color has been set to white."
+        LayoutListItem {LI} at (40,80) size 719x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (540,0) size 179x19
+            text run at (540,0) width 179: "This is an unclassed list item"
+      LayoutBlockFlow {P} at (0,479) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (581,0) size 203x19
+          text run at (581,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,515) size 794x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 778x59
+          text run at (0,0) width 767: "This paragraph has a right margin of -10px, which should cause it to be wider than it might otherwise be, and it has a light"
+          text run at (0,20) width 114: "blue background. "
+          text run at (114,20) width 386: "In all other respects, however, the element should be normal. "
+          text run at (499,20) width 279: "No styles have been applied to it besides the"
+          text run at (0,40) width 302: "negative right margin and the background color."
+      LayoutTable {TABLE} at (0,591) size 784x470 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x468
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x440
+            LayoutTableCell {TD} at (0,234) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x440 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (559,0) size 203x19
+                  text run at (559,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 714x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (357,0) size 357x19
+                  text run at (357,0) width 357: "This sentence should have a right margin of half an inch."
+              LayoutBlockFlow {P} at (4,76) size 737x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (397,0) size 340x19
+                  text run at (397,0) width 340: "This sentence should have a right margin of 25 pixels."
+              LayoutBlockFlow {P} at (4,112) size 682x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (368,0) size 314x19
+                  text run at (368,0) width 314: "This sentence should have a right margin of 5 em."
+              LayoutBlockFlow {P} at (4,148) size 571.50x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (16,0) size 556x39
+                  text run at (16,0) width 556: "This sentence should have a right margin of 25%, which is calculated with respect to the"
+                  text run at (395,20) width 177: "width of the parent element."
+              LayoutBlockFlow {UL} at (4,204) size 737x120 [bgcolor=#808080]
+                LayoutListItem {LI} at (40,0) size 697x40
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (33,0) size 664x39
+                    text run at (33,0) width 664: "The right margin on this unordered list has been set to 25 pixels, and the background color has been set to"
+                    text run at (666,20) width 31: "gray."
+                LayoutListItem {LI} at (40,40) size 672x60 [bgcolor=#FFFFFF]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (16,0) size 656x59
+                    text run at (16,0) width 656: "Another list item might not be such a bad idea, either, considering that such things do need to be double-"
+                    text run at (43,20) width 61: "checked. "
+                    text run at (103,20) width 569: "This list item has its right margin also set to 25 pixels, which should combine with the list's"
+                    text run at (144,40) width 528: "margin to make 50 pixels of margin, and its background-color has been set to white."
+                LayoutListItem {LI} at (40,100) size 697x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (518,0) size 179x19
+                    text run at (518,0) width 179: "This is an unclassed list item"
+              LayoutBlockFlow {P} at (4,340) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (559,0) size 203x19
+                  text run at (559,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,376) size 772x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 767x59
+                  text run at (0,0) width 767: "This paragraph has a right margin of -10px, which should cause it to be wider than it might otherwise be, and it has a light"
+                  text run at (0,20) width 114: "blue background. "
+                  text run at (114,20) width 386: "In all other respects, however, the element should be normal. "
+                  text run at (499,20) width 256: "No styles have been applied to it besides"
+                  text run at (0,40) width 325: "the negative right margin and the background color."
+layer at (8,153) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_right_inline-expected.txt
new file mode 100644
index 0000000..389f43a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_right_inline-expected.txt
@@ -0,0 +1,100 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x32
+        LayoutText {#text} at (0,0) size 552x32
+          text run at (0,0) width 552: ".one {margin-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (552,0) width 0: " "
+          text run at (0,16) width 408: ".two {margin-right: -10px; background-color: aqua;}"
+          text run at (408,16) width 0: " "
+      LayoutBlockFlow {P} at (0,99) size 784x40 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 542x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 155: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 168x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (541,0) size 144x19
+            text run at (541,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (684,3) size 25x16
+              text run at (684,3) width 25: "one"
+        LayoutText {#text} at (733,0) size 781x39
+          text run at (733,0) width 48: ", which"
+          text run at (0,20) width 308: "should result in 25-pixel right margin only in the "
+        LayoutInline {STRONG} at (0,0) size 24x19
+          LayoutText {#text} at (307,20) size 24x19
+            text run at (307,20) width 24: "last"
+        LayoutText {#text} at (330,20) size 233x19
+          text run at (330,20) width 233: " line in which the inline box appears."
+      LayoutBlockFlow {P} at (0,155) size 784x40 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 542x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 155: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 168x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (541,0) size 144x19
+            text run at (541,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (684,3) size 25x16
+              text run at (684,3) width 25: "two"
+        LayoutText {#text} at (698,0) size 746x39
+          text run at (698,0) width 48: ", which"
+          text run at (0,20) width 293: "should result in -10px right margin only in the "
+        LayoutInline {STRONG} at (0,0) size 24x19
+          LayoutText {#text} at (292,20) size 24x19
+            text run at (292,20) width 24: "last"
+        LayoutText {#text} at (315,20) size 233x19
+          text run at (315,20) width 233: " line in which the inline box appears."
+      LayoutTable {TABLE} at (0,211) size 784x134 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x132
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x104
+            LayoutTableCell {TD} at (0,66) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x104 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x40 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 542x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 155: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 168x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (541,0) size 144x19
+                    text run at (541,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (684,3) size 25x16
+                      text run at (684,3) width 25: "one"
+                LayoutText {#text} at (733,0) size 738x39
+                  text run at (733,0) width 5: ","
+                  text run at (0,20) width 351: "which should result in 25-pixel right margin only in the "
+                LayoutInline {STRONG} at (0,0) size 24x19
+                  LayoutText {#text} at (350,20) size 24x19
+                    text run at (350,20) width 24: "last"
+                LayoutText {#text} at (373,20) size 233x19
+                  text run at (373,20) width 233: " line in which the inline box appears."
+              LayoutBlockFlow {P} at (4,60) size 762x40 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 542x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 155: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 168x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (541,0) size 144x19
+                    text run at (541,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (684,3) size 25x16
+                      text run at (684,3) width 25: "two"
+                LayoutText {#text} at (698,0) size 746x39
+                  text run at (698,0) width 48: ", which"
+                  text run at (0,20) width 293: "should result in -10px right margin only in the "
+                LayoutInline {STRONG} at (0,0) size 24x19
+                  LayoutText {#text} at (292,20) size 24x19
+                    text run at (292,20) width 24: "last"
+                LayoutText {#text} at (315,20) size 233x19
+                  text run at (315,20) width 233: " line in which the inline box appears."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_top-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_top-expected.txt
new file mode 100644
index 0000000..cceec31b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_top-expected.txt
@@ -0,0 +1,138 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1723
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1723 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1723.25
+    LayoutBlockFlow {BODY} at (8,8) size 769x1707.25 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,33) size 769x128
+        LayoutText {#text} at (0,0) size 392x128
+          text run at (0,0) width 384: ".zero {background-color: silver; margin-top: 0;}"
+          text run at (384,0) width 0: " "
+          text run at (0,16) width 392: ".one {margin-top: 0.5in; background-color: aqua;}"
+          text run at (392,16) width 0: " "
+          text run at (0,32) width 384: ".two {margin-top: 25px; background-color: aqua;}"
+          text run at (384,32) width 0: " "
+          text run at (0,48) width 392: ".three {margin-top: 5em; background-color: aqua;}"
+          text run at (392,48) width 0: " "
+          text run at (0,64) width 384: ".four {margin-top: 25%; background-color: aqua;}"
+          text run at (384,64) width 0: " "
+          text run at (0,80) width 200: ".five {margin-top: 25px;}"
+          text run at (200,80) width 0: " "
+          text run at (0,96) width 392: ".six {margin-top: -10px; background-color: aqua;}"
+          text run at (392,96) width 0: " "
+          text run at (0,112) width 200: "P, UL {margin-bottom: 0;}"
+          text run at (200,112) width 0: " "
+      LayoutBlockFlow {P} at (0,184) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,204) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 232x19
+          text run at (0,0) width 232: "This element also has a class of zero."
+      LayoutBlockFlow {P} at (0,272) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 759x39
+          text run at (0,0) width 759: "This element should have a top margin of half an inch, which will require extra text in order to make sure that the margin"
+          text run at (0,20) width 155: "isn't applied to each line."
+      LayoutBlockFlow {P} at (0,337) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 742x39
+          text run at (0,0) width 742: "This element should have a top margin of 25 pixels, which will require extra text in order to make sure that the margin"
+          text run at (0,20) width 155: "isn't applied to each line."
+      LayoutBlockFlow {P} at (0,457) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 745x39
+          text run at (0,0) width 745: "This element should have a top margin of 5 em, which will require extra text in order to make sure that the margin isn't"
+          text run at (0,20) width 126: "applied to each line."
+      LayoutBlockFlow {P} at (0,689.25) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 753x39
+          text run at (0,0) width 725: "This element should have a top margin of 25%, which is calculated with respect to the width of the parent element. "
+          text run at (724,0) width 29: "This"
+          text run at (0,20) width 232: "will require extra text in order to test."
+      LayoutBlockFlow {UL} at (0,754.25) size 769x105 [bgcolor=#00FFFF]
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 400x19
+            text run at (0,0) width 400: "This list has a margin-top of 25px, and a light blue background."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 264x19
+            text run at (0,0) width 264: "Therefore, it ought to have such a margin."
+        LayoutListItem {LI} at (40,65) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 567x19
+            text run at (0,0) width 567: "This list item has a top margin of 25px, which should cause it to be offset in some fashion."
+        LayoutListItem {LI} at (40,85) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 294x19
+            text run at (0,0) width 294: "This list item has no special styles applied to it."
+      LayoutBlockFlow {P} at (0,859.25) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,869.25) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 766x59
+          text run at (0,0) width 766: "This element has a top margin of -10px, which should cause it to be shifted \"upward\" on the page, and no bottom margin."
+          text run at (0,20) width 488: "No other styles have been applied to it besides a light blue background color. "
+          text run at (487,20) width 268: "In all other respects, the element should be"
+          text run at (0,40) width 48: "normal."
+      LayoutTable {TABLE} at (0,929.25) size 769x778 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x776
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x748
+            LayoutTableCell {TD} at (0,388) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x747.75 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,24) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 232x19
+                  text run at (0,0) width 232: "This element also has a class of zero."
+              LayoutBlockFlow {P} at (4,92) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 711x39
+                  text run at (0,0) width 711: "This element should have a top margin of half an inch, which will require extra text in order to make sure that the"
+                  text run at (0,20) width 203: "margin isn't applied to each line."
+              LayoutBlockFlow {P} at (4,157) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 742x39
+                  text run at (0,0) width 742: "This element should have a top margin of 25 pixels, which will require extra text in order to make sure that the margin"
+                  text run at (0,20) width 155: "isn't applied to each line."
+              LayoutBlockFlow {P} at (4,277) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 745x39
+                  text run at (0,0) width 745: "This element should have a top margin of 5 em, which will require extra text in order to make sure that the margin isn't"
+                  text run at (0,20) width 126: "applied to each line."
+              LayoutBlockFlow {P} at (4,503.75) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 721x39
+                  text run at (0,0) width 721: "This element should have a top margin of 25%, which is calculated with respect to the width of the parent element."
+                  text run at (0,20) width 264: "This will require extra text in order to test."
+              LayoutBlockFlow {UL} at (4,568.75) size 747x105 [bgcolor=#00FFFF]
+                LayoutListItem {LI} at (40,0) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 400x19
+                    text run at (0,0) width 400: "This list has a margin-top of 25px, and a light blue background."
+                LayoutListItem {LI} at (40,20) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 264x19
+                    text run at (0,0) width 264: "Therefore, it ought to have such a margin."
+                LayoutListItem {LI} at (40,65) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 567x19
+                    text run at (0,0) width 567: "This list item has a top margin of 25px, which should cause it to be offset in some fashion."
+                LayoutListItem {LI} at (40,85) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 294x19
+                    text run at (0,0) width 294: "This list item has no special styles applied to it."
+              LayoutBlockFlow {P} at (4,673.75) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,683.75) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 741x59
+                  text run at (0,0) width 714: "This element has a top margin of -10px, which should cause it to be shifted \"upward\" on the page, and no bottom"
+                  text run at (0,20) width 52: "margin. "
+                  text run at (51,20) width 488: "No other styles have been applied to it besides a light blue background color. "
+                  text run at (538,20) width 203: "In all other respects, the element"
+                  text run at (0,40) width 113: "should be normal."
+layer at (8,182) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,174) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_top_inline-expected.txt
new file mode 100644
index 0000000..5a863e0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/margin_top_inline-expected.txt
@@ -0,0 +1,99 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 392x64
+          text run at (0,0) width 384: ".zero {background-color: silver; margin-top: 0;}"
+          text run at (384,0) width 0: " "
+          text run at (0,16) width 384: ".one {margin-top: 25px; background-color: aqua;}"
+          text run at (384,16) width 0: " "
+          text run at (0,32) width 392: ".two {margin-top: -10px; background-color: aqua;}"
+          text run at (392,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 784x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 476x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 89: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 756x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (475,0) size 144x19
+            text run at (475,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (618,3) size 25x16
+              text run at (618,3) width 25: "one"
+          LayoutText {#text} at (642,0) size 756x39
+            text run at (642,0) width 114: ", giving it an aqua"
+            text run at (0,20) width 221: "background and a 25px top margin"
+        LayoutText {#text} at (220,20) size 747x39
+          text run at (220,20) width 9: ". "
+          text run at (228,20) width 519: "Margins on inline elements do not affect line-height calculations, so all lines in this"
+          text run at (0,40) width 263: "element should have the same line-height."
+      LayoutBlockFlow {P} at (0,207) size 784x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 476x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 89: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 753x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (475,0) size 144x19
+            text run at (475,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (618,3) size 25x16
+              text run at (618,3) width 25: "two"
+          LayoutText {#text} at (642,0) size 753x39
+            text run at (642,0) width 111: ", giving the inline"
+            text run at (0,20) width 332: "element an aqua background and a -10px top margin"
+        LayoutText {#text} at (331,20) size 783x39
+          text run at (331,20) width 9: ". "
+          text run at (339,20) width 444: "Margins on inline elements do not affect line-height calculations, so all"
+          text run at (0,40) width 338: "lines in this element should have the same line-height."
+      LayoutTable {TABLE} at (0,283) size 784x174 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x172
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x144
+            LayoutTableCell {TD} at (0,86) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x144 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 476x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 89: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 756x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (475,0) size 144x19
+                    text run at (475,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (618,3) size 25x16
+                      text run at (618,3) width 25: "one"
+                  LayoutText {#text} at (642,0) size 756x39
+                    text run at (642,0) width 114: ", giving it an aqua"
+                    text run at (0,20) width 221: "background and a 25px top margin"
+                LayoutText {#text} at (220,20) size 747x39
+                  text run at (220,20) width 9: ". "
+                  text run at (228,20) width 519: "Margins on inline elements do not affect line-height calculations, so all lines in this"
+                  text run at (0,40) width 263: "element should have the same line-height."
+              LayoutBlockFlow {P} at (4,80) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 476x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 89: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 753x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (475,0) size 144x19
+                    text run at (475,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (618,3) size 25x16
+                      text run at (618,3) width 25: "two"
+                  LayoutText {#text} at (642,0) size 753x39
+                    text run at (642,0) width 111: ", giving the inline"
+                    text run at (0,20) width 332: "element an aqua background and a -10px top margin"
+                LayoutText {#text} at (331,20) size 746x39
+                  text run at (331,20) width 9: ". "
+                  text run at (339,20) width 407: "Margins on inline elements do not affect line-height calculations,"
+                  text run at (0,40) width 375: "so all lines in this element should have the same line-height."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding-expected.txt
new file mode 100644
index 0000000..8bdf7b4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding-expected.txt
@@ -0,0 +1,94 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2284
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2284 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2283.50
+    LayoutBlockFlow {BODY} at (8,8) size 769x2267.50 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 376x96
+          text run at (0,0) width 360: ".zero {background-color: silver; padding: 0;}"
+          text run at (360,0) width 0: " "
+          text run at (0,16) width 368: ".one {padding: 0.5in; background-color: aqua;}"
+          text run at (368,16) width 0: " "
+          text run at (0,32) width 360: ".two {padding: 25px; background-color: aqua;}"
+          text run at (360,32) width 0: " "
+          text run at (0,48) width 368: ".three {padding: 5em; background-color: aqua;}"
+          text run at (368,48) width 0: " "
+          text run at (0,64) width 360: ".four {padding: 25%; background-color: aqua;}"
+          text run at (360,64) width 0: " "
+          text run at (0,80) width 376: ".five {padding: -20px; background-color: aqua;}"
+          text run at (376,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,199) size 769x136 [bgcolor=#00FFFF]
+        LayoutText {#text} at (48,48) size 660x39
+          text run at (48,48) width 660: "This element should have an overall padding of half an inch, which will require extra text in order to test."
+          text run at (48,68) width 464: "Both the content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,351) size 769x90 [bgcolor=#00FFFF]
+        LayoutText {#text} at (25,25) size 701x39
+          text run at (25,25) width 647: "This element should have an overall padding of 25 pixels, which will require extra text in order to test. "
+          text run at (672,25) width 54: "Both the"
+          text run at (25,45) width 406: "content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,457) size 769x200 [bgcolor=#00FFFF]
+        LayoutText {#text} at (80,80) size 588x39
+          text run at (80,80) width 588: "This element should have an overall padding of 5 em, which will require extra text in order to"
+          text run at (80,100) width 29: "test. "
+          text run at (109,100) width 464: "Both the content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,673) size 769x464.50 [bgcolor=#00FFFF]
+        LayoutText {#text} at (192,192) size 380x79
+          text run at (192,192) width 380: "This element should have an overall padding of 25%, which"
+          text run at (192,212) width 377: "is calculated with respect to the width of the parent element."
+          text run at (192,232) width 354: "Both the content background and the padding should be"
+          text run at (192,252) width 108: "aqua (light blue)."
+      LayoutBlockFlow {P} at (0,1153.50) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 751x39
+          text run at (0,0) width 541: "This element should have no padding, since negative padding values are not allowed. "
+          text run at (541,0) width 210: "Both the content background and"
+          text run at (0,20) width 298: "the normal padding should be aqua (light blue)."
+      LayoutTable {TABLE} at (0,1209.50) size 769x1058 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1056
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x1028
+            LayoutTableCell {TD} at (0,528) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x1027.50 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 747x136 [bgcolor=#00FFFF]
+                LayoutText {#text} at (48,48) size 631x39
+                  text run at (48,48) width 631: "This element should have an overall padding of half an inch, which will require extra text in order to"
+                  text run at (48,68) width 29: "test. "
+                  text run at (77,68) width 464: "Both the content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,192) size 747x90 [bgcolor=#00FFFF]
+                LayoutText {#text} at (25,25) size 678x39
+                  text run at (25,25) width 647: "This element should have an overall padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (672,25) width 31: "Both"
+                  text run at (25,45) width 429: "the content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,298) size 747x200 [bgcolor=#00FFFF]
+                LayoutText {#text} at (80,80) size 572x39
+                  text run at (80,80) width 572: "This element should have an overall padding of 5 em, which will require extra text in order"
+                  text run at (80,100) width 45: "to test. "
+                  text run at (125,100) width 464: "Both the content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,514) size 747x453.50 [bgcolor=#00FFFF]
+                LayoutText {#text} at (186,187) size 363x79
+                  text run at (186,187) width 337: "This element should have an overall padding of 25%,"
+                  text run at (186,207) width 363: "which is calculated with respect to the width of the parent"
+                  text run at (186,227) width 58: "element. "
+                  text run at (243,227) width 289: "Both the content background and the padding"
+                  text run at (186,247) width 173: "should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,983.50) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 724x39
+                  text run at (0,0) width 541: "This element should have no padding, since negative padding values are not allowed. "
+                  text run at (541,0) width 183: "Both the content background"
+                  text run at (0,20) width 325: "and the normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_bottom-expected.txt
new file mode 100644
index 0000000..c2d5034
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_bottom-expected.txt
@@ -0,0 +1,100 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1610
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1610 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1610.25
+    LayoutBlockFlow {BODY} at (8,8) size 769x1594.25 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 432x96
+          text run at (0,0) width 416: ".zero {background-color: silver; padding-bottom: 0;}"
+          text run at (416,0) width 0: " "
+          text run at (0,16) width 424: ".one {padding-bottom: 0.5in; background-color: aqua;}"
+          text run at (424,16) width 0: " "
+          text run at (0,32) width 416: ".two {padding-bottom: 25px; background-color: aqua;}"
+          text run at (416,32) width 0: " "
+          text run at (0,48) width 424: ".three {padding-bottom: 5em; background-color: aqua;}"
+          text run at (424,48) width 0: " "
+          text run at (0,64) width 416: ".four {padding-bottom: 25%; background-color: aqua;}"
+          text run at (416,64) width 0: " "
+          text run at (0,80) width 432: ".five {padding-bottom: -20px; background-color: aqua;}"
+          text run at (432,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,199) size 769x88 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 761x39
+          text run at (0,0) width 657: "This element should have a bottom padding of half an inch, which will require extra text in order to test. "
+          text run at (657,0) width 104: "Both the content"
+          text run at (0,20) width 356: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,303) size 769x65 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 744x39
+          text run at (0,0) width 640: "This element should have a bottom padding of 25 pixels, which will require extra text in order to test. "
+          text run at (640,0) width 104: "Both the content"
+          text run at (0,20) width 356: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,384) size 769x120 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 718x39
+          text run at (0,0) width 614: "This element should have a bottom padding of 5 em, which will require extra text in order to test. "
+          text run at (614,0) width 104: "Both the content"
+          text run at (0,20) width 356: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,520) size 769x232.25 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 752x39
+          text run at (0,0) width 752: "This element should have a bottom padding of 25%, which is calculated with respect to the width of the parent element."
+          text run at (0,20) width 268: "This will require extra text in order to test. "
+          text run at (268,20) width 464: "Both the content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,768.25) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,804.25) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 693x39
+          text run at (0,0) width 589: "This element should have no bottom padding, since negative padding values are not allowed. "
+          text run at (589,0) width 104: "Both the content"
+          text run at (0,20) width 404: "background and the normal padding should be aqua (light blue)."
+      LayoutTable {TABLE} at (0,860.25) size 769x734 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x732
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x704
+            LayoutTableCell {TD} at (0,366) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x703.75 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 747x88 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 711x39
+                  text run at (0,0) width 657: "This element should have a bottom padding of half an inch, which will require extra text in order to test. "
+                  text run at (657,0) width 54: "Both the"
+                  text run at (0,20) width 406: "content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,144) size 747x65 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 744x39
+                  text run at (0,0) width 640: "This element should have a bottom padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (640,0) width 104: "Both the content"
+                  text run at (0,20) width 356: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,225) size 747x120 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 718x39
+                  text run at (0,0) width 614: "This element should have a bottom padding of 5 em, which will require extra text in order to test. "
+                  text run at (614,0) width 104: "Both the content"
+                  text run at (0,20) width 356: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,361) size 747x246.75 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 712x59
+                  text run at (0,0) width 695: "This element should have a bottom padding of 25%, which is calculated with respect to the width of the parent"
+                  text run at (0,20) width 57: "element. "
+                  text run at (57,20) width 268: "This will require extra text in order to test. "
+                  text run at (325,20) width 387: "Both the content background and the padding should be aqua"
+                  text run at (0,40) width 73: "(light blue)."
+              LayoutBlockFlow {P} at (4,623.75) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,659.75) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 693x39
+                  text run at (0,0) width 589: "This element should have no bottom padding, since negative padding values are not allowed. "
+                  text run at (589,0) width 104: "Both the content"
+                  text run at (0,20) width 404: "background and the normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_bottom_inline-expected.txt
new file mode 100644
index 0000000..165bd15
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_bottom_inline-expected.txt
@@ -0,0 +1,101 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 424x48
+          text run at (0,0) width 416: ".one {padding-bottom: 25px; background-color: aqua;}"
+          text run at (416,0) width 0: " "
+          text run at (0,16) width 424: ".two {padding-bottom: -10px; background-color: aqua;}"
+          text run at (424,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x80 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 476x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 89: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 756x64 [bgcolor=#00FFFF]
+          LayoutText {#text} at (475,0) size 144x19
+            text run at (475,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (618,3) size 25x16
+              text run at (618,3) width 25: "one"
+          LayoutText {#text} at (642,0) size 756x39
+            text run at (642,0) width 114: ", giving it an aqua"
+            text run at (0,20) width 252: "background and a 25px bottom padding"
+        LayoutText {#text} at (252,20) size 781x59
+          text run at (252,20) width 8: ". "
+          text run at (260,20) width 505: "Padding on inline elements does not affect line-height calculations, so all lines in"
+          text run at (0,40) width 293: "this element should have the same line-height. "
+          text run at (293,40) width 488: "There may be implementation-specific limits on how much of the padding the"
+          text run at (0,60) width 176: "user agent is able to display."
+      LayoutBlockFlow {P} at (0,211) size 784x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 476x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 89: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 756x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (475,0) size 144x19
+            text run at (475,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (618,3) size 25x16
+              text run at (618,3) width 25: "two"
+          LayoutText {#text} at (642,0) size 756x39
+            text run at (642,0) width 114: ", giving it an aqua"
+            text run at (0,20) width 522: "background and no bottom padding, since negative padding values are not allowed"
+        LayoutText {#text} at (522,20) size 757x39
+          text run at (522,20) width 8: ". "
+          text run at (530,20) width 227: "Padding on inline elements does not"
+          text run at (0,40) width 567: "affect line-height calculations, so all lines in this element should have the same line-height."
+      LayoutTable {TABLE} at (0,287) size 784x194 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x192
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x164
+            LayoutTableCell {TD} at (0,96) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x164 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x80 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 476x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 89: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 756x64 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (475,0) size 144x19
+                    text run at (475,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (618,3) size 25x16
+                      text run at (618,3) width 25: "one"
+                  LayoutText {#text} at (642,0) size 756x39
+                    text run at (642,0) width 114: ", giving it an aqua"
+                    text run at (0,20) width 252: "background and a 25px bottom padding"
+                LayoutText {#text} at (252,20) size 749x59
+                  text run at (252,20) width 8: ". "
+                  text run at (260,20) width 489: "Padding on inline elements does not affect line-height calculations, so all lines"
+                  text run at (0,40) width 309: "in this element should have the same line-height. "
+                  text run at (309,40) width 410: "There may be implementation-specific limits on how much of the"
+                  text run at (0,60) width 254: "padding the user agent is able to display."
+              LayoutBlockFlow {P} at (4,100) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 476x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 89: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 756x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (475,0) size 144x19
+                    text run at (475,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (618,3) size 25x16
+                      text run at (618,3) width 25: "two"
+                  LayoutText {#text} at (642,0) size 756x39
+                    text run at (642,0) width 114: ", giving it an aqua"
+                    text run at (0,20) width 522: "background and no bottom padding, since negative padding values are not allowed"
+                LayoutText {#text} at (522,20) size 757x39
+                  text run at (522,20) width 8: ". "
+                  text run at (530,20) width 227: "Padding on inline elements does not"
+                  text run at (0,40) width 567: "affect line-height calculations, so all lines in this element should have the same line-height."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_inline-expected.txt
new file mode 100644
index 0000000..de24b3d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_inline-expected.txt
@@ -0,0 +1,127 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 809
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x809 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x809
+    LayoutBlockFlow {BODY} at (8,8) size 769x793 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 368x64
+          text run at (0,0) width 360: ".zero {background-color: silver; padding: 0;}"
+          text run at (360,0) width 0: " "
+          text run at (0,16) width 360: ".one {padding: 25px; background-color: aqua;}"
+          text run at (360,16) width 0: " "
+          text run at (0,32) width 368: ".two {padding: -10px; background-color: aqua;}"
+          text run at (368,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,167) size 769x120 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 476x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 89: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 747x89 [bgcolor=#00FFFF]
+          LayoutText {#text} at (500,0) size 144x19
+            text run at (500,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (643,3) size 25x16
+              text run at (643,3) width 25: "one"
+          LayoutText {#text} at (667,0) size 747x39
+            text run at (667,0) width 80: ", giving it an"
+            text run at (0,20) width 238: "aqua background and a 25px padding"
+        LayoutText {#text} at (263,20) size 765x99
+          text run at (263,20) width 8: ". "
+          text run at (271,20) width 489: "Padding on inline elements does not affect line-height calculations, so all lines"
+          text run at (0,40) width 309: "in this element should have the same line-height. "
+          text run at (309,40) width 410: "There may be implementation-specific limits on how much of the"
+          text run at (0,60) width 431: "padding the user agent is able to display above and below each line. "
+          text run at (431,60) width 334: "However, there should be at least 25px of padding to"
+          text run at (0,80) width 753: "the left side of the inline box in the first line it appears, and 25px of padding to the right side of the inline element box in"
+          text run at (0,100) width 182: "the last line where it appears."
+      LayoutBlockFlow {P} at (0,303) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,339) size 769x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 476x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 89: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 756x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (475,0) size 144x19
+            text run at (475,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (618,3) size 25x16
+              text run at (618,3) width 25: "two"
+          LayoutText {#text} at (642,0) size 756x39
+            text run at (642,0) width 114: ", giving it an aqua"
+            text run at (0,20) width 474: "background and no padding, since negative padding values are not allowed"
+        LayoutText {#text} at (474,20) size 748x39
+          text run at (474,20) width 8: ". "
+          text run at (482,20) width 266: "Padding on inline elements does not affect"
+          text run at (0,40) width 528: "line-height calculations, so all lines in this element should have the same line-height."
+      LayoutBlockFlow {P} at (0,415) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutTable {TABLE} at (0,451) size 769x342 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x340
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x312
+            LayoutTableCell {TD} at (0,170) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x312 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 747x120 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 476x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 89: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 747x89 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (500,0) size 144x19
+                    text run at (500,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (643,3) size 25x16
+                      text run at (643,3) width 25: "one"
+                  LayoutText {#text} at (667,0) size 747x39
+                    text run at (667,0) width 80: ", giving it an"
+                    text run at (0,20) width 238: "aqua background and a 25px padding"
+                LayoutText {#text} at (263,20) size 729x99
+                  text run at (263,20) width 8: ". "
+                  text run at (271,20) width 456: "Padding on inline elements does not affect line-height calculations, so all"
+                  text run at (0,40) width 342: "lines in this element should have the same line-height. "
+                  text run at (342,40) width 387: "There may be implementation-specific limits on how much of"
+                  text run at (0,60) width 454: "the padding the user agent is able to display above and below each line. "
+                  text run at (454,60) width 263: "However, there should be at least 25px of"
+                  text run at (0,80) width 727: "padding to the left side of the inline box in the first line it appears, and 25px of padding to the right side of the inline"
+                  text run at (0,100) width 279: "element box in the last line where it appears."
+              LayoutBlockFlow {P} at (4,176) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,212) size 747x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 476x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 89: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 722x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (475,0) size 144x19
+                    text run at (475,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (618,3) size 25x16
+                      text run at (618,3) width 25: "two"
+                  LayoutText {#text} at (642,0) size 722x39
+                    text run at (642,0) width 80: ", giving it an"
+                    text run at (0,20) width 508: "aqua background and no padding, since negative padding values are not allowed"
+                LayoutText {#text} at (508,20) size 743x39
+                  text run at (508,20) width 8: ". "
+                  text run at (516,20) width 227: "Padding on inline elements does not"
+                  text run at (0,40) width 567: "affect line-height calculations, so all lines in this element should have the same line-height."
+              LayoutBlockFlow {P} at (4,288) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_left-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_left-expected.txt
new file mode 100644
index 0000000..6fea302
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_left-expected.txt
@@ -0,0 +1,117 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1065
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1065 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1065
+    LayoutBlockFlow {BODY} at (8,8) size 769x1049 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 416x96
+          text run at (0,0) width 400: ".zero {background-color: silver; padding-left: 0;}"
+          text run at (400,0) width 0: " "
+          text run at (0,16) width 408: ".one {padding-left: 0.5in; background-color: aqua;}"
+          text run at (408,16) width 0: " "
+          text run at (0,32) width 400: ".two {padding-left: 25px; background-color: aqua;}"
+          text run at (400,32) width 0: " "
+          text run at (0,48) width 408: ".three {padding-left: 5em; background-color: aqua;}"
+          text run at (408,48) width 0: " "
+          text run at (0,64) width 400: ".four {padding-left: 25%; background-color: aqua;}"
+          text run at (400,64) width 0: " "
+          text run at (0,80) width 416: ".five {padding-left: -20px; background-color: aqua;}"
+          text run at (416,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,199) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (48,0) size 687x39
+          text run at (48,0) width 633: "This element should have a left padding of half an inch, which will require extra text in order to test. "
+          text run at (681,0) width 54: "Both the"
+          text run at (48,20) width 406: "content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,255) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (25,0) size 720x39
+          text run at (25,0) width 616: "This element should have a left padding of 25 pixels, which will require extra text in order to test. "
+          text run at (641,0) width 104: "Both the content"
+          text run at (25,20) width 356: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,311) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (80,0) size 640x39
+          text run at (80,0) width 586: "This element should have a left padding of 5em, which will require extra text in order to test. "
+          text run at (666,0) width 54: "Both the"
+          text run at (80,20) width 406: "content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,367) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (192,0) size 568x59
+          text run at (192,0) width 549: "This element should have a left padding of 25%, which is calculated with respect to the"
+          text run at (192,20) width 181: "width of the parent element. "
+          text run at (372,20) width 388: "Both the content background and the padding should be aqua"
+          text run at (192,40) width 74: "(light blue)."
+      LayoutBlockFlow {UL} at (0,443) size 769x80 [bgcolor=#808080]
+        LayoutListItem {LI} at (25,0) size 744x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 715x19
+            text run at (0,0) width 715: "The left padding on this unordered list has been set to 25 pixels, which will require some extra test in order to test."
+        LayoutListItem {LI} at (25,20) size 744x60 [bgcolor=#FFFFFF]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (25,0) size 712x59
+            text run at (25,0) width 712: "Another list item might not be such a bad idea, either, considering that such things do need to be double-checked."
+            text run at (25,20) width 696: "This list item has its left padding also set to 25 pixels, which should combine with the list's padding to make 50"
+            text run at (25,40) width 106: "pixels of margin."
+      LayoutBlockFlow {P} at (0,539) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 748x39
+          text run at (0,0) width 565: "This element should have no left padding, since negative padding values are not allowed. "
+          text run at (565,0) width 183: "Both the content background"
+          text run at (0,20) width 325: "and the normal padding should be aqua (light blue)."
+      LayoutTable {TABLE} at (0,595) size 769x454 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x452
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x424
+            LayoutTableCell {TD} at (0,226) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x424 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (48,0) size 687x39
+                  text run at (48,0) width 633: "This element should have a left padding of half an inch, which will require extra text in order to test. "
+                  text run at (681,0) width 54: "Both the"
+                  text run at (48,20) width 406: "content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,96) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (25,0) size 720x39
+                  text run at (25,0) width 616: "This element should have a left padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (641,0) width 104: "Both the content"
+                  text run at (25,20) width 356: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,152) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (80,0) size 640x39
+                  text run at (80,0) width 586: "This element should have a left padding of 5em, which will require extra text in order to test. "
+                  text run at (666,0) width 54: "Both the"
+                  text run at (80,20) width 406: "content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,208) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (186,0) size 549x59
+                  text run at (186,0) width 549: "This element should have a left padding of 25%, which is calculated with respect to the"
+                  text run at (186,20) width 181: "width of the parent element. "
+                  text run at (366,20) width 354: "Both the content background and the padding should be"
+                  text run at (186,40) width 108: "aqua (light blue)."
+              LayoutBlockFlow {UL} at (4,284) size 747x80 [bgcolor=#808080]
+                LayoutListItem {LI} at (25,0) size 722x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 715x19
+                    text run at (0,0) width 715: "The left padding on this unordered list has been set to 25 pixels, which will require some extra test in order to test."
+                LayoutListItem {LI} at (25,20) size 722x60 [bgcolor=#FFFFFF]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (25,0) size 682x59
+                    text run at (25,0) width 656: "Another list item might not be such a bad idea, either, considering that such things do need to be double-"
+                    text run at (25,20) width 60: "checked. "
+                    text run at (85,20) width 622: "This list item has its left padding also set to 25 pixels, which should combine with the list's padding"
+                    text run at (25,40) width 180: "to make 50 pixels of margin."
+              LayoutBlockFlow {P} at (4,380) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 669x39
+                  text run at (0,0) width 565: "This element should have no left padding, since negative padding values are not allowed. "
+                  text run at (565,0) width 104: "Both the content"
+                  text run at (0,20) width 404: "background and the normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_left_inline-expected.txt
new file mode 100644
index 0000000..25146a6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_left_inline-expected.txt
@@ -0,0 +1,103 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 408x48
+          text run at (0,0) width 400: ".one {padding-left: 25px; background-color: aqua;}"
+          text run at (400,0) width 0: " "
+          text run at (0,16) width 408: ".two {padding-left: -10px; background-color: aqua;}"
+          text run at (408,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 542x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 155: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 193x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (566,0) size 144x19
+            text run at (566,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (709,3) size 25x16
+              text run at (709,3) width 25: "one"
+        LayoutText {#text} at (733,0) size 777x39
+          text run at (733,0) width 44: " which"
+          text run at (0,20) width 527: "should result in 25-pixel left padding (which should also be a light blue) only in the "
+        LayoutInline {STRONG} at (0,0) size 27x19
+          LayoutText {#text} at (527,20) size 27x19
+            text run at (527,20) width 27: "first"
+        LayoutText {#text} at (554,20) size 730x39
+          text run at (554,20) width 176: " line in which the inline box"
+          text run at (0,40) width 52: "appears."
+      LayoutBlockFlow {P} at (0,191) size 784x40 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 542x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 155: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 168x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (541,0) size 144x19
+            text run at (541,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (684,3) size 25x16
+              text run at (684,3) width 25: "two"
+        LayoutText {#text} at (708,0) size 752x39
+          text run at (708,0) width 44: " which"
+          text run at (0,20) width 512: "should result in -10px left padding (which should also be a light blue) only in the "
+        LayoutInline {STRONG} at (0,0) size 27x19
+          LayoutText {#text} at (512,20) size 27x19
+            text run at (512,20) width 27: "first"
+        LayoutText {#text} at (539,20) size 232x19
+          text run at (539,20) width 232: " line in which the inline box appears."
+      LayoutTable {TABLE} at (0,247) size 784x174 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x172
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x144
+            LayoutTableCell {TD} at (0,86) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x144 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 542x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 155: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 193x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (566,0) size 144x19
+                    text run at (566,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (709,3) size 25x16
+                      text run at (709,3) width 25: "one"
+                LayoutText {#text} at (0,20) size 570x19
+                  text run at (0,20) width 570: "which should result in 25-pixel left padding (which should also be a light blue) only in the "
+                LayoutInline {STRONG} at (0,0) size 27x19
+                  LayoutText {#text} at (570,20) size 27x19
+                    text run at (570,20) width 27: "first"
+                LayoutText {#text} at (597,20) size 745x39
+                  text run at (597,20) width 148: " line in which the inline"
+                  text run at (0,40) width 80: "box appears."
+              LayoutBlockFlow {P} at (4,80) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 542x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 155: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 168x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (541,0) size 144x19
+                    text run at (541,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (684,3) size 25x16
+                      text run at (684,3) width 25: "two"
+                LayoutText {#text} at (708,0) size 752x39
+                  text run at (708,0) width 44: " which"
+                  text run at (0,20) width 512: "should result in -10px left padding (which should also be a light blue) only in the "
+                LayoutInline {STRONG} at (0,0) size 27x19
+                  LayoutText {#text} at (512,20) size 27x19
+                    text run at (512,20) width 27: "first"
+                LayoutText {#text} at (539,20) size 715x39
+                  text run at (539,20) width 176: " line in which the inline box"
+                  text run at (0,40) width 52: "appears."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_right-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_right-expected.txt
new file mode 100644
index 0000000..d318d8e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_right-expected.txt
@@ -0,0 +1,135 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1245
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1245 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1245
+    LayoutBlockFlow {BODY} at (8,8) size 769x1229 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 576x96
+          text run at (0,0) width 408: ".zero {background-color: silver; padding-right: 0;}"
+          text run at (408,0) width 0: " "
+          text run at (0,16) width 568: ".one {padding-right: 0.5in; text-align: right; background-color: aqua;}"
+          text run at (568,16) width 0: " "
+          text run at (0,32) width 560: ".two {padding-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (560,32) width 0: " "
+          text run at (0,48) width 568: ".three {padding-right: 5em; text-align: right; background-color: aqua;}"
+          text run at (568,48) width 0: " "
+          text run at (0,64) width 560: ".four {padding-right: 25%; text-align: right; background-color: aqua;}"
+          text run at (560,64) width 0: " "
+          text run at (0,80) width 576: ".five {padding-right: -20px; text-align: right; background-color: aqua;}"
+          text run at (576,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,199) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (25,0) size 712x59
+          text run at (25,0) width 642: "This element should have a right padding of half an inch, which will require extra text in order to test. "
+          text run at (667,0) width 54: "Both the"
+          text run at (9,20) width 410: "content background and the padding should be aqua (light blue). "
+          text run at (419,20) width 302: "The text has been right-aligned in order to make"
+          text run at (530,40) width 191: "the right padding easier to see."
+      LayoutBlockFlow {P} at (0,275) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (15,0) size 729x59
+          text run at (15,0) width 625: "This element should have a right padding of 25 pixels, which will require extra text in order to test. "
+          text run at (640,0) width 104: "Both the content"
+          text run at (26,20) width 360: "background and the padding should be aqua (light blue). "
+          text run at (386,20) width 358: "The text has been right-aligned in order to make the right"
+          text run at (609,40) width 135: "padding easier to see."
+      LayoutBlockFlow {P} at (0,351) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (36,0) size 674x59
+          text run at (36,0) width 599: "This element should have a right padding of 5 em, which will require extra text in order to test. "
+          text run at (635,0) width 54: "Both the"
+          text run at (15,20) width 410: "content background and the padding should be aqua (light blue). "
+          text run at (425,20) width 264: "The text has been right-aligned in order to"
+          text run at (460,40) width 229: "make the right padding easier to see."
+      LayoutBlockFlow {P} at (0,427) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (19,0) size 575x59
+          text run at (19,0) width 558: "This element should have a right padding of 25%, which is calculated with respect to the"
+          text run at (9,20) width 181: "width of the parent element. "
+          text run at (189,20) width 388: "Both the content background and the padding should be aqua"
+          text run at (2,40) width 78: "(light blue). "
+          text run at (79,40) width 498: "The text has been right-aligned in order to make the right padding easier to see."
+      LayoutBlockFlow {UL} at (0,503) size 769x80 [bgcolor=#808080]
+        LayoutListItem {LI} at (40,0) size 704x40
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (7,0) size 697x39
+            text run at (7,0) width 697: "The right padding on this unordered list has been set to 25 pixels, which will require some extra text in order to"
+            text run at (679,20) width 25: "test."
+        LayoutListItem {LI} at (40,40) size 704x40 [bgcolor=#FFFFFF]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (19,0) size 660x39
+            text run at (19,0) width 660: "This list item has a right padding of 25 pixels, which will appear to the left of the gray padding of the UL"
+            text run at (626,20) width 53: "element."
+      LayoutBlockFlow {P} at (0,599) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (12,0) size 757x59
+          text run at (12,0) width 574: "This element should have no right padding, since negative padding values are not allowed. "
+          text run at (586,0) width 183: "Both the content background"
+          text run at (35,20) width 329: "and the normal padding should be aqua (light blue). "
+          text run at (364,20) width 405: "The text has been right-aligned in order to make the lack of right"
+          text run at (634,40) width 135: "padding easier to see."
+      LayoutTable {TABLE} at (0,675) size 769x554 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x552
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x524
+            LayoutTableCell {TD} at (0,276) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x524 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (3,0) size 696x59
+                  text run at (3,0) width 642: "This element should have a right padding of half an inch, which will require extra text in order to test. "
+                  text run at (645,0) width 54: "Both the"
+                  text run at (25,20) width 410: "content background and the padding should be aqua (light blue). "
+                  text run at (435,20) width 264: "The text has been right-aligned in order to"
+                  text run at (470,40) width 229: "make the right padding easier to see."
+              LayoutBlockFlow {P} at (4,116) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (43,0) size 712x59
+                  text run at (43,0) width 625: "This element should have a right padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (668,0) width 54: "Both the"
+                  text run at (10,20) width 410: "content background and the padding should be aqua (light blue). "
+                  text run at (420,20) width 302: "The text has been right-aligned in order to make"
+                  text run at (531,40) width 191: "the right padding easier to see."
+              LayoutBlockFlow {P} at (4,192) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (14,0) size 658x59
+                  text run at (14,0) width 599: "This element should have a right padding of 5 em, which will require extra text in order to test. "
+                  text run at (613,0) width 54: "Both the"
+                  text run at (9,20) width 410: "content background and the padding should be aqua (light blue). "
+                  text run at (419,20) width 248: "The text has been right-aligned in order"
+                  text run at (422,40) width 245: "to make the right padding easier to see."
+              LayoutBlockFlow {P} at (4,268) size 747x80 [bgcolor=#00FFFF]
+                LayoutText {#text} at (3,0) size 558x79
+                  text run at (3,0) width 558: "This element should have a right padding of 25%, which is calculated with respect to the"
+                  text run at (27,20) width 181: "width of the parent element. "
+                  text run at (207,20) width 354: "Both the content background and the padding should be"
+                  text run at (36,40) width 112: "aqua (light blue). "
+                  text run at (147,40) width 414: "The text has been right-aligned in order to make the right padding"
+                  text run at (480,60) width 81: "easier to see."
+              LayoutBlockFlow {UL} at (4,364) size 747x80 [bgcolor=#808080]
+                LayoutListItem {LI} at (40,0) size 682x40
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (1,0) size 681x39
+                    text run at (1,0) width 681: "The right padding on this unordered list has been set to 25 pixels, which will require some extra text in order"
+                    text run at (641,20) width 41: "to test."
+                LayoutListItem {LI} at (40,40) size 682x40 [bgcolor=#FFFFFF]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (23,0) size 634x39
+                    text run at (23,0) width 634: "This list item has a right padding of 25 pixels, which will appear to the left of the gray padding of the"
+                    text run at (578,20) width 79: "UL element."
+              LayoutBlockFlow {P} at (4,460) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (69,0) size 733x59
+                  text run at (69,0) width 574: "This element should have no right padding, since negative padding values are not allowed. "
+                  text run at (643,0) width 104: "Both the content"
+                  text run at (14,20) width 408: "background and the normal padding should be aqua (light blue). "
+                  text run at (422,20) width 325: "The text has been right-aligned in order to make the"
+                  text run at (532,40) width 215: "lack of right padding easier to see."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_right_inline-expected.txt
new file mode 100644
index 0000000..4ed3e6b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_right_inline-expected.txt
@@ -0,0 +1,104 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 568x48
+          text run at (0,0) width 560: ".one {padding-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (560,0) width 0: " "
+          text run at (0,16) width 568: ".two {padding-right: -10px; text-align: right; background-color: aqua;}"
+          text run at (568,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x40 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 542x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 155: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 193x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (541,0) size 144x19
+            text run at (541,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (684,3) size 25x16
+              text run at (684,3) width 25: "one"
+        LayoutText {#text} at (733,0) size 781x39
+          text run at (733,0) width 48: ", which"
+          text run at (0,20) width 525: "should result in 25-pixel right padding (which should also be light blue) only in the "
+        LayoutInline {STRONG} at (0,0) size 23x19
+          LayoutText {#text} at (525,20) size 23x19
+            text run at (525,20) width 23: "last"
+        LayoutText {#text} at (548,20) size 232x19
+          text run at (548,20) width 232: " line in which the inline box appears."
+      LayoutBlockFlow {P} at (0,171) size 784x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 542x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 155: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 168x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (541,0) size 144x19
+            text run at (541,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (684,3) size 25x16
+              text run at (684,3) width 25: "two"
+        LayoutText {#text} at (708,0) size 756x39
+          text run at (708,0) width 48: ", which"
+          text run at (0,20) width 548: "should result in no right padding, since negative padding values are not allowed, in the "
+        LayoutInline {STRONG} at (0,0) size 23x19
+          LayoutText {#text} at (548,20) size 23x19
+            text run at (548,20) width 23: "last"
+        LayoutText {#text} at (571,20) size 747x39
+          text run at (571,20) width 176: " line in which the inline box"
+          text run at (0,40) width 52: "appears."
+      LayoutTable {TABLE} at (0,247) size 784x174 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x172
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x144
+            LayoutTableCell {TD} at (0,86) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x144 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 542x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 155: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 193x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (541,0) size 144x19
+                    text run at (541,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (684,3) size 25x16
+                      text run at (684,3) width 25: "one"
+                LayoutText {#text} at (733,0) size 738x39
+                  text run at (733,0) width 5: ","
+                  text run at (0,20) width 568: "which should result in 25-pixel right padding (which should also be light blue) only in the "
+                LayoutInline {STRONG} at (0,0) size 23x19
+                  LayoutText {#text} at (568,20) size 23x19
+                    text run at (568,20) width 23: "last"
+                LayoutText {#text} at (591,20) size 739x39
+                  text run at (591,20) width 148: " line in which the inline"
+                  text run at (0,40) width 80: "box appears."
+              LayoutBlockFlow {P} at (4,80) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 542x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 155: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 168x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (541,0) size 144x19
+                    text run at (541,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (684,3) size 25x16
+                      text run at (684,3) width 25: "two"
+                LayoutText {#text} at (708,0) size 756x39
+                  text run at (708,0) width 48: ", which"
+                  text run at (0,20) width 548: "should result in no right padding, since negative padding values are not allowed, in the "
+                LayoutInline {STRONG} at (0,0) size 23x19
+                  LayoutText {#text} at (548,20) size 23x19
+                    text run at (548,20) width 23: "last"
+                LayoutText {#text} at (571,20) size 747x39
+                  text run at (571,20) width 176: " line in which the inline box"
+                  text run at (0,40) width 52: "appears."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_top-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_top-expected.txt
new file mode 100644
index 0000000..f986bff7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_top-expected.txt
@@ -0,0 +1,93 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1518
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1518 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1518.25
+    LayoutBlockFlow {BODY} at (8,8) size 769x1502.25 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 408x96
+          text run at (0,0) width 392: ".zero {background-color: silver; padding-top: 0;}"
+          text run at (392,0) width 0: " "
+          text run at (0,16) width 400: ".one {padding-top: 0.5in; background-color: aqua;}"
+          text run at (400,16) width 0: " "
+          text run at (0,32) width 392: ".two {padding-top: 25px; background-color: aqua;}"
+          text run at (392,32) width 0: " "
+          text run at (0,48) width 400: ".three {padding-top: 5em; background-color: aqua;}"
+          text run at (400,48) width 0: " "
+          text run at (0,64) width 392: ".four {padding-top: 25%; background-color: aqua;}"
+          text run at (392,64) width 0: " "
+          text run at (0,80) width 408: ".five {padding-top: -20px; background-color: aqua;}"
+          text run at (408,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 203x19
+          text run at (0,0) width 203: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,199) size 769x88 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,48) size 737x39
+          text run at (0,48) width 633: "This element should have a top padding of half an inch, which will require extra text in order to test. "
+          text run at (633,48) width 104: "Both the content"
+          text run at (0,68) width 356: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,303) size 769x65 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,25) size 720x39
+          text run at (0,25) width 616: "This element should have a top padding of 25 pixels, which will require extra text in order to test. "
+          text run at (616,25) width 104: "Both the content"
+          text run at (0,45) width 356: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,384) size 769x120 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,80) size 694x39
+          text run at (0,80) width 590: "This element should have a top padding of 5 em, which will require extra text in order to test. "
+          text run at (590,80) width 104: "Both the content"
+          text run at (0,100) width 356: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,520) size 769x232.25 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,192) size 763x39
+          text run at (0,192) width 732: "This element should have a top padding of 25%, which is calculated with respect to the width of the parent element. "
+          text run at (732,192) width 31: "Both"
+          text run at (0,212) width 433: "the content background and the padding should be aqua (light blue). "
+          text run at (433,212) width 264: "This will require extra text in order to test."
+      LayoutBlockFlow {P} at (0,768.25) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 748x39
+          text run at (0,0) width 565: "This element should have no top padding, since negative padding values are not allowed. "
+          text run at (565,0) width 183: "Both the content background"
+          text run at (0,20) width 325: "and the normal padding should be aqua (light blue)."
+      LayoutTable {TABLE} at (0,824.25) size 769x678 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x676
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x648
+            LayoutTableCell {TD} at (0,338) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x647.75 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 203x19
+                  text run at (0,0) width 203: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 747x88 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,48) size 737x39
+                  text run at (0,48) width 633: "This element should have a top padding of half an inch, which will require extra text in order to test. "
+                  text run at (633,48) width 104: "Both the content"
+                  text run at (0,68) width 356: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,144) size 747x65 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,25) size 720x39
+                  text run at (0,25) width 616: "This element should have a top padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (616,25) width 104: "Both the content"
+                  text run at (0,45) width 356: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,225) size 747x120 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,80) size 694x39
+                  text run at (0,80) width 590: "This element should have a top padding of 5 em, which will require extra text in order to test. "
+                  text run at (590,80) width 104: "Both the content"
+                  text run at (0,100) width 356: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,361) size 747x226.75 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,187) size 732x39
+                  text run at (0,187) width 728: "This element should have a top padding of 25%, which is calculated with respect to the width of the parent element."
+                  text run at (0,207) width 468: "Both the content background and the padding should be aqua (light blue). "
+                  text run at (468,207) width 264: "This will require extra text in order to test."
+              LayoutBlockFlow {P} at (4,603.75) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 669x39
+                  text run at (0,0) width 565: "This element should have no top padding, since negative padding values are not allowed. "
+                  text run at (565,0) width 104: "Both the content"
+                  text run at (0,20) width 404: "background and the normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_top_inline-expected.txt
new file mode 100644
index 0000000..643a2d8f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/padding_top_inline-expected.txt
@@ -0,0 +1,101 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 400x48
+          text run at (0,0) width 392: ".one {padding-top: 25px; background-color: aqua;}"
+          text run at (392,0) width 0: " "
+          text run at (0,16) width 400: ".two {padding-top: -10px; background-color: aqua;}"
+          text run at (400,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x80 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 476x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 89: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 756x64 [bgcolor=#00FFFF]
+          LayoutText {#text} at (475,0) size 144x19
+            text run at (475,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (618,3) size 25x16
+              text run at (618,3) width 25: "one"
+          LayoutText {#text} at (642,0) size 756x39
+            text run at (642,0) width 114: ", giving it an aqua"
+            text run at (0,20) width 228: "background and a 25px top padding"
+        LayoutText {#text} at (228,20) size 767x59
+          text run at (228,20) width 8: ". "
+          text run at (236,20) width 531: "Padding on inline elements does not affect line-height calculations, so all lines in this"
+          text run at (0,40) width 267: "element should have the same line-height. "
+          text run at (267,40) width 488: "There may be implementation-specific limits on how much of the padding the"
+          text run at (0,60) width 176: "user agent is able to display."
+      LayoutBlockFlow {P} at (0,211) size 784x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 476x19
+          text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+          text run at (387,0) width 89: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 756x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (475,0) size 144x19
+            text run at (475,0) width 144: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (618,3) size 25x16
+              text run at (618,3) width 25: "two"
+          LayoutText {#text} at (642,0) size 756x39
+            text run at (642,0) width 114: ", giving it an aqua"
+            text run at (0,20) width 498: "background and no top padding, since negative padding values are not allowed"
+        LayoutText {#text} at (498,20) size 772x39
+          text run at (498,20) width 8: ". "
+          text run at (506,20) width 266: "Padding on inline elements does not affect"
+          text run at (0,40) width 528: "line-height calculations, so all lines in this element should have the same line-height."
+      LayoutTable {TABLE} at (0,287) size 784x194 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x192
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x164
+            LayoutTableCell {TD} at (0,96) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x164 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x80 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 476x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 89: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 756x64 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (475,0) size 144x19
+                    text run at (475,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (618,3) size 25x16
+                      text run at (618,3) width 25: "one"
+                  LayoutText {#text} at (642,0) size 756x39
+                    text run at (642,0) width 114: ", giving it an aqua"
+                    text run at (0,20) width 228: "background and a 25px top padding"
+                LayoutText {#text} at (228,20) size 758x59
+                  text run at (228,20) width 8: ". "
+                  text run at (236,20) width 505: "Padding on inline elements does not affect line-height calculations, so all lines in"
+                  text run at (0,40) width 293: "this element should have the same line-height. "
+                  text run at (293,40) width 465: "There may be implementation-specific limits on how much of the padding"
+                  text run at (0,60) width 199: "the user agent is able to display."
+              LayoutBlockFlow {P} at (4,100) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 476x19
+                  text run at (0,0) width 388: "This element is unstyled save for a background color of gray. "
+                  text run at (387,0) width 89: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 756x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (475,0) size 144x19
+                    text run at (475,0) width 144: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (618,3) size 25x16
+                      text run at (618,3) width 25: "two"
+                  LayoutText {#text} at (642,0) size 756x39
+                    text run at (642,0) width 114: ", giving it an aqua"
+                    text run at (0,20) width 498: "background and no top padding, since negative padding values are not allowed"
+                LayoutText {#text} at (498,20) size 733x39
+                  text run at (498,20) width 8: ". "
+                  text run at (506,20) width 227: "Padding on inline elements does not"
+                  text run at (0,40) width 567: "affect line-height calculations, so all lines in this element should have the same line-height."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/width-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/width-expected.txt
new file mode 100644
index 0000000..c056d92
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/box_properties/width-expected.txt
@@ -0,0 +1,87 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1391
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1391 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1391
+    LayoutBlockFlow {BODY} at (8,8) size 769x1375 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x48
+        LayoutText {#text} at (0,0) size 152x48
+          text run at (0,0) width 152: ".one {width: 50px;}"
+          text run at (152,0) width 0: " "
+          text run at (0,16) width 144: ".two {width: 50%;}"
+          text run at (144,16) width 0: " "
+          text run at (0,32) width 152: "TABLE {width: 50%;}"
+          text run at (152,32) width 0: " "
+      LayoutBlockFlow (anonymous) at (0,107) size 769x50
+        LayoutImage {IMG} at (0,0) size 50x50
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,173) size 769x20
+        LayoutText {#text} at (0,0) size 287x19
+          text run at (0,0) width 287: "The square above should be fifty pixels wide."
+      LayoutBlockFlow (anonymous) at (0,209) size 769x385
+        LayoutImage {IMG} at (0,0) size 384.50x384.50
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,610) size 769x20
+        LayoutText {#text} at (0,0) size 671x19
+          text run at (0,0) width 671: "The square above should be half as wide as the image's parent element (either the BODY or the table cell)."
+      LayoutBlockFlow {P} at (0,646) size 384.50x100
+        LayoutText {#text} at (0,0) size 382x79
+          text run at (0,0) width 382: "This paragraph should be half the width of its parent element"
+          text run at (0,20) width 379: "(either the BODY or the table, which should itself be half as"
+          text run at (0,40) width 188: "wide as the BODY element). "
+          text run at (188,40) width 178: "This is extra text included to"
+          text run at (0,60) width 246: "ensure that this will be a fair test of the "
+        LayoutInline {CODE} at (0,0) size 40x16
+          LayoutText {#text} at (246,63) size 40x16
+            text run at (246,63) width 40: "width"
+        LayoutText {#text} at (286,60) size 373x39
+          text run at (286,60) width 57: " property"
+          text run at (0,80) width 373: "without the need for the user to resize the viewing window."
+      LayoutTable {TABLE} at (0,762) size 384x613 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 382x611
+          LayoutTableRow {TR} at (0,0) size 382x28
+            LayoutTableCell {TD} at (0,0) size 382x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 382x583
+            LayoutTableCell {TD} at (0,305) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 370x583 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (4,4) size 362x50
+                LayoutImage {IMG} at (0,0) size 50x50
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,70) size 362x20
+                LayoutText {#text} at (0,0) size 287x19
+                  text run at (0,0) width 287: "The square above should be fifty pixels wide."
+              LayoutBlockFlow (anonymous) at (4,106) size 362x181
+                LayoutImage {IMG} at (0,0) size 181x181
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,303) size 362x40
+                LayoutText {#text} at (0,0) size 348x39
+                  text run at (0,0) width 348: "The square above should be half as wide as the image's"
+                  text run at (0,20) width 319: "parent element (either the BODY or the table cell)."
+              LayoutBlockFlow {P} at (4,359) size 181x220
+                LayoutText {#text} at (0,0) size 177x179
+                  text run at (0,0) width 160: "This paragraph should be"
+                  text run at (0,20) width 165: "half the width of its parent"
+                  text run at (0,40) width 167: "element (either the BODY"
+                  text run at (0,60) width 163: "or the table, which should"
+                  text run at (0,80) width 169: "itself be half as wide as the"
+                  text run at (0,100) width 113: "BODY element). "
+                  text run at (113,100) width 42: "This is"
+                  text run at (0,120) width 177: "extra text included to ensure"
+                  text run at (0,140) width 174: "that this will be a fair test of"
+                  text run at (0,160) width 23: "the "
+                LayoutInline {CODE} at (0,0) size 40x16
+                  LayoutText {#text} at (23,163) size 40x16
+                    text run at (23,163) width 40: "width"
+                LayoutText {#text} at (63,160) size 173x59
+                  text run at (63,160) width 109: " property without"
+                  text run at (0,180) width 144: "the need for the user to"
+                  text run at (0,200) width 173: "resize the viewing window."
+layer at (8,105) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/cascade/cascade_order-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/cascade/cascade_order-expected.txt
new file mode 100644
index 0000000..c6fb7ba60
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/cascade/cascade_order-expected.txt
@@ -0,0 +1,143 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 849
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x849 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x849
+    LayoutBlockFlow {BODY} at (8,8) size 769x833 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x176
+        LayoutText {#text} at (0,0) size 576x176
+          text run at (0,0) width 576: "<LINK rel=\"stylesheet\" type=\"text/css\" HREF=\"../resources/linktest.css\">"
+          text run at (576,0) width 0: " "
+          text run at (0,16) width 152: "LI {color: purple;}"
+          text run at (152,16) width 0: " "
+          text run at (0,32) width 160: "UL LI {color: blue;}"
+          text run at (160,32) width 0: " "
+          text run at (0,48) width 184: "UL LI LI {color: gray;}"
+          text run at (184,48) width 0: " "
+          text run at (0,64) width 176: "LI.red {color: green;}"
+          text run at (176,64) width 0: " "
+          text run at (0,80) width 216: "UL LI.mar {color: #660000;}"
+          text run at (216,80) width 0: " "
+          text run at (0,96) width 200: "UL LI#gre {color: green;}"
+          text run at (200,96) width 0: " "
+          text run at (0,112) width 160: ".test {color: blue;}"
+          text run at (160,112) width 0: " "
+          text run at (0,128) width 176: ".test {color: purple;}"
+          text run at (176,128) width 0: " "
+          text run at (0,144) width 296: ".one {text-decoration: line-through;}"
+          text run at (296,144) width 0: " "
+          text run at (0,160) width 0: " "
+      LayoutBlockFlow {UL} at (0,243) size 769x160
+        LayoutListItem {LI} at (40,0) size 729x20 [color=#0000FF]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 189x19
+            text run at (0,0) width 189: "This list item should be blue..."
+        LayoutListItem {LI} at (40,20) size 729x80 [color=#0000FF]
+          LayoutBlockFlow (anonymous) at (0,0) size 729x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 289x19
+              text run at (0,0) width 289: "...and so should this; neither should be purple."
+          LayoutBlockFlow {UL} at (0,20) size 729x60
+            LayoutListItem {LI} at (40,0) size 689x20 [color=#808080]
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 189x19
+                text run at (0,0) width 189: "This list item should be gray..."
+            LayoutListItem {LI} at (40,20) size 689x20 [color=#808080]
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 113x19
+                text run at (0,0) width 113: "...as should this...."
+            LayoutListItem {LI} at (40,40) size 689x20 [color=#008000]
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 193x19
+                text run at (0,0) width 193: "...but this one should be green."
+        LayoutListItem {LI} at (40,100) size 729x20 [color=#660000]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 171x19
+            text run at (0,0) width 171: "This ought to be dark red..."
+        LayoutListItem {LI} at (40,120) size 729x20 [color=#008000]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 85x19
+            text run at (0,0) width 85: "...this green..."
+        LayoutListItem {LI} at (40,140) size 729x20 [color=#0000FF]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 96x19
+            text run at (0,0) width 96: "...and this blue."
+      LayoutBlockFlow {P} at (0,419) size 769x20 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 279x19
+          text run at (0,0) width 279: "This sentence should be blue (STYLE attr.)."
+      LayoutBlockFlow {P} at (0,455) size 769x20 [color=#800080]
+        LayoutText {#text} at (0,0) size 204x19
+          text run at (0,0) width 204: "This sentence should be purple ["
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (204,3) size 96x16
+            text run at (204,3) width 96: "class=\"test\""
+        LayoutText {#text} at (300,0) size 9x19
+          text run at (300,0) width 9: "]."
+      LayoutBlockFlow {P} at (0,491) size 769x20
+        LayoutText {#text} at (0,0) size 683x19
+          text run at (0,0) width 683: "This text should be stricken (overriding the imported underline; only works if LINKed sheets are supported)."
+      LayoutTable {TABLE} at (0,527) size 705x306 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 703x304
+          LayoutTableRow {TR} at (0,0) size 703x28
+            LayoutTableCell {TD} at (0,0) size 703x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 703x276
+            LayoutTableCell {TD} at (0,152) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 691x276 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {UL} at (4,4) size 683x160
+                LayoutListItem {LI} at (40,0) size 643x20 [color=#0000FF]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 189x19
+                    text run at (0,0) width 189: "This list item should be blue..."
+                LayoutListItem {LI} at (40,20) size 643x80 [color=#0000FF]
+                  LayoutBlockFlow (anonymous) at (0,0) size 643x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 289x19
+                      text run at (0,0) width 289: "...and so should this; neither should be purple."
+                  LayoutBlockFlow {UL} at (0,20) size 643x60
+                    LayoutListItem {LI} at (40,0) size 603x20 [color=#808080]
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 189x19
+                        text run at (0,0) width 189: "This list item should be gray..."
+                    LayoutListItem {LI} at (40,20) size 603x20 [color=#808080]
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 113x19
+                        text run at (0,0) width 113: "...as should this...."
+                    LayoutListItem {LI} at (40,40) size 603x20 [color=#008000]
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 193x19
+                        text run at (0,0) width 193: "...but this one should be green."
+                LayoutListItem {LI} at (40,100) size 643x20 [color=#660000]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 171x19
+                    text run at (0,0) width 171: "This ought to be dark red..."
+                LayoutListItem {LI} at (40,120) size 643x20 [color=#008000]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 85x19
+                    text run at (0,0) width 85: "...this green..."
+                LayoutListItem {LI} at (40,140) size 643x20 [color=#0000FF]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 96x19
+                    text run at (0,0) width 96: "...and this blue."
+              LayoutBlockFlow {P} at (4,180) size 683x20 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 279x19
+                  text run at (0,0) width 279: "This sentence should be blue (STYLE attr.)."
+              LayoutBlockFlow {P} at (4,216) size 683x20 [color=#800080]
+                LayoutText {#text} at (0,0) size 204x19
+                  text run at (0,0) width 204: "This sentence should be purple ["
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (204,3) size 96x16
+                    text run at (204,3) width 96: "class=\"test\""
+                LayoutText {#text} at (300,0) size 9x19
+                  text run at (300,0) width 9: "]."
+              LayoutBlockFlow {P} at (4,252) size 683x20
+                LayoutText {#text} at (0,0) size 683x19
+                  text run at (0,0) width 683: "This text should be stricken (overriding the imported underline; only works if LINKed sheets are supported)."
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/cascade/important-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/cascade/important-expected.txt
new file mode 100644
index 0000000..56bb801
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/cascade/important-expected.txt
@@ -0,0 +1,69 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 232x64
+          text run at (0,0) width 232: "P {color: green ! important;}"
+          text run at (232,0) width 0: " "
+          text run at (0,16) width 120: "P {color: red;}"
+          text run at (120,16) width 0: " "
+          text run at (0,32) width 176: "P#id1 {color: purple;}"
+          text run at (176,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 784x40 [color=#008000]
+        LayoutText {#text} at (0,0) size 767x39
+          text run at (0,0) width 767: "This sentence should be green, because the declaration marked important should override any other normal declaration for"
+          text run at (0,20) width 355: "the same element, even if it occurs later in the stylesheet."
+      LayoutBlockFlow {P} at (0,187) size 784x40 [color=#008000]
+        LayoutText {#text} at (0,0) size 403x19
+          text run at (0,0) width 403: "This sentence should also be green, even though it has an ID of "
+        LayoutInline {TT} at (0,0) size 24x16
+          LayoutText {#text} at (403,3) size 24x16
+            text run at (403,3) width 24: "id1"
+        LayoutText {#text} at (427,0) size 781x39
+          text run at (427,0) width 258: ", which would ordinarily make it purple. "
+          text run at (685,0) width 96: "This is because"
+          text run at (0,20) width 645: "declarations marked important have more weight than normal declarations given in a STYLE attribute."
+      LayoutBlockFlow {P} at (0,243) size 784x40 [color=#008000]
+        LayoutText {#text} at (0,0) size 779x39
+          text run at (0,0) width 604: "This sentence should also be green, even though it has a STYLE attribute declaring it to be red. "
+          text run at (604,0) width 175: "This is because declarations"
+          text run at (0,20) width 566: "marked important have more weight than normal declarations given in a STYLE attribute."
+      LayoutTable {TABLE} at (0,299) size 784x190 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x188
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x160
+            LayoutTableCell {TD} at (0,94) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x160 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x40 [color=#008000]
+                LayoutText {#text} at (0,0) size 745x39
+                  text run at (0,0) width 745: "This sentence should be green, because the declaration marked important should override any other normal declaration"
+                  text run at (0,20) width 377: "for the same element, even if it occurs later in the stylesheet."
+              LayoutBlockFlow {P} at (4,60) size 762x40 [color=#008000]
+                LayoutText {#text} at (0,0) size 403x19
+                  text run at (0,0) width 403: "This sentence should also be green, even though it has an ID of "
+                LayoutInline {TT} at (0,0) size 24x16
+                  LayoutText {#text} at (403,3) size 24x16
+                    text run at (403,3) width 24: "id1"
+                LayoutText {#text} at (427,0) size 727x39
+                  text run at (427,0) width 258: ", which would ordinarily make it purple. "
+                  text run at (685,0) width 42: "This is"
+                  text run at (0,20) width 699: "because declarations marked important have more weight than normal declarations given in a STYLE attribute."
+              LayoutBlockFlow {P} at (4,116) size 762x40 [color=#008000]
+                LayoutText {#text} at (0,0) size 700x39
+                  text run at (0,0) width 604: "This sentence should also be green, even though it has a STYLE attribute declaring it to be red. "
+                  text run at (604,0) width 96: "This is because"
+                  text run at (0,20) width 645: "declarations marked important have more weight than normal declarations given in a STYLE attribute."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/display-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/display-expected.txt
new file mode 100644
index 0000000..f511b8e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/display-expected.txt
@@ -0,0 +1,132 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 873
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x873 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x873
+    LayoutBlockFlow {BODY} at (8,8) size 769x857 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x80
+        LayoutText {#text} at (0,0) size 568x80
+          text run at (0,0) width 176: ".one {display: block;}"
+          text run at (176,0) width 0: " "
+          text run at (0,16) width 184: ".two {display: inline;}"
+          text run at (184,16) width 0: " "
+          text run at (0,32) width 568: ".three {display: list-item; list-style-type: square; margin-left: 3em;}"
+          text run at (568,32) width 0: " "
+          text run at (0,48) width 272: ".four {display: none; color: red;}"
+          text run at (272,48) width 0: " "
+          text run at (0,64) width 152: "I {display: block;}"
+          text run at (152,64) width 0: " "
+      LayoutBlockFlow {P} at (0,147) size 769x20
+        LayoutText {#text} at (0,0) size 293x19
+          text run at (0,0) width 293: "This sentence should be a block-level element."
+      LayoutBlockFlow (anonymous) at (0,183) size 769x60
+        LayoutInline {P} at (0,0) size 448x19
+          LayoutText {#text} at (0,0) size 448x19
+            text run at (0,0) width 448: "This sentence should be part of an inline element, as are the next three. "
+        LayoutInline {P} at (0,0) size 766x59
+          LayoutText {#text} at (448,0) size 766x59
+            text run at (448,0) width 274: "This sentence and the next two are part of a"
+            text run at (0,20) width 144: "second inline element. "
+            text run at (144,20) width 622: "They should therefore appear, along with the sentence above, to be all one paragraph which is four"
+            text run at (0,40) width 100: "sentences long. "
+            text run at (100,40) width 250: "If this is not the case, then the keyword "
+          LayoutInline {CODE} at (0,0) size 48x16
+            LayoutText {#text} at (350,43) size 48x16
+              text run at (350,43) width 48: "inline"
+          LayoutText {#text} at (398,40) size 109x19
+            text run at (398,40) width 109: " is being ignored."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutListItem {P} at (48,259) size 721x60
+        LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+        LayoutText {#text} at (0,0) size 715x39
+          text run at (0,0) width 715: "This sentence should be treated as a list-item, and therefore be rendered however this user agent displays list items"
+          text run at (0,20) width 18: "(if "
+        LayoutInline {CODE} at (0,0) size 120x16
+          LayoutText {#text} at (18,23) size 120x16
+            text run at (18,23) width 120: "list-style-type"
+        LayoutText {#text} at (138,20) size 721x39
+          text run at (138,20) width 359: " is supported, there will be a square for the item marker). "
+          text run at (497,20) width 224: "A 3em left margin has been applied"
+          text run at (0,40) width 376: "in order to ensure that there is space for the list-item marker."
+      LayoutBlockFlow {P} at (0,335) size 769x20
+        LayoutText {#text} at (0,0) size 456x19
+          text run at (0,0) width 456: "The next paragraph should be invisible (if it's visible, you'll see red text)."
+      LayoutBlockFlow {P} at (0,371) size 769x20
+        LayoutText {#text} at (0,0) size 247x19
+          text run at (0,0) width 247: "There should be no text after the colon:"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,407) size 769x60
+        LayoutBlockFlow (anonymous) at (0,0) size 769x20
+          LayoutText {#text} at (0,0) size 112x19
+            text run at (0,0) width 112: "The italicized text"
+        LayoutBlockFlow {I} at (0,20) size 769x20
+          LayoutText {#text} at (0,0) size 110x19
+            text run at (0,0) width 110: "in this paragraph"
+        LayoutBlockFlow (anonymous) at (0,40) size 769x20
+          LayoutText {#text} at (0,0) size 203x19
+            text run at (0,0) width 203: "should be a block-level element."
+      LayoutTable {TABLE} at (0,483) size 769x374 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x372
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x344
+            LayoutTableCell {TD} at (0,186) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x344 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 293x19
+                  text run at (0,0) width 293: "This sentence should be a block-level element."
+              LayoutBlockFlow (anonymous) at (4,40) size 747x60
+                LayoutInline {P} at (0,0) size 448x19
+                  LayoutText {#text} at (0,0) size 448x19
+                    text run at (0,0) width 448: "This sentence should be part of an inline element, as are the next three. "
+                LayoutInline {P} at (0,0) size 736x59
+                  LayoutText {#text} at (448,0) size 736x59
+                    text run at (448,0) width 274: "This sentence and the next two are part of a"
+                    text run at (0,20) width 144: "second inline element. "
+                    text run at (144,20) width 592: "They should therefore appear, along with the sentence above, to be all one paragraph which is"
+                    text run at (0,40) width 130: "four sentences long. "
+                    text run at (130,40) width 250: "If this is not the case, then the keyword "
+                  LayoutInline {CODE} at (0,0) size 48x16
+                    LayoutText {#text} at (380,43) size 48x16
+                      text run at (380,43) width 48: "inline"
+                  LayoutText {#text} at (428,40) size 109x19
+                    text run at (428,40) width 109: " is being ignored."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutListItem {P} at (52,116) size 699x60
+                LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+                LayoutText {#text} at (0,0) size 678x39
+                  text run at (0,0) width 678: "This sentence should be treated as a list-item, and therefore be rendered however this user agent displays list"
+                  text run at (0,20) width 55: "items (if "
+                LayoutInline {CODE} at (0,0) size 120x16
+                  LayoutText {#text} at (55,23) size 120x16
+                    text run at (55,23) width 120: "list-style-type"
+                LayoutText {#text} at (175,20) size 674x39
+                  text run at (175,20) width 359: " is supported, there will be a square for the item marker). "
+                  text run at (534,20) width 140: "A 3em left margin has"
+                  text run at (0,40) width 460: "been applied in order to ensure that there is space for the list-item marker."
+              LayoutBlockFlow {P} at (4,192) size 747x20
+                LayoutText {#text} at (0,0) size 456x19
+                  text run at (0,0) width 456: "The next paragraph should be invisible (if it's visible, you'll see red text)."
+              LayoutBlockFlow {P} at (4,228) size 747x20
+                LayoutText {#text} at (0,0) size 247x19
+                  text run at (0,0) width 247: "There should be no text after the colon:"
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,264) size 747x60
+                LayoutBlockFlow (anonymous) at (0,0) size 747x20
+                  LayoutText {#text} at (0,0) size 112x19
+                    text run at (0,0) width 112: "The italicized text"
+                LayoutBlockFlow {I} at (0,20) size 747x20
+                  LayoutText {#text} at (0,0) size 110x19
+                    text run at (0,0) width 110: "in this paragraph"
+                LayoutBlockFlow (anonymous) at (0,40) size 747x20
+                  LayoutText {#text} at (0,0) size 203x19
+                    text run at (0,0) width 203: "should be a block-level element."
+layer at (8,137) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,129) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/list_style-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/list_style-expected.txt
new file mode 100644
index 0000000..4c4676f5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/list_style-expected.txt
@@ -0,0 +1,54 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x32
+        LayoutText {#text} at (0,0) size 496x32
+          text run at (0,0) width 304: ".one {list-style: upper-alpha inside;}"
+          text run at (304,0) width 0: " "
+          text run at (0,16) width 496: ".two {list-style: url(../resources/oransqr.gif) disc outside;}"
+          text run at (496,16) width 0: " "
+      LayoutBlockFlow {UL} at (0,99) size 784x40
+        LayoutListItem {LI} at (40,0) size 744x40
+          LayoutListMarker (anonymous) at (0,0) size 20x19: "A"
+          LayoutText {#text} at (20,0) size 731x39
+            text run at (20,0) width 711: "The text in this item should not behave as expected; that is, it should line up with the capital-A on the left margin,"
+            text run at (0,20) width 286: "leaving no blank space beneath the capital-A."
+      LayoutBlockFlow {UL} at (0,155) size 784x40
+        LayoutListItem {LI} at (40,0) size 744x40
+          LayoutListMarker (anonymous) at (-22,0) size 15x15
+          LayoutText {#text} at (0,0) size 736x39
+            text run at (0,0) width 476: "The text in this item have an orange square for its bullet; failing that, a disc. "
+            text run at (476,0) width 260: "Also, the bullet should be outside the text"
+            text run at (0,20) width 256: "block, as the list has been set to 'outside'."
+      LayoutTable {TABLE} at (0,211) size 784x150 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x148
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x120
+            LayoutTableCell {TD} at (0,74) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x120 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {UL} at (4,4) size 762x40
+                LayoutListItem {LI} at (40,0) size 722x40
+                  LayoutListMarker (anonymous) at (0,0) size 20x19: "A"
+                  LayoutText {#text} at (20,0) size 679x39
+                    text run at (20,0) width 659: "The text in this item should not behave as expected; that is, it should line up with the capital-A on the left"
+                    text run at (0,20) width 338: "margin, leaving no blank space beneath the capital-A."
+              LayoutBlockFlow {UL} at (4,60) size 762x40
+                LayoutListItem {LI} at (40,0) size 722x40
+                  LayoutListMarker (anonymous) at (-22,0) size 15x15
+                  LayoutText {#text} at (0,0) size 709x39
+                    text run at (0,0) width 476: "The text in this item have an orange square for its bullet; failing that, a disc. "
+                    text run at (476,0) width 233: "Also, the bullet should be outside the"
+                    text run at (0,20) width 283: "text block, as the list has been set to 'outside'."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/list_style_image-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/list_style_image-expected.txt
new file mode 100644
index 0000000..b2b4173
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/list_style_image-expected.txt
@@ -0,0 +1,81 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 440x48
+          text run at (0,0) width 440: ".one {list-style-image: url(../resources/oransqr.gif);}"
+          text run at (440,0) width 0: " "
+          text run at (0,16) width 240: ".two {list-style-image: none;}"
+          text run at (240,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {UL} at (0,115) size 784x60
+        LayoutListItem {LI} at (40,0) size 744x20
+          LayoutListMarker (anonymous) at (-22,0) size 15x15
+          LayoutText {#text} at (0,0) size 62x19
+            text run at (0,0) width 62: "This list..."
+        LayoutListItem {LI} at (40,20) size 744x20
+          LayoutListMarker (anonymous) at (-22,0) size 15x15
+          LayoutText {#text} at (0,0) size 113x19
+            text run at (0,0) width 113: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 744x20
+          LayoutListMarker (anonymous) at (-22,0) size 15x15
+          LayoutText {#text} at (0,0) size 146x19
+            text run at (0,0) width 146: "...images for each item."
+      LayoutBlockFlow {UL} at (0,191) size 784x60
+        LayoutListItem {LI} at (40,0) size 744x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 62x19
+            text run at (0,0) width 62: "This list..."
+        LayoutListItem {LI} at (40,20) size 744x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 113x19
+            text run at (0,0) width 113: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 744x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 231x19
+            text run at (0,0) width 231: "...standard list markers for each item."
+      LayoutTable {TABLE} at (0,267) size 293x190 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 291x188
+          LayoutTableRow {TR} at (0,0) size 291x28
+            LayoutTableCell {TD} at (0,0) size 291x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 291x160
+            LayoutTableCell {TD} at (0,94) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 279x160 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {UL} at (4,4) size 271x60
+                LayoutListItem {LI} at (40,0) size 231x20
+                  LayoutListMarker (anonymous) at (-22,0) size 15x15
+                  LayoutText {#text} at (0,0) size 62x19
+                    text run at (0,0) width 62: "This list..."
+                LayoutListItem {LI} at (40,20) size 231x20
+                  LayoutListMarker (anonymous) at (-22,0) size 15x15
+                  LayoutText {#text} at (0,0) size 113x19
+                    text run at (0,0) width 113: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 231x20
+                  LayoutListMarker (anonymous) at (-22,0) size 15x15
+                  LayoutText {#text} at (0,0) size 146x19
+                    text run at (0,0) width 146: "...images for each item."
+              LayoutBlockFlow {UL} at (4,80) size 271x60
+                LayoutListItem {LI} at (40,0) size 231x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 62x19
+                    text run at (0,0) width 62: "This list..."
+                LayoutListItem {LI} at (40,20) size 231x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 113x19
+                    text run at (0,0) width 113: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 231x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 231x19
+                    text run at (0,0) width 231: "...standard list markers for each item."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/list_style_position-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/list_style_position-expected.txt
index 27118d1..98bde63 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/list_style_position-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/list_style_position-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 280: ".two {list-style-position: inside;}"
           text run at (280,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,115) size 784x40
         LayoutListItem {LI} at (40,0) size 744x40
           LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
@@ -50,3 +49,5 @@
                   LayoutText {#text} at (22,0) size 710x39
                     text run at (22,0) width 688: "The text in this item should not behave as expected; that is, it should line up with the bullet on the left margin,"
                     text run at (0,20) width 263: "leaving no blank space beneath the bullet."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/list_style_type-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/list_style_type-expected.txt
new file mode 100644
index 0000000..387eec5d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/list_style_type-expected.txt
@@ -0,0 +1,271 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1649
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1649 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1649
+    LayoutBlockFlow {BODY} at (8,8) size 769x1633 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x160
+        LayoutText {#text} at (0,0) size 304x160
+          text run at (0,0) width 232: ".one {list-style-type: disc;}"
+          text run at (232,0) width 0: " "
+          text run at (0,16) width 248: ".two {list-style-type: circle;}"
+          text run at (248,16) width 0: " "
+          text run at (0,32) width 264: ".three {list-style-type: square;}"
+          text run at (264,32) width 0: " "
+          text run at (0,48) width 296: ".four {list-style-type: lower-roman;}"
+          text run at (296,48) width 0: " "
+          text run at (0,64) width 296: ".five {list-style-type: upper-roman;}"
+          text run at (296,64) width 0: " "
+          text run at (0,80) width 288: ".six {list-style-type: lower-alpha;}"
+          text run at (288,80) width 0: " "
+          text run at (0,96) width 304: ".seven {list-style-type: upper-alpha;}"
+          text run at (304,96) width 0: " "
+          text run at (0,112) width 272: ".eight {list-style-type: decimal;}"
+          text run at (272,112) width 0: " "
+          text run at (0,128) width 240: ".nine {list-style-type: none;}"
+          text run at (240,128) width 0: " "
+          text run at (0,144) width 0: " "
+      LayoutBlockFlow {UL} at (0,227) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 62x19
+            text run at (0,0) width 62: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 113x19
+            text run at (0,0) width 113: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 133x19
+            text run at (0,0) width 133: "...discs for each item."
+      LayoutBlockFlow {UL} at (0,303) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+          LayoutText {#text} at (0,0) size 62x19
+            text run at (0,0) width 62: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+          LayoutText {#text} at (0,0) size 113x19
+            text run at (0,0) width 113: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+          LayoutText {#text} at (0,0) size 142x19
+            text run at (0,0) width 142: "...circles for each item."
+      LayoutBlockFlow {UL} at (0,379) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+          LayoutText {#text} at (0,0) size 62x19
+            text run at (0,0) width 62: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+          LayoutText {#text} at (0,0) size 113x19
+            text run at (0,0) width 113: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+          LayoutText {#text} at (0,0) size 149x19
+            text run at (0,0) width 149: "...squares for each item."
+      LayoutBlockFlow {OL} at (0,455) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-12,0) size 12x19: "i"
+          LayoutText {#text} at (0,0) size 62x19
+            text run at (0,0) width 62: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-16,0) size 16x19: "ii"
+          LayoutText {#text} at (0,0) size 113x19
+            text run at (0,0) width 113: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-20,0) size 20x19: "iii"
+          LayoutText {#text} at (0,0) size 276x19
+            text run at (0,0) width 276: "...lowercase Roman numerals for each item."
+      LayoutBlockFlow {OL} at (0,531) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-13,0) size 13x19: "I"
+          LayoutText {#text} at (0,0) size 62x19
+            text run at (0,0) width 62: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 18x19: "II"
+          LayoutText {#text} at (0,0) size 113x19
+            text run at (0,0) width 113: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-23,0) size 23x19: "III"
+          LayoutText {#text} at (0,0) size 276x19
+            text run at (0,0) width 276: "...uppercase Roman numerals for each item."
+      LayoutBlockFlow {OL} at (0,607) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-15,0) size 15x19: "a"
+          LayoutText {#text} at (0,0) size 62x19
+            text run at (0,0) width 62: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-16,0) size 16x19: "b"
+          LayoutText {#text} at (0,0) size 113x19
+            text run at (0,0) width 113: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-15,0) size 15x19: "c"
+          LayoutText {#text} at (0,0) size 206x19
+            text run at (0,0) width 206: "...lowercase letters for each item."
+      LayoutBlockFlow {OL} at (0,683) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-20,0) size 20x19: "A"
+          LayoutText {#text} at (0,0) size 62x19
+            text run at (0,0) width 62: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-19,0) size 19x19: "B"
+          LayoutText {#text} at (0,0) size 113x19
+            text run at (0,0) width 113: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-19,0) size 19x19: "C"
+          LayoutText {#text} at (0,0) size 206x19
+            text run at (0,0) width 206: "...uppercase letters for each item."
+      LayoutBlockFlow {OL} at (0,759) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-20,0) size 20x19: "A"
+          LayoutText {#text} at (0,0) size 155x19
+            text run at (0,0) width 155: "This list should feature..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-19,0) size 19x19: "B"
+          LayoutText {#text} at (0,0) size 147x19
+            text run at (0,0) width 147: "...letters for each item..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-16,0) size 16x19: "3"
+          LayoutText {#text} at (0,0) size 110x19
+            text run at (0,0) width 110: "...except this one."
+      LayoutBlockFlow {UL} at (0,835) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutText {#text} at (0,0) size 62x19
+            text run at (0,0) width 62: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutText {#text} at (0,0) size 113x19
+            text run at (0,0) width 113: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutText {#text} at (0,0) size 150x19
+            text run at (0,0) width 150: "...nothing for each item."
+      LayoutTable {TABLE} at (0,911) size 338x722 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 336x720
+          LayoutTableRow {TR} at (0,0) size 336x28
+            LayoutTableCell {TD} at (0,0) size 336x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 336x692
+            LayoutTableCell {TD} at (0,360) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 324x692 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {UL} at (4,4) size 316x60
+                LayoutListItem {LI} at (40,0) size 276x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 62x19
+                    text run at (0,0) width 62: "This list..."
+                LayoutListItem {LI} at (40,20) size 276x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 113x19
+                    text run at (0,0) width 113: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 276x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 133x19
+                    text run at (0,0) width 133: "...discs for each item."
+              LayoutBlockFlow {UL} at (4,80) size 316x60
+                LayoutListItem {LI} at (40,0) size 276x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                  LayoutText {#text} at (0,0) size 62x19
+                    text run at (0,0) width 62: "This list..."
+                LayoutListItem {LI} at (40,20) size 276x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                  LayoutText {#text} at (0,0) size 113x19
+                    text run at (0,0) width 113: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 276x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                  LayoutText {#text} at (0,0) size 142x19
+                    text run at (0,0) width 142: "...circles for each item."
+              LayoutBlockFlow {UL} at (4,156) size 316x60
+                LayoutListItem {LI} at (40,0) size 276x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+                  LayoutText {#text} at (0,0) size 62x19
+                    text run at (0,0) width 62: "This list..."
+                LayoutListItem {LI} at (40,20) size 276x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+                  LayoutText {#text} at (0,0) size 113x19
+                    text run at (0,0) width 113: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 276x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+                  LayoutText {#text} at (0,0) size 149x19
+                    text run at (0,0) width 149: "...squares for each item."
+              LayoutBlockFlow {OL} at (4,232) size 316x60
+                LayoutListItem {LI} at (40,0) size 276x20
+                  LayoutListMarker (anonymous) at (-12,0) size 12x19: "i"
+                  LayoutText {#text} at (0,0) size 62x19
+                    text run at (0,0) width 62: "This list..."
+                LayoutListItem {LI} at (40,20) size 276x20
+                  LayoutListMarker (anonymous) at (-16,0) size 16x19: "ii"
+                  LayoutText {#text} at (0,0) size 113x19
+                    text run at (0,0) width 113: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 276x20
+                  LayoutListMarker (anonymous) at (-20,0) size 20x19: "iii"
+                  LayoutText {#text} at (0,0) size 276x19
+                    text run at (0,0) width 276: "...lowercase Roman numerals for each item."
+              LayoutBlockFlow {OL} at (4,308) size 316x60
+                LayoutListItem {LI} at (40,0) size 276x20
+                  LayoutListMarker (anonymous) at (-13,0) size 13x19: "I"
+                  LayoutText {#text} at (0,0) size 62x19
+                    text run at (0,0) width 62: "This list..."
+                LayoutListItem {LI} at (40,20) size 276x20
+                  LayoutListMarker (anonymous) at (-18,0) size 18x19: "II"
+                  LayoutText {#text} at (0,0) size 113x19
+                    text run at (0,0) width 113: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 276x20
+                  LayoutListMarker (anonymous) at (-23,0) size 23x19: "III"
+                  LayoutText {#text} at (0,0) size 276x19
+                    text run at (0,0) width 276: "...uppercase Roman numerals for each item."
+              LayoutBlockFlow {OL} at (4,384) size 316x60
+                LayoutListItem {LI} at (40,0) size 276x20
+                  LayoutListMarker (anonymous) at (-15,0) size 15x19: "a"
+                  LayoutText {#text} at (0,0) size 62x19
+                    text run at (0,0) width 62: "This list..."
+                LayoutListItem {LI} at (40,20) size 276x20
+                  LayoutListMarker (anonymous) at (-16,0) size 16x19: "b"
+                  LayoutText {#text} at (0,0) size 113x19
+                    text run at (0,0) width 113: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 276x20
+                  LayoutListMarker (anonymous) at (-15,0) size 15x19: "c"
+                  LayoutText {#text} at (0,0) size 206x19
+                    text run at (0,0) width 206: "...lowercase letters for each item."
+              LayoutBlockFlow {OL} at (4,460) size 316x60
+                LayoutListItem {LI} at (40,0) size 276x20
+                  LayoutListMarker (anonymous) at (-20,0) size 20x19: "A"
+                  LayoutText {#text} at (0,0) size 62x19
+                    text run at (0,0) width 62: "This list..."
+                LayoutListItem {LI} at (40,20) size 276x20
+                  LayoutListMarker (anonymous) at (-19,0) size 19x19: "B"
+                  LayoutText {#text} at (0,0) size 113x19
+                    text run at (0,0) width 113: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 276x20
+                  LayoutListMarker (anonymous) at (-19,0) size 19x19: "C"
+                  LayoutText {#text} at (0,0) size 206x19
+                    text run at (0,0) width 206: "...uppercase letters for each item."
+              LayoutBlockFlow {OL} at (4,536) size 316x60
+                LayoutListItem {LI} at (40,0) size 276x20
+                  LayoutListMarker (anonymous) at (-20,0) size 20x19: "A"
+                  LayoutText {#text} at (0,0) size 155x19
+                    text run at (0,0) width 155: "This list should feature..."
+                LayoutListItem {LI} at (40,20) size 276x20
+                  LayoutListMarker (anonymous) at (-19,0) size 19x19: "B"
+                  LayoutText {#text} at (0,0) size 147x19
+                    text run at (0,0) width 147: "...letters for each item..."
+                LayoutListItem {LI} at (40,40) size 276x20
+                  LayoutListMarker (anonymous) at (-16,0) size 16x19: "3"
+                  LayoutText {#text} at (0,0) size 110x19
+                    text run at (0,0) width 110: "...except this one."
+              LayoutBlockFlow {UL} at (4,612) size 316x60
+                LayoutListItem {LI} at (40,0) size 276x20
+                  LayoutText {#text} at (0,0) size 62x19
+                    text run at (0,0) width 62: "This list..."
+                LayoutListItem {LI} at (40,20) size 276x20
+                  LayoutText {#text} at (0,0) size 113x19
+                    text run at (0,0) width 113: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 276x20
+                  LayoutText {#text} at (0,0) size 150x19
+                    text run at (0,0) width 150: "...nothing for each item."
+layer at (8,217) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,209) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/white_space-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/white_space-expected.txt
new file mode 100644
index 0000000..242c504b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/classification/white_space-expected.txt
@@ -0,0 +1,81 @@
+layer at (0,0) size 800x600 scrollWidth 921
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 232x64
+          text run at (0,0) width 192: ".one {white-space: pre;}"
+          text run at (192,0) width 0: " "
+          text run at (0,16) width 216: ".two {white-space: nowrap;}"
+          text run at (216,16) width 0: " "
+          text run at (0,32) width 232: ".three {white-space: normal;}"
+          text run at (232,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 784x100
+        LayoutText {#text} at (0,0) size 568x99
+          text run at (0,0) width 0: " "
+          text run at (0,20) width 568: "This sentence should     show extra space  where there    would ordinarily         not be any."
+          text run at (567,20) width 1: " "
+          text run at (0,40) width 296: "     There should also be preservation of returns"
+          text run at (296,40) width 0: " "
+          text run at (0,60) width 97: "as this sentence"
+          text run at (97,60) width 0: " "
+          text run at (0,80) width 184: "     very clearly demonstrates."
+          text run at (184,80) width 0: " "
+      LayoutBlockFlow {P} at (0,247) size 784x20
+        LayoutText {#text} at (0,0) size 891x19
+          text run at (0,0) width 891: "This sentence should not word-wrap, no matter how long the sentence is, as it has been set to nowrap and that should have the obvious effect."
+      LayoutBlockFlow {P} at (0,283) size 784x40
+        LayoutText {#text} at (0,0) size 296x39
+          text run at (0,0) width 0: " "
+          text run at (0,20) width 296: "This sentence      should     show extra   space, "
+        LayoutInline {SPAN} at (0,0) size 156x19
+          LayoutText {#text} at (296,20) size 156x19
+            text run at (296,20) width 84: "except in the "
+            text run at (380,20) width 72: "second half"
+        LayoutText {#text} at (452,20) size 4x19
+          text run at (452,20) width 4: "."
+          text run at (456,20) width 0: " "
+      LayoutTable {TABLE} at (0,339) size 913x230 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 911x228
+          LayoutTableRow {TR} at (0,0) size 911x28
+            LayoutTableCell {TD} at (0,0) size 911x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 911x200
+            LayoutTableCell {TD} at (0,114) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 899x200 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 891x100
+                LayoutText {#text} at (0,0) size 568x99
+                  text run at (0,0) width 0: " "
+                  text run at (0,20) width 568: "This sentence should     show extra space  where there    would ordinarily         not be any."
+                  text run at (567,20) width 1: " "
+                  text run at (0,40) width 296: "     There should also be preservation of returns"
+                  text run at (296,40) width 0: " "
+                  text run at (0,60) width 97: "as this sentence"
+                  text run at (97,60) width 0: " "
+                  text run at (0,80) width 184: "     very clearly demonstrates."
+                  text run at (184,80) width 0: " "
+              LayoutBlockFlow {P} at (4,120) size 891x20
+                LayoutText {#text} at (0,0) size 891x19
+                  text run at (0,0) width 891: "This sentence should not word-wrap, no matter how long the sentence is, as it has been set to nowrap and that should have the obvious effect."
+              LayoutBlockFlow {P} at (4,156) size 891x40
+                LayoutText {#text} at (0,0) size 296x39
+                  text run at (0,0) width 0: " "
+                  text run at (0,20) width 296: "This sentence      should     show extra   space, "
+                LayoutInline {SPAN} at (0,0) size 156x19
+                  LayoutText {#text} at (296,20) size 156x19
+                    text run at (296,20) width 84: "except in the "
+                    text run at (380,20) width 72: "second half"
+                LayoutText {#text} at (452,20) size 4x19
+                  text run at (452,20) width 4: "."
+                  text run at (456,20) width 0: " "
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background-expected.txt
new file mode 100644
index 0000000..6b255d11
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background-expected.txt
@@ -0,0 +1,91 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 777
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x777 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x777
+    LayoutBlockFlow {BODY} at (8,8) size 769x761 [bgcolor=#008000]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 648x64
+          text run at (0,0) width 648: "BODY {background: green url(../resources/oransqr.gif) repeat-x center top fixed;}"
+          text run at (648,0) width 0: " "
+          text run at (0,16) width 568: ".one {background: lime url(../resources/oransqr.gif) repeat-y 100% 0%;}"
+          text run at (568,16) width 0: " "
+          text run at (0,32) width 592: ".two {background: lime url(../resources/oransqr.gif) repeat-y center top;}"
+          text run at (592,32) width 0: " "
+          text run at (0,48) width 592: ".three {background: lime url(../resources/oransqr.gif) repeat-x left top;}"
+          text run at (592,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 769x60
+        LayoutText {#text} at (0,0) size 728x19
+          text run at (0,0) width 728: "This document should have a green background with an orange strip running across the entire top of the page, since"
+        LayoutInline {CODE} at (0,0) size 64x16
+          LayoutText {#text} at (0,23) size 64x16
+            text run at (0,23) width 64: "repeat-x"
+        LayoutText {#text} at (64,20) size 753x39
+          text run at (64,20) width 298: " indicates tiling in both directions of the x-axis. "
+          text run at (362,20) width 298: "Furthermore, the strip should be fixed in place. "
+          text run at (660,20) width 93: "I'll have to add"
+          text run at (0,40) width 491: "extra text at the end of this page to make it long enough to scroll conveniently."
+      LayoutBlockFlow {P} at (0,207) size 769x60 [bgcolor=#00FF00]
+        LayoutText {#text} at (0,0) size 762x59
+          text run at (0,0) width 743: "This paragraph should have a lime background and an orange strip which starts at the top right and runs to the bottom."
+          text run at (0,20) width 762: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in handling"
+          text run at (0,40) width 119: "these declarations. "
+          text run at (119,40) width 306: "Hey, I didn't say the page would be pretty, did I?"
+      LayoutBlockFlow {P} at (0,283) size 769x60 [bgcolor=#00FF00]
+        LayoutText {#text} at (0,0) size 762x59
+          text run at (0,0) width 752: "This paragraph should have a lime background and an orange strip which starts at the center top and runs to the bottom."
+          text run at (0,20) width 762: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in handling"
+          text run at (0,40) width 119: "these declarations. "
+          text run at (119,40) width 306: "Hey, I didn't say the page would be pretty, did I?"
+      LayoutBlockFlow {P} at (0,359) size 769x60 [bgcolor=#00FF00]
+        LayoutText {#text} at (0,0) size 762x59
+          text run at (0,0) width 743: "This paragraph should have a lime background and an orange strip which starts at the top left and runs to the top right."
+          text run at (0,20) width 762: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in handling"
+          text run at (0,40) width 119: "these declarations. "
+          text run at (119,40) width 306: "Hey, I didn't say the page would be pretty, did I?"
+      LayoutTable {TABLE} at (0,435) size 769x326 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x324
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x296
+            LayoutTableCell {TD} at (0,162) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x296 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x60
+                LayoutText {#text} at (0,0) size 728x19
+                  text run at (0,0) width 728: "This document should have a green background with an orange strip running across the entire top of the page, since"
+                LayoutInline {CODE} at (0,0) size 64x16
+                  LayoutText {#text} at (0,23) size 64x16
+                    text run at (0,23) width 64: "repeat-x"
+                LayoutText {#text} at (64,20) size 726x39
+                  text run at (64,20) width 298: " indicates tiling in both directions of the x-axis. "
+                  text run at (362,20) width 298: "Furthermore, the strip should be fixed in place. "
+                  text run at (660,20) width 66: "I'll have to"
+                  text run at (0,40) width 518: "add extra text at the end of this page to make it long enough to scroll conveniently."
+              LayoutBlockFlow {P} at (4,80) size 747x60 [bgcolor=#00FF00]
+                LayoutText {#text} at (0,0) size 743x59
+                  text run at (0,0) width 743: "This paragraph should have a lime background and an orange strip which starts at the top right and runs to the bottom."
+                  text run at (0,20) width 703: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in"
+                  text run at (0,40) width 178: "handling these declarations. "
+                  text run at (178,40) width 306: "Hey, I didn't say the page would be pretty, did I?"
+              LayoutBlockFlow {P} at (4,156) size 747x60 [bgcolor=#00FF00]
+                LayoutText {#text} at (0,0) size 739x59
+                  text run at (0,0) width 700: "This paragraph should have a lime background and an orange strip which starts at the center top and runs to the"
+                  text run at (0,20) width 52: "bottom. "
+                  text run at (52,20) width 687: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser"
+                  text run at (0,40) width 194: "in handling these declarations. "
+                  text run at (194,40) width 306: "Hey, I didn't say the page would be pretty, did I?"
+              LayoutBlockFlow {P} at (4,232) size 747x60 [bgcolor=#00FF00]
+                LayoutText {#text} at (0,0) size 743x59
+                  text run at (0,0) width 743: "This paragraph should have a lime background and an orange strip which starts at the top left and runs to the top right."
+                  text run at (0,20) width 703: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in"
+                  text run at (0,40) width 178: "handling these declarations. "
+                  text run at (178,40) width 306: "Hey, I didn't say the page would be pretty, did I?"
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_attachment-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_attachment-expected.txt
new file mode 100644
index 0000000..b1aaa57
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_attachment-expected.txt
@@ -0,0 +1,184 @@
+layer at (0,0) size 800x600 scrollWidth 880 scrollHeight 1279
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x1279 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x1278.53
+    LayoutBlockFlow {BODY} at (8,8) size 784x1262.53 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x32
+        LayoutText {#text} at (0,0) size 872x32
+          text run at (0,0) width 872: "BODY {background-image: url(../resources/bg.gif); background-repeat: repeat-x; background-attachment: fixed;}"
+          text run at (872,0) width 0: " "
+          text run at (0,16) width 0: " "
+      LayoutBlockFlow {P} at (0,99) size 784x100
+        LayoutText {#text} at (0,0) size 780x99
+          text run at (0,0) width 763: "This document should have a green grid-pattern line across the top of the page (or at least a tiled background) which does"
+          text run at (0,20) width 201: "NOT scroll with the document. "
+          text run at (201,20) width 575: "It should, instead, appear to be a fixed pattern past which the content scrolls, even when the"
+          text run at (0,40) width 172: "end of the page is reached. "
+          text run at (172,40) width 608: "In addition, the default Test Suite background should NOT appear, as it's been overridden by the"
+          text run at (0,60) width 131: "styles shown above. "
+          text run at (131,60) width 644: "I'll have to add a lot of extra text to the page in order to make all this something we can actually check."
+          text run at (0,80) width 226: "Don't worry, I'll think of something."
+      LayoutBlockFlow {P} at (0,215) size 784x20
+        LayoutText {#text} at (0,0) size 508x19
+          text run at (0,0) width 417: "In fact, why not the relevant section from the CSS1 specification? "
+          text run at (417,0) width 91: "A capital idea."
+      LayoutBlockFlow {H4} at (0,284.27) size 784x20
+        LayoutInline {A} at (0,0) size 220x19
+          LayoutText {#text} at (0,0) size 220x19
+            text run at (0,0) width 220: "5.3.5    'background-attachment'"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,325.53) size 784x100
+        LayoutInline {EM} at (0,0) size 41x19
+          LayoutText {#text} at (0,0) size 41x19
+            text run at (0,0) width 41: "Value:"
+        LayoutText {#text} at (40,0) size 82x19
+          text run at (40,0) width 82: " scroll | fixed"
+        LayoutBR {BR} at (121,15) size 1x0
+        LayoutInline {EM} at (0,0) size 42x19
+          LayoutText {#text} at (0,20) size 42x19
+            text run at (0,20) width 42: "Initial:"
+        LayoutText {#text} at (42,20) size 38x19
+          text run at (42,20) width 38: " scroll"
+        LayoutBR {BR} at (80,35) size 0x0
+        LayoutInline {EM} at (0,0) size 68x19
+          LayoutText {#text} at (0,40) size 68x19
+            text run at (0,40) width 68: "Applies to:"
+        LayoutText {#text} at (68,40) size 78x19
+          text run at (68,40) width 78: " all elements"
+        LayoutBR {BR} at (146,55) size 0x0
+        LayoutInline {EM} at (0,0) size 62x19
+          LayoutText {#text} at (0,60) size 62x19
+            text run at (0,60) width 62: "Inherited:"
+        LayoutText {#text} at (62,60) size 20x19
+          text run at (62,60) width 20: " no"
+        LayoutBR {BR} at (82,75) size 0x0
+        LayoutInline {EM} at (0,0) size 121x19
+          LayoutText {#text} at (0,80) size 121x19
+            text run at (0,80) width 121: "Percentage values:"
+        LayoutText {#text} at (120,80) size 33x19
+          text run at (120,80) width 33: " N/A"
+        LayoutBR {BR} at (152,95) size 1x0
+      LayoutBlockFlow {P} at (0,441.53) size 784x40
+        LayoutText {#text} at (0,0) size 782x39
+          text run at (0,0) width 782: "If a background image is specified, the value of 'background-attachment' determines if it is fixed with regard to the canvas or"
+          text run at (0,20) width 213: "if it scrolls along with the content."
+      LayoutBlockFlow {PRE} at (0,497.53) size 784x80
+        LayoutText {#text} at (0,0) size 296x80
+          text run at (0,0) width 72: "  BODY { "
+          text run at (72,0) width 0: " "
+          text run at (0,16) width 296: "    background: red url(pendant.gif);"
+          text run at (296,16) width 0: " "
+          text run at (0,32) width 256: "    background-repeat: repeat-y;"
+          text run at (256,32) width 0: " "
+          text run at (0,48) width 264: "    background-attachment: fixed;"
+          text run at (264,48) width 0: " "
+          text run at (0,64) width 24: "  }"
+          text run at (24,64) width 0: " "
+      LayoutBlockFlow {P} at (0,593.53) size 784x60
+        LayoutInline {EM} at (0,0) size 72x19
+          LayoutText {#text} at (0,0) size 72x19
+            text run at (0,0) width 72: "CSS1 core:"
+        LayoutText {#text} at (71,0) size 767x59
+          text run at (71,0) width 670: " UAs may treat 'fixed' as 'scroll'. However, it is recommended they interpret 'fixed' correctly, at least on the"
+          text run at (0,20) width 767: "HTML and BODY elements, since there is no way for an author to provide an image only for those browsers that support"
+          text run at (0,40) width 42: "'fixed'."
+      LayoutTable {TABLE} at (0,669.53) size 784x593 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x591
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x563
+            LayoutTableCell {TD} at (0,295) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x562.53 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x100
+                LayoutText {#text} at (0,0) size 747x99
+                  text run at (0,0) width 730: "This document should have a green grid-pattern line across the top of the page (or at least a tiled background) which"
+                  text run at (0,20) width 234: "does NOT scroll with the document. "
+                  text run at (234,20) width 513: "It should, instead, appear to be a fixed pattern past which the content scrolls, even"
+                  text run at (0,40) width 234: "when the end of the page is reached. "
+                  text run at (234,40) width 493: "In addition, the default Test Suite background should NOT appear, as it's been"
+                  text run at (0,60) width 246: "overridden by the styles shown above. "
+                  text run at (246,60) width 497: "I'll have to add a lot of extra text to the page in order to make all this something"
+                  text run at (0,80) width 147: "we can actually check. "
+                  text run at (147,80) width 226: "Don't worry, I'll think of something."
+              LayoutBlockFlow {P} at (4,120) size 762x20
+                LayoutText {#text} at (0,0) size 508x19
+                  text run at (0,0) width 417: "In fact, why not the relevant section from the CSS1 specification? "
+                  text run at (417,0) width 91: "A capital idea."
+              LayoutBlockFlow {H4} at (4,189.27) size 762x20
+                LayoutInline {A} at (0,0) size 220x19
+                  LayoutText {#text} at (0,0) size 220x19
+                    text run at (0,0) width 220: "5.3.5    'background-attachment'"
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,230.53) size 762x100
+                LayoutInline {EM} at (0,0) size 41x19
+                  LayoutText {#text} at (0,0) size 41x19
+                    text run at (0,0) width 41: "Value:"
+                LayoutText {#text} at (40,0) size 82x19
+                  text run at (40,0) width 82: " scroll | fixed"
+                LayoutBR {BR} at (121,15) size 1x0
+                LayoutInline {EM} at (0,0) size 42x19
+                  LayoutText {#text} at (0,20) size 42x19
+                    text run at (0,20) width 42: "Initial:"
+                LayoutText {#text} at (42,20) size 38x19
+                  text run at (42,20) width 38: " scroll"
+                LayoutBR {BR} at (80,35) size 0x0
+                LayoutInline {EM} at (0,0) size 68x19
+                  LayoutText {#text} at (0,40) size 68x19
+                    text run at (0,40) width 68: "Applies to:"
+                LayoutText {#text} at (68,40) size 78x19
+                  text run at (68,40) width 78: " all elements"
+                LayoutBR {BR} at (146,55) size 0x0
+                LayoutInline {EM} at (0,0) size 62x19
+                  LayoutText {#text} at (0,60) size 62x19
+                    text run at (0,60) width 62: "Inherited:"
+                LayoutText {#text} at (62,60) size 20x19
+                  text run at (62,60) width 20: " no"
+                LayoutBR {BR} at (82,75) size 0x0
+                LayoutInline {EM} at (0,0) size 121x19
+                  LayoutText {#text} at (0,80) size 121x19
+                    text run at (0,80) width 121: "Percentage values:"
+                LayoutText {#text} at (120,80) size 33x19
+                  text run at (120,80) width 33: " N/A"
+                LayoutBR {BR} at (152,95) size 1x0
+              LayoutBlockFlow {P} at (4,346.53) size 762x40
+                LayoutText {#text} at (0,0) size 718x39
+                  text run at (0,0) width 718: "If a background image is specified, the value of 'background-attachment' determines if it is fixed with regard to the"
+                  text run at (0,20) width 277: "canvas or if it scrolls along with the content."
+              LayoutBlockFlow {PRE} at (4,402.53) size 762x80
+                LayoutText {#text} at (0,0) size 296x80
+                  text run at (0,0) width 72: "  BODY { "
+                  text run at (72,0) width 0: " "
+                  text run at (0,16) width 296: "    background: red url(pendant.gif);"
+                  text run at (296,16) width 0: " "
+                  text run at (0,32) width 256: "    background-repeat: repeat-y;"
+                  text run at (256,32) width 0: " "
+                  text run at (0,48) width 264: "    background-attachment: fixed;"
+                  text run at (264,48) width 0: " "
+                  text run at (0,64) width 24: "  }"
+                  text run at (24,64) width 0: " "
+              LayoutBlockFlow {P} at (4,498.53) size 762x60
+                LayoutInline {EM} at (0,0) size 72x19
+                  LayoutText {#text} at (0,0) size 72x19
+                    text run at (0,0) width 72: "CSS1 core:"
+                LayoutText {#text} at (71,0) size 741x59
+                  text run at (71,0) width 670: " UAs may treat 'fixed' as 'scroll'. However, it is recommended they interpret 'fixed' correctly, at least on the"
+                  text run at (0,20) width 716: "HTML and BODY elements, since there is no way for an author to provide an image only for those browsers that"
+                  text run at (0,40) width 93: "support 'fixed'."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,259) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,251) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,269) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,261) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (25,863) size 762x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,156) size 762x2 [border: (1px inset #EEEEEE)]
+layer at (25,873) size 762x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,166) size 762x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_color-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_color-expected.txt
new file mode 100644
index 0000000..8a60759
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_color-expected.txt
@@ -0,0 +1,84 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20 [bgcolor=#008000]
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 296x64
+          text run at (0,0) width 224: "P {background-color: green;}"
+          text run at (224,0) width 0: " "
+          text run at (0,16) width 240: ".one {background-color: lime;}"
+          text run at (240,16) width 0: " "
+          text run at (0,32) width 296: ".two {background-color: transparent;}"
+          text run at (296,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 784x20 [bgcolor=#008000]
+        LayoutText {#text} at (0,0) size 277x19
+          text run at (0,0) width 277: "This element's background should be green."
+      LayoutBlockFlow {P} at (0,167) size 784x20 [bgcolor=#00FF00]
+        LayoutText {#text} at (0,0) size 350x19
+          text run at (0,0) width 350: "This element's background should be lime (light green)."
+      LayoutBlockFlow {P} at (0,203) size 784x60 [bgcolor=#008000]
+        LayoutText {#text} at (0,0) size 652x19
+          text run at (0,0) width 652: "This element's background should be green, and the last word in this sentence should also have a green "
+        LayoutInline {SPAN} at (0,0) size 75x19
+          LayoutText {#text} at (652,0) size 75x19
+            text run at (652,0) width 75: "background"
+        LayoutText {#text} at (727,0) size 778x59
+          text run at (727,0) width 8: ". "
+          text run at (735,0) width 42: "This is"
+          text run at (0,20) width 778: "because the background color of the parent element (the paragraph) should \"shine through\" the SPANned word \"sentence,\""
+          text run at (0,40) width 109: "which was set to "
+        LayoutInline {CODE} at (0,0) size 88x16
+          LayoutText {#text} at (109,43) size 88x16
+            text run at (109,43) width 88: "transparent"
+        LayoutText {#text} at (197,40) size 395x19
+          text run at (197,40) width 8: ". "
+          text run at (205,40) width 387: "If the document background is visible, the browser is in error."
+      LayoutBlockFlow {P} at (0,279) size 784x20
+        LayoutText {#text} at (0,0) size 744x19
+          text run at (0,0) width 462: "This element should allow the document background to \"shine through.\" "
+          text run at (462,0) width 282: "There should be no green backgrounds here!"
+      LayoutTable {TABLE} at (0,315) size 784x206 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x204
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x176
+            LayoutTableCell {TD} at (0,102) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x176 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x20 [bgcolor=#008000]
+                LayoutText {#text} at (0,0) size 277x19
+                  text run at (0,0) width 277: "This element's background should be green."
+              LayoutBlockFlow {P} at (4,40) size 762x20 [bgcolor=#00FF00]
+                LayoutText {#text} at (0,0) size 350x19
+                  text run at (0,0) width 350: "This element's background should be lime (light green)."
+              LayoutBlockFlow {P} at (4,76) size 762x60 [bgcolor=#008000]
+                LayoutText {#text} at (0,0) size 652x19
+                  text run at (0,0) width 652: "This element's background should be green, and the last word in this sentence should also have a green "
+                LayoutInline {SPAN} at (0,0) size 75x19
+                  LayoutText {#text} at (652,0) size 75x19
+                    text run at (652,0) width 75: "background"
+                LayoutText {#text} at (727,0) size 748x59
+                  text run at (727,0) width 4: "."
+                  text run at (0,20) width 748: "This is because the background color of the parent element (the paragraph) should \"shine through\" the SPANned word"
+                  text run at (0,40) width 185: "\"sentence,\" which was set to "
+                LayoutInline {CODE} at (0,0) size 88x16
+                  LayoutText {#text} at (185,43) size 88x16
+                    text run at (185,43) width 88: "transparent"
+                LayoutText {#text} at (273,40) size 395x19
+                  text run at (273,40) width 8: ". "
+                  text run at (281,40) width 387: "If the document background is visible, the browser is in error."
+              LayoutBlockFlow {P} at (4,152) size 762x20
+                LayoutText {#text} at (0,0) size 744x19
+                  text run at (0,0) width 462: "This element should allow the document background to \"shine through.\" "
+                  text run at (462,0) width 282: "There should be no green backgrounds here!"
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_image-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_image-expected.txt
new file mode 100644
index 0000000..543ce73
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_image-expected.txt
@@ -0,0 +1,95 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 376x48
+          text run at (0,0) width 376: "P {background-image: url(../resources/bg.gif);}"
+          text run at (376,0) width 0: " "
+          text run at (0,16) width 240: ".one {background-image: none;}"
+          text run at (240,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x40
+        LayoutText {#text} at (0,0) size 746x39
+          text run at (0,0) width 502: "This sentence should be backed by an image-- a green grid pattern, in this case. "
+          text run at (502,0) width 244: "The background image should also tile"
+          text run at (0,20) width 664: "along both axes, because no repeat direction is specified (specific tests for repeating are found elsewhere)."
+      LayoutBlockFlow {P} at (0,171) size 784x80
+        LayoutText {#text} at (0,0) size 596x19
+          text run at (0,0) width 596: "This sentence should be backed by a repeated green-grid image, as should the last three words "
+        LayoutInline {STRONG} at (0,0) size 102x19
+          LayoutInline {SPAN} at (0,0) size 102x19
+            LayoutText {#text} at (596,0) size 102x19
+              text run at (596,0) width 102: "in this sentence"
+        LayoutText {#text} at (698,0) size 770x39
+          text run at (698,0) width 8: ". "
+          text run at (706,0) width 64: "If it is not,"
+          text run at (0,20) width 31: "then "
+        LayoutInline {CODE} at (0,0) size 32x16
+          LayoutText {#text} at (31,23) size 32x16
+            text run at (31,23) width 32: "none"
+        LayoutText {#text} at (63,20) size 168x19
+          text run at (63,20) width 163: " is interpreted incorrectly. "
+          text run at (225,20) width 6: "("
+        LayoutInline {CODE} at (0,0) size 33x16
+          LayoutText {#text} at (230,23) size 33x16
+            text run at (230,23) width 33: "none"
+        LayoutText {#text} at (262,20) size 771x59
+          text run at (262,20) width 503: " means that the element has no background image, allowing the parent to \"shine"
+          text run at (0,40) width 771: "through\" by default; since the parent of the words \"in this sentence\" is the paragraph, then the paragraph's image should be"
+          text run at (0,60) width 50: "visible.)"
+      LayoutBlockFlow {P} at (0,267) size 784x40
+        LayoutText {#text} at (0,0) size 765x39
+          text run at (0,0) width 765: "This sentence should NOT be backed by a repeated green-grid image, allowing the page's background to \"shine through\""
+          text run at (0,20) width 48: "instead."
+      LayoutTable {TABLE} at (0,323) size 784x230 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x228
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x200
+            LayoutTableCell {TD} at (0,114) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x200 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x40
+                LayoutText {#text} at (0,0) size 746x39
+                  text run at (0,0) width 502: "This sentence should be backed by an image-- a green grid pattern, in this case. "
+                  text run at (502,0) width 244: "The background image should also tile"
+                  text run at (0,20) width 664: "along both axes, because no repeat direction is specified (specific tests for repeating are found elsewhere)."
+              LayoutBlockFlow {P} at (4,60) size 762x80
+                LayoutText {#text} at (0,0) size 596x19
+                  text run at (0,0) width 596: "This sentence should be backed by a repeated green-grid image, as should the last three words "
+                LayoutInline {STRONG} at (0,0) size 102x19
+                  LayoutInline {SPAN} at (0,0) size 102x19
+                    LayoutText {#text} at (596,0) size 102x19
+                      text run at (596,0) width 102: "in this sentence"
+                LayoutText {#text} at (698,0) size 742x39
+                  text run at (698,0) width 8: ". "
+                  text run at (706,0) width 36: "If it is"
+                  text run at (0,20) width 59: "not, then "
+                LayoutInline {CODE} at (0,0) size 32x16
+                  LayoutText {#text} at (59,23) size 32x16
+                    text run at (59,23) width 32: "none"
+                LayoutText {#text} at (91,20) size 168x19
+                  text run at (91,20) width 163: " is interpreted incorrectly. "
+                  text run at (253,20) width 6: "("
+                LayoutInline {CODE} at (0,0) size 33x16
+                  LayoutText {#text} at (258,23) size 33x16
+                    text run at (258,23) width 33: "none"
+                LayoutText {#text} at (290,20) size 750x59
+                  text run at (290,20) width 459: " means that the element has no background image, allowing the parent to"
+                  text run at (0,40) width 750: "\"shine through\" by default; since the parent of the words \"in this sentence\" is the paragraph, then the paragraph's image"
+                  text run at (0,60) width 115: "should be visible.)"
+              LayoutBlockFlow {P} at (4,156) size 762x40
+                LayoutText {#text} at (0,0) size 705x39
+                  text run at (0,0) width 705: "This sentence should NOT be backed by a repeated green-grid image, allowing the page's background to \"shine"
+                  text run at (0,20) width 108: "through\" instead."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_position-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_position-expected.txt
new file mode 100644
index 0000000..6350d97
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_position-expected.txt
@@ -0,0 +1,149 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1573
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1573 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1573
+    LayoutBlockFlow {BODY} at (8,8) size 769x1557 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x272
+        LayoutText {#text} at (0,0) size 688x272
+          text run at (0,0) width 648: "BODY {background-image: url(../resources/bg.gif); background-position: right top;"
+          text run at (648,0) width 0: " "
+          text run at (0,16) width 288: "      background-repeat: no-repeat;}"
+          text run at (288,16) width 0: " "
+          text run at (0,32) width 624: ".one {background-image: url(../resources/bg.gif); background-position: center;"
+          text run at (624,32) width 0: " "
+          text run at (0,48) width 480: "      background-repeat: no-repeat; background-color: aqua;}"
+          text run at (480,48) width 0: " "
+          text run at (0,64) width 632: ".two {background-image: url(../resources/bg.gif); background-position: 50% 50%;"
+          text run at (632,64) width 0: " "
+          text run at (0,80) width 480: "      background-repeat: no-repeat; background-color: aqua;}"
+          text run at (480,80) width 0: " "
+          text run at (0,96) width 688: ".three {background-image: url(../resources/bg.gif); background-position: bottom right;"
+          text run at (688,96) width 0: " "
+          text run at (0,112) width 496: "        background-repeat: no-repeat; background-color: aqua;}"
+          text run at (496,112) width 0: " "
+          text run at (0,128) width 656: ".four {background-image: url(../resources/bg.gif); background-position: 100% 100%;"
+          text run at (656,128) width 0: " "
+          text run at (0,144) width 488: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (488,144) width 0: " "
+          text run at (0,160) width 632: ".five {background-image: url(../resources/bg.gif); background-position: 0% 50%;"
+          text run at (632,160) width 0: " "
+          text run at (0,176) width 488: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (488,176) width 0: " "
+          text run at (0,192) width 632: ".six {background-image: url(../resources/bg.gif); background-position: 75% 25%;"
+          text run at (632,192) width 0: " "
+          text run at (0,208) width 488: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (488,208) width 0: " "
+          text run at (0,224) width 664: ".seven {background-image: url(../resources/bg.gif); background-position: 20px 20px;"
+          text run at (664,224) width 0: " "
+          text run at (0,240) width 488: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (488,240) width 0: " "
+          text run at (0,256) width 0: " "
+      LayoutBlockFlow {P} at (0,339) size 769x20
+        LayoutText {#text} at (0,0) size 503x19
+          text run at (0,0) width 503: "This document should have a single, small green image in its upper right corner."
+      LayoutBlockFlow {P} at (0,375) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 768x59
+          text run at (0,0) width 735: "This paragraph should have a single, small green image exactly in its center; that is, the center of the image should be"
+          text run at (0,20) width 227: "fixed at the center of the paragraph. "
+          text run at (227,20) width 541: "The background color will make it easier to determine the edges of the paragraph, and"
+          text run at (0,40) width 262: "therefore allow you to calculate its center."
+      LayoutBlockFlow {P} at (0,451) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 768x59
+          text run at (0,0) width 735: "This paragraph should have a single, small green image exactly in its center; that is, the center of the image should be"
+          text run at (0,20) width 227: "fixed at the center of the paragraph. "
+          text run at (227,20) width 541: "The background color will make it easier to determine the edges of the paragraph, and"
+          text run at (0,40) width 262: "therefore allow you to calculate its center."
+      LayoutBlockFlow {P} at (0,527) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 749x59
+          text run at (0,0) width 730: "This paragraph should have a single, small green image in its lower-right corner; that is, the lower right corner of the"
+          text run at (0,20) width 409: "image should be fixed at the lower right corner of the paragraph. "
+          text run at (409,20) width 340: "The background color will make it easier to determine"
+          text run at (0,40) width 436: "the edges of the paragraph, and therefore allow you to see its corners."
+      LayoutBlockFlow {P} at (0,603) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 749x59
+          text run at (0,0) width 730: "This paragraph should have a single, small green image in its lower-right corner; that is, the lower right corner of the"
+          text run at (0,20) width 409: "image should be fixed at the lower right corner of the paragraph. "
+          text run at (409,20) width 340: "The background color will make it easier to determine"
+          text run at (0,40) width 436: "the edges of the paragraph, and therefore allow you to see its corners."
+      LayoutBlockFlow {P} at (0,679) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 768x59
+          text run at (0,0) width 768: "This paragraph should have a single, small green image exactly at the left center; that is, the left center of the image should"
+          text run at (0,20) width 270: "be fixed at the left center of the paragraph. "
+          text run at (270,20) width 443: "The background color will make it easier to determine the edges of the"
+          text run at (0,40) width 360: "paragraph, and therefore allow you to calculate its center."
+      LayoutBlockFlow {P} at (0,755) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 761x59
+          text run at (0,0) width 749: "This paragraph should have a single, small green image positioned 75% of the way across the element, and 25% down."
+          text run at (0,20) width 761: "The background color will make it easier to determine the edges of the paragraph, which should help in determining if all"
+          text run at (0,40) width 647: "this is so, and the extra text should make the element long enough for this test to be simpler to evaluate."
+      LayoutBlockFlow {P} at (0,831) size 769x80 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 760x79
+          text run at (0,0) width 749: "This paragraph should have a single, small green image positioned 20 pixels down and to the left of the upper left-hand"
+          text run at (0,20) width 760: "corner; that is, the upper left-hand corner of the image should be 20 pixels down and to the left of the upper-left corner of"
+          text run at (0,40) width 80: "the element. "
+          text run at (80,40) width 656: "The background color will make it easier to determine the edges of the paragraph, which should assist in"
+          text run at (0,60) width 120: "evaluating this test."
+      LayoutTable {TABLE} at (0,927) size 769x630 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x628
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x600
+            LayoutTableCell {TD} at (0,314) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x600 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 503x19
+                  text run at (0,0) width 503: "This document should have a single, small green image in its upper right corner."
+              LayoutBlockFlow {P} at (4,40) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 741x59
+                  text run at (0,0) width 735: "This paragraph should have a single, small green image exactly in its center; that is, the center of the image should be"
+                  text run at (0,20) width 227: "fixed at the center of the paragraph. "
+                  text run at (227,20) width 514: "The background color will make it easier to determine the edges of the paragraph,"
+                  text run at (0,40) width 289: "and therefore allow you to calculate its center."
+              LayoutBlockFlow {P} at (4,116) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 741x59
+                  text run at (0,0) width 735: "This paragraph should have a single, small green image exactly in its center; that is, the center of the image should be"
+                  text run at (0,20) width 227: "fixed at the center of the paragraph. "
+                  text run at (227,20) width 514: "The background color will make it easier to determine the edges of the paragraph,"
+                  text run at (0,40) width 289: "and therefore allow you to calculate its center."
+              LayoutBlockFlow {P} at (4,192) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 730x59
+                  text run at (0,0) width 730: "This paragraph should have a single, small green image in its lower-right corner; that is, the lower right corner of the"
+                  text run at (0,20) width 409: "image should be fixed at the lower right corner of the paragraph. "
+                  text run at (409,20) width 274: "The background color will make it easier to"
+                  text run at (0,40) width 502: "determine the edges of the paragraph, and therefore allow you to see its corners."
+              LayoutBlockFlow {P} at (4,268) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 730x59
+                  text run at (0,0) width 730: "This paragraph should have a single, small green image in its lower-right corner; that is, the lower right corner of the"
+                  text run at (0,20) width 409: "image should be fixed at the lower right corner of the paragraph. "
+                  text run at (409,20) width 274: "The background color will make it easier to"
+                  text run at (0,40) width 502: "determine the edges of the paragraph, and therefore allow you to see its corners."
+              LayoutBlockFlow {P} at (4,344) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 736x59
+                  text run at (0,0) width 722: "This paragraph should have a single, small green image exactly at the left center; that is, the left center of the image"
+                  text run at (0,20) width 316: "should be fixed at the left center of the paragraph. "
+                  text run at (316,20) width 420: "The background color will make it easier to determine the edges of"
+                  text run at (0,40) width 383: "the paragraph, and therefore allow you to calculate its center."
+              LayoutBlockFlow {P} at (4,420) size 747x80 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 705x79
+                  text run at (0,0) width 705: "This paragraph should have a single, small green image positioned 75% of the way across the element, and 25%"
+                  text run at (0,20) width 44: "down. "
+                  text run at (44,20) width 650: "The background color will make it easier to determine the edges of the paragraph, which should help in"
+                  text run at (0,40) width 698: "determining if all this is so, and the extra text should make the element long enough for this test to be simpler to"
+                  text run at (0,60) width 56: "evaluate."
+              LayoutBlockFlow {P} at (4,516) size 747x80 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 744x79
+                  text run at (0,0) width 718: "This paragraph should have a single, small green image positioned 20 pixels down and to the left of the upper left-"
+                  text run at (0,20) width 734: "hand corner; that is, the upper left-hand corner of the image should be 20 pixels down and to the left of the upper-left"
+                  text run at (0,40) width 141: "corner of the element. "
+                  text run at (141,40) width 603: "The background color will make it easier to determine the edges of the paragraph, which should"
+                  text run at (0,60) width 173: "assist in evaluating this test."
+layer at (8,329) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,321) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_repeat-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_repeat-expected.txt
new file mode 100644
index 0000000..624f90b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/background_repeat-expected.txt
@@ -0,0 +1,308 @@
+layer at (0,0) size 800x600 scrollWidth 888 scrollHeight 1993
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x1993 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x1993
+    LayoutBlockFlow {BODY} at (8,8) size 784x1977 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x240
+        LayoutText {#text} at (0,0) size 880x240
+          text run at (0,0) width 672: ".one {background-image: url(../resources/oransqr.gif); background-repeat: repeat-y;}"
+          text run at (672,0) width 0: " "
+          text run at (0,16) width 672: ".two {background-image: url(../resources/oransqr.gif); background-repeat: repeat-x;}"
+          text run at (672,16) width 0: " "
+          text run at (0,32) width 696: ".three {background-image: url(../resources/oransqr.gif); background-repeat: no-repeat;}"
+          text run at (696,32) width 0: " "
+          text run at (0,48) width 880: ".four {background-image: url(../resources/bg.gif); background-position: 50% 50%; background-repeat: repeat-y;}"
+          text run at (880,48) width 0: " "
+          text run at (0,64) width 704: ".five {background-image: url(../resources/crosshair2.gif); background-position: 50% 50%;"
+          text run at (704,64) width 0: " "
+          text run at (0,80) width 240: "       background-color: red;}"
+          text run at (240,80) width 0: " "
+          text run at (0,96) width 720: ".six {background-image: url(../resources/crosshair2.gif); background-position: center top;"
+          text run at (720,96) width 0: " "
+          text run at (0,112) width 232: "      background-color: red;}"
+          text run at (232,112) width 0: " "
+          text run at (0,128) width 720: ".seven {background-image: url(../resources/crosshair2.gif); background-position: top left;"
+          text run at (720,128) width 0: " "
+          text run at (0,144) width 248: "        background-color: red;}"
+          text run at (248,144) width 0: " "
+          text run at (0,160) width 752: ".eight {background-image: url(../resources/crosshair2.gif); background-position: bottom right;"
+          text run at (752,160) width 0: " "
+          text run at (0,176) width 248: "        background-color: red;}"
+          text run at (248,176) width 0: " "
+          text run at (0,192) width 704: ".nine {background-image: url(../resources/crosshair2.gif); background-position: 50% 50%;"
+          text run at (704,192) width 0: " "
+          text run at (0,208) width 240: "       background-color: red;}"
+          text run at (240,208) width 0: " "
+          text run at (0,224) width 0: " "
+      LayoutBlockFlow {P} at (0,307) size 784x60
+        LayoutText {#text} at (0,0) size 784x19
+          text run at (0,0) width 784: "This sentence should have an orange stripe repeated in the \"y\" direction, starting at the upper left corner (since the default for"
+        LayoutInline {CODE} at (0,0) size 152x16
+          LayoutText {#text} at (0,23) size 152x16
+            text run at (0,23) width 152: "background-position"
+        LayoutText {#text} at (152,20) size 779x39
+          text run at (152,20) width 320: " is '0% 0%' and that property is not declared here). "
+          text run at (472,20) width 307: "This is extra text included for the sole purpose of"
+          text run at (0,40) width 189: "making the paragraph longer. "
+          text run at (188,40) width 222: "Thank you for your understanding."
+      LayoutBlockFlow {P} at (0,383) size 784x60
+        LayoutText {#text} at (0,0) size 784x19
+          text run at (0,0) width 784: "This sentence should have an orange stripe repeated in the \"x\" direction, starting at the upper left corner (since the default for"
+        LayoutInline {CODE} at (0,0) size 152x16
+          LayoutText {#text} at (0,23) size 152x16
+            text run at (0,23) width 152: "background-position"
+        LayoutText {#text} at (152,20) size 779x39
+          text run at (152,20) width 320: " is '0% 0%' and that property is not declared here). "
+          text run at (472,20) width 307: "This is extra text included for the sole purpose of"
+          text run at (0,40) width 189: "making the paragraph longer. "
+          text run at (188,40) width 222: "Thank you for your understanding."
+      LayoutBlockFlow {P} at (0,459) size 784x60
+        LayoutText {#text} at (0,0) size 697x19
+          text run at (0,0) width 697: "This sentence should have a single orange square behind it, placed at the upper left corner (since the default for"
+        LayoutInline {CODE} at (0,0) size 152x16
+          LayoutText {#text} at (0,23) size 152x16
+            text run at (0,23) width 152: "background-position"
+        LayoutText {#text} at (152,20) size 779x39
+          text run at (152,20) width 320: " is '0% 0%' and that property is not declared here). "
+          text run at (472,20) width 307: "This is extra text included for the sole purpose of"
+          text run at (0,40) width 189: "making the paragraph longer. "
+          text run at (188,40) width 222: "Thank you for your understanding."
+      LayoutBlockFlow {P} at (0,535) size 784x80
+        LayoutText {#text} at (0,0) size 762x39
+          text run at (0,0) width 762: "This sentence should have a green-hatch stripe running vertically down the center of the paragraph, with the origin image"
+          text run at (0,20) width 216: "exactly centered in the paragraph. "
+          text run at (216,20) width 100: "This is because "
+        LayoutInline {CODE} at (0,0) size 64x16
+          LayoutText {#text} at (316,23) size 64x16
+            text run at (316,23) width 64: "repeat-y"
+        LayoutText {#text} at (380,20) size 114x19
+          text run at (380,20) width 114: " specifies tiling in "
+        LayoutInline {EM} at (0,0) size 28x19
+          LayoutText {#text} at (494,20) size 28x19
+            text run at (494,20) width 28: "both"
+        LayoutText {#text} at (522,20) size 764x39
+          text run at (522,20) width 158: " directions on the y-axis. "
+          text run at (680,20) width 84: "Note that this"
+          text run at (0,40) width 267: "test is only valid if the user agent supports "
+        LayoutInline {CODE} at (0,0) size 152x16
+          LayoutText {#text} at (267,43) size 152x16
+            text run at (267,43) width 152: "background-position"
+        LayoutText {#text} at (419,40) size 33x19
+          text run at (419,40) width 33: " (see "
+        LayoutInline {A} at (0,0) size 57x19 [color=#0000FF]
+          LayoutText {#text} at (452,40) size 57x19
+            text run at (452,40) width 57: "test 5.3.6"
+        LayoutText {#text} at (509,40) size 759x39
+          text run at (509,40) width 13: "). "
+          text run at (522,40) width 237: "I'll fill the paragraph with extra text to"
+          text run at (0,60) width 342: "make the conformance (or lack thereof) more obvious."
+      LayoutBlockFlow {P} at (0,631) size 784x100 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 754x19
+          text run at (0,0) width 658: "This paragraph should have a tiled background, with the origin image exactly centered in the paragraph. "
+          text run at (658,0) width 96: "This is because"
+        LayoutInline {CODE} at (0,0) size 136x16
+          LayoutText {#text} at (0,23) size 136x16
+            text run at (0,23) width 136: "background-repeat"
+        LayoutText {#text} at (136,20) size 114x19
+          text run at (136,20) width 114: " specifies tiling in "
+        LayoutInline {EM} at (0,0) size 16x19
+          LayoutText {#text} at (250,20) size 16x19
+            text run at (250,20) width 16: "all"
+        LayoutText {#text} at (266,20) size 782x39
+          text run at (266,20) width 361: " directions, regardless of the position of the origin image. "
+          text run at (627,20) width 155: "Note that this test is only"
+          text run at (0,40) width 196: "valid if the user agent supports "
+        LayoutInline {CODE} at (0,0) size 152x16
+          LayoutText {#text} at (196,43) size 152x16
+            text run at (196,43) width 152: "background-position"
+        LayoutText {#text} at (348,40) size 33x19
+          text run at (348,40) width 33: " (see "
+        LayoutInline {A} at (0,0) size 57x19 [color=#0000FF]
+          LayoutText {#text} at (381,40) size 57x19
+            text run at (381,40) width 57: "test 5.3.6"
+        LayoutText {#text} at (438,40) size 767x59
+          text run at (438,40) width 13: "). "
+          text run at (451,40) width 298: "I'll fill the paragraph with extra text to make the"
+          text run at (0,60) width 285: "conformance (or lack thereof) more obvious. "
+          text run at (285,60) width 482: "A background color is present, although if it is visible then the image has not"
+          text run at (0,80) width 116: "bee correctly tiled."
+      LayoutBlockFlow {P} at (0,747) size 784x60 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 782x59
+          text run at (0,0) width 764: "This sentence should have a fully tiled background which starts at its center top; that is, the background's origin should be"
+          text run at (0,20) width 277: "the exact center of the top of the paragraph. "
+          text run at (277,20) width 505: "I'll fill it with extra text to make the conformance (or lack thereof) more obvious."
+          text run at (0,40) width 653: "A background color is present, although if it is visible, then the image may not have been tiled correctly."
+      LayoutBlockFlow {P} at (0,823) size 784x60 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 777x59
+          text run at (0,0) width 488: "This sentence should have a fully tiled background which starts at its top left. "
+          text run at (488,0) width 220: "I'll fill it with extra text to make the"
+          text run at (0,20) width 285: "conformance (or lack thereof) more obvious. "
+          text run at (285,20) width 492: "A background color is present, although if it is visible, then the image may not"
+          text run at (0,40) width 157: "have been tiled correctly."
+      LayoutBlockFlow {P} at (0,899) size 784x80 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 784x79
+          text run at (0,0) width 783: "This sentence should have a fully tiled background which starts at its bottom right; in other words, a complete instance of the"
+          text run at (0,20) width 665: "image should be anchored in the bottom right corner, with the tiled background extending out from there. "
+          text run at (664,20) width 117: "I'll fill it with extra"
+          text run at (0,40) width 389: "text to make the conformance (or lack thereof) more obvious. "
+          text run at (389,40) width 395: "A background color is present, although if it is visible, then the"
+          text run at (0,60) width 254: "image may not have been tiled correctly."
+      LayoutBlockFlow {P} at (0,995) size 784x120 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 769x119
+          text run at (0,0) width 718: "This sentence should have a fully tiled background which starts at its center and is tiled in all directions; that is, the"
+          text run at (0,20) width 407: "background's origin should be the exact center of the paragraph. "
+          text run at (407,20) width 358: "I'll fill it with extra text to make the conformance (or lack"
+          text run at (0,40) width 147: "thereof) more obvious. "
+          text run at (147,40) width 442: "In fact, a lot of extra text will be necessary to make this at all obvious. "
+          text run at (589,40) width 180: "This is true because I am not"
+          text run at (0,60) width 765: "able to increase the text size without resorting to either headings or other CSS properties, neither of which I want to use in"
+          text run at (0,80) width 116: "this circumstance. "
+          text run at (116,80) width 241: "This ought to be enough text, though. "
+          text run at (357,80) width 395: "A background color is present, although if it is visible, then the"
+          text run at (0,100) width 254: "image may not have been tiled correctly."
+      LayoutTable {TABLE} at (0,1131) size 784x846 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x844
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x816
+            LayoutTableCell {TD} at (0,422) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x816 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60
+                LayoutText {#text} at (0,0) size 762x39
+                  text run at (0,0) width 762: "This sentence should have an orange stripe repeated in the \"y\" direction, starting at the upper left corner (since the default"
+                  text run at (0,20) width 22: "for "
+                LayoutInline {CODE} at (0,0) size 152x16
+                  LayoutText {#text} at (22,23) size 152x16
+                    text run at (22,23) width 152: "background-position"
+                LayoutText {#text} at (174,20) size 730x39
+                  text run at (174,20) width 320: " is '0% 0%' and that property is not declared here). "
+                  text run at (494,20) width 236: "This is extra text included for the sole"
+                  text run at (0,40) width 260: "purpose of making the paragraph longer. "
+                  text run at (259,40) width 222: "Thank you for your understanding."
+              LayoutBlockFlow {P} at (4,80) size 762x60
+                LayoutText {#text} at (0,0) size 762x39
+                  text run at (0,0) width 762: "This sentence should have an orange stripe repeated in the \"x\" direction, starting at the upper left corner (since the default"
+                  text run at (0,20) width 22: "for "
+                LayoutInline {CODE} at (0,0) size 152x16
+                  LayoutText {#text} at (22,23) size 152x16
+                    text run at (22,23) width 152: "background-position"
+                LayoutText {#text} at (174,20) size 730x39
+                  text run at (174,20) width 320: " is '0% 0%' and that property is not declared here). "
+                  text run at (494,20) width 236: "This is extra text included for the sole"
+                  text run at (0,40) width 260: "purpose of making the paragraph longer. "
+                  text run at (259,40) width 222: "Thank you for your understanding."
+              LayoutBlockFlow {P} at (4,156) size 762x60
+                LayoutText {#text} at (0,0) size 697x19
+                  text run at (0,0) width 697: "This sentence should have a single orange square behind it, placed at the upper left corner (since the default for"
+                LayoutInline {CODE} at (0,0) size 152x16
+                  LayoutText {#text} at (0,23) size 152x16
+                    text run at (0,23) width 152: "background-position"
+                LayoutText {#text} at (152,20) size 762x39
+                  text run at (152,20) width 320: " is '0% 0%' and that property is not declared here). "
+                  text run at (472,20) width 290: "This is extra text included for the sole purpose"
+                  text run at (0,40) width 206: "of making the paragraph longer. "
+                  text run at (205,40) width 222: "Thank you for your understanding."
+              LayoutBlockFlow {P} at (4,232) size 762x80
+                LayoutText {#text} at (0,0) size 762x39
+                  text run at (0,0) width 762: "This sentence should have a green-hatch stripe running vertically down the center of the paragraph, with the origin image"
+                  text run at (0,20) width 216: "exactly centered in the paragraph. "
+                  text run at (216,20) width 100: "This is because "
+                LayoutInline {CODE} at (0,0) size 64x16
+                  LayoutText {#text} at (316,23) size 64x16
+                    text run at (316,23) width 64: "repeat-y"
+                LayoutText {#text} at (380,20) size 114x19
+                  text run at (380,20) width 114: " specifies tiling in "
+                LayoutInline {EM} at (0,0) size 28x19
+                  LayoutText {#text} at (494,20) size 28x19
+                    text run at (494,20) width 28: "both"
+                LayoutText {#text} at (522,20) size 738x39
+                  text run at (522,20) width 158: " directions on the y-axis. "
+                  text run at (680,20) width 58: "Note that"
+                  text run at (0,40) width 293: "this test is only valid if the user agent supports "
+                LayoutInline {CODE} at (0,0) size 152x16
+                  LayoutText {#text} at (293,43) size 152x16
+                    text run at (293,43) width 152: "background-position"
+                LayoutText {#text} at (445,40) size 33x19
+                  text run at (445,40) width 33: " (see "
+                LayoutInline {A} at (0,0) size 57x19 [color=#0000FF]
+                  LayoutText {#text} at (478,40) size 57x19
+                    text run at (478,40) width 57: "test 5.3.6"
+                LayoutText {#text} at (535,40) size 742x39
+                  text run at (535,40) width 13: "). "
+                  text run at (548,40) width 194: "I'll fill the paragraph with extra"
+                  text run at (0,60) width 385: "text to make the conformance (or lack thereof) more obvious."
+              LayoutBlockFlow {P} at (4,328) size 762x100 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 754x19
+                  text run at (0,0) width 658: "This paragraph should have a tiled background, with the origin image exactly centered in the paragraph. "
+                  text run at (658,0) width 96: "This is because"
+                LayoutInline {CODE} at (0,0) size 136x16
+                  LayoutText {#text} at (0,23) size 136x16
+                    text run at (0,23) width 136: "background-repeat"
+                LayoutText {#text} at (136,20) size 114x19
+                  text run at (136,20) width 114: " specifies tiling in "
+                LayoutInline {EM} at (0,0) size 16x19
+                  LayoutText {#text} at (250,20) size 16x19
+                    text run at (250,20) width 16: "all"
+                LayoutText {#text} at (266,20) size 750x39
+                  text run at (266,20) width 361: " directions, regardless of the position of the origin image. "
+                  text run at (627,20) width 123: "Note that this test is"
+                  text run at (0,40) width 228: "only valid if the user agent supports "
+                LayoutInline {CODE} at (0,0) size 152x16
+                  LayoutText {#text} at (228,43) size 152x16
+                    text run at (228,43) width 152: "background-position"
+                LayoutText {#text} at (380,40) size 33x19
+                  text run at (380,40) width 33: " (see "
+                LayoutInline {A} at (0,0) size 57x19 [color=#0000FF]
+                  LayoutText {#text} at (413,40) size 57x19
+                    text run at (413,40) width 57: "test 5.3.6"
+                LayoutText {#text} at (470,40) size 758x59
+                  text run at (470,40) width 13: "). "
+                  text run at (483,40) width 275: "I'll fill the paragraph with extra text to make"
+                  text run at (0,60) width 308: "the conformance (or lack thereof) more obvious. "
+                  text run at (308,60) width 433: "A background color is present, although if it is visible then the image"
+                  text run at (0,80) width 165: "has not bee correctly tiled."
+              LayoutBlockFlow {P} at (4,444) size 762x60 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 745x59
+                  text run at (0,0) width 745: "This sentence should have a fully tiled background which starts at its center top; that is, the background's origin should"
+                  text run at (0,20) width 296: "be the exact center of the top of the paragraph. "
+                  text run at (296,20) width 447: "I'll fill it with extra text to make the conformance (or lack thereof) more"
+                  text run at (0,40) width 58: "obvious. "
+                  text run at (58,40) width 653: "A background color is present, although if it is visible, then the image may not have been tiled correctly."
+              LayoutBlockFlow {P} at (4,520) size 762x60 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 753x59
+                  text run at (0,0) width 488: "This sentence should have a fully tiled background which starts at its top left. "
+                  text run at (488,0) width 220: "I'll fill it with extra text to make the"
+                  text run at (0,20) width 285: "conformance (or lack thereof) more obvious. "
+                  text run at (285,20) width 468: "A background color is present, although if it is visible, then the image may"
+                  text run at (0,40) width 181: "not have been tiled correctly."
+              LayoutBlockFlow {P} at (4,596) size 762x80 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 760x79
+                  text run at (0,0) width 760: "This sentence should have a fully tiled background which starts at its bottom right; in other words, a complete instance of"
+                  text run at (0,20) width 688: "the image should be anchored in the bottom right corner, with the tiled background extending out from there. "
+                  text run at (687,20) width 50: "I'll fill it"
+                  text run at (0,40) width 456: "with extra text to make the conformance (or lack thereof) more obvious. "
+                  text run at (456,40) width 292: "A background color is present, although if it is"
+                  text run at (0,60) width 357: "visible, then the image may not have been tiled correctly."
+              LayoutBlockFlow {P} at (4,692) size 762x120 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 755x119
+                  text run at (0,0) width 718: "This sentence should have a fully tiled background which starts at its center and is tiled in all directions; that is, the"
+                  text run at (0,20) width 407: "background's origin should be the exact center of the paragraph. "
+                  text run at (407,20) width 328: "I'll fill it with extra text to make the conformance (or"
+                  text run at (0,40) width 177: "lack thereof) more obvious. "
+                  text run at (177,40) width 442: "In fact, a lot of extra text will be necessary to make this at all obvious. "
+                  text run at (619,40) width 133: "This is true because I"
+                  text run at (0,60) width 755: "am not able to increase the text size without resorting to either headings or other CSS properties, neither of which I want"
+                  text run at (0,80) width 173: "to use in this circumstance. "
+                  text run at (173,80) width 241: "This ought to be enough text, though. "
+                  text run at (414,80) width 341: "A background color is present, although if it is visible,"
+                  text run at (0,100) width 308: "then the image may not have been tiled correctly."
+layer at (8,297) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,289) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/color-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/color-expected.txt
new file mode 100644
index 0000000..c3b1fc7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/color_and_background/color-expected.txt
@@ -0,0 +1,39 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x32
+        LayoutText {#text} at (0,0) size 160x32
+          text run at (0,0) width 160: ".one {color: green;}"
+          text run at (160,0) width 0: " "
+          text run at (0,16) width 0: " "
+      LayoutBlockFlow {P} at (0,99) size 784x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,135) size 784x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutTable {TABLE} at (0,171) size 216x94 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 214x92
+          LayoutTableRow {TR} at (0,0) size 214x28
+            LayoutTableCell {TD} at (0,0) size 214x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 214x64
+            LayoutTableCell {TD} at (0,46) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 202x64 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 194x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,40) size 194x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/conformance/forward_compatible_parsing-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/conformance/forward_compatible_parsing-expected.txt
new file mode 100644
index 0000000..66ce4051
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/conformance/forward_compatible_parsing-expected.txt
@@ -0,0 +1,546 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 4321
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x4321 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x4321
+    LayoutBlockFlow {BODY} at (8,8) size 769x4305 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x864
+        LayoutText {#text} at (0,0) size 568x864
+          text run at (0,0) width 304: "P.one {color: green; rotation: 70deg;}"
+          text run at (304,0) width 0: " "
+          text run at (0,16) width 176: "P.oneb {color: green;}"
+          text run at (176,16) width 0: " "
+          text run at (0,32) width 232: "P.oneb {color: invalidValue;}"
+          text run at (232,32) width 0: " "
+          text run at (0,48) width 272: "P.two {background-color: inherit;}"
+          text run at (272,48) width 0: " "
+          text run at (0,64) width 216: "H1 + P.three {color: blue;}"
+          text run at (216,64) width 0: " "
+          text run at (0,80) width 200: "P.four + H1 {color: red;}"
+          text run at (200,80) width 0: " "
+          text run at (0,96) width 264: "P.five {background-color: \"red\";}"
+          text run at (264,96) width 0: " "
+          text run at (0,112) width 408: "P.sixa {border-width: medium; border-style: solid;}"
+          text run at (408,112) width 0: " "
+          text run at (0,128) width 400: "P.sixb {border-width: funny; border-style: solid;}"
+          text run at (400,128) width 0: " "
+          text run at (0,144) width 392: "P.sixc {border-width: 50zu; border-style: solid;}"
+          text run at (392,144) width 0: " "
+          text run at (0,160) width 376: "P.sixd {border-width: px; border-style: solid;}"
+          text run at (376,160) width 0: " "
+          text run at (0,176) width 96: "@three-dee {"
+          text run at (96,176) width 0: " "
+          text run at (0,192) width 184: " @background-lighting {"
+          text run at (184,192) width 0: " "
+          text run at (0,208) width 136: "  azimuth: 30deg;"
+          text run at (136,208) width 0: " "
+          text run at (0,224) width 160: "  elevation: 190deg;"
+          text run at (160,224) width 0: " "
+          text run at (0,240) width 24: "  }"
+          text run at (24,240) width 0: " "
+          text run at (0,256) width 184: " P.seven { color: red }"
+          text run at (184,256) width 0: " "
+          text run at (0,272) width 16: " }"
+          text run at (16,272) width 0: " "
+          text run at (0,288) width 184: "P.eight {COLOR: GREEN;}"
+          text run at (184,288) width 0: " "
+          text run at (0,304) width 192: "OL:wait {color: maroon;}"
+          text run at (192,304) width 0: " "
+          text run at (0,320) width 272: "P.ten:first-child {color: maroon;}"
+          text run at (272,320) width 0: " "
+          text run at (0,336) width 208: "UL:lang(fr) {color: gray;}"
+          text run at (208,336) width 0: " "
+          text run at (0,352) width 248: "BLOCKQUOTE[href] {color: navy;}"
+          text run at (248,352) width 0: " "
+          text run at (0,368) width 288: "ACRONYM[href=\"foo\"] {color: purple;}"
+          text run at (288,368) width 0: " "
+          text run at (0,384) width 296: "ADDRESS[href~=\"foo\"] {color: purple;}"
+          text run at (296,384) width 0: " "
+          text run at (0,400) width 248: "SPAN[lang|=\"fr\"] {color: #c37;}"
+          text run at (248,400) width 0: " "
+          text run at (0,416) width 96: "@media tty {"
+          text run at (96,416) width 0: " "
+          text run at (0,432) width 136: " H1 {color: red;}"
+          text run at (136,432) width 0: " "
+          text run at (0,448) width 192: " P.sixteen {color: red;}"
+          text run at (192,448) width 0: " "
+          text run at (0,464) width 16: " }"
+          text run at (16,464) width 0: " "
+          text run at (0,480) width 96: "@three-dee {"
+          text run at (96,480) width 0: " "
+          text run at (0,496) width 208: " P.seventeen {color: red }"
+          text run at (208,496) width 0: " "
+          text run at (0,512) width 16: " }"
+          text run at (16,512) width 0: " "
+          text run at (0,528) width 568: "P.eighteena {text-decoration: underline overline line-through diagonal;"
+          text run at (568,528) width 0: " "
+          text run at (0,544) width 416: "            font: bold highlighted 100% sans-serif;}"
+          text run at (416,544) width 0: " "
+          text run at (0,560) width 568: "P.eighteenb {text-decoration: underline overline line-through diagonal;"
+          text run at (568,560) width 0: " "
+          text run at (0,576) width 376: "            font: bold highlighted 100% serif;}"
+          text run at (376,576) width 0: " "
+          text run at (0,592) width 384: "EM, P.nineteena ! EM, STRONG {font-size: 200%; }"
+          text run at (384,592) width 0: " "
+          text run at (0,608) width 0: " "
+          text run at (0,624) width 128: "// UL.nineteenb,"
+          text run at (128,624) width 0: " "
+          text run at (0,640) width 200: "P.nineteenb {color: red;}"
+          text run at (200,640) width 0: " "
+          text run at (0,656) width 0: " "
+          text run at (0,672) width 360: "P.twentya {rotation-code: \"}\"; color: blue;} "
+          text run at (360,672) width 0: " "
+          text run at (0,688) width 390: "P.twentyb {rotation-code: \"\\\"}\\\"\"; color: green;}"
+          text run at (390,688) width 0: " "
+          text run at (0,704) width 400: "P.twentyonea {rotation-code: '}'; color: purple;} "
+          text run at (400,704) width 0: " "
+          text run at (0,720) width 414: "P.twentyoneb {rotation-code: '\\'}\\''; color: green;}"
+          text run at (414,720) width 0: " "
+          text run at (0,736) width 104: "P.twentytwo {"
+          text run at (104,736) width 0: " "
+          text run at (0,752) width 376: " type-display: @threedee {rotation-code: '}';};"
+          text run at (376,752) width 0: " "
+          text run at (0,768) width 112: " color: green;"
+          text run at (112,768) width 0: " "
+          text run at (0,784) width 16: " }"
+          text run at (16,784) width 0: " "
+          text run at (0,800) width 280: "P.twentythree {text-indent: 0.5in;}"
+          text run at (280,800) width 0: " "
+          text run at (0,816) width 112: " color: maroon"
+          text run at (112,816) width 0: " "
+          text run at (0,832) width 208: "P.twentyfour {color: red;}"
+          text run at (208,832) width 0: " "
+          text run at (0,848) width 0: " "
+      LayoutBlockFlow {P} at (0,931) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 485x19
+          text run at (0,0) width 485: "This paragraph should be green, because only the rotation should be ignored."
+      LayoutBlockFlow {P} at (0,967) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 622x19
+          text run at (0,0) width 622: "This paragraph should be green, since error-checking should be done before calculating specificity."
+      LayoutBlockFlow {P} at (0,1003) size 769x40
+        LayoutText {#text} at (0,0) size 560x19
+          text run at (0,0) width 560: "This paragraph should have a solid gray background (or a white grid), because in CSS1, "
+        LayoutInline {CODE} at (0,0) size 56x16
+          LayoutText {#text} at (560,3) size 56x16
+            text run at (560,3) width 56: "inherit"
+        LayoutText {#text} at (616,0) size 760x39
+          text run at (616,0) width 144: " is an invalid keyword,"
+          text run at (0,20) width 520: "and in CSS2, it will cause the gray background (not the white grid) to be inherited."
+      LayoutBlockFlow {P} at (0,1059) size 769x20
+        LayoutText {#text} at (0,0) size 638x19
+          text run at (0,0) width 638: "This paragraph should be black, since in CSS1, the selector is invalid, and in CSS2, it does not apply."
+      LayoutBlockFlow {P} at (0,1095) size 769x20
+        LayoutText {#text} at (0,0) size 638x19
+          text run at (0,0) width 638: "This paragraph should be black, since in CSS1, the selector is invalid, and in CSS2, it does not apply."
+      LayoutBlockFlow {P} at (0,1131) size 769x20
+        LayoutText {#text} at (0,0) size 526x19
+          text run at (0,0) width 526: "This paragraph should have a white background, since keywords cannot be quoted."
+      LayoutBlockFlow {P} at (0,1167) size 769x46 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 756x39
+          text run at (3,3) width 643: "This paragraph should have a medium-width border around it (the same as the next three paragraphs). "
+          text run at (646,3) width 113: "This should cause"
+          text run at (3,23) width 318: "the user agent to use the default value of 'medium'."
+      LayoutBlockFlow {P} at (0,1229) size 769x46 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 740x39
+          text run at (3,3) width 740: "This paragraph should have a medium-width border around it (the same as the previous and the next two paragraphs),"
+          text run at (3,23) width 228: "because the border-width is invalid. "
+          text run at (230,23) width 436: "This should cause the user agent to use the default value of 'medium'."
+      LayoutBlockFlow {P} at (0,1291) size 769x66 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 754x59
+          text run at (3,3) width 740: "This paragraph should have a medium-width border around it (the same as the next and the previous two paragraphs),"
+          text run at (3,23) width 588: "because the border-width units are invalid, and therefore the border-width should be ignored. "
+          text run at (590,23) width 167: "This should cause the user"
+          text run at (3,43) width 265: "agent to use the default value of 'medium'."
+      LayoutBlockFlow {P} at (0,1373) size 769x66 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 751x59
+          text run at (3,3) width 743: "This paragraph should have a medium-width border around it (the same as the previous three paragraphs), because the"
+          text run at (3,23) width 547: "border-width does not have any value to go with its pixel unit, and is therefore invalid. "
+          text run at (549,23) width 205: "This should cause the user agent"
+          text run at (3,43) width 227: "to use the default value of 'medium'."
+      LayoutBlockFlow {P} at (0,1455) size 769x20
+        LayoutText {#text} at (0,0) size 660x19
+          text run at (0,0) width 660: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule."
+      LayoutBlockFlow {P} at (0,1491) size 769x40 [color=#008000]
+        LayoutText {#text} at (0,0) size 760x39
+          text run at (0,0) width 207: "This paragraph should be green. "
+          text run at (207,0) width 553: "CSS is case-insensitive, unless required to be case sensitive due to interaction with other"
+          text run at (0,20) width 237: "standards (e.g., font names or URLs.)"
+      LayoutBlockFlow {OL} at (0,1547) size 769x20
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-16,0) size 16x19: "1"
+          LayoutText {#text} at (0,0) size 621x19
+            text run at (0,0) width 621: "This ordered list item should be black, because the declaration has an invalid pseudo-class selector."
+      LayoutBlockFlow {P} at (0,1583) size 769x40
+        LayoutText {#text} at (0,0) size 752x39
+          text run at (0,0) width 752: "This paragraph should be black, because, in CSS1, :first-child is an invalid pseudo-class, and in CSS2, this paragraph is"
+          text run at (0,20) width 110: "not the first child."
+      LayoutBlockFlow {UL} at (0,1639) size 769x40
+        LayoutListItem {LI} at (40,0) size 729x40
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 690x39
+            text run at (0,0) width 690: "This unordered list item should be black, because, according to CSS1, the selector is invalid, and according to"
+            text run at (0,20) width 228: "CSS2, the selector should not apply."
+      LayoutBlockFlow {BLOCKQUOTE} at (40,1695) size 689x40
+        LayoutText {#text} at (0,0) size 688x39
+          text run at (0,0) width 688: "This blockquote should be black, because, according to CSS1, the selector is invalid, and according to CSS2,"
+          text run at (0,20) width 183: "the selector should not apply."
+      LayoutBlockFlow {P} at (0,1751) size 769x40
+        LayoutInline {ACRONYM} at (0,0) size 748x39
+          LayoutText {#text} at (0,0) size 748x39
+            text run at (0,0) width 748: "This acronym should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the selector"
+            text run at (0,20) width 108: "should not apply."
+      LayoutBlockFlow {ADDRESS} at (0,1807) size 769x40
+        LayoutText {#text} at (0,0) size 744x39
+          text run at (0,0) width 744: "This address should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the selector"
+          text run at (0,20) width 109: "should not apply."
+      LayoutBlockFlow {P} at (0,1863) size 769x40
+        LayoutInline {SPAN} at (0,0) size 768x39
+          LayoutText {#text} at (0,0) size 768x39
+            text run at (0,0) width 768: "This span should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the selector should"
+            text run at (0,20) width 62: "not apply."
+      LayoutBlockFlow {P} at (0,1919) size 769x40
+        LayoutText {#text} at (0,0) size 753x39
+          text run at (0,0) width 664: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule. "
+          text run at (664,0) width 89: "However, it is"
+          text run at (0,20) width 592: "valid in CSS2, so if this is being viewed on a tty browser that supports CSS2, it should be red."
+      LayoutBlockFlow {P} at (0,1975) size 769x20
+        LayoutText {#text} at (0,0) size 660x19
+          text run at (0,0) width 660: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule."
+      LayoutBlockFlow {P} at (0,2011) size 769x80
+        LayoutText {#text} at (0,0) size 737x19
+          text run at (0,0) width 737: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold), because"
+        LayoutInline {CODE} at (0,0) size 64x16
+          LayoutText {#text} at (0,23) size 64x16
+            text run at (0,23) width 64: "diagonal"
+        LayoutText {#text} at (64,20) size 226x19
+          text run at (64,20) width 226: " is not a valid keyword, making the "
+        LayoutInline {CODE} at (0,0) size 120x16
+          LayoutText {#text} at (290,23) size 120x16
+            text run at (290,23) width 120: "text-decoration"
+        LayoutText {#text} at (410,20) size 131x19
+          text run at (410,20) width 55: " invalid. "
+          text run at (465,20) width 76: "In addition, "
+        LayoutInline {CODE} at (0,0) size 88x16
+          LayoutText {#text} at (541,23) size 88x16
+            text run at (541,23) width 88: "highlighted"
+        LayoutText {#text} at (629,20) size 758x39
+          text run at (629,20) width 129: " is not a valid part of"
+          text run at (0,40) width 23: "the "
+        LayoutInline {CODE} at (0,0) size 32x16
+          LayoutText {#text} at (23,43) size 32x16
+            text run at (23,43) width 32: "font"
+        LayoutText {#text} at (55,40) size 720x39
+          text run at (55,40) width 178: " property, making it invalid. "
+          text run at (232,40) width 488: "Therefore, this paragraph's font should be the UA default, and match the next"
+          text run at (0,60) width 71: "paragraph. "
+          text run at (71,60) width 190: "If this is not the case, then the "
+        LayoutInline {CODE} at (0,0) size 32x16
+          LayoutText {#text} at (261,63) size 32x16
+            text run at (261,63) width 32: "font"
+        LayoutText {#text} at (293,60) size 248x19
+          text run at (293,60) width 248: " declaration is being improperly parsed."
+      LayoutBlockFlow {P} at (0,2107) size 769x80
+        LayoutText {#text} at (0,0) size 737x19
+          text run at (0,0) width 737: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold), because"
+        LayoutInline {CODE} at (0,0) size 64x16
+          LayoutText {#text} at (0,23) size 64x16
+            text run at (0,23) width 64: "diagonal"
+        LayoutText {#text} at (64,20) size 226x19
+          text run at (64,20) width 226: " is not a valid keyword, making the "
+        LayoutInline {CODE} at (0,0) size 120x16
+          LayoutText {#text} at (290,23) size 120x16
+            text run at (290,23) width 120: "text-decoration"
+        LayoutText {#text} at (410,20) size 131x19
+          text run at (410,20) width 55: " invalid. "
+          text run at (465,20) width 76: "In addition, "
+        LayoutInline {CODE} at (0,0) size 88x16
+          LayoutText {#text} at (541,23) size 88x16
+            text run at (541,23) width 88: "highlighted"
+        LayoutText {#text} at (629,20) size 758x39
+          text run at (629,20) width 129: " is not a valid part of"
+          text run at (0,40) width 23: "the "
+        LayoutInline {CODE} at (0,0) size 32x16
+          LayoutText {#text} at (23,43) size 32x16
+            text run at (23,43) width 32: "font"
+        LayoutText {#text} at (55,40) size 747x39
+          text run at (55,40) width 178: " property, making it invalid. "
+          text run at (232,40) width 515: "Therefore, this paragraph's font should be the UA default, and match the previous"
+          text run at (0,60) width 71: "paragraph. "
+          text run at (71,60) width 190: "If this is not the case, then the "
+        LayoutInline {CODE} at (0,0) size 32x16
+          LayoutText {#text} at (261,63) size 32x16
+            text run at (261,63) width 32: "font"
+        LayoutText {#text} at (293,60) size 248x19
+          text run at (293,60) width 248: " declaration is being improperly parsed."
+      LayoutBlockFlow {P} at (0,2203) size 769x60
+        LayoutText {#text} at (0,0) size 530x19
+          text run at (0,0) width 501: "The text of this paragraph should be normal size because the selector is invalid. "
+          text run at (501,0) width 29: "The "
+        LayoutInline {EM} at (0,0) size 100x19
+          LayoutText {#text} at (530,0) size 100x19
+            text run at (530,0) width 100: "emphasized text"
+        LayoutText {#text} at (630,0) size 54x19
+          text run at (630,0) width 54: " and the "
+        LayoutInline {STRONG} at (0,0) size 72x19
+          LayoutText {#text} at (684,0) size 72x19
+            text run at (684,0) width 72: "strong text"
+        LayoutText {#text} at (0,20) size 761x39
+          text run at (0,20) width 761: "within it should also be normal size, since the entire ruleset should be skipped (since in some future version of CSS, there"
+          text run at (0,40) width 520: "could be an operator within the selector that has higher precedence than a comma)."
+      LayoutBlockFlow {P} at (0,2279) size 769x40
+        LayoutText {#text} at (0,0) size 464x19
+          text run at (0,0) width 464: "This paragraph should be black, because the line before the declaration is "
+        LayoutInline {STRONG} at (0,0) size 22x19
+          LayoutText {#text} at (464,0) size 22x19
+            text run at (464,0) width 22: "not"
+        LayoutText {#text} at (486,0) size 743x39
+          text run at (486,0) width 257: " a comment and therefore the selector for"
+          text run at (0,20) width 138: "P.nineteenb is invalid."
+      LayoutBlockFlow {P} at (0,2335) size 769x20 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 470x19
+          text run at (0,0) width 470: "This paragraph should be blue, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2371) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 478x19
+          text run at (0,0) width 478: "This paragraph should be green, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2407) size 769x20 [color=#800080]
+        LayoutText {#text} at (0,0) size 483x19
+          text run at (0,0) width 483: "This paragraph should be purple, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2443) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 478x19
+          text run at (0,0) width 478: "This paragraph should be green, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2479) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 478x19
+          text run at (0,0) width 478: "This paragraph should be green, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2515) size 769x20
+        LayoutText {#text} at (48,0) size 601x19
+          text run at (48,0) width 485: "This paragraph should be indented half an inch, but it should not be maroon. "
+          text run at (533,0) width 116: "It should be black."
+      LayoutBlockFlow {P} at (0,2551) size 769x40
+        LayoutText {#text} at (0,0) size 751x39
+          text run at (0,0) width 751: "This paragraph should be black, because the color declaration after the previous ruleset should be considered part of the"
+          text run at (0,20) width 616: "selector for this ruleset, and this ruleset therefore has an invalid selector and should not be applied."
+      LayoutTable {TABLE} at (0,2607) size 769x1698 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1696
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x1668
+            LayoutTableCell {TD} at (0,848) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x1668 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 485x19
+                  text run at (0,0) width 485: "This paragraph should be green, because only the rotation should be ignored."
+              LayoutBlockFlow {P} at (4,40) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 622x19
+                  text run at (0,0) width 622: "This paragraph should be green, since error-checking should be done before calculating specificity."
+              LayoutBlockFlow {P} at (4,76) size 747x40
+                LayoutText {#text} at (0,0) size 560x19
+                  text run at (0,0) width 560: "This paragraph should have a solid gray background (or a white grid), because in CSS1, "
+                LayoutInline {CODE} at (0,0) size 56x16
+                  LayoutText {#text} at (560,3) size 56x16
+                    text run at (560,3) width 56: "inherit"
+                LayoutText {#text} at (616,0) size 696x39
+                  text run at (616,0) width 80: " is an invalid"
+                  text run at (0,20) width 584: "keyword, and in CSS2, it will cause the gray background (not the white grid) to be inherited."
+              LayoutBlockFlow {P} at (4,132) size 747x20
+                LayoutText {#text} at (0,0) size 638x19
+                  text run at (0,0) width 638: "This paragraph should be black, since in CSS1, the selector is invalid, and in CSS2, it does not apply."
+              LayoutBlockFlow {P} at (4,168) size 747x20
+                LayoutText {#text} at (0,0) size 638x19
+                  text run at (0,0) width 638: "This paragraph should be black, since in CSS1, the selector is invalid, and in CSS2, it does not apply."
+              LayoutBlockFlow {P} at (4,204) size 747x20
+                LayoutText {#text} at (0,0) size 526x19
+                  text run at (0,0) width 526: "This paragraph should have a white background, since keywords cannot be quoted."
+              LayoutBlockFlow {P} at (4,240) size 747x46 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 717x39
+                  text run at (3,3) width 643: "This paragraph should have a medium-width border around it (the same as the next three paragraphs). "
+                  text run at (646,3) width 74: "This should"
+                  text run at (3,23) width 357: "cause the user agent to use the default value of 'medium'."
+              LayoutBlockFlow {P} at (4,302) size 747x46 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 740x39
+                  text run at (3,3) width 740: "This paragraph should have a medium-width border around it (the same as the previous and the next two paragraphs),"
+                  text run at (3,23) width 228: "because the border-width is invalid. "
+                  text run at (230,23) width 436: "This should cause the user agent to use the default value of 'medium'."
+              LayoutBlockFlow {P} at (4,364) size 747x66 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 740x59
+                  text run at (3,3) width 740: "This paragraph should have a medium-width border around it (the same as the next and the previous two paragraphs),"
+                  text run at (3,23) width 588: "because the border-width units are invalid, and therefore the border-width should be ignored. "
+                  text run at (590,23) width 137: "This should cause the"
+                  text run at (3,43) width 295: "user agent to use the default value of 'medium'."
+              LayoutBlockFlow {P} at (4,446) size 747x66 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 736x59
+                  text run at (3,3) width 720: "This paragraph should have a medium-width border around it (the same as the previous three paragraphs), because"
+                  text run at (3,23) width 570: "the border-width does not have any value to go with its pixel unit, and is therefore invalid. "
+                  text run at (572,23) width 167: "This should cause the user"
+                  text run at (3,43) width 265: "agent to use the default value of 'medium'."
+              LayoutBlockFlow {P} at (4,528) size 747x20
+                LayoutText {#text} at (0,0) size 660x19
+                  text run at (0,0) width 660: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule."
+              LayoutBlockFlow {P} at (4,564) size 747x40 [color=#008000]
+                LayoutText {#text} at (0,0) size 724x39
+                  text run at (0,0) width 207: "This paragraph should be green. "
+                  text run at (207,0) width 517: "CSS is case-insensitive, unless required to be case sensitive due to interaction with"
+                  text run at (0,20) width 273: "other standards (e.g., font names or URLs.)"
+              LayoutBlockFlow {OL} at (4,620) size 747x20
+                LayoutListItem {LI} at (40,0) size 707x20
+                  LayoutListMarker (anonymous) at (-16,0) size 16x19: "1"
+                  LayoutText {#text} at (0,0) size 621x19
+                    text run at (0,0) width 621: "This ordered list item should be black, because the declaration has an invalid pseudo-class selector."
+              LayoutBlockFlow {P} at (4,656) size 747x40
+                LayoutText {#text} at (0,0) size 738x39
+                  text run at (0,0) width 738: "This paragraph should be black, because, in CSS1, :first-child is an invalid pseudo-class, and in CSS2, this paragraph"
+                  text run at (0,20) width 124: "is not the first child."
+              LayoutBlockFlow {UL} at (4,712) size 747x40
+                LayoutListItem {LI} at (40,0) size 707x40
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 690x39
+                    text run at (0,0) width 690: "This unordered list item should be black, because, according to CSS1, the selector is invalid, and according to"
+                    text run at (0,20) width 228: "CSS2, the selector should not apply."
+              LayoutBlockFlow {BLOCKQUOTE} at (44,768) size 667x40
+                LayoutText {#text} at (0,0) size 643x39
+                  text run at (0,0) width 643: "This blockquote should be black, because, according to CSS1, the selector is invalid, and according to"
+                  text run at (0,20) width 228: "CSS2, the selector should not apply."
+              LayoutBlockFlow {P} at (4,824) size 747x40
+                LayoutInline {ACRONYM} at (0,0) size 696x39
+                  LayoutText {#text} at (0,0) size 696x39
+                    text run at (0,0) width 696: "This acronym should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the"
+                    text run at (0,20) width 160: "selector should not apply."
+              LayoutBlockFlow {ADDRESS} at (4,880) size 747x40
+                LayoutText {#text} at (0,0) size 744x39
+                  text run at (0,0) width 744: "This address should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the selector"
+                  text run at (0,20) width 109: "should not apply."
+              LayoutBlockFlow {P} at (4,936) size 747x40
+                LayoutInline {SPAN} at (0,0) size 722x39
+                  LayoutText {#text} at (0,0) size 722x39
+                    text run at (0,0) width 722: "This span should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the selector"
+                    text run at (0,20) width 108: "should not apply."
+              LayoutBlockFlow {P} at (4,992) size 747x40
+                LayoutText {#text} at (0,0) size 739x39
+                  text run at (0,0) width 664: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule. "
+                  text run at (664,0) width 75: "However, it"
+                  text run at (0,20) width 606: "is valid in CSS2, so if this is being viewed on a tty browser that supports CSS2, it should be red."
+              LayoutBlockFlow {P} at (4,1048) size 747x20
+                LayoutText {#text} at (0,0) size 660x19
+                  text run at (0,0) width 660: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule."
+              LayoutBlockFlow {P} at (4,1084) size 747x80
+                LayoutText {#text} at (0,0) size 737x19
+                  text run at (0,0) width 737: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold), because"
+                LayoutInline {CODE} at (0,0) size 64x16
+                  LayoutText {#text} at (0,23) size 64x16
+                    text run at (0,23) width 64: "diagonal"
+                LayoutText {#text} at (64,20) size 226x19
+                  text run at (64,20) width 226: " is not a valid keyword, making the "
+                LayoutInline {CODE} at (0,0) size 120x16
+                  LayoutText {#text} at (290,23) size 120x16
+                    text run at (290,23) width 120: "text-decoration"
+                LayoutText {#text} at (410,20) size 131x19
+                  text run at (410,20) width 55: " invalid. "
+                  text run at (465,20) width 76: "In addition, "
+                LayoutInline {CODE} at (0,0) size 88x16
+                  LayoutText {#text} at (541,23) size 88x16
+                    text run at (541,23) width 88: "highlighted"
+                LayoutText {#text} at (629,20) size 741x39
+                  text run at (629,20) width 112: " is not a valid part"
+                  text run at (0,40) width 40: "of the "
+                LayoutInline {CODE} at (0,0) size 32x16
+                  LayoutText {#text} at (40,43) size 32x16
+                    text run at (40,43) width 32: "font"
+                LayoutText {#text} at (72,40) size 737x39
+                  text run at (72,40) width 178: " property, making it invalid. "
+                  text run at (249,40) width 488: "Therefore, this paragraph's font should be the UA default, and match the next"
+                  text run at (0,60) width 71: "paragraph. "
+                  text run at (71,60) width 190: "If this is not the case, then the "
+                LayoutInline {CODE} at (0,0) size 32x16
+                  LayoutText {#text} at (261,63) size 32x16
+                    text run at (261,63) width 32: "font"
+                LayoutText {#text} at (293,60) size 248x19
+                  text run at (293,60) width 248: " declaration is being improperly parsed."
+              LayoutBlockFlow {P} at (4,1180) size 747x80
+                LayoutText {#text} at (0,0) size 737x19
+                  text run at (0,0) width 737: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold), because"
+                LayoutInline {CODE} at (0,0) size 64x16
+                  LayoutText {#text} at (0,23) size 64x16
+                    text run at (0,23) width 64: "diagonal"
+                LayoutText {#text} at (64,20) size 226x19
+                  text run at (64,20) width 226: " is not a valid keyword, making the "
+                LayoutInline {CODE} at (0,0) size 120x16
+                  LayoutText {#text} at (290,23) size 120x16
+                    text run at (290,23) width 120: "text-decoration"
+                LayoutText {#text} at (410,20) size 131x19
+                  text run at (410,20) width 55: " invalid. "
+                  text run at (465,20) width 76: "In addition, "
+                LayoutInline {CODE} at (0,0) size 88x16
+                  LayoutText {#text} at (541,23) size 88x16
+                    text run at (541,23) width 88: "highlighted"
+                LayoutText {#text} at (629,20) size 741x39
+                  text run at (629,20) width 112: " is not a valid part"
+                  text run at (0,40) width 40: "of the "
+                LayoutInline {CODE} at (0,0) size 32x16
+                  LayoutText {#text} at (40,43) size 32x16
+                    text run at (40,43) width 32: "font"
+                LayoutText {#text} at (72,40) size 706x39
+                  text run at (72,40) width 178: " property, making it invalid. "
+                  text run at (249,40) width 457: "Therefore, this paragraph's font should be the UA default, and match the"
+                  text run at (0,60) width 129: "previous paragraph. "
+                  text run at (129,60) width 190: "If this is not the case, then the "
+                LayoutInline {CODE} at (0,0) size 32x16
+                  LayoutText {#text} at (319,63) size 32x16
+                    text run at (319,63) width 32: "font"
+                LayoutText {#text} at (351,60) size 248x19
+                  text run at (351,60) width 248: " declaration is being improperly parsed."
+              LayoutBlockFlow {P} at (4,1276) size 747x60
+                LayoutText {#text} at (0,0) size 530x19
+                  text run at (0,0) width 501: "The text of this paragraph should be normal size because the selector is invalid. "
+                  text run at (501,0) width 29: "The "
+                LayoutInline {EM} at (0,0) size 100x19
+                  LayoutText {#text} at (530,0) size 100x19
+                    text run at (530,0) width 100: "emphasized text"
+                LayoutText {#text} at (630,0) size 54x19
+                  text run at (630,0) width 54: " and the "
+                LayoutInline {STRONG} at (0,0) size 727x39
+                  LayoutText {#text} at (684,0) size 727x39
+                    text run at (684,0) width 43: "strong"
+                    text run at (0,20) width 25: "text"
+                LayoutText {#text} at (25,20) size 718x39
+                  text run at (25,20) width 693: " within it should also be normal size, since the entire ruleset should be skipped (since in some future version of"
+                  text run at (0,40) width 592: "CSS, there could be an operator within the selector that has higher precedence than a comma)."
+              LayoutBlockFlow {P} at (4,1352) size 747x40
+                LayoutText {#text} at (0,0) size 464x19
+                  text run at (0,0) width 464: "This paragraph should be black, because the line before the declaration is "
+                LayoutInline {STRONG} at (0,0) size 22x19
+                  LayoutText {#text} at (464,0) size 22x19
+                    text run at (464,0) width 22: "not"
+                LayoutText {#text} at (486,0) size 743x39
+                  text run at (486,0) width 257: " a comment and therefore the selector for"
+                  text run at (0,20) width 138: "P.nineteenb is invalid."
+              LayoutBlockFlow {P} at (4,1408) size 747x20 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 470x19
+                  text run at (0,0) width 470: "This paragraph should be blue, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1444) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 478x19
+                  text run at (0,0) width 478: "This paragraph should be green, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1480) size 747x20 [color=#800080]
+                LayoutText {#text} at (0,0) size 483x19
+                  text run at (0,0) width 483: "This paragraph should be purple, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1516) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 478x19
+                  text run at (0,0) width 478: "This paragraph should be green, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1552) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 478x19
+                  text run at (0,0) width 478: "This paragraph should be green, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1588) size 747x20
+                LayoutText {#text} at (48,0) size 601x19
+                  text run at (48,0) width 485: "This paragraph should be indented half an inch, but it should not be maroon. "
+                  text run at (533,0) width 116: "It should be black."
+              LayoutBlockFlow {P} at (4,1624) size 747x40
+                LayoutText {#text} at (0,0) size 728x39
+                  text run at (0,0) width 728: "This paragraph should be black, because the color declaration after the previous ruleset should be considered part of"
+                  text run at (0,20) width 639: "the selector for this ruleset, and this ruleset therefore has an invalid selector and should not be applied."
+layer at (8,921) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,913) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font-expected.txt
new file mode 100644
index 0000000..d28ccd4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font-expected.txt
@@ -0,0 +1,231 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 4396
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x4396 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x4396.33
+    LayoutBlockFlow {BODY} at (8,8) size 769x4380.33 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x16
+        LayoutText {#text} at (0,0) size 264x15
+          text run at (0,0) width 264: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,28) size 769x180
+        LayoutText {#text} at (0,0) size 399x180
+          text run at (0,0) width 162: "BODY {font-size: 12px;}"
+          text run at (162,0) width 0: " "
+          text run at (0,15) width 322: ".one {font: italic small-caps 13pt Helvetica;}"
+          text run at (322,15) width 0: " "
+          text run at (0,30) width 203: ".two {font: 150%/150% serif;}"
+          text run at (203,30) width 0: " "
+          text run at (0,45) width 252: ".three {font: 150%/150% sans-serif;}"
+          text run at (252,45) width 0: " "
+          text run at (0,60) width 231: ".four {font: small/200% cursive;}"
+          text run at (231,60) width 0: " "
+          text run at (0,75) width 399: ".five {font: italic small-caps 900 150%/150% sans-serif;}"
+          text run at (399,75) width 0: " "
+          text run at (0,90) width 392: ".six {font: italic small-caps 100 150%/300% sans-serif;}"
+          text run at (392,90) width 0: " "
+          text run at (0,105) width 392: ".seven {font: italic small-caps 900 150%/2em monospace;}"
+          text run at (392,105) width 0: " "
+          text run at (0,120) width 399: ".eight {font: italic small-caps 500 150%/1in sans-serif;}"
+          text run at (399,120) width 0: " "
+          text run at (0,135) width 378: ".nine {font: oblique normal 700 18px/200% sans-serif;}"
+          text run at (378,135) width 0: " "
+          text run at (0,150) width 301: ".ten {font: normal 400 80%/2.5 sans-serif;}"
+          text run at (301,150) width 0: " "
+          text run at (0,165) width 266: "SPAN.color {background-color: silver;}"
+          text run at (266,165) width 0: " "
+      LayoutBlockFlow {P} at (0,234) size 769x16
+        LayoutText {#text} at (0,0) size 706x15
+          text run at (0,0) width 423: "This element is unstyled, and should inherit a font-size of 12px from the BODY element. "
+          text run at (423,0) width 283: "This is the \"base font size\" referred to in the following tests."
+      LayoutBlockFlow {P} at (0,267.33) size 769x21
+        LayoutText {#text} at (0,0) size 496x20
+          text run at (0,0) width 496: "This element should be 13pt. Helvetica which is in small-cap italics."
+      LayoutBlockFlow {P} at (0,306.33) size 769x81
+        LayoutText {#text} at (0,3) size 762x74
+          text run at (0,3) width 282: "This element should be in a serif font. "
+          text run at (282,3) width 480: "Its font-size should be 150% the base font size, and its line-height"
+          text run at (0,30) width 423: "should 150% of that value (18px and 27px, respectively). "
+          text run at (423,30) width 297: "Extra text is included for the purposes of"
+          text run at (0,57) width 207: "testing this more effectively."
+      LayoutBlockFlow {P} at (0,405.33) size 769x81
+        LayoutText {#text} at (0,3) size 760x75
+          text run at (0,3) width 348: "This element should be in a sans-serif font. "
+          text run at (348,3) width 412: "Its font-size should be 150% the base font size, and"
+          text run at (0,30) width 568: "its line-height should 150% of that value (18px and 27px, respectively). "
+          text run at (568,30) width 192: "Extra text is included for"
+          text run at (0,57) width 350: "the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,504.33) size 769x80
+        LayoutText {#text} at (0,4) size 746x44
+          text run at (0,4) width 725: "This element should be in a cursive font, 'small' in size, with a line-height 200% the height of the text's actual size. "
+          text run at (725,4) width 21: "For"
+          text run at (0,30) width 193: "example, if the font-size value "
+        LayoutInline {CODE} at (0,0) size 30x12
+          LayoutText {#text} at (193,35) size 30x12
+            text run at (193,35) width 30: "small"
+        LayoutText {#text} at (223,30) size 736x46
+          text run at (223,30) width 369: " is calculated at 10px, then the line-height should be 20px. "
+          text run at (592,30) width 144: "The actual value of the"
+          text run at (0,58) width 170: "font-size is UA-dependent. "
+          text run at (170,58) width 445: "Extra text is included for the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,602.33) size 769x108
+        LayoutText {#text} at (0,3) size 750x102
+          text run at (0,3) width 728: "This element should be in a sans-serif font, italicized and small caps, with a weight of 900. "
+          text run at (727,3) width 23: "Its"
+          text run at (0,30) width 747: "font-size should be 150% the base font size, and its line-height should be 150% of that value"
+          text run at (0,57) width 246: "(18px and 27px, respectively). "
+          text run at (245,57) width 481: "Extra text is included for the purposes of testing this more"
+          text run at (0,84) width 95: "effectively."
+      LayoutBlockFlow {P} at (0,728.33) size 769x216
+        LayoutText {#text} at (0,16) size 745x184
+          text run at (0,16) width 723: "This element should be in a sans-serif font, italicized and small caps, with a weight of 100. "
+          text run at (722,16) width 23: "Its"
+          text run at (0,70) width 743: "font-size should be 150% the base font size, and its line-height should be 300% of that value"
+          text run at (0,124) width 244: "(18px and 54px, respectively). "
+          text run at (243,124) width 480: "Extra text is included for the purposes of testing this more"
+          text run at (0,178) width 93: "effectively."
+      LayoutBlockFlow {P} at (0,962.33) size 769x144
+        LayoutText {#text} at (0,8) size 750x128
+          text run at (0,8) width 750: "This element should be in a monospace font, italicized and small caps, with a weight of"
+          text run at (0,44) width 55: "900. "
+          text run at (55,44) width 687: "Its font-size should be 150% the base font size, and its line-height should be"
+          text run at (0,80) width 618: "2em, or twice the element's font size (18px and 36px, respectively). "
+          text run at (618,80) width 113: "Extra text is"
+          text run at (0,116) width 499: "included for the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,1124.33) size 769x288
+        LayoutText {#text} at (0,37) size 745x214
+          text run at (0,37) width 723: "This element should be in a sans-serif font, italicized and small caps, with a weight of 500. "
+          text run at (722,37) width 23: "Its"
+          text run at (0,133) width 693: "font-size should be 150% the base font size, or 18px, and its line-height should be 1in. "
+          text run at (693,133) width 47: "Extra"
+          text run at (0,229) width 525: "text is included for the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,1430.33) size 769x144
+        LayoutText {#text} at (0,7) size 752x129
+          text run at (0,7) width 752: "This element should be in a sans-serif font, oblique and not small-caps, with a weight of"
+          text run at (0,43) width 40: "700. "
+          text run at (40,43) width 665: "Its font-size should be 18 pixels, and its line-height should be 36px (200% this"
+          text run at (0,79) width 176: "element's font size). "
+          text run at (176,79) width 500: "Extra text is included for the purposes of testing this more"
+          text run at (0,115) width 92: "effectively."
+      LayoutBlockFlow {P} at (0,1592.33) size 769x46
+        LayoutText {#text} at (0,5) size 754x36
+          text run at (0,5) width 301: "This element should be in a sans-serif font, with a weight of 400. "
+          text run at (301,5) width 453: "Its font-size should be 80% of 12px, or 9.6px, and its line-height shoud be 2.5 times that, or 24px."
+          text run at (0,28) width 318: "Extra text is included for the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,1656.33) size 769x270
+        LayoutInline {SPAN} at (0,0) size 759x238 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,16) size 759x238
+            text run at (0,16) width 723: "This element should be in a sans-serif font, italicized and small caps, with a weight of 100. "
+            text run at (722,16) width 23: "Its"
+            text run at (0,70) width 743: "font-size should be 150% the base font size, and its line-height should be 300% of that value"
+            text run at (0,124) width 759: "(18px and 54px, respectively). The text should have a silver background. The background color"
+            text run at (0,178) width 736: "has been set on an inline element and should therefore only cover the text, not the interline"
+            text run at (0,232) width 64: "spacing."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutTable {TABLE} at (0,1944.33) size 769x2436 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x2434
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x2406
+            LayoutTableCell {TD} at (0,1217) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x2406.33 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x40
+                LayoutText {#text} at (0,0) size 732x39
+                  text run at (0,0) width 564: "This element is unstyled, and should inherit a font-size of 12px from the BODY element. "
+                  text run at (564,0) width 168: "This is the \"base font size\""
+                  text run at (0,20) width 204: "referred to in the following tests."
+              LayoutBlockFlow {P} at (4,61.33) size 747x21
+                LayoutText {#text} at (0,0) size 496x20
+                  text run at (0,0) width 496: "This element should be 13pt. Helvetica which is in small-cap italics."
+              LayoutBlockFlow {P} at (4,106.33) size 747x144
+                LayoutText {#text} at (0,4) size 735x135
+                  text run at (0,4) width 374: "This element should be in a serif font. "
+                  text run at (374,4) width 361: "Its font-size should be 150% the base"
+                  text run at (0,40) width 694: "font size, and its line-height should 150% of that value (18px and 27px,"
+                  text run at (0,76) width 138: "respectively). "
+                  text run at (138,76) width 563: "Extra text is included for the purposes of testing this more"
+                  text run at (0,112) width 109: "effectively."
+              LayoutBlockFlow {P} at (4,274.33) size 747x144
+                LayoutText {#text} at (0,4) size 733x135
+                  text run at (0,4) width 461: "This element should be in a sans-serif font. "
+                  text run at (461,4) width 232: "Its font-size should be"
+                  text run at (0,40) width 733: "150% the base font size, and its line-height should 150% of that value"
+                  text run at (0,76) width 324: "(18px and 27px, respectively). "
+                  text run at (324,76) width 399: "Extra text is included for the purposes"
+                  text run at (0,112) width 320: "of testing this more effectively."
+              LayoutBlockFlow {P} at (4,442.33) size 747x80
+                LayoutText {#text} at (0,4) size 746x44
+                  text run at (0,4) width 725: "This element should be in a cursive font, 'small' in size, with a line-height 200% the height of the text's actual size. "
+                  text run at (725,4) width 21: "For"
+                  text run at (0,30) width 193: "example, if the font-size value "
+                LayoutInline {CODE} at (0,0) size 30x12
+                  LayoutText {#text} at (193,35) size 30x12
+                    text run at (193,35) width 30: "small"
+                LayoutText {#text} at (223,30) size 736x46
+                  text run at (223,30) width 369: " is calculated at 10px, then the line-height should be 20px. "
+                  text run at (592,30) width 144: "The actual value of the"
+                  text run at (0,58) width 170: "font-size is UA-dependent. "
+                  text run at (170,58) width 445: "Extra text is included for the purposes of testing this more effectively."
+              LayoutBlockFlow {P} at (4,546.33) size 747x180
+                LayoutText {#text} at (0,4) size 721x172
+                  text run at (0,4) width 713: "This element should be in a sans-serif font, italicized and small caps,"
+                  text run at (0,40) width 226: "with a weight of 900. "
+                  text run at (226,40) width 495: "Its font-size should be 150% the base font size,"
+                  text run at (0,76) width 669: "and its line-height should be 150% of that value (18px and 27px,"
+                  text run at (0,112) width 147: "respectively). "
+                  text run at (146,112) width 562: "Extra text is included for the purposes of testing this"
+                  text run at (0,148) width 175: "more effectively."
+              LayoutBlockFlow {P} at (4,750.33) size 747x360
+                LayoutText {#text} at (0,22) size 716x316
+                  text run at (0,22) width 701: "This element should be in a sans-serif font, italicized and small caps,"
+                  text run at (0,94) width 225: "with a weight of 100. "
+                  text run at (225,94) width 491: "Its font-size should be 150% the base font size,"
+                  text run at (0,166) width 661: "and its line-height should be 300% of that value (18px and 54px,"
+                  text run at (0,238) width 146: "respectively). "
+                  text run at (145,238) width 560: "Extra text is included for the purposes of testing this"
+                  text run at (0,310) width 174: "more effectively."
+              LayoutBlockFlow {P} at (4,1134.33) size 747x156
+                LayoutText {#text} at (0,8) size 740x140
+                  text run at (0,8) width 740: "This element should be in a monospace font, italicized and small caps, with a weight"
+                  text run at (0,47) width 88: "of 900. "
+                  text run at (88,47) width 620: "Its font-size should be 150% the base font size, and its line-height"
+                  text run at (0,86) width 716: "should be 2em, or twice the element's font size (18px and 36px, respectively)."
+                  text run at (0,125) width 636: "Extra text is included for the purposes of testing this more effectively."
+              LayoutBlockFlow {P} at (4,1314.33) size 747x384
+                LayoutText {#text} at (0,34) size 739x316
+                  text run at (0,34) width 701: "This element should be in a sans-serif font, italicized and small caps,"
+                  text run at (0,130) width 225: "with a weight of 500. "
+                  text run at (225,130) width 491: "Its font-size should be 150% the base font size,"
+                  text run at (0,226) width 433: "or 18px, and its line-height should be 1in. "
+                  text run at (433,226) width 306: "Extra text is included for the"
+                  text run at (0,322) width 427: "purposes of testing this more effectively."
+              LayoutBlockFlow {P} at (4,1722.33) size 747x144
+                LayoutText {#text} at (0,7) size 730x129
+                  text run at (0,7) width 730: "This element should be in a sans-serif font, oblique and not small-caps, with a weight"
+                  text run at (0,43) width 62: "of 700. "
+                  text run at (62,43) width 665: "Its font-size should be 18 pixels, and its line-height should be 36px (200% this"
+                  text run at (0,79) width 176: "element's font size). "
+                  text run at (176,79) width 500: "Extra text is included for the purposes of testing this more"
+                  text run at (0,115) width 92: "effectively."
+              LayoutBlockFlow {P} at (4,1884.33) size 747x62
+                LayoutText {#text} at (0,7) size 714x47
+                  text run at (0,7) width 378: "This element should be in a sans-serif font, with a weight of 400. "
+                  text run at (378,7) width 336: "Its font-size should be 80% of 12px, or 9.6px, and its line-"
+                  text run at (0,38) width 235: "height shoud be 2.5 times that, or 24px. "
+                  text run at (235,38) width 404: "Extra text is included for the purposes of testing this more effectively."
+              LayoutBlockFlow {P} at (4,1970.33) size 747x432
+                LayoutInline {SPAN} at (0,0) size 747x388 [bgcolor=#C0C0C0]
+                  LayoutText {#text} at (0,22) size 747x388
+                    text run at (0,22) width 701: "This element should be in a sans-serif font, italicized and small caps,"
+                    text run at (0,94) width 225: "with a weight of 100. "
+                    text run at (225,94) width 491: "Its font-size should be 150% the base font size,"
+                    text run at (0,166) width 661: "and its line-height should be 300% of that value (18px and 54px,"
+                    text run at (0,238) width 747: "respectively). The text should have a silver background. The background"
+                    text run at (0,310) width 743: "color has been set on an inline element and should therefore only cover"
+                    text run at (0,382) width 353: "the text, not the interline spacing."
+                LayoutText {#text} at (0,0) size 0x0
+layer at (8,228) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,220) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_family-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_family-expected.txt
new file mode 100644
index 0000000..1dc1fa4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_family-expected.txt
@@ -0,0 +1,140 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1324
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1324 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1324
+    LayoutBlockFlow {BODY} at (8,8) size 769x1308 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x144
+        LayoutText {#text} at (0,0) size 312x144
+          text run at (0,0) width 216: "DIV.a {font-family: serif;}"
+          text run at (216,0) width 0: " "
+          text run at (0,16) width 248: "DIV.b {font-family: monospace;}"
+          text run at (248,16) width 0: " "
+          text run at (0,32) width 208: ".one {font-family: serif;}"
+          text run at (208,32) width 0: " "
+          text run at (0,48) width 248: ".two {font-family: sans-serif;}"
+          text run at (248,48) width 0: " "
+          text run at (0,64) width 240: ".three {font-family: cursive;}"
+          text run at (240,64) width 0: " "
+          text run at (0,80) width 232: ".four {font-family: fantasy;}"
+          text run at (232,80) width 0: " "
+          text run at (0,96) width 248: ".five {font-family: monospace;}"
+          text run at (248,96) width 0: " "
+          text run at (0,112) width 312: ".six {font-family: sans-serif,cursive;}"
+          text run at (312,112) width 0: " "
+          text run at (0,128) width 304: ".seven {font-family: monospace,serif;}"
+          text run at (304,128) width 0: " "
+      LayoutBlockFlow {DIV} at (0,211) size 769x198
+        LayoutBlockFlow {P} at (0,0) size 769x20
+          LayoutText {#text} at (0,0) size 638x19
+            text run at (0,0) width 638: "This sentence is normal for the first division, which is the next five sentences; it should be a serif font."
+        LayoutBlockFlow {P} at (0,36) size 769x20
+          LayoutText {#text} at (0,0) size 242x19
+            text run at (0,0) width 242: "This sentence should be in a serif font."
+        LayoutBlockFlow {P} at (0,72) size 769x19
+          LayoutText {#text} at (0,0) size 311x18
+            text run at (0,0) width 311: "This sentence should be in a sans-serif font."
+        LayoutBlockFlow {P} at (0,107) size 769x23
+          LayoutText {#text} at (0,0) size 308x23
+            text run at (0,0) width 308: "This sentence should be in a cursive font."
+        LayoutBlockFlow {P} at (0,146) size 769x20
+          LayoutText {#text} at (0,0) size 268x20
+            text run at (0,0) width 268: "This sentence should be in a fantasy font."
+        LayoutBlockFlow {P} at (0,182) size 769x16
+          LayoutText {#text} at (0,0) size 352x16
+            text run at (0,0) width 352: "This sentence should be in a monospace font."
+      LayoutBlockFlow {P} at (0,440) size 769x19
+        LayoutText {#text} at (0,0) size 396x18
+          text run at (0,0) width 396: "This sentence should be in a sans-serif font, not cursive."
+      LayoutBlockFlow {P} at (0,475) size 769x18
+        LayoutText {#text} at (0,0) size 550x18
+          text run at (0,0) width 550: "This sentence should be in a monospace font, not serif."
+      LayoutBlockFlow {DIV} at (0,524) size 769x210
+        LayoutBlockFlow {P} at (0,0) size 769x32
+          LayoutText {#text} at (0,0) size 768x32
+            text run at (0,0) width 768: "This sentence is normal for the first division, which is the next five sentences; it should be a"
+            text run at (0,16) width 120: "monospace font."
+        LayoutBlockFlow {P} at (0,48) size 769x20
+          LayoutText {#text} at (0,0) size 242x19
+            text run at (0,0) width 242: "This sentence should be in a serif font."
+        LayoutBlockFlow {P} at (0,84) size 769x19
+          LayoutText {#text} at (0,0) size 311x18
+            text run at (0,0) width 311: "This sentence should be in a sans-serif font."
+        LayoutBlockFlow {P} at (0,119) size 769x23
+          LayoutText {#text} at (0,0) size 308x23
+            text run at (0,0) width 308: "This sentence should be in a cursive font."
+        LayoutBlockFlow {P} at (0,158) size 769x20
+          LayoutText {#text} at (0,0) size 268x20
+            text run at (0,0) width 268: "This sentence should be in a fantasy font."
+        LayoutBlockFlow {P} at (0,194) size 769x16
+          LayoutText {#text} at (0,0) size 352x16
+            text run at (0,0) width 352: "This sentence should be in a monospace font."
+      LayoutTable {TABLE} at (0,747) size 769x561 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x559
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x531
+            LayoutTableCell {TD} at (0,279) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x531 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {DIV} at (4,4) size 747x198
+                LayoutBlockFlow {P} at (0,0) size 747x20
+                  LayoutText {#text} at (0,0) size 638x19
+                    text run at (0,0) width 638: "This sentence is normal for the first division, which is the next five sentences; it should be a serif font."
+                LayoutBlockFlow {P} at (0,36) size 747x20
+                  LayoutText {#text} at (0,0) size 242x19
+                    text run at (0,0) width 242: "This sentence should be in a serif font."
+                LayoutBlockFlow {P} at (0,72) size 747x19
+                  LayoutText {#text} at (0,0) size 311x18
+                    text run at (0,0) width 311: "This sentence should be in a sans-serif font."
+                LayoutBlockFlow {P} at (0,107) size 747x23
+                  LayoutText {#text} at (0,0) size 308x23
+                    text run at (0,0) width 308: "This sentence should be in a cursive font."
+                LayoutBlockFlow {P} at (0,146) size 747x20
+                  LayoutText {#text} at (0,0) size 268x20
+                    text run at (0,0) width 268: "This sentence should be in a fantasy font."
+                LayoutBlockFlow {P} at (0,182) size 747x16
+                  LayoutText {#text} at (0,0) size 352x16
+                    text run at (0,0) width 352: "This sentence should be in a monospace font."
+              LayoutBlockFlow {P} at (4,233) size 747x19
+                LayoutText {#text} at (0,0) size 396x18
+                  text run at (0,0) width 396: "This sentence should be in a sans-serif font, not cursive."
+              LayoutBlockFlow {P} at (4,268) size 747x18
+                LayoutText {#text} at (0,0) size 550x18
+                  text run at (0,0) width 550: "This sentence should be in a monospace font, not serif."
+              LayoutBlockFlow {DIV} at (4,317) size 747x210
+                LayoutBlockFlow {P} at (0,0) size 747x32
+                  LayoutText {#text} at (0,0) size 728x32
+                    text run at (0,0) width 728: "This sentence is normal for the first division, which is the next five sentences; it should"
+                    text run at (0,16) width 160: "be a monospace font."
+                LayoutBlockFlow {P} at (0,48) size 747x20
+                  LayoutText {#text} at (0,0) size 242x19
+                    text run at (0,0) width 242: "This sentence should be in a serif font."
+                LayoutBlockFlow {P} at (0,84) size 747x19
+                  LayoutText {#text} at (0,0) size 311x18
+                    text run at (0,0) width 311: "This sentence should be in a sans-serif font."
+                LayoutBlockFlow {P} at (0,119) size 747x23
+                  LayoutText {#text} at (0,0) size 308x23
+                    text run at (0,0) width 308: "This sentence should be in a cursive font."
+                LayoutBlockFlow {P} at (0,158) size 747x20
+                  LayoutText {#text} at (0,0) size 268x20
+                    text run at (0,0) width 268: "This sentence should be in a fantasy font."
+                LayoutBlockFlow {P} at (0,194) size 747x16
+                  LayoutText {#text} at (0,0) size 352x16
+                    text run at (0,0) width 352: "This sentence should be in a monospace font."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,430) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,422) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,517) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,509) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (25,999) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,215) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1086) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,302) size 747x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_size-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_size-expected.txt
new file mode 100644
index 0000000..9214ad4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_size-expected.txt
@@ -0,0 +1,259 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2877
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2877 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2877.27
+    LayoutBlockFlow {BODY} at (8,8) size 769x2861.27 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x320
+        LayoutText {#text} at (0,0) size 224x320
+          text run at (0,0) width 200: ".one {font-size: medium;}"
+          text run at (200,0) width 0: " "
+          text run at (0,16) width 200: ".two {font-size: larger;}"
+          text run at (200,16) width 0: " "
+          text run at (0,32) width 224: ".three {font-size: smaller;}"
+          text run at (224,32) width 0: " "
+          text run at (0,48) width 224: ".four {font-size: xx-small;}"
+          text run at (224,48) width 0: " "
+          text run at (0,64) width 216: ".five {font-size: x-small;}"
+          text run at (216,64) width 0: " "
+          text run at (0,80) width 192: ".six {font-size: small;}"
+          text run at (192,80) width 0: " "
+          text run at (0,96) width 208: ".seven {font-size: large;}"
+          text run at (208,96) width 0: " "
+          text run at (0,112) width 224: ".eight {font-size: x-large;}"
+          text run at (224,112) width 0: " "
+          text run at (0,128) width 224: ".nine {font-size: xx-large;}"
+          text run at (224,128) width 0: " "
+          text run at (0,144) width 176: ".a {font-size: 0.5in;}"
+          text run at (176,144) width 0: " "
+          text run at (0,160) width 160: ".b {font-size: 1cm;}"
+          text run at (160,160) width 0: " "
+          text run at (0,176) width 168: ".c {font-size: 10mm;}"
+          text run at (168,176) width 0: " "
+          text run at (0,192) width 168: ".d {font-size: 18pt;}"
+          text run at (168,192) width 0: " "
+          text run at (0,208) width 176: ".e {font-size: 1.5pc;}"
+          text run at (176,208) width 0: " "
+          text run at (0,224) width 160: ".f {font-size: 2em;}"
+          text run at (160,224) width 0: " "
+          text run at (0,240) width 160: ".g {font-size: 3ex;}"
+          text run at (160,240) width 0: " "
+          text run at (0,256) width 168: ".h {font-size: 25px;}"
+          text run at (168,256) width 0: " "
+          text run at (0,272) width 168: ".i {font-size: 200%;}"
+          text run at (168,272) width 0: " "
+          text run at (0,288) width 184: ".j {font-size: -0.5in;}"
+          text run at (184,288) width 0: " "
+          text run at (0,304) width 0: " "
+      LayoutBlockFlow {P} at (0,387) size 769x20
+        LayoutText {#text} at (0,0) size 688x19
+          text run at (0,0) width 688: "This paragraph element is unstyled, so the size of the font in this element is the default size for this user agent."
+      LayoutBlockFlow {P} at (0,423) size 769x20
+        LayoutText {#text} at (0,0) size 186x19
+          text run at (0,0) width 186: "This sentence has been set to "
+        LayoutInline {CODE} at (0,0) size 48x16
+          LayoutText {#text} at (186,3) size 48x16
+            text run at (186,3) width 48: "medium"
+        LayoutText {#text} at (234,0) size 361x19
+          text run at (234,0) width 361: ", which may or may not be the same size as unstyled text."
+      LayoutBlockFlow {P} at (0,462.19) size 769x22
+        LayoutText {#text} at (0,0) size 377x21
+          text run at (0,0) width 377: "This sentence should be larger than unstyled text."
+      LayoutBlockFlow {P} at (0,503.38) size 769x16
+        LayoutText {#text} at (0,0) size 276x15
+          text run at (0,0) width 276: "This sentence should be smaller than unstyled text."
+      LayoutBlockFlow {P} at (0,532.70) size 769x20
+        LayoutText {#text} at (0,5) size 305x12
+          text run at (0,5) width 305: "This sentence should be very small, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 51x19
+          LayoutText {#text} at (305,0) size 51x19
+            text run at (305,0) width 51: "medium"
+        LayoutText {#text} at (356,5) size 2x12
+          text run at (356,5) width 2: "."
+      LayoutBlockFlow {P} at (0,562.70) size 769x20
+        LayoutText {#text} at (0,5) size 327x12
+          text run at (0,5) width 327: "This sentence should be rather small, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 51x19
+          LayoutText {#text} at (327,0) size 51x19
+            text run at (327,0) width 51: "medium"
+        LayoutText {#text} at (378,5) size 3x12
+          text run at (378,5) width 3: "."
+      LayoutBlockFlow {P} at (0,595.70) size 769x20
+        LayoutText {#text} at (0,3) size 401x15
+          text run at (0,3) width 401: "This sentence should be small, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 51x19
+          LayoutText {#text} at (401,0) size 51x19
+            text run at (401,0) width 51: "medium"
+        LayoutText {#text} at (452,3) size 3x15
+          text run at (452,3) width 3: "."
+      LayoutBlockFlow {P} at (0,633.70) size 769x21
+        LayoutText {#text} at (0,0) size 540x20
+          text run at (0,0) width 540: "This sentence should be large, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 52x19
+          LayoutText {#text} at (539,1) size 52x19
+            text run at (539,1) width 52: "medium"
+        LayoutText {#text} at (590,0) size 6x20
+          text run at (590,0) width 6: "."
+      LayoutBlockFlow {P} at (0,678.70) size 769x56
+        LayoutText {#text} at (0,0) size 745x55
+          text run at (0,0) width 745: "This sentence should be rather large, but the last word in the sentence should"
+          text run at (0,28) width 29: "be "
+        LayoutInline {SPAN} at (0,0) size 51x19
+          LayoutText {#text} at (29,34) size 51x19
+            text run at (29,34) width 51: "medium"
+        LayoutText {#text} at (80,28) size 6x27
+          text run at (80,28) width 6: "."
+      LayoutBlockFlow {P} at (0,766.70) size 769x74
+        LayoutText {#text} at (0,0) size 752x73
+          text run at (0,0) width 752: "This sentence should be very large, but the last word in the"
+          text run at (0,37) width 248: "sentence should be "
+        LayoutInline {SPAN} at (0,0) size 51x19
+          LayoutText {#text} at (248,50) size 51x19
+            text run at (248,50) width 51: "medium"
+        LayoutText {#text} at (299,37) size 8x36
+          text run at (299,37) width 8: "."
+      LayoutBlockFlow {P} at (0,888.70) size 769x114
+        LayoutText {#text} at (0,1) size 695x112
+          text run at (0,1) width 695: "This sentence should be half an inch"
+          text run at (0,58) width 72: "tall."
+      LayoutBlockFlow {P} at (0,1050.70) size 769x45
+        LayoutText {#text} at (0,1) size 676x43
+          text run at (0,1) width 676: "This sentence should be one centimeter tall."
+      LayoutBlockFlow {P} at (0,1133.48) size 769x45
+        LayoutText {#text} at (0,1) size 682x43
+          text run at (0,1) width 682: "This sentence should be ten millimeters tall."
+      LayoutBlockFlow {P} at (0,1216.27) size 769x28
+        LayoutText {#text} at (0,0) size 430x27
+          text run at (0,0) width 430: "This sentence should be eighteen points tall."
+      LayoutBlockFlow {P} at (0,1268.27) size 769x28
+        LayoutText {#text} at (0,0) size 499x27
+          text run at (0,0) width 499: "This sentence should be one and one half picas tall."
+      LayoutBlockFlow {P} at (0,1328.27) size 769x37
+        LayoutText {#text} at (0,0) size 465x36
+          text run at (0,0) width 465: "This sentence should be two em tall."
+      LayoutBlockFlow {P} at (0,1397.27) size 769x24
+        LayoutText {#text} at (0,0) size 312x23
+          text run at (0,0) width 312: "This sentence should be three ex tall."
+      LayoutBlockFlow {P} at (0,1446.27) size 769x30
+        LayoutText {#text} at (0,0) size 476x29
+          text run at (0,0) width 476: "This sentence should be twenty-five pixels tall."
+      LayoutBlockFlow {P} at (0,1508.27) size 769x37
+        LayoutText {#text} at (0,0) size 546x36
+          text run at (0,0) width 546: "This sentence should be twice normal size."
+      LayoutBlockFlow {P} at (0,1577.27) size 769x20
+        LayoutText {#text} at (0,0) size 673x19
+          text run at (0,0) width 673: "This sentence should be normal size, since no negative values are allowed and therefore should be ignored."
+      LayoutTable {TABLE} at (0,1613.27) size 769x1248 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1246
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x1218
+            LayoutTableCell {TD} at (0,623) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x1218.27 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 688x19
+                  text run at (0,0) width 688: "This paragraph element is unstyled, so the size of the font in this element is the default size for this user agent."
+              LayoutBlockFlow {P} at (4,40) size 747x20
+                LayoutText {#text} at (0,0) size 186x19
+                  text run at (0,0) width 186: "This sentence has been set to "
+                LayoutInline {CODE} at (0,0) size 48x16
+                  LayoutText {#text} at (186,3) size 48x16
+                    text run at (186,3) width 48: "medium"
+                LayoutText {#text} at (234,0) size 361x19
+                  text run at (234,0) width 361: ", which may or may not be the same size as unstyled text."
+              LayoutBlockFlow {P} at (4,79.19) size 747x22
+                LayoutText {#text} at (0,0) size 377x21
+                  text run at (0,0) width 377: "This sentence should be larger than unstyled text."
+              LayoutBlockFlow {P} at (4,120.38) size 747x16
+                LayoutText {#text} at (0,0) size 276x15
+                  text run at (0,0) width 276: "This sentence should be smaller than unstyled text."
+              LayoutBlockFlow {P} at (4,149.70) size 747x20
+                LayoutText {#text} at (0,5) size 305x12
+                  text run at (0,5) width 305: "This sentence should be very small, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 51x19
+                  LayoutText {#text} at (305,0) size 51x19
+                    text run at (305,0) width 51: "medium"
+                LayoutText {#text} at (356,5) size 2x12
+                  text run at (356,5) width 2: "."
+              LayoutBlockFlow {P} at (4,179.70) size 747x20
+                LayoutText {#text} at (0,5) size 327x12
+                  text run at (0,5) width 327: "This sentence should be rather small, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 51x19
+                  LayoutText {#text} at (327,0) size 51x19
+                    text run at (327,0) width 51: "medium"
+                LayoutText {#text} at (378,5) size 3x12
+                  text run at (378,5) width 3: "."
+              LayoutBlockFlow {P} at (4,212.70) size 747x20
+                LayoutText {#text} at (0,3) size 401x15
+                  text run at (0,3) width 401: "This sentence should be small, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 51x19
+                  LayoutText {#text} at (401,0) size 51x19
+                    text run at (401,0) width 51: "medium"
+                LayoutText {#text} at (452,3) size 3x15
+                  text run at (452,3) width 3: "."
+              LayoutBlockFlow {P} at (4,250.70) size 747x21
+                LayoutText {#text} at (0,0) size 540x20
+                  text run at (0,0) width 540: "This sentence should be large, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 52x19
+                  LayoutText {#text} at (539,1) size 52x19
+                    text run at (539,1) width 52: "medium"
+                LayoutText {#text} at (590,0) size 6x20
+                  text run at (590,0) width 6: "."
+              LayoutBlockFlow {P} at (4,295.70) size 747x56
+                LayoutText {#text} at (0,0) size 745x55
+                  text run at (0,0) width 745: "This sentence should be rather large, but the last word in the sentence should"
+                  text run at (0,28) width 29: "be "
+                LayoutInline {SPAN} at (0,0) size 51x19
+                  LayoutText {#text} at (29,34) size 51x19
+                    text run at (29,34) width 51: "medium"
+                LayoutText {#text} at (80,28) size 6x27
+                  text run at (80,28) width 6: "."
+              LayoutBlockFlow {P} at (4,383.70) size 747x74
+                LayoutText {#text} at (0,0) size 705x73
+                  text run at (0,0) width 705: "This sentence should be very large, but the last word in"
+                  text run at (0,37) width 295: "the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 51x19
+                  LayoutText {#text} at (295,50) size 51x19
+                    text run at (295,50) width 51: "medium"
+                LayoutText {#text} at (346,37) size 8x36
+                  text run at (346,37) width 8: "."
+              LayoutBlockFlow {P} at (4,505.70) size 747x114
+                LayoutText {#text} at (0,1) size 695x112
+                  text run at (0,1) width 695: "This sentence should be half an inch"
+                  text run at (0,58) width 72: "tall."
+              LayoutBlockFlow {P} at (4,667.70) size 747x45
+                LayoutText {#text} at (0,1) size 676x43
+                  text run at (0,1) width 676: "This sentence should be one centimeter tall."
+              LayoutBlockFlow {P} at (4,750.48) size 747x45
+                LayoutText {#text} at (0,1) size 682x43
+                  text run at (0,1) width 682: "This sentence should be ten millimeters tall."
+              LayoutBlockFlow {P} at (4,833.27) size 747x28
+                LayoutText {#text} at (0,0) size 430x27
+                  text run at (0,0) width 430: "This sentence should be eighteen points tall."
+              LayoutBlockFlow {P} at (4,885.27) size 747x28
+                LayoutText {#text} at (0,0) size 499x27
+                  text run at (0,0) width 499: "This sentence should be one and one half picas tall."
+              LayoutBlockFlow {P} at (4,945.27) size 747x37
+                LayoutText {#text} at (0,0) size 465x36
+                  text run at (0,0) width 465: "This sentence should be two em tall."
+              LayoutBlockFlow {P} at (4,1014.27) size 747x24
+                LayoutText {#text} at (0,0) size 312x23
+                  text run at (0,0) width 312: "This sentence should be three ex tall."
+              LayoutBlockFlow {P} at (4,1063.27) size 747x30
+                LayoutText {#text} at (0,0) size 476x29
+                  text run at (0,0) width 476: "This sentence should be twenty-five pixels tall."
+              LayoutBlockFlow {P} at (4,1125.27) size 747x37
+                LayoutText {#text} at (0,0) size 546x36
+                  text run at (0,0) width 546: "This sentence should be twice normal size."
+              LayoutBlockFlow {P} at (4,1194.27) size 747x20
+                LayoutText {#text} at (0,0) size 673x19
+                  text run at (0,0) width 673: "This sentence should be normal size, since no negative values are allowed and therefore should be ignored."
+layer at (8,377) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,369) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_style-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_style-expected.txt
new file mode 100644
index 0000000..29f5108
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_style-expected.txt
@@ -0,0 +1,63 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 248x64
+          text run at (0,0) width 208: ".one {font-style: italic;}"
+          text run at (208,0) width 0: " "
+          text run at (0,16) width 216: ".two {font-style: oblique;}"
+          text run at (216,16) width 0: " "
+          text run at (0,32) width 248: ".three, I {font-style: normal;}"
+          text run at (248,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 784x20
+        LayoutText {#text} at (0,0) size 501x19
+          text run at (0,0) width 501: "This paragraph should be in italics, but the last word of the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 45x19
+          LayoutText {#text} at (500,0) size 45x19
+            text run at (500,0) width 45: "normal"
+        LayoutText {#text} at (544,0) size 5x19
+          text run at (544,0) width 5: "."
+      LayoutBlockFlow {P} at (0,167) size 784x20
+        LayoutText {#text} at (0,0) size 219x19
+          text run at (0,0) width 219: "This paragraph should be oblique."
+      LayoutBlockFlow {P} at (0,203) size 784x20
+        LayoutInline {I} at (0,0) size 212x19
+          LayoutText {#text} at (0,0) size 212x19
+            text run at (0,0) width 212: "This paragraph should be normal."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutTable {TABLE} at (0,239) size 571x130 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 569x128
+          LayoutTableRow {TR} at (0,0) size 569x28
+            LayoutTableCell {TD} at (0,0) size 569x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 569x100
+            LayoutTableCell {TD} at (0,64) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 557x100 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 549x20
+                LayoutText {#text} at (0,0) size 501x19
+                  text run at (0,0) width 501: "This paragraph should be in italics, but the last word of the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 45x19
+                  LayoutText {#text} at (500,0) size 45x19
+                    text run at (500,0) width 45: "normal"
+                LayoutText {#text} at (544,0) size 5x19
+                  text run at (544,0) width 5: "."
+              LayoutBlockFlow {P} at (4,40) size 549x20
+                LayoutText {#text} at (0,0) size 219x19
+                  text run at (0,0) width 219: "This paragraph should be oblique."
+              LayoutBlockFlow {P} at (4,76) size 549x20
+                LayoutInline {I} at (0,0) size 212x19
+                  LayoutText {#text} at (0,0) size 212x19
+                    text run at (0,0) width 212: "This paragraph should be normal."
+                LayoutText {#text} at (0,0) size 0x0
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_variant-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_variant-expected.txt
new file mode 100644
index 0000000..84032c44
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_variant-expected.txt
@@ -0,0 +1,51 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 256x48
+          text run at (0,0) width 256: ".one {font-variant: small-caps;}"
+          text run at (256,0) width 0: " "
+          text run at (0,16) width 224: ".two {font-variant: normal;}"
+          text run at (224,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x20
+        LayoutText {#text} at (0,0) size 268x19
+          text run at (0,0) width 268: "This Paragraph should be in Small Caps."
+      LayoutBlockFlow {P} at (0,151) size 784x20
+        LayoutText {#text} at (0,0) size 574x19
+          text run at (0,0) width 574: "This Paragraph should be in Small Caps, but the Last Word in the Sentence should be "
+        LayoutInline {SPAN} at (0,0) size 48x19
+          LayoutText {#text} at (574,0) size 48x19
+            text run at (574,0) width 48: "Normal"
+        LayoutText {#text} at (622,0) size 4x19
+          text run at (622,0) width 4: "."
+      LayoutTable {TABLE} at (0,187) size 648x94 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 646x92
+          LayoutTableRow {TR} at (0,0) size 646x28
+            LayoutTableCell {TD} at (0,0) size 646x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 646x64
+            LayoutTableCell {TD} at (0,46) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 634x64 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 626x20
+                LayoutText {#text} at (0,0) size 268x19
+                  text run at (0,0) width 268: "This Paragraph should be in Small Caps."
+              LayoutBlockFlow {P} at (4,40) size 626x20
+                LayoutText {#text} at (0,0) size 574x19
+                  text run at (0,0) width 574: "This Paragraph should be in Small Caps, but the Last Word in the Sentence should be "
+                LayoutInline {SPAN} at (0,0) size 48x19
+                  LayoutText {#text} at (574,0) size 48x19
+                    text run at (574,0) width 48: "Normal"
+                LayoutText {#text} at (622,0) size 4x19
+                  text run at (622,0) width 4: "."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_weight-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_weight-expected.txt
new file mode 100644
index 0000000..b4ddb2ef
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/font_properties/font_weight-expected.txt
@@ -0,0 +1,125 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1105
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1105 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1104.80
+    LayoutBlockFlow {BODY} at (8,8) size 769x1088.80 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x176
+        LayoutText {#text} at (0,0) size 240x176
+          text run at (0,0) width 200: ".one {font-weight: bold;}"
+          text run at (200,0) width 0: " "
+          text run at (0,16) width 216: ".two {font-weight: bolder;}"
+          text run at (216,16) width 0: " "
+          text run at (0,32) width 240: ".three {font-weight: lighter;}"
+          text run at (240,32) width 0: " "
+          text run at (0,48) width 200: ".four {font-weight: 100;}"
+          text run at (200,48) width 0: " "
+          text run at (0,64) width 200: ".five {font-weight: 300;}"
+          text run at (200,64) width 0: " "
+          text run at (0,80) width 192: ".six {font-weight: 500;}"
+          text run at (192,80) width 0: " "
+          text run at (0,96) width 208: ".seven {font-weight: 700;}"
+          text run at (208,96) width 0: " "
+          text run at (0,112) width 208: ".eight {font-weight: 900;}"
+          text run at (208,112) width 0: " "
+          text run at (0,128) width 224: ".nine {font-weight: normal;}"
+          text run at (224,128) width 0: " "
+          text run at (0,144) width 200: "B {font-weight: lighter;}"
+          text run at (200,144) width 0: " "
+          text run at (0,160) width 0: " "
+      LayoutBlockFlow {P} at (0,243) size 769x20
+        LayoutText {#text} at (0,0) size 198x19
+          text run at (0,0) width 198: "This sentence should be bold."
+      LayoutBlockFlow {P} at (0,279) size 769x20
+        LayoutText {#text} at (0,0) size 300x19
+          text run at (0,0) width 300: "This sentence should be bolder than normal."
+      LayoutBlockFlow {H4} at (0,320.27) size 769x20
+        LayoutText {#text} at (0,0) size 131x19
+          text run at (0,0) width 131: "This is a heading-4."
+      LayoutBlockFlow {H4} at (0,361.53) size 769x20
+        LayoutText {#text} at (0,0) size 179x19
+          text run at (0,0) width 179: "This is a bolder heading-4."
+      LayoutBlockFlow {P} at (0,402.80) size 769x20
+        LayoutInline {B} at (0,0) size 353x19
+          LayoutText {#text} at (0,0) size 353x19
+            text run at (0,0) width 353: "This sentence should be normal (boldface made lighter)."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,438.80) size 769x20
+        LayoutText {#text} at (0,0) size 230x19
+          text run at (0,0) width 230: "This sentence should be weight 100."
+      LayoutBlockFlow {P} at (0,474.80) size 769x20
+        LayoutText {#text} at (0,0) size 230x19
+          text run at (0,0) width 230: "This sentence should be weight 300."
+      LayoutBlockFlow {P} at (0,510.80) size 769x20
+        LayoutText {#text} at (0,0) size 230x19
+          text run at (0,0) width 230: "This sentence should be weight 500."
+      LayoutBlockFlow {P} at (0,546.80) size 769x20
+        LayoutText {#text} at (0,0) size 241x19
+          text run at (0,0) width 241: "This sentence should be weight 700."
+      LayoutBlockFlow {P} at (0,582.80) size 769x20
+        LayoutText {#text} at (0,0) size 241x19
+          text run at (0,0) width 241: "This sentence should be weight 900."
+      LayoutBlockFlow {P} at (0,618.80) size 769x20
+        LayoutText {#text} at (0,0) size 493x19
+          text run at (0,0) width 493: "This sentence should be bold, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 44x19
+          LayoutText {#text} at (493,0) size 44x19
+            text run at (493,0) width 44: "normal"
+        LayoutText {#text} at (537,0) size 4x19
+          text run at (537,0) width 4: "."
+      LayoutTable {TABLE} at (0,654.80) size 563x434 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 561x432
+          LayoutTableRow {TR} at (0,0) size 561x28
+            LayoutTableCell {TD} at (0,0) size 561x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 561x404
+            LayoutTableCell {TD} at (0,216) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 549x403.80 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 541x20
+                LayoutText {#text} at (0,0) size 198x19
+                  text run at (0,0) width 198: "This sentence should be bold."
+              LayoutBlockFlow {P} at (4,40) size 541x20
+                LayoutText {#text} at (0,0) size 300x19
+                  text run at (0,0) width 300: "This sentence should be bolder than normal."
+              LayoutBlockFlow {H4} at (4,81.27) size 541x20
+                LayoutText {#text} at (0,0) size 131x19
+                  text run at (0,0) width 131: "This is a heading-4."
+              LayoutBlockFlow {H4} at (4,122.53) size 541x20
+                LayoutText {#text} at (0,0) size 179x19
+                  text run at (0,0) width 179: "This is a bolder heading-4."
+              LayoutBlockFlow {P} at (4,163.80) size 541x20
+                LayoutInline {B} at (0,0) size 353x19
+                  LayoutText {#text} at (0,0) size 353x19
+                    text run at (0,0) width 353: "This sentence should be normal (boldface made lighter)."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,199.80) size 541x20
+                LayoutText {#text} at (0,0) size 230x19
+                  text run at (0,0) width 230: "This sentence should be weight 100."
+              LayoutBlockFlow {P} at (4,235.80) size 541x20
+                LayoutText {#text} at (0,0) size 230x19
+                  text run at (0,0) width 230: "This sentence should be weight 300."
+              LayoutBlockFlow {P} at (4,271.80) size 541x20
+                LayoutText {#text} at (0,0) size 230x19
+                  text run at (0,0) width 230: "This sentence should be weight 500."
+              LayoutBlockFlow {P} at (4,307.80) size 541x20
+                LayoutText {#text} at (0,0) size 241x19
+                  text run at (0,0) width 241: "This sentence should be weight 700."
+              LayoutBlockFlow {P} at (4,343.80) size 541x20
+                LayoutText {#text} at (0,0) size 241x19
+                  text run at (0,0) width 241: "This sentence should be weight 900."
+              LayoutBlockFlow {P} at (4,379.80) size 541x20
+                LayoutText {#text} at (0,0) size 493x19
+                  text run at (0,0) width 493: "This sentence should be bold, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 44x19
+                  LayoutText {#text} at (493,0) size 44x19
+                    text run at (493,0) width 44: "normal"
+                LayoutText {#text} at (537,0) size 4x19
+                  text run at (537,0) width 4: "."
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/canvas-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/canvas-expected.txt
new file mode 100644
index 0000000..a027deb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/canvas-expected.txt
@@ -0,0 +1,42 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (25,25) size 750x550 [bgcolor=#008000]
+      LayoutBlockFlow {P} at (0,0) size 750x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 750x32
+        LayoutText {#text} at (0,0) size 552x32
+          text run at (0,0) width 240: "HTML {background-color: aqua;}"
+          text run at (240,0) width 0: " "
+          text run at (0,16) width 552: "BODY {background-color: green; background-image: none; margin: 25px;}"
+          text run at (552,16) width 0: " "
+      LayoutBlockFlow {P} at (0,99) size 750x60
+        LayoutText {#text} at (0,0) size 737x59
+          text run at (0,0) width 387: "The body of this document should have a green background. "
+          text run at (387,0) width 308: "It also has a margin of 25 pixels, so the light blue"
+          text run at (0,20) width 430: "background set for the HTML element should surround the BODY. "
+          text run at (429,20) width 308: "If the BODY content is significantly shorter than"
+          text run at (0,40) width 519: "the browser's window height, then the bottom border may be larger than 25 pixels."
+      LayoutTable {TABLE} at (0,175) size 750x98 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 748x96
+          LayoutTableRow {TR} at (0,0) size 748x28
+            LayoutTableCell {TD} at (0,0) size 748x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 748x68
+            LayoutTableCell {TD} at (0,48) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 736x68 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 728x60
+                LayoutText {#text} at (0,0) size 706x59
+                  text run at (0,0) width 387: "The body of this document should have a green background. "
+                  text run at (387,0) width 308: "It also has a margin of 25 pixels, so the light blue"
+                  text run at (0,20) width 430: "background set for the HTML element should surround the BODY. "
+                  text run at (429,20) width 277: "If the BODY content is significantly shorter"
+                  text run at (0,40) width 550: "than the browser's window height, then the bottom border may be larger than 25 pixels."
+layer at (25,106) size 750x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 750x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/floating_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/floating_elements-expected.txt
new file mode 100644
index 0000000..a92b1b2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/floating_elements-expected.txt
@@ -0,0 +1,747 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 6798
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x6798 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x6798
+    LayoutBlockFlow {BODY} at (8,8) size 769x6782 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x144
+        LayoutText {#text} at (0,0) size 480x144
+          text run at (0,0) width 272: "HR.minor {clear: both; width: 5%;}"
+          text run at (272,0) width 0: " "
+          text run at (0,16) width 400: "HR.major {clear: both; width: 75%; margin: 1.5em;}"
+          text run at (400,16) width 0: " "
+          text run at (0,32) width 480: "DIV {border: 5px solid purple; padding: 0; margin: 0.125em;}"
+          text run at (480,32) width 0: " "
+          text run at (0,48) width 432: "P.left, P.right {width: 10em; padding: 1em; margin: 0;"
+          text run at (432,48) width 0: " "
+          text run at (0,64) width 424: "   border: 1px solid lime; background-color: silver;}"
+          text run at (424,64) width 0: " "
+          text run at (0,80) width 456: "IMG.left, IMG.right {margin: 0; border: 3px solid black;}"
+          text run at (456,80) width 0: " "
+          text run at (0,96) width 160: ".left {float: left;}"
+          text run at (160,96) width 0: " "
+          text run at (0,112) width 176: ".right {float: right;}"
+          text run at (176,112) width 0: " "
+          text run at (0,128) width 0: " "
+      LayoutBlockFlow {P} at (0,211) size 769x40
+        LayoutText {#text} at (0,0) size 751x39
+          text run at (0,0) width 681: "On this test page, each test is performed once with floating paragraphs, and then again with floating images. "
+          text run at (681,0) width 67: "Other than"
+          text run at (0,20) width 751: "the substitution of images for pargraphs, the structure of the test is exactly the same, including the direction of the floats."
+      LayoutBlockFlow {DIV} at (2,301) size 765x110 [border: (5px solid #800080)]
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 130x59
+            text run at (17,17) width 130: "This is a left-floating"
+            text run at (17,37) width 112: "paragraph (first in"
+            text run at (17,57) width 50: "source)."
+        LayoutBlockFlow (floating) {P} at (566,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 139x59
+            text run at (17,17) width 139: "This is a right-floating"
+            text run at (17,37) width 132: "paragraph (second in"
+            text run at (17,57) width 50: "source)."
+        LayoutText {#text} at (199,5) size 363x99
+          text run at (199,5) width 175: "This is text within the DIV. "
+          text run at (373,5) width 181: "The floating elements within"
+          text run at (199,25) width 363: "this DIV should not go beyond the left or right inner edge"
+          text run at (199,45) width 354: "of this DIV, which means that the borders of the floating"
+          text run at (199,65) width 360: "elements should not overlap the top or side borders of the"
+          text run at (199,85) width 31: "DIV."
+      LayoutBlockFlow {DIV} at (2,429) size 765x70 [border: (5px solid #800080)]
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (745,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (20,5) size 726x59
+          text run at (20,5) width 175: "This is text within the DIV. "
+          text run at (194,5) width 537: "The floating images within this DIV should not go beyond the left or right inner edge"
+          text run at (20,25) width 707: "of this DIV, which means that the borders of the floating images should not overlap the top or side borders of the"
+          text run at (5,45) width 31: "DIV."
+      LayoutBlockFlow {DIV} at (2,549) size 442x250 [border: (5px solid #800080)]
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 122x39
+            text run at (17,17) width 122: "This is the first left-"
+            text run at (17,37) width 119: "floating paragraph."
+        LayoutBlockFlow (floating) {P} at (199,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 142x39
+            text run at (17,17) width 142: "This is the second left-"
+            text run at (17,37) width 119: "floating paragraph."
+        LayoutBlockFlow (floating) {P} at (5,79) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 127x39
+            text run at (17,17) width 127: "This is the third left-"
+            text run at (17,37) width 119: "floating paragraph."
+        LayoutText {#text} at (393,5) size 430x239
+          text run at (393,5) width 42: "This is"
+          text run at (393,25) width 23: "text"
+          text run at (393,45) width 40: "within"
+          text run at (393,65) width 19: "the"
+          text run at (199,85) width 35: "DIV. "
+          text run at (233,85) width 181: "The floating elements within"
+          text run at (199,105) width 219: "this DIV should not go beyond the"
+          text run at (199,125) width 218: "left or right inner edge of this DIV,"
+          text run at (199,145) width 224: "which means that the borders of the"
+          text run at (5,165) width 412: "floating elements should not overlap the top or side borders of the"
+          text run at (5,185) width 110: "DIV in any way. "
+          text run at (114,185) width 298: "In addition, they should not overlap each other."
+          text run at (5,205) width 425: "The first two should be side by side, whereas the third should be on"
+          text run at (5,225) width 95: "the next \"line.\""
+      LayoutBlockFlow {DIV} at (2,817) size 360x210 [border: (5px solid #800080)]
+        LayoutImage (floating) {IMG} at (5,5) size 156x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (161,5) size 156x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (5,41) size 156x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (317,5) size 350x199
+          text run at (317,5) width 28: "This"
+          text run at (317,25) width 37: "is text"
+          text run at (161,45) width 102: "within the DIV. "
+          text run at (262,45) width 78: "The floating"
+          text run at (161,65) width 193: "images within this DIV should"
+          text run at (5,85) width 336: "not go beyond the left or right inner edge of this DIV,"
+          text run at (5,105) width 324: "which means that the borders of the floating images"
+          text run at (5,125) width 350: "should not overlap the top or side borders of the DIV in"
+          text run at (5,145) width 61: "any way. "
+          text run at (65,145) width 258: "In addition, they should not overlap each"
+          text run at (5,165) width 40: "other. "
+          text run at (44,165) width 308: "The first two should be side by side, whereas the"
+          text run at (5,185) width 213: "third should be on the next \"line.\""
+      LayoutBlockFlow {DIV} at (2,1077) size 314x384 [border: (5px solid #800080)]
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 130x59
+            text run at (17,17) width 130: "This is a left-floating"
+            text run at (17,37) width 112: "paragraph (first in"
+            text run at (17,57) width 50: "source)."
+        LayoutBlockFlow (floating) {P} at (115,99) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 139x59
+            text run at (17,17) width 139: "This is a right-floating"
+            text run at (17,37) width 132: "paragraph (second in"
+            text run at (17,57) width 50: "source)."
+        LayoutText {#text} at (199,5) size 304x373
+          text run at (199,5) width 69: "This is text"
+          text run at (199,25) width 98: "within the DIV."
+          text run at (199,45) width 77: "The floating"
+          text run at (199,65) width 99: "elements within"
+          text run at (5,99) width 101: "this DIV should"
+          text run at (5,119) width 91: "not go beyond"
+          text run at (5,139) width 93: "the left or right"
+          text run at (5,159) width 109: "inner edge of this"
+          text run at (5,179) width 74: "DIV, which"
+          text run at (5,199) width 292: "means that the borders of the floating elements"
+          text run at (5,219) width 301: "should not overlap the top or side borders of the"
+          text run at (5,239) width 110: "DIV in any way. "
+          text run at (114,239) width 174: "In addition, they should not"
+          text run at (5,259) width 287: "overlap each other in any way, nor should the"
+          text run at (5,279) width 304: "floated elements be overwritten by the DIV text."
+          text run at (5,299) width 290: "In addition, the floated elements should not be"
+          text run at (5,319) width 268: "side-by-side, but instead the first should be"
+          text run at (5,339) width 288: "floated left, and the second floated to the right"
+          text run at (5,359) width 94: "below the first."
+      LayoutBlockFlow {DIV} at (2,1479) size 410x246 [border: (5px solid #800080)]
+        LayoutImage (floating) {IMG} at (5,5) size 256x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (149,41) size 256x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (261,5) size 398x235
+          text run at (261,5) width 136: "This is text within the"
+          text run at (5,41) width 35: "DIV. "
+          text run at (39,41) width 78: "The floating"
+          text run at (5,61) width 114: "images within this"
+          text run at (5,81) width 380: "DIV should not go beyond the left or right inner edge of this"
+          text run at (5,101) width 359: "DIV, which means that the borders of the floating images"
+          text run at (5,121) width 377: "should not overlap the top or side borders of the DIV in any"
+          text run at (5,141) width 34: "way. "
+          text run at (38,141) width 337: "In addition, they should not overlap each other in any"
+          text run at (5,161) width 368: "way, nor should the floated elements be overwritten by the"
+          text run at (5,181) width 64: "DIV text. "
+          text run at (69,181) width 334: "In addition, the floated images should not be side-by-"
+          text run at (5,201) width 390: "side, but instead the first should be floated left, and the second"
+          text run at (5,221) width 213: "floated to the right below the first."
+      LayoutBlockFlow {DIV} at (2,1775) size 765x130 [border: (5px solid #800080)]
+        LayoutBlockFlow (floating) {P} at (566,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 139x59
+            text run at (17,17) width 139: "This is a right-floating"
+            text run at (17,37) width 112: "paragraph (first in"
+            text run at (17,57) width 50: "source)."
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 132x59
+            text run at (17,17) width 130: "This is a left-floating"
+            text run at (17,37) width 132: "paragraph (second in"
+            text run at (17,57) width 50: "source)."
+        LayoutText {#text} at (199,5) size 549x119
+          text run at (199,5) width 175: "This is text within the DIV. "
+          text run at (373,5) width 181: "The floating elements within"
+          text run at (199,25) width 350: "this DIV should not go beyond the top side of this DIV,"
+          text run at (199,45) width 335: "which means that the borders of the floating elements"
+          text run at (199,65) width 350: "should not overlap the top or side borders of the DIV in"
+          text run at (199,85) width 61: "any way. "
+          text run at (259,85) width 265: "In addition, the top of the left-floating box"
+          text run at (5,105) width 365: "should not be higher than the top of the right-floating box."
+      LayoutBlockFlow {DIV} at (2,1923) size 765x70 [border: (5px solid #800080)]
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (745,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (20,5) size 720x59
+          text run at (20,5) width 175: "This is text within the DIV. "
+          text run at (194,5) width 524: "The floating images within this DIV should not go beyond the top side of this DIV,"
+          text run at (20,25) width 705: "which means that the borders of the floating images should not overlap the top or side borders of the DIV in any"
+          text run at (5,45) width 34: "way. "
+          text run at (38,45) width 662: "In addition, the top of the left-floating image should not be higher than the top of the right-floating image."
+      LayoutBlockFlow {DIV} at (2,2043) size 765x150 [border: (5px solid #800080)]
+        LayoutText {#text} at (199,5) size 183x19
+          text run at (199,5) width 175: "This is text within the DIV. "
+          text run at (373,5) width 9: "*"
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 130x59
+            text run at (17,17) width 130: "This is a left-floating"
+            text run at (17,37) width 112: "paragraph (first in"
+            text run at (17,57) width 50: "source)."
+        LayoutText {#text} at (381,5) size 543x39
+          text run at (381,5) width 361: " The floating elements within this DIV should not go any"
+          text run at (199,25) width 477: "higher than the line-box containing the inline content which precedes them. "
+          text run at (676,25) width 12: "* "
+        LayoutBlockFlow (floating) {P} at (566,45) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 139x59
+            text run at (17,17) width 139: "This is a right-floating"
+            text run at (17,37) width 132: "paragraph (second in"
+            text run at (17,57) width 50: "source)."
+        LayoutText {#text} at (688,25) size 755x119
+          text run at (688,25) width 72: "This means"
+          text run at (199,45) width 349: "that the top side of each float can be, at most, as high as"
+          text run at (199,65) width 352: "the top edge of the inline element containing the content"
+          text run at (199,85) width 331: "just before the floating elements occur in the source. "
+          text run at (530,85) width 13: "In"
+          text run at (5,105) width 544: "order to mark these points clearly, an asterisk has been inserted just before each floated"
+          text run at (5,125) width 53: "element."
+      LayoutBlockFlow {DIV} at (2,2211) size 765x90 [border: (5px solid #800080)]
+        LayoutText {#text} at (20,5) size 183x19
+          text run at (20,5) width 175: "This is text within the DIV. "
+          text run at (194,5) width 9: "*"
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (202,5) size 686x39
+          text run at (202,5) width 504: " The floating images within this DIV should not go any higher than the line-box"
+          text run at (20,25) width 323: "containing the inline content which precedes them. "
+          text run at (343,25) width 12: "* "
+        LayoutImage (floating) {IMG} at (745,25) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (355,25) size 738x59
+          text run at (355,25) width 376: "This means that the top side of each float can be, at most, as"
+          text run at (5,45) width 725: "high as the top edge of the inline element containing the content just before the floating images occur in the source. "
+          text run at (730,45) width 13: "In"
+          text run at (5,65) width 590: "order to mark these points clearly, an asterisk has been inserted just before each floated image."
+      LayoutBlockFlow {DIV} at (2,2351) size 765x290 [border: (5px solid #800080)]
+        LayoutText {#text} at (199,5) size 183x19
+          text run at (199,5) width 175: "This is text within the DIV. "
+          text run at (373,5) width 9: "*"
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 130x59
+            text run at (17,17) width 130: "This is a left-floating"
+            text run at (17,37) width 112: "paragraph (first in"
+            text run at (17,57) width 50: "source)."
+        LayoutText {#text} at (381,5) size 543x39
+          text run at (381,5) width 361: " The floating elements within this DIV should not go any"
+          text run at (199,25) width 477: "higher than the line-box containing the inline content which precedes them. "
+          text run at (676,25) width 12: "* "
+        LayoutBlockFlow (floating) {P} at (566,45) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 139x59
+            text run at (17,17) width 139: "This is a right-floating"
+            text run at (17,37) width 132: "paragraph (second in"
+            text run at (17,57) width 50: "source)."
+        LayoutText {#text} at (688,25) size 561x39
+          text run at (688,25) width 72: "This means"
+          text run at (199,45) width 238: "that the top side of each float can be,*"
+        LayoutBlockFlow (floating) {P} at (199,65) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 130x59
+            text run at (17,17) width 130: "This is a left-floating"
+            text run at (17,37) width 117: "paragraph (third in"
+            text run at (17,57) width 50: "source)."
+        LayoutText {#text} at (437,45) size 274x119
+          text run at (437,45) width 119: " at most, as high as"
+          text run at (393,65) width 156: "the top edge of the inline"
+          text run at (393,85) width 142: "element containing the"
+          text run at (393,105) width 139: "content just before the"
+          text run at (393,125) width 162: "floating elements occur in"
+          text run at (587,145) width 72: "the source. "
+          text run at (659,145) width 8: "*"
+        LayoutBlockFlow (floating) {P} at (393,145) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 130x59
+            text run at (17,17) width 130: "This is a left-floating"
+            text run at (17,37) width 126: "paragraph (fourth in"
+            text run at (17,57) width 50: "source)."
+        LayoutText {#text} at (667,145) size 741x139
+          text run at (667,145) width 70: " In order to"
+          text run at (587,165) width 159: "mark these points clearly,"
+          text run at (587,185) width 125: "an asterisk has been"
+          text run at (587,205) width 152: "inserted just before each"
+          text run at (587,225) width 104: "floated element. "
+          text run at (691,225) width 48: "If a line"
+          text run at (5,245) width 722: "has room for a floated element, then the element should float so that its top is aligned with the top of the line-box in"
+          text run at (5,265) width 173: "which the asterisk appears. "
+          text run at (178,265) width 402: "Otherwise, its top should align with the top of the next line-box."
+      LayoutBlockFlow {DIV} at (2,2659) size 765x130 [border: (5px solid #800080)]
+        LayoutText {#text} at (20,5) size 183x19
+          text run at (20,5) width 175: "This is text within the DIV. "
+          text run at (194,5) width 9: "*"
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (202,5) size 671x39
+          text run at (202,5) width 504: " The floating images within this DIV should not go any higher than the line-box"
+          text run at (35,25) width 323: "containing the inline content which precedes them. "
+          text run at (358,25) width 12: "* "
+        LayoutImage (floating) {IMG} at (745,25) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (370,25) size 318x19
+          text run at (370,25) width 310: "This means that the top side of each float can be, "
+          text run at (680,25) width 8: "*"
+        LayoutImage (floating) {IMG} at (20,25) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (688,25) size 721x59
+          text run at (688,25) width 53: " at most,"
+          text run at (35,45) width 689: "as high as the top edge of the inline element containing the content just before the floating images occur in the"
+          text run at (20,65) width 49: "source. "
+          text run at (69,65) width 8: "*"
+        LayoutImage (floating) {IMG} at (5,65) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (77,65) size 735x59
+          text run at (77,65) width 615: " In order to mark these points clearly, an asterisk has been inserted just before each floated image. "
+          text run at (691,65) width 49: "If a line"
+          text run at (20,85) width 700: "has room for a floated image, then the image should float so that its top is aligned with the top of the line-box in"
+          text run at (5,105) width 173: "which the asterisk appears. "
+          text run at (178,105) width 402: "Otherwise, its top should align with the top of the next line-box."
+      LayoutBlockFlow {DIV} at (2,2839) size 490x330 [border: (5px solid #800080)]
+        LayoutText {#text} at (199,5) size 54x19
+          text run at (199,5) width 54: "This is *"
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 130x59
+            text run at (17,17) width 130: "This is a left-floating"
+            text run at (17,37) width 112: "paragraph (first in"
+            text run at (17,57) width 50: "source)."
+        LayoutText {#text} at (253,5) size 12x19
+          text run at (253,5) width 12: " *"
+        LayoutBlockFlow (floating) {P} at (291,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 139x59
+            text run at (17,17) width 139: "This is a right-floating"
+            text run at (17,37) width 132: "paragraph (second in"
+            text run at (17,57) width 50: "source)."
+        LayoutText {#text} at (199,25) size 475x299
+          text run at (199,25) width 90: "text within the"
+          text run at (199,45) width 35: "DIV. "
+          text run at (233,45) width 41: "Under"
+          text run at (199,65) width 88: "CSS1, the left"
+          text run at (199,85) width 48: "floating"
+          text run at (5,105) width 475: "element should be placed in the upper left corner of the DIV, and the purple"
+          text run at (5,125) width 447: "border of the DIV should abut the green border of the floating element."
+          text run at (5,145) width 443: "Similarly, the right floating element should be placed in the upper right"
+          text run at (5,165) width 466: "corner of the DIV, and the purple border of the DIV should abut the green"
+          text run at (5,185) width 451: "border of the floating element. The text of the DIV element should flow"
+          text run at (5,205) width 461: "between and under the two floating elements. The two asterisk characters"
+          text run at (5,225) width 468: "mark the insertion points of the floating elements. It is expected that, under"
+          text run at (5,245) width 470: "future specifications, it may be acceptable for the top of floated elements to"
+          text run at (5,265) width 475: "align with the top of the line-box following the insertion point of the floated"
+          text run at (5,285) width 466: "element to avoid floating elements appearing before text which precedes it"
+          text run at (5,305) width 150: "in the source document."
+      LayoutBlockFlow {DIV} at (2,3187) size 490x250 [border: (5px solid #800080)]
+        LayoutText {#text} at (20,5) size 54x19
+          text run at (20,5) width 54: "This is *"
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (74,5) size 12x19
+          text run at (74,5) width 12: " *"
+        LayoutImage (floating) {IMG} at (470,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (86,5) size 480x239
+          text run at (86,5) width 133: " text within the DIV. "
+          text run at (218,5) width 227: "Under CSS1, the left floating image"
+          text run at (20,25) width 422: "should be placed in the upper left corner of the DIV, and the purple"
+          text run at (5,45) width 436: "border of the DIV should abut the green border of the floating image."
+          text run at (5,65) width 476: "Similarly, the right floating image should be placed in the upper right corner"
+          text run at (5,85) width 467: "of the DIV, and the purple border of the DIV should abut the green border"
+          text run at (5,105) width 479: "of the floating image. The text of the DIV element should flow between and"
+          text run at (5,125) width 477: "under the two floating image. The two asterisk characters mark the insertion"
+          text run at (5,145) width 180: "points of the floating image. "
+          text run at (185,145) width 300: "It is expected that, under future specifications, it"
+          text run at (5,165) width 478: "may be acceptable for the top of floated elements to align with the top of the"
+          text run at (5,185) width 429: "line-box following the insertion point of the floated element to avoid"
+          text run at (5,205) width 442: "floating elements appearing before text which precedes it in the source"
+          text run at (5,225) width 66: "document."
+      LayoutTable {TABLE} at (0,3487) size 769x3295 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x3293
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x3265
+            LayoutTableCell {TD} at (0,1646) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x3265 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x60
+                LayoutText {#text} at (0,0) size 740x59
+                  text run at (0,0) width 681: "On this test page, each test is performed once with floating paragraphs, and then again with floating images. "
+                  text run at (681,0) width 36: "Other"
+                  text run at (0,20) width 740: "than the substitution of images for pargraphs, the structure of the test is exactly the same, including the direction of the"
+                  text run at (0,40) width 38: "floats."
+              LayoutBlockFlow {DIV} at (6,114) size 743x110 [border: (5px solid #800080)]
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 130x59
+                    text run at (17,17) width 130: "This is a left-floating"
+                    text run at (17,37) width 112: "paragraph (first in"
+                    text run at (17,57) width 50: "source)."
+                LayoutBlockFlow (floating) {P} at (544,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 139x59
+                    text run at (17,17) width 139: "This is a right-floating"
+                    text run at (17,37) width 132: "paragraph (second in"
+                    text run at (17,57) width 50: "source)."
+                LayoutText {#text} at (199,5) size 337x99
+                  text run at (199,5) width 175: "This is text within the DIV. "
+                  text run at (373,5) width 137: "The floating elements"
+                  text run at (199,25) width 337: "within this DIV should not go beyond the left or right"
+                  text run at (199,45) width 332: "inner edge of this DIV, which means that the borders"
+                  text run at (199,65) width 332: "of the floating elements should not overlap the top or"
+                  text run at (199,85) width 151: "side borders of the DIV."
+              LayoutBlockFlow {DIV} at (6,242) size 743x70 [border: (5px solid #800080)]
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (723,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (20,5) size 716x59
+                  text run at (20,5) width 175: "This is text within the DIV. "
+                  text run at (194,5) width 503: "The floating images within this DIV should not go beyond the left or right inner"
+                  text run at (20,25) width 701: "edge of this DIV, which means that the borders of the floating images should not overlap the top or side borders"
+                  text run at (5,45) width 71: "of the DIV."
+              LayoutBlockFlow {DIV} at (6,362) size 442x250 [border: (5px solid #800080)]
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 122x39
+                    text run at (17,17) width 122: "This is the first left-"
+                    text run at (17,37) width 119: "floating paragraph."
+                LayoutBlockFlow (floating) {P} at (199,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 142x39
+                    text run at (17,17) width 142: "This is the second left-"
+                    text run at (17,37) width 119: "floating paragraph."
+                LayoutBlockFlow (floating) {P} at (5,79) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 127x39
+                    text run at (17,17) width 127: "This is the third left-"
+                    text run at (17,37) width 119: "floating paragraph."
+                LayoutText {#text} at (393,5) size 430x239
+                  text run at (393,5) width 42: "This is"
+                  text run at (393,25) width 23: "text"
+                  text run at (393,45) width 40: "within"
+                  text run at (393,65) width 19: "the"
+                  text run at (199,85) width 35: "DIV. "
+                  text run at (233,85) width 181: "The floating elements within"
+                  text run at (199,105) width 219: "this DIV should not go beyond the"
+                  text run at (199,125) width 218: "left or right inner edge of this DIV,"
+                  text run at (199,145) width 224: "which means that the borders of the"
+                  text run at (5,165) width 412: "floating elements should not overlap the top or side borders of the"
+                  text run at (5,185) width 110: "DIV in any way. "
+                  text run at (114,185) width 298: "In addition, they should not overlap each other."
+                  text run at (5,205) width 425: "The first two should be side by side, whereas the third should be on"
+                  text run at (5,225) width 95: "the next \"line.\""
+              LayoutBlockFlow {DIV} at (6,630) size 360x210 [border: (5px solid #800080)]
+                LayoutImage (floating) {IMG} at (5,5) size 156x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (161,5) size 156x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (5,41) size 156x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (317,5) size 350x199
+                  text run at (317,5) width 28: "This"
+                  text run at (317,25) width 37: "is text"
+                  text run at (161,45) width 102: "within the DIV. "
+                  text run at (262,45) width 78: "The floating"
+                  text run at (161,65) width 193: "images within this DIV should"
+                  text run at (5,85) width 336: "not go beyond the left or right inner edge of this DIV,"
+                  text run at (5,105) width 324: "which means that the borders of the floating images"
+                  text run at (5,125) width 350: "should not overlap the top or side borders of the DIV in"
+                  text run at (5,145) width 61: "any way. "
+                  text run at (65,145) width 258: "In addition, they should not overlap each"
+                  text run at (5,165) width 40: "other. "
+                  text run at (44,165) width 308: "The first two should be side by side, whereas the"
+                  text run at (5,185) width 213: "third should be on the next \"line.\""
+              LayoutBlockFlow {DIV} at (6,890) size 314x384 [border: (5px solid #800080)]
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 130x59
+                    text run at (17,17) width 130: "This is a left-floating"
+                    text run at (17,37) width 112: "paragraph (first in"
+                    text run at (17,57) width 50: "source)."
+                LayoutBlockFlow (floating) {P} at (115,99) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 139x59
+                    text run at (17,17) width 139: "This is a right-floating"
+                    text run at (17,37) width 132: "paragraph (second in"
+                    text run at (17,57) width 50: "source)."
+                LayoutText {#text} at (199,5) size 304x373
+                  text run at (199,5) width 69: "This is text"
+                  text run at (199,25) width 98: "within the DIV."
+                  text run at (199,45) width 77: "The floating"
+                  text run at (199,65) width 99: "elements within"
+                  text run at (5,99) width 101: "this DIV should"
+                  text run at (5,119) width 91: "not go beyond"
+                  text run at (5,139) width 93: "the left or right"
+                  text run at (5,159) width 109: "inner edge of this"
+                  text run at (5,179) width 74: "DIV, which"
+                  text run at (5,199) width 292: "means that the borders of the floating elements"
+                  text run at (5,219) width 301: "should not overlap the top or side borders of the"
+                  text run at (5,239) width 110: "DIV in any way. "
+                  text run at (114,239) width 174: "In addition, they should not"
+                  text run at (5,259) width 287: "overlap each other in any way, nor should the"
+                  text run at (5,279) width 304: "floated elements be overwritten by the DIV text."
+                  text run at (5,299) width 290: "In addition, the floated elements should not be"
+                  text run at (5,319) width 268: "side-by-side, but instead the first should be"
+                  text run at (5,339) width 288: "floated left, and the second floated to the right"
+                  text run at (5,359) width 94: "below the first."
+              LayoutBlockFlow {DIV} at (6,1292) size 410x246 [border: (5px solid #800080)]
+                LayoutImage (floating) {IMG} at (5,5) size 256x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (149,41) size 256x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (261,5) size 398x235
+                  text run at (261,5) width 136: "This is text within the"
+                  text run at (5,41) width 35: "DIV. "
+                  text run at (39,41) width 78: "The floating"
+                  text run at (5,61) width 114: "images within this"
+                  text run at (5,81) width 380: "DIV should not go beyond the left or right inner edge of this"
+                  text run at (5,101) width 359: "DIV, which means that the borders of the floating images"
+                  text run at (5,121) width 377: "should not overlap the top or side borders of the DIV in any"
+                  text run at (5,141) width 34: "way. "
+                  text run at (38,141) width 337: "In addition, they should not overlap each other in any"
+                  text run at (5,161) width 368: "way, nor should the floated elements be overwritten by the"
+                  text run at (5,181) width 64: "DIV text. "
+                  text run at (69,181) width 334: "In addition, the floated images should not be side-by-"
+                  text run at (5,201) width 390: "side, but instead the first should be floated left, and the second"
+                  text run at (5,221) width 213: "floated to the right below the first."
+              LayoutBlockFlow {DIV} at (6,1588) size 743x130 [border: (5px solid #800080)]
+                LayoutBlockFlow (floating) {P} at (544,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 139x59
+                    text run at (17,17) width 139: "This is a right-floating"
+                    text run at (17,37) width 112: "paragraph (first in"
+                    text run at (17,57) width 50: "source)."
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 132x59
+                    text run at (17,17) width 130: "This is a left-floating"
+                    text run at (17,37) width 132: "paragraph (second in"
+                    text run at (17,57) width 50: "source)."
+                LayoutText {#text} at (199,5) size 531x119
+                  text run at (199,5) width 175: "This is text within the DIV. "
+                  text run at (373,5) width 137: "The floating elements"
+                  text run at (199,25) width 333: "within this DIV should not go beyond the top side of"
+                  text run at (199,45) width 337: "this DIV, which means that the borders of the floating"
+                  text run at (199,65) width 337: "elements should not overlap the top or side borders of"
+                  text run at (199,85) width 133: "the DIV in any way. "
+                  text run at (331,85) width 189: "In addition, the top of the left-"
+                  text run at (5,105) width 445: "floating box should not be higher than the top of the right-floating box."
+              LayoutBlockFlow {DIV} at (6,1736) size 743x70 [border: (5px solid #800080)]
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (723,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (20,5) size 722x59
+                  text run at (20,5) width 175: "This is text within the DIV. "
+                  text run at (194,5) width 524: "The floating images within this DIV should not go beyond the top side of this DIV,"
+                  text run at (20,25) width 678: "which means that the borders of the floating images should not overlap the top or side borders of the DIV in"
+                  text run at (5,45) width 61: "any way. "
+                  text run at (65,45) width 662: "In addition, the top of the left-floating image should not be higher than the top of the right-floating image."
+              LayoutBlockFlow {DIV} at (6,1856) size 743x150 [border: (5px solid #800080)]
+                LayoutText {#text} at (199,5) size 183x19
+                  text run at (199,5) width 175: "This is text within the DIV. "
+                  text run at (373,5) width 9: "*"
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 130x59
+                    text run at (17,17) width 130: "This is a left-floating"
+                    text run at (17,37) width 112: "paragraph (first in"
+                    text run at (17,57) width 50: "source)."
+                LayoutText {#text} at (381,5) size 516x39
+                  text run at (381,5) width 334: " The floating elements within this DIV should not go"
+                  text run at (199,25) width 504: "any higher than the line-box containing the inline content which precedes them. "
+                  text run at (703,25) width 8: "*"
+                LayoutBlockFlow (floating) {P} at (544,45) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 139x59
+                    text run at (17,17) width 139: "This is a right-floating"
+                    text run at (17,37) width 132: "paragraph (second in"
+                    text run at (17,57) width 50: "source)."
+                LayoutText {#text} at (199,45) size 538x99
+                  text run at (199,45) width 321: "This means that the top side of each float can be, at"
+                  text run at (199,65) width 313: "most, as high as the top edge of the inline element"
+                  text run at (199,85) width 343: "containing the content just before the floating elements"
+                  text run at (5,105) width 127: "occur in the source. "
+                  text run at (132,105) width 411: "In order to mark these points clearly, an asterisk has been inserted"
+                  text run at (5,125) width 203: "just before each floated element."
+              LayoutBlockFlow {DIV} at (6,2024) size 743x90 [border: (5px solid #800080)]
+                LayoutText {#text} at (20,5) size 183x19
+                  text run at (20,5) width 175: "This is text within the DIV. "
+                  text run at (194,5) width 9: "*"
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (202,5) size 686x39
+                  text run at (202,5) width 504: " The floating images within this DIV should not go any higher than the line-box"
+                  text run at (20,25) width 323: "containing the inline content which precedes them. "
+                  text run at (343,25) width 12: "* "
+                LayoutImage (floating) {IMG} at (723,25) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (355,25) size 709x59
+                  text run at (355,25) width 359: "This means that the top side of each float can be, at most,"
+                  text run at (5,45) width 689: "as high as the top edge of the inline element containing the content just before the floating images occur in the"
+                  text run at (5,65) width 49: "source. "
+                  text run at (54,65) width 607: "In order to mark these points clearly, an asterisk has been inserted just before each floated image."
+              LayoutBlockFlow {DIV} at (6,2164) size 743x250 [border: (5px solid #800080)]
+                LayoutText {#text} at (199,5) size 183x19
+                  text run at (199,5) width 175: "This is text within the DIV. "
+                  text run at (373,5) width 9: "*"
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 130x59
+                    text run at (17,17) width 130: "This is a left-floating"
+                    text run at (17,37) width 112: "paragraph (first in"
+                    text run at (17,57) width 50: "source)."
+                LayoutText {#text} at (381,5) size 516x39
+                  text run at (381,5) width 334: " The floating elements within this DIV should not go"
+                  text run at (199,25) width 504: "any higher than the line-box containing the inline content which precedes them. "
+                  text run at (703,25) width 8: "*"
+                LayoutBlockFlow (floating) {P} at (544,45) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 139x59
+                    text run at (17,17) width 139: "This is a right-floating"
+                    text run at (17,37) width 132: "paragraph (second in"
+                    text run at (17,57) width 50: "source)."
+                LayoutText {#text} at (199,45) size 314x19
+                  text run at (199,45) width 314: "This means that the top side of each float can be,*"
+                LayoutBlockFlow (floating) {P} at (199,65) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 130x59
+                    text run at (17,17) width 130: "This is a left-floating"
+                    text run at (17,37) width 117: "paragraph (third in"
+                    text run at (17,57) width 50: "source)."
+                LayoutText {#text} at (513,45) size 246x119
+                  text run at (513,45) width 15: " at"
+                  text run at (393,65) width 147: "most, as high as the top"
+                  text run at (393,85) width 109: "edge of the inline"
+                  text run at (393,105) width 142: "element containing the"
+                  text run at (393,125) width 139: "content just before the"
+                  text run at (393,145) width 238: "floating elements occur in the source. "
+                  text run at (631,145) width 8: "*"
+                LayoutBlockFlow (floating) {P} at (5,165) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 130x59
+                    text run at (17,17) width 130: "This is a left-floating"
+                    text run at (17,37) width 126: "paragraph (fourth in"
+                    text run at (17,57) width 50: "source)."
+                LayoutText {#text} at (639,145) size 539x99
+                  text run at (639,145) width 70: " In order to"
+                  text run at (199,165) width 491: "mark these points clearly, an asterisk has been inserted just before each floated"
+                  text run at (199,185) width 57: "element. "
+                  text run at (256,185) width 477: "If a line has room for a floated element, then the element should float so that"
+                  text run at (199,205) width 470: "its top is aligned with the top of the line-box in which the asterisk appears. "
+                  text run at (669,205) width 69: "Otherwise,"
+                  text run at (199,225) width 329: "its top should align with the top of the next line-box."
+              LayoutBlockFlow {DIV} at (6,2433) size 743x130 [border: (5px solid #800080)]
+                LayoutText {#text} at (20,5) size 183x19
+                  text run at (20,5) width 175: "This is text within the DIV. "
+                  text run at (194,5) width 9: "*"
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (202,5) size 671x39
+                  text run at (202,5) width 504: " The floating images within this DIV should not go any higher than the line-box"
+                  text run at (35,25) width 323: "containing the inline content which precedes them. "
+                  text run at (358,25) width 12: "* "
+                LayoutImage (floating) {IMG} at (723,25) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (370,25) size 318x19
+                  text run at (370,25) width 310: "This means that the top side of each float can be, "
+                  text run at (680,25) width 8: "*"
+                LayoutImage (floating) {IMG} at (20,25) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (688,25) size 703x59
+                  text run at (688,25) width 15: " at"
+                  text run at (35,45) width 688: "most, as high as the top edge of the inline element containing the content just before the floating images occur"
+                  text run at (20,65) width 88: "in the source. "
+                  text run at (108,65) width 8: "*"
+                LayoutImage (floating) {IMG} at (5,65) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (116,65) size 727x59
+                  text run at (116,65) width 611: " In order to mark these points clearly, an asterisk has been inserted just before each floated image."
+                  text run at (20,85) width 712: "If a line has room for a floated image, then the image should float so that its top is aligned with the top of the line-"
+                  text run at (5,105) width 217: "box in which the asterisk appears. "
+                  text run at (222,105) width 402: "Otherwise, its top should align with the top of the next line-box."
+              LayoutBlockFlow {DIV} at (6,2613) size 490x330 [border: (5px solid #800080)]
+                LayoutText {#text} at (199,5) size 54x19
+                  text run at (199,5) width 54: "This is *"
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 130x59
+                    text run at (17,17) width 130: "This is a left-floating"
+                    text run at (17,37) width 112: "paragraph (first in"
+                    text run at (17,57) width 50: "source)."
+                LayoutText {#text} at (253,5) size 12x19
+                  text run at (253,5) width 12: " *"
+                LayoutBlockFlow (floating) {P} at (291,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 139x59
+                    text run at (17,17) width 139: "This is a right-floating"
+                    text run at (17,37) width 132: "paragraph (second in"
+                    text run at (17,57) width 50: "source)."
+                LayoutText {#text} at (199,25) size 475x299
+                  text run at (199,25) width 90: "text within the"
+                  text run at (199,45) width 35: "DIV. "
+                  text run at (233,45) width 41: "Under"
+                  text run at (199,65) width 88: "CSS1, the left"
+                  text run at (199,85) width 48: "floating"
+                  text run at (5,105) width 475: "element should be placed in the upper left corner of the DIV, and the purple"
+                  text run at (5,125) width 447: "border of the DIV should abut the green border of the floating element."
+                  text run at (5,145) width 443: "Similarly, the right floating element should be placed in the upper right"
+                  text run at (5,165) width 466: "corner of the DIV, and the purple border of the DIV should abut the green"
+                  text run at (5,185) width 451: "border of the floating element. The text of the DIV element should flow"
+                  text run at (5,205) width 461: "between and under the two floating elements. The two asterisk characters"
+                  text run at (5,225) width 468: "mark the insertion points of the floating elements. It is expected that, under"
+                  text run at (5,245) width 470: "future specifications, it may be acceptable for the top of floated elements to"
+                  text run at (5,265) width 475: "align with the top of the line-box following the insertion point of the floated"
+                  text run at (5,285) width 466: "element to avoid floating elements appearing before text which precedes it"
+                  text run at (5,305) width 150: "in the source document."
+              LayoutBlockFlow {DIV} at (6,2961) size 490x250 [border: (5px solid #800080)]
+                LayoutText {#text} at (20,5) size 54x19
+                  text run at (20,5) width 54: "This is *"
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (74,5) size 12x19
+                  text run at (74,5) width 12: " *"
+                LayoutImage (floating) {IMG} at (470,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (86,5) size 480x239
+                  text run at (86,5) width 133: " text within the DIV. "
+                  text run at (218,5) width 227: "Under CSS1, the left floating image"
+                  text run at (20,25) width 422: "should be placed in the upper left corner of the DIV, and the purple"
+                  text run at (5,45) width 436: "border of the DIV should abut the green border of the floating image."
+                  text run at (5,65) width 476: "Similarly, the right floating image should be placed in the upper right corner"
+                  text run at (5,85) width 467: "of the DIV, and the purple border of the DIV should abut the green border"
+                  text run at (5,105) width 479: "of the floating image. The text of the DIV element should flow between and"
+                  text run at (5,125) width 477: "under the two floating image. The two asterisk characters mark the insertion"
+                  text run at (5,145) width 180: "points of the floating image. "
+                  text run at (185,145) width 300: "It is expected that, under future specifications, it"
+                  text run at (5,165) width 478: "may be acceptable for the top of floated elements to align with the top of the"
+                  text run at (5,185) width 429: "line-box following the insertion point of the floated element to avoid"
+                  text run at (5,205) width 442: "floating elements appearing before text which precedes it in the source"
+                  text run at (5,225) width 66: "document."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (32,283) size 579x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,275) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,427) size 41x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,419) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,531) size 579x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,523) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,815) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,807) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1059) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,1051) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,1477) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,1469) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1757) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,1749) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,1921) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,1913) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,2025) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,2017) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2209) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2201) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,2333) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,2325) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2657) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2649) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,2821) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,2813) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,3185) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,3177) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,3469) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,3461) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (49,3612) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,88) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,3756) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,232) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,3860) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,336) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,4144) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,620) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,4388) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,864) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,4806) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1282) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5086) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,1562) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,5250) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1726) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5354) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,1830) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,5538) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,2014) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5662) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,2138) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,5947) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,2423) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,6111) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,2587) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,6475) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,2951) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,6759) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,3235) size 562.25x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/height_of_lines-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/height_of_lines-expected.txt
new file mode 100644
index 0000000..114d900
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/height_of_lines-expected.txt
@@ -0,0 +1,134 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2345
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2345 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2345
+    LayoutBlockFlow {BODY} at (8,8) size 769x2329 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x288
+        LayoutText {#text} at (0,0) size 536x288
+          text run at (0,0) width 344: "P.one {font-size: 14px; line-height: 20px;}"
+          text run at (344,0) width 0: " "
+          text run at (0,16) width 304: "IMG.onea {vertical-align: text-bottom;"
+          text run at (304,16) width 0: " "
+          text run at (0,32) width 272: "     width: 200px; height: 200px;}"
+          text run at (272,32) width 0: " "
+          text run at (0,48) width 520: "IMG.oneb {vertical-align: text-top; width: 200px; height: 200px;}"
+          text run at (520,48) width 0: " "
+          text run at (0,64) width 0: " "
+          text run at (0,80) width 344: "P.two {font-size: 14px; line-height: 20px;}"
+          text run at (344,80) width 0: " "
+          text run at (0,96) width 536: "IMG.twoa {vertical-align: text-bottom; width: 100px; height: 100px;"
+          text run at (536,96) width 0: " "
+          text run at (0,112) width 312: "     padding: 5px; border-style: solid;"
+          text run at (312,112) width 0: " "
+          text run at (0,128) width 312: "     border-width: 10px; margin: 15px;}"
+          text run at (312,128) width 0: " "
+          text run at (0,144) width 280: "IMG.twob {vertical-align: text-top;"
+          text run at (280,144) width 0: " "
+          text run at (0,160) width 304: "          width: 100px; height: 100px;"
+          text run at (304,160) width 0: " "
+          text run at (0,176) width 312: "     padding: 5px; border-style: solid;"
+          text run at (312,176) width 0: " "
+          text run at (0,192) width 312: "     border-width: 10px; margin: 15px;}"
+          text run at (312,192) width 0: " "
+          text run at (0,208) width 0: " "
+          text run at (0,224) width 480: "IMG.twoc {vertical-align: middle; width: 50px; height: 50px;"
+          text run at (480,224) width 0: " "
+          text run at (0,240) width 312: "     padding: 5px; border-style: solid;"
+          text run at (312,240) width 0: " "
+          text run at (0,256) width 320: "     border-width: 10px; margin: -10px;}"
+          text run at (320,256) width 0: " "
+          text run at (0,272) width 0: " "
+      LayoutBlockFlow {P} at (0,353) size 769x464
+        LayoutText {#text} at (0,2) size 767x238
+          text run at (0,2) width 420: "This paragraph should have a font size of 14px and a line height of 20px. "
+          text run at (420,2) width 347: "This means that the lines of text within it should be separated"
+          text run at (0,22) width 374: "by six pixels, three of which are part of the line-box of each line. "
+          text run at (374,22) width 375: "Any images within the paragraph should increase the height of the"
+          text run at (0,224) width 296: "line-box so that they fit within the line box, such as "
+        LayoutImage {IMG} at (296,40) size 200x200
+        LayoutText {#text} at (496,224) size 28x16
+          text run at (496,224) width 28: " and "
+        LayoutImage {IMG} at (524,224) size 200x200
+        LayoutText {#text} at (724,224) size 757x238
+          text run at (724,224) width 8: ". "
+          text run at (732,224) width 25: "This"
+          text run at (0,426) width 744: "is additional text to make sure that there is enough room left below the image so that this line does not hit the image that is text-top"
+          text run at (0,446) width 45: "aligned."
+      LayoutBlockFlow {P} at (0,831) size 769x484
+        LayoutText {#text} at (0,2) size 767x198
+          text run at (0,2) width 420: "This paragraph should have a font size of 14px and a line height of 20px. "
+          text run at (420,2) width 347: "This means that the lines of text within it should be separated"
+          text run at (0,22) width 79: "by six pixels. "
+          text run at (79,22) width 652: "Any images within the paragraph should increase the height of the line-box so that they fit, including their padding"
+          text run at (0,184) width 396: "(5px), border (10px) and margins (15px) within the line box, such as "
+        LayoutImage {IMG} at (410.73,55) size 130x130 [border: (10px solid #000000)]
+        LayoutText {#text} at (555,184) size 29x16
+          text run at (555,184) width 29: " and "
+        LayoutImage {IMG} at (598.73,199) size 130x130 [border: (10px solid #000000)]
+        LayoutText {#text} at (743,184) size 759x256
+          text run at (743,184) width 5: "."
+          text run at (0,346) width 755: "This is additional text to make sure that there is enough room left below the image so that this line does not hit the image that is text-"
+          text run at (0,366) width 71: "top aligned. "
+          text run at (71,366) width 683: "It is the outer edge of the margin that should be text-bottom and text-top aligned in this paragraph, so for the first image"
+          text run at (0,386) width 759: "the bottom border of the image should begin 15px above the bottom of the text, and for the second image the top border should begin"
+          text run at (0,424) width 175: "15px below the top of the text "
+        LayoutImage {IMG} at (165,394) size 80x80 [border: (10px solid #000000)]
+        LayoutText {#text} at (235,424) size 755x58
+          text run at (235,424) width 8: ". "
+          text run at (243,424) width 512: "The last image in this paragraph has -10px margins set on it, so that should pull the text in"
+          text run at (0,466) width 443: "toward the image in the vertical direction, and also in the horizontal direction."
+      LayoutTable {TABLE} at (0,1329) size 769x1000 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x998
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x970
+            LayoutTableCell {TD} at (0,499) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x970 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x464
+                LayoutText {#text} at (0,2) size 729x238
+                  text run at (0,2) width 420: "This paragraph should have a font size of 14px and a line height of 20px. "
+                  text run at (420,2) width 291: "This means that the lines of text within it should be"
+                  text run at (0,22) width 430: "separated by six pixels, three of which are part of the line-box of each line. "
+                  text run at (430,22) width 299: "Any images within the paragraph should increase the"
+                  text run at (0,224) width 372: "height of the line-box so that they fit within the line box, such as "
+                LayoutImage {IMG} at (372,40) size 200x200
+                LayoutText {#text} at (572,224) size 28x16
+                  text run at (572,224) width 28: " and "
+                LayoutImage {IMG} at (0,244) size 200x200
+                LayoutText {#text} at (200,244) size 741x218
+                  text run at (200,244) width 8: ". "
+                  text run at (208,244) width 533: "This is additional text to make sure that there is enough room left below the image so that this"
+                  text run at (0,446) width 285: "line does not hit the image that is text-top aligned."
+              LayoutBlockFlow {P} at (4,482) size 747x484
+                LayoutText {#text} at (0,2) size 738x198
+                  text run at (0,2) width 420: "This paragraph should have a font size of 14px and a line height of 20px. "
+                  text run at (420,2) width 291: "This means that the lines of text within it should be"
+                  text run at (0,22) width 135: "separated by six pixels. "
+                  text run at (135,22) width 603: "Any images within the paragraph should increase the height of the line-box so that they fit, including their"
+                  text run at (0,184) width 445: "padding (5px), border (10px) and margins (15px) within the line box, such as "
+                LayoutImage {IMG} at (459.73,55) size 130x130 [border: (10px solid #000000)]
+                LayoutText {#text} at (604,184) size 29x16
+                  text run at (604,184) width 29: " and "
+                LayoutImage {IMG} at (15,219) size 130x130 [border: (10px solid #000000)]
+                LayoutText {#text} at (160,204) size 736x236
+                  text run at (160,204) width 8: ". "
+                  text run at (168,204) width 558: "This is additional text to make sure that there is enough room left below the image so that this line"
+                  text run at (0,366) width 264: "does not hit the image that is text-top aligned. "
+                  text run at (264,366) width 472: "It is the outer edge of the margin that should be text-bottom and text-top aligned in"
+                  text run at (0,386) width 730: "this paragraph, so for the first image the bottom border of the image should begin 15px above the bottom of the text, and for the"
+                  text run at (0,424) width 415: "second image the top border should begin 15px below the top of the text "
+                LayoutImage {IMG} at (405,394) size 80x80 [border: (10px solid #000000)]
+                LayoutText {#text} at (475,424) size 724x58
+                  text run at (475,424) width 8: ". "
+                  text run at (483,424) width 241: "The last image in this paragraph has -10px"
+                  text run at (0,466) width 714: "margins set on it, so that should pull the text in toward the image in the vertical direction, and also in the horizontal direction."
+layer at (8,345) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,337) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/inline_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/inline_elements-expected.txt
new file mode 100644
index 0000000..23fb586
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/inline_elements-expected.txt
@@ -0,0 +1,97 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 791
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x790 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x790.33
+    LayoutBlockFlow {BODY} at (8,8) size 769x774.33 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x112
+        LayoutText {#text} at (0,0) size 560x112
+          text run at (0,0) width 208: "P.one {line-height: 200%;}"
+          text run at (208,0) width 0: " "
+          text run at (0,16) width 552: "SPAN.two {border-style: solid; border-width: 10px; border-color: red;"
+          text run at (552,16) width 0: " "
+          text run at (0,32) width 304: "          padding: 2pt; margin: 30pt;}"
+          text run at (304,32) width 0: " "
+          text run at (0,48) width 360: "P.three {font-size: 10pt; line-height: 12pt;}"
+          text run at (360,48) width 0: " "
+          text run at (0,64) width 560: "SPAN.four {border-style: solid; border-width: 12px; border-color: red;"
+          text run at (560,64) width 0: " "
+          text run at (0,80) width 192: "          padding: 2pt;}"
+          text run at (192,80) width 0: " "
+          text run at (0,96) width 0: " "
+      LayoutBlockFlow {P} at (0,179) size 769x192
+        LayoutText {#text} at (0,6) size 187x19
+          text run at (0,6) width 187: "This is a paragraph that has a "
+        LayoutInline {SPAN} at (0,0) size 761x173 [border: (10px solid #FF0000)]
+          LayoutText {#text} at (239,6) size 761x147
+            text run at (239,6) width 522: "very long span in it, and the span has a 10px red border separated from the span by"
+            text run at (0,38) width 167: "2pt, and a margin of 30pt. "
+            text run at (166,38) width 561: "The padding and border should be present on all sides of the span (although vertical lines"
+            text run at (0,70) width 539: "should appear only at the beginning and the end of the whole span, not on each line). "
+            text run at (539,70) width 208: "The padding, border, and margin"
+            text run at (0,102) width 388: "should all be noticeable at the beginning and end of the span. "
+            text run at (388,102) width 366: "However, the line height should not be changed by any of"
+            text run at (0,134) width 585: "them, so the margin should be unnoticeable and the border should overlap text on other lines."
+        LayoutText {#text} at (636,134) size 761x51
+          text run at (636,134) width 5: " "
+          text run at (640,134) width 121: "The line spacing in"
+          text run at (0,166) width 336: "the whole paragraph should be 200% of the font size."
+      LayoutBlockFlow {P} at (0,387) size 769x64
+        LayoutText {#text} at (0,0) size 159x15
+          text run at (0,0) width 159: "This is a paragraph that has a "
+        LayoutInline {SPAN} at (0,0) size 764x93 [border: (12px solid #FF0000)]
+          LayoutText {#text} at (173,0) size 764x63
+            text run at (173,0) width 552: "very long span in it, and the span has a 12px red border separated from the span by 2pt of padding (the"
+            text run at (0,16) width 764: "difference between the line-height and the font-size), which should overlap with the lines of text above and below the span, since the padding"
+            text run at (0,32) width 240: "and border should not effect the line height. "
+            text run at (239,32) width 525: "The span's border should have vertical lines only at the beginning and end of the whole span, not"
+            text run at (0,48) width 69: "on each line."
+        LayoutText {#text} at (83,48) size 415x15
+          text run at (83,48) width 3: " "
+          text run at (86,48) width 412: "The line spacing in the whole paragraph should be 12pt, with font-size 10pt."
+      LayoutTable {TABLE} at (0,464.33) size 769x310 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x308
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x280
+            LayoutTableCell {TD} at (0,154) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x280 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x192
+                LayoutText {#text} at (0,6) size 187x19
+                  text run at (0,6) width 187: "This is a paragraph that has a "
+                LayoutInline {SPAN} at (0,0) size 747x173 [border: (10px solid #FF0000)]
+                  LayoutText {#text} at (239,6) size 747x147
+                    text run at (239,6) width 502: "very long span in it, and the span has a 10px red border separated from the span"
+                    text run at (0,38) width 187: "by 2pt, and a margin of 30pt. "
+                    text run at (186,38) width 561: "The padding and border should be present on all sides of the span (although vertical lines"
+                    text run at (0,70) width 539: "should appear only at the beginning and the end of the whole span, not on each line). "
+                    text run at (539,70) width 208: "The padding, border, and margin"
+                    text run at (0,102) width 388: "should all be noticeable at the beginning and end of the span. "
+                    text run at (388,102) width 349: "However, the line height should not be changed by any"
+                    text run at (0,134) width 602: "of them, so the margin should be unnoticeable and the border should overlap text on other lines."
+                LayoutText {#text} at (653,134) size 710x51
+                  text run at (653,134) width 5: " "
+                  text run at (657,134) width 53: "The line"
+                  text run at (0,166) width 404: "spacing in the whole paragraph should be 200% of the font size."
+              LayoutBlockFlow {P} at (4,212) size 747x64
+                LayoutText {#text} at (0,0) size 159x15
+                  text run at (0,0) width 159: "This is a paragraph that has a "
+                LayoutInline {SPAN} at (0,0) size 725x93 [border: (12px solid #FF0000)]
+                  LayoutText {#text} at (173,0) size 725x63
+                    text run at (173,0) width 552: "very long span in it, and the span has a 12px red border separated from the span by 2pt of padding (the"
+                    text run at (0,16) width 716: "difference between the line-height and the font-size), which should overlap with the lines of text above and below the span, since the"
+                    text run at (0,32) width 288: "padding and border should not effect the line height. "
+                    text run at (287,32) width 437: "The span's border should have vertical lines only at the beginning and end of the"
+                    text run at (0,48) width 157: "whole span, not on each line."
+                LayoutText {#text} at (171,48) size 415x15
+                  text run at (171,48) width 3: " "
+                  text run at (174,48) width 412: "The line spacing in the whole paragraph should be 12pt, with font-size 10pt."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/replaced_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/replaced_elements-expected.txt
new file mode 100644
index 0000000..bf3b75c2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/replaced_elements-expected.txt
@@ -0,0 +1,88 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2377
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2377 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2377
+    LayoutBlockFlow {BODY} at (8,8) size 769x2361 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x128
+        LayoutText {#text} at (0,0) size 504x128
+          text run at (0,0) width 208: "IMG.one {display: inline;}"
+          text run at (208,0) width 0: " "
+          text run at (0,16) width 200: "IMG.two {display: block;}"
+          text run at (200,16) width 0: " "
+          text run at (0,32) width 208: "IMG.three {display: block;"
+          text run at (208,32) width 0: " "
+          text run at (0,48) width 504: "           margin-right: auto; margin-left: auto; width: auto;}"
+          text run at (504,48) width 0: " "
+          text run at (0,64) width 200: "IMG.four {display: block;"
+          text run at (200,64) width 0: " "
+          text run at (0,80) width 488: "          margin-right: auto; margin-left: auto; width: 50%;}"
+          text run at (488,80) width 0: " "
+          text run at (0,96) width 200: "IMG.five {display: block;"
+          text run at (200,96) width 0: " "
+          text run at (0,112) width 464: "          margin-right: 0; margin-left: auto; width: 50%;}"
+          text run at (464,112) width 0: " "
+      LayoutBlockFlow {P} at (0,195) size 769x20
+        LayoutImage {IMG} at (0,0) size 15x15
+        LayoutText {#text} at (15,0) size 434x19
+          text run at (15,0) width 434: "The image at the beginning of this sentence should be a 15px square."
+      LayoutImage {IMG} at (0,231) size 15x15
+      LayoutBlockFlow {P} at (0,262) size 769x20
+        LayoutText {#text} at (0,0) size 489x19
+          text run at (0,0) width 489: "The above image should be a 15px square with the same left edge as this text."
+      LayoutImage {IMG} at (377,298) size 15x15
+      LayoutBlockFlow {P} at (0,329) size 769x20
+        LayoutText {#text} at (0,0) size 400x19
+          text run at (0,0) width 400: "The above image should be a 15px square aligned at the center."
+      LayoutImage {IMG} at (192.25,365) size 384.50x384.50
+      LayoutBlockFlow {P} at (0,765.50) size 769x40
+        LayoutText {#text} at (0,0) size 766x39
+          text run at (0,0) width 766: "The above image should be a square resized so its width is 50% of the its parent element, and centered horizontally within"
+          text run at (0,20) width 123: "the parent element: "
+          text run at (123,20) width 395: "the document body in the first half, and the table in the second."
+      LayoutImage {IMG} at (384.50,821.50) size 384.50x384.50
+      LayoutBlockFlow {P} at (0,1222) size 769x40
+        LayoutText {#text} at (0,0) size 758x39
+          text run at (0,0) width 758: "The above image should be a square resized so its width is 50% of its parent element, and aligned at the right edge of the"
+          text run at (0,20) width 100: "parent element: "
+          text run at (100,20) width 395: "the document body in the first half, and the table in the second."
+      LayoutTable {TABLE} at (0,1278) size 769x1083 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1081
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x1053
+            LayoutTableCell {TD} at (0,540) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x1053 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutImage {IMG} at (0,0) size 15x15
+                LayoutText {#text} at (15,0) size 434x19
+                  text run at (15,0) width 434: "The image at the beginning of this sentence should be a 15px square."
+              LayoutImage {IMG} at (4,40) size 15x15
+              LayoutBlockFlow {P} at (4,71) size 747x20
+                LayoutText {#text} at (0,0) size 489x19
+                  text run at (0,0) width 489: "The above image should be a 15px square with the same left edge as this text."
+              LayoutImage {IMG} at (370,107) size 15x15
+              LayoutBlockFlow {P} at (4,138) size 747x20
+                LayoutText {#text} at (0,0) size 400x19
+                  text run at (0,0) width 400: "The above image should be a 15px square aligned at the center."
+              LayoutImage {IMG} at (190.75,174) size 373.50x373.50
+              LayoutBlockFlow {P} at (4,563.50) size 747x40
+                LayoutText {#text} at (0,0) size 722x39
+                  text run at (0,0) width 722: "The above image should be a square resized so its width is 50% of the its parent element, and centered horizontally"
+                  text run at (0,20) width 167: "within the parent element: "
+                  text run at (167,20) width 395: "the document body in the first half, and the table in the second."
+              LayoutImage {IMG} at (377.50,619.50) size 373.50x373.50
+              LayoutBlockFlow {P} at (4,1009) size 747x40
+                LayoutText {#text} at (0,0) size 735x39
+                  text run at (0,0) width 735: "The above image should be a square resized so its width is 50% of its parent element, and aligned at the right edge of"
+                  text run at (0,20) width 123: "the parent element: "
+                  text run at (123,20) width 395: "the document body in the first half, and the table in the second."
+layer at (8,185) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,177) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/vertical_formatting-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/vertical_formatting-expected.txt
new file mode 100644
index 0000000..0c0bb39
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/formatting_model/vertical_formatting-expected.txt
@@ -0,0 +1,173 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2599
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2599 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2598.78
+    LayoutBlockFlow {BODY} at (8,8) size 769x2582.78 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x320
+        LayoutText {#text} at (0,0) size 496x320
+          text run at (0,0) width 368: "P.one {margin-bottom: 2cm; padding-bottom: 0;}"
+          text run at (368,0) width 0: " "
+          text run at (0,16) width 320: "P.two {margin-top: 2cm; padding-top: 0;}"
+          text run at (320,16) width 0: " "
+          text run at (0,32) width 320: "P.three {margin-top: 0; padding-top: 0;}"
+          text run at (320,32) width 0: " "
+          text run at (0,48) width 344: "P.four {margin-top: -1cm; margin-bottom: 0;"
+          text run at (344,48) width 0: " "
+          text run at (0,64) width 344: "        padding-top: 0; padding-bottom: 0;}"
+          text run at (344,64) width 0: " "
+          text run at (0,80) width 368: "DIV.five {margin-top: 1cm; margin-bottom: 1cm;"
+          text run at (368,80) width 0: " "
+          text run at (0,96) width 376: "          padding-top: 1cm; padding-bottom: 0;}"
+          text run at (376,96) width 0: " "
+          text run at (0,112) width 344: "P.six {margin-top: 1cm; margin-bottom: 1cm;"
+          text run at (344,112) width 0: " "
+          text run at (0,128) width 336: "       padding-top: 0; padding-bottom: 0;}"
+          text run at (336,128) width 0: " "
+          text run at (0,144) width 336: "P.seven {margin-top: 1cm; padding-top: 0;}"
+          text run at (336,144) width 0: " "
+          text run at (0,160) width 408: "P.eight {margin-bottom: -1cm; padding-bottom: 2cm;}"
+          text run at (408,160) width 0: " "
+          text run at (0,176) width 344: "P.nine {margin-top: -1cm; padding-top: 1cm;"
+          text run at (344,176) width 0: " "
+          text run at (0,192) width 376: "        padding-bottom: 0; margin-bottom: 1cm;}"
+          text run at (376,192) width 0: " "
+          text run at (0,208) width 304: "P.ten {margin-top: 1cm;padding-top: 0;"
+          text run at (304,208) width 0: " "
+          text run at (0,224) width 248: "       float: left;width: 50%;}"
+          text run at (248,224) width 0: " "
+          text run at (0,240) width 448: "P.eleven {margin-top: 1cm; padding-top: 0; clear: none;}"
+          text run at (448,240) width 0: " "
+          text run at (0,256) width 496: "P.twelve {margin-bottom: 0; padding-bottom: 1cm; clear: both;}"
+          text run at (496,256) width 0: " "
+          text run at (0,272) width 360: "P.thirteen {margin-top: 0; padding-top: 1cm;}"
+          text run at (360,272) width 0: " "
+          text run at (0,288) width 160: "TABLE {clear: both;}"
+          text run at (160,288) width 0: " "
+          text run at (0,304) width 0: " "
+      LayoutBlockFlow {P} at (0,387) size 769x40
+        LayoutText {#text} at (0,0) size 754x39
+          text run at (0,0) width 754: "There should be a two-centimeter margin between this paragraph and the next, because adjacent vertical margins should"
+          text run at (0,20) width 255: "collapse to the maximum of the margins."
+      LayoutBlockFlow {P} at (0,502.58) size 769x20
+        LayoutText {#text} at (0,0) size 164x19
+          text run at (0,0) width 164: "This is another paragraph."
+      LayoutBlockFlow {P} at (0,538.58) size 769x20
+        LayoutText {#text} at (0,0) size 494x19
+          text run at (0,0) width 494: "There should be a two-centimeter margin between this paragraph and the next."
+      LayoutBlockFlow {P} at (0,634.16) size 769x20
+        LayoutText {#text} at (0,0) size 164x19
+          text run at (0,0) width 164: "This is another paragraph."
+      LayoutBlockFlow {P} at (0,670.16) size 769x40
+        LayoutText {#text} at (0,0) size 719x39
+          text run at (0,0) width 719: "There should be a one-centimeter margin between this paragraph and the next, because when there is one negative"
+          text run at (0,20) width 465: "margin, the two margins should be added (the minus sign should be kept)."
+      LayoutBlockFlow {P} at (0,747.95) size 769x20
+        LayoutText {#text} at (0,0) size 164x19
+          text run at (0,0) width 164: "This is another paragraph."
+      LayoutBlockFlow {DIV} at (0,805.73) size 769x135.56
+        LayoutBlockFlow {P} at (0,75.56) size 769x60
+          LayoutText {#text} at (0,0) size 759x59
+            text run at (0,0) width 757: "There should be three centimeters between this text and the text above, but only one centimeter between this text and the"
+            text run at (0,20) width 759: "text below, because vertical margins of nested elements should collapse only if there is no border or padding between the"
+            text run at (0,40) width 54: "margins."
+      LayoutBlockFlow {P} at (0,979.08) size 769x20
+        LayoutText {#text} at (0,0) size 109x19
+          text run at (0,0) width 109: "This is more text."
+      LayoutBlockFlow {P} at (0,1015.08) size 769x115.58
+        LayoutText {#text} at (0,0) size 725x39
+          text run at (0,0) width 725: "There should be two centimeters between this paragraph and the one below, because negative margins collapse to a"
+          text run at (0,20) width 456: "negative margin with the largest absolute value of the margins collapsed."
+      LayoutBlockFlow {P} at (0,1092.88) size 769x77.78
+        LayoutText {#text} at (0,38) size 765x39
+          text run at (0,38) width 765: "This is a paragraph, which I should make very long so that you can easily see how much space there is between it and the"
+          text run at (0,58) width 181: "one below it and to the right."
+      LayoutBlockFlow (floating) {P} at (0,1246.22) size 384.50x60
+        LayoutText {#text} at (0,0) size 382x59
+          text run at (0,0) width 382: "There should be two centimeters between this paragraph and"
+          text run at (0,20) width 365: "the one above it, since margins do not collapse on floating"
+          text run at (0,40) width 59: "elements."
+      LayoutBlockFlow {P} at (0,1208.44) size 769x60
+        LayoutText {#text} at (384,0) size 376x59
+          text run at (384,0) width 376: "There should be one centimeter between this paragraph and"
+          text run at (384,20) width 357: "the (non-floating) one above it, since the float should not"
+          text run at (384,40) width 182: "effect the paragraph spacing."
+      LayoutBlockFlow {P} at (0,1322.22) size 769x77.78
+        LayoutText {#text} at (0,0) size 749x39
+          text run at (0,0) width 554: "There should be two centimeters of padding between this paragraph and the one below. "
+          text run at (553,0) width 196: "Padding does not collapse, and"
+          text run at (0,20) width 234: "there is 1cm of padding on each side."
+      LayoutBlockFlow {P} at (0,1400) size 769x57.78
+        LayoutText {#text} at (0,38) size 167x19
+          text run at (0,38) width 167: "This is the next paragraph."
+      LayoutTable {TABLE} at (0,1473.78) size 769x1109 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1107
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x1079
+            LayoutTableCell {TD} at (0,553) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x1078.78 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x40
+                LayoutText {#text} at (0,0) size 708x39
+                  text run at (0,0) width 708: "There should be a two-centimeter margin between this paragraph and the next, because adjacent vertical margins"
+                  text run at (0,20) width 301: "should collapse to the maximum of the margins."
+              LayoutBlockFlow {P} at (4,119.58) size 747x20
+                LayoutText {#text} at (0,0) size 164x19
+                  text run at (0,0) width 164: "This is another paragraph."
+              LayoutBlockFlow {P} at (4,155.58) size 747x20
+                LayoutText {#text} at (0,0) size 494x19
+                  text run at (0,0) width 494: "There should be a two-centimeter margin between this paragraph and the next."
+              LayoutBlockFlow {P} at (4,251.16) size 747x20
+                LayoutText {#text} at (0,0) size 164x19
+                  text run at (0,0) width 164: "This is another paragraph."
+              LayoutBlockFlow {P} at (4,287.16) size 747x40
+                LayoutText {#text} at (0,0) size 719x39
+                  text run at (0,0) width 719: "There should be a one-centimeter margin between this paragraph and the next, because when there is one negative"
+                  text run at (0,20) width 465: "margin, the two margins should be added (the minus sign should be kept)."
+              LayoutBlockFlow {P} at (4,364.95) size 747x20
+                LayoutText {#text} at (0,0) size 164x19
+                  text run at (0,0) width 164: "This is another paragraph."
+              LayoutBlockFlow {DIV} at (4,422.73) size 747x135.56
+                LayoutBlockFlow {P} at (0,75.56) size 747x60
+                  LayoutText {#text} at (0,0) size 734x59
+                    text run at (0,0) width 734: "There should be three centimeters between this text and the text above, but only one centimeter between this text and"
+                    text run at (0,20) width 702: "the text below, because vertical margins of nested elements should collapse only if there is no border or padding"
+                    text run at (0,40) width 134: "between the margins."
+              LayoutBlockFlow {P} at (4,596.08) size 747x20
+                LayoutText {#text} at (0,0) size 109x19
+                  text run at (0,0) width 109: "This is more text."
+              LayoutBlockFlow {P} at (4,632.08) size 747x115.58
+                LayoutText {#text} at (0,0) size 725x39
+                  text run at (0,0) width 725: "There should be two centimeters between this paragraph and the one below, because negative margins collapse to a"
+                  text run at (0,20) width 456: "negative margin with the largest absolute value of the margins collapsed."
+              LayoutBlockFlow {P} at (4,709.88) size 747x77.78
+                LayoutText {#text} at (0,38) size 742x39
+                  text run at (0,38) width 742: "This is a paragraph, which I should make very long so that you can easily see how much space there is between it and"
+                  text run at (0,58) width 204: "the one below it and to the right."
+              LayoutBlockFlow (floating) {P} at (4,863.22) size 373.50x60
+                LayoutText {#text} at (0,0) size 355x59
+                  text run at (0,0) width 355: "There should be two centimeters between this paragraph"
+                  text run at (0,20) width 340: "and the one above it, since margins do not collapse on"
+                  text run at (0,40) width 111: "floating elements."
+              LayoutBlockFlow {P} at (4,825.44) size 747x60
+                LayoutText {#text} at (373,0) size 360x59
+                  text run at (373,0) width 349: "There should be one centimeter between this paragraph"
+                  text run at (373,20) width 360: "and the (non-floating) one above it, since the float should"
+                  text run at (373,40) width 206: "not effect the paragraph spacing."
+              LayoutBlockFlow {P} at (4,939.22) size 747x77.78
+                LayoutText {#text} at (0,0) size 722x39
+                  text run at (0,0) width 554: "There should be two centimeters of padding between this paragraph and the one below. "
+                  text run at (553,0) width 169: "Padding does not collapse,"
+                  text run at (0,20) width 261: "and there is 1cm of padding on each side."
+              LayoutBlockFlow {P} at (4,1017) size 747x57.78
+                LayoutText {#text} at (0,38) size 167x19
+                  text run at (0,38) width 167: "This is the next paragraph."
+layer at (8,377) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,369) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/anchor-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/anchor-expected.txt
new file mode 100644
index 0000000..dde77cd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/anchor-expected.txt
@@ -0,0 +1,163 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 737
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x737 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x737
+    LayoutBlockFlow {BODY} at (8,8) size 769x721 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 200x96
+          text run at (0,0) width 136: "A {color: green;}"
+          text run at (136,0) width 0: " "
+          text run at (0,16) width 184: "A:link {color: purple;}"
+          text run at (184,16) width 0: " "
+          text run at (0,32) width 192: "A:visited {color: lime;}"
+          text run at (192,32) width 0: " "
+          text run at (0,48) width 200: "A:active {color: maroon;}"
+          text run at (200,48) width 0: " "
+          text run at (0,64) width 176: "#one {color: #006600;}"
+          text run at (176,64) width 0: " "
+          text run at (0,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20
+        LayoutText {#text} at (0,0) size 500x19
+          text run at (0,0) width 500: "The following anchors should appear as described; none of them should be red."
+      LayoutBlockFlow {UL} at (0,199) size 769x160
+        LayoutListItem {LI} at (40,0) size 729x120
+          LayoutBlockFlow (anonymous) at (0,0) size 729x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 567x19
+              text run at (0,0) width 567: "Purple unvisited, lime (light green) visited, maroon (dark red) while active (being clicked):"
+          LayoutBlockFlow {UL} at (0,20) size 729x100
+            LayoutListItem {LI} at (40,0) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutInline {A} at (0,0) size 109x19 [color=#800080]
+                LayoutText {#text} at (0,0) size 109x19
+                  text run at (0,0) width 109: "W3C Web server"
+              LayoutText {#text} at (0,0) size 0x0
+            LayoutListItem {LI} at (40,20) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutInline {A} at (0,0) size 111x19 [color=#800080]
+                LayoutText {#text} at (0,0) size 111x19
+                  text run at (0,0) width 111: "NIST Web server"
+              LayoutText {#text} at (0,0) size 0x0
+            LayoutListItem {LI} at (40,40) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutInline {A} at (0,0) size 124x19 [color=#800080]
+                LayoutText {#text} at (0,0) size 124x19
+                  text run at (0,0) width 124: "CWRU Web server"
+              LayoutText {#text} at (0,0) size 0x0
+            LayoutListItem {LI} at (40,60) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutInline {A} at (0,0) size 47x19 [color=#800080]
+                LayoutText {#text} at (0,0) size 47x19
+                  text run at (0,0) width 47: "Yahoo!"
+              LayoutText {#text} at (0,0) size 0x0
+            LayoutListItem {LI} at (40,80) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutInline {A} at (0,0) size 58x19 [color=#800080]
+                LayoutText {#text} at (0,0) size 58x19
+                  text run at (0,0) width 58: "Erewhon"
+              LayoutText {#text} at (58,0) size 219x19
+                text run at (58,0) width 219: " (don't click on it, it goes nowhere)"
+        LayoutListItem {LI} at (40,120) size 729x40
+          LayoutBlockFlow (anonymous) at (0,0) size 729x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 204x19
+              text run at (0,0) width 204: "Dark green in any circumstance:"
+          LayoutBlockFlow {UL} at (0,20) size 729x20
+            LayoutListItem {LI} at (40,0) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutInline {A} at (0,0) size 124x19 [color=#006600]
+                LayoutText {#text} at (0,0) size 124x19
+                  text run at (0,0) width 124: "CWRU Web server"
+              LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,375) size 769x40
+        LayoutText {#text} at (0,0) size 120x19
+          text run at (0,0) width 120: "The quoted word \""
+        LayoutInline {A} at (0,0) size 43x19 [color=#008000]
+          LayoutText {#text} at (120,0) size 43x19
+            text run at (120,0) width 43: "anchor"
+        LayoutText {#text} at (163,0) size 731x39
+          text run at (163,0) width 377: "\" should be green, NOT purple, since it's part of an anchor. "
+          text run at (539,0) width 192: "It's a named anchor, and styles"
+          text run at (0,20) width 350: "declared for the A tag are applied to them under CSS1. "
+          text run at (350,20) width 326: "It also should NOT turn orange when clicked upon."
+      LayoutTable {TABLE} at (0,431) size 769x290 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x288
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x260
+            LayoutTableCell {TD} at (0,144) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x260 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 500x19
+                  text run at (0,0) width 500: "The following anchors should appear as described; none of them should be red."
+              LayoutBlockFlow {UL} at (4,40) size 747x160
+                LayoutListItem {LI} at (40,0) size 707x120
+                  LayoutBlockFlow (anonymous) at (0,0) size 707x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 567x19
+                      text run at (0,0) width 567: "Purple unvisited, lime (light green) visited, maroon (dark red) while active (being clicked):"
+                  LayoutBlockFlow {UL} at (0,20) size 707x100
+                    LayoutListItem {LI} at (40,0) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutInline {A} at (0,0) size 109x19 [color=#800080]
+                        LayoutText {#text} at (0,0) size 109x19
+                          text run at (0,0) width 109: "W3C Web server"
+                      LayoutText {#text} at (0,0) size 0x0
+                    LayoutListItem {LI} at (40,20) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutInline {A} at (0,0) size 111x19 [color=#800080]
+                        LayoutText {#text} at (0,0) size 111x19
+                          text run at (0,0) width 111: "NIST Web server"
+                      LayoutText {#text} at (0,0) size 0x0
+                    LayoutListItem {LI} at (40,40) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutInline {A} at (0,0) size 124x19 [color=#800080]
+                        LayoutText {#text} at (0,0) size 124x19
+                          text run at (0,0) width 124: "CWRU Web server"
+                      LayoutText {#text} at (0,0) size 0x0
+                    LayoutListItem {LI} at (40,60) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutInline {A} at (0,0) size 47x19 [color=#800080]
+                        LayoutText {#text} at (0,0) size 47x19
+                          text run at (0,0) width 47: "Yahoo!"
+                      LayoutText {#text} at (0,0) size 0x0
+                    LayoutListItem {LI} at (40,80) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutInline {A} at (0,0) size 58x19 [color=#800080]
+                        LayoutText {#text} at (0,0) size 58x19
+                          text run at (0,0) width 58: "Erewhon"
+                      LayoutText {#text} at (58,0) size 219x19
+                        text run at (58,0) width 219: " (don't click on it, it goes nowhere)"
+                LayoutListItem {LI} at (40,120) size 707x40
+                  LayoutBlockFlow (anonymous) at (0,0) size 707x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 204x19
+                      text run at (0,0) width 204: "Dark green in any circumstance:"
+                  LayoutBlockFlow {UL} at (0,20) size 707x20
+                    LayoutListItem {LI} at (40,0) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutInline {A} at (0,0) size 124x19 [color=#006600]
+                        LayoutText {#text} at (0,0) size 124x19
+                          text run at (0,0) width 124: "CWRU Web server"
+                      LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,216) size 747x40
+                LayoutText {#text} at (0,0) size 120x19
+                  text run at (0,0) width 120: "The quoted word \""
+                LayoutInline {A} at (0,0) size 43x19 [color=#008000]
+                  LayoutText {#text} at (120,0) size 43x19
+                    text run at (120,0) width 43: "anchor"
+                LayoutText {#text} at (163,0) size 731x39
+                  text run at (163,0) width 377: "\" should be green, NOT purple, since it's part of an anchor. "
+                  text run at (539,0) width 192: "It's a named anchor, and styles"
+                  text run at (0,20) width 350: "declared for the A tag are applied to them under CSS1. "
+                  text run at (350,20) width 326: "It also should NOT turn orange when clicked upon."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/firstletter-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/firstletter-expected.txt
new file mode 100644
index 0000000..f4b18344
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/firstletter-expected.txt
@@ -0,0 +1,94 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 751
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x751 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x751
+    LayoutBlockFlow {BODY} at (8,8) size 769x735 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 10x19 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 10x19
+            text run at (0,0) width 10: "T"
+        LayoutTextFragment {#text} at (10,0) size 345x19
+          text run at (10,0) width 345: "he style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 312x64
+          text run at (0,0) width 248: "P:first-letter {color: maroon;}"
+          text run at (248,0) width 0: " "
+          text run at (0,16) width 288: ".two:first-letter {font-size: 200%;}"
+          text run at (288,16) width 0: " "
+          text run at (0,32) width 312: "P.three:first-letter {font-size: 350%;}"
+          text run at (312,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 769x60
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 10x19 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 10x19
+            text run at (0,0) width 10: "T"
+        LayoutTextFragment {#text} at (10,0) size 764x59
+          text run at (10,0) width 434: "he first letter of this paragraph, and only that one, should be maroon. "
+          text run at (444,0) width 320: "If this precise combination does not occur, then the"
+          text run at (0,20) width 187: "user agent has failed this test. "
+          text run at (187,20) width 574: "Remember that in order to ensure a complete test, the paragraph must be displayed on more"
+          text run at (0,40) width 85: "than one line."
+      LayoutBlockFlow {P} at (0,207) size 769x77
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 20x36 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 20x36
+            text run at (0,0) width 20: "T"
+        LayoutTextFragment {#text} at (20,13) size 757x63
+          text run at (20,13) width 611: "he first letter of this paragraph, and only that one, should be a larger font size, as well as maroon. "
+          text run at (630,13) width 85: "If this precise"
+          text run at (0,37) width 423: "combination does not occur, then the user agent has failed this test. "
+          text run at (422,37) width 335: "Remember that in order to ensure a complete test, the"
+          text run at (0,57) width 325: "paragraph must be displayed on more than one line."
+      LayoutBlockFlow {P} at (0,300) size 769x106
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 76x64 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,1) size 76x64
+            text run at (0,1) width 76: "\"W"
+        LayoutTextFragment {#text} at (76,36) size 760x69
+          text run at (76,36) width 319: "e should check for quotation support,\" it was said. "
+          text run at (395,36) width 365: "The first two characters in this paragraph-- a double-quote"
+          text run at (0,66) width 578: "mark and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon. "
+          text run at (578,66) width 178: "Note that this is not required"
+          text run at (0,86) width 228: "under CSS1, but it is recommended."
+      LayoutTable {TABLE} at (0,422) size 769x313 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x311
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x283
+            LayoutTableCell {TD} at (0,155) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x283 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x60
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 10x19 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,0) size 10x19
+                    text run at (0,0) width 10: "T"
+                LayoutTextFragment {#text} at (10,0) size 741x59
+                  text run at (10,0) width 434: "he first letter of this paragraph, and only that one, should be maroon. "
+                  text run at (444,0) width 297: "If this precise combination does not occur, then"
+                  text run at (0,20) width 210: "the user agent has failed this test. "
+                  text run at (210,20) width 518: "Remember that in order to ensure a complete test, the paragraph must be displayed"
+                  text run at (0,40) width 141: "on more than one line."
+              LayoutBlockFlow {P} at (4,80) size 747x77
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 20x36 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,0) size 20x36
+                    text run at (0,0) width 20: "T"
+                LayoutTextFragment {#text} at (20,13) size 734x63
+                  text run at (20,13) width 611: "he first letter of this paragraph, and only that one, should be a larger font size, as well as maroon. "
+                  text run at (630,13) width 85: "If this precise"
+                  text run at (0,37) width 423: "combination does not occur, then the user agent has failed this test. "
+                  text run at (422,37) width 312: "Remember that in order to ensure a complete test,"
+                  text run at (0,57) width 348: "the paragraph must be displayed on more than one line."
+              LayoutBlockFlow {P} at (4,173) size 747x106
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 76x64 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,1) size 76x64
+                    text run at (0,1) width 76: "\"W"
+                LayoutTextFragment {#text} at (76,36) size 739x69
+                  text run at (76,36) width 319: "e should check for quotation support,\" it was said. "
+                  text run at (395,36) width 330: "The first two characters in this paragraph-- a double-"
+                  text run at (0,66) width 617: "quote mark and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon. "
+                  text run at (617,66) width 122: "Note that this is not"
+                  text run at (0,86) width 284: "required under CSS1, but it is recommended."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/firstline-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/firstline-expected.txt
new file mode 100644
index 0000000..e3fe5eb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/firstline-expected.txt
@@ -0,0 +1,83 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 699
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x699 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x699
+    LayoutBlockFlow {BODY} at (8,8) size 769x683 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 360x64
+          text run at (0,0) width 224: "P:first-line {color: green;}"
+          text run at (224,0) width 0: " "
+          text run at (0,16) width 272: ".two:first-line {font-size: 200%;}"
+          text run at (272,16) width 0: " "
+          text run at (0,32) width 360: ".three:first-line {font-variant: small-caps;}"
+          text run at (360,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 769x60
+        LayoutText {#text} at (0,0) size 761x59
+          text run at (0,0) width 423: "The first line of this paragraph, and only that one, should be green. "
+          text run at (423,0) width 320: "If this precise combination does not occur, then the"
+          text run at (0,20) width 187: "user agent has failed this test. "
+          text run at (187,20) width 574: "Remember that in order to ensure a complete test, the paragraph must be displayed on more"
+          text run at (0,40) width 85: "than one line."
+      LayoutBlockFlow {P} at (0,207) size 769x77
+        LayoutText {#text} at (0,0) size 767x76
+          text run at (0,0) width 767: "The first line of this paragraph, and only that one, should be"
+          text run at (0,37) width 216: "a larger font size as well as green. "
+          text run at (215,37) width 508: "If this precise combination does not occur, then the user agent has failed this test."
+          text run at (0,57) width 663: "Remember that in order to ensure a complete test, the paragraph must be displayed on more than one line."
+      LayoutBlockFlow {P} at (0,300) size 769x80
+        LayoutText {#text} at (0,0) size 762x59
+          text run at (0,0) width 604: "The first line of this paragraph, and only that one, should be displayed in small-caps style. "
+          text run at (603,0) width 155: "Thus, if the first line is"
+          text run at (0,20) width 762: "not in small-caps style, OR if the entire paragraph turns out in small-caps, then the user agent has failed this test (although"
+          text run at (0,40) width 165: "the problem might be that "
+        LayoutInline {CODE} at (0,0) size 80x16
+          LayoutText {#text} at (165,43) size 80x16
+            text run at (165,43) width 80: "small-caps"
+        LayoutText {#text} at (245,40) size 754x39
+          text run at (245,40) width 225: " is not supported by your browser). "
+          text run at (470,40) width 284: "This is extra text included for the purposes of"
+          text run at (0,60) width 395: "making the paragraph long enough to have more than one line."
+      LayoutTable {TABLE} at (0,396) size 769x287 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x285
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x257
+            LayoutTableCell {TD} at (0,142) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x257 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x60
+                LayoutText {#text} at (0,0) size 743x59
+                  text run at (0,0) width 423: "The first line of this paragraph, and only that one, should be green. "
+                  text run at (423,0) width 320: "If this precise combination does not occur, then the"
+                  text run at (0,20) width 187: "user agent has failed this test. "
+                  text run at (187,20) width 538: "Remember that in order to ensure a complete test, the paragraph must be displayed on"
+                  text run at (0,40) width 121: "more than one line."
+              LayoutBlockFlow {P} at (4,80) size 747x77
+                LayoutText {#text} at (0,0) size 742x76
+                  text run at (0,0) width 729: "The first line of this paragraph, and only that one, should"
+                  text run at (0,37) width 235: "be a larger font size as well as green. "
+                  text run at (234,37) width 508: "If this precise combination does not occur, then the user agent has failed this test."
+                  text run at (0,57) width 663: "Remember that in order to ensure a complete test, the paragraph must be displayed on more than one line."
+              LayoutBlockFlow {P} at (4,173) size 747x80
+                LayoutText {#text} at (0,0) size 744x59
+                  text run at (0,0) width 604: "The first line of this paragraph, and only that one, should be displayed in small-caps style. "
+                  text run at (603,0) width 141: "Thus, if the first line"
+                  text run at (0,20) width 712: "is not in small-caps style, OR if the entire paragraph turns out in small-caps, then the user agent has failed this test"
+                  text run at (0,40) width 229: "(although the problem might be that "
+                LayoutInline {CODE} at (0,0) size 80x16
+                  LayoutText {#text} at (229,43) size 80x16
+                    text run at (229,43) width 80: "small-caps"
+                LayoutText {#text} at (309,40) size 741x39
+                  text run at (309,40) width 225: " is not supported by your browser). "
+                  text run at (534,40) width 207: "This is extra text included for the"
+                  text run at (0,60) width 472: "purposes of making the paragraph long enough to have more than one line."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/multiple_pseudo_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/multiple_pseudo_elements-expected.txt
new file mode 100644
index 0000000..dc49c2e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/multiple_pseudo_elements-expected.txt
@@ -0,0 +1,105 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1089
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1089 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1089
+    LayoutBlockFlow {BODY} at (8,8) size 769x1073 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 10x19 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 10x19
+            text run at (0,0) width 10: "T"
+        LayoutTextFragment {#text} at (10,0) size 345x19
+          text run at (10,0) width 345: "he style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x112
+        LayoutText {#text} at (0,0) size 368x112
+          text run at (0,0) width 224: "P:first-line {color: green;}"
+          text run at (224,0) width 0: " "
+          text run at (0,16) width 248: "P:first-letter {color: maroon;}"
+          text run at (248,16) width 0: " "
+          text run at (0,32) width 272: ".two:first-line {font-size: 200%;}"
+          text run at (272,32) width 0: " "
+          text run at (0,48) width 288: ".two:first-letter {font-size: 350%;}"
+          text run at (288,48) width 0: " "
+          text run at (0,64) width 312: "P.three:first-letter {font-size: 350%;}"
+          text run at (312,64) width 0: " "
+          text run at (0,80) width 368: "P.three:first-line {font-variant: small-caps;}"
+          text run at (368,80) width 0: " "
+          text run at (0,96) width 0: " "
+      LayoutBlockFlow {P} at (0,179) size 769x60
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 10x19 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 10x19
+            text run at (0,0) width 10: "T"
+        LayoutTextFragment {#text} at (10,0) size 764x59
+          text run at (10,0) width 717: "he first letter of this paragraph, and only that one, should be maroon (dark red), while the entire first line should be"
+          text run at (0,20) width 43: "green. "
+          text run at (43,20) width 511: "If this precise combination does not occur, then the user agent has failed this test. "
+          text run at (553,20) width 211: "Remember that in order to ensure"
+          text run at (0,40) width 449: "a complete test, the paragraph must be displayed on more than one line."
+      LayoutBlockFlow {P} at (0,255) size 769x192
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 68x127 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,2) size 68x127
+            text run at (0,2) width 68: "T"
+        LayoutTextFragment {#text} at (68,74) size 751x117
+          text run at (68,74) width 634: "he first letter of this paragraph, and only that one,"
+          text run at (0,132) width 736: "should be 350% bigger than the rest of the first line of this paragraph and maroon (dark red), while the entire first line"
+          text run at (0,152) width 299: "should be 200% bigger than normal and green. "
+          text run at (299,152) width 452: "If this precise combination does not occur, then the user agent has failed"
+          text run at (0,172) width 55: "this test. "
+          text run at (55,172) width 663: "Remember that in order to ensure a complete test, the paragraph must be displayed on more than one line."
+      LayoutBlockFlow {P} at (0,463) size 769x126
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 76x64 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,1) size 76x64
+            text run at (0,1) width 76: "\"W"
+        LayoutTextFragment {#text} at (76,36) size 765x89
+          text run at (76,36) width 333: "e should check for quotation support,\" it was said. "
+          text run at (408,36) width 354: "The first two characters in this paragraph-- a double-"
+          text run at (0,66) width 683: "quote mark and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon (dark red). "
+          text run at (683,66) width 81: "Note that the"
+          text run at (0,86) width 765: "inclusion of both the quotation mark and the 'W' in the first-letter style is not required under CSS1, but it is recommended."
+          text run at (0,106) width 450: "In addition, the entire first line should be in a small-caps font and green."
+      LayoutTable {TABLE} at (0,605) size 769x468 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x466
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x438
+            LayoutTableCell {TD} at (0,233) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x438 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x60
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 10x19 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,0) size 10x19
+                    text run at (0,0) width 10: "T"
+                LayoutTextFragment {#text} at (10,0) size 727x59
+                  text run at (10,0) width 717: "he first letter of this paragraph, and only that one, should be maroon (dark red), while the entire first line should be"
+                  text run at (0,20) width 43: "green. "
+                  text run at (43,20) width 511: "If this precise combination does not occur, then the user agent has failed this test. "
+                  text run at (553,20) width 166: "Remember that in order to"
+                  text run at (0,40) width 494: "ensure a complete test, the paragraph must be displayed on more than one line."
+              LayoutBlockFlow {P} at (4,80) size 747x212
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 68x127 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,2) size 68x127
+                    text run at (0,2) width 68: "T"
+                LayoutTextFragment {#text} at (68,74) size 736x137
+                  text run at (68,74) width 634: "he first letter of this paragraph, and only that one,"
+                  text run at (0,132) width 736: "should be 350% bigger than the rest of the first line of this paragraph and maroon (dark red), while the entire first line"
+                  text run at (0,152) width 299: "should be 200% bigger than normal and green. "
+                  text run at (299,152) width 413: "If this precise combination does not occur, then the user agent has"
+                  text run at (0,172) width 94: "failed this test. "
+                  text run at (94,172) width 632: "Remember that in order to ensure a complete test, the paragraph must be displayed on more than one"
+                  text run at (0,192) width 27: "line."
+              LayoutBlockFlow {P} at (4,308) size 747x126
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 76x64 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,1) size 76x64
+                    text run at (0,1) width 76: "\"W"
+                LayoutTextFragment {#text} at (76,36) size 739x89
+                  text run at (76,36) width 333: "e should check for quotation support,\" it was said. "
+                  text run at (408,36) width 300: "The first two characters in this paragraph-- a"
+                  text run at (0,66) width 727: "double-quote mark and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon (dark red)."
+                  text run at (0,86) width 739: "Note that the inclusion of both the quotation mark and the 'W' in the first-letter style is not required under CSS1, but it"
+                  text run at (0,106) width 111: "is recommended. "
+                  text run at (111,106) width 450: "In addition, the entire first line should be in a small-caps font and green."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/pseudo_elements_in_selectors-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/pseudo_elements_in_selectors-expected.txt
new file mode 100644
index 0000000..92c169e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/pseudo/pseudo_elements_in_selectors-expected.txt
@@ -0,0 +1,78 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 605
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x605 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x605
+    LayoutBlockFlow {BODY} at (8,8) size 769x589 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 380x19
+          text run at (0,0) width 380: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 264x64
+          text run at (0,0) width 264: "P:first-line {font-weight: bold;}"
+          text run at (264,0) width 0: " "
+          text run at (0,16) width 256: "P.two:first-line {color: green;}"
+          text run at (256,16) width 0: " "
+          text run at (0,32) width 256: "P:first-line.three {color: red;}"
+          text run at (256,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 769x40
+        LayoutText {#text} at (0,0) size 718x39
+          text run at (0,0) width 339: "The first line of this sentence should be boldfaced. "
+          text run at (339,0) width 379: "This test is included simply to establish a baseline for the"
+          text run at (0,20) width 636: "following tests, since if this test fails, then the rest of the tests on this page are expected to fail as well."
+      LayoutBlockFlow {P} at (0,187) size 769x40
+        LayoutText {#text} at (0,0) size 754x39
+          text run at (0,0) width 555: "The first line of this sentence should be boldfaced and green, thanks to its selector. "
+          text run at (554,0) width 200: "If this is not the case, then the"
+          text run at (0,20) width 565: "user agent may have failed to properly parse the selector, or it may simply not support the "
+        LayoutInline {TT} at (0,0) size 89x16
+          LayoutText {#text} at (564,23) size 89x16
+            text run at (564,23) width 89: ":first-line"
+        LayoutText {#text} at (652,20) size 108x19
+          text run at (652,20) width 108: " pseudo-element."
+      LayoutBlockFlow {P} at (0,243) size 769x80
+        LayoutText {#text} at (0,0) size 766x79
+          text run at (0,0) width 339: "The first line of this sentence should be boldfaced. "
+          text run at (339,0) width 415: "If it is red, then the user agent has violated the specification in"
+          text run at (0,20) width 431: "allowing pseudo-elements at a point other than the end of a selector. "
+          text run at (430,20) width 336: "If neither is the case, then the user agent has correctly"
+          text run at (0,40) width 750: "ignored the incorrect selector, but has suppressed other styles which are valid, and therefore must be considered to have"
+          text run at (0,60) width 87: "failed the test."
+      LayoutTable {TABLE} at (0,339) size 769x250 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x248
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x220
+            LayoutTableCell {TD} at (0,124) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x220 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x40
+                LayoutText {#text} at (0,0) size 718x39
+                  text run at (0,0) width 339: "The first line of this sentence should be boldfaced. "
+                  text run at (339,0) width 379: "This test is included simply to establish a baseline for the"
+                  text run at (0,20) width 636: "following tests, since if this test fails, then the rest of the tests on this page are expected to fail as well."
+              LayoutBlockFlow {P} at (4,60) size 747x60
+                LayoutText {#text} at (0,0) size 729x39
+                  text run at (0,0) width 555: "The first line of this sentence should be boldfaced and green, thanks to its selector. "
+                  text run at (554,0) width 175: "If this is not the case, then"
+                  text run at (0,20) width 588: "the user agent may have failed to properly parse the selector, or it may simply not support the "
+                LayoutInline {TT} at (0,0) size 89x16
+                  LayoutText {#text} at (587,23) size 89x16
+                    text run at (587,23) width 89: ":first-line"
+                LayoutText {#text} at (675,20) size 730x39
+                  text run at (675,20) width 55: " pseudo-"
+                  text run at (0,40) width 53: "element."
+              LayoutBlockFlow {P} at (4,136) size 747x80
+                LayoutText {#text} at (0,0) size 737x79
+                  text run at (0,0) width 339: "The first line of this sentence should be boldfaced. "
+                  text run at (339,0) width 398: "If it is red, then the user agent has violated the specification"
+                  text run at (0,20) width 447: "in allowing pseudo-elements at a point other than the end of a selector. "
+                  text run at (446,20) width 277: "If neither is the case, then the user agent has"
+                  text run at (0,40) width 687: "correctly ignored the incorrect selector, but has suppressed other styles which are valid, and therefore must be"
+                  text run at (0,60) width 209: "considered to have failed the test."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/letter_spacing-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/letter_spacing-expected.txt
new file mode 100644
index 0000000..a1814ed
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/letter_spacing-expected.txt
@@ -0,0 +1,140 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1481
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1481 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1481
+    LayoutBlockFlow {BODY} at (8,8) size 769x1465 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x176
+        LayoutText {#text} at (0,0) size 264x176
+          text run at (0,0) width 232: ".one {letter-spacing: 0.3in;}"
+          text run at (232,0) width 0: " "
+          text run at (0,16) width 232: ".two {letter-spacing: 0.5cm;}"
+          text run at (232,16) width 0: " "
+          text run at (0,32) width 232: ".three {letter-spacing: 5mm;}"
+          text run at (232,32) width 0: " "
+          text run at (0,48) width 224: ".four {letter-spacing: 3pt;}"
+          text run at (224,48) width 0: " "
+          text run at (0,64) width 248: ".five {letter-spacing: 0.25pc;}"
+          text run at (248,64) width 0: " "
+          text run at (0,80) width 216: ".six {letter-spacing: 1em;}"
+          text run at (216,80) width 0: " "
+          text run at (0,96) width 232: ".seven {letter-spacing: 1ex;}"
+          text run at (232,96) width 0: " "
+          text run at (0,112) width 232: ".eight {letter-spacing: 5px;}"
+          text run at (232,112) width 0: " "
+          text run at (0,128) width 248: ".nine {letter-spacing: normal;}"
+          text run at (248,128) width 0: " "
+          text run at (0,144) width 224: ".ten {letter-spacing: 300%;}"
+          text run at (224,144) width 0: " "
+          text run at (0,160) width 264: ".eleven {letter-spacing: -0.1em;}"
+          text run at (264,160) width 0: " "
+      LayoutBlockFlow {P} at (0,243) size 769x80
+        LayoutText {#text} at (0,0) size 710x79
+          text run at (0,0) width 687: "This letters in this"
+          text run at (0,20) width 710: "sentence should have"
+          text run at (0,40) width 675: "extra space between"
+          text run at (0,60) width 179: "them."
+      LayoutBlockFlow {P} at (0,339) size 769x60
+        LayoutText {#text} at (0,0) size 718x59
+          text run at (0,0) width 718: "This letters in this sentence"
+          text run at (0,20) width 585: "should have extra space"
+          text run at (0,40) width 338: "between them."
+      LayoutBlockFlow {P} at (0,415) size 769x60
+        LayoutText {#text} at (0,0) size 718x59
+          text run at (0,0) width 718: "This letters in this sentence"
+          text run at (0,20) width 585: "should have extra space"
+          text run at (0,40) width 338: "between them."
+      LayoutBlockFlow {P} at (0,491) size 769x20
+        LayoutText {#text} at (0,0) size 687x19
+          text run at (0,0) width 687: "This letters in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,527) size 769x20
+        LayoutText {#text} at (0,0) size 687x19
+          text run at (0,0) width 687: "This letters in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,563) size 769x60
+        LayoutText {#text} at (0,0) size 703x59
+          text run at (0,0) width 633: "This letters in this sentence"
+          text run at (0,20) width 703: "should have extra space between"
+          text run at (0,40) width 115: "them."
+      LayoutBlockFlow {P} at (0,639) size 769x40
+        LayoutText {#text} at (0,0) size 694x39
+          text run at (0,0) width 694: "This letters in this sentence should have extra space"
+          text run at (0,20) width 183: "between them."
+      LayoutBlockFlow {P} at (0,695) size 769x40
+        LayoutText {#text} at (0,0) size 754x39
+          text run at (0,0) width 754: "This letters in this sentence should have extra space between them,"
+          text run at (0,20) width 435: "but the last few words in the sentence "
+        LayoutInline {SPAN} at (0,0) size 180x19
+          LayoutText {#text} at (435,20) size 180x19
+            text run at (435,20) width 180: "should show normal spacing"
+        LayoutText {#text} at (615,20) size 9x19
+          text run at (615,20) width 9: "."
+      LayoutBlockFlow {P} at (0,751) size 769x40
+        LayoutText {#text} at (0,0) size 731x39
+          text run at (0,0) width 731: "This letters in this sentence should have normal space between them, since percentage values are not allowed on this"
+          text run at (0,20) width 56: "property."
+      LayoutBlockFlow {P} at (0,807) size 769x20
+        LayoutText {#text} at (0,0) size 565x19
+          text run at (0,0) width 565: "This letters in this sentence should have reduced space between them, since negative values are allowed on this property."
+      LayoutTable {TABLE} at (0,843) size 769x622 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x620
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x592
+            LayoutTableCell {TD} at (0,310) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x592 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x80
+                LayoutText {#text} at (0,0) size 710x79
+                  text run at (0,0) width 687: "This letters in this"
+                  text run at (0,20) width 710: "sentence should have"
+                  text run at (0,40) width 675: "extra space between"
+                  text run at (0,60) width 179: "them."
+              LayoutBlockFlow {P} at (4,100) size 747x60
+                LayoutText {#text} at (0,0) size 718x59
+                  text run at (0,0) width 718: "This letters in this sentence"
+                  text run at (0,20) width 585: "should have extra space"
+                  text run at (0,40) width 338: "between them."
+              LayoutBlockFlow {P} at (4,176) size 747x60
+                LayoutText {#text} at (0,0) size 718x59
+                  text run at (0,0) width 718: "This letters in this sentence"
+                  text run at (0,20) width 585: "should have extra space"
+                  text run at (0,40) width 338: "between them."
+              LayoutBlockFlow {P} at (4,252) size 747x20
+                LayoutText {#text} at (0,0) size 687x19
+                  text run at (0,0) width 687: "This letters in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,288) size 747x20
+                LayoutText {#text} at (0,0) size 687x19
+                  text run at (0,0) width 687: "This letters in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,324) size 747x60
+                LayoutText {#text} at (0,0) size 703x59
+                  text run at (0,0) width 633: "This letters in this sentence"
+                  text run at (0,20) width 703: "should have extra space between"
+                  text run at (0,40) width 115: "them."
+              LayoutBlockFlow {P} at (4,400) size 747x40
+                LayoutText {#text} at (0,0) size 694x39
+                  text run at (0,0) width 694: "This letters in this sentence should have extra space"
+                  text run at (0,20) width 183: "between them."
+              LayoutBlockFlow {P} at (4,456) size 747x40
+                LayoutText {#text} at (0,0) size 685x39
+                  text run at (0,0) width 685: "This letters in this sentence should have extra space between"
+                  text run at (0,20) width 504: "them, but the last few words in the sentence "
+                LayoutInline {SPAN} at (0,0) size 180x19
+                  LayoutText {#text} at (504,20) size 180x19
+                    text run at (504,20) width 180: "should show normal spacing"
+                LayoutText {#text} at (684,20) size 9x19
+                  text run at (684,20) width 9: "."
+              LayoutBlockFlow {P} at (4,512) size 747x40
+                LayoutText {#text} at (0,0) size 731x39
+                  text run at (0,0) width 731: "This letters in this sentence should have normal space between them, since percentage values are not allowed on this"
+                  text run at (0,20) width 56: "property."
+              LayoutBlockFlow {P} at (4,568) size 747x20
+                LayoutText {#text} at (0,0) size 565x19
+                  text run at (0,0) width 565: "This letters in this sentence should have reduced space between them, since negative values are allowed on this property."
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/line_height-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/line_height-expected.txt
new file mode 100644
index 0000000..44b32b6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/line_height-expected.txt
@@ -0,0 +1,183 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2697
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2697 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2697
+    LayoutBlockFlow {BODY} at (8,8) size 769x2681 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x224
+        LayoutText {#text} at (0,0) size 400x224
+          text run at (0,0) width 344: ".one {line-height: 0.5in; font-size: 12px;}"
+          text run at (344,0) width 0: " "
+          text run at (0,16) width 328: ".two {line-height: 2cm; font-size: 12px;}"
+          text run at (328,16) width 0: " "
+          text run at (0,32) width 352: ".three {line-height: 20mm; font-size: 12px;}"
+          text run at (352,32) width 0: " "
+          text run at (0,48) width 344: ".four {line-height: 24pt; font-size: 12px;}"
+          text run at (344,48) width 0: " "
+          text run at (0,64) width 336: ".five {line-height: 2pc; font-size: 12px;}"
+          text run at (336,64) width 0: " "
+          text run at (0,80) width 328: ".six {line-height: 2em; font-size: 12px;}"
+          text run at (328,80) width 0: " "
+          text run at (0,96) width 344: ".seven {line-height: 3ex; font-size: 12px;}"
+          text run at (344,96) width 0: " "
+          text run at (0,112) width 352: ".eight {line-height: 200%; font-size: 12px;}"
+          text run at (352,112) width 0: " "
+          text run at (0,128) width 320: ".nine {line-height: 2; font-size: 12px;}"
+          text run at (320,128) width 0: " "
+          text run at (0,144) width 336: ".ten {line-height: 50px; font-size: 12px;}"
+          text run at (336,144) width 0: " "
+          text run at (0,160) width 360: ".eleven {line-height: -1em; font-size: 12px;}"
+          text run at (360,160) width 0: " "
+          text run at (0,176) width 400: "TABLE .ten {line-height: normal; font-size: 12px;}"
+          text run at (400,176) width 0: " "
+          text run at (0,192) width 248: "DIV {background-color: silver;}"
+          text run at (248,192) width 0: " "
+          text run at (0,208) width 304: "SPAN.color {background-color: silver;}"
+          text run at (304,208) width 0: " "
+      LayoutBlockFlow {P} at (0,287) size 769x48
+        LayoutText {#text} at (0,16) size 507x15
+          text run at (0,16) width 507: "This sentence should have a line-height of half an inch, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,347) size 769x75
+        LayoutText {#text} at (0,30) size 526x15
+          text run at (0,30) width 526: "This sentence should have a line-height of two centimeters, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,434) size 769x75
+        LayoutText {#text} at (0,30) size 539x15
+          text run at (0,30) width 539: "This sentence should have a line-height of twenty millimeters, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,521) size 769x32
+        LayoutText {#text} at (0,8) size 540x15
+          text run at (0,8) width 540: "This sentence should have a line-height of twenty-four points, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,565) size 769x32
+        LayoutText {#text} at (0,8) size 497x15
+          text run at (0,8) width 497: "This sentence should have a line-height of two picas, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,609) size 769x24
+        LayoutText {#text} at (0,4) size 487x15
+          text run at (0,4) width 487: "This sentence should have a line-height of two em, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,645) size 769x18
+        LayoutText {#text} at (0,1) size 489x15
+          text run at (0,1) width 489: "This sentence should have a line-height of three ex, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,675) size 769x24
+        LayoutText {#text} at (0,4) size 537x15
+          text run at (0,4) width 537: "This sentence should have a line-height of twice the font size, which should cause extra spacing between the lines."
+      LayoutBlockFlow {DIV} at (0,711) size 769x168 [bgcolor=#C0C0C0]
+        LayoutBlockFlow (anonymous) at (0,0) size 769x24
+          LayoutText {#text} at (0,4) size 592x15
+            text run at (0,4) width 592: "This first part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+        LayoutBlockFlow {P} at (0,48) size 769x72
+          LayoutText {#text} at (0,-2) size 763x75
+            text run at (0,-2) width 748: "This sentence should have a line-height of twice the DIV's font size, or 28px;"
+            text run at (0,22) width 763: "this should not cause extra spacing between the lines, since the line-height and"
+            text run at (0,46) width 364: "font-size should have the same value."
+        LayoutBlockFlow (anonymous) at (0,144) size 769x24
+          LayoutText {#text} at (0,4) size 606x15
+            text run at (0,4) width 606: "This second part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,891) size 769x24
+        LayoutText {#text} at (0,4) size 537x15
+          text run at (0,4) width 537: "This sentence should have a line-height of twice the font size, which should cause extra spacing between the lines."
+      LayoutBlockFlow {DIV} at (0,927) size 769x240 [bgcolor=#C0C0C0]
+        LayoutBlockFlow (anonymous) at (0,0) size 769x24
+          LayoutText {#text} at (0,4) size 592x15
+            text run at (0,4) width 592: "This first part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+        LayoutBlockFlow {P} at (0,48) size 769x144
+          LayoutText {#text} at (0,10) size 749x123
+            text run at (0,10) width 749: "This sentence should have a line-height of twice the font size, which is 200%"
+            text run at (0,58) width 742: "normal thanks to an inline style; this should cause extra spacing between the"
+            text run at (0,106) width 654: "lines, as the font-size will be 28px and the line-height will be 56px."
+        LayoutBlockFlow (anonymous) at (0,216) size 769x24
+          LayoutText {#text} at (0,4) size 606x15
+            text run at (0,4) width 606: "This second part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,1179) size 769x100
+        LayoutText {#text} at (0,17) size 745x65
+          text run at (0,17) width 592: "This paragraph should have a line-height of 50 pixels in the first section, which should cause extra spacing between the lines. "
+          text run at (592,17) width 153: "In the second section (within the"
+          text run at (0,67) width 181: "table) its line-height should be normal."
+      LayoutBlockFlow {P} at (0,1291) size 769x16
+        LayoutText {#text} at (0,0) size 504x15
+          text run at (0,0) width 504: "This sentence should have a normal line-height, because negative values are not permitted for this property."
+      LayoutBlockFlow {P} at (0,1319) size 769x150
+        LayoutInline {SPAN} at (0,0) size 758x90 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,30) size 758x90
+            text run at (0,30) width 758: "This sentence should have a line-height of two centimeters, which should cause extra spacing between the lines. The text has a background color of silver, but no"
+            text run at (0,105) width 663: "padding or border. The background color has been set on an inline element and should therefore only cover the text, not the interline spacing."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutTable {TABLE} at (0,1481) size 769x1200 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1198
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x1170
+            LayoutTableCell {TD} at (0,599) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x1170 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x48
+                LayoutText {#text} at (0,16) size 507x15
+                  text run at (0,16) width 507: "This sentence should have a line-height of half an inch, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,64) size 747x75
+                LayoutText {#text} at (0,30) size 526x15
+                  text run at (0,30) width 526: "This sentence should have a line-height of two centimeters, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,151) size 747x75
+                LayoutText {#text} at (0,30) size 539x15
+                  text run at (0,30) width 539: "This sentence should have a line-height of twenty millimeters, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,238) size 747x32
+                LayoutText {#text} at (0,8) size 540x15
+                  text run at (0,8) width 540: "This sentence should have a line-height of twenty-four points, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,282) size 747x32
+                LayoutText {#text} at (0,8) size 497x15
+                  text run at (0,8) width 497: "This sentence should have a line-height of two picas, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,326) size 747x24
+                LayoutText {#text} at (0,4) size 487x15
+                  text run at (0,4) width 487: "This sentence should have a line-height of two em, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,362) size 747x18
+                LayoutText {#text} at (0,1) size 489x15
+                  text run at (0,1) width 489: "This sentence should have a line-height of three ex, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,392) size 747x24
+                LayoutText {#text} at (0,4) size 537x15
+                  text run at (0,4) width 537: "This sentence should have a line-height of twice the font size, which should cause extra spacing between the lines."
+              LayoutBlockFlow {DIV} at (4,428) size 747x168 [bgcolor=#C0C0C0]
+                LayoutBlockFlow (anonymous) at (0,0) size 747x24
+                  LayoutText {#text} at (0,4) size 592x15
+                    text run at (0,4) width 592: "This first part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+                LayoutBlockFlow {P} at (0,48) size 747x72
+                  LayoutText {#text} at (0,-2) size 722x75
+                    text run at (0,-2) width 687: "This sentence should have a line-height of twice the DIV's font size, or"
+                    text run at (0,22) width 722: "28px; this should not cause extra spacing between the lines, since the line-"
+                    text run at (0,46) width 472: "height and font-size should have the same value."
+                LayoutBlockFlow (anonymous) at (0,144) size 747x24
+                  LayoutText {#text} at (0,4) size 606x15
+                    text run at (0,4) width 606: "This second part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,608) size 747x24
+                LayoutText {#text} at (0,4) size 537x15
+                  text run at (0,4) width 537: "This sentence should have a line-height of twice the font size, which should cause extra spacing between the lines."
+              LayoutBlockFlow {DIV} at (4,644) size 747x288 [bgcolor=#C0C0C0]
+                LayoutBlockFlow (anonymous) at (0,0) size 747x24
+                  LayoutText {#text} at (0,4) size 592x15
+                    text run at (0,4) width 592: "This first part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+                LayoutBlockFlow {P} at (0,48) size 747x192
+                  LayoutText {#text} at (0,10) size 717x171
+                    text run at (0,10) width 687: "This sentence should have a line-height of twice the font size, which is"
+                    text run at (0,58) width 681: "200% normal thanks to an inline style; this should cause extra spacing"
+                    text run at (0,106) width 717: "between the lines, as the font-size will be 28px and the line-height will be"
+                    text run at (0,154) width 54: "56px."
+                LayoutBlockFlow (anonymous) at (0,264) size 747x24
+                  LayoutText {#text} at (0,4) size 606x15
+                    text run at (0,4) width 606: "This second part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,944) size 747x32
+                LayoutText {#text} at (0,0) size 745x31
+                  text run at (0,0) width 592: "This paragraph should have a line-height of 50 pixels in the first section, which should cause extra spacing between the lines. "
+                  text run at (592,0) width 153: "In the second section (within the"
+                  text run at (0,16) width 181: "table) its line-height should be normal."
+              LayoutBlockFlow {P} at (4,988) size 747x16
+                LayoutText {#text} at (0,0) size 504x15
+                  text run at (0,0) width 504: "This sentence should have a normal line-height, because negative values are not permitted for this property."
+              LayoutBlockFlow {P} at (4,1016) size 747x150
+                LayoutInline {SPAN} at (0,0) size 743x90 [bgcolor=#C0C0C0]
+                  LayoutText {#text} at (0,30) size 743x90
+                    text run at (0,30) width 743: "This sentence should have a line-height of two centimeters, which should cause extra spacing between the lines. The text has a background color of silver, but"
+                    text run at (0,105) width 678: "no padding or border. The background color has been set on an inline element and should therefore only cover the text, not the interline spacing."
+                LayoutText {#text} at (0,0) size 0x0
+layer at (8,281) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,273) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/text_align-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/text_align-expected.txt
new file mode 100644
index 0000000..ecbf55b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/text_align-expected.txt
@@ -0,0 +1,61 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x80
+        LayoutText {#text} at (0,0) size 224x80
+          text run at (0,0) width 192: ".one {text-align: left;}"
+          text run at (192,0) width 0: " "
+          text run at (0,16) width 200: ".two {text-align: right;}"
+          text run at (200,16) width 0: " "
+          text run at (0,32) width 224: ".three {text-align: center;}"
+          text run at (224,32) width 0: " "
+          text run at (0,48) width 224: ".four {text-align: justify;}"
+          text run at (224,48) width 0: " "
+          text run at (0,64) width 0: " "
+      LayoutBlockFlow {P} at (0,147) size 784x20
+        LayoutText {#text} at (0,0) size 234x19
+          text run at (0,0) width 234: "This sentence should be left-justified."
+      LayoutBlockFlow {P} at (0,183) size 784x20
+        LayoutText {#text} at (541,0) size 243x19
+          text run at (541,0) width 243: "This sentence should be right-justified."
+      LayoutBlockFlow {P} at (0,219) size 784x20
+        LayoutText {#text} at (286,0) size 212x19
+          text run at (286,0) width 212: "This sentence should be centered."
+      LayoutBlockFlow {P} at (0,255) size 784x60
+        LayoutText {#text} at (0,0) size 784x59
+          text run at (0,0) width 784: "This sentence should be fully justified, which means that the right and left margins of this paragraph should line up, no"
+          text run at (0,20) width 784: "matter how long the paragraph becomes; the exception, of course, is the last line, which should be left-justified in Western"
+          text run at (0,40) width 67: "languages."
+      LayoutTable {TABLE} at (0,331) size 784x206 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x204
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x176
+            LayoutTableCell {TD} at (0,102) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x176 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x20
+                LayoutText {#text} at (0,0) size 234x19
+                  text run at (0,0) width 234: "This sentence should be left-justified."
+              LayoutBlockFlow {P} at (4,40) size 762x20
+                LayoutText {#text} at (519,0) size 243x19
+                  text run at (519,0) width 243: "This sentence should be right-justified."
+              LayoutBlockFlow {P} at (4,76) size 762x20
+                LayoutText {#text} at (275,0) size 212x19
+                  text run at (275,0) width 212: "This sentence should be centered."
+              LayoutBlockFlow {P} at (4,112) size 762x60
+                LayoutText {#text} at (0,0) size 762x59
+                  text run at (0,0) width 762: "This sentence should be fully justified, which means that the right and left margins of this paragraph should line up, no"
+                  text run at (0,20) width 762: "matter how long the paragraph becomes; the exception, of course, is the last line, which should be left-justified in"
+                  text run at (0,40) width 122: "Western languages."
+layer at (8,137) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,129) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/text_decoration-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/text_decoration-expected.txt
new file mode 100644
index 0000000..f8e39654
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/text_decoration-expected.txt
@@ -0,0 +1,199 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1225
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1225 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1225
+    LayoutBlockFlow {BODY} at (8,8) size 769x1209 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x128
+        LayoutText {#text} at (0,0) size 464x128
+          text run at (0,0) width 272: ".one {text-decoration: underline;}"
+          text run at (272,0) width 0: " "
+          text run at (0,16) width 264: ".two {text-decoration: overline;}"
+          text run at (264,16) width 0: " "
+          text run at (0,32) width 312: ".three {text-decoration: line-through;}"
+          text run at (312,32) width 0: " "
+          text run at (0,48) width 248: ".four {text-decoration: blink;}"
+          text run at (248,48) width 0: " "
+          text run at (0,64) width 248: "B.five {text-decoration: none;}"
+          text run at (248,64) width 0: " "
+          text run at (0,80) width 344: ".six {text-decoration: underline overline;}"
+          text run at (344,80) width 0: " "
+          text run at (0,96) width 464: ".seven {text-decoration: underline overline line-through;}"
+          text run at (464,96) width 0: " "
+          text run at (0,112) width 0: " "
+      LayoutBlockFlow {P} at (0,195) size 769x20
+        LayoutText {#text} at (0,0) size 226x19
+          text run at (0,0) width 226: "This sentence should be underlined."
+      LayoutBlockFlow {P} at (0,231) size 769x20
+        LayoutText {#text} at (0,0) size 218x19
+          text run at (0,0) width 218: "This sentence should be overlined."
+      LayoutBlockFlow {P} at (0,267) size 769x20
+        LayoutText {#text} at (0,0) size 336x19
+          text run at (0,0) width 336: "This sentence should have stricken text (linethrough)."
+      LayoutBlockFlow {P} at (0,303) size 769x20
+        LayoutText {#text} at (0,0) size 590x19
+          text run at (0,0) width 210: "This element should be blinking. "
+          text run at (210,0) width 380: "(It is not required, however, that UAs support this behavior.)"
+      LayoutBlockFlow {P} at (0,339) size 769x40
+        LayoutText {#text} at (0,0) size 508x19
+          text run at (0,0) width 291: "The text in this element should be underlined. "
+          text run at (291,0) width 217: "The boldfaced text in this element "
+        LayoutInline {B} at (0,0) size 173x19
+          LayoutText {#text} at (508,0) size 173x19
+            text run at (508,0) width 173: "should also be underlined"
+        LayoutText {#text} at (681,0) size 731x39
+          text run at (681,0) width 8: ". "
+          text run at (689,0) width 42: "This is"
+          text run at (0,20) width 716: "because the parent's underline will 'span' the boldfaced text, even if the inline element has no underline of its own."
+      LayoutBlockFlow {P} at (0,395) size 769x20
+        LayoutText {#text} at (0,0) size 316x19
+          text run at (0,0) width 316: "This sentence should be underlined and overlined."
+      LayoutBlockFlow {P} at (0,431) size 769x20
+        LayoutText {#text} at (0,0) size 377x19
+          text run at (0,0) width 377: "This sentence should be underlined, overlined, and stricken."
+      LayoutBlockFlow {P} at (0,467) size 769x0
+      LayoutBlockFlow {P} at (0,467) size 769x40
+        LayoutText {#text} at (0,0) size 761x39
+          text run at (0,0) width 761: "There should be nothing visible between this sentence and the one above (there is an empty paragraph element with class"
+          text run at (0,20) width 62: "of seven)."
+      LayoutBlockFlow {P} at (0,523) size 769x60
+        LayoutText {#text} at (0,0) size 633x19
+          text run at (0,0) width 633: "Text decorations only apply to the text of an element, so the image at the end of this sentence should "
+        LayoutInline {EM} at (0,0) size 21x19
+          LayoutText {#text} at (632,0) size 21x19
+            text run at (632,0) width 21: "not"
+        LayoutText {#text} at (652,0) size 91x19
+          text run at (652,0) width 91: " be overlined: "
+        LayoutImage {IMG} at (742.88,0) size 15x15
+        LayoutText {#text} at (757,0) size 762x59
+          text run at (757,0) width 5: "."
+          text run at (0,20) width 729: "The underline of the parent element should hold true beneath the image, however, since text-decoration 'spans' child"
+          text run at (0,40) width 59: "elements."
+      LayoutBlockFlow {P} at (0,599) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 105x19
+          text run at (0,0) width 105: "The underlining "
+        LayoutInline {SPAN} at (0,0) size 96x19 [color=#0000FF]
+          LayoutText {#text} at (105,0) size 96x19
+            text run at (105,0) width 96: "in this sentence"
+        LayoutText {#text} at (201,0) size 233x19
+          text run at (201,0) width 233: " should be green, no matter what the "
+        LayoutInline {SPAN} at (0,0) size 109x19 [color=#000000]
+          LayoutText {#text} at (434,0) size 109x19
+            text run at (434,0) width 109: "text color may be"
+        LayoutText {#text} at (543,0) size 4x19
+          text run at (543,0) width 4: "."
+      LayoutBlockFlow {P} at (0,635) size 769x40
+        LayoutText {#text} at (0,0) size 111x19
+          text run at (0,0) width 111: "The colors of the "
+        LayoutInline {SPAN} at (0,0) size 72x19 [color=#800080]
+          LayoutText {#text} at (111,0) size 72x19
+            text run at (111,0) width 72: "underlining"
+        LayoutText {#text} at (183,0) size 20x19
+          text run at (183,0) width 20: " in "
+        LayoutInline {SPAN} at (0,0) size 80x19 [color=#0000FF]
+          LayoutText {#text} at (203,0) size 80x19
+            text run at (203,0) width 80: "this sentence"
+        LayoutText {#text} at (283,0) size 69x19
+          text run at (283,0) width 69: " should be "
+        LayoutInline {SPAN} at (0,0) size 209x19 [color=#808080]
+          LayoutText {#text} at (352,0) size 209x19
+            text run at (352,0) width 209: "the same as that of the parent text"
+        LayoutText {#text} at (561,0) size 738x39
+          text run at (561,0) width 177: " (that is, the first word in the"
+          text run at (0,20) width 213: "sentence, which should be black)."
+      LayoutTable {TABLE} at (0,691) size 769x518 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x516
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x488
+            LayoutTableCell {TD} at (0,258) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x488 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 226x19
+                  text run at (0,0) width 226: "This sentence should be underlined."
+              LayoutBlockFlow {P} at (4,40) size 747x20
+                LayoutText {#text} at (0,0) size 218x19
+                  text run at (0,0) width 218: "This sentence should be overlined."
+              LayoutBlockFlow {P} at (4,76) size 747x20
+                LayoutText {#text} at (0,0) size 336x19
+                  text run at (0,0) width 336: "This sentence should have stricken text (linethrough)."
+              LayoutBlockFlow {P} at (4,112) size 747x20
+                LayoutText {#text} at (0,0) size 590x19
+                  text run at (0,0) width 210: "This element should be blinking. "
+                  text run at (210,0) width 380: "(It is not required, however, that UAs support this behavior.)"
+              LayoutBlockFlow {P} at (4,148) size 747x40
+                LayoutText {#text} at (0,0) size 508x19
+                  text run at (0,0) width 291: "The text in this element should be underlined. "
+                  text run at (291,0) width 217: "The boldfaced text in this element "
+                LayoutInline {B} at (0,0) size 173x19
+                  LayoutText {#text} at (508,0) size 173x19
+                    text run at (508,0) width 173: "should also be underlined"
+                LayoutText {#text} at (681,0) size 731x39
+                  text run at (681,0) width 8: ". "
+                  text run at (689,0) width 42: "This is"
+                  text run at (0,20) width 716: "because the parent's underline will 'span' the boldfaced text, even if the inline element has no underline of its own."
+              LayoutBlockFlow {P} at (4,204) size 747x20
+                LayoutText {#text} at (0,0) size 316x19
+                  text run at (0,0) width 316: "This sentence should be underlined and overlined."
+              LayoutBlockFlow {P} at (4,240) size 747x20
+                LayoutText {#text} at (0,0) size 377x19
+                  text run at (0,0) width 377: "This sentence should be underlined, overlined, and stricken."
+              LayoutBlockFlow {P} at (4,276) size 747x0
+              LayoutBlockFlow {P} at (4,276) size 747x40
+                LayoutText {#text} at (0,0) size 727x39
+                  text run at (0,0) width 727: "There should be nothing visible between this sentence and the one above (there is an empty paragraph element with"
+                  text run at (0,20) width 96: "class of seven)."
+              LayoutBlockFlow {P} at (4,332) size 747x60
+                LayoutText {#text} at (0,0) size 633x19
+                  text run at (0,0) width 633: "Text decorations only apply to the text of an element, so the image at the end of this sentence should "
+                LayoutInline {EM} at (0,0) size 21x19
+                  LayoutText {#text} at (632,0) size 21x19
+                    text run at (632,0) width 21: "not"
+                LayoutText {#text} at (652,0) size 91x19
+                  text run at (652,0) width 91: " be overlined: "
+                LayoutImage {IMG} at (0,20) size 15x15
+                LayoutText {#text} at (15,20) size 717x39
+                  text run at (15,20) width 8: ". "
+                  text run at (23,20) width 694: "The underline of the parent element should hold true beneath the image, however, since text-decoration 'spans'"
+                  text run at (0,40) width 94: "child elements."
+              LayoutBlockFlow {P} at (4,408) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 105x19
+                  text run at (0,0) width 105: "The underlining "
+                LayoutInline {SPAN} at (0,0) size 96x19 [color=#0000FF]
+                  LayoutText {#text} at (105,0) size 96x19
+                    text run at (105,0) width 96: "in this sentence"
+                LayoutText {#text} at (201,0) size 233x19
+                  text run at (201,0) width 233: " should be green, no matter what the "
+                LayoutInline {SPAN} at (0,0) size 109x19 [color=#000000]
+                  LayoutText {#text} at (434,0) size 109x19
+                    text run at (434,0) width 109: "text color may be"
+                LayoutText {#text} at (543,0) size 4x19
+                  text run at (543,0) width 4: "."
+              LayoutBlockFlow {P} at (4,444) size 747x40
+                LayoutText {#text} at (0,0) size 111x19
+                  text run at (0,0) width 111: "The colors of the "
+                LayoutInline {SPAN} at (0,0) size 72x19 [color=#800080]
+                  LayoutText {#text} at (111,0) size 72x19
+                    text run at (111,0) width 72: "underlining"
+                LayoutText {#text} at (183,0) size 20x19
+                  text run at (183,0) width 20: " in "
+                LayoutInline {SPAN} at (0,0) size 80x19 [color=#0000FF]
+                  LayoutText {#text} at (203,0) size 80x19
+                    text run at (203,0) width 80: "this sentence"
+                LayoutText {#text} at (283,0) size 69x19
+                  text run at (283,0) width 69: " should be "
+                LayoutInline {SPAN} at (0,0) size 209x19 [color=#808080]
+                  LayoutText {#text} at (352,0) size 209x19
+                    text run at (352,0) width 209: "the same as that of the parent text"
+                LayoutText {#text} at (561,0) size 738x39
+                  text run at (561,0) width 177: " (that is, the first word in the"
+                  text run at (0,20) width 213: "sentence, which should be black)."
+layer at (8,185) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,177) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/text_indent-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/text_indent-expected.txt
new file mode 100644
index 0000000..b4fab2d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/text_indent-expected.txt
@@ -0,0 +1,137 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1329
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1329 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1329
+    LayoutBlockFlow {BODY} at (8,8) size 769x1313 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x176
+        LayoutText {#text} at (0,0) size 384x176
+          text run at (0,0) width 352: ".one {text-indent: 0.5in; background: aqua;}"
+          text run at (352,0) width 0: " "
+          text run at (0,16) width 336: ".two {text-indent: 2cm; background: aqua;}"
+          text run at (336,16) width 0: " "
+          text run at (0,32) width 360: ".three {text-indent: 20mm; background: aqua;}"
+          text run at (360,32) width 0: " "
+          text run at (0,48) width 352: ".four {text-indent: 24pt; background: aqua;}"
+          text run at (352,48) width 0: " "
+          text run at (0,64) width 344: ".five {text-indent: 2pc; background: aqua;}"
+          text run at (344,64) width 0: " "
+          text run at (0,80) width 336: ".six {text-indent: 2em; background: aqua;}"
+          text run at (336,80) width 0: " "
+          text run at (0,96) width 352: ".seven {text-indent: 2ex; background: aqua;}"
+          text run at (352,96) width 0: " "
+          text run at (0,112) width 352: ".eight {text-indent: 50%; background: aqua;}"
+          text run at (352,112) width 0: " "
+          text run at (0,128) width 352: ".nine {text-indent: 25px; background: aqua;}"
+          text run at (352,128) width 0: " "
+          text run at (0,144) width 384: "blockquote {text-indent: 50%; background: aqua;}"
+          text run at (384,144) width 0: " "
+          text run at (0,160) width 0: " "
+      LayoutBlockFlow {P} at (0,243) size 769x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (48,0) size 386x19
+          text run at (48,0) width 386: "The first line of this sentence should be indented half an inch."
+      LayoutBlockFlow {P} at (0,279) size 769x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (75,0) size 412x19
+          text run at (75,0) width 412: "The first line of this sentence should be indented two centimeters."
+      LayoutBlockFlow {P} at (0,315) size 769x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (75,0) size 429x19
+          text run at (75,0) width 429: "The first line of this sentence should be indented twenty millimeters."
+      LayoutBlockFlow {P} at (0,351) size 769x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (32,0) size 428x19
+          text run at (32,0) width 428: "The first line of this sentence should be indented twenty-four points."
+      LayoutBlockFlow {P} at (0,387) size 769x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (32,0) size 372x19
+          text run at (32,0) width 372: "The first line of this sentence should be indented two picas."
+      LayoutBlockFlow {P} at (0,423) size 769x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (32,0) size 359x19
+          text run at (32,0) width 359: "The first line of this sentence should be indented two em."
+      LayoutBlockFlow {P} at (0,459) size 769x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (14,0) size 355x19
+          text run at (14,0) width 355: "The first line of this sentence should be indented two ex."
+      LayoutBlockFlow {P} at (0,495) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (384,0) size 744x39
+          text run at (384,0) width 360: "The first line of this sentence should be indented halfway"
+          text run at (0,20) width 555: "across the page, but the rest of it should be flush with the normal left margin of the page."
+      LayoutBlockFlow {P} at (0,551) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (25,0) size 723x39
+          text run at (25,0) width 698: "The first line of this sentence should be indented 25 pixels, but the rest of it should be flush with the normal left"
+          text run at (0,20) width 122: "margin of the page."
+      LayoutBlockFlow {P} at (0,607) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (48,0) size 416x19
+          text run at (48,0) width 416: "Only the first line of this sentence should be indented half an inch,"
+        LayoutBR {BR} at (464,15) size 0x0
+        LayoutText {#text} at (0,20) size 259x19
+          text run at (0,20) width 259: "no matter where the lines might start, and"
+        LayoutBR {BR} at (259,35) size 0x0
+        LayoutInline {EM} at (0,0) size 198x19
+          LayoutText {#text} at (0,40) size 198x19
+            text run at (0,40) width 198: "regardless of any other markup"
+        LayoutText {#text} at (197,40) size 147x19
+          text run at (197,40) width 147: " which may be present."
+      LayoutBlockFlow {BLOCKQUOTE} at (40,683) size 689x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (384,0) size 646x59
+          text run at (384,0) width 222: "In the first half of the test page, this"
+          text run at (0,20) width 646: "BLOCKQUOTE element should have a text indent equal to 50% of the BODY element's width, since"
+          text run at (0,40) width 511: "BLOCKQUOTE is a child of BODY; in the second half, it is a child of TABLE."
+      LayoutTable {TABLE} at (0,759) size 769x554 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x552
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x524
+            LayoutTableCell {TD} at (0,276) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x524 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (48,0) size 386x19
+                  text run at (48,0) width 386: "The first line of this sentence should be indented half an inch."
+              LayoutBlockFlow {P} at (4,40) size 747x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (75,0) size 412x19
+                  text run at (75,0) width 412: "The first line of this sentence should be indented two centimeters."
+              LayoutBlockFlow {P} at (4,76) size 747x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (75,0) size 429x19
+                  text run at (75,0) width 429: "The first line of this sentence should be indented twenty millimeters."
+              LayoutBlockFlow {P} at (4,112) size 747x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (32,0) size 428x19
+                  text run at (32,0) width 428: "The first line of this sentence should be indented twenty-four points."
+              LayoutBlockFlow {P} at (4,148) size 747x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (32,0) size 372x19
+                  text run at (32,0) width 372: "The first line of this sentence should be indented two picas."
+              LayoutBlockFlow {P} at (4,184) size 747x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (32,0) size 359x19
+                  text run at (32,0) width 359: "The first line of this sentence should be indented two em."
+              LayoutBlockFlow {P} at (4,220) size 747x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (14,0) size 355x19
+                  text run at (14,0) width 355: "The first line of this sentence should be indented two ex."
+              LayoutBlockFlow {P} at (4,256) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (373,0) size 733x39
+                  text run at (373,0) width 360: "The first line of this sentence should be indented halfway"
+                  text run at (0,20) width 555: "across the page, but the rest of it should be flush with the normal left margin of the page."
+              LayoutBlockFlow {P} at (4,312) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (25,0) size 723x39
+                  text run at (25,0) width 698: "The first line of this sentence should be indented 25 pixels, but the rest of it should be flush with the normal left"
+                  text run at (0,20) width 122: "margin of the page."
+              LayoutBlockFlow {P} at (4,368) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (48,0) size 416x19
+                  text run at (48,0) width 416: "Only the first line of this sentence should be indented half an inch,"
+                LayoutBR {BR} at (464,15) size 0x0
+                LayoutText {#text} at (0,20) size 259x19
+                  text run at (0,20) width 259: "no matter where the lines might start, and"
+                LayoutBR {BR} at (259,35) size 0x0
+                LayoutInline {EM} at (0,0) size 198x19
+                  LayoutText {#text} at (0,40) size 198x19
+                    text run at (0,40) width 198: "regardless of any other markup"
+                LayoutText {#text} at (197,40) size 147x19
+                  text run at (197,40) width 147: " which may be present."
+              LayoutBlockFlow {BLOCKQUOTE} at (44,444) size 667x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (373,0) size 646x59
+                  text run at (373,0) width 222: "In the first half of the test page, this"
+                  text run at (0,20) width 646: "BLOCKQUOTE element should have a text indent equal to 50% of the BODY element's width, since"
+                  text run at (0,40) width 511: "BLOCKQUOTE is a child of BODY; in the second half, it is a child of TABLE."
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/text_transform-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/text_transform-expected.txt
new file mode 100644
index 0000000..864692f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/text_transform-expected.txt
@@ -0,0 +1,107 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 785
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x785 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x785
+    LayoutBlockFlow {BODY} at (8,8) size 769x769 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x80
+        LayoutText {#text} at (0,0) size 272x80
+          text run at (0,0) width 224: ".ttn {text-transform: none;}"
+          text run at (224,0) width 0: " "
+          text run at (0,16) width 272: ".cap {text-transform: capitalize;}"
+          text run at (272,16) width 0: " "
+          text run at (0,32) width 264: ".upp {text-transform: uppercase;}"
+          text run at (264,32) width 0: " "
+          text run at (0,48) width 264: ".low {text-transform: lowercase;}"
+          text run at (264,48) width 0: " "
+          text run at (0,64) width 0: " "
+      LayoutBlockFlow {P} at (0,147) size 769x40
+        LayoutText {#text} at (0,0) size 718x39
+          text run at (0,0) width 718: "This page tests the 'text-transform' property of CSS1. This paragraph has no text transformation and should appear"
+          text run at (0,20) width 48: "normal."
+      LayoutBlockFlow {P} at (0,203) size 769x60
+        LayoutText {#text} at (0,0) size 748x59
+          text run at (0,0) width 748: "This Paragraph Is Capitalized And The First Letter In Each Word Should Therefore Appear In Uppercase. Words That"
+          text run at (0,20) width 722: "Are In Uppercase In The Source (E.G. USA) Should Remain So. There Should Be A Capital Letter After A Non-"
+          text run at (0,40) width 538: "Breaking Space (&Nbsp;). Both Those Characters Appear In The Previous Sentence."
+      LayoutBlockFlow {P} at (0,279) size 769x40
+        LayoutText {#text} at (0,0) size 752x39
+          text run at (0,0) width 752: "Words with inline elements inside them should only capitalize the first letter of the word. Therefore, the last word in this"
+          text run at (0,20) width 304: "sentence should have one, and only one, capital "
+        LayoutInline {SPAN} at (0,0) size 37x19
+          LayoutText {#text} at (304,20) size 17x19
+            text run at (304,20) width 17: "Le"
+          LayoutInline {SPAN} at (0,0) size 8x19
+            LayoutText {#text} at (321,20) size 8x19
+              text run at (321,20) width 8: "tt"
+          LayoutText {#text} at (329,20) size 12x19
+            text run at (329,20) width 12: "er"
+        LayoutText {#text} at (341,20) size 4x19
+          text run at (341,20) width 4: "."
+      LayoutBlockFlow {P} at (0,335) size 769x60
+        LayoutText {#text} at (0,0) size 720x39
+          text run at (0,0) width 720: "THIS PARAGRAPH IS UPPERCASED AND SMALL CHARACTERS IN THE SOURCE (E.G. A AND \x{C5})"
+          text run at (0,20) width 359: "SHOULD THEREFORE APPEAR IN UPPERCASE. "
+          text run at (359,20) width 284: "IN THE LAST SENTENCE, HOWEVER, "
+        LayoutInline {SPAN} at (0,0) size 765x39
+          LayoutText {#text} at (643,20) size 765x39
+            text run at (643,20) width 122: "the last eight words"
+            text run at (0,40) width 152: "should not be uppercase"
+        LayoutText {#text} at (152,40) size 4x19
+          text run at (152,40) width 4: "."
+      LayoutBlockFlow {P} at (0,411) size 769x20
+        LayoutText {#text} at (0,0) size 726x19
+          text run at (0,0) width 726: "this paragraph is lowercased and capital characters in the source (e.g. a and \x{E5}) should therefore appear in lowercase."
+      LayoutTable {TABLE} at (0,447) size 769x322 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x320
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x292
+            LayoutTableCell {TD} at (0,160) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x292 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x40
+                LayoutText {#text} at (0,0) size 718x39
+                  text run at (0,0) width 718: "This page tests the 'text-transform' property of CSS1. This paragraph has no text transformation and should appear"
+                  text run at (0,20) width 48: "normal."
+              LayoutBlockFlow {P} at (4,60) size 747x60
+                LayoutText {#text} at (0,0) size 718x59
+                  text run at (0,0) width 715: "This Paragraph Is Capitalized And The First Letter In Each Word Should Therefore Appear In Uppercase. Words"
+                  text run at (0,20) width 718: "That Are In Uppercase In The Source (E.G. USA) Should Remain So. There Should Be A Capital Letter After A"
+                  text run at (0,40) width 571: "Non-Breaking Space (&Nbsp;). Both Those Characters Appear In The Previous Sentence."
+              LayoutBlockFlow {P} at (4,136) size 747x40
+                LayoutText {#text} at (0,0) size 726x39
+                  text run at (0,0) width 726: "Words with inline elements inside them should only capitalize the first letter of the word. Therefore, the last word in"
+                  text run at (0,20) width 330: "this sentence should have one, and only one, capital "
+                LayoutInline {SPAN} at (0,0) size 37x19
+                  LayoutText {#text} at (330,20) size 17x19
+                    text run at (330,20) width 17: "Le"
+                  LayoutInline {SPAN} at (0,0) size 8x19
+                    LayoutText {#text} at (347,20) size 8x19
+                      text run at (347,20) width 8: "tt"
+                  LayoutText {#text} at (355,20) size 12x19
+                    text run at (355,20) width 12: "er"
+                LayoutText {#text} at (367,20) size 4x19
+                  text run at (367,20) width 4: "."
+              LayoutBlockFlow {P} at (4,192) size 747x60
+                LayoutText {#text} at (0,0) size 720x39
+                  text run at (0,0) width 720: "THIS PARAGRAPH IS UPPERCASED AND SMALL CHARACTERS IN THE SOURCE (E.G. A AND \x{C5})"
+                  text run at (0,20) width 359: "SHOULD THEREFORE APPEAR IN UPPERCASE. "
+                  text run at (359,20) width 284: "IN THE LAST SENTENCE, HOWEVER, "
+                LayoutInline {SPAN} at (0,0) size 722x39
+                  LayoutText {#text} at (643,20) size 722x39
+                    text run at (643,20) width 79: "the last eight"
+                    text run at (0,40) width 195: "words should not be uppercase"
+                LayoutText {#text} at (195,40) size 4x19
+                  text run at (195,40) width 4: "."
+              LayoutBlockFlow {P} at (4,268) size 747x20
+                LayoutText {#text} at (0,0) size 726x19
+                  text run at (0,0) width 726: "this paragraph is lowercased and capital characters in the source (e.g. a and \x{E5}) should therefore appear in lowercase."
+layer at (8,137) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,129) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/vertical_align-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/vertical_align-expected.txt
new file mode 100644
index 0000000..26d66b4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/vertical_align-expected.txt
@@ -0,0 +1,722 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 4501
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x4501 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x4501.31
+    LayoutBlockFlow {BODY} at (8,8) size 769x4485.31 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x288
+        LayoutText {#text} at (0,0) size 512x288
+          text run at (0,0) width 160: "P {font-size: 12pt;}"
+          text run at (160,0) width 0: " "
+          text run at (0,16) width 216: ".one {vertical-align: sub;}"
+          text run at (216,16) width 0: " "
+          text run at (0,32) width 232: ".two {vertical-align: super;}"
+          text run at (232,32) width 0: " "
+          text run at (0,48) width 368: ".three {vertical-align: top; font-size: 12pt;}"
+          text run at (368,48) width 0: " "
+          text run at (0,64) width 400: ".four {vertical-align: text-top; font-size: 12pt;}"
+          text run at (400,64) width 0: " "
+          text run at (0,80) width 384: ".five {vertical-align: middle; font-size: 12pt;}"
+          text run at (384,80) width 0: " "
+          text run at (0,96) width 376: ".six {vertical-align: bottom; font-size: 12pt;}"
+          text run at (376,96) width 0: " "
+          text run at (0,112) width 432: ".seven {vertical-align: text-bottom; font-size: 12pt;}"
+          text run at (432,112) width 0: " "
+          text run at (0,128) width 408: ".eight {vertical-align: baseline; font-size: 12pt;}"
+          text run at (408,128) width 0: " "
+          text run at (0,144) width 512: ".nine {vertical-align: 50%; font-size: 12px; line-height: 16px;}"
+          text run at (512,144) width 0: " "
+          text run at (0,160) width 0: " "
+          text run at (0,176) width 224: "P.example {font-size: 14pt;}"
+          text run at (224,176) width 0: " "
+          text run at (0,192) width 176: "BIG {font-size: 16pt;}"
+          text run at (176,192) width 0: " "
+          text run at (0,208) width 192: "SMALL {font-size: 12pt;}"
+          text run at (192,208) width 0: " "
+          text run at (0,224) width 304: ".ttopalign {vertical-align: text-top;}"
+          text run at (304,224) width 0: " "
+          text run at (0,240) width 256: ".topalign {vertical-align: top;}"
+          text run at (256,240) width 0: " "
+          text run at (0,256) width 280: ".midalign {vertical-align: middle;}"
+          text run at (280,256) width 0: " "
+          text run at (0,272) width 0: " "
+      LayoutBlockFlow {P} at (0,355) size 769x79
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutInline {SPAN} at (0,0) size 126x19
+          LayoutText {#text} at (15,39) size 126x19
+            text run at (15,39) width 126: "The first four words"
+        LayoutText {#text} at (141,35) size 750x43
+          text run at (141,35) width 284: " in this sentence should be subscript-aligned. "
+          text run at (425,35) width 325: "The font size of the superscripted text should not be"
+          text run at (0,59) width 254: "different from that of the parent element."
+      LayoutBlockFlow {P} at (0,450) size 769x75
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutInline {SPAN} at (0,0) size 126x19
+          LayoutText {#text} at (15,29) size 126x19
+            text run at (15,29) width 126: "The first four words"
+        LayoutText {#text} at (141,35) size 750x39
+          text run at (141,35) width 296: " in this sentence should be superscript-aligned. "
+          text run at (437,35) width 313: "The font size of the subscripted text should not be"
+          text run at (0,55) width 254: "different from that of the parent element."
+      LayoutBlockFlow {P} at (0,541) size 769x75
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutInline {SPAN} at (0,0) size 126x19
+          LayoutText {#text} at (15,0) size 126x19
+            text run at (15,0) width 126: "The first four words"
+        LayoutText {#text} at (141,35) size 765x39
+          text run at (141,35) width 624: " in this sentence should be top-aligned, which will align their tops with the top of the tallest element"
+          text run at (0,55) width 267: "in the line (probably the orange rectangle)."
+      LayoutBlockFlow {P} at (0,632) size 769x133
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,35) size 4x19
+          text run at (15,35) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 754x110
+          LayoutText {#text} at (0,0) size 0x0
+          LayoutInline {SPAN} at (0,0) size 126x19
+            LayoutText {#text} at (19,22) size 126x19
+              text run at (19,22) width 126: "The first four words"
+          LayoutText {#text} at (145,22) size 754x110
+            text run at (145,22) width 556: " in this sentence should be text-top-aligned,"
+            text run at (0,59) width 754: "which should align their tops with the top of the tallest text"
+            text run at (0,96) width 136: "in the line."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,781) size 769x70
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,13) size 739x56
+          text run at (15,13) width 724: " The image at the beginning of this sentence should be middle-aligned, which should align its middle with the point"
+          text run at (0,50) width 310: "defined as the text baseline plus half the x-height."
+      LayoutBlockFlow {P} at (0,867) size 769x124
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,13) size 4x19
+          text run at (15,13) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 733x123
+          LayoutText {#text} at (0,0) size 0x0
+          LayoutInline {SPAN} at (0,0) size 126x19
+            LayoutText {#text} at (19,30) size 126x19
+              text run at (19,30) width 126: "The first four words"
+          LayoutText {#text} at (145,0) size 733x123
+            text run at (145,0) width 544: " in this sentence should be 12pt in size and"
+            text run at (0,50) width 733: "bottom-aligned, which should align their bottom with the"
+            text run at (0,87) width 517: "bottom of the lowest element in the line."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,1007) size 769x161
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,13) size 4x19
+          text run at (15,13) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 745x160
+          LayoutText {#text} at (0,0) size 0x0
+          LayoutInline {SPAN} at (0,0) size 293x19
+            LayoutText {#text} at (19,16) size 293x19
+              text run at (19,16) width 293: "The first eight words (\"eight\" has a descender)"
+          LayoutText {#text} at (312,0) size 745x160
+            text run at (312,0) width 433: " in this sentence should be 12pt in"
+            text run at (0,50) width 692: "size and text-bottom-aligned, which should align their"
+            text run at (0,87) width 671: "bottom with the bottom of the lowest text (including"
+            text run at (0,124) width 294: "descenders) in the line."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,1184) size 769x133
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,35) size 4x19
+          text run at (15,35) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 759x110
+          LayoutText {#text} at (0,0) size 0x0
+          LayoutInline {SPAN} at (0,0) size 126x19
+            LayoutText {#text} at (19,35) size 126x19
+              text run at (19,35) width 126: "The first four words"
+          LayoutText {#text} at (145,22) size 759x110
+            text run at (145,22) width 544: " in this sentence should be 12pt in size and"
+            text run at (0,59) width 759: "baseline-aligned, which should align their baseline with the"
+            text run at (0,96) width 522: "baseline of the rest of the text in the line."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,1333) size 769x75
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutInline {SPAN} at (0,0) size 96x15
+          LayoutText {#text} at (15,30) size 96x15
+            text run at (15,30) width 96: "The first four words"
+        LayoutText {#text} at (111,35) size 750x39
+          text run at (111,35) width 639: " in this sentence should have a font-size of 12px and a line-height of 16px; they are also 50%-aligned,"
+          text run at (0,55) width 376: "which should raise them 8px relative to the natural baseline."
+      LayoutBlockFlow {P} at (0,1424) size 769x40
+        LayoutText {#text} at (0,0) size 742x39
+          text run at (0,0) width 742: "In the following paragraph, all images should be aligned with the top of the 14-point text, which is identical to the first"
+          text run at (0,20) width 661: "section of text, whereas any size text should be aligned with the text baseline (which is the default value)."
+      LayoutBlockFlow {P} at (0,1482.66) size 769x328
+        LayoutText {#text} at (0,27) size 120x21
+          text run at (0,27) width 120: "This paragraph "
+        LayoutImage {IMG} at (120,27) size 9x30
+        LayoutText {#text} at (129,27) size 5x21
+          text run at (129,27) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 422x53
+          LayoutText {#text} at (134,1) size 422x53
+            text run at (134,1) width 422: "contains many images"
+        LayoutText {#text} at (556,27) size 5x21
+          text run at (556,27) width 5: " "
+        LayoutImage {IMG} at (561,27) size 15x50
+        LayoutText {#text} at (576,27) size 5x21
+          text run at (576,27) width 5: " "
+        LayoutInline {BIG} at (0,0) size 156x23
+          LayoutText {#text} at (581,25) size 156x23
+            text run at (581,25) width 156: "of varying heights"
+        LayoutText {#text} at (737,27) size 5x21
+          text run at (737,27) width 5: " "
+        LayoutImage {IMG} at (742,27) size 3x10
+        LayoutText {#text} at (0,0) size 0x0
+        LayoutInline {SMALL} at (0,0) size 69x19
+          LayoutText {#text} at (0,126) size 69x19
+            text run at (0,126) width 69: "and widths"
+        LayoutText {#text} at (69,125) size 5x21
+          text run at (69,125) width 5: " "
+        LayoutImage {IMG} at (74,125) size 6x20
+        LayoutText {#text} at (80,125) size 101x21
+          text run at (80,125) width 101: " all of which "
+        LayoutImage {IMG} at (181,125) size 19.50x65
+        LayoutText {#text} at (200,125) size 6x21
+          text run at (200,125) width 6: " "
+        LayoutInline {SPAN} at (0,0) size 263x42
+          LayoutText {#text} at (205,108) size 263x42
+            text run at (205,108) width 263: "should be aligned"
+        LayoutText {#text} at (467,125) size 6x21
+          text run at (467,125) width 6: " "
+        LayoutImage {IMG} at (472.50,125) size 10.50x35
+        LayoutText {#text} at (483,125) size 123x21
+          text run at (483,125) width 123: " with the top of "
+        LayoutImage {IMG} at (606,125) size 9x30
+        LayoutText {#text} at (615,125) size 5x21
+          text run at (615,125) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 732x146
+          LayoutText {#text} at (620,115) size 19x33
+            text run at (620,115) width 19: "a "
+          LayoutInline {SPAN} at (0,0) size 732x193
+            LayoutText {#text} at (639,78) size 732x193
+              text run at (639,78) width 93: "14-"
+              text run at (0,191) width 143: "point"
+          LayoutText {#text} at (143,228) size 144x33
+            text run at (143,228) width 144: " text element"
+        LayoutText {#text} at (287,238) size 5x21
+          text run at (287,238) width 5: " "
+        LayoutImage {IMG} at (292,238) size 15x50
+        LayoutText {#text} at (307,238) size 5x21
+          text run at (307,238) width 5: " "
+        LayoutInline {SMALL} at (0,0) size 189x19
+          LayoutText {#text} at (312,239) size 189x19
+            text run at (312,239) width 189: "regardless of the line in which"
+        LayoutText {#text} at (501,238) size 5x21
+          text run at (501,238) width 5: " "
+        LayoutImage {IMG} at (506,238) size 4.50x15
+        LayoutText {#text} at (510,238) size 6x21
+          text run at (510,238) width 6: " "
+        LayoutInline {BIG} at (0,0) size 156x23
+          LayoutText {#text} at (515,236) size 156x23
+            text run at (515,236) width 156: "the images appear."
+        LayoutText {#text} at (670,238) size 6x21
+          text run at (670,238) width 6: " "
+        LayoutImage {IMG} at (675.31,238) size 27x90
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,1829.31) size 769x40
+        LayoutText {#text} at (0,0) size 749x39
+          text run at (0,0) width 749: "In the following paragraph, all images should be aligned with the middle of the default text, whereas any text should be"
+          text run at (0,20) width 362: "aligned with the text baseline (which is the default value)."
+      LayoutBlockFlow {P} at (0,1885.31) size 769x233
+        LayoutText {#text} at (0,22) size 99x19
+          text run at (0,22) width 99: "This paragraph "
+        LayoutImage {IMG} at (99,19) size 9x30
+        LayoutText {#text} at (108,22) size 4x19
+          text run at (108,22) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 357x46
+          LayoutText {#text} at (112,1) size 357x46
+            text run at (112,1) width 357: "contains many images"
+        LayoutText {#text} at (469,22) size 4x19
+          text run at (469,22) width 4: " "
+        LayoutImage {IMG} at (473,9) size 15x50
+        LayoutText {#text} at (488,22) size 122x19
+          text run at (488,22) width 122: " of varying heights "
+        LayoutImage {IMG} at (610,29) size 3x10
+        LayoutText {#text} at (613,22) size 4x19
+          text run at (613,22) width 4: " "
+        LayoutInline {SMALL} at (0,0) size 69x19
+          LayoutText {#text} at (617,22) size 69x19
+            text run at (617,22) width 69: "and widths"
+        LayoutText {#text} at (686,22) size 4x19
+          text run at (686,22) width 4: " "
+        LayoutImage {IMG} at (690,24) size 6x20
+        LayoutText {#text} at (696,22) size 732x96
+          text run at (696,22) width 36: " all of"
+          text run at (0,99) width 43: "which "
+        LayoutImage {IMG} at (43,78) size 19.50x65
+        LayoutText {#text} at (62,99) size 120x19
+          text run at (62,99) width 120: " should be aligned "
+        LayoutImage {IMG} at (181.50,93) size 10.50x35
+        LayoutText {#text} at (192,99) size 4x19
+          text run at (192,99) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 236x36
+          LayoutText {#text} at (196,86) size 236x36
+            text run at (196,86) width 236: "with the middle of"
+        LayoutText {#text} at (432,99) size 4x19
+          text run at (432,99) width 4: " "
+        LayoutImage {IMG} at (436,86) size 15x50
+        LayoutText {#text} at (451,99) size 4x19
+          text run at (451,99) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 719x104
+          LayoutText {#text} at (455,93) size 17x27
+            text run at (455,93) width 17: "a "
+          LayoutInline {SPAN} at (0,0) size 204x68
+            LayoutText {#text} at (472,60) size 204x68
+              text run at (472,60) width 204: "14-point"
+          LayoutText {#text} at (676,93) size 719x104
+            text run at (676,93) width 43: " text"
+            text run at (0,170) width 78: "element"
+        LayoutText {#text} at (78,176) size 4x19
+          text run at (78,176) width 4: " "
+        LayoutImage {IMG} at (82,163) size 15x50
+        LayoutText {#text} at (97,176) size 4x19
+          text run at (97,176) width 4: " "
+        LayoutInline {SMALL} at (0,0) size 189x19
+          LayoutText {#text} at (101,176) size 189x19
+            text run at (101,176) width 189: "regardless of the line in which"
+        LayoutText {#text} at (290,176) size 4x19
+          text run at (290,176) width 4: " "
+        LayoutImage {IMG} at (294,180) size 4.50x15
+        LayoutText {#text} at (298,176) size 5x19
+          text run at (298,176) width 5: " "
+        LayoutInline {BIG} at (0,0) size 156x23
+          LayoutText {#text} at (302,173) size 156x23
+            text run at (302,173) width 156: "the images appear."
+        LayoutText {#text} at (457,176) size 5x19
+          text run at (457,176) width 5: " "
+        LayoutImage {IMG} at (461.31,143) size 27x90
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,2134.31) size 769x40
+        LayoutText {#text} at (0,0) size 733x39
+          text run at (0,0) width 733: "In the following paragraph, all elements should be aligned with the top of the tallest element on the line, whether that"
+          text run at (0,20) width 173: "element is an image or not. "
+          text run at (173,20) width 554: "Each fragment of text has been SPANned appropriately in order to cause this to happen."
+      LayoutBlockFlow {P} at (0,2190.31) size 769x203
+        LayoutInline {SPAN} at (0,0) size 95x19
+          LayoutText {#text} at (0,0) size 95x19
+            text run at (0,0) width 95: "This paragraph"
+        LayoutText {#text} at (95,0) size 4x19
+          text run at (95,0) width 4: " "
+        LayoutImage {IMG} at (99,0) size 3x10
+        LayoutText {#text} at (102,0) size 4x19
+          text run at (102,0) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 357x46
+          LayoutText {#text} at (106,1) size 357x46
+            text run at (106,1) width 357: "contains many images"
+        LayoutText {#text} at (463,0) size 4x19
+          text run at (463,0) width 4: " "
+        LayoutImage {IMG} at (467,0) size 3x10
+        LayoutText {#text} at (470,0) size 4x19
+          text run at (470,0) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 87x19
+          LayoutText {#text} at (474,0) size 87x19
+            text run at (474,0) width 87: "and some text"
+        LayoutText {#text} at (561,0) size 4x19
+          text run at (561,0) width 4: " "
+        LayoutImage {IMG} at (565,0) size 3x10
+        LayoutText {#text} at (568,0) size 4x19
+          text run at (568,0) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 114x19
+          LayoutText {#text} at (572,0) size 114x19
+            text run at (572,0) width 114: "of varying heights"
+        LayoutText {#text} at (686,0) size 4x19
+          text run at (686,0) width 4: " "
+        LayoutImage {IMG} at (690,0) size 3x10
+        LayoutText {#text} at (693,0) size 4x19
+          text run at (693,0) width 4: " "
+        LayoutInline {BIG} at (0,0) size 728x71
+          LayoutText {#text} at (697,0) size 728x71
+            text run at (697,0) width 31: "and"
+            text run at (0,48) width 57: "widths"
+        LayoutText {#text} at (57,48) size 4x19
+          text run at (57,48) width 4: " "
+        LayoutImage {IMG} at (61,48) size 6x20
+        LayoutText {#text} at (67,48) size 4x19
+          text run at (67,48) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 75x19
+          LayoutText {#text} at (71,48) size 75x19
+            text run at (71,48) width 75: "all of which"
+        LayoutText {#text} at (146,48) size 4x19
+          text run at (146,48) width 4: " "
+        LayoutImage {IMG} at (150,48) size 19.50x65
+        LayoutText {#text} at (169,48) size 5x19
+          text run at (169,48) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 112x19
+          LayoutText {#text} at (173,48) size 112x19
+            text run at (173,48) width 112: "should be aligned"
+        LayoutText {#text} at (284,48) size 5x19
+          text run at (284,48) width 5: " "
+        LayoutImage {IMG} at (288.50,48) size 10.50x35
+        LayoutText {#text} at (299,48) size 4x19
+          text run at (299,48) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 188x36
+          LayoutText {#text} at (303,48) size 188x36
+            text run at (303,48) width 188: "with the top of"
+        LayoutText {#text} at (491,48) size 4x19
+          text run at (491,48) width 4: " "
+        LayoutImage {IMG} at (495,48) size 15x50
+        LayoutText {#text} at (510,48) size 4x19
+          text run at (510,48) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 128x19
+          LayoutText {#text} at (514,48) size 128x19
+            text run at (514,48) width 128: "the tallest element in"
+        LayoutText {#text} at (642,48) size 4x19
+          text run at (642,48) width 4: " "
+        LayoutImage {IMG} at (646,48) size 4.50x15
+        LayoutText {#text} at (650,48) size 5x19
+          text run at (650,48) width 5: " "
+        LayoutInline {BIG} at (0,0) size 743x88
+          LayoutText {#text} at (654,48) size 743x88
+            text run at (654,48) width 89: "whichever"
+            text run at (0,113) width 207: "line the elements appear."
+        LayoutText {#text} at (206,113) size 5x19
+          text run at (206,113) width 5: " "
+        LayoutImage {IMG} at (210.81,113) size 27x90
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutTable {TABLE} at (0,2409.31) size 769x2076 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x2074
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x2046
+            LayoutTableCell {TD} at (0,1037) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x2046.31 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x79
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutInline {SPAN} at (0,0) size 126x19
+                  LayoutText {#text} at (15,39) size 126x19
+                    text run at (15,39) width 126: "The first four words"
+                LayoutText {#text} at (141,35) size 731x43
+                  text run at (141,35) width 284: " in this sentence should be subscript-aligned. "
+                  text run at (425,35) width 306: "The font size of the superscripted text should not"
+                  text run at (0,59) width 273: "be different from that of the parent element."
+              LayoutBlockFlow {P} at (4,99) size 747x75
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutInline {SPAN} at (0,0) size 126x19
+                  LayoutText {#text} at (15,29) size 126x19
+                    text run at (15,29) width 126: "The first four words"
+                LayoutText {#text} at (141,35) size 731x39
+                  text run at (141,35) width 296: " in this sentence should be superscript-aligned. "
+                  text run at (437,35) width 294: "The font size of the subscripted text should not"
+                  text run at (0,55) width 273: "be different from that of the parent element."
+              LayoutBlockFlow {P} at (4,190) size 747x75
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutInline {SPAN} at (0,0) size 126x19
+                  LayoutText {#text} at (15,0) size 126x19
+                    text run at (15,0) width 126: "The first four words"
+                LayoutText {#text} at (141,35) size 712x39
+                  text run at (141,35) width 571: " in this sentence should be top-aligned, which will align their tops with the top of the tallest"
+                  text run at (0,55) width 320: "element in the line (probably the orange rectangle)."
+              LayoutBlockFlow {P} at (4,281) size 747x133
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,35) size 4x19
+                  text run at (15,35) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 701x110
+                  LayoutText {#text} at (0,0) size 0x0
+                  LayoutInline {SPAN} at (0,0) size 126x19
+                    LayoutText {#text} at (19,22) size 126x19
+                      text run at (19,22) width 126: "The first four words"
+                  LayoutText {#text} at (145,22) size 701x110
+                    text run at (145,22) width 556: " in this sentence should be text-top-aligned,"
+                    text run at (0,59) width 698: "which should align their tops with the top of the tallest"
+                    text run at (0,96) width 192: "text in the line."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,430) size 747x70
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,13) size 739x56
+                  text run at (15,13) width 724: " The image at the beginning of this sentence should be middle-aligned, which should align its middle with the point"
+                  text run at (0,50) width 310: "defined as the text baseline plus half the x-height."
+              LayoutBlockFlow {P} at (4,516) size 747x124
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,13) size 4x19
+                  text run at (15,13) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 733x123
+                  LayoutText {#text} at (0,0) size 0x0
+                  LayoutInline {SPAN} at (0,0) size 126x19
+                    LayoutText {#text} at (19,30) size 126x19
+                      text run at (19,30) width 126: "The first four words"
+                  LayoutText {#text} at (145,0) size 733x123
+                    text run at (145,0) width 544: " in this sentence should be 12pt in size and"
+                    text run at (0,50) width 733: "bottom-aligned, which should align their bottom with the"
+                    text run at (0,87) width 517: "bottom of the lowest element in the line."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,656) size 747x161
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,13) size 4x19
+                  text run at (15,13) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 745x160
+                  LayoutText {#text} at (0,0) size 0x0
+                  LayoutInline {SPAN} at (0,0) size 293x19
+                    LayoutText {#text} at (19,16) size 293x19
+                      text run at (19,16) width 293: "The first eight words (\"eight\" has a descender)"
+                  LayoutText {#text} at (312,0) size 745x160
+                    text run at (312,0) width 433: " in this sentence should be 12pt in"
+                    text run at (0,50) width 692: "size and text-bottom-aligned, which should align their"
+                    text run at (0,87) width 671: "bottom with the bottom of the lowest text (including"
+                    text run at (0,124) width 294: "descenders) in the line."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,833) size 747x133
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,35) size 4x19
+                  text run at (15,35) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 712x110
+                  LayoutText {#text} at (0,0) size 0x0
+                  LayoutInline {SPAN} at (0,0) size 126x19
+                    LayoutText {#text} at (19,35) size 126x19
+                      text run at (19,35) width 126: "The first four words"
+                  LayoutText {#text} at (145,22) size 712x110
+                    text run at (145,22) width 544: " in this sentence should be 12pt in size and"
+                    text run at (0,59) width 712: "baseline-aligned, which should align their baseline with"
+                    text run at (0,96) width 569: "the baseline of the rest of the text in the line."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,982) size 747x75
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutInline {SPAN} at (0,0) size 96x15
+                  LayoutText {#text} at (15,30) size 96x15
+                    text run at (15,30) width 96: "The first four words"
+                LayoutText {#text} at (111,35) size 700x39
+                  text run at (111,35) width 589: " in this sentence should have a font-size of 12px and a line-height of 16px; they are also 50%-"
+                  text run at (0,55) width 430: "aligned, which should raise them 8px relative to the natural baseline."
+              LayoutBlockFlow {P} at (4,1073) size 747x40
+                LayoutText {#text} at (0,0) size 742x39
+                  text run at (0,0) width 742: "In the following paragraph, all images should be aligned with the top of the 14-point text, which is identical to the first"
+                  text run at (0,20) width 661: "section of text, whereas any size text should be aligned with the text baseline (which is the default value)."
+              LayoutBlockFlow {P} at (4,1131.66) size 747x328
+                LayoutText {#text} at (0,27) size 120x21
+                  text run at (0,27) width 120: "This paragraph "
+                LayoutImage {IMG} at (120,27) size 9x30
+                LayoutText {#text} at (129,27) size 5x21
+                  text run at (129,27) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 422x53
+                  LayoutText {#text} at (134,1) size 422x53
+                    text run at (134,1) width 422: "contains many images"
+                LayoutText {#text} at (556,27) size 5x21
+                  text run at (556,27) width 5: " "
+                LayoutImage {IMG} at (561,27) size 15x50
+                LayoutText {#text} at (576,27) size 5x21
+                  text run at (576,27) width 5: " "
+                LayoutInline {BIG} at (0,0) size 156x23
+                  LayoutText {#text} at (581,25) size 156x23
+                    text run at (581,25) width 156: "of varying heights"
+                LayoutText {#text} at (737,27) size 5x21
+                  text run at (737,27) width 5: " "
+                LayoutImage {IMG} at (742,27) size 3x10
+                LayoutText {#text} at (0,0) size 0x0
+                LayoutInline {SMALL} at (0,0) size 69x19
+                  LayoutText {#text} at (0,126) size 69x19
+                    text run at (0,126) width 69: "and widths"
+                LayoutText {#text} at (69,125) size 5x21
+                  text run at (69,125) width 5: " "
+                LayoutImage {IMG} at (74,125) size 6x20
+                LayoutText {#text} at (80,125) size 101x21
+                  text run at (80,125) width 101: " all of which "
+                LayoutImage {IMG} at (181,125) size 19.50x65
+                LayoutText {#text} at (200,125) size 6x21
+                  text run at (200,125) width 6: " "
+                LayoutInline {SPAN} at (0,0) size 263x42
+                  LayoutText {#text} at (205,108) size 263x42
+                    text run at (205,108) width 263: "should be aligned"
+                LayoutText {#text} at (467,125) size 6x21
+                  text run at (467,125) width 6: " "
+                LayoutImage {IMG} at (472.50,125) size 10.50x35
+                LayoutText {#text} at (483,125) size 123x21
+                  text run at (483,125) width 123: " with the top of "
+                LayoutImage {IMG} at (606,125) size 9x30
+                LayoutText {#text} at (615,125) size 5x21
+                  text run at (615,125) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 732x146
+                  LayoutText {#text} at (620,115) size 19x33
+                    text run at (620,115) width 19: "a "
+                  LayoutInline {SPAN} at (0,0) size 732x193
+                    LayoutText {#text} at (639,78) size 732x193
+                      text run at (639,78) width 93: "14-"
+                      text run at (0,191) width 143: "point"
+                  LayoutText {#text} at (143,228) size 144x33
+                    text run at (143,228) width 144: " text element"
+                LayoutText {#text} at (287,238) size 5x21
+                  text run at (287,238) width 5: " "
+                LayoutImage {IMG} at (292,238) size 15x50
+                LayoutText {#text} at (307,238) size 5x21
+                  text run at (307,238) width 5: " "
+                LayoutInline {SMALL} at (0,0) size 189x19
+                  LayoutText {#text} at (312,239) size 189x19
+                    text run at (312,239) width 189: "regardless of the line in which"
+                LayoutText {#text} at (501,238) size 5x21
+                  text run at (501,238) width 5: " "
+                LayoutImage {IMG} at (506,238) size 4.50x15
+                LayoutText {#text} at (510,238) size 6x21
+                  text run at (510,238) width 6: " "
+                LayoutInline {BIG} at (0,0) size 156x23
+                  LayoutText {#text} at (515,236) size 156x23
+                    text run at (515,236) width 156: "the images appear."
+                LayoutText {#text} at (670,238) size 6x21
+                  text run at (670,238) width 6: " "
+                LayoutImage {IMG} at (675.31,238) size 27x90
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,1478.31) size 747x40
+                LayoutText {#text} at (0,0) size 730x39
+                  text run at (0,0) width 730: "In the following paragraph, all images should be aligned with the middle of the default text, whereas any text should"
+                  text run at (0,20) width 381: "be aligned with the text baseline (which is the default value)."
+              LayoutBlockFlow {P} at (4,1534.31) size 747x233
+                LayoutText {#text} at (0,22) size 99x19
+                  text run at (0,22) width 99: "This paragraph "
+                LayoutImage {IMG} at (99,19) size 9x30
+                LayoutText {#text} at (108,22) size 4x19
+                  text run at (108,22) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 357x46
+                  LayoutText {#text} at (112,1) size 357x46
+                    text run at (112,1) width 357: "contains many images"
+                LayoutText {#text} at (469,22) size 4x19
+                  text run at (469,22) width 4: " "
+                LayoutImage {IMG} at (473,9) size 15x50
+                LayoutText {#text} at (488,22) size 122x19
+                  text run at (488,22) width 122: " of varying heights "
+                LayoutImage {IMG} at (610,29) size 3x10
+                LayoutText {#text} at (613,22) size 4x19
+                  text run at (613,22) width 4: " "
+                LayoutInline {SMALL} at (0,0) size 69x19
+                  LayoutText {#text} at (617,22) size 69x19
+                    text run at (617,22) width 69: "and widths"
+                LayoutText {#text} at (686,22) size 4x19
+                  text run at (686,22) width 4: " "
+                LayoutImage {IMG} at (690,24) size 6x20
+                LayoutText {#text} at (696,22) size 732x96
+                  text run at (696,22) width 36: " all of"
+                  text run at (0,99) width 43: "which "
+                LayoutImage {IMG} at (43,78) size 19.50x65
+                LayoutText {#text} at (62,99) size 120x19
+                  text run at (62,99) width 120: " should be aligned "
+                LayoutImage {IMG} at (181.50,93) size 10.50x35
+                LayoutText {#text} at (192,99) size 4x19
+                  text run at (192,99) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 236x36
+                  LayoutText {#text} at (196,86) size 236x36
+                    text run at (196,86) width 236: "with the middle of"
+                LayoutText {#text} at (432,99) size 4x19
+                  text run at (432,99) width 4: " "
+                LayoutImage {IMG} at (436,86) size 15x50
+                LayoutText {#text} at (451,99) size 4x19
+                  text run at (451,99) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 719x104
+                  LayoutText {#text} at (455,93) size 17x27
+                    text run at (455,93) width 17: "a "
+                  LayoutInline {SPAN} at (0,0) size 204x68
+                    LayoutText {#text} at (472,60) size 204x68
+                      text run at (472,60) width 204: "14-point"
+                  LayoutText {#text} at (676,93) size 719x104
+                    text run at (676,93) width 43: " text"
+                    text run at (0,170) width 78: "element"
+                LayoutText {#text} at (78,176) size 4x19
+                  text run at (78,176) width 4: " "
+                LayoutImage {IMG} at (82,163) size 15x50
+                LayoutText {#text} at (97,176) size 4x19
+                  text run at (97,176) width 4: " "
+                LayoutInline {SMALL} at (0,0) size 189x19
+                  LayoutText {#text} at (101,176) size 189x19
+                    text run at (101,176) width 189: "regardless of the line in which"
+                LayoutText {#text} at (290,176) size 4x19
+                  text run at (290,176) width 4: " "
+                LayoutImage {IMG} at (294,180) size 4.50x15
+                LayoutText {#text} at (298,176) size 5x19
+                  text run at (298,176) width 5: " "
+                LayoutInline {BIG} at (0,0) size 156x23
+                  LayoutText {#text} at (302,173) size 156x23
+                    text run at (302,173) width 156: "the images appear."
+                LayoutText {#text} at (457,176) size 5x19
+                  text run at (457,176) width 5: " "
+                LayoutImage {IMG} at (461.31,143) size 27x90
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,1783.31) size 747x40
+                LayoutText {#text} at (0,0) size 733x39
+                  text run at (0,0) width 733: "In the following paragraph, all elements should be aligned with the top of the tallest element on the line, whether that"
+                  text run at (0,20) width 173: "element is an image or not. "
+                  text run at (173,20) width 554: "Each fragment of text has been SPANned appropriately in order to cause this to happen."
+              LayoutBlockFlow {P} at (4,1839.31) size 747x203
+                LayoutInline {SPAN} at (0,0) size 95x19
+                  LayoutText {#text} at (0,0) size 95x19
+                    text run at (0,0) width 95: "This paragraph"
+                LayoutText {#text} at (95,0) size 4x19
+                  text run at (95,0) width 4: " "
+                LayoutImage {IMG} at (99,0) size 3x10
+                LayoutText {#text} at (102,0) size 4x19
+                  text run at (102,0) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 357x46
+                  LayoutText {#text} at (106,1) size 357x46
+                    text run at (106,1) width 357: "contains many images"
+                LayoutText {#text} at (463,0) size 4x19
+                  text run at (463,0) width 4: " "
+                LayoutImage {IMG} at (467,0) size 3x10
+                LayoutText {#text} at (470,0) size 4x19
+                  text run at (470,0) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 87x19
+                  LayoutText {#text} at (474,0) size 87x19
+                    text run at (474,0) width 87: "and some text"
+                LayoutText {#text} at (561,0) size 4x19
+                  text run at (561,0) width 4: " "
+                LayoutImage {IMG} at (565,0) size 3x10
+                LayoutText {#text} at (568,0) size 4x19
+                  text run at (568,0) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 114x19
+                  LayoutText {#text} at (572,0) size 114x19
+                    text run at (572,0) width 114: "of varying heights"
+                LayoutText {#text} at (686,0) size 4x19
+                  text run at (686,0) width 4: " "
+                LayoutImage {IMG} at (690,0) size 3x10
+                LayoutText {#text} at (693,0) size 4x19
+                  text run at (693,0) width 4: " "
+                LayoutInline {BIG} at (0,0) size 728x71
+                  LayoutText {#text} at (697,0) size 728x71
+                    text run at (697,0) width 31: "and"
+                    text run at (0,48) width 57: "widths"
+                LayoutText {#text} at (57,48) size 4x19
+                  text run at (57,48) width 4: " "
+                LayoutImage {IMG} at (61,48) size 6x20
+                LayoutText {#text} at (67,48) size 4x19
+                  text run at (67,48) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 75x19
+                  LayoutText {#text} at (71,48) size 75x19
+                    text run at (71,48) width 75: "all of which"
+                LayoutText {#text} at (146,48) size 4x19
+                  text run at (146,48) width 4: " "
+                LayoutImage {IMG} at (150,48) size 19.50x65
+                LayoutText {#text} at (169,48) size 5x19
+                  text run at (169,48) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 112x19
+                  LayoutText {#text} at (173,48) size 112x19
+                    text run at (173,48) width 112: "should be aligned"
+                LayoutText {#text} at (284,48) size 5x19
+                  text run at (284,48) width 5: " "
+                LayoutImage {IMG} at (288.50,48) size 10.50x35
+                LayoutText {#text} at (299,48) size 4x19
+                  text run at (299,48) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 188x36
+                  LayoutText {#text} at (303,48) size 188x36
+                    text run at (303,48) width 188: "with the top of"
+                LayoutText {#text} at (491,48) size 4x19
+                  text run at (491,48) width 4: " "
+                LayoutImage {IMG} at (495,48) size 15x50
+                LayoutText {#text} at (510,48) size 4x19
+                  text run at (510,48) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 128x19
+                  LayoutText {#text} at (514,48) size 128x19
+                    text run at (514,48) width 128: "the tallest element in"
+                LayoutText {#text} at (642,48) size 4x19
+                  text run at (642,48) width 4: " "
+                LayoutImage {IMG} at (646,48) size 4.50x15
+                LayoutText {#text} at (650,48) size 5x19
+                  text run at (650,48) width 5: " "
+                LayoutInline {BIG} at (0,0) size 743x88
+                  LayoutText {#text} at (654,48) size 743x88
+                    text run at (654,48) width 89: "whichever"
+                    text run at (0,113) width 207: "line the elements appear."
+                LayoutText {#text} at (206,113) size 5x19
+                  text run at (206,113) width 5: " "
+                LayoutImage {IMG} at (210.81,113) size 27x90
+                LayoutText {#text} at (0,0) size 0x0
+layer at (8,345) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,337) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/word_spacing-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/word_spacing-expected.txt
new file mode 100644
index 0000000..94365a1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/text_properties/word_spacing-expected.txt
@@ -0,0 +1,118 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1057
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1057 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1057
+    LayoutBlockFlow {BODY} at (8,8) size 769x1041 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x192
+        LayoutText {#text} at (0,0) size 248x192
+          text run at (0,0) width 216: ".one {word-spacing: 0.3in;}"
+          text run at (216,0) width 0: " "
+          text run at (0,16) width 216: ".two {word-spacing: 0.5cm;}"
+          text run at (216,16) width 0: " "
+          text run at (0,32) width 216: ".three {word-spacing: 5mm;}"
+          text run at (216,32) width 0: " "
+          text run at (0,48) width 208: ".four {word-spacing: 3pt;}"
+          text run at (208,48) width 0: " "
+          text run at (0,64) width 232: ".five {word-spacing: 0.25pc;}"
+          text run at (232,64) width 0: " "
+          text run at (0,80) width 200: ".six {word-spacing: 1em;}"
+          text run at (200,80) width 0: " "
+          text run at (0,96) width 216: ".seven {word-spacing: 1ex;}"
+          text run at (216,96) width 0: " "
+          text run at (0,112) width 216: ".eight {word-spacing: 5px;}"
+          text run at (216,112) width 0: " "
+          text run at (0,128) width 232: ".nine {word-spacing: normal;}"
+          text run at (232,128) width 0: " "
+          text run at (0,144) width 208: ".ten {word-spacing: 300%;}"
+          text run at (208,144) width 0: " "
+          text run at (0,160) width 248: ".eleven {word-spacing: -0.2em;}"
+          text run at (248,160) width 0: " "
+          text run at (0,176) width 0: " "
+      LayoutBlockFlow {P} at (0,259) size 769x20
+        LayoutText {#text} at (0,0) size 709x19
+          text run at (0,0) width 709: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,295) size 769x20
+        LayoutText {#text} at (0,0) size 610x19
+          text run at (0,0) width 610: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,331) size 769x20
+        LayoutText {#text} at (0,0) size 610x19
+          text run at (0,0) width 610: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,367) size 769x20
+        LayoutText {#text} at (0,0) size 461x19
+          text run at (0,0) width 461: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,403) size 769x20
+        LayoutText {#text} at (0,0) size 461x19
+          text run at (0,0) width 461: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,439) size 769x20
+        LayoutText {#text} at (0,0) size 581x19
+          text run at (0,0) width 581: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,475) size 769x20
+        LayoutText {#text} at (0,0) size 491x19
+          text run at (0,0) width 491: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,511) size 769x40
+        LayoutText {#text} at (0,0) size 751x19
+          text run at (0,0) width 751: "This words in this sentence should have extra space between them, but the last few words in the sentence"
+        LayoutInline {SPAN} at (0,0) size 176x19
+          LayoutText {#text} at (0,20) size 176x19
+            text run at (0,20) width 176: "should have normal spacing"
+        LayoutText {#text} at (176,20) size 4x19
+          text run at (176,20) width 4: "."
+      LayoutBlockFlow {P} at (0,567) size 769x20
+        LayoutText {#text} at (0,0) size 667x19
+          text run at (0,0) width 667: "This sentence should have normal word-spacing, since percentage values are not allowed on this property."
+      LayoutBlockFlow {P} at (0,603) size 769x20
+        LayoutText {#text} at (0,0) size 703x19
+          text run at (0,0) width 703: "This words in this sentence should have reduced space between them, since negative values are allowed on this property."
+      LayoutTable {TABLE} at (0,639) size 769x402 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x400
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x372
+            LayoutTableCell {TD} at (0,200) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x372 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 709x19
+                  text run at (0,0) width 709: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,40) size 747x20
+                LayoutText {#text} at (0,0) size 610x19
+                  text run at (0,0) width 610: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,76) size 747x20
+                LayoutText {#text} at (0,0) size 610x19
+                  text run at (0,0) width 610: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,112) size 747x20
+                LayoutText {#text} at (0,0) size 461x19
+                  text run at (0,0) width 461: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,148) size 747x20
+                LayoutText {#text} at (0,0) size 461x19
+                  text run at (0,0) width 461: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,184) size 747x20
+                LayoutText {#text} at (0,0) size 581x19
+                  text run at (0,0) width 581: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,220) size 747x20
+                LayoutText {#text} at (0,0) size 491x19
+                  text run at (0,0) width 491: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,256) size 747x40
+                LayoutText {#text} at (0,0) size 688x39
+                  text run at (0,0) width 688: "This words in this sentence should have extra space between them, but the last few words in the"
+                  text run at (0,20) width 63: "sentence "
+                LayoutInline {SPAN} at (0,0) size 176x19
+                  LayoutText {#text} at (63,20) size 176x19
+                    text run at (63,20) width 176: "should have normal spacing"
+                LayoutText {#text} at (239,20) size 4x19
+                  text run at (239,20) width 4: "."
+              LayoutBlockFlow {P} at (4,312) size 747x20
+                LayoutText {#text} at (0,0) size 667x19
+                  text run at (0,0) width 667: "This sentence should have normal word-spacing, since percentage values are not allowed on this property."
+              LayoutBlockFlow {P} at (4,348) size 747x20
+                LayoutText {#text} at (0,0) size 703x19
+                  text run at (0,0) width 703: "This words in this sentence should have reduced space between them, since negative values are allowed on this property."
+layer at (8,249) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,241) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/units/color_units-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/units/color_units-expected.txt
new file mode 100644
index 0000000..ac0a5e34
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/units/color_units-expected.txt
@@ -0,0 +1,239 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1805
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1805 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1805
+    LayoutBlockFlow {BODY} at (8,8) size 769x1789 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x192
+        LayoutText {#text} at (0,0) size 288x192
+          text run at (0,0) width 160: "BODY {color: black;}"
+          text run at (160,0) width 0: " "
+          text run at (0,16) width 152: ".one {color: #080;}"
+          text run at (152,16) width 0: " "
+          text run at (0,32) width 176: ".two {color: #008000;}"
+          text run at (176,32) width 0: " "
+          text run at (0,48) width 232: ".three {color: rgb(0,128,0);}"
+          text run at (232,48) width 0: " "
+          text run at (0,64) width 240: ".four {color: rgb(0%,50%,0%);}"
+          text run at (240,64) width 0: " "
+          text run at (0,80) width 288: ".five {color: rgb(0.0%,50.0%,0.0%);}"
+          text run at (288,80) width 0: " "
+          text run at (0,96) width 160: ".six {color: green;}"
+          text run at (160,96) width 0: " "
+          text run at (0,112) width 232: ".seven {color: invalidValue;}"
+          text run at (232,112) width 0: " "
+          text run at (0,128) width 256: ".eight {color: rgb(0,128,1280);}"
+          text run at (256,128) width 0: " "
+          text run at (0,144) width 240: ".nine {color: rgb(0,128,255);}"
+          text run at (240,144) width 0: " "
+          text run at (0,160) width 264: ".ten {color: rgb(50%,-500%,60%);}"
+          text run at (264,160) width 0: " "
+          text run at (0,176) width 264: ".eleven {color: rgb(50%,0%,60%);}"
+          text run at (264,176) width 0: " "
+      LayoutBlockFlow {P} at (0,259) size 769x20
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This sentence should be black."
+      LayoutBlockFlow {P} at (0,295) size 769x20 [color=#008800]
+        LayoutText {#text} at (0,0) size 506x19
+          text run at (0,0) width 506: "This sentence should be green, although slightly different from those that follow."
+      LayoutBlockFlow {P} at (0,331) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,367) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,403) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,439) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,475) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,511) size 769x20
+        LayoutText {#text} at (0,0) size 407x19
+          text run at (0,0) width 407: "This sentence should be black, because the value given for class "
+        LayoutInline {CODE} at (0,0) size 48x16
+          LayoutText {#text} at (407,3) size 48x16
+            text run at (407,3) width 48: ".seven"
+        LayoutText {#text} at (455,0) size 65x19
+          text run at (455,0) width 65: " is invalid."
+      LayoutBlockFlow {P} at (0,547) size 769x40 [color=#0080FF]
+        LayoutText {#text} at (0,0) size 725x39
+          text run at (0,0) width 725: "This sentence should be a shade of blue-green which, on a typical RGB computer display, exactly matches the next"
+          text run at (0,20) width 67: "paragraph."
+      LayoutBlockFlow {P} at (0,603) size 769x40 [color=#0080FF]
+        LayoutText {#text} at (0,0) size 752x39
+          text run at (0,0) width 752: "This sentence should be a shade of blue-green which, on a typical RGB computer display, exactly matches the previous"
+          text run at (0,20) width 67: "paragraph."
+      LayoutBlockFlow {P} at (0,659) size 769x20 [color=#800099]
+        LayoutText {#text} at (0,0) size 769x19
+          text run at (0,0) width 769: "This sentence should be a shade of purple which, on a typical RGB computer display, exactly matches the next paragraph."
+      LayoutBlockFlow {P} at (0,695) size 769x40 [color=#800099]
+        LayoutText {#text} at (0,0) size 725x39
+          text run at (0,0) width 725: "This sentence should be a shade of purple which, on a typical RGB computer display, exactly matches the previous"
+          text run at (0,20) width 67: "paragraph."
+      LayoutBlockFlow {P} at (0,751) size 769x20
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This sentence should be black."
+      LayoutBlockFlow {P} at (0,787) size 769x20 [color=#008800]
+        LayoutText {#text} at (0,0) size 399x19
+          text run at (0,0) width 399: "This sentence should be a slightly different green, and used the "
+        LayoutInline {TT} at (0,0) size 41x16
+          LayoutText {#text} at (398,3) size 41x16
+            text run at (398,3) width 41: "style"
+        LayoutText {#text} at (438,0) size 60x19
+          text run at (438,0) width 60: " attribute."
+      LayoutBlockFlow {P} at (0,823) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 281x19
+          text run at (0,0) width 281: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x16
+          LayoutText {#text} at (281,3) size 40x16
+            text run at (281,3) width 40: "style"
+        LayoutText {#text} at (321,0) size 59x19
+          text run at (321,0) width 59: " attribute."
+      LayoutBlockFlow {P} at (0,859) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 281x19
+          text run at (0,0) width 281: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x16
+          LayoutText {#text} at (281,3) size 40x16
+            text run at (281,3) width 40: "style"
+        LayoutText {#text} at (321,0) size 59x19
+          text run at (321,0) width 59: " attribute."
+      LayoutBlockFlow {P} at (0,895) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 281x19
+          text run at (0,0) width 281: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x16
+          LayoutText {#text} at (281,3) size 40x16
+            text run at (281,3) width 40: "style"
+        LayoutText {#text} at (321,0) size 59x19
+          text run at (321,0) width 59: " attribute."
+      LayoutBlockFlow {P} at (0,931) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 281x19
+          text run at (0,0) width 281: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x16
+          LayoutText {#text} at (281,3) size 40x16
+            text run at (281,3) width 40: "style"
+        LayoutText {#text} at (321,0) size 59x19
+          text run at (321,0) width 59: " attribute."
+      LayoutBlockFlow {P} at (0,967) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 281x19
+          text run at (0,0) width 281: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x16
+          LayoutText {#text} at (281,3) size 40x16
+            text run at (281,3) width 40: "style"
+        LayoutText {#text} at (321,0) size 59x19
+          text run at (321,0) width 59: " attribute."
+      LayoutTable {TABLE} at (0,1003) size 769x786 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x784
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x756
+            LayoutTableCell {TD} at (0,392) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x756 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This sentence should be black."
+              LayoutBlockFlow {P} at (4,40) size 747x20 [color=#008800]
+                LayoutText {#text} at (0,0) size 506x19
+                  text run at (0,0) width 506: "This sentence should be green, although slightly different from those that follow."
+              LayoutBlockFlow {P} at (4,76) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,112) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,148) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,184) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,220) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,256) size 747x20
+                LayoutText {#text} at (0,0) size 407x19
+                  text run at (0,0) width 407: "This sentence should be black, because the value given for class "
+                LayoutInline {CODE} at (0,0) size 48x16
+                  LayoutText {#text} at (407,3) size 48x16
+                    text run at (407,3) width 48: ".seven"
+                LayoutText {#text} at (455,0) size 65x19
+                  text run at (455,0) width 65: " is invalid."
+              LayoutBlockFlow {P} at (4,292) size 747x40 [color=#0080FF]
+                LayoutText {#text} at (0,0) size 725x39
+                  text run at (0,0) width 725: "This sentence should be a shade of blue-green which, on a typical RGB computer display, exactly matches the next"
+                  text run at (0,20) width 67: "paragraph."
+              LayoutBlockFlow {P} at (4,348) size 747x40 [color=#0080FF]
+                LayoutText {#text} at (0,0) size 694x39
+                  text run at (0,0) width 694: "This sentence should be a shade of blue-green which, on a typical RGB computer display, exactly matches the"
+                  text run at (0,20) width 125: "previous paragraph."
+              LayoutBlockFlow {P} at (4,404) size 747x40 [color=#800099]
+                LayoutText {#text} at (0,0) size 698x39
+                  text run at (0,0) width 698: "This sentence should be a shade of purple which, on a typical RGB computer display, exactly matches the next"
+                  text run at (0,20) width 67: "paragraph."
+              LayoutBlockFlow {P} at (4,460) size 747x40 [color=#800099]
+                LayoutText {#text} at (0,0) size 725x39
+                  text run at (0,0) width 725: "This sentence should be a shade of purple which, on a typical RGB computer display, exactly matches the previous"
+                  text run at (0,20) width 67: "paragraph."
+              LayoutBlockFlow {P} at (4,516) size 747x20
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This sentence should be black."
+              LayoutBlockFlow {P} at (4,552) size 747x20 [color=#008800]
+                LayoutText {#text} at (0,0) size 399x19
+                  text run at (0,0) width 399: "This sentence should be a slightly different green, and used the "
+                LayoutInline {TT} at (0,0) size 41x16
+                  LayoutText {#text} at (398,3) size 41x16
+                    text run at (398,3) width 41: "style"
+                LayoutText {#text} at (438,0) size 60x19
+                  text run at (438,0) width 60: " attribute."
+              LayoutBlockFlow {P} at (4,588) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 281x19
+                  text run at (0,0) width 281: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x16
+                  LayoutText {#text} at (281,3) size 40x16
+                    text run at (281,3) width 40: "style"
+                LayoutText {#text} at (321,0) size 59x19
+                  text run at (321,0) width 59: " attribute."
+              LayoutBlockFlow {P} at (4,624) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 281x19
+                  text run at (0,0) width 281: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x16
+                  LayoutText {#text} at (281,3) size 40x16
+                    text run at (281,3) width 40: "style"
+                LayoutText {#text} at (321,0) size 59x19
+                  text run at (321,0) width 59: " attribute."
+              LayoutBlockFlow {P} at (4,660) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 281x19
+                  text run at (0,0) width 281: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x16
+                  LayoutText {#text} at (281,3) size 40x16
+                    text run at (281,3) width 40: "style"
+                LayoutText {#text} at (321,0) size 59x19
+                  text run at (321,0) width 59: " attribute."
+              LayoutBlockFlow {P} at (4,696) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 281x19
+                  text run at (0,0) width 281: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x16
+                  LayoutText {#text} at (281,3) size 40x16
+                    text run at (281,3) width 40: "style"
+                LayoutText {#text} at (321,0) size 59x19
+                  text run at (321,0) width 59: " attribute."
+              LayoutBlockFlow {P} at (4,732) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 281x19
+                  text run at (0,0) width 281: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x16
+                  LayoutText {#text} at (281,3) size 40x16
+                    text run at (281,3) width 40: "style"
+                LayoutText {#text} at (321,0) size 59x19
+                  text run at (321,0) width 59: " attribute."
+layer at (8,249) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,241) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/units/length_units-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/units/length_units-expected.txt
new file mode 100644
index 0000000..a8965ee
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/units/length_units-expected.txt
@@ -0,0 +1,173 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1673
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1673 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1673
+    LayoutBlockFlow {BODY} at (8,8) size 769x1657 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x176
+        LayoutText {#text} at (0,0) size 624x176
+          text run at (0,0) width 184: ".zero {margin-left: 0;}"
+          text run at (184,0) width 0: " "
+          text run at (0,16) width 192: ".one {margin-left: 3em;}"
+          text run at (192,16) width 0: " "
+          text run at (0,32) width 192: ".two {margin-left: 3ex;}"
+          text run at (192,32) width 0: " "
+          text run at (0,48) width 216: ".three {margin-left: 36px;}"
+          text run at (216,48) width 0: " "
+          text run at (0,64) width 216: ".four {margin-left: 0.5in;}"
+          text run at (216,64) width 0: " "
+          text run at (0,80) width 224: ".five {margin-left: 1.27cm;}"
+          text run at (224,80) width 0: " "
+          text run at (0,96) width 216: ".six {margin-left: 12.7mm;}"
+          text run at (216,96) width 0: " "
+          text run at (0,112) width 216: ".seven {margin-left: 36pt;}"
+          text run at (216,112) width 0: " "
+          text run at (0,128) width 208: ".eight {margin-left: 3pc;}"
+          text run at (208,128) width 0: " "
+          text run at (0,144) width 208: ".nine {margin-left: +3pc;}"
+          text run at (208,144) width 0: " "
+          text run at (0,160) width 624: ".ten {font-size: 40px; border-left: 1ex solid purple; background-color: aqua;}"
+          text run at (624,160) width 0: " "
+      LayoutBlockFlow {P} at (0,243) size 769x40
+        LayoutText {#text} at (0,0) size 761x39
+          text run at (0,0) width 761: "This paragraph has no left margin. The following paragraphs have all been given a left margin and their left (outer) edges"
+          text run at (0,20) width 347: "should therefore be appropriately shifted to the right of "
+        LayoutInline {EM} at (0,0) size 22x19
+          LayoutText {#text} at (347,20) size 22x19
+            text run at (347,20) width 22: "this"
+        LayoutText {#text} at (369,20) size 138x19
+          text run at (369,20) width 138: " paragraph's left edge."
+      LayoutBlockFlow {P} at (48,299) size 721x20
+        LayoutText {#text} at (0,0) size 310x19
+          text run at (0,0) width 310: "This paragraph should have a left margin of 3em."
+      LayoutBlockFlow {P} at (21,335) size 748x20
+        LayoutText {#text} at (0,0) size 306x19
+          text run at (0,0) width 306: "This paragraph should have a left margin of 3ex."
+      LayoutBlockFlow {P} at (36,371) size 733x20
+        LayoutText {#text} at (0,0) size 340x19
+          text run at (0,0) width 340: "This paragraph should have a left margin of 36 pixels."
+      LayoutBlockFlow {P} at (48,407) size 721x20
+        LayoutText {#text} at (0,0) size 357x19
+          text run at (0,0) width 357: "This paragraph should have a left margin of half an inch."
+      LayoutBlockFlow {P} at (48,443) size 721x20
+        LayoutText {#text} at (0,0) size 330x19
+          text run at (0,0) width 330: "This paragraph should have a left margin of 1.27cm."
+      LayoutBlockFlow {P} at (48,479) size 721x20
+        LayoutText {#text} at (0,0) size 335x19
+          text run at (0,0) width 335: "This paragraph should have a left margin of 12.7mm."
+      LayoutBlockFlow {P} at (48,515) size 721x20
+        LayoutText {#text} at (0,0) size 341x19
+          text run at (0,0) width 341: "This paragraph should have a left margin of 36 points."
+      LayoutBlockFlow {P} at (48,551) size 721x20
+        LayoutText {#text} at (0,0) size 327x19
+          text run at (0,0) width 327: "This paragraph should have a left margin of 3 picas."
+      LayoutBlockFlow {P} at (48,587) size 721x20
+        LayoutText {#text} at (0,0) size 591x19
+          text run at (0,0) width 591: "This paragraph should have a left margin of 3 picas (the plus sign should make no difference)."
+      LayoutBlockFlow {P} at (0,647) size 769x240 [bgcolor=#00FFFF] [border: none (18px solid #800080)]
+        LayoutText {#text} at (18,1) size 310x46
+          text run at (18,1) width 310: "This element has a "
+        LayoutInline {CODE} at (0,0) size 216x42
+          LayoutText {#text} at (328,6) size 216x42
+            text run at (328,6) width 216: "font-size"
+        LayoutText {#text} at (544,1) size 53x46
+          text run at (544,1) width 53: " of "
+        LayoutInline {CODE} at (0,0) size 96x42
+          LayoutText {#text} at (597,6) size 96x42
+            text run at (597,6) width 96: "40px"
+        LayoutText {#text} at (693,1) size 743x94
+          text run at (693,1) width 68: " and"
+          text run at (18,49) width 28: "a "
+        LayoutInline {CODE} at (0,0) size 264x42
+          LayoutText {#text} at (46,54) size 264x42
+            text run at (46,54) width 264: "border-left"
+        LayoutText {#text} at (310,49) size 53x46
+          text run at (310,49) width 53: " of "
+        LayoutInline {CODE} at (0,0) size 384x42
+          LayoutText {#text} at (363,54) size 384x42
+            text run at (363,54) width 384: "1ex solid purple"
+        LayoutText {#text} at (747,49) size 739x190
+          text run at (747,49) width 10: "."
+          text run at (18,97) width 673: "This should make the left border the same"
+          text run at (18,145) width 711: "number of pixels as the lower-case 'x' in this"
+          text run at (18,193) width 611: "element's font, as well as solid purple."
+      LayoutTable {TABLE} at (0,927) size 769x730 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x728
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x700
+            LayoutTableCell {TD} at (0,364) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x700 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x40
+                LayoutText {#text} at (0,0) size 721x39
+                  text run at (0,0) width 721: "This paragraph has no left margin. The following paragraphs have all been given a left margin and their left (outer)"
+                  text run at (0,20) width 387: "edges should therefore be appropriately shifted to the right of "
+                LayoutInline {EM} at (0,0) size 22x19
+                  LayoutText {#text} at (387,20) size 22x19
+                    text run at (387,20) width 22: "this"
+                LayoutText {#text} at (409,20) size 138x19
+                  text run at (409,20) width 138: " paragraph's left edge."
+              LayoutBlockFlow {P} at (52,60) size 699x20
+                LayoutText {#text} at (0,0) size 310x19
+                  text run at (0,0) width 310: "This paragraph should have a left margin of 3em."
+              LayoutBlockFlow {P} at (25,96) size 726x20
+                LayoutText {#text} at (0,0) size 306x19
+                  text run at (0,0) width 306: "This paragraph should have a left margin of 3ex."
+              LayoutBlockFlow {P} at (40,132) size 711x20
+                LayoutText {#text} at (0,0) size 340x19
+                  text run at (0,0) width 340: "This paragraph should have a left margin of 36 pixels."
+              LayoutBlockFlow {P} at (52,168) size 699x20
+                LayoutText {#text} at (0,0) size 357x19
+                  text run at (0,0) width 357: "This paragraph should have a left margin of half an inch."
+              LayoutBlockFlow {P} at (52,204) size 699x20
+                LayoutText {#text} at (0,0) size 330x19
+                  text run at (0,0) width 330: "This paragraph should have a left margin of 1.27cm."
+              LayoutBlockFlow {P} at (52,240) size 699x20
+                LayoutText {#text} at (0,0) size 335x19
+                  text run at (0,0) width 335: "This paragraph should have a left margin of 12.7mm."
+              LayoutBlockFlow {P} at (52,276) size 699x20
+                LayoutText {#text} at (0,0) size 341x19
+                  text run at (0,0) width 341: "This paragraph should have a left margin of 36 points."
+              LayoutBlockFlow {P} at (52,312) size 699x20
+                LayoutText {#text} at (0,0) size 327x19
+                  text run at (0,0) width 327: "This paragraph should have a left margin of 3 picas."
+              LayoutBlockFlow {P} at (52,348) size 699x20
+                LayoutText {#text} at (0,0) size 591x19
+                  text run at (0,0) width 591: "This paragraph should have a left margin of 3 picas (the plus sign should make no difference)."
+              LayoutBlockFlow {P} at (4,408) size 747x288 [bgcolor=#00FFFF] [border: none (18px solid #800080)]
+                LayoutText {#text} at (18,1) size 310x46
+                  text run at (18,1) width 310: "This element has a "
+                LayoutInline {CODE} at (0,0) size 216x42
+                  LayoutText {#text} at (328,6) size 216x42
+                    text run at (328,6) width 216: "font-size"
+                LayoutText {#text} at (544,1) size 53x46
+                  text run at (544,1) width 53: " of "
+                LayoutInline {CODE} at (0,0) size 96x42
+                  LayoutText {#text} at (597,6) size 96x42
+                    text run at (597,6) width 96: "40px"
+                LayoutText {#text} at (18,49) size 96x46
+                  text run at (18,49) width 96: "and a "
+                LayoutInline {CODE} at (0,0) size 264x42
+                  LayoutText {#text} at (114,54) size 264x42
+                    text run at (114,54) width 264: "border-left"
+                LayoutText {#text} at (378,49) size 53x46
+                  text run at (378,49) width 53: " of "
+                LayoutInline {CODE} at (0,0) size 629x90
+                  LayoutText {#text} at (431,54) size 629x90
+                    text run at (431,54) width 216: "1ex solid"
+                    text run at (18,102) width 144: "purple"
+                LayoutText {#text} at (162,97) size 710x190
+                  text run at (162,97) width 20: ". "
+                  text run at (182,97) width 521: "This should make the left border"
+                  text run at (18,145) width 710: "the same number of pixels as the lower-case"
+                  text run at (18,193) width 642: "'x' in this element's font, as well as solid"
+                  text run at (18,241) width 112: "purple."
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/units/percentage_units-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/units/percentage_units-expected.txt
new file mode 100644
index 0000000..c629852
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/units/percentage_units-expected.txt
@@ -0,0 +1,67 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 601
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x601 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x601
+    LayoutBlockFlow {BODY} at (8,8) size 769x585 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x80
+        LayoutText {#text} at (0,0) size 504x80
+          text run at (0,0) width 224: ".zero { background: yellow }"
+          text run at (224,0) width 0: " "
+          text run at (0,16) width 504: ".one { margin-left: 25%; margin-right: 25%; background: white }"
+          text run at (504,16) width 0: " "
+          text run at (0,32) width 496: ".two { margin-left: 50%; margin-right: 0%; background: white }"
+          text run at (496,32) width 0: " "
+          text run at (0,48) width 208: ".three {margin-left: 25%;}"
+          text run at (208,48) width 0: " "
+          text run at (0,64) width 0: " "
+      LayoutBlockFlow {DIV} at (0,147) size 769x136 [bgcolor=#FFFF00]
+        LayoutBlockFlow {DIV} at (192.25,0) size 384.50x60 [bgcolor=#FFFFFF]
+          LayoutBlockFlow {P} at (0,0) size 384.50x60
+            LayoutText {#text} at (0,0) size 326x59
+              text run at (0,0) width 326: "This paragraph should be centered within its yellow"
+              text run at (0,20) width 323: "containing block and its width should be half of the"
+              text run at (0,40) width 109: "containing block."
+        LayoutBlockFlow {DIV} at (384.50,76) size 384.50x60 [bgcolor=#FFFFFF]
+          LayoutBlockFlow {P} at (0,0) size 384.50x60
+            LayoutText {#text} at (0,0) size 353x59
+              text run at (0,0) width 353: "This paragraph should be right-aligned within its yellow"
+              text run at (0,20) width 323: "containing block and its width should be half of the"
+              text run at (0,40) width 109: "containing block."
+      LayoutBlockFlow {P} at (192.25,299) size 576.75x40
+        LayoutText {#text} at (0,0) size 549x39
+          text run at (0,0) width 549: "This paragraph should have a left margin of 25% the width of its parent element, which"
+          text run at (0,20) width 356: "should require some extra text in order to test effectively."
+      LayoutTable {TABLE} at (0,355) size 769x230 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x228
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x200
+            LayoutTableCell {TD} at (0,114) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x200 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {DIV} at (4,4) size 747x136 [bgcolor=#FFFF00]
+                LayoutBlockFlow {DIV} at (186.75,0) size 373.50x60 [bgcolor=#FFFFFF]
+                  LayoutBlockFlow {P} at (0,0) size 373.50x60
+                    LayoutText {#text} at (0,0) size 326x59
+                      text run at (0,0) width 326: "This paragraph should be centered within its yellow"
+                      text run at (0,20) width 323: "containing block and its width should be half of the"
+                      text run at (0,40) width 109: "containing block."
+                LayoutBlockFlow {DIV} at (373.50,76) size 373.50x60 [bgcolor=#FFFFFF]
+                  LayoutBlockFlow {P} at (0,0) size 373.50x60
+                    LayoutText {#text} at (0,0) size 353x59
+                      text run at (0,0) width 353: "This paragraph should be right-aligned within its yellow"
+                      text run at (0,20) width 323: "containing block and its width should be half of the"
+                      text run at (0,40) width 109: "containing block."
+              LayoutBlockFlow {P} at (190.75,156) size 560.25x40
+                LayoutText {#text} at (0,0) size 549x39
+                  text run at (0,0) width 549: "This paragraph should have a left margin of 25% the width of its parent element, which"
+                  text run at (0,20) width 356: "should require some extra text in order to test effectively."
+layer at (8,137) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,129) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/units/urls-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/units/urls-expected.txt
new file mode 100644
index 0000000..1c05dc9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/mojo-loading/css1/units/urls-expected.txt
@@ -0,0 +1,61 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 355x19
+          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 648x64
+          text run at (0,0) width 648: "<LINK rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"../resources/bg.gif\">"
+          text run at (648,0) width 0: " "
+          text run at (0,16) width 296: "@import url(../resources/sec642.css);"
+          text run at (296,16) width 0: " "
+          text run at (0,32) width 352: "BODY {background: url(../resources/bg.gif);}"
+          text run at (352,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 784x20
+        LayoutText {#text} at (0,0) size 386x19
+          text run at (0,0) width 386: "This page should have a green grid pattern as its background."
+      LayoutBlockFlow {P} at (0,167) size 784x60 [bgcolor=#FFFFFF]
+        LayoutText {#text} at (0,0) size 779x59
+          text run at (0,0) width 620: "This paragraph should have a white background, but NO image should appear in the background. "
+          text run at (620,0) width 159: "If an image, in this case a"
+          text run at (0,20) width 756: "red square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in relation to the"
+          text run at (0,40) width 274: "document's URL, not the stylesheet's URL."
+      LayoutBlockFlow {P} at (0,243) size 784x60 [bgcolor=#FFFFFF]
+        LayoutText {#text} at (0,0) size 779x59
+          text run at (0,0) width 620: "This paragraph should have a white background, but NO image should appear in the background. "
+          text run at (620,0) width 159: "If an image, in this case a"
+          text run at (0,20) width 756: "red square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in relation to the"
+          text run at (0,40) width 274: "document's URL, not the stylesheet's URL."
+      LayoutTable {TABLE} at (0,319) size 784x210 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x208
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x19
+                LayoutText {#text} at (4,4) size 161x19
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x180
+            LayoutTableCell {TD} at (0,104) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x180 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x20
+                LayoutText {#text} at (0,0) size 386x19
+                  text run at (0,0) width 386: "This page should have a green grid pattern as its background."
+              LayoutBlockFlow {P} at (4,40) size 762x60 [bgcolor=#FFFFFF]
+                LayoutText {#text} at (0,0) size 759x59
+                  text run at (0,0) width 620: "This paragraph should have a white background, but NO image should appear in the background. "
+                  text run at (620,0) width 117: "If an image, in this"
+                  text run at (0,20) width 759: "case a red square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in relation"
+                  text run at (0,40) width 313: "to the document's URL, not the stylesheet's URL."
+              LayoutBlockFlow {P} at (4,116) size 762x60 [bgcolor=#FFFFFF]
+                LayoutText {#text} at (0,0) size 759x59
+                  text run at (0,0) width 620: "This paragraph should have a white background, but NO image should appear in the background. "
+                  text run at (620,0) width 117: "If an image, in this"
+                  text run at (0,20) width 759: "case a red square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in relation"
+                  text run at (0,40) width 313: "to the document's URL, not the stylesheet's URL."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt
index 2de4fbb..01a0487 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 606x20
         LayoutText {#text} at (0,0) size 606x19
           text run at (0,0) width 606: "crbug.com/303728: Header Line is absolute positioned so should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 606x2 [border: (1px inset #EEEEEE)]
+layer at (8,28) size 606x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 606x2 [border: (1px inset #EEEEEE)]
 layer at (8,761) size 601x38
   LayoutBlockFlow (positioned) {DIV} at (8,761) size 601x38
     LayoutBlockFlow {DIV} at (0,8) size 601x30
-      LayoutBlockFlow {HR} at (0,0) size 601x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 601x20
         LayoutText {#text} at (0,0) size 601x19
           text run at (0,0) width 601: "crbug.com/303728: Footer Line is absolute positioned so should not be repeated on every page."
+layer at (8,769) size 601x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 601x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
index b1e3497..5753a61 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 667x20
         LayoutText {#text} at (0,0) size 667x19
           text run at (0,0) width 667: "crbug.com/303728: Fixed-position header Line is statically positioned and will be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 667x2 [border: (1px inset #EEEEEE)]
+layer at (8,44) size 667x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 667x2 [border: (1px inset #EEEEEE)]
 layer at (8,2685) size 613x38 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) {DIV} at (8,2685) size 613x38
     LayoutBlockFlow {DIV} at (0,8) size 613x30
-      LayoutBlockFlow {HR} at (0,0) size 613x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 613x20
         LayoutText {#text} at (0,0) size 613x19
           text run at (0,0) width 613: "crbug.com/303728: Footer Line is statically positioned and should not be repeated on every page."
+layer at (8,2693) size 613x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 613x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
index 81b9030b..f001a86 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
@@ -11,7 +11,8 @@
         LayoutText {#text} at (0,0) size 466x39
           text run at (0,0) width 466: "crbug.com/303728: Header Line should be repeated on every page except"
           text run at (0,20) width 377: "where it's clipped by the absolute element on pages 3 and 4."
-      LayoutBlockFlow {HR} at (0,48) size 500x2 [border: (1px inset #EEEEEE)]
+layer at (5,53) size 500x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,48) size 500x2 [border: (1px inset #EEEEEE)]
 layer at (0,1000) size 600x2000 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) zI: 2 {DIV} at (0,1000) size 600x2000 [bgcolor=#000000]
     LayoutText zI: 2 {#text} at (0,0) size 57x19
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt
index 978427f..36751ff 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 516x20
         LayoutText {#text} at (0,0) size 516x19
           text run at (0,0) width 516: "crbug.com/303728: Fixed-position header Line should be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 516x2 [border: (1px inset #EEEEEE)]
+layer at (8,28) size 516x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 516x2 [border: (1px inset #EEEEEE)]
 layer at (8,761) size 420x38
   LayoutBlockFlow (positioned) {DIV} at (8,761) size 420x38
     LayoutBlockFlow {DIV} at (0,8) size 420x30
-      LayoutBlockFlow {HR} at (0,0) size 420x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 420x20
         LayoutText {#text} at (0,0) size 420x19
           text run at (0,0) width 420: "crbug.com/303728: Footer Line should be repeated on every page."
+layer at (8,769) size 420x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 420x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
index ff752a5..fc91a85 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
@@ -233,13 +233,15 @@
       LayoutBlockFlow (anonymous) at (0,0) size 449x20
         LayoutText {#text} at (0,0) size 449x19
           text run at (0,0) width 449: "crbug.com/303728: Header Line should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 449x2 [border: (1px inset #EEEEEE)]
+layer at (8,44) size 449x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 449x2 [border: (1px inset #EEEEEE)]
 layer at (8,2685) size 1030x0
   LayoutBlockFlow {DIV} at (0,2669) size 1030x0
 layer at (8,2647) size 444x38 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) {DIV} at (0,-38) size 444x38
     LayoutBlockFlow {DIV} at (0,8) size 444x30
-      LayoutBlockFlow {HR} at (0,0) size 444x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 444x20
         LayoutText {#text} at (0,0) size 444x19
           text run at (0,0) width 444: "crbug.com/303728: Footer Line should not be repeated on every page."
+layer at (8,2655) size 444x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 444x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
index 2f703cab..fb731ac 100644
--- a/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 2000x20
         LayoutText {#text} at (0,0) size 696x19
           text run at (0,0) width 696: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
-      LayoutBlockFlow {HR} at (0,28) size 2000x2 [border: (1px inset #EEEEEE)]
+layer at (13,33) size 2000x2 backgroundClip at (13,33) size 1033x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 2000x2 [border: (1px inset #EEEEEE)]
 layer at (8,751) size 2010x48 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) {DIV} at (8,751) size 2010x48 [border: (5px solid #000000)]
     LayoutBlockFlow {DIV} at (5,13) size 2000x30
-      LayoutBlockFlow {HR} at (0,0) size 2000x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 2000x20
         LayoutText {#text} at (0,0) size 696x19
           text run at (0,0) width 696: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
+layer at (13,764) size 2000x2 backgroundClip at (13,764) size 1033x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2000x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.10/editing/pasteboard/drop-text-without-selection-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.10/editing/pasteboard/drop-text-without-selection-expected.txt
index c73d318..e00bdca 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-mac10.10/editing/pasteboard/drop-text-without-selection-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.10/editing/pasteboard/drop-text-without-selection-expected.txt
@@ -23,7 +23,6 @@
         LayoutText {#text} at (0,0) size 667x18
           text run at (0,0) width 487: "The text field should accept drag-and-dropped text, such as the link, even if "
           text run at (486,0) width 181: "no text is currently selected."
-      LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,96) size 784x19
         LayoutTextControl {INPUT} at (0,0) size 131x19 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
         LayoutText {#text} at (131,0) size 4x18
@@ -33,6 +32,8 @@
             text run at (135,0) width 166: "drop me into the text field"
         LayoutText {#text} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,94) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (11,107) size 125x13
   LayoutBlockFlow {DIV} at (3,3) size 125x13
     LayoutText {#text} at (0,0) size 106x13
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/input-value-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/input-value-expected.txt
index 44d47bc..e59f9ac8 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/input-value-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/input-value-expected.txt
@@ -10,7 +10,6 @@
       LayoutBlockFlow {P} at (0,52) size 784x18
         LayoutText {#text} at (0,0) size 725x18
           text run at (0,0) width 725: "Results that match Gecko are like WinIE, but with \"before\" for the attribute in the first two rows and the last row."
-      LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {FORM} at (0,96) size 784x338
         LayoutTable {TABLE} at (0,0) size 742x338
           LayoutTableSection {THEAD} at (0,0) size 742x24
@@ -204,6 +203,8 @@
               LayoutTableCell {TD} at (677,292) size 63x20 [r=13 c=3 rs=1 cs=1]
                 LayoutText {#text} at (1,1) size 41x18
                   text run at (1,1) width 41: "before"
+layer at (8,94) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (408,132) size 125x13
   LayoutBlockFlow {DIV} at (3,3) size 125x13
     LayoutText {#text} at (0,0) size 32x13
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/select/menulist-appearance-rtl-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/select/menulist-appearance-rtl-expected.txt
index 94a42d75..f9e5ae1 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/select/menulist-appearance-rtl-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/select/menulist-appearance-rtl-expected.txt
@@ -53,7 +53,6 @@
             LayoutText {#text} at (0,1) size 82x18
               text run at (0,1) width 23: "abc"
               text run at (22,1) width 60 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
-      LayoutBlockFlow {HR} at (0,236) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,246) size 784x55
         LayoutBlockFlow (anonymous) at (0,0) size 784x18
           LayoutText {#text} at (0,0) size 632x18
@@ -67,10 +66,13 @@
               LayoutText (anonymous) at (8,2) size 84x13
                 text run at (8,2) width 84 RTL: "\x{627}\x{644}\x{627}\x{642}\x{62A}\x{631}\x{627}\x{62D}\x{627}\x{62A} / \x{627}\x{644}\x{634}\x{643}\x{627}\x{648}\x{64A}"
           LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,309) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,327) size 784x18
         LayoutText {#text} at (0,0) size 709x18
           text run at (0,0) width 709: "Verify that the alignment and writing direction of each selected item matches the one below the pop-up button."
+layer at (8,252) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,236) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,325) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,309) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,377) size 784x164
   LayoutBlockFlow {DIV} at (0,361) size 784x164
     LayoutMultiColumnSet (anonymous) at (0,0) size 784x164
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.11/editing/pasteboard/drop-text-without-selection-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.11/editing/pasteboard/drop-text-without-selection-expected.txt
index aad654b..d6b8a95 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-mac10.11/editing/pasteboard/drop-text-without-selection-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.11/editing/pasteboard/drop-text-without-selection-expected.txt
@@ -23,7 +23,6 @@
         LayoutText {#text} at (0,0) size 667x18
           text run at (0,0) width 487: "The text field should accept drag-and-dropped text, such as the link, even if "
           text run at (486,0) width 181: "no text is currently selected."
-      LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,96) size 784x19
         LayoutTextControl {INPUT} at (0,0) size 131x19 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
         LayoutText {#text} at (131,0) size 4x18
@@ -33,6 +32,8 @@
             text run at (135,0) width 166: "drop me into the text field"
         LayoutText {#text} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,94) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (11,107) size 125x13
   LayoutBlockFlow {DIV} at (3,3) size 125x13
     LayoutText {#text} at (0,0) size 109x13
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.11/fast/forms/input-value-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.11/fast/forms/input-value-expected.txt
index b9b33ac..72b902d 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-mac10.11/fast/forms/input-value-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.11/fast/forms/input-value-expected.txt
@@ -10,7 +10,6 @@
       LayoutBlockFlow {P} at (0,52) size 784x18
         LayoutText {#text} at (0,0) size 725x18
           text run at (0,0) width 725: "Results that match Gecko are like WinIE, but with \"before\" for the attribute in the first two rows and the last row."
-      LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {FORM} at (0,96) size 784x338
         LayoutTable {TABLE} at (0,0) size 766x338
           LayoutTableSection {THEAD} at (0,0) size 766x24
@@ -204,6 +203,8 @@
               LayoutTableCell {TD} at (701,292) size 63x20 [r=13 c=3 rs=1 cs=1]
                 LayoutText {#text} at (1,1) size 41x18
                   text run at (1,1) width 41: "before"
+layer at (8,94) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (408,132) size 125x13
   LayoutBlockFlow {DIV} at (3,3) size 125x13
     LayoutText {#text} at (0,0) size 34x13
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/editing/pasteboard/drop-text-without-selection-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/editing/pasteboard/drop-text-without-selection-expected.txt
index e7c7dd59..cfcdd7f6 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/editing/pasteboard/drop-text-without-selection-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/editing/pasteboard/drop-text-without-selection-expected.txt
@@ -23,7 +23,6 @@
         LayoutText {#text} at (0,0) size 667x18
           text run at (0,0) width 487: "The text field should accept drag-and-dropped text, such as the link, even if "
           text run at (486,0) width 181: "no text is currently selected."
-      LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,96) size 784x19
         LayoutTextControl {INPUT} at (0,0) size 123x19 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
         LayoutText {#text} at (123,0) size 4x18
@@ -33,6 +32,8 @@
             text run at (127,0) width 166: "drop me into the text field"
         LayoutText {#text} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,94) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (11,107) size 117x13 scrollWidth 119
   LayoutBlockFlow {DIV} at (3,3) size 117x13
     LayoutText {#text} at (0,0) size 119x13
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/css/resize-corner-tracking-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/css/resize-corner-tracking-expected.txt
index 7f210ba2..d8ef209 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/css/resize-corner-tracking-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/css/resize-corner-tracking-expected.txt
@@ -3,7 +3,6 @@
 layer at (0,0) size 800x600
   LayoutBlockFlow {HTML} at (0,0) size 800x600
     LayoutBlockFlow {BODY} at (8,8) size 784x584
-      LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,18) size 784x18
         LayoutText {#text} at (0,0) size 54x18
           text run at (0,0) width 54: "Test for "
@@ -16,7 +15,6 @@
             text run at (409,0) width 324: "Resize corner does not track the mouse accurately"
         LayoutText {#text} at (732,0) size 5x18
           text run at (732,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,187) size 784x357
         LayoutText {#text} at (169,107) size 4x18
           text run at (169,107) width 4: " "
@@ -25,6 +23,10 @@
           text run at (180,164) width 4: " "
         LayoutBR {BR} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,8) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,70) size 173x125 clip at (10,72) size 169x121
   LayoutBlockFlow {DIV} at (0,62) size 173x125 [border: (2px solid #0000FF)]
 layer at (8,195) size 169x121 clip at (10,197) size 165x117
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/css/rtl-ordering-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/css/rtl-ordering-expected.txt
index 4ca5b53..ac1666c 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/css/rtl-ordering-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/css/rtl-ordering-expected.txt
@@ -15,7 +15,6 @@
             text run at (0,18) width 374 LTR override: "type=\"button\"> text is reversed on \"visual Hebrew\" pages"
         LayoutText {#text} at (373,18) size 5x18
           text run at (373,18) width 5 LTR override: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,70) size 784x19
         LayoutText {#text} at (0,1) size 310x18
           text run at (0,1) width 310 LTR override: "The text on both buttons should like this: \x{5E8}\x{5D5}\x{5EA}\x{5E4}\x{5DB}"
@@ -32,7 +31,6 @@
             LayoutText {#text} at (0,0) size 30x13
               text run at (0,0) width 30 RTL: "\x{5DB}\x{5E4}\x{5EA}\x{5D5}\x{5E8}"
         LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,150) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,168) size 784x18
         LayoutText {#text} at (0,0) size 255x18
           text run at (0,0) width 255 LTR override: "The following lines should be identical:"
@@ -43,3 +41,7 @@
       LayoutBlockFlow {P} at (0,237) size 784x19
         LayoutText {#text} at (0,1) size 81x18
           text run at (0,1) width 81 LTR override: "21-\x{5D4} \x{5D4}\x{5D0}\x{5DE}\x{5D4}"
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,158) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,150) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/fieldset/fieldset-align-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/fieldset/fieldset-align-expected.txt
index a64b251..870aa1ad 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/fieldset/fieldset-align-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/fieldset/fieldset-align-expected.txt
@@ -34,7 +34,6 @@
         LayoutBlockFlow (anonymous) at (14,23.59) size 737x19
           LayoutTextControl {INPUT} at (0,0) size 123x19 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
           LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,260.38) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,278.38) size 769x18
         LayoutText {#text} at (0,0) size 148x18
           text run at (0,0) width 148: "Legend align test, RTL"
@@ -73,7 +72,6 @@
       LayoutBlockFlow (anonymous) at (0,530.75) size 769x0
         LayoutInline {SPAN} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,538.75) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,556.75) size 769x18
         LayoutText {#text} at (0,0) size 275x18
           text run at (0,0) width 275: "Legend align test with margin and padding"
@@ -105,7 +103,6 @@
         LayoutBlockFlow (anonymous) at (17,33) size 705x19
           LayoutTextControl {INPUT} at (0,0) size 123x19 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
           LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,926.75) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,944.75) size 769x18
         LayoutText {#text} at (0,0) size 312x18
           text run at (0,0) width 312: "Legend align test with margin and padding, RTL"
@@ -152,6 +149,8 @@
   LayoutBlockFlow {DIV} at (3,3) size 117x13
 layer at (27,232) size 117x13
   LayoutBlockFlow {DIV} at (3,3) size 117x13
+layer at (8,268) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,260.38) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (641,347) size 117x13
   LayoutBlockFlow {DIV} at (3,3) size 117x13
 layer at (641,402) size 117x13
@@ -160,6 +159,8 @@
   LayoutBlockFlow {DIV} at (3,3) size 117x13
 layer at (641,511) size 117x13
   LayoutBlockFlow {DIV} at (3,3) size 117x13
+layer at (8,547) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,538.75) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (43,635) size 117x13 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
   LayoutBlockFlow {DIV} at (3,3) size 117x13
 layer at (43,719) size 117x13 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
@@ -168,6 +169,8 @@
   LayoutBlockFlow {DIV} at (3,3) size 117x13
 layer at (43,887) size 117x13 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
   LayoutBlockFlow {DIV} at (3,3) size 117x13
+layer at (8,935) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,926.75) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (625,1023) size 117x13 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
   LayoutBlockFlow {DIV} at (3,3) size 117x13
 layer at (625,1107) size 117x13 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/floating-textfield-relayout-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/floating-textfield-relayout-expected.txt
index 8962abf..8101aa9 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/floating-textfield-relayout-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/floating-textfield-relayout-expected.txt
@@ -16,7 +16,8 @@
             text run at (0,18) width 60: "keystroke"
         LayoutText {#text} at (59,18) size 5x18
           text run at (59,18) width 5: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,70) size 784x0
   LayoutBlockFlow (relative positioned) {DIV} at (0,62) size 784x0
     LayoutTextControl (floating) {INPUT} at (0,0) size 392x19 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/input-value-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/input-value-expected.txt
index b3c0f76..db09a7c 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/input-value-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/input-value-expected.txt
@@ -10,7 +10,6 @@
       LayoutBlockFlow {P} at (0,52) size 784x18
         LayoutText {#text} at (0,0) size 725x18
           text run at (0,0) width 725: "Results that match Gecko are like WinIE, but with \"before\" for the attribute in the first two rows and the last row."
-      LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {FORM} at (0,96) size 784x338
         LayoutTable {TABLE} at (0,0) size 767x338
           LayoutTableSection {THEAD} at (0,0) size 767x24
@@ -204,6 +203,8 @@
               LayoutTableCell {TD} at (702,292) size 63x20 [r=13 c=3 rs=1 cs=1]
                 LayoutText {#text} at (1,1) size 41x18
                   text run at (1,1) width 41: "before"
+layer at (8,94) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (408,132) size 117x13
   LayoutBlockFlow {DIV} at (3,3) size 117x13
     LayoutText {#text} at (0,0) size 35x13
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/select/menulist-appearance-rtl-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/select/menulist-appearance-rtl-expected.txt
index 29a7ff7..4d75c094 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/select/menulist-appearance-rtl-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/select/menulist-appearance-rtl-expected.txt
@@ -53,7 +53,6 @@
             LayoutText {#text} at (0,1) size 82x18
               text run at (0,1) width 23: "abc"
               text run at (22,1) width 60 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
-      LayoutBlockFlow {HR} at (0,236) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,246) size 784x55
         LayoutBlockFlow (anonymous) at (0,0) size 784x18
           LayoutText {#text} at (0,0) size 632x18
@@ -67,10 +66,13 @@
               LayoutText (anonymous) at (8,2) size 87x13
                 text run at (8,2) width 87 RTL: "\x{627}\x{644}\x{627}\x{642}\x{62A}\x{631}\x{627}\x{62D}\x{627}\x{62A} / \x{627}\x{644}\x{634}\x{643}\x{627}\x{648}\x{64A}"
           LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,309) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,327) size 784x18
         LayoutText {#text} at (0,0) size 709x18
           text run at (0,0) width 709: "Verify that the alignment and writing direction of each selected item matches the one below the pop-up button."
+layer at (8,252) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,236) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,325) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,309) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,377) size 784x164
   LayoutBlockFlow {DIV} at (0,361) size 784x164
     LayoutMultiColumnSet (anonymous) at (0,0) size 784x164
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/select/select-visual-hebrew-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/select/select-visual-hebrew-expected.txt
index a4ac4b8..9cd9dc3d 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/select/select-visual-hebrew-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/select/select-visual-hebrew-expected.txt
@@ -6,7 +6,6 @@
       LayoutBlockFlow {P} at (0,0) size 784x18
         LayoutText {#text} at (0,0) size 632x18
           text run at (0,0) width 632 LTR override: "This tests that native pop-ups are rendered in logical order even in visually-ordered Hebrew pages."
-      LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,52) size 784x19
         LayoutText {#text} at (0,1) size 398x18
           text run at (0,1) width 398 LTR override: "Text on the pop-up and in the list should look like this: \x{5E8}\x{5D5}\x{5EA}\x{5E4}\x{5DB}"
@@ -16,3 +15,5 @@
             LayoutText (anonymous) at (8,2) size 30x13
               text run at (8,2) width 30 RTL: "\x{5DB}\x{5E4}\x{5EA}\x{5D5}\x{5E8}"
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,42) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/visual-hebrew-text-field-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/visual-hebrew-text-field-expected.txt
index 308cbeee..c81ebda 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/visual-hebrew-text-field-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/visual-hebrew-text-field-expected.txt
@@ -15,13 +15,14 @@
             text run at (0,18) width 251 LTR override: "are reversed on \"visual Hebrew\" pages"
         LayoutText {#text} at (250,18) size 5x18
           text run at (250,18) width 5 LTR override: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,70) size 784x19
         LayoutText {#text} at (0,1) size 286x18
           text run at (0,1) width 286 LTR override: "Text in the field should look like this: \x{5E8}\x{5D5}\x{5EA}\x{5E4}\x{5DB}"
       LayoutBlockFlow (anonymous) at (0,105) size 784x19
         LayoutTextControl {INPUT} at (0,0) size 123x19 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (11,116) size 117x13
   LayoutBlockFlow {DIV} at (3,3) size 117x13
     LayoutText {#text} at (0,0) size 30x13
diff --git a/third_party/WebKit/LayoutTests/platform/mac-retina/editing/pasteboard/drop-text-without-selection-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-retina/editing/pasteboard/drop-text-without-selection-expected.txt
index aad654b..d6b8a95 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-retina/editing/pasteboard/drop-text-without-selection-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-retina/editing/pasteboard/drop-text-without-selection-expected.txt
@@ -23,7 +23,6 @@
         LayoutText {#text} at (0,0) size 667x18
           text run at (0,0) width 487: "The text field should accept drag-and-dropped text, such as the link, even if "
           text run at (486,0) width 181: "no text is currently selected."
-      LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,96) size 784x19
         LayoutTextControl {INPUT} at (0,0) size 131x19 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
         LayoutText {#text} at (131,0) size 4x18
@@ -33,6 +32,8 @@
             text run at (135,0) width 166: "drop me into the text field"
         LayoutText {#text} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,94) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (11,107) size 125x13
   LayoutBlockFlow {DIV} at (3,3) size 125x13
     LayoutText {#text} at (0,0) size 109x13
diff --git a/third_party/WebKit/LayoutTests/platform/mac-retina/fast/forms/input-value-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-retina/fast/forms/input-value-expected.txt
index b9b33ac..72b902d 100644
--- a/third_party/WebKit/LayoutTests/platform/mac-retina/fast/forms/input-value-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac-retina/fast/forms/input-value-expected.txt
@@ -10,7 +10,6 @@
       LayoutBlockFlow {P} at (0,52) size 784x18
         LayoutText {#text} at (0,0) size 725x18
           text run at (0,0) width 725: "Results that match Gecko are like WinIE, but with \"before\" for the attribute in the first two rows and the last row."
-      LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {FORM} at (0,96) size 784x338
         LayoutTable {TABLE} at (0,0) size 766x338
           LayoutTableSection {THEAD} at (0,0) size 766x24
@@ -204,6 +203,8 @@
               LayoutTableCell {TD} at (701,292) size 63x20 [r=13 c=3 rs=1 cs=1]
                 LayoutText {#text} at (1,1) size 41x18
                   text run at (1,1) width 41: "before"
+layer at (8,94) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (408,132) size 125x13
   LayoutBlockFlow {DIV} at (3,3) size 125x13
     LayoutText {#text} at (0,0) size 34x13
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/basic/comments-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/basic/comments-expected.txt
index dc9daa6..77fa6843 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/basic/comments-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/basic/comments-expected.txt
@@ -37,7 +37,6 @@
           text run at (0,195) width 172: ".eight {color: green;}"
           text run at (171,195) width 1: " "
           text run at (0,210) width 0: " "
-      LayoutBlockFlow {HR} at (0,272) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,290) size 769x18 [color=#008000]
         LayoutText {#text} at (0,0) size 197x18
           text run at (0,0) width 197: "This sentence should be green."
@@ -98,3 +97,5 @@
               LayoutBlockFlow {P} at (4,242) size 197x18 [color=#008000]
                 LayoutText {#text} at (0,0) size 197x18
                   text run at (0,0) width 197: "This sentence should be green."
+layer at (8,280) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,272) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/basic/containment-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/basic/containment-expected.txt
index 6e3c53f..50be7ab 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/basic/containment-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/basic/containment-expected.txt
@@ -28,7 +28,6 @@
           text run at (163,120) width 1: " "
           text run at (0,135) width 24: "-->"
           text run at (23,135) width 1: " "
-      LayoutBlockFlow {HR} at (0,197) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,215) size 769x18
         LayoutText {#text} at (0,0) size 412x18
           text run at (0,0) width 412: "This sentence should be underlined due to the linked style sheet "
@@ -208,3 +207,5 @@
               LayoutBlockFlow {P} at (4,334) size 747x18 [color=#008000]
                 LayoutText {#text} at (0,0) size 206x18
                   text run at (0,0) width 206: "This paragraph should be green."
+layer at (8,205) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,197) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/basic/contextual_selectors-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/basic/contextual_selectors-expected.txt
index f118cc6b..7382d41 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/basic/contextual_selectors-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/basic/contextual_selectors-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,30) width 219: "EM, UL LI LI {color: green;}"
           text run at (218,30) width 1: " "
           text run at (0,45) width 0: " "
-      LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,125) size 784x18 [color=#000080]
         LayoutText {#text} at (0,0) size 639x18
           text run at (0,0) width 639: "This sentence should be navy serif in the first half of the page, but purple and sans-serif in the table."
@@ -80,3 +79,5 @@
                       LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
                       LayoutText {#text} at (0,0) size 138x18
                         text run at (0,0) width 138: "This should be green."
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/basic/grouping-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/basic/grouping-expected.txt
index ff0cb71..5762d680 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/basic/grouping-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/basic/grouping-expected.txt
@@ -11,7 +11,6 @@
           text run at (0,0) width 266: ".one, .two, .three {color: green;}"
           text run at (265,0) width 1: " "
           text run at (0,15) width 0: " "
-      LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,95) size 784x18 [color=#008000]
         LayoutText {#text} at (0,0) size 197x18
           text run at (0,0) width 197: "This sentence should be green."
@@ -42,3 +41,5 @@
               LayoutBlockFlow {P} at (4,72) size 197x18 [color=#008000]
                 LayoutText {#text} at (0,0) size 197x18
                   text run at (0,0) width 197: "This sentence should be green."
+layer at (8,85) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/basic/id_as_selector-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/basic/id_as_selector-expected.txt
index 20827da..8f0dc25 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/basic/id_as_selector-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/basic/id_as_selector-expected.txt
@@ -23,7 +23,6 @@
           text run at (0,90) width 235: "P#five, P#five2 {color: blue;}"
           text run at (234,90) width 1: " "
           text run at (0,105) width 235: "P#six, P#six2 {color: purple;}"
-      LayoutBlockFlow {HR} at (0,167) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,185) size 769x18 [color=#008000]
         LayoutText {#text} at (0,0) size 197x18
           text run at (0,0) width 197: "This sentence should be green."
@@ -90,3 +89,5 @@
                   LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
                   LayoutText {#text} at (0,0) size 240x18
                     text run at (0,0) width 240: "This sentence should NOT be purple."
+layer at (8,175) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,167) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/basic/inheritance-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/basic/inheritance-expected.txt
index 4e708e6..34b00e7c 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/basic/inheritance-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/basic/inheritance-expected.txt
@@ -22,7 +22,6 @@
           text run at (148,75) width 1: " "
           text run at (0,90) width 180: ".three {color: purple;}"
           text run at (179,90) width 1: " "
-      LayoutBlockFlow {HR} at (0,152) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {H3} at (0,172.72) size 784x22 [color=#0000FF]
         LayoutText {#text} at (0,0) size 216x22
           text run at (0,0) width 216: "This sentence should show "
@@ -187,3 +186,5 @@
                     text run at (359,0) width 178: "this part (which is spanned)"
                 LayoutText {#text} at (536,0) size 5x18
                   text run at (536,0) width 5: "."
+layer at (8,160) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,152) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border-expected.txt
index 05e56249..6cd3a3e7 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border-expected.txt
@@ -26,7 +26,6 @@
           text run at (163,105) width 1: " "
           text run at (0,120) width 227: "TD {border: 2px solid green;}"
           text run at (226,120) width 1: " "
-      LayoutBlockFlow {HR} at (0,182) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,200) size 769x36
         LayoutText {#text} at (0,0) size 765x36
           text run at (0,0) width 641: "Note that all table cells on this page should have a two-pixel solid green border along all four sides. "
@@ -186,3 +185,5 @@
               LayoutBlockFlow {P} at (5,567) size 743x18
                 LayoutText {#text} at (0,0) size 180x18
                   text run at (0,0) width 180: "This is an unstyled element."
+layer at (8,190) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,182) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom-expected.txt
index d08b165..0b8adbbf 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom-expected.txt
@@ -16,7 +16,6 @@
           text run at (335,30) width 1: " "
           text run at (0,45) width 281: "TD {border-bottom: green 2px solid;}"
           text run at (280,45) width 1: " "
-      LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,125) size 769x36
         LayoutText {#text} at (0,0) size 747x36
           text run at (0,0) width 673: "Note that all table cells on this page should have a two-pixel solid green border along their bottom sides. "
@@ -161,3 +160,5 @@
                       text run at (179,18) width 51: "beneath"
                   LayoutText {#text} at (229,18) size 401x18
                     text run at (229,18) width 401: " the nested list (below the line \"...nested within the list item.\")."
+layer at (8,115) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom_inline-expected.txt
index 8975e45..130f107 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,15) width 313: ".two {border-bottom: purple thin solid;}"
           text run at (312,15) width 1: " "
           text run at (0,30) width 0: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x54 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 680x18
           text run at (0,0) width 680: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
@@ -58,3 +57,5 @@
                   text run at (470,18) width 249: ", which should have a thin solid purple"
                   text run at (0,36) width 99: "bottom border. "
                   text run at (98,36) width 438: "The line-height of the parent element should not change on any line."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom_width-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom_width-expected.txt
index 3a392886..a110fa0 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (429,60) width 1: " "
           text run at (0,75) width 266: ".five {border-bottom-width: 25px;}"
           text run at (265,75) width 1: " "
-      LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,155) size 769x18
         LayoutText {#text} at (0,0) size 160x18
           text run at (0,0) width 160: "(These will only work if "
@@ -101,3 +100,5 @@
               LayoutBlockFlow {P} at (4,313) size 694x18 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 208x18
                   text run at (0,0) width 208: "This element has a class of zero."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom_width_inline-expected.txt
index db4d503..c5a511505 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_bottom_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (421,15) width 1: " "
           text run at (0,30) width 274: ".three {border-bottom-width: 25px;}"
           text run at (273,30) width 1: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x100 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
         LayoutText {#text} at (3,3) size 176x18
           text run at (3,3) width 176: "This element has a class of "
@@ -85,3 +84,5 @@
                 LayoutText {#text} at (339,39) size 730x36
                   text run at (339,39) width 394: ", which should have no bottom border width or visible border"
                   text run at (3,57) width 206: "because no border style was set."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_color-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_color-expected.txt
index 91b6191d..21373ea 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_color-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_color-expected.txt
@@ -14,7 +14,6 @@
           text run at (553,15) width 1: " "
           text run at (0,30) width 710: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
           text run at (709,30) width 1: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x24 [border: (3px solid #800080)]
         LayoutText {#text} at (3,3) size 364x18
           text run at (3,3) width 364: "This element should have a purple border surrounding it."
@@ -47,3 +46,5 @@
                 LayoutText {#text} at (3,3) size 753x36
                   text run at (3,3) width 753: "This element should be surrounded by a medium width border which is purple on top, green on the right side, blue on"
                   text run at (3,21) width 251: "the bottom, and yellow on the left side."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_color_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_color_inline-expected.txt
index 9311eff..dd06c68a 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_color_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_color_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (553,15) width 1: " "
           text run at (0,30) width 710: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
           text run at (709,30) width 1: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x72 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 691x18
           text run at (0,0) width 691: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
@@ -71,3 +70,5 @@
                   text run at (0,36) width 650: "in the first and second cases, and a purple-green-blue-yellow medium-width solid border in the third. "
                   text run at (649,36) width 99: "The line-height"
                   text run at (0,54) width 375: "of the parent element should not change at all, on any line."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_inline-expected.txt
index 193ae39..ffab5080 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,15) width 250: ".two {border: 10px olive inset;}"
           text run at (249,15) width 1: " "
           text run at (0,30) width 0: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x54 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 691x18
           text run at (0,0) width 691: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
@@ -57,3 +56,5 @@
                   text run at (480,18) width 254: ", which should result in a 10-pixel inset"
                   text run at (0,36) width 85: "olive border. "
                   text run at (84,36) width 439: "The line-height of the parent element should not change on any line."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left-expected.txt
index 0fa82b0..27a2001a1 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left-expected.txt
@@ -22,7 +22,6 @@
           text run at (319,75) width 1: " "
           text run at (0,90) width 266: "TD {border-left: green 2px solid;}"
           text run at (265,90) width 1: " "
-      LayoutBlockFlow {HR} at (0,152) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (20,170) size 749x36
         LayoutText {#text} at (0,0) size 723x36
           text run at (0,0) width 649: "Note that all table cells on this page should have a two-pixel solid green border along their left sides. "
@@ -160,3 +159,5 @@
                     text run at (3,18) width 48: "colors. "
                     text run at (50,18) width 630: "The first item's border should travel the entire height the nested list (to end near the baseline of the"
                     text run at (3,36) width 638: "line \"...nested within the list item.\"), even though the nested list does not have any border styles set."
+layer at (8,160) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,152) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left_inline-expected.txt
index a994461e..f0df8f6b6 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left_inline-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,30) width 297: ".two {border-left: purple thin solid;}"
           text run at (296,30) width 1: " "
           text run at (0,45) width 0: " "
-      LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (20,125) size 764x54 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 760x36
           text run at (0,0) width 760: "This paragraph has a background color of silver and a 20-pixel left margin, and it contains inline elements with classes"
@@ -60,3 +59,5 @@
                   text run at (589,18) width 140: ", which should have a"
                   text run at (0,36) width 184: "thin solid purple left border. "
                   text run at (183,36) width 438: "The line-height of the parent element should not change on any line."
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left_width-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left_width-expected.txt
index b6ae79a..f01a391 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (413,60) width 1: " "
           text run at (0,75) width 250: ".five {border-left-width: 25px;}"
           text run at (249,75) width 1: " "
-      LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,155) size 769x18
         LayoutText {#text} at (0,0) size 160x18
           text run at (0,0) width 160: "(These will only work if "
@@ -103,3 +102,5 @@
                     text run at (520,2) width 95: "border-style"
                 LayoutText {#text} at (614,0) size 56x18
                   text run at (614,0) width 56: " was set."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left_width_inline-expected.txt
index 3c00731..ee06bc9 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_left_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (405,15) width 1: " "
           text run at (0,30) width 258: ".three {border-left-width: 25px;}"
           text run at (257,30) width 1: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x78 [border: (3px solid #000000) (25px solid #000000)]
         LayoutText {#text} at (25,3) size 176x18
           text run at (25,3) width 176: "This element has a class of "
@@ -95,3 +94,5 @@
                 LayoutText {#text} at (361,39) size 706x36
                   text run at (361,39) width 370: ", which should have no left border width or visible border"
                   text run at (25,57) width 206: "because no border style was set."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right-expected.txt
index 7debfd4..fa0bc7a 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,30) width 305: ".two {border-right: purple thin solid;}"
           text run at (304,30) width 1: " "
           text run at (0,45) width 0: " "
-      LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,125) size 764x54 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 720x36
           text run at (0,0) width 720: "This paragraph has a background color of silver and a 20-pixel right margin, and it contains inline elements with"
@@ -60,3 +59,5 @@
                   text run at (598,18) width 140: ", which should have a"
                   text run at (0,36) width 192: "thin solid purple right border. "
                   text run at (191,36) width 439: "The line-height of the parent element should not change on any line."
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right_inline-expected.txt
index 6d42a99..2ab1b41a 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right_inline-expected.txt
@@ -22,7 +22,6 @@
           text run at (327,75) width 1: " "
           text run at (0,90) width 274: "TD {border-right: green 2px solid;}"
           text run at (273,90) width 1: " "
-      LayoutBlockFlow {HR} at (0,152) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,170) size 749x36
         LayoutText {#text} at (0,0) size 732x36
           text run at (0,0) width 658: "Note that all table cells on this page should have a two-pixel solid green border along their right sides. "
@@ -165,3 +164,5 @@
                     text run at (641,36) width 26: "The"
                     text run at (0,54) width 677: "borders should line up together at the right edge of the document's body, as each list element has a default"
                     text run at (0,72) width 100: "width of 100%."
+layer at (8,160) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,152) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right_width-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right_width-expected.txt
index cd9411a..9bd7aac 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (421,60) width 1: " "
           text run at (0,75) width 266: ".five {border-right-width: 100px;}"
           text run at (265,75) width 1: " "
-      LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,155) size 769x18
         LayoutText {#text} at (0,0) size 160x18
           text run at (0,0) width 160: "(These will only work if "
@@ -103,3 +102,5 @@
                     text run at (529,2) width 95: "border-style"
                 LayoutText {#text} at (623,0) size 56x18
                   text run at (623,0) width 56: " was set."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right_width_inline-expected.txt
index 399c557..8457a89 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_right_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (413,15) width 1: " "
           text run at (0,30) width 266: ".three {border-right-width: 25px;}"
           text run at (265,30) width 1: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x78 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
         LayoutText {#text} at (3,3) size 176x18
           text run at (3,3) width 176: "This element has a class of "
@@ -95,3 +94,5 @@
                 LayoutText {#text} at (339,39) size 715x36
                   text run at (339,39) width 379: ", which should have no right border width or visible border"
                   text run at (3,57) width 206: "because no border style was set."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_style-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_style-expected.txt
index ac54582..8085a4a 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_style-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_style-expected.txt
@@ -32,7 +32,6 @@
           text run at (358,150) width 1: " "
           text run at (0,165) width 539: ".eleven {border-style: none; border-color: red; border-width: thick;}"
           text run at (538,165) width 1: " "
-      LayoutBlockFlow {HR} at (0,227) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,245) size 769x28 [border: (5px dotted #000000)]
         LayoutText {#text} at (5,5) size 480x18
           text run at (5,5) width 480: "This paragraph should have a thick black dotted border all the way around."
@@ -118,3 +117,5 @@
               LayoutBlockFlow {P} at (4,480) size 747x18
                 LayoutText {#text} at (0,0) size 283x18
                   text run at (0,0) width 283: "This paragraph should have no border at all."
+layer at (8,235) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,227) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_style_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_style_inline-expected.txt
index 736ed78b..afd0c10 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_style_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_style_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (530,15) width 1: " "
           text run at (0,30) width 554: ".three {border-style: none; border-color: purple; border-width: thick;}"
           text run at (553,30) width 1: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x54 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 679x18
           text run at (0,0) width 679: "This is an unstyled element, save for the background color, and it contains inline elements with classes of "
@@ -68,3 +67,5 @@
                   text run at (67,36) width 260: ", which should result in no border at all. "
                   text run at (326,36) width 410: "The line-height of the parent element should not change, on any"
                   text run at (0,54) width 28: "line."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top-expected.txt
index 9f3fab4..e05fb2f 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top-expected.txt
@@ -16,7 +16,6 @@
           text run at (312,30) width 1: " "
           text run at (0,45) width 258: "TD {border-top: green 2px solid;}"
           text run at (257,45) width 1: " "
-      LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,125) size 769x36
         LayoutText {#text} at (0,0) size 723x36
           text run at (0,0) width 648: "Note that all table cells on this page should have a two-pixel solid green border along their top sides. "
@@ -149,3 +148,5 @@
                   LayoutListMarker (anonymous) at (-17,3) size 7x18: bullet
                   LayoutText {#text} at (0,3) size 493x18
                     text run at (0,3) width 493: "Each list item in this list should have a medium-width black border at its top."
+layer at (8,115) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top_inline-expected.txt
index 55b1b464..897191d1 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,15) width 289: ".two {border-top: purple thin solid;}"
           text run at (288,15) width 1: " "
           text run at (0,30) width 0: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x54 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 680x18
           text run at (0,0) width 680: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
@@ -57,3 +56,5 @@
                   text run at (445,18) width 274: ", which should have a thin solid purple top"
                   text run at (0,36) width 49: "border. "
                   text run at (48,36) width 439: "The line-height of the parent element should not change on any line."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top_width-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top_width-expected.txt
index 74a36be..b1016c6 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (405,60) width 1: " "
           text run at (0,75) width 242: ".five {border-top-width: 25px;}"
           text run at (241,75) width 1: " "
-      LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,155) size 769x18
         LayoutText {#text} at (0,0) size 160x18
           text run at (0,0) width 160: "(These will only work if "
@@ -95,3 +94,5 @@
                     text run at (533,2) width 94: "border-style"
                 LayoutText {#text} at (627,0) size 55x18
                   text run at (627,0) width 55: " was set."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top_width_inline-expected.txt
index fd181bb1..92cc9dbd 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_top_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (397,15) width 1: " "
           text run at (0,30) width 250: ".three {border-top-width: 25px;}"
           text run at (249,30) width 1: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x100 [border: (25px solid #000000) (3px solid #000000)]
         LayoutText {#text} at (3,25) size 176x18
           text run at (3,25) width 176: "This element has a class of "
@@ -84,3 +83,5 @@
                 LayoutText {#text} at (294,61) size 735x36
                   text run at (294,61) width 444: ", which should have no top border width or visible border because no"
                   text run at (3,79) width 131: "border style was set."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_width-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_width-expected.txt
index e4be224..0345d55 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (374,60) width 1: " "
           text run at (0,75) width 211: ".five {border-width: 25px;}"
           text run at (210,75) width 1: " "
-      LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,155) size 769x18
         LayoutText {#text} at (0,0) size 160x18
           text run at (0,0) width 160: "(These will only work if "
@@ -95,3 +94,5 @@
                     text run at (503,2) width 95: "border-style"
                 LayoutText {#text} at (597,0) size 55x18
                   text run at (597,0) width 55: " was set."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_width_inline-expected.txt
index 12718bd..95b4c91e 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/border_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (366,15) width 1: " "
           text run at (0,30) width 219: ".three {border-width: 25px;}"
           text run at (218,30) width 1: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x104 [border: (25px solid #000000)]
         LayoutText {#text} at (25,25) size 176x18
           text run at (25,25) width 176: "This element has a class of "
@@ -83,3 +82,5 @@
                 LayoutText {#text} at (726,43) size 706x36
                   text run at (726,43) width 5: ","
                   text run at (25,61) width 436: "which should have no border width because no border style was set."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/clear-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/clear-expected.txt
index c6e8c70..f7e3c00d 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/clear-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/clear-expected.txt
@@ -16,7 +16,6 @@
           text run at (163,30) width 1: " "
           text run at (0,45) width 157: ".four {clear: none;}"
           text run at (156,45) width 1: " "
-      LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutImage (floating) {IMG} at (0,117) size 15x50
       LayoutBlockFlow {P} at (0,125) size 769x18
         LayoutText {#text} at (18,0) size 605x18
@@ -89,3 +88,5 @@
                   text run at (18,0) width 397: "This paragraph should be between both tall orange rectangles."
               LayoutBlockFlow (anonymous) at (4,378) size 670x18
                 LayoutBR {BR} at (18,0) size 0x18
+layer at (8,115) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/clear_float-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/clear_float-expected.txt
index 1f0d608..d06aaba 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/clear_float-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/clear_float-expected.txt
@@ -24,7 +24,6 @@
           text run at (0,105) width 469: "             color: black; background: yellow; clear: none;}"
           text run at (468,105) width 1: " "
           text run at (0,120) width 0: " "
-      LayoutBlockFlow {HR} at (0,179) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (floating) {DIV} at (0,189) size 192x116.38 [color=#FFFFFF] [bgcolor=#008000]
         LayoutBlockFlow {H1} at (8,8) size 176x22
           LayoutText {#text} at (0,0) size 82x22
@@ -158,3 +157,5 @@
                     text run at (0,0) width 298: "The top of the yellow rectangle (to which this"
                     text run at (0,18) width 298: "paragraph belongs) should be vertically"
                     text run at (0,36) width 275: "aligned with the top of the green rectangle."
+layer at (8,187) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,179) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float-expected.txt
index b727378..20b2779 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,15) width 157: ".two {float: right;}"
           text run at (156,15) width 1: " "
           text run at (0,30) width 0: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutImage (floating) {IMG} at (0,102) size 15x50
       LayoutBlockFlow {P} at (0,110) size 784x36
         LayoutText {#text} at (15,0) size 736x36
@@ -22,7 +21,6 @@
           text run at (15,18) width 259: "image which has been floated to the left."
       LayoutBlockFlow (anonymous) at (0,162) size 784x18
         LayoutBR {BR} at (0,0) size 0x18
-      LayoutBlockFlow {HR} at (0,188) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutImage (floating) {IMG} at (769,198) size 15x50
       LayoutBlockFlow {P} at (0,206) size 784x36
         LayoutText {#text} at (0,0) size 745x36
@@ -49,10 +47,15 @@
                   text run at (15,18) width 259: "image which has been floated to the left."
               LayoutBlockFlow (anonymous) at (4,56) size 762x18
                 LayoutBR {BR} at (0,0) size 0x18
-              LayoutBlockFlow {HR} at (4,82) size 762x2 [border: (1px inset #EEEEEE)]
               LayoutImage (floating) {IMG} at (751,92) size 15x50
               LayoutBlockFlow {P} at (4,100) size 762x36
                 LayoutText {#text} at (0,0) size 745x36
                   text run at (0,0) width 618: "This text should be flowing past a tall orange rectangle on the right side of the browser window. "
                   text run at (617,0) width 128: "In this case, it is the"
                   text run at (0,18) width 268: "image which has been floated to the right."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,196) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,188) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (25,375) size 762x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,82) size 762x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float_elements_in_series-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float_elements_in_series-expected.txt
index 65a03971..3f91390 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float_elements_in_series-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float_elements_in_series-expected.txt
@@ -32,7 +32,6 @@
           text run at (0,165) width 196: "TABLE {margin: 20px 0px;}"
           text run at (195,165) width 1: " "
           text run at (0,180) width 0: " "
-      LayoutBlockFlow {HR} at (0,239) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,249) size 769x36
         LayoutText {#text} at (0,0) size 769x36
           text run at (0,0) width 769: "The four floating DIV elements below should appear next to each other horizontally. The table at the bottom of this"
@@ -157,6 +156,8 @@
                         LayoutBlockFlow {IMG} at (0,0) size 100x1
                       LayoutTableCell {TD} at (600,9) size 20x1 [bgcolor=#000000] [r=0 c=14 rs=1 cs=1]
                         LayoutBlockFlow {IMG} at (0,0) size 20x1
+layer at (8,247) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,239) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (8,420) size 20x1
   LayoutBlockFlow {SPAN} at (0,0) size 20x1
     LayoutInline {SPAN} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float_margin-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float_margin-expected.txt
index 864c74f..a9d8823 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float_margin-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float_margin-expected.txt
@@ -25,7 +25,6 @@
           text run at (0,105) width 391: "#img5 {margin-right: -30px; margin-bottom: -30px;}"
           text run at (390,105) width 1: " "
           text run at (0,120) width 0: " "
-      LayoutBlockFlow {HR} at (0,182) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (30,204) size 729x92 [bgcolor=#FFFFFF]
         LayoutText {#text} at (0,0) size 724x92
           text run at (0,0) width 656: "This paragraph should have a white background which extends to the edges of the"
@@ -162,3 +161,5 @@
                   text run at (0,92) width 480: "first of all, which extends to the edges of the element's box. "
                   text run at (479,92) width 212: "There is no padding set on"
                   text run at (0,115) width 214: "this paragraph whatsoever."
+layer at (8,190) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,182) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float_on_text_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float_on_text_elements-expected.txt
index ace2d92..0d664fd 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float_on_text_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/float_on_text_elements-expected.txt
@@ -16,7 +16,6 @@
           text run at (0,72) width 70: "each other."
       LayoutBlockFlow (anonymous) at (0,90) size 769x18
         LayoutBR {BR} at (0,0) size 0x18
-      LayoutBlockFlow {HR} at (0,116) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,126) size 769x91
         LayoutBlockFlow (floating) {P} at (0,0) size 769x72 [bgcolor=#FFFF00]
           LayoutText {#text} at (0,0) size 769x72
@@ -28,7 +27,6 @@
         LayoutText {#text} at (15,73) size 4x18
           text run at (15,73) width 4: " "
         LayoutBR {BR} at (19,87) size 0x0
-      LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,235) size 769x108
         LayoutBlockFlow (floating) {P} at (0,0) size 384.50x108 [bgcolor=#FFFF00]
           LayoutText {#text} at (0,0) size 385x108
@@ -42,7 +40,6 @@
         LayoutText {#text} at (399,1) size 5x18
           text run at (399,1) width 5: " "
         LayoutBR {BR} at (403,15) size 1x0
-      LayoutBlockFlow {HR} at (0,351) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,361) size 769x108
         LayoutBlockFlow (floating) {P} at (384.50,0) size 384.50x108 [bgcolor=#FFFF00]
           LayoutText {#text} at (0,0) size 385x108
@@ -56,7 +53,6 @@
         LayoutText {#text} at (15,1) size 4x18
           text run at (15,1) width 4: " "
         LayoutBR {BR} at (19,15) size 0x0
-      LayoutBlockFlow {HR} at (0,477) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,487) size 769x72
         LayoutBlockFlow (floating) {SPAN} at (0,0) size 48x37 [bgcolor=#C0C0C0]
           LayoutText {#text} at (0,0) size 22x37
@@ -69,7 +65,6 @@
           text run at (0,54) width 33: "cap\"."
       LayoutBlockFlow (anonymous) at (0,559) size 769x18
         LayoutBR {BR} at (0,0) size 0x18
-      LayoutBlockFlow {HR} at (0,585) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (floating) {P} at (423,605) size 336x214 [bgcolor=#FFFF00] [border: (3px solid #FF0000)]
         LayoutText {#text} at (8,8) size 320x198
           text run at (8,8) width 320: "This paragraph should be floated to the right, sort"
@@ -103,7 +98,6 @@
           text run at (0,198) width 55: "element."
       LayoutBlockFlow (anonymous) at (0,811) size 769x18
         LayoutBR {BR} at (0,0) size 0x18
-      LayoutBlockFlow {HR} at (0,837) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,847) size 769x26 [bgcolor=#66CCFF] [border: (4px solid #FF0000)]
         LayoutBlockFlow (floating) {DIV} at (425,14) size 330x244 [bgcolor=#FFFF00]
           LayoutBlockFlow {P} at (5,5) size 320x234
@@ -126,7 +120,6 @@
             text run at (0,0) width 274: "See description in the box on the right side"
       LayoutBlockFlow (anonymous) at (0,873) size 769x242
         LayoutBR {BR} at (0,0) size 0x18
-      LayoutBlockFlow {HR} at (0,1123) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (floating) {DIV} at (0,1133) size 192.25x72 [bgcolor=#66CCFF]
         LayoutBlockFlow {P} at (0,0) size 192.25x72
           LayoutText {#text} at (0,0) size 193x72
@@ -148,7 +141,6 @@
           text run at (222,18) width 204: "and a yellow box (on the right)."
       LayoutBlockFlow (anonymous) at (0,1169) size 769x36
         LayoutBR {BR} at (192,0) size 1x18
-      LayoutBlockFlow {HR} at (0,1213) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,1223) size 769x126
         LayoutBlockFlow (floating) {DIV} at (0,0) size 576.75x126 [bgcolor=#66CCFF]
           LayoutBlockFlow (floating) {DIV} at (422.56,0) size 144.19x36 [bgcolor=#FFFF00]
@@ -172,7 +164,6 @@
               text run at (0,108) width 79: "a 10px blue "
               text run at (78,108) width 144: "stripe on its right side."
         LayoutBR {BR} at (576,0) size 1x18
-      LayoutBlockFlow {HR} at (0,1357) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutTable {TABLE} at (0,1367) size 769x1403 [border: (1px outset #808080)]
         LayoutTableSection {TBODY} at (1,1) size 767x1401
           LayoutTableRow {TR} at (0,0) size 767x26
@@ -198,7 +189,6 @@
                   text run at (0,72) width 123: "close to each other."
               LayoutBlockFlow (anonymous) at (4,94) size 747x18
                 LayoutBR {BR} at (0,0) size 0x18
-              LayoutBlockFlow {HR} at (4,120) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (anonymous) at (4,130) size 747x91
                 LayoutBlockFlow (floating) {P} at (0,0) size 747x72 [bgcolor=#FFFF00]
                   LayoutText {#text} at (0,0) size 747x72
@@ -210,7 +200,6 @@
                 LayoutText {#text} at (15,73) size 4x18
                   text run at (15,73) width 4: " "
                 LayoutBR {BR} at (19,87) size 0x0
-              LayoutBlockFlow {HR} at (4,229) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (anonymous) at (4,239) size 747x108
                 LayoutBlockFlow (floating) {P} at (0,0) size 373.50x108 [bgcolor=#FFFF00]
                   LayoutText {#text} at (0,0) size 374x108
@@ -224,7 +213,6 @@
                 LayoutText {#text} at (388,1) size 5x18
                   text run at (388,1) width 5: " "
                 LayoutBR {BR} at (392,15) size 1x0
-              LayoutBlockFlow {HR} at (4,355) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (anonymous) at (4,365) size 747x108
                 LayoutBlockFlow (floating) {P} at (373.50,0) size 373.50x108 [bgcolor=#FFFF00]
                   LayoutText {#text} at (0,0) size 374x108
@@ -238,7 +226,6 @@
                 LayoutText {#text} at (15,1) size 4x18
                   text run at (15,1) width 4: " "
                 LayoutBR {BR} at (19,15) size 0x0
-              LayoutBlockFlow {HR} at (4,481) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {P} at (4,491) size 747x72
                 LayoutBlockFlow (floating) {SPAN} at (0,0) size 48x37 [bgcolor=#C0C0C0]
                   LayoutText {#text} at (0,0) size 22x37
@@ -251,7 +238,6 @@
                   text run at (0,54) width 74: "\"drop-cap\"."
               LayoutBlockFlow (anonymous) at (4,563) size 747x18
                 LayoutBR {BR} at (0,0) size 0x18
-              LayoutBlockFlow {HR} at (4,589) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (floating) {P} at (405,609) size 336x214 [bgcolor=#FFFF00] [border: (3px solid #FF0000)]
                 LayoutText {#text} at (8,8) size 320x198
                   text run at (8,8) width 320: "This paragraph should be floated to the right, sort"
@@ -285,7 +271,6 @@
                   text run at (0,198) width 211: "styles set for the floated element."
               LayoutBlockFlow (anonymous) at (4,815) size 747x18
                 LayoutBR {BR} at (0,0) size 0x18
-              LayoutBlockFlow {HR} at (4,841) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (4,851) size 747x26 [bgcolor=#66CCFF] [border: (4px solid #FF0000)]
                 LayoutBlockFlow (floating) {DIV} at (403,14) size 330x244 [bgcolor=#FFFF00]
                   LayoutBlockFlow {P} at (5,5) size 320x234
@@ -308,7 +293,6 @@
                     text run at (0,0) width 274: "See description in the box on the right side"
               LayoutBlockFlow (anonymous) at (4,877) size 747x242
                 LayoutBR {BR} at (0,0) size 0x18
-              LayoutBlockFlow {HR} at (4,1127) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (floating) {DIV} at (4,1137) size 186.75x72 [bgcolor=#66CCFF]
                 LayoutBlockFlow {P} at (0,0) size 186.75x72
                   LayoutText {#text} at (0,0) size 187x72
@@ -331,7 +315,6 @@
                   text run at (217,18) width 203: "and a yellow box (on the right)."
               LayoutBlockFlow (anonymous) at (4,1173) size 747x36
                 LayoutBR {BR} at (186,0) size 1x18
-              LayoutBlockFlow {HR} at (4,1217) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (anonymous) at (4,1227) size 747x126
                 LayoutBlockFlow (floating) {DIV} at (0,0) size 560.25x126 [bgcolor=#66CCFF]
                   LayoutBlockFlow (floating) {DIV} at (410.19,0) size 140.06x36 [bgcolor=#FFFF00]
@@ -356,4 +339,39 @@
                       text run at (0,108) width 266: "yellow rectange should have a 10px blue "
                       text run at (265,108) width 143: "stripe on its right side."
                 LayoutBR {BR} at (560,0) size 1x18
-              LayoutBlockFlow {HR} at (4,1361) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (8,124) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,116) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,359) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,351) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,485) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,477) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,593) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,585) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,845) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,837) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1131) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1123) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1221) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1213) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1365) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1357) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (25,1522) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,120) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1631) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,229) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1757) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,355) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1883) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,481) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1991) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,589) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2243) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,841) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2529) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1127) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2619) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1217) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2763) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1361) size 747x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/height-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/height-expected.txt
index e1f164a22..ca57c1c5 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/height-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/height-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,15) width 164: ".two {height: 100px;}"
           text run at (163,15) width 1: " "
           text run at (0,30) width 0: " "
-      LayoutBlockFlow {HR} at (0,92) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,102) size 769x50
         LayoutImage {IMG} at (0,0) size 50x50
         LayoutText {#text} at (0,0) size 0x0
@@ -74,3 +73,5 @@
                     text run at (177,20) width 48: "height"
                 LayoutText {#text} at (224,18) size 68x18
                   text run at (224,18) width 68: " property)."
+layer at (8,100) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin-expected.txt
index 650320db..4e9507b 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin-expected.txt
@@ -22,7 +22,6 @@
           text run at (163,75) width 1: " "
           text run at (0,90) width 352: ".six {margin: -10px; background-color: aqua;}"
           text run at (351,90) width 1: " "
-      LayoutBlockFlow {HR} at (0,152) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,170) size 784x36
         LayoutText {#text} at (0,0) size 752x36
           text run at (0,0) width 752: "NOTE: The following tests are separated by class-zero paragraphs, so as to prevent margin-collapsing as described in"
@@ -164,3 +163,5 @@
               LayoutBlockFlow {P} at (4,1201) size 762x18 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 208x18
                   text run at (0,0) width 208: "This element has a class of zero."
+layer at (8,160) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,152) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_bottom-expected.txt
index 88c801d..3d4946d 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_bottom-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_bottom-expected.txt
@@ -25,7 +25,6 @@
           text run at (0,105) width 172: "P, UL {margin-top: 0;}"
           text run at (171,105) width 1: " "
           text run at (0,120) width 0: " "
-      LayoutBlockFlow {HR} at (0,182) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,192) size 769x18 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 208x18
           text run at (0,0) width 208: "This element has a class of zero."
@@ -148,3 +147,5 @@
               LayoutBlockFlow {P} at (4,725.75) size 747x18 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 238x18
                   text run at (0,0) width 238: "This element also has a class of zero."
+layer at (8,190) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,182) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_bottom_inline-expected.txt
index efade74d..40a2ec1 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_bottom_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_bottom_inline-expected.txt
@@ -12,7 +12,6 @@
           text run at (397,0) width 1: " "
           text run at (0,15) width 406: ".two {margin-bottom: -10px; background-color: aqua;}"
           text run at (405,15) width 1: " "
-      LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,95) size 784x54 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 490x18
           text run at (0,0) width 400: "This element is unstyled save for a background color of gray.. "
@@ -93,3 +92,5 @@
                   text run at (287,18) width 9: ". "
                   text run at (295,18) width 449: "Margins on inline elements does not affect line-height calculations, so"
                   text run at (0,36) width 368: "all lines in this element should have the same line-height."
+layer at (8,85) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_inline-expected.txt
index 2f22e4c..7de450d 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (343,15) width 1: " "
           text run at (0,30) width 352: ".two {margin: -10px; background-color: aqua;}"
           text run at (351,30) width 1: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,102) size 784x18 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 208x18
           text run at (0,0) width 208: "This element has a class of zero."
@@ -123,3 +122,5 @@
               LayoutBlockFlow {P} at (4,284) size 762x18 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 208x18
                   text run at (0,0) width 208: "This element has a class of zero."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_left-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_left-expected.txt
index 7b1f534..c1806f6b 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_left-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_left-expected.txt
@@ -20,7 +20,6 @@
           text run at (382,60) width 1: " "
           text run at (0,75) width 398: ".five {margin-left: -10px; background-color: aqua;}"
           text run at (397,75) width 1: " "
-      LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,155) size 769x18 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 208x18
           text run at (0,0) width 208: "This element has a class of zero."
@@ -118,3 +117,5 @@
                   text run at (148,18) width 394: "In all other respects, however, the element should be normal. "
                   text run at (541,18) width 210: "No styles have been applied to it"
                   text run at (0,36) width 374: "besides the negative left margin and the background color."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_left_inline-expected.txt
index 8dc68f1..5f2920df 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_left_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_left_inline-expected.txt
@@ -12,7 +12,6 @@
           text run at (382,0) width 1: " "
           text run at (0,15) width 391: ".two {margin-left: -10px; background-color: aqua;}"
           text run at (390,15) width 1: " "
-      LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,95) size 784x36 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 551x18
           text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
@@ -97,3 +96,5 @@
                     text run at (290,18) width 29: "first"
                 LayoutText {#text} at (318,18) size 237x18
                   text run at (318,18) width 237: " line in which the inline box appears."
+layer at (8,85) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_right-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_right-expected.txt
index f931da4..2b86296 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_right-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_right-expected.txt
@@ -20,7 +20,6 @@
           text run at (538,60) width 1: " "
           text run at (0,75) width 406: ".five {margin-right: -10px; background-color: aqua;}"
           text run at (405,75) width 1: " "
-      LayoutBlockFlow {HR} at (0,137) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,155) size 784x18 [bgcolor=#C0C0C0]
         LayoutText {#text} at (576,0) size 208x18
           text run at (576,0) width 208: "This element has a class of zero."
@@ -118,3 +117,5 @@
                   text run at (148,18) width 394: "In all other respects, however, the element should be normal. "
                   text run at (541,18) width 210: "No styles have been applied to it"
                   text run at (0,36) width 383: "besides the negative right margin and the background color."
+layer at (8,145) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_right_inline-expected.txt
index 0ffd5d4..cf4788e 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_right_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_right_inline-expected.txt
@@ -12,7 +12,6 @@
           text run at (538,0) width 1: " "
           text run at (0,15) width 398: ".two {margin-right: -10px; background-color: aqua;}"
           text run at (397,15) width 1: " "
-      LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,95) size 784x36 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 551x18
           text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
@@ -97,3 +96,5 @@
                     text run at (299,18) width 25: "last"
                 LayoutText {#text} at (323,18) size 238x18
                   text run at (323,18) width 238: " line in which the inline box appears."
+layer at (8,85) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_top-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_top-expected.txt
index 42d0b70..49cb0bb1 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_top-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_top-expected.txt
@@ -24,7 +24,6 @@
           text run at (382,90) width 1: " "
           text run at (0,105) width 196: "P, UL {margin-bottom: 0;}"
           text run at (195,105) width 1: " "
-      LayoutBlockFlow {HR} at (0,164) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,174) size 769x18 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 208x18
           text run at (0,0) width 208: "This element has a class of zero."
@@ -136,3 +135,5 @@
                   text run at (53,18) width 497: "No other styles have been applied to it besides a light blue background color. "
                   text run at (549,18) width 154: "In all other respects, the"
                   text run at (0,36) width 170: "element should be normal."
+layer at (8,172) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,164) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_top_inline-expected.txt
index 68d7845..3bf6d67 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_top_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/margin_top_inline-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,30) width 383: ".two {margin-top: -10px; background-color: aqua;}"
           text run at (382,30) width 1: " "
           text run at (0,45) width 0: " "
-      LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,125) size 784x54 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 486x18
           text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
@@ -96,3 +95,5 @@
                   text run at (376,18) width 9: ". "
                   text run at (384,18) width 334: "Margins on inline elements do not affect line-height"
                   text run at (0,36) width 470: "calculations, so all lines in this element should have the same line-height."
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding-expected.txt
index bc7810d7..99f3c526 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding-expected.txt
@@ -20,7 +20,6 @@
           text run at (351,60) width 1: " "
           text run at (0,75) width 367: ".five {padding: -20px; background-color: aqua;}"
           text run at (366,75) width 1: " "
-      LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,155) size 769x18 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 208x18
           text run at (0,0) width 208: "This element has a class of zero."
@@ -93,3 +92,5 @@
                   text run at (0,0) width 550: "This element should have no padding, since negative padding values are not allowed. "
                   text run at (549,0) width 186: "Both the content background"
                   text run at (0,18) width 332: "and the normal padding should be aqua (light blue)."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_bottom-expected.txt
index 9c315e0..593b21a 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_bottom-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_bottom-expected.txt
@@ -20,7 +20,6 @@
           text run at (405,60) width 1: " "
           text run at (0,75) width 422: ".five {padding-bottom: -20px; background-color: aqua;}"
           text run at (421,75) width 1: " "
-      LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,155) size 769x18 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 208x18
           text run at (0,0) width 208: "This element has a class of zero."
@@ -97,3 +96,5 @@
                   text run at (0,0) width 599: "This element should have no bottom padding, since negative padding values are not allowed. "
                   text run at (598,0) width 107: "Both the content"
                   text run at (0,18) width 411: "background and the normal padding should be aqua (light blue)."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_bottom_inline-expected.txt
index a92f6489..223bdf1b 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_bottom_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_bottom_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,15) width 414: ".two {padding-bottom: -10px; background-color: aqua;}"
           text run at (413,15) width 1: " "
           text run at (0,30) width 0: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x72 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 486x18
           text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
@@ -98,3 +97,5 @@
                   text run at (563,18) width 9: ". "
                   text run at (571,18) width 175: "Padding on inline elements"
                   text run at (0,36) width 641: "does not affect line-height calculations, so all lines in this element should have the same line-height."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_inline-expected.txt
index c83f164..937d996 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_inline-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,30) width 359: ".two {padding: -10px; background-color: aqua;}"
           text run at (358,30) width 1: " "
           text run at (0,45) width 0: " "
-      LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,125) size 769x18 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 208x18
           text run at (0,0) width 208: "This element has a class of zero."
@@ -124,3 +123,5 @@
               LayoutBlockFlow {P} at (4,266) size 747x18 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 208x18
                   text run at (0,0) width 208: "This element has a class of zero."
+layer at (8,115) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_left-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_left-expected.txt
index 1a3557b1..de16672 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_left-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_left-expected.txt
@@ -20,7 +20,6 @@
           text run at (390,60) width 1: " "
           text run at (0,75) width 406: ".five {padding-left: -20px; background-color: aqua;}"
           text run at (405,75) width 1: " "
-      LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,155) size 769x18 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 208x18
           text run at (0,0) width 208: "This element has a class of zero."
@@ -116,3 +115,5 @@
                   text run at (0,0) width 575: "This element should have no left padding, since negative padding values are not allowed. "
                   text run at (574,0) width 107: "Both the content"
                   text run at (0,18) width 411: "background and the normal padding should be aqua (light blue)."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_left_inline-expected.txt
index c1c2d7d..bf6956b1 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_left_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_left_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,15) width 398: ".two {padding-left: -10px; background-color: aqua;}"
           text run at (397,15) width 1: " "
           text run at (0,30) width 0: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x54 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 551x18
           text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
@@ -99,3 +98,5 @@
                 LayoutText {#text} at (593,18) size 745x36
                   text run at (593,18) width 152: " line in which the inline"
                   text run at (0,36) width 81: "box appears."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_right-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_right-expected.txt
index 35b6f91..5604ee9 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_right-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_right-expected.txt
@@ -20,7 +20,6 @@
           text run at (546,60) width 1: " "
           text run at (0,75) width 562: ".five {padding-right: -20px; text-align: right; background-color: aqua;}"
           text run at (561,75) width 1: " "
-      LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,155) size 769x18 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 208x18
           text run at (0,0) width 208: "This element has a class of zero."
@@ -133,3 +132,5 @@
                   text run at (0,18) width 416: "background and the normal padding should be aqua (light blue). "
                   text run at (415,18) width 332: "The text has been right-aligned in order to make the"
                   text run at (527,36) width 220: "lack of right padding easier to see."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_right_inline-expected.txt
index 24725ff..d545cb63 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_right_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_right_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,15) width 554: ".two {padding-right: -10px; text-align: right; background-color: aqua;}"
           text run at (553,15) width 1: " "
           text run at (0,30) width 0: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x54 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 551x18
           text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
@@ -102,3 +101,5 @@
                 LayoutText {#text} at (625,18) size 737x36
                   text run at (625,18) width 112: " line in which the"
                   text run at (0,36) width 122: "inline box appears."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_top-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_top-expected.txt
index 5dc09ad7..411a057 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_top-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_top-expected.txt
@@ -20,7 +20,6 @@
           text run at (382,60) width 1: " "
           text run at (0,75) width 398: ".five {padding-top: -20px; background-color: aqua;}"
           text run at (397,75) width 1: " "
-      LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,155) size 769x18 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 208x18
           text run at (0,0) width 208: "This element has a class of zero."
@@ -89,3 +88,5 @@
                   text run at (0,0) width 575: "This element should have no top padding, since negative padding values are not allowed. "
                   text run at (574,0) width 106: "Both the content"
                   text run at (0,18) width 411: "background and the normal padding should be aqua (light blue)."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_top_inline-expected.txt
index febde07..fc5d63d 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_top_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/padding_top_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,15) width 391: ".two {padding-top: -10px; background-color: aqua;}"
           text run at (390,15) width 1: " "
           text run at (0,30) width 0: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x72 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 486x18
           text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
@@ -98,3 +97,5 @@
                   text run at (538,18) width 9: ". "
                   text run at (546,18) width 209: "Padding on inline elements does"
                   text run at (0,36) width 608: "not affect line-height calculations, so all lines in this element should have the same line-height."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/width-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/width-expected.txt
index a3339a7..ab85400 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/box_properties/width-expected.txt
@@ -14,7 +14,6 @@
           text run at (140,15) width 1: " "
           text run at (0,30) width 149: "TABLE {width: 50%;}"
           text run at (148,30) width 1: " "
-      LayoutBlockFlow {HR} at (0,92) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,102) size 769x50
         LayoutImage {IMG} at (0,0) size 50x50
         LayoutText {#text} at (0,0) size 0x0
@@ -84,3 +83,5 @@
                   text run at (0,162) width 165: "property without the need"
                   text run at (0,180) width 155: "for the user to resize the"
                   text run at (0,198) width 111: "viewing window."
+layer at (8,100) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/cascade/cascade_order-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/cascade/cascade_order-expected.txt
index f8067d6..d7c38c7 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/cascade/cascade_order-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/cascade/cascade_order-expected.txt
@@ -29,7 +29,6 @@
           text run at (0,135) width 289: ".one {text-decoration: line-through;}"
           text run at (288,135) width 1: " "
           text run at (0,150) width 0: " "
-      LayoutBlockFlow {HR} at (0,212) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,230) size 769x144
         LayoutListItem {LI} at (40,0) size 729x18 [color=#0000FF]
           LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
@@ -140,3 +139,5 @@
               LayoutBlockFlow {P} at (4,232) size 697x18
                 LayoutText {#text} at (0,0) size 697x18
                   text run at (0,0) width 697: "This text should be stricken (overriding the imported underline; only works if LINKed sheets are supported)."
+layer at (8,220) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,212) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/cascade/important-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/cascade/important-expected.txt
index 2e708175..8444083ee 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/cascade/important-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/cascade/important-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,30) width 172: "P#id1 {color: purple;}"
           text run at (171,30) width 1: " "
           text run at (0,45) width 0: " "
-      LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,125) size 784x36 [color=#008000]
         LayoutText {#text} at (0,0) size 784x36
           text run at (0,0) width 784: "This sentence should be green, because the declaration marked important should override any other normal declaration for"
@@ -66,3 +65,5 @@
                   text run at (0,0) width 615: "This sentence should also be green, even though it has a STYLE attribute declaring it to be red. "
                   text run at (614,0) width 98: "This is because"
                   text run at (0,18) width 659: "declarations marked important have more weight than normal declarations given in a STYLE attribute."
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/classification/display-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/classification/display-expected.txt
index ee2fd13..b483dc3 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/classification/display-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/classification/display-expected.txt
@@ -18,7 +18,6 @@
           text run at (265,45) width 1: " "
           text run at (0,60) width 149: "I {display: block;}"
           text run at (148,60) width 1: " "
-      LayoutBlockFlow {HR} at (0,122) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,140) size 769x18
         LayoutText {#text} at (0,0) size 299x18
           text run at (0,0) width 299: "This sentence should be a block-level element."
@@ -129,3 +128,5 @@
                 LayoutBlockFlow (anonymous) at (0,36) size 747x18
                   LayoutText {#text} at (0,0) size 208x18
                     text run at (0,0) width 208: "should be a block-level element."
+layer at (8,130) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,122) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style-expected.txt
index 7fb3c7b0..fcaeb27 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style-expected.txt
@@ -12,7 +12,6 @@
           text run at (296,0) width 1: " "
           text run at (0,15) width 484: ".two {list-style: url(../resources/oransqr.gif) disc outside;}"
           text run at (483,15) width 1: " "
-      LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,95) size 784x36
         LayoutListItem {LI} at (40,0) size 744x36
           LayoutListMarker (anonymous) at (0,0) size 19.55x18: "A"
@@ -51,3 +50,5 @@
                     text run at (0,1) width 489: "The text in this item have an orange square for its bullet; failing that, a disc. "
                     text run at (488,1) width 215: "Also, the bullet should be outside"
                     text run at (0,19) width 314: "the text block, as the list has been set to 'outside'."
+layer at (8,85) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style_image-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style_image-expected.txt
index 85cfb46..ed7aedd 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style_image-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style_image-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,15) width 235: ".two {list-style-image: none;}"
           text run at (234,15) width 1: " "
           text run at (0,30) width 0: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,110) size 784x57
         LayoutListItem {LI} at (40,0) size 744x19
           LayoutListMarker (anonymous) at (-22,0) size 15x15
@@ -78,3 +77,5 @@
                   LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
                   LayoutText {#text} at (0,0) size 238x18
                     text run at (0,0) width 238: "...standard list markers for each item."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style_position-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style_position-expected.txt
index f60174b..525a27f 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style_position-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style_position-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,15) width 274: ".two {list-style-position: inside;}"
           text run at (273,15) width 1: " "
           text run at (0,30) width 0: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,110) size 784x36
         LayoutListItem {LI} at (40,0) size 744x36
           LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
@@ -50,3 +49,5 @@
                   LayoutText {#text} at (22,0) size 674x36
                     text run at (22,0) width 652: "The text in this item should not behave as expected; that is, it should line up with the bullet on the left"
                     text run at (0,18) width 321: "margin, leaving no blank space beneath the bullet."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style_type-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style_type-expected.txt
index 5269108..f57e3831 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style_type-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/classification/list_style_type-expected.txt
@@ -27,7 +27,6 @@
           text run at (0,120) width 235: ".nine {list-style-type: none;}"
           text run at (234,120) width 1: " "
           text run at (0,135) width 0: " "
-      LayoutBlockFlow {HR} at (0,197) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,215) size 769x54
         LayoutListItem {LI} at (40,0) size 729x18
           LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
@@ -268,3 +267,5 @@
                 LayoutListItem {LI} at (40,36) size 282x18
                   LayoutText {#text} at (0,0) size 154x18
                     text run at (0,0) width 154: "...nothing for each item."
+layer at (8,205) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,197) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/classification/white_space-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/classification/white_space-expected.txt
index f156220..ef8ed43 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/classification/white_space-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/classification/white_space-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,30) width 227: ".three {white-space: normal;}"
           text run at (226,30) width 1: " "
           text run at (0,45) width 0: " "
-      LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,125) size 784x90
         LayoutText {#text} at (0,0) size 576x90
           text run at (0,0) width 0: " "
@@ -78,3 +77,5 @@
                 LayoutText {#text} at (458,18) size 5x18
                   text run at (458,18) width 5: "."
                   text run at (462,18) width 1: " "
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background-expected.txt
index a5a7c37..04a33a4 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background-expected.txt
@@ -16,7 +16,6 @@
           text run at (577,30) width 1: " "
           text run at (0,45) width 578: ".three {background: lime url(../resources/oransqr.gif) repeat-x left top;}"
           text run at (577,45) width 1: " "
-      LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,125) size 769x54
         LayoutText {#text} at (0,0) size 741x18
           text run at (0,0) width 741: "This document should have a green background with an orange strip running across the entire top of the page, since"
@@ -90,3 +89,5 @@
                   text run at (38,18) width 701: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser"
                   text run at (0,36) width 199: "in handling these declarations. "
                   text run at (198,36) width 311: "Hey, I didn't say the page would be pretty, did I?"
+layer at (8,115) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_attachment-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_attachment-expected.txt
index 8f88092e..a3fa681 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_attachment-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_attachment-expected.txt
@@ -11,7 +11,6 @@
           text run at (0,0) width 851: "BODY {background-image: url(../resources/bg.gif); background-repeat: repeat-x; background-attachment: fixed;}"
           text run at (850,0) width 1: " "
           text run at (0,15) width 0: " "
-      LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,95) size 784x90
         LayoutText {#text} at (0,0) size 778x90
           text run at (0,0) width 778: "This document should have a green grid-pattern line across the top of the page (or at least a tiled background) which does"
@@ -27,8 +26,6 @@
         LayoutText {#text} at (0,0) size 518x18
           text run at (0,0) width 425: "In fact, why not the relevant section from the CSS1 specification? "
           text run at (424,0) width 94: "A capital idea."
-      LayoutBlockFlow {HR} at (0,235) size 784x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow {HR} at (0,245) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {H4} at (0,268.27) size 784x18
         LayoutInline {A} at (0,0) size 222x18
           LayoutText {#text} at (0,0) size 222x18
@@ -116,8 +113,6 @@
                 LayoutText {#text} at (0,0) size 518x18
                   text run at (0,0) width 425: "In fact, why not the relevant section from the CSS1 specification? "
                   text run at (424,0) width 94: "A capital idea."
-              LayoutBlockFlow {HR} at (4,144) size 762x2 [border: (1px inset #EEEEEE)]
-              LayoutBlockFlow {HR} at (4,154) size 762x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H4} at (4,177.27) size 762x18
                 LayoutInline {A} at (0,0) size 222x18
                   LayoutText {#text} at (0,0) size 222x18
@@ -178,3 +173,13 @@
                   text run at (71,0) width 683: " UAs may treat 'fixed' as 'scroll'. However, it is recommended they interpret 'fixed' correctly, at least on the"
                   text run at (0,18) width 726: "HTML and BODY elements, since there is no way for an author to provide an image only for those browsers that"
                   text run at (0,36) width 94: "support 'fixed'."
+layer at (8,85) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,243) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,235) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,253) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,245) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (25,806) size 762x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,144) size 762x2 [border: (1px inset #EEEEEE)]
+layer at (25,816) size 762x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,154) size 762x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_color-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_color-expected.txt
index ea725a80..2540bb6 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_color-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_color-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,30) width 289: ".two {background-color: transparent;}"
           text run at (288,30) width 1: " "
           text run at (0,45) width 0: " "
-      LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,125) size 784x18 [bgcolor=#008000]
         LayoutText {#text} at (0,0) size 282x18
           text run at (0,0) width 282: "This element's background should be green."
@@ -81,3 +80,5 @@
                 LayoutText {#text} at (0,0) size 754x18
                   text run at (0,0) width 469: "This element should allow the document background to \"shine through.\" "
                   text run at (468,0) width 286: "There should be no green backgrounds here!"
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_image-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_image-expected.txt
index b0202339..95274fa 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_image-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_image-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,15) width 235: ".one {background-image: none;}"
           text run at (234,15) width 1: " "
           text run at (0,30) width 0: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x36
         LayoutText {#text} at (0,0) size 760x36
           text run at (0,0) width 512: "This sentence should be backed by an image-- a green grid pattern, in this case. "
@@ -92,3 +91,5 @@
                 LayoutText {#text} at (0,0) size 714x36
                   text run at (0,0) width 714: "This sentence should NOT be backed by a repeated green-grid image, allowing the page's background to \"shine"
                   text run at (0,18) width 110: "through\" instead."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_position-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_position-expected.txt
index 92d95994..1e90e84 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_position-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_position-expected.txt
@@ -41,7 +41,6 @@
           text run at (0,225) width 476: "       background-repeat: no-repeat; background-color: aqua;}"
           text run at (475,225) width 1: " "
           text run at (0,240) width 0: " "
-      LayoutBlockFlow {HR} at (0,302) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,320) size 769x18
         LayoutText {#text} at (0,0) size 514x18
           text run at (0,0) width 514: "This document should have a single, small green image in its upper right corner."
@@ -146,3 +145,5 @@
                   text run at (0,36) width 170: "left corner of the element. "
                   text run at (169,36) width 569: "The background color will make it easier to determine the edges of the paragraph, which"
                   text run at (0,54) width 226: "should assist in evaluating this test."
+layer at (8,310) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,302) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_repeat-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_repeat-expected.txt
index 7e04a9a..15c11b7 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_repeat-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/background_repeat-expected.txt
@@ -37,7 +37,6 @@
           text run at (0,195) width 235: "       background-color: red;}"
           text run at (234,195) width 1: " "
           text run at (0,210) width 0: " "
-      LayoutBlockFlow {HR} at (0,272) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,290) size 784x54
         LayoutText {#text} at (0,0) size 779x36
           text run at (0,0) width 779: "This sentence should have an orange stripe repeated in the \"y\" direction, starting at the upper left corner (since the default"
@@ -308,3 +307,5 @@
                   text run at (212,72) width 245: "This ought to be enough text, though. "
                   text run at (456,72) width 299: "A background color is present, although if it is"
                   text run at (0,90) width 366: "visible, then the image may not have been tiled correctly."
+layer at (8,280) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,272) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/color-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/color-expected.txt
index da01079..28fa63bc 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/color-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/color_and_background/color-expected.txt
@@ -11,7 +11,6 @@
           text run at (0,0) width 157: ".one {color: green;}"
           text run at (156,0) width 1: " "
           text run at (0,15) width 0: " "
-      LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,95) size 784x18 [color=#008000]
         LayoutText {#text} at (0,0) size 197x18
           text run at (0,0) width 197: "This sentence should be green."
@@ -36,3 +35,5 @@
               LayoutBlockFlow {P} at (4,38) size 197x18 [color=#008000]
                 LayoutText {#text} at (0,0) size 197x18
                   text run at (0,0) width 197: "This sentence should be green."
+layer at (8,85) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/conformance/forward_compatible_parsing-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/conformance/forward_compatible_parsing-expected.txt
index 920d6b7..e80136a 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/conformance/forward_compatible_parsing-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/conformance/forward_compatible_parsing-expected.txt
@@ -113,7 +113,6 @@
           text run at (0,780) width 203: "P.twentyfour {color: red;}"
           text run at (202,780) width 1: " "
           text run at (0,795) width 0: " "
-      LayoutBlockFlow {HR} at (0,857) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,875) size 769x18 [color=#008000]
         LayoutText {#text} at (0,0) size 493x18
           text run at (0,0) width 493: "This paragraph should be green, because only the rotation should be ignored."
@@ -547,3 +546,5 @@
                 LayoutText {#text} at (0,0) size 743x36
                   text run at (0,0) width 743: "This paragraph should be black, because the color declaration after the previous ruleset should be considered part of"
                   text run at (0,18) width 656: "the selector for this ruleset, and this ruleset therefore has an invalid selector and should not be applied."
+layer at (8,865) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,857) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/canvas-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/canvas-expected.txt
index b841ec2..af8806a5 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/canvas-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/canvas-expected.txt
@@ -12,7 +12,6 @@
           text run at (234,0) width 1: " "
           text run at (0,15) width 539: "BODY {background-color: green; background-image: none; margin: 25px;}"
           text run at (538,15) width 1: " "
-      LayoutBlockFlow {HR} at (0,77) size 750x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,95) size 750x54
         LayoutText {#text} at (0,0) size 747x54
           text run at (0,0) width 392: "The body of this document should have a green background. "
@@ -39,3 +38,5 @@
                   text run at (0,18) width 434: "background set for the HTML element should surround the BODY. "
                   text run at (433,18) width 282: "If the BODY content is significantly shorter"
                   text run at (0,36) width 559: "than the browser's window height, then the bottom border may be larger than 25 pixels."
+layer at (25,102) size 750x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 750x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/floating_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/floating_elements-expected.txt
index b73b02db..552b60d 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/floating_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/floating_elements-expected.txt
@@ -25,14 +25,12 @@
           text run at (0,105) width 172: ".right {float: right;}"
           text run at (171,105) width 1: " "
           text run at (0,120) width 0: " "
-      LayoutBlockFlow {HR} at (0,182) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,200) size 769x54
         LayoutText {#text} at (0,0) size 762x54
           text run at (0,0) width 694: "On this test page, each test is performed once with floating paragraphs, and then again with floating images. "
           text run at (693,0) width 69: "Other than"
           text run at (0,18) width 728: "the substitution of images for pargraphs, the structure of the test is exactly the same, including the direction of the"
           text run at (0,36) width 39: "floats."
-      LayoutBlockFlow {HR} at (24,278) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,304) size 765x100 [border: (5px solid #800080)]
         LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
           LayoutText {#text} at (17,17) size 134x54
@@ -51,7 +49,6 @@
           text run at (199,41) width 342: "edge of this DIV, which means that the borders of the"
           text run at (199,59) width 328: "floating elements should not overlap the top or side"
           text run at (199,77) width 124: "borders of the DIV."
-      LayoutBlockFlow {HR} at (364.28,412) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,422) size 765x64 [border: (5px solid #800080)]
         LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
         LayoutImage (floating) {IMG} at (745,5) size 15x36 [border: (3px solid #000000)]
@@ -60,7 +57,6 @@
           text run at (197,5) width 547: "The floating images within this DIV should not go beyond the left or right inner edge"
           text run at (20,23) width 721: "of this DIV, which means that the borders of the floating images should not overlap the top or side borders of the"
           text run at (5,41) width 31: "DIV."
-      LayoutBlockFlow {HR} at (24,510) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,536) size 442x226 [border: (5px solid #800080)]
         LayoutBlockFlow (floating) {P} at (5,5) size 194x70 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
           LayoutText {#text} at (17,17) size 127x36
@@ -89,7 +85,6 @@
           text run at (114,167) width 303: "In addition, they should not overlap each other."
           text run at (5,185) width 432: "The first two should be side by side, whereas the third should be on"
           text run at (5,203) width 97: "the next \"line.\""
-      LayoutBlockFlow {HR} at (364.28,770) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,780) size 360x208 [border: (5px solid #800080)]
         LayoutImage (floating) {IMG} at (5,5) size 156x36 [border: (3px solid #000000)]
         LayoutImage (floating) {IMG} at (161,5) size 156x36 [border: (3px solid #000000)]
@@ -109,7 +104,6 @@
           text run at (201,149) width 148: "The first two should be"
           text run at (5,167) width 335: "side by side, whereas the third should be on the next"
           text run at (5,185) width 42: "\"line.\""
-      LayoutBlockFlow {HR} at (24,1012) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,1038) size 314x350 [border: (5px solid #800080)]
         LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
           LayoutText {#text} at (17,17) size 134x54
@@ -142,7 +136,6 @@
           text run at (5,291) width 299: "not be side-by-side, but instead the first should"
           text run at (5,309) width 279: "be floated left, and the second floated to the"
           text run at (5,327) width 130: "right below the first."
-      LayoutBlockFlow {HR} at (364.28,1396) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,1406) size 410x226 [border: (5px solid #800080)]
         LayoutImage (floating) {IMG} at (5,5) size 256x36 [border: (3px solid #000000)]
         LayoutImage (floating) {IMG} at (149,41) size 256x36 [border: (3px solid #000000)]
@@ -162,7 +155,6 @@
           text run at (5,167) width 391: "the floated images should not be side-by-side, but instead the"
           text run at (5,185) width 389: "first should be floated left, and the second floated to the right"
           text run at (5,203) width 96: "below the first."
-      LayoutBlockFlow {HR} at (24,1656) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,1682) size 765x118 [border: (5px solid #800080)]
         LayoutBlockFlow (floating) {P} at (566,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
           LayoutText {#text} at (17,17) size 143x54
@@ -183,7 +175,6 @@
           text run at (199,77) width 61: "any way. "
           text run at (259,77) width 271: "In addition, the top of the left-floating box"
           text run at (5,95) width 372: "should not be higher than the top of the right-floating box."
-      LayoutBlockFlow {HR} at (364.28,1808) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,1818) size 765x64 [border: (5px solid #800080)]
         LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
         LayoutImage (floating) {IMG} at (745,5) size 15x36 [border: (3px solid #000000)]
@@ -193,7 +184,6 @@
           text run at (20,23) width 718: "which means that the borders of the floating images should not overlap the top or side borders of the DIV in any"
           text run at (5,41) width 34: "way. "
           text run at (38,41) width 677: "In addition, the top of the left-floating image should not be higher than the top of the right-floating image."
-      LayoutBlockFlow {HR} at (24,1906) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,1932) size 765x136 [border: (5px solid #800080)]
         LayoutText {#text} at (199,5) size 186x18
           text run at (199,5) width 178: "This is text within the DIV. "
@@ -220,7 +210,6 @@
           text run at (5,95) width 50: "source. "
           text run at (54,95) width 494: "In order to mark these points clearly, an asterisk has been inserted just before"
           text run at (5,113) width 136: "each floated element."
-      LayoutBlockFlow {HR} at (364.28,2076) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2086) size 765x82 [border: (5px solid #800080)]
         LayoutText {#text} at (20,5) size 186x18
           text run at (20,5) width 178: "This is text within the DIV. "
@@ -236,7 +225,6 @@
           text run at (5,41) width 705: "as high as the top edge of the inline element containing the content just before the floating images occur in the"
           text run at (5,59) width 50: "source. "
           text run at (54,59) width 622: "In order to mark these points clearly, an asterisk has been inserted just before each floated image."
-      LayoutBlockFlow {HR} at (24,2192) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2218) size 765x262 [border: (5px solid #800080)]
         LayoutText {#text} at (199,5) size 186x18
           text run at (199,5) width 178: "This is text within the DIV. "
@@ -286,7 +274,6 @@
           text run at (5,221) width 739: "has room for a floated element, then the element should float so that its top is aligned with the top of the line-box in"
           text run at (5,239) width 177: "which the asterisk appears. "
           text run at (181,239) width 411: "Otherwise, its top should align with the top of the next line-box."
-      LayoutBlockFlow {HR} at (364.28,2488) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2498) size 765x118 [border: (5px solid #800080)]
         LayoutText {#text} at (20,5) size 186x18
           text run at (20,5) width 178: "This is text within the DIV. "
@@ -313,7 +300,6 @@
           text run at (20,77) width 739: "a line has room for a floated image, then the image should float so that its top is aligned with the top of the line-box"
           text run at (5,95) width 193: "in which the asterisk appears. "
           text run at (197,95) width 411: "Otherwise, its top should align with the top of the next line-box."
-      LayoutBlockFlow {HR} at (24,2640) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2666) size 490x298 [border: (5px solid #800080)]
         LayoutText {#text} at (199,5) size 56x18
           text run at (199,5) width 56: "This is *"
@@ -346,7 +332,6 @@
           text run at (5,239) width 475: "elements to align with the top of the line-box following the insertion point"
           text run at (5,257) width 449: "of the floated element to avoid floating elements appearing before text"
           text run at (5,275) width 269: "which precedes it in the source document."
-      LayoutBlockFlow {HR} at (364.28,2972) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2982) size 490x226 [border: (5px solid #800080)]
         LayoutText {#text} at (20,5) size 56x18
           text run at (20,5) width 56: "This is *"
@@ -369,7 +354,6 @@
           text run at (5,167) width 455: "to align with the top of the line-box following the insertion point of the"
           text run at (5,185) width 451: "floated element to avoid floating elements appearing before text which"
           text run at (5,203) width 226: "precedes it in the source document."
-      LayoutBlockFlow {HR} at (24,3232) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutTable {TABLE} at (0,3258) size 769x3079 [border: (1px outset #808080)]
         LayoutTableSection {TBODY} at (1,1) size 767x3077
           LayoutTableRow {TR} at (0,0) size 767x26
@@ -388,7 +372,6 @@
                   text run at (693,0) width 38: "Other"
                   text run at (0,18) width 736: "than the substitution of images for pargraphs, the structure of the test is exactly the same, including the direction of"
                   text run at (0,36) width 63: "the floats."
-              LayoutBlockFlow {HR} at (28,82) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,108) size 743x100 [border: (5px solid #800080)]
                 LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
                   LayoutText {#text} at (17,17) size 134x54
@@ -407,7 +390,6 @@
                   text run at (199,41) width 338: "inner edge of this DIV, which means that the borders"
                   text run at (199,59) width 340: "of the floating elements should not overlap the top or"
                   text run at (199,77) width 153: "side borders of the DIV."
-              LayoutBlockFlow {HR} at (357.83,216) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,226) size 743x64 [border: (5px solid #800080)]
                 LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
                 LayoutImage (floating) {IMG} at (723,5) size 15x36 [border: (3px solid #000000)]
@@ -416,7 +398,6 @@
                   text run at (197,5) width 512: "The floating images within this DIV should not go beyond the left or right inner"
                   text run at (20,23) width 662: "edge of this DIV, which means that the borders of the floating images should not overlap the top or side"
                   text run at (5,41) width 124: "borders of the DIV."
-              LayoutBlockFlow {HR} at (28,314) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,340) size 442x226 [border: (5px solid #800080)]
                 LayoutBlockFlow (floating) {P} at (5,5) size 194x70 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
                   LayoutText {#text} at (17,17) size 127x36
@@ -445,7 +426,6 @@
                   text run at (114,167) width 303: "In addition, they should not overlap each other."
                   text run at (5,185) width 432: "The first two should be side by side, whereas the third should be on"
                   text run at (5,203) width 97: "the next \"line.\""
-              LayoutBlockFlow {HR} at (357.83,574) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,584) size 360x208 [border: (5px solid #800080)]
                 LayoutImage (floating) {IMG} at (5,5) size 156x36 [border: (3px solid #000000)]
                 LayoutImage (floating) {IMG} at (161,5) size 156x36 [border: (3px solid #000000)]
@@ -465,7 +445,6 @@
                   text run at (201,149) width 148: "The first two should be"
                   text run at (5,167) width 335: "side by side, whereas the third should be on the next"
                   text run at (5,185) width 42: "\"line.\""
-              LayoutBlockFlow {HR} at (28,816) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,842) size 314x350 [border: (5px solid #800080)]
                 LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
                   LayoutText {#text} at (17,17) size 134x54
@@ -498,7 +477,6 @@
                   text run at (5,291) width 299: "not be side-by-side, but instead the first should"
                   text run at (5,309) width 279: "be floated left, and the second floated to the"
                   text run at (5,327) width 130: "right below the first."
-              LayoutBlockFlow {HR} at (357.83,1200) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,1210) size 410x226 [border: (5px solid #800080)]
                 LayoutImage (floating) {IMG} at (5,5) size 256x36 [border: (3px solid #000000)]
                 LayoutImage (floating) {IMG} at (149,41) size 256x36 [border: (3px solid #000000)]
@@ -518,7 +496,6 @@
                   text run at (5,167) width 391: "the floated images should not be side-by-side, but instead the"
                   text run at (5,185) width 389: "first should be floated left, and the second floated to the right"
                   text run at (5,203) width 96: "below the first."
-              LayoutBlockFlow {HR} at (28,1460) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,1486) size 743x118 [border: (5px solid #800080)]
                 LayoutBlockFlow (floating) {P} at (544,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
                   LayoutText {#text} at (17,17) size 143x54
@@ -539,7 +516,6 @@
                   text run at (199,77) width 134: "the DIV in any way. "
                   text run at (332,77) width 194: "In addition, the top of the left-"
                   text run at (5,95) width 453: "floating box should not be higher than the top of the right-floating box."
-              LayoutBlockFlow {HR} at (357.83,1612) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,1622) size 743x82 [border: (5px solid #800080)]
                 LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
                 LayoutImage (floating) {IMG} at (723,5) size 15x36 [border: (3px solid #000000)]
@@ -550,7 +526,6 @@
                   text run at (5,41) width 110: "DIV in any way. "
                   text run at (114,41) width 581: "In addition, the top of the left-floating image should not be higher than the top of the right-"
                   text run at (5,59) width 96: "floating image."
-              LayoutBlockFlow {HR} at (28,1728) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,1754) size 743x136 [border: (5px solid #800080)]
                 LayoutText {#text} at (199,5) size 186x18
                   text run at (199,5) width 178: "This is text within the DIV. "
@@ -576,7 +551,6 @@
                   text run at (5,95) width 191: "elements occur in the source. "
                   text run at (195,95) width 333: "In order to mark these points clearly, an asterisk has"
                   text run at (5,113) width 297: "been inserted just before each floated element."
-              LayoutBlockFlow {HR} at (357.83,1898) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,1908) size 743x82 [border: (5px solid #800080)]
                 LayoutText {#text} at (20,5) size 186x18
                   text run at (20,5) width 178: "This is text within the DIV. "
@@ -592,7 +566,6 @@
                   text run at (5,41) width 704: "most, as high as the top edge of the inline element containing the content just before the floating images occur"
                   text run at (5,59) width 90: "in the source. "
                   text run at (94,59) width 622: "In order to mark these points clearly, an asterisk has been inserted just before each floated image."
-              LayoutBlockFlow {HR} at (28,2014) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,2040) size 743x226 [border: (5px solid #800080)]
                 LayoutText {#text} at (199,5) size 186x18
                   text run at (199,5) width 178: "This is text within the DIV. "
@@ -638,7 +611,6 @@
                   text run at (257,167) width 461: "If a line has room for a floated element, then the element should float so"
                   text run at (199,185) width 505: "that its top is aligned with the top of the line-box in which the asterisk appears."
                   text run at (199,203) width 411: "Otherwise, its top should align with the top of the next line-box."
-              LayoutBlockFlow {HR} at (357.83,2277) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,2287) size 743x118 [border: (5px solid #800080)]
                 LayoutText {#text} at (20,5) size 186x18
                   text run at (20,5) width 178: "This is text within the DIV. "
@@ -665,7 +637,6 @@
                   text run at (67,77) width 655: "If a line has room for a floated image, then the image should float so that its top is aligned with the top"
                   text run at (5,95) width 292: "of the line-box in which the asterisk appears. "
                   text run at (296,95) width 411: "Otherwise, its top should align with the top of the next line-box."
-              LayoutBlockFlow {HR} at (28,2429) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,2455) size 490x298 [border: (5px solid #800080)]
                 LayoutText {#text} at (199,5) size 56x18
                   text run at (199,5) width 56: "This is *"
@@ -698,7 +669,6 @@
                   text run at (5,239) width 475: "elements to align with the top of the line-box following the insertion point"
                   text run at (5,257) width 449: "of the floated element to avoid floating elements appearing before text"
                   text run at (5,275) width 269: "which precedes it in the source document."
-              LayoutBlockFlow {HR} at (357.83,2761) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,2771) size 490x226 [border: (5px solid #800080)]
                 LayoutText {#text} at (20,5) size 56x18
                   text run at (20,5) width 56: "This is *"
@@ -721,4 +691,65 @@
                   text run at (5,167) width 455: "to align with the top of the line-box following the insertion point of the"
                   text run at (5,185) width 451: "floated element to avoid floating elements appearing before text which"
                   text run at (5,203) width 226: "precedes it in the source document."
-              LayoutBlockFlow {HR} at (28,3021) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (8,190) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,182) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (32,286) size 579x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,278) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,420) size 41x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,412) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,518) size 579x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,510) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,778) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,770) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1020) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,1012) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,1404) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,1396) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1664) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,1656) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,1816) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,1808) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1914) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,1906) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2084) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2076) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,2200) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,2192) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2496) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2488) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,2648) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,2640) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2980) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2972) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,3240) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,3232) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (49,3375) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,82) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,3509) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,216) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,3607) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,314) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,3867) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,574) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,4109) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,816) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,4493) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1200) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,4753) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,1460) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,4905) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1612) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5021) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,1728) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,5191) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1898) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5307) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,2014) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,5570) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,2277) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5722) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,2429) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,6054) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,2761) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,6314) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,3021) size 562.25x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/height_of_lines-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/height_of_lines-expected.txt
index 22fe4ab..89394bd2 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/height_of_lines-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/height_of_lines-expected.txt
@@ -41,7 +41,6 @@
           text run at (0,240) width 313: "     border-width: 10px; margin: -10px;}"
           text run at (312,240) width 1: " "
           text run at (0,255) width 0: " "
-      LayoutBlockFlow {HR} at (0,317) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,333) size 769x443
         LayoutText {#text} at (0,1) size 768x239
           text run at (0,1) width 413: "This paragraph should have a font size of 14px and a line height of 20px. "
@@ -130,3 +129,5 @@
                   text run at (426,423) width 8: ". "
                   text run at (433,423) width 307: "The last image in this paragraph has -10px margins set"
                   text run at (0,464) width 635: "on it, so that should pull the text in toward the image in the vertical direction, and also in the horizontal direction."
+layer at (8,325) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,317) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/inline_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/inline_elements-expected.txt
index fba4ccc..c3e467e 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/inline_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/inline_elements-expected.txt
@@ -21,7 +21,6 @@
           text run at (0,75) width 188: "          padding: 2pt;}"
           text run at (187,75) width 1: " "
           text run at (0,90) width 0: " "
-      LayoutBlockFlow {HR} at (0,152) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,170) size 769x192
         LayoutText {#text} at (0,7) size 191x18
           text run at (0,7) width 191: "This is a paragraph that has a "
@@ -94,3 +93,5 @@
                 LayoutText {#text} at (169,48) size 410x15
                   text run at (169,48) width 4: " "
                   text run at (172,48) width 407: "The line spacing in the whole paragraph should be 12pt, with font-size 10pt."
+layer at (8,160) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,152) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/replaced_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/replaced_elements-expected.txt
index 7984b604..8d72bab 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/replaced_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/replaced_elements-expected.txt
@@ -24,7 +24,6 @@
           text run at (195,90) width 1: " "
           text run at (0,105) width 453: "          margin-right: 0; margin-left: auto; width: 50%;}"
           text run at (452,105) width 1: " "
-      LayoutBlockFlow {HR} at (0,167) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,185) size 769x19
         LayoutImage {IMG} at (0,0) size 15x15
         LayoutText {#text} at (15,1) size 442x18
@@ -85,3 +84,5 @@
                   text run at (0,0) width 733: "The above image should be a square resized so its width is 50% of its parent element, and aligned at the right edge"
                   text run at (0,18) width 144: "of the parent element: "
                   text run at (143,18) width 404: "the document body in the first half, and the table in the second."
+layer at (8,175) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,167) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/vertical_formatting-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/vertical_formatting-expected.txt
index f77ea8c..2f2bbda 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/vertical_formatting-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/formatting_model/vertical_formatting-expected.txt
@@ -47,7 +47,6 @@
           text run at (0,270) width 157: "TABLE {clear: both;}"
           text run at (156,270) width 1: " "
           text run at (0,285) width 0: " "
-      LayoutBlockFlow {HR} at (0,347) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,365) size 769x36
         LayoutText {#text} at (0,0) size 769x36
           text run at (0,0) width 769: "There should be a two-centimeter margin between this paragraph and the next, because adjacent vertical margins should"
@@ -170,3 +169,5 @@
               LayoutBlockFlow {P} at (4,975) size 747x55.78
                 LayoutText {#text} at (0,38) size 171x18
                   text run at (0,38) width 171: "This is the next paragraph."
+layer at (8,355) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,347) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/anchor-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/anchor-expected.txt
index f9cd662..f05bc76 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/anchor-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/anchor-expected.txt
@@ -19,7 +19,6 @@
           text run at (0,60) width 172: "#one {color: #006600;}"
           text run at (171,60) width 1: " "
           text run at (0,75) width 0: " "
-      LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,155) size 769x18
         LayoutText {#text} at (0,0) size 508x18
           text run at (0,0) width 508: "The following anchors should appear as described; none of them should be red."
@@ -160,3 +159,5 @@
                   text run at (543,0) width 196: "It's a named anchor, and styles"
                   text run at (0,18) width 356: "declared for the A tag are applied to them under CSS1. "
                   text run at (355,18) width 330: "It also should NOT turn orange when clicked upon."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/firstletter-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/firstletter-expected.txt
index ba29d2a..a1c8a341 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/firstletter-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/firstletter-expected.txt
@@ -18,7 +18,6 @@
           text run at (0,30) width 305: "P.three:first-letter {font-size: 350%;}"
           text run at (304,30) width 1: " "
           text run at (0,45) width 0: " "
-      LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,125) size 769x54
         LayoutInline {<pseudo:first-letter>} at (0,0) size 10x18 [color=#800000]
           LayoutTextFragment (anonymous) at (0,0) size 10x18
@@ -91,3 +90,5 @@
                   text run at (0,64) width 628: "quote mark and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon. "
                   text run at (627,64) width 102: "Note that this is"
                   text run at (0,82) width 314: "not required under CSS1, but it is recommended."
+layer at (8,115) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/firstline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/firstline-expected.txt
index fef97b0..16c84f1 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/firstline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/firstline-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,30) width 352: ".three:first-line {font-variant: small-caps;}"
           text run at (351,30) width 1: " "
           text run at (0,45) width 0: " "
-      LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,125) size 769x54
         LayoutText {#text} at (0,0) size 757x54
           text run at (0,0) width 431: "The first line of this paragraph, and only that one, should be green. "
@@ -81,3 +80,5 @@
                   text run at (312,36) width 230: " is not supported by your browser). "
                   text run at (541,36) width 189: "This is extra text included for"
                   text run at (0,54) width 503: "the purposes of making the paragraph long enough to have more than one line."
+layer at (8,115) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/multiple_pseudo_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/multiple_pseudo_elements-expected.txt
index a6bb4d6..6e070d9 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/multiple_pseudo_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/multiple_pseudo_elements-expected.txt
@@ -24,7 +24,6 @@
           text run at (0,75) width 359: "P.three:first-line {font-variant: small-caps;}"
           text run at (358,75) width 1: " "
           text run at (0,90) width 0: " "
-      LayoutBlockFlow {HR} at (0,152) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,170) size 769x54
         LayoutInline {<pseudo:first-letter>} at (0,0) size 10x18 [color=#800000]
           LayoutTextFragment (anonymous) at (0,0) size 10x18
@@ -103,3 +102,5 @@
                   text run at (0,82) width 743: "Note that the inclusion of both the quotation mark and the 'W' in the first-letter style is not required under CSS1, but"
                   text run at (0,100) width 127: "it is recommended. "
                   text run at (126,100) width 461: "In addition, the entire first line should be in a small-caps font and green."
+layer at (8,160) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,152) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/pseudo_elements_in_selectors-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/pseudo_elements_in_selectors-expected.txt
index 8fef4a6..304a115 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/pseudo_elements_in_selectors-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/pseudo/pseudo_elements_in_selectors-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,30) width 250: "P:first-line.three {color: red;}"
           text run at (249,30) width 1: " "
           text run at (0,45) width 0: " "
-      LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,125) size 784x36
         LayoutText {#text} at (0,0) size 730x36
           text run at (0,0) width 344: "The first line of this sentence should be boldfaced. "
@@ -75,3 +74,5 @@
                   text run at (455,18) width 284: "If neither is the case, then the user agent has"
                   text run at (0,36) width 703: "correctly ignored the incorrect selector, but has suppressed other styles which are valid, and therefore must be"
                   text run at (0,54) width 215: "considered to have failed the test."
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/units/color_units-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/units/color_units-expected.txt
index e29c5f0..9265bd19 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/units/color_units-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/units/color_units-expected.txt
@@ -32,7 +32,6 @@
           text run at (257,150) width 1: " "
           text run at (0,165) width 258: ".eleven {color: rgb(50%,0%,60%);}"
           text run at (257,165) width 1: " "
-      LayoutBlockFlow {HR} at (0,227) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,245) size 769x18
         LayoutText {#text} at (0,0) size 196x18
           text run at (0,0) width 196: "This sentence should be black."
@@ -237,3 +236,5 @@
                     text run at (284,2) width 40: "style"
                 LayoutText {#text} at (323,0) size 63x18
                   text run at (323,0) width 63: " attribute."
+layer at (8,235) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,227) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/units/length_units-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/units/length_units-expected.txt
index 611e5c90..78e7cec5 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/units/length_units-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/units/length_units-expected.txt
@@ -30,7 +30,6 @@
           text run at (202,135) width 1: " "
           text run at (0,150) width 609: ".ten {font-size: 40px; border-left: 1ex solid purple; background-color: aqua;}"
           text run at (608,150) width 1: " "
-      LayoutBlockFlow {HR} at (0,212) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,230) size 769x36
         LayoutText {#text} at (0,0) size 737x36
           text run at (0,0) width 737: "This paragraph has no left margin. The following paragraphs have all been given a left margin and their left (outer)"
@@ -170,3 +169,5 @@
                   text run at (17,138) width 708: "the same number of pixels as the lower-case"
                   text run at (17,184) width 642: "'x' in this element's font, as well as solid"
                   text run at (17,230) width 114: "purple."
+layer at (8,220) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,212) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/units/percentage_units-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/units/percentage_units-expected.txt
index b169816..582540ac 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/units/percentage_units-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/units/percentage_units-expected.txt
@@ -17,7 +17,6 @@
           text run at (0,45) width 203: ".three {margin-left: 25%;}"
           text run at (202,45) width 1: " "
           text run at (0,60) width 0: " "
-      LayoutBlockFlow {HR} at (0,122) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,140) size 784x124 [bgcolor=#FFFF00]
         LayoutBlockFlow {DIV} at (196,0) size 392x54 [bgcolor=#FFFFFF]
           LayoutBlockFlow {P} at (0,0) size 392x54
@@ -64,3 +63,5 @@
                 LayoutText {#text} at (0,0) size 560x36
                   text run at (0,0) width 560: "This paragraph should have a left margin of 25% the width of its parent element, which"
                   text run at (0,18) width 366: "should require some extra text in order to test effectively."
+layer at (8,130) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,122) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/css1/units/urls-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/css1/units/urls-expected.txt
index 29ce16fd..24cd269c 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/css1/units/urls-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/css1/units/urls-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,30) width 344: "BODY {background: url(../resources/bg.gif);}"
           text run at (343,30) width 1: " "
           text run at (0,45) width 0: " "
-      LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,125) size 784x18
         LayoutText {#text} at (0,0) size 393x18
           text run at (0,0) width 393: "This page should have a green grid pattern as its background."
@@ -58,3 +57,5 @@
                   text run at (626,0) width 122: "If an image, in this"
                   text run at (0,18) width 722: "case a red square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in"
                   text run at (0,36) width 370: "relation to the document's URL, not the stylesheet's URL."
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/editing/inserting/4278698-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/editing/inserting/4278698-expected.txt
index 00f13224..5d08fa3 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/editing/inserting/4278698-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/editing/inserting/4278698-expected.txt
@@ -15,9 +15,10 @@
       LayoutBlockFlow {P} at (0,52) size 784x18
         LayoutText {#text} at (0,0) size 450x18
           text run at (0,0) width 450: "If successful, you should see 'a' followed by 10 spaces followed by 'b'."
-      LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,96) size 784x23 [border: (2px solid #FFAAAA)]
         LayoutBlockFlow {PRE} at (2,2) size 780x19 [border: (2px solid #AAAAFF)]
           LayoutText {#text} at (2,2) size 94x15
             text run at (2,2) width 94: "a          b"
+layer at (8,94) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 3 of child 0 {#text} of child 1 {PRE} of child 7 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/mac/editing/pasteboard/drop-text-without-selection-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/editing/pasteboard/drop-text-without-selection-expected.txt
index 8d699b5..953000e8 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/editing/pasteboard/drop-text-without-selection-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/editing/pasteboard/drop-text-without-selection-expected.txt
@@ -23,7 +23,6 @@
         LayoutText {#text} at (0,0) size 667x18
           text run at (0,0) width 487: "The text field should accept drag-and-dropped text, such as the link, even if "
           text run at (486,0) width 181: "no text is currently selected."
-      LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,96) size 784x19
         LayoutTextControl {INPUT} at (0,0) size 131x19 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
         LayoutText {#text} at (131,0) size 4x18
@@ -33,6 +32,8 @@
             text run at (135,0) width 166: "drop me into the text field"
         LayoutText {#text} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,94) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (11,107) size 125x13
   LayoutBlockFlow {DIV} at (3,3) size 125x13
     LayoutText {#text} at (0,0) size 110x13
diff --git a/third_party/WebKit/LayoutTests/platform/mac/editing/selection/4402375-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/editing/selection/4402375-expected.txt
index c4ae245..9e2046c0 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/editing/selection/4402375-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/editing/selection/4402375-expected.txt
@@ -13,7 +13,6 @@
         LayoutText {#text} at (287,0) size 774x36
           text run at (287,0) width 487: " \"REGRESSION (417.8-TOT): finding text sometimes also selects previous"
           text run at (0,18) width 139: "image (5127) (6451)\""
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,70) size 784x36
         LayoutText {#text} at (0,0) size 759x36
           text run at (0,0) width 424: "This test uses a right aligned image next to some left aligned text. "
@@ -23,5 +22,7 @@
         LayoutImage (floating) {IMG} at (708,0) size 76x103
         LayoutText {#text} at (0,0) size 182x18
           text run at (0,0) width 182: "This text should be selected."
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
 selection start: position 0 of child 1 {#text} of child 6 {DIV} of body
 selection end:   position 29 of child 1 {#text} of child 6 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/mac/editing/selection/6476-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/editing/selection/6476-expected.txt
index f2950c6..403c9cf 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/editing/selection/6476-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/editing/selection/6476-expected.txt
@@ -15,7 +15,6 @@
         LayoutInline {SPAN} at (0,0) size 1x18
         LayoutText {#text} at (0,18) size 185x18
           text run at (0,18) width 185: "thisshouldbeonthesecondline"
-      LayoutBlockFlow {HR} at (0,44) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,62) size 784x36
         LayoutText {#text} at (0,0) size 135x18
           text run at (0,0) width 135: "This is a testcase for "
@@ -32,4 +31,6 @@
           text run at (324,0) width 459: "To run it manually, click in the space after all the text on the first line in"
           text run at (0,18) width 170: "the above editable region. "
           text run at (169,18) width 394: "Clicking should create a caret after the first space after the 'e'."
+layer at (8,52) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,44) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 1 of child 2 {#text} of child 1 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/mac/editing/selection/click-start-of-line-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/editing/selection/click-start-of-line-expected.txt
index f28e6756..6897154 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/editing/selection/click-start-of-line-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/editing/selection/click-start-of-line-expected.txt
@@ -21,10 +21,11 @@
         LayoutText {#text} at (0,0) size 746x18
           text run at (0,0) width 562: "To test interactively, click the left side of the W on the second line. The caret should be "
           text run at (561,0) width 185: "move to the start of that line."
-      LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,96) size 250x110
         LayoutText {#text} at (0,0) size 234x110
           text run at (0,0) width 154: "Alice in"
           text run at (153,0) width 13: " "
           text run at (0,55) width 234: "Wonderland"
+layer at (8,94) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 10 of child 0 {#text} of child 7 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/backgrounds/background-inherit-color-bug-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/backgrounds/background-inherit-color-bug-expected.txt
index 8a6fced..9af56176 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/backgrounds/background-inherit-color-bug-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/backgrounds/background-inherit-color-bug-expected.txt
@@ -7,13 +7,11 @@
         LayoutBlockFlow {P} at (4,20) size 615.19x18
           LayoutText {#text} at (0,0) size 596x18
             text run at (0,0) width 596: "Affected Browsers: Safari 2.0, Windows Internet Explorer 6 SP2"
-        LayoutBlockFlow {HR} at (4,54) size 615.19x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (4,72) size 615.19x54
           LayoutText {#text} at (0,0) size 586x54
             text run at (0,0) width 586: "Bug Description: On the Affected Browsers, if a rule sets the"
             text run at (0,18) width 519: "'background-color' of an element, this color cannot be"
             text run at (0,36) width 461: "overridden by 'background:inherit' declarations."
-        LayoutBlockFlow {HR} at (4,142) size 615.19x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (4,160) size 615.19x90
           LayoutText {#text} at (0,0) size 615x54
             text run at (0,0) width 577: "Example: With the following code, the background color of H1"
@@ -27,13 +25,11 @@
           LayoutText {#text} at (0,72) size 279x18
             text run at (0,72) width 48: "  H1 "
             text run at (48,72) width 231: "{ background: inherit; }"
-        LayoutBlockFlow {HR} at (4,266) size 615.19x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (4,284) size 615.19x54
           LayoutText {#text} at (0,0) size 586x54
             text run at (0,0) width 586: "Work-around: The 'background-color' can only be overridden by"
             text run at (0,18) width 577: "another 'background-color' declaration, or by a 'background'"
             text run at (0,36) width 365: "declaration that does specify a color."
-        LayoutBlockFlow {HR} at (4,354) size 615.19x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow (anonymous) at (4,364) size 615.19x18
           LayoutText {#text} at (0,0) size 409x18
             text run at (0,0) width 409: "This is in contradiction with the CSS2 specification which says:"
@@ -74,3 +70,11 @@
           LayoutText {#text} at (4,4) size 485x74
             text run at (4,4) width 485: "This header has a pink background"
             text run at (4,41) width 218: "and that's good."
+layer at (85,62) size 615x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,54) size 615.19x2 [border: (1px inset #EEEEEE)]
+layer at (85,150) size 615x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,142) size 615.19x2 [border: (1px inset #EEEEEE)]
+layer at (85,274) size 615x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,266) size 615.19x2 [border: (1px inset #EEEEEE)]
+layer at (85,362) size 615x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,354) size 615.19x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/css-generated-content/014-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/css-generated-content/014-expected.txt
index 3700863..266e1483 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/css-generated-content/014-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/css-generated-content/014-expected.txt
@@ -70,7 +70,6 @@
         LayoutInline {CODE} at (0,0) size 430x15
           LayoutText {#text} at (0,0) size 430x15
             text run at (0,0) width 430: "div.box.one:after{ content:'generated content here!'; }"
-      LayoutBlockFlow {HR} at (0,375.44) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {H2} at (0,397.34) size 769x28
         LayoutText {#text} at (0,0) size 477x28
           text run at (0,0) width 477: "Example (view source to see CSS and HTML):"
@@ -104,3 +103,5 @@
           LayoutBlockFlow {<pseudo:after>} at (0,18) size 717x18 [color=#008000]
             LayoutTextFragment (anonymous) at (0,0) size 114x18
               text run at (0,0) width 114: "generated content"
+layer at (8,397) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,375.44) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/css-generated-content/016-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/css-generated-content/016-expected.txt
index 044cfc4..ab214b3d 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/css-generated-content/016-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/css-generated-content/016-expected.txt
@@ -9,7 +9,6 @@
       LayoutBlockFlow {P} at (0,34) size 784x18
         LayoutText {#text} at (0,0) size 330x18
           text run at (0,0) width 330: "The href attribute of the last one is changed onload."
-      LayoutBlockFlow {HR} at (0,68) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,86) size 784x18
         LayoutInline {A} at (0,0) size 62x18 [color=#0000EE]
           LayoutText {#text} at (0,0) size 8x18
@@ -38,3 +37,5 @@
           LayoutInline {<pseudo:after>} at (0,0) size 54x18
             LayoutTextFragment (anonymous) at (8,0) size 54x18
               text run at (8,0) width 54: "(href=4)"
+layer at (8,84) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,68) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/css-generated-content/hover-style-change-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/css-generated-content/hover-style-change-expected.txt
index e35d691..675c764 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/css-generated-content/hover-style-change-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/css-generated-content/hover-style-change-expected.txt
@@ -9,7 +9,6 @@
         LayoutInline {<pseudo:after>} at (0,0) size 182x18
           LayoutTextFragment (anonymous) at (84,0) size 182x18
             text run at (84,0) width 182: "and generated hover content"
-      LayoutBlockFlow {HR} at (0,26) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,44) size 784x36
         LayoutText {#text} at (0,0) size 54x18
           text run at (0,0) width 54: "Test for "
@@ -34,4 +33,6 @@
           text run at (0,0) width 765: "To reproduce the bug outside of DumpRenderTree, mouse over the div several times, and the style change won't update"
           text run at (0,18) width 72: "every time "
           text run at (71,18) width 89: "like it should."
+layer at (8,34) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,26) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 3 of child 0 {#text} of child 1 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/css/find-next-layer-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/css/find-next-layer-expected.txt
index e03436a..47aaa04 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/css/find-next-layer-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/css/find-next-layer-expected.txt
@@ -16,7 +16,8 @@
             text run at (0,18) width 54: "live.com"
         LayoutText {#text} at (53,18) size 5x18
           text run at (53,18) width 5: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,70) size 784x0
   LayoutBlockFlow (relative positioned) {DIV} at (0,62) size 784x0
 layer at (8,70) size 100x100
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/css/first-letter-detach-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/css/first-letter-detach-expected.txt
index 1f37c59..f1ac489 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/css/first-letter-detach-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/css/first-letter-detach-expected.txt
@@ -23,7 +23,6 @@
             text run at (235,0) width 10: "P"
         LayoutText {#text} at (244,0) size 211x18
           text run at (244,0) width 211: "ASS\x{201D}, with nothing before the P."
-      LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,104) size 784x18
         LayoutInline {<pseudo:first-letter>} at (0,0) size 9x18 [color=#0000FF]
           LayoutTextFragment (anonymous) at (0,0) size 9x18
@@ -42,3 +41,5 @@
             text run at (0,0) width 9: "P"
         LayoutTextFragment {#text} at (8,0) size 31x18
           text run at (8,0) width 31: "ASS"
+layer at (8,94) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/css/h1-in-section-elements-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/css/h1-in-section-elements-expected.txt
index 8ff676d0..145569a 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/css/h1-in-section-elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/css/h1-in-section-elements-expected.txt
@@ -12,65 +12,49 @@
           LayoutTableRow {TR} at (0,2) size 150x76
             LayoutTableCell {TD} at (2,2) size 72x75.81 [r=0 c=0 rs=1 cs=1]
               LayoutBlockFlow {SECTION} at (1,1) size 70x73.81
-                LayoutBlockFlow {HR} at (0,0) size 70x2 [border: (1px inset #EEEEEE)]
                 LayoutBlockFlow {H1} at (0,21.91) size 70x30 [border: (1px solid #00FF00)]
                   LayoutText {#text} at (1,1) size 68x28
                     text run at (1,1) width 68: "MMM"
-                LayoutBlockFlow {HR} at (0,71.81) size 70x2 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (76,2) size 72x75.81 [r=0 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 70x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H2} at (1,22.91) size 70x30 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 68x28
                   text run at (1,1) width 68: "MMM"
-              LayoutBlockFlow {HR} at (1,72.81) size 70x2 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (0,80) size 150x67
             LayoutTableCell {TD} at (2,80) size 72x67.44 [r=1 c=0 rs=1 cs=1]
               LayoutBlockFlow {ARTICLE} at (1,1) size 70x65.44
                 LayoutBlockFlow {SECTION} at (0,0) size 70x65.44
-                  LayoutBlockFlow {HR} at (0,0) size 70x2 [border: (1px inset #EEEEEE)]
                   LayoutBlockFlow {H1} at (0,20.72) size 70x24 [border: (1px solid #00FF00)]
                     LayoutText {#text} at (1,1) size 53x22
                       text run at (1,1) width 53: "MMM"
-                  LayoutBlockFlow {HR} at (0,63.44) size 70x2 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (76,80) size 72x67.44 [r=1 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 70x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H3} at (1,21.72) size 70x24 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 53x22
                   text run at (1,1) width 53: "MMM"
-              LayoutBlockFlow {HR} at (1,64.44) size 70x2 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (0,149) size 150x69
             LayoutTableCell {TD} at (2,149) size 72x68.53 [r=2 c=0 rs=1 cs=1]
               LayoutBlockFlow {NAV} at (1,1) size 70x66.53
                 LayoutBlockFlow {ARTICLE} at (0,0) size 70x66.53
                   LayoutBlockFlow {SECTION} at (0,0) size 70x66.53
-                    LayoutBlockFlow {HR} at (0,0) size 70x2 [border: (1px inset #EEEEEE)]
                     LayoutBlockFlow {H1} at (0,23.27) size 70x20 [border: (1px solid #00FF00)]
                       LayoutText {#text} at (1,1) size 46x18
                         text run at (1,1) width 46: "MMM"
-                    LayoutBlockFlow {HR} at (0,64.53) size 70x2 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (76,149) size 72x68.53 [r=2 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 70x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H4} at (1,24.27) size 70x20 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 46x18
                   text run at (1,1) width 46: "MMM"
-              LayoutBlockFlow {HR} at (1,65.53) size 70x2 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (0,220) size 150x67
             LayoutTableCell {TD} at (2,220) size 72x67.34 [r=3 c=0 rs=1 cs=1]
               LayoutBlockFlow {NAV} at (1,1) size 70x65.34
                 LayoutBlockFlow {ASIDE} at (0,0) size 70x65.34
                   LayoutBlockFlow {ARTICLE} at (0,0) size 70x65.34
                     LayoutBlockFlow {SECTION} at (0,0) size 70x65.34
-                      LayoutBlockFlow {HR} at (0,0) size 70x2 [border: (1px inset #EEEEEE)]
                       LayoutBlockFlow {H1} at (0,24.17) size 70x17 [border: (1px solid #00FF00)]
                         LayoutText {#text} at (1,1) size 38x15
                           text run at (1,1) width 38: "MMM"
-                      LayoutBlockFlow {HR} at (0,63.34) size 70x2 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (76,220) size 72x67.34 [r=3 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 70x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H5} at (1,25.17) size 70x17 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 38x15
                   text run at (1,1) width 38: "MMM"
-              LayoutBlockFlow {HR} at (1,64.34) size 70x2 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (0,289) size 150x71
             LayoutTableCell {TD} at (2,289) size 72x70.94 [r=4 c=0 rs=1 cs=1]
               LayoutBlockFlow {SECTION} at (1,1) size 70x68.94
@@ -79,82 +63,62 @@
                     LayoutBlockFlow {ASIDE} at (0,0) size 70x68.94
                       LayoutBlockFlow {ARTICLE} at (0,0) size 70x68.94
                         LayoutBlockFlow {SECTION} at (0,0) size 70x68.94
-                          LayoutBlockFlow {HR} at (0,0) size 70x2 [border: (1px inset #EEEEEE)]
                           LayoutBlockFlow {H1} at (0,26.97) size 70x15 [border: (1px solid #00FF00)]
                             LayoutText {#text} at (1,1) size 31x13
                               text run at (1,1) width 31: "MMM"
-                          LayoutBlockFlow {HR} at (0,66.94) size 70x2 [border: (1px inset #EEEEEE)]
                   LayoutBlockFlow {DIV} at (0,68.94) size 70x0
             LayoutTableCell {TD} at (76,289) size 72x70.94 [r=4 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 70x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H6} at (1,27.97) size 70x15 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 31x13
                   text run at (1,1) width 31: "MMM"
-              LayoutBlockFlow {HR} at (1,67.94) size 70x2 [border: (1px inset #EEEEEE)]
       LayoutTable {TABLE} at (150,34) size 362x150
         LayoutTableSection {TBODY} at (0,0) size 362x150
           LayoutTableRow {TR} at (2,0) size 76x150
             LayoutTableCell {TD} at (2,2) size 75.81x72 [r=0 c=0 rs=1 cs=1]
               LayoutBlockFlow {SECTION} at (1,1) size 73.81x70
-                LayoutBlockFlow {HR} at (0,0) size 2x70 [border: (1px inset #EEEEEE)]
                 LayoutBlockFlow {H1} at (21.91,0) size 30x70 [border: (1px solid #00FF00)]
                   LayoutText {#text} at (1,1) size 28x68
                     text run at (1,1) width 68: "MMM"
-                LayoutBlockFlow {HR} at (71.81,0) size 2x70 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (2,76) size 75.81x72 [r=0 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x70 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H2} at (22.91,1) size 30x70 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 28x68
                   text run at (1,1) width 68: "MMM"
-              LayoutBlockFlow {HR} at (72.81,1) size 2x70 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (80,0) size 67x150
             LayoutTableCell {TD} at (80,2) size 67.44x72 [r=1 c=0 rs=1 cs=1]
               LayoutBlockFlow {ARTICLE} at (1,1) size 65.44x70
                 LayoutBlockFlow {SECTION} at (0,0) size 65.44x70
-                  LayoutBlockFlow {HR} at (0,0) size 2x70 [border: (1px inset #EEEEEE)]
                   LayoutBlockFlow {H1} at (20.72,0) size 24x70 [border: (1px solid #00FF00)]
                     LayoutText {#text} at (1,1) size 22x53
                       text run at (1,1) width 53: "MMM"
-                  LayoutBlockFlow {HR} at (63.44,0) size 2x70 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (80,76) size 67.44x72 [r=1 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x70 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H3} at (21.72,1) size 24x70 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 22x53
                   text run at (1,1) width 53: "MMM"
-              LayoutBlockFlow {HR} at (64.44,1) size 2x70 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (149,0) size 69x150
             LayoutTableCell {TD} at (149,2) size 68.53x72 [r=2 c=0 rs=1 cs=1]
               LayoutBlockFlow {NAV} at (1,1) size 66.53x70
                 LayoutBlockFlow {ARTICLE} at (0,0) size 66.53x70
                   LayoutBlockFlow {SECTION} at (0,0) size 66.53x70
-                    LayoutBlockFlow {HR} at (0,0) size 2x70 [border: (1px inset #EEEEEE)]
                     LayoutBlockFlow {H1} at (23.27,0) size 20x70 [border: (1px solid #00FF00)]
                       LayoutText {#text} at (1,1) size 18x46
                         text run at (1,1) width 46: "MMM"
-                    LayoutBlockFlow {HR} at (64.53,0) size 2x70 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (149,76) size 68.53x72 [r=2 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x70 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H4} at (24.27,1) size 20x70 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 18x46
                   text run at (1,1) width 46: "MMM"
-              LayoutBlockFlow {HR} at (65.53,1) size 2x70 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (220,0) size 67x150
             LayoutTableCell {TD} at (220,2) size 67.34x72 [r=3 c=0 rs=1 cs=1]
               LayoutBlockFlow {NAV} at (1,1) size 65.34x70
                 LayoutBlockFlow {ASIDE} at (0,0) size 65.34x70
                   LayoutBlockFlow {ARTICLE} at (0,0) size 65.34x70
                     LayoutBlockFlow {SECTION} at (0,0) size 65.34x70
-                      LayoutBlockFlow {HR} at (0,0) size 2x70 [border: (1px inset #EEEEEE)]
                       LayoutBlockFlow {H1} at (24.17,0) size 17x70 [border: (1px solid #00FF00)]
                         LayoutText {#text} at (1,1) size 15x38
                           text run at (1,1) width 38: "MMM"
-                      LayoutBlockFlow {HR} at (63.34,0) size 2x70 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (220,76) size 67.34x72 [r=3 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x70 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H5} at (25.17,1) size 17x70 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 15x38
                   text run at (1,1) width 38: "MMM"
-              LayoutBlockFlow {HR} at (64.34,1) size 2x70 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (289,0) size 71x150
             LayoutTableCell {TD} at (289,2) size 70.94x72 [r=4 c=0 rs=1 cs=1]
               LayoutBlockFlow {SECTION} at (1,1) size 68.94x70
@@ -163,15 +127,91 @@
                     LayoutBlockFlow {ASIDE} at (0,0) size 68.94x70
                       LayoutBlockFlow {ARTICLE} at (0,0) size 68.94x70
                         LayoutBlockFlow {SECTION} at (0,0) size 68.94x70
-                          LayoutBlockFlow {HR} at (0,0) size 2x70 [border: (1px inset #EEEEEE)]
                           LayoutBlockFlow {H1} at (26.97,0) size 15x70 [border: (1px solid #00FF00)]
                             LayoutText {#text} at (1,1) size 13x31
                               text run at (1,1) width 31: "MMM"
-                          LayoutBlockFlow {HR} at (66.94,0) size 2x70 [border: (1px inset #EEEEEE)]
                   LayoutBlockFlow {DIV} at (68.94,0) size 0x70
             LayoutTableCell {TD} at (289,76) size 70.94x72 [r=4 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x70 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H6} at (27.97,1) size 15x70 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 13x31
                   text run at (1,1) width 31: "MMM"
-              LayoutBlockFlow {HR} at (67.94,1) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (11,53) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (11,125) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,71.81) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (85,53) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (85,125) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,72.81) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (11,131) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (11,194) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,63.44) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (85,131) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (85,194) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,64.44) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (11,200) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (11,265) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,64.53) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (85,200) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (85,265) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,65.53) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (11,271) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (11,334) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,63.34) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (85,271) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (85,334) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,64.34) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (11,340) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (11,407) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,66.94) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (85,340) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (85,407) size 70x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,67.94) size 70x2 [border: (1px inset #EEEEEE)]
+layer at (515,53) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (443,53) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (71.81,0) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (515,127) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (443,127) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (72.81,1) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (437,53) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (374,53) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (63.44,0) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (437,127) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (374,127) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (64.44,1) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (368,53) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (303,53) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (64.53,0) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (368,127) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (303,127) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (65.53,1) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (297,53) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (234,53) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (63.34,0) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (297,127) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (234,127) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (64.34,1) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (228,53) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (161,53) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (66.94,0) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (228,127) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x70 [border: (1px inset #EEEEEE)]
+layer at (161,127) size 2x70 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (67.94,1) size 2x70 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/css/hover-subselector-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/css/hover-subselector-expected.txt
index 1728110..b8791f5 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/css/hover-subselector-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/css/hover-subselector-expected.txt
@@ -8,7 +8,6 @@
           LayoutText {#text} at (0,0) size 228x18
             text run at (0,0) width 228: "This should turn red when hovered."
         LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,26) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,44) size 784x36
         LayoutText {#text} at (0,0) size 54x18
           text run at (0,0) width 54: "Test for "
@@ -26,3 +25,5 @@
             text run at (231,20) width 95: "span#t:hover"
         LayoutText {#text} at (325,18) size 174x18
           text run at (325,18) width 174: " matches the hovered span."
+layer at (8,34) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,26) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/css/resize-corner-tracking-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/css/resize-corner-tracking-expected.txt
index 28daa88..950997f 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/css/resize-corner-tracking-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/css/resize-corner-tracking-expected.txt
@@ -3,7 +3,6 @@
 layer at (0,0) size 800x600
   LayoutBlockFlow {HTML} at (0,0) size 800x600
     LayoutBlockFlow {BODY} at (8,8) size 784x584
-      LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,18) size 784x18
         LayoutText {#text} at (0,0) size 54x18
           text run at (0,0) width 54: "Test for "
@@ -16,7 +15,6 @@
             text run at (409,0) width 324: "Resize corner does not track the mouse accurately"
         LayoutText {#text} at (732,0) size 5x18
           text run at (732,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,187) size 784x357
         LayoutText {#text} at (169,107) size 4x18
           text run at (169,107) width 4: " "
@@ -25,6 +23,10 @@
           text run at (160,164) width 4: " "
         LayoutBR {BR} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,8) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,70) size 173x125 clip at (10,72) size 169x121
   LayoutBlockFlow {DIV} at (0,62) size 173x125 [border: (2px solid #0000FF)]
 layer at (8,195) size 169x121 clip at (10,197) size 165x117
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/css/resize-corner-tracking-transformed-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/css/resize-corner-tracking-transformed-expected.txt
index 3a99ccf0..4d50c73 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/css/resize-corner-tracking-transformed-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/css/resize-corner-tracking-transformed-expected.txt
@@ -3,7 +3,6 @@
 layer at (0,0) size 800x600
   LayoutBlockFlow {HTML} at (0,0) size 800x600
     LayoutBlockFlow {BODY} at (8,8) size 784x542
-      LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,18) size 784x18
         LayoutText {#text} at (0,0) size 54x18
           text run at (0,0) width 54: "Test for "
@@ -16,6 +15,9 @@
             text run at (367,0) width 341: "Resize corner does not track in transformed elements"
         LayoutText {#text} at (707,0) size 5x18
           text run at (707,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,8) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (58,112) size 163x129 clip at (60,114) size 159x125
   LayoutBlockFlow {DIV} at (50,104) size 163x129 [border: (2px solid #0000FF)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/css/resize-corner-tracking-transformed-iframe-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/css/resize-corner-tracking-transformed-iframe-expected.txt
index 83346a5..b98b4b2 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/css/resize-corner-tracking-transformed-iframe-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/css/resize-corner-tracking-transformed-iframe-expected.txt
@@ -3,7 +3,6 @@
 layer at (0,0) size 800x600
   LayoutBlockFlow {HTML} at (0,0) size 800x600
     LayoutBlockFlow {BODY} at (8,8) size 784x584
-      LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,18) size 784x18
         LayoutText {#text} at (0,0) size 54x18
           text run at (0,0) width 54: "Test for "
@@ -16,9 +15,12 @@
             text run at (360,0) width 253: "resize property doesn't work on iframes"
         LayoutText {#text} at (612,0) size 5x18
           text run at (612,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,62) size 784x230
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,8) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (58,120) size 163x130
   LayoutIFrame {IFRAME} at (50,50) size 163x130 [border: (2px solid #0000FF)]
     layer at (0,0) size 159x126
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/css/rtl-ordering-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/css/rtl-ordering-expected.txt
index 52ca1ef..577c4372 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/css/rtl-ordering-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/css/rtl-ordering-expected.txt
@@ -15,7 +15,6 @@
             text run at (0,18) width 374 LTR override: "type=\"button\"> text is reversed on \"visual Hebrew\" pages"
         LayoutText {#text} at (373,18) size 5x18
           text run at (373,18) width 5 LTR override: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,70) size 784x19
         LayoutText {#text} at (0,1) size 310x18
           text run at (0,1) width 310 LTR override: "The text on both buttons should like this: \x{5E8}\x{5D5}\x{5EA}\x{5E4}\x{5DB}"
@@ -32,7 +31,6 @@
             LayoutText {#text} at (0,0) size 31x13
               text run at (0,0) width 31 RTL: "\x{5DB}\x{5E4}\x{5EA}\x{5D5}\x{5E8}"
         LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,150) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,168) size 784x18
         LayoutText {#text} at (0,0) size 255x18
           text run at (0,0) width 255 LTR override: "The following lines should be identical:"
@@ -43,3 +41,7 @@
       LayoutBlockFlow {P} at (0,237) size 784x19
         LayoutText {#text} at (0,1) size 81x18
           text run at (0,1) width 81 LTR override: "21-\x{5D4} \x{5D4}\x{5D0}\x{5DE}\x{5D4}"
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,158) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,150) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/css/universal-hover-quirk-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/css/universal-hover-quirk-expected.txt
index e5c64b8..67364c4 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/css/universal-hover-quirk-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/css/universal-hover-quirk-expected.txt
@@ -8,7 +8,6 @@
           LayoutText {#text} at (0,0) size 252x18
             text run at (0,0) width 252: "This should not turn red when hovered."
         LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,26) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,44) size 784x36
         LayoutText {#text} at (0,0) size 54x18
           text run at (0,0) width 54: "Test for "
@@ -25,4 +24,6 @@
             text run at (707,2) width 55: "*:hover"
         LayoutText {#text} at (0,18) size 261x18
           text run at (0,18) width 261: "does not match anything in quirks mode."
+layer at (8,34) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,26) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/dom/34176-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/dom/34176-expected.txt
index 595673233d..534ad90 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/dom/34176-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/dom/34176-expected.txt
@@ -10,7 +10,6 @@
           text run at (39,18) width 730: "TextRun3's bidi level is 1. TextRun2 and TextRun3 are siblings. But their ancestor (not their parent) is a sibling of"
           text run at (93,36) width 72: "TextRun1. "
           text run at (164,36) width 605: "The visual order should be TextRun3 TextRun1 TextRun2, not TextRun3 TextRun2 TextRun1."
-      LayoutBlockFlow {HR} at (0,70) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,88) size 769x19
         LayoutText {#text} at (299,1) size 470x18
           text run at (299,1) width 348: "Pure text. The following 3 lines should all display as \""
@@ -49,7 +48,6 @@
           LayoutInline {SPAN} at (0,0) size 28x18
             LayoutText {#text} at (653,1) size 28x18
               text run at (653,1) width 28 RTL: "\x{5E9}\x{5E0}\x{5D1}"
-      LayoutBlockFlow {HR} at (0,188) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,206) size 769x18
         LayoutText {#text} at (314,0) size 455x18
           text run at (314,0) width 455: "Text in <em>. The English text should be displayed as \"This is a Test\"."
@@ -96,7 +94,6 @@
           LayoutInline {EM} at (0,0) size 26x18
             LayoutText {#text} at (743,0) size 26x18
               text run at (743,0) width 26: "Test"
-      LayoutBlockFlow {HR} at (0,339) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,357) size 769x18
         LayoutText {#text} at (289,0) size 480x18
           text run at (289,0) width 480: "Text in <strong>. The following lines should all display as \"This is a Test\"."
@@ -132,7 +129,6 @@
           LayoutInline {STRONG} at (0,0) size 28x18
             LayoutText {#text} at (741,0) size 28x18
               text run at (741,0) width 28: "Test"
-      LayoutBlockFlow {HR} at (0,471) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,489) size 769x18
         LayoutText {#text} at (324,0) size 445x18
           text run at (324,0) width 445: "Text in <i>. The following lines should all display as \"This is a Test\"."
@@ -168,7 +164,6 @@
           LayoutInline {I} at (0,0) size 26x18
             LayoutText {#text} at (743,0) size 26x18
               text run at (743,0) width 26: "Test"
-      LayoutBlockFlow {HR} at (0,603) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,621) size 769x18
         LayoutText {#text} at (321,0) size 448x18
           text run at (321,0) width 448: "Text in <b>. The following lines should all display as \"This is a Test\"."
@@ -208,7 +203,6 @@
         LayoutInline {B} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,735) size 769x679
-        LayoutBlockFlow {HR} at (0,0) size 769x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (0,18) size 769x18
           LayoutText {#text} at (91,0) size 678x18
             text run at (91,0) width 678: "Text in <img>, <href>, <em>, <tr>. The following English text should all display as \"This is a Test\"."
@@ -281,7 +275,6 @@
           LayoutBlockFlow (anonymous) at (0,42) size 769x0
             LayoutInline {SPAN} at (0,0) size 0x0
               LayoutInline {EM} at (0,0) size 0x0
-        LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {UL} at (0,211) size 769x468
           LayoutListItem {LI} at (40,0) size 729x18
             LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
@@ -389,5 +382,19 @@
               text run at (0,0) width 119: "Test 25: : Success"
       LayoutBlockFlow (anonymous) at (0,1430) size 769x0
         LayoutInline {B} at (0,0) size 0x0
+layer at (8,86) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,70) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,204) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,188) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,355) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,339) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,487) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,471) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,619) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,603) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,751) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,944) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
 selection start: position 0 of child 0 {#text} of child 14 {DIV} of child 56 {B} of body
 selection end:   position 4 of child 0 {#text} of child 14 {DIV} of child 56 {B} of body
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/dom/HTMLElement/bdo-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/dom/HTMLElement/bdo-expected.txt
index 7c8186c..f05dc42 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/dom/HTMLElement/bdo-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/dom/HTMLElement/bdo-expected.txt
@@ -14,7 +14,6 @@
           text run at (0,0) width 738: "If successful, the first sentence would be backward, and the second sentence regular. There should then be an extra "
           text run at (737,0) width 37: "blank"
           text run at (0,18) width 705: "line, followed by a line reading only \"A,\" and finally, a sentence where only the word \"umbrella\" is backward."
-      LayoutBlockFlow {HR} at (0,120) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,130) size 784x108
         LayoutBR {BR} at (0,0) size 0x18
         LayoutInline {BDO} at (0,0) size 224x18
@@ -47,3 +46,5 @@
           LayoutText {#text} at (83,90) size 214x18
             text run at (83,90) width 214 LTR override: " sure would be useful in this rain."
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,128) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,120) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt
index e1bc63c..c5104be 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt
@@ -19,6 +19,7 @@
       LayoutBlockFlow {P} at (0,52) size 784x18
         LayoutText {#text} at (0,0) size 246x18
           text run at (0,0) width 246: "There should be a green square below."
-      LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,96) size 784x0
       LayoutBlockFlow {DIV} at (0,96) size 100x100 [bgcolor=#008000]
+layer at (8,94) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/dynamic/012-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/dynamic/012-expected.txt
index 9082470..f0f43334 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/dynamic/012-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/dynamic/012-expected.txt
@@ -18,7 +18,6 @@
           text run at (0,0) width 587: "Note that the second section is collapsed when the page opens and expanding it works fine. "
           text run at (586,0) width 173: "Just the collapse is broken."
       LayoutBlockFlow {DIV} at (0,149.91) size 784x148
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {DIV} at (0,10) size 784x20
           LayoutImage {IMG} at (0,0) size 16x16
           LayoutText {#text} at (16,2) size 76x18
@@ -55,7 +54,10 @@
                 LayoutTableCell {TD} at (36,46) size 746x20 [r=2 c=1 rs=1 cs=1]
                   LayoutText {#text} at (1,1) size 76x18
                     text run at (1,1) width 76: "block three."
-        LayoutBlockFlow {HR} at (0,146) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,158) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,304) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,146) size 784x2 [border: (1px inset #EEEEEE)]
 hidden layer at (8,188) size 111x68
   LayoutBlockFlow (positioned) {DIV} at (8,187.91) size 111x68
     LayoutTable {TABLE} at (0,0) size 111x68
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/dynamic/selection-highlight-adjust-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/dynamic/selection-highlight-adjust-expected.txt
index 8f4e5384..f53f22030 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/dynamic/selection-highlight-adjust-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/dynamic/selection-highlight-adjust-expected.txt
@@ -16,7 +16,6 @@
             text run at (0,18) width 203: "selection highlight stays behind"
         LayoutText {#text} at (202,18) size 5x18
           text run at (202,18) width 5: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,62) size 784x70
         LayoutImage {IMG} at (0,0) size 0x30
         LayoutBR {BR} at (0,16) size 0x18
@@ -27,5 +26,7 @@
         LayoutText {#text} at (315,52) size 5x18
           text run at (315,52) width 5: " "
         LayoutBR {BR} at (319,52) size 1x18
+layer at (8,68) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
 selection start: position 0 of child 0 {#text} of child 6 {SPAN} of child 5 {DIV} of body
 selection end:   position 51 of child 0 {#text} of child 6 {SPAN} of child 5 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/encoding/invalid-UTF-8-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/encoding/invalid-UTF-8-expected.txt
index 089f32c0..d0e44fb 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/encoding/invalid-UTF-8-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/encoding/invalid-UTF-8-expected.txt
@@ -9,7 +9,8 @@
       LayoutBlockFlow {P} at (0,34) size 784x18
         LayoutText {#text} at (0,0) size 511x18
           text run at (0,0) width 511: "The output should be: \"\x{442}??\x{442}\" (with black diamonds in place of question marks)."
-      LayoutBlockFlow {HR} at (0,68) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,86) size 784x19
         LayoutText {#text} at (0,1) size 47x18
           text run at (0,1) width 47: "\x{442}\x{FFFD}\x{FFFD}\x{442}"
+layer at (8,76) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,68) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/encoding/utf-16-big-endian-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/encoding/utf-16-big-endian-expected.txt
index 39e0091..370adee 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/encoding/utf-16-big-endian-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/encoding/utf-16-big-endian-expected.txt
@@ -22,7 +22,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,26.66) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,35.31) size 784x34
         LayoutInline {SPAN} at (0,0) size 110x32
           LayoutInline {SPAN} at (0,0) size 110x32
@@ -45,7 +44,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,75.97) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,84.63) size 784x48
         LayoutInline {SPAN} at (0,0) size 581x46
           LayoutInline {SPAN} at (0,0) size 581x46
@@ -65,7 +63,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,139.28) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,147.94) size 784x19
         LayoutInline {SPAN} at (0,0) size 125x20
           LayoutInline {SPAN} at (0,0) size 125x20
@@ -88,7 +85,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,233.59) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,242.25) size 784x19
         LayoutInline {SPAN} at (0,0) size 131x15
           LayoutInline {SPAN} at (0,0) size 131x15
@@ -137,7 +133,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,327.91) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,336.56) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -237,7 +232,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,539.22) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,547.88) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -337,7 +331,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,750.53) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,759.19) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -394,7 +387,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,879.84) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,888.50) size 784x48
         LayoutInline {SPAN} at (0,0) size 201x46
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -419,7 +411,6 @@
             LayoutBR {BR} at (200,45) size 1x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,943.16) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,951.81) size 784x19
         LayoutInline {SPAN} at (0,0) size 183x15
           LayoutInline {SPAN} at (0,0) size 183x17
@@ -442,7 +433,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,977.47) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,986.13) size 784x18
         LayoutInline {SPAN} at (0,0) size 259x15
           LayoutInline {SPAN} at (0,0) size 259x15
@@ -459,7 +449,6 @@
             LayoutText {#text} at (0,0) size 0x0
             LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,1010.78) size 784x30.33
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (0,15.33) size 784x15
           LayoutText {#text} at (0,0) size 206x15
             text run at (0,0) width 206: "This itinerary is subject to change. "
@@ -471,6 +460,28 @@
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
+layer at (8,35) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,84) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,147) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,242) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,336) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,547) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,759) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,888) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,951) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,985) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,1019) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (23,43) size 86x15
   LayoutInline (relative positioned) {SPAN} at (0,0) size 86x15
     LayoutText {#text} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/encoding/utf-16-little-endian-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/encoding/utf-16-little-endian-expected.txt
index 39e0091..370adee 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/encoding/utf-16-little-endian-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/encoding/utf-16-little-endian-expected.txt
@@ -22,7 +22,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,26.66) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,35.31) size 784x34
         LayoutInline {SPAN} at (0,0) size 110x32
           LayoutInline {SPAN} at (0,0) size 110x32
@@ -45,7 +44,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,75.97) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,84.63) size 784x48
         LayoutInline {SPAN} at (0,0) size 581x46
           LayoutInline {SPAN} at (0,0) size 581x46
@@ -65,7 +63,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,139.28) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,147.94) size 784x19
         LayoutInline {SPAN} at (0,0) size 125x20
           LayoutInline {SPAN} at (0,0) size 125x20
@@ -88,7 +85,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,233.59) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,242.25) size 784x19
         LayoutInline {SPAN} at (0,0) size 131x15
           LayoutInline {SPAN} at (0,0) size 131x15
@@ -137,7 +133,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,327.91) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,336.56) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -237,7 +232,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,539.22) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,547.88) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -337,7 +331,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,750.53) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,759.19) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -394,7 +387,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,879.84) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,888.50) size 784x48
         LayoutInline {SPAN} at (0,0) size 201x46
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -419,7 +411,6 @@
             LayoutBR {BR} at (200,45) size 1x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,943.16) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,951.81) size 784x19
         LayoutInline {SPAN} at (0,0) size 183x15
           LayoutInline {SPAN} at (0,0) size 183x17
@@ -442,7 +433,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,977.47) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,986.13) size 784x18
         LayoutInline {SPAN} at (0,0) size 259x15
           LayoutInline {SPAN} at (0,0) size 259x15
@@ -459,7 +449,6 @@
             LayoutText {#text} at (0,0) size 0x0
             LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,1010.78) size 784x30.33
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (0,15.33) size 784x15
           LayoutText {#text} at (0,0) size 206x15
             text run at (0,0) width 206: "This itinerary is subject to change. "
@@ -471,6 +460,28 @@
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
+layer at (8,35) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,84) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,147) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,242) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,336) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,547) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,759) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,888) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,951) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,985) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,1019) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (23,43) size 86x15
   LayoutInline (relative positioned) {SPAN} at (0,0) size 86x15
     LayoutText {#text} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/button/button-inner-block-reuse-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/button/button-inner-block-reuse-expected.txt
index b47e1c3..7147be5 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/button/button-inner-block-reuse-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/button/button-inner-block-reuse-expected.txt
@@ -21,7 +21,6 @@
           text run at (0,0) width 568: "In the render tree, the button should have only one child, an anonymous block wrapping "
           text run at (567,0) width 149: "all of the button's other"
           text run at (0,18) width 82: "descendants."
-      LayoutBlockFlow {HR} at (0,104) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,114) size 784x15
         LayoutButton {BUTTON} at (0,0) size 16x15 [bgcolor=#C0C0C0] [border: none (2px outset #C0C0C0) none (2px outset #C0C0C0)]
           LayoutBlockFlow (anonymous) at (8,7) size 0x0
@@ -32,3 +31,5 @@
             LayoutBlockFlow (anonymous) at (0,0) size 0x0
               LayoutInline {SPAN} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,112) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,104) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/fieldset/fieldset-align-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/fieldset/fieldset-align-expected.txt
index 7c225fe..4889eee 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/fieldset/fieldset-align-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/fieldset/fieldset-align-expected.txt
@@ -34,7 +34,6 @@
         LayoutBlockFlow (anonymous) at (14,23.59) size 737x19
           LayoutTextControl {INPUT} at (0,0) size 131x19 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
           LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,260.38) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,278.38) size 769x18
         LayoutText {#text} at (0,0) size 148x18
           text run at (0,0) width 148: "Legend align test, RTL"
@@ -73,7 +72,6 @@
       LayoutBlockFlow (anonymous) at (0,530.75) size 769x0
         LayoutInline {SPAN} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,538.75) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,556.75) size 769x18
         LayoutText {#text} at (0,0) size 275x18
           text run at (0,0) width 275: "Legend align test with margin and padding"
@@ -105,7 +103,6 @@
         LayoutBlockFlow (anonymous) at (17,33) size 705x19
           LayoutTextControl {INPUT} at (0,0) size 131x19 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
           LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,926.75) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,944.75) size 769x18
         LayoutText {#text} at (0,0) size 312x18
           text run at (0,0) width 312: "Legend align test with margin and padding, RTL"
@@ -152,6 +149,8 @@
   LayoutBlockFlow {DIV} at (3,3) size 125x13
 layer at (27,232) size 125x13
   LayoutBlockFlow {DIV} at (3,3) size 125x13
+layer at (8,268) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,260.38) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (633,347) size 125x13
   LayoutBlockFlow {DIV} at (3,3) size 125x13
 layer at (633,402) size 125x13
@@ -160,6 +159,8 @@
   LayoutBlockFlow {DIV} at (3,3) size 125x13
 layer at (633,511) size 125x13
   LayoutBlockFlow {DIV} at (3,3) size 125x13
+layer at (8,547) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,538.75) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (43,635) size 125x13 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
   LayoutBlockFlow {DIV} at (3,3) size 125x13
 layer at (43,719) size 125x13 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
@@ -168,6 +169,8 @@
   LayoutBlockFlow {DIV} at (3,3) size 125x13
 layer at (43,887) size 125x13 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
   LayoutBlockFlow {DIV} at (3,3) size 125x13
+layer at (8,935) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,926.75) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (617,1023) size 125x13 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
   LayoutBlockFlow {DIV} at (3,3) size 125x13
 layer at (617,1107) size 125x13 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/floating-textfield-relayout-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/floating-textfield-relayout-expected.txt
index 25b5444..7b1b918 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/floating-textfield-relayout-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/floating-textfield-relayout-expected.txt
@@ -16,7 +16,8 @@
             text run at (0,18) width 60: "keystroke"
         LayoutText {#text} at (59,18) size 5x18
           text run at (59,18) width 5: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,70) size 784x0
   LayoutBlockFlow (relative positioned) {DIV} at (0,62) size 784x0
     LayoutTextControl (floating) {INPUT} at (0,0) size 392x19 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/image-border-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/image-border-expected.txt
index 114c79e..365636d 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/image-border-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/image-border-expected.txt
@@ -12,9 +12,10 @@
         LayoutText {#text} at (0,36) size 55x18
           text run at (0,36) width 55: "border:0"
         LayoutImage {IMG} at (54.20,0) size 338x50
-      LayoutBlockFlow {HR} at (0,114) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,124) size 784x56
         LayoutText {#text} at (0,38) size 55x18
           text run at (0,38) width 55: "border:1"
         LayoutImage {IMG} at (54.20,0) size 340x52 [border: (1px solid #000000)]
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,122) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,114) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/input-value-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/input-value-expected.txt
index e6ca4267..76b8f0f 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/input-value-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/input-value-expected.txt
@@ -10,7 +10,6 @@
       LayoutBlockFlow {P} at (0,52) size 784x18
         LayoutText {#text} at (0,0) size 725x18
           text run at (0,0) width 725: "Results that match Gecko are like WinIE, but with \"before\" for the attribute in the first two rows and the last row."
-      LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {FORM} at (0,96) size 784x338
         LayoutTable {TABLE} at (0,0) size 766x338
           LayoutTableSection {THEAD} at (0,0) size 766x24
@@ -204,6 +203,8 @@
               LayoutTableCell {TD} at (701,292) size 63x20 [r=13 c=3 rs=1 cs=1]
                 LayoutText {#text} at (1,1) size 41x18
                   text run at (1,1) width 41: "before"
+layer at (8,94) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,86) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (408,132) size 125x13
   LayoutBlockFlow {DIV} at (3,3) size 125x13
     LayoutText {#text} at (0,0) size 34x13
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/select/menulist-appearance-rtl-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/select/menulist-appearance-rtl-expected.txt
index 0123fdf..649e8c08 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/select/menulist-appearance-rtl-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/select/menulist-appearance-rtl-expected.txt
@@ -53,7 +53,6 @@
             LayoutText {#text} at (0,1) size 82x18
               text run at (0,1) width 23: "abc"
               text run at (22,1) width 60 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
-      LayoutBlockFlow {HR} at (0,236) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,246) size 784x55
         LayoutBlockFlow (anonymous) at (0,0) size 784x18
           LayoutText {#text} at (0,0) size 632x18
@@ -67,10 +66,13 @@
               LayoutText (anonymous) at (8,2) size 84x13
                 text run at (8,2) width 84 RTL: "\x{627}\x{644}\x{627}\x{642}\x{62A}\x{631}\x{627}\x{62D}\x{627}\x{62A} / \x{627}\x{644}\x{634}\x{643}\x{627}\x{648}\x{64A}"
           LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,309) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,327) size 784x18
         LayoutText {#text} at (0,0) size 709x18
           text run at (0,0) width 709: "Verify that the alignment and writing direction of each selected item matches the one below the pop-up button."
+layer at (8,252) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,236) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,325) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,309) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,377) size 784x164
   LayoutBlockFlow {DIV} at (0,361) size 784x164
     LayoutMultiColumnSet (anonymous) at (0,0) size 784x164
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/select/select-visual-hebrew-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/select/select-visual-hebrew-expected.txt
index 3d606e4..876e141f 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/select/select-visual-hebrew-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/select/select-visual-hebrew-expected.txt
@@ -6,7 +6,6 @@
       LayoutBlockFlow {P} at (0,0) size 784x18
         LayoutText {#text} at (0,0) size 632x18
           text run at (0,0) width 632 LTR override: "This tests that native pop-ups are rendered in logical order even in visually-ordered Hebrew pages."
-      LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,52) size 784x19
         LayoutText {#text} at (0,1) size 398x18
           text run at (0,1) width 398 LTR override: "Text on the pop-up and in the list should look like this: \x{5E8}\x{5D5}\x{5EA}\x{5E4}\x{5DB}"
@@ -16,3 +15,5 @@
             LayoutText (anonymous) at (8,2) size 31x13
               text run at (8,2) width 31 RTL: "\x{5DB}\x{5E4}\x{5EA}\x{5D5}\x{5E8}"
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,42) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/visual-hebrew-text-field-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/visual-hebrew-text-field-expected.txt
index ff3033c1d..7a03302 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/forms/visual-hebrew-text-field-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/forms/visual-hebrew-text-field-expected.txt
@@ -15,13 +15,14 @@
             text run at (0,18) width 251 LTR override: "are reversed on \"visual Hebrew\" pages"
         LayoutText {#text} at (250,18) size 5x18
           text run at (250,18) width 5 LTR override: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,70) size 784x19
         LayoutText {#text} at (0,1) size 286x18
           text run at (0,1) width 286 LTR override: "Text in the field should look like this: \x{5E8}\x{5D5}\x{5EA}\x{5E4}\x{5DB}"
       LayoutBlockFlow (anonymous) at (0,105) size 784x19
         LayoutTextControl {INPUT} at (0,0) size 131x19 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (11,116) size 125x13
   LayoutBlockFlow {DIV} at (3,3) size 125x13
     LayoutText {#text} at (0,0) size 31x13
diff --git a/third_party/WebKit/LayoutTests/platform/mac/fast/layers/opacity-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/fast/layers/opacity-outline-expected.txt
index 83a0ab5..780c0c3 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/fast/layers/opacity-outline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/fast/layers/opacity-outline-expected.txt
@@ -16,6 +16,7 @@
             text run at (0,18) width 321: "outline causes the outline to disappear completely"
         LayoutText {#text} at (320,18) size 5x18
           text run at (320,18) width 5: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,70) size 100x100 transparent
   LayoutBlockFlow {DIV} at (0,62) size 100x100 [bgcolor=#C0C0C0]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/html/tabular_data/table_createcaption-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/html/tabular_data/table_createcaption-expected.txt
index 716de85..a6dd86d 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/html/tabular_data/table_createcaption-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/html/tabular_data/table_createcaption-expected.txt
@@ -29,7 +29,6 @@
         LayoutText {#text} at (746,0) size 751x36
           text run at (746,0) width 5: "."
           text run at (0,18) width 636: "Upon failure, the first table will have no caption, and the second table will have the caption Things."
-      LayoutBlockFlow {HR} at (0,156) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutTable {TABLE} at (0,166) size 110x94 [border: (1px outset #808080)]
         LayoutBlockFlow {CAPTION} at (0,0) size 110x18
           LayoutInline {B} at (0,0) size 44x18
@@ -86,3 +85,5 @@
             LayoutTableCell {TD} at (75,50) size 52x22 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
               LayoutText {#text} at (2,2) size 40x18
                 text run at (2,2) width 40: "Green"
+layer at (8,164) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,156) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/html/tabular_data/td_colspan_rendering-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/html/tabular_data/td_colspan_rendering-expected.txt
index 0804bf3..24d30ca 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/html/tabular_data/td_colspan_rendering-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/html/tabular_data/td_colspan_rendering-expected.txt
@@ -23,7 +23,6 @@
           text run at (0,18) width 721: "column in the first row should span only column \"one\" and the second cell should span all of the other columns. "
           text run at (720,18) width 26: "The"
           text run at (0,36) width 572: "second table tests the zero value. \"Just A\" should span \"A\" and \"Just B\" should span \"B.\""
-      LayoutBlockFlow {HR} at (0,192) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,202) size 784x18
         LayoutBR {BR} at (0,0) size 0x18
       LayoutTable {TABLE} at (0,220) size 277x70 [border: (1px outset #808080)]
@@ -102,3 +101,5 @@
             LayoutTableCell {TD} at (179,26) size 16x22 [border: (1px inset #808080)] [r=1 c=7 rs=1 cs=1]
               LayoutText {#text} at (2,2) size 12x18
                 text run at (2,2) width 12: "H"
+layer at (8,200) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,192) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/flexible-box-overflow-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/flexible-box-overflow-expected.txt
index ac4178d7..4455153 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/flexible-box-overflow-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/flexible-box-overflow-expected.txt
@@ -16,7 +16,6 @@
             text run at (0,18) width 243: "their top, left and children's overflows"
         LayoutText {#text} at (242,18) size 5x18
           text run at (242,18) width 5: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,62) size 784x100
         LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
           LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
@@ -40,3 +39,5 @@
               text run at (1,91) width 79: "ipsum. Nam"
               text run at (1,109) width 80: "consectetuer"
               text run at (1,127) width 84: "mi eget velit."
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/flexible-box-overflow-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
index ac4178d7..4455153 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
@@ -16,7 +16,6 @@
             text run at (0,18) width 243: "their top, left and children's overflows"
         LayoutText {#text} at (242,18) size 5x18
           text run at (242,18) width 5: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,62) size 784x100
         LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
           LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
@@ -40,3 +39,5 @@
               text run at (1,91) width 79: "ipsum. Nam"
               text run at (1,109) width 80: "consectetuer"
               text run at (1,127) width 84: "mi eget velit."
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/inline-block-overflow-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/inline-block-overflow-expected.txt
index b0c556f..f43f29e 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/inline-block-overflow-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/inline-block-overflow-expected.txt
@@ -6,7 +6,6 @@
       LayoutBlockFlow {P} at (0,0) size 784x18
         LayoutText {#text} at (0,0) size 329x18
           text run at (0,0) width 329: "This is a repaint test of inline blocks with overflow."
-      LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,44) size 784x20
         LayoutInline {SPAN} at (0,0) size 200x18
           LayoutText {#text} at (0,0) size 100x18
@@ -16,3 +15,5 @@
               text run at (0,0) width 76: "inline block"
               text run at (0,18) width 93: "with overflow."
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,42) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/layer-child-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/layer-child-outline-expected.txt
index dd44f18..7dc0936f 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/layer-child-outline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/layer-child-outline-expected.txt
@@ -6,7 +6,8 @@
       LayoutBlockFlow {P} at (0,0) size 784x18
         LayoutText {#text} at (0,0) size 328x18
           text run at (0,0) width 328: "This tests repainting of a layer's children's outlines."
-      LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,42) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,52) size 100x100
   LayoutBlockFlow (relative positioned) {DIV} at (0,44) size 100x100 [bgcolor=#C0C0C0]
     LayoutBlockFlow {DIV} at (0,0) size 100x100
diff --git a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/layer-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/layer-outline-expected.txt
index bc0cd55..ea35613 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/layer-outline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/layer-outline-expected.txt
@@ -14,7 +14,8 @@
             text run at (565,0) width 198: " Layer outline does not repaint"
         LayoutText {#text} at (762,0) size 5x18
           text run at (762,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,42) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (18,192) size 100x100 clip at (19,193) size 98x98
   LayoutBlockFlow {DIV} at (10,184) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
 layer at (8,52) size 784x130
diff --git a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/layer-outline-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/layer-outline-horizontal-expected.txt
index bc0cd55..ea35613 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/layer-outline-horizontal-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/layer-outline-horizontal-expected.txt
@@ -14,7 +14,8 @@
             text run at (565,0) width 198: " Layer outline does not repaint"
         LayoutText {#text} at (762,0) size 5x18
           text run at (762,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,42) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (18,192) size 100x100 clip at (19,193) size 98x98
   LayoutBlockFlow {DIV} at (10,184) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
 layer at (8,52) size 784x130
diff --git a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/text-shadow-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/text-shadow-expected.txt
index 36c7417c..9065a7b 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/text-shadow-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/text-shadow-expected.txt
@@ -16,7 +16,6 @@
             text run at (0,18) width 58: "correctly"
         LayoutText {#text} at (57,18) size 5x18
           text run at (57,18) width 5: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (30,84) size 724x22
         LayoutInline {SPAN} at (0,0) size 200x22 [bgcolor=#C0C0C0]
           LayoutText {#text} at (0,0) size 200x22
@@ -40,3 +39,5 @@
             text run at (0,0) width 97: "Lorem ipsum"
         LayoutText {#text} at (96,3) size 93x18
           text run at (96,3) width 93: " dolor sit amet"
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/text-shadow-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/text-shadow-horizontal-expected.txt
index 36c7417c..9065a7b 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/text-shadow-horizontal-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/text-shadow-horizontal-expected.txt
@@ -16,7 +16,6 @@
             text run at (0,18) width 58: "correctly"
         LayoutText {#text} at (57,18) size 5x18
           text run at (57,18) width 5: "."
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (30,84) size 724x22
         LayoutInline {SPAN} at (0,0) size 200x22 [bgcolor=#C0C0C0]
           LayoutText {#text} at (0,0) size 200x22
@@ -40,3 +39,5 @@
             text run at (0,0) width 97: "Lorem ipsum"
         LayoutText {#text} at (96,3) size 93x18
           text run at (96,3) width 93: " dolor sit amet"
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/plugins/embed-attributes-style-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/plugins/embed-attributes-style-expected.txt
index 5ac3cdf..d3c690eb 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/plugins/embed-attributes-style-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/plugins/embed-attributes-style-expected.txt
@@ -9,7 +9,6 @@
           text run at (405,0) width 372: "Previous versions of WebKit supported valign and border,"
           text run at (0,18) width 44: "which "
           text run at (43,18) width 458: "didn't match IE and FF. The only special support should be for 'hidden.'"
-      LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,62) size 784x0
       LayoutBlockFlow {DIV} at (0,62) size 784x104
         LayoutText {#text} at (50,86) size 126x18
@@ -23,6 +22,8 @@
         LayoutText {#text} at (52,88) size 105x18
           text run at (52,88) width 4: " "
           text run at (56,88) width 101: "hidden attribute"
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,70) size 50x100
   LayoutEmbeddedObject (relative positioned) {EMBED} at (0,0) size 50x100
 layer at (8,174) size 50x100
diff --git a/third_party/WebKit/LayoutTests/platform/mac/printing/absolute-position-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/printing/absolute-position-headers-and-footers-expected.txt
index 4fb9ec5..db0ef72 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/printing/absolute-position-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/printing/absolute-position-headers-and-footers-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 615.39x18
         LayoutText {#text} at (0,0) size 616x18
           text run at (0,0) width 616: "crbug.com/303728: Header Line is absolute positioned so should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 615.39x2 [border: (1px inset #EEEEEE)]
+layer at (8,26) size 615x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,26) size 615.39x2 [border: (1px inset #EEEEEE)]
 layer at (8,763) size 611x36
   LayoutBlockFlow (positioned) {DIV} at (8,763) size 610.98x36
     LayoutBlockFlow {DIV} at (0,8) size 610.98x28
-      LayoutBlockFlow {HR} at (0,0) size 610.98x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 610.98x18
         LayoutText {#text} at (0,0) size 611x18
           text run at (0,0) width 611: "crbug.com/303728: Footer Line is absolute positioned so should not be repeated on every page."
+layer at (8,771) size 611x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 610.98x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-but-static-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
index 304d01d..82e5fef5 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 680.27x18
         LayoutText {#text} at (0,0) size 681x18
           text run at (0,0) width 681: "crbug.com/303728: Fixed-position header Line is statically positioned and will be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 680.27x2 [border: (1px inset #EEEEEE)]
+layer at (8,42) size 680x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,26) size 680.27x2 [border: (1px inset #EEEEEE)]
 layer at (8,2567) size 624x36 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) {DIV} at (8,2567) size 624.30x36
     LayoutBlockFlow {DIV} at (0,8) size 624.30x28
-      LayoutBlockFlow {HR} at (0,0) size 624.30x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 624.30x18
         LayoutText {#text} at (0,0) size 625x18
           text run at (0,0) width 625: "crbug.com/303728: Footer Line is statically positioned and should not be repeated on every page."
+layer at (8,2575) size 624x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 624.30x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
index bc63ccbc..3b4d477 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
@@ -11,7 +11,8 @@
         LayoutText {#text} at (0,0) size 472x36
           text run at (0,0) width 472: "crbug.com/303728: Header Line should be repeated on every page except"
           text run at (0,18) width 384: "where it's clipped by the absolute element on pages 3 and 4."
-      LayoutBlockFlow {HR} at (0,44) size 500x2 [border: (1px inset #EEEEEE)]
+layer at (5,49) size 500x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,44) size 500x2 [border: (1px inset #EEEEEE)]
 layer at (0,1000) size 600x2000 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) zI: 2 {DIV} at (0,1000) size 600x2000 [bgcolor=#000000]
     LayoutText zI: 2 {#text} at (0,0) size 58x18
diff --git a/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-expected.txt
index b413d1a0..b0a67f2 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 523.84x18
         LayoutText {#text} at (0,0) size 524x18
           text run at (0,0) width 524: "crbug.com/303728: Fixed-position header Line should be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 523.84x2 [border: (1px inset #EEEEEE)]
+layer at (8,26) size 524x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,26) size 523.84x2 [border: (1px inset #EEEEEE)]
 layer at (8,763) size 426x36
   LayoutBlockFlow (positioned) {DIV} at (8,763) size 425.66x36
     LayoutBlockFlow {DIV} at (0,8) size 425.66x28
-      LayoutBlockFlow {HR} at (0,0) size 425.66x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 425.66x18
         LayoutText {#text} at (0,0) size 426x18
           text run at (0,0) width 426: "crbug.com/303728: Footer Line should be repeated on every page."
+layer at (8,771) size 426x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 425.66x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
index e3b4936f..2edc783 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
@@ -233,13 +233,15 @@
       LayoutBlockFlow (anonymous) at (0,0) size 454.52x18
         LayoutText {#text} at (0,0) size 455x18
           text run at (0,0) width 455: "crbug.com/303728: Header Line should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 454.52x2 [border: (1px inset #EEEEEE)]
+layer at (8,42) size 455x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,26) size 454.52x2 [border: (1px inset #EEEEEE)]
 layer at (8,2567) size 1030x0
   LayoutBlockFlow {DIV} at (0,2551) size 1030x0
 layer at (8,2531) size 450x36 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) {DIV} at (0,-36) size 450.09x36
     LayoutBlockFlow {DIV} at (0,8) size 450.09x28
-      LayoutBlockFlow {HR} at (0,0) size 450.09x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 450.09x18
         LayoutText {#text} at (0,0) size 451x18
           text run at (0,0) width 451: "crbug.com/303728: Footer Line should not be repeated on every page."
+layer at (8,2539) size 450x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 450.09x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
index b9d011f..3ae204b 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 2000x18
         LayoutText {#text} at (0,0) size 706x18
           text run at (0,0) width 706: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
-      LayoutBlockFlow {HR} at (0,26) size 2000x2 [border: (1px inset #EEEEEE)]
+layer at (13,31) size 2000x2 backgroundClip at (13,31) size 1033x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,26) size 2000x2 [border: (1px inset #EEEEEE)]
 layer at (8,753) size 2010x46 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) {DIV} at (8,753) size 2010x46 [border: (5px solid #000000)]
     LayoutBlockFlow {DIV} at (5,13) size 2000x28
-      LayoutBlockFlow {HR} at (0,0) size 2000x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 2000x18
         LayoutText {#text} at (0,0) size 706x18
           text run at (0,0) width 706: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
+layer at (13,766) size 2000x2 backgroundClip at (13,766) size 1033x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2000x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/svg/custom/svg-float-border-padding-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/svg/custom/svg-float-border-padding-expected.txt
index ddc17af..b05011a 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/svg/custom/svg-float-border-padding-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/svg/custom/svg-float-border-padding-expected.txt
@@ -15,7 +15,6 @@
       LayoutBlockFlow {p} at (0,228) size 784x18
         LayoutText {#text} at (0,0) size 359x18
           text run at (0,0) width 359: "There should be a red, white and blue pattern above this"
-      LayoutBlockFlow {hr} at (0,262) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {p} at (0,280) size 784x18
         LayoutText {#text} at (0,0) size 360x18
           text run at (0,0) width 360: "There should be a red, white and blue pattern below this"
@@ -24,3 +23,5 @@
       LayoutBlockFlow {p} at (0,474) size 784x18
         LayoutText {#text} at (0,0) size 359x18
           text run at (0,0) width 359: "There should be a red, white and blue pattern above this"
+layer at (8,270) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {hr} at (0,262) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/svg/zoom/page/zoom-svg-float-border-padding-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/svg/zoom/page/zoom-svg-float-border-padding-expected.txt
index c9ad119..80eb80b5 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/svg/zoom/page/zoom-svg-float-border-padding-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/svg/zoom/page/zoom-svg-float-border-padding-expected.txt
@@ -16,7 +16,6 @@
       LayoutBlockFlow {p} at (0,354.41) size 761.97x26
         LayoutText {#text} at (0,0) size 517x26
           text run at (0,0) width 517: "There should be a red, white and blue pattern above this"
-      LayoutBlockFlow {hr} at (0,403.44) size 761.97x2.88 [border: (1.44px inset #EEEEEE)]
       LayoutBlockFlow {p} at (0,429.34) size 761.97x26
         LayoutText {#text} at (0,0) size 518x26
           text run at (0,0) width 518: "There should be a red, white and blue pattern below this"
@@ -25,3 +24,5 @@
       LayoutBlockFlow {p} at (0,708.73) size 761.97x26
         LayoutText {#text} at (0,0) size 517x26
           text run at (0,0) width 517: "There should be a red, white and blue pattern above this"
+layer at (12,415) size 762x3 backgroundClip at (12,415) size 761x3 clip at (0,0) size 0x0
+  LayoutBlockFlow {hr} at (0,403.44) size 761.97x2.88 [border: (1.44px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/svg/zoom/text/zoom-svg-float-border-padding-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/svg/zoom/text/zoom-svg-float-border-padding-expected.txt
index 49ee0de..cb5cdba 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/svg/zoom/text/zoom-svg-float-border-padding-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/svg/zoom/text/zoom-svg-float-border-padding-expected.txt
@@ -16,7 +16,6 @@
       LayoutBlockFlow {p} at (0,284.06) size 769x26
         LayoutText {#text} at (0,0) size 517x26
           text run at (0,0) width 517: "There should be a red, white and blue pattern above this"
-      LayoutBlockFlow {hr} at (0,333.09) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {p} at (0,358.13) size 769x26
         LayoutText {#text} at (0,0) size 518x26
           text run at (0,0) width 518: "There should be a red, white and blue pattern below this"
@@ -25,3 +24,5 @@
       LayoutBlockFlow {p} at (0,567.16) size 769x26
         LayoutText {#text} at (0,0) size 517x26
           text run at (0,0) width 517: "There should be a red, white and blue pattern above this"
+layer at (8,341) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {hr} at (0,333.09) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-expected.txt
new file mode 100644
index 0000000..4455153
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-expected.txt
@@ -0,0 +1,43 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x552
+      LayoutBlockFlow {P} at (0,0) size 784x36
+        LayoutText {#text} at (0,0) size 233x18
+          text run at (0,0) width 233: "This is a test for regressions against "
+        LayoutInline {I} at (0,0) size 777x36
+          LayoutInline {A} at (0,0) size 354x18 [color=#0000EE]
+            LayoutText {#text} at (232,0) size 354x18
+              text run at (232,0) width 354: "http://bugzilla.opendarwin.org/show_bug.cgi?id=8056"
+          LayoutText {#text} at (585,0) size 777x36
+            text run at (585,0) width 5: " "
+            text run at (589,0) width 188: "Flexible boxes do not repaint"
+            text run at (0,18) width 243: "their top, left and children's overflows"
+        LayoutText {#text} at (242,18) size 5x18
+          text run at (242,18) width 5: "."
+      LayoutBlockFlow {DIV} at (0,62) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+            LayoutText {#text} at (1,1) size 182x18
+              text run at (1,1) width 182: "Lorem ipsum dolor sit amet."
+      LayoutBlockFlow {DIV} at (0,182) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+      LayoutBlockFlow {DIV} at (0,302) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+      LayoutBlockFlow {DIV} at (0,422) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+            LayoutText {#text} at (1,1) size 95x144
+              text run at (1,1) width 86: "Lorem ipsum"
+              text run at (1,19) width 92: "dolor sit amet,"
+              text run at (1,37) width 80: "consectetuer"
+              text run at (1,55) width 95: "adipiscing elit."
+              text run at (1,73) width 54: "Etiam et"
+              text run at (1,91) width 79: "ipsum. Nam"
+              text run at (1,109) width 80: "consectetuer"
+              text run at (1,127) width 84: "mi eget velit."
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
new file mode 100644
index 0000000..4455153
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
@@ -0,0 +1,43 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x552
+      LayoutBlockFlow {P} at (0,0) size 784x36
+        LayoutText {#text} at (0,0) size 233x18
+          text run at (0,0) width 233: "This is a test for regressions against "
+        LayoutInline {I} at (0,0) size 777x36
+          LayoutInline {A} at (0,0) size 354x18 [color=#0000EE]
+            LayoutText {#text} at (232,0) size 354x18
+              text run at (232,0) width 354: "http://bugzilla.opendarwin.org/show_bug.cgi?id=8056"
+          LayoutText {#text} at (585,0) size 777x36
+            text run at (585,0) width 5: " "
+            text run at (589,0) width 188: "Flexible boxes do not repaint"
+            text run at (0,18) width 243: "their top, left and children's overflows"
+        LayoutText {#text} at (242,18) size 5x18
+          text run at (242,18) width 5: "."
+      LayoutBlockFlow {DIV} at (0,62) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+            LayoutText {#text} at (1,1) size 182x18
+              text run at (1,1) width 182: "Lorem ipsum dolor sit amet."
+      LayoutBlockFlow {DIV} at (0,182) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+      LayoutBlockFlow {DIV} at (0,302) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+      LayoutBlockFlow {DIV} at (0,422) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+            LayoutText {#text} at (1,1) size 95x144
+              text run at (1,1) width 86: "Lorem ipsum"
+              text run at (1,19) width 92: "dolor sit amet,"
+              text run at (1,37) width 80: "consectetuer"
+              text run at (1,55) width 95: "adipiscing elit."
+              text run at (1,73) width 54: "Etiam et"
+              text run at (1,91) width 79: "ipsum. Nam"
+              text run at (1,109) width 80: "consectetuer"
+              text run at (1,127) width 84: "mi eget velit."
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/inline-block-overflow-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/inline-block-overflow-expected.txt
new file mode 100644
index 0000000..f43f29e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/inline-block-overflow-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 329x18
+          text run at (0,0) width 329: "This is a repaint test of inline blocks with overflow."
+      LayoutBlockFlow (anonymous) at (0,44) size 784x20
+        LayoutInline {SPAN} at (0,0) size 200x18
+          LayoutText {#text} at (0,0) size 100x18
+            text run at (0,0) width 100: "Here comes an "
+          LayoutBlockFlow {SPAN} at (99.06,0) size 100x20 [bgcolor=#C0C0C0]
+            LayoutText {#text} at (0,0) size 93x36
+              text run at (0,0) width 76: "inline block"
+              text run at (0,18) width 93: "with overflow."
+        LayoutText {#text} at (0,0) size 0x0
+layer at (8,42) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/layer-child-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/layer-child-outline-expected.txt
new file mode 100644
index 0000000..7dc0936f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/layer-child-outline-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 328x18
+          text run at (0,0) width 328: "This tests repainting of a layer's children's outlines."
+layer at (8,42) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,52) size 100x100
+  LayoutBlockFlow (relative positioned) {DIV} at (0,44) size 100x100 [bgcolor=#C0C0C0]
+    LayoutBlockFlow {DIV} at (0,0) size 100x100
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/layer-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/layer-outline-expected.txt
new file mode 100644
index 0000000..ea35613
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/layer-outline-expected.txt
@@ -0,0 +1,36 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 213x18
+          text run at (0,0) width 213: "This tests for regressions against "
+        LayoutInline {I} at (0,0) size 551x18
+          LayoutInline {A} at (0,0) size 354x18 [color=#0000EE]
+            LayoutText {#text} at (212,0) size 354x18
+              text run at (212,0) width 354: "http://bugzilla.opendarwin.org/show_bug.cgi?id=7943"
+          LayoutText {#text} at (565,0) size 198x18
+            text run at (565,0) width 198: " Layer outline does not repaint"
+        LayoutText {#text} at (762,0) size 5x18
+          text run at (762,0) width 5: "."
+layer at (8,42) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (18,192) size 100x100 clip at (19,193) size 98x98
+  LayoutBlockFlow {DIV} at (10,184) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (8,52) size 784x130
+  LayoutBlockFlow (relative positioned) {DIV} at (0,44) size 784x130
+layer at (18,62) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (10,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (148,62) size 100x100 backgroundClip at (138,52) size 100x100 clip at (138,52) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (140,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (278,62) size 100x100 backgroundClip at (268,52) size 5x5 clip at (268,52) size 5x5
+  LayoutBlockFlow (positioned) {DIV} at (270,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (408,62) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (400,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (538,62) size 100x100 backgroundClip at (548,72) size 100x100 clip at (548,72) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (530,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (668,62) size 100x100 backgroundClip at (773,167) size 5x5 clip at (773,167) size 5x5
+  LayoutBlockFlow (positioned) {DIV} at (660,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (18,322) size 100x100
+  LayoutBlockFlow (relative positioned) {DIV} at (0,294) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/layer-outline-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/layer-outline-horizontal-expected.txt
new file mode 100644
index 0000000..ea35613
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/layer-outline-horizontal-expected.txt
@@ -0,0 +1,36 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 213x18
+          text run at (0,0) width 213: "This tests for regressions against "
+        LayoutInline {I} at (0,0) size 551x18
+          LayoutInline {A} at (0,0) size 354x18 [color=#0000EE]
+            LayoutText {#text} at (212,0) size 354x18
+              text run at (212,0) width 354: "http://bugzilla.opendarwin.org/show_bug.cgi?id=7943"
+          LayoutText {#text} at (565,0) size 198x18
+            text run at (565,0) width 198: " Layer outline does not repaint"
+        LayoutText {#text} at (762,0) size 5x18
+          text run at (762,0) width 5: "."
+layer at (8,42) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,34) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (18,192) size 100x100 clip at (19,193) size 98x98
+  LayoutBlockFlow {DIV} at (10,184) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (8,52) size 784x130
+  LayoutBlockFlow (relative positioned) {DIV} at (0,44) size 784x130
+layer at (18,62) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (10,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (148,62) size 100x100 backgroundClip at (138,52) size 100x100 clip at (138,52) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (140,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (278,62) size 100x100 backgroundClip at (268,52) size 5x5 clip at (268,52) size 5x5
+  LayoutBlockFlow (positioned) {DIV} at (270,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (408,62) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (400,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (538,62) size 100x100 backgroundClip at (548,72) size 100x100 clip at (548,72) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (530,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (668,62) size 100x100 backgroundClip at (773,167) size 5x5 clip at (773,167) size 5x5
+  LayoutBlockFlow (positioned) {DIV} at (660,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (18,322) size 100x100
+  LayoutBlockFlow (relative positioned) {DIV} at (0,294) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/text-shadow-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/text-shadow-expected.txt
new file mode 100644
index 0000000..9065a7b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/text-shadow-expected.txt
@@ -0,0 +1,43 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x562
+      LayoutBlockFlow {P} at (0,0) size 784x36
+        LayoutText {#text} at (0,0) size 177x18
+          text run at (0,0) width 177: "This is a regression test for "
+        LayoutInline {I} at (0,0) size 721x36
+          LayoutInline {A} at (0,0) size 354x18 [color=#0000EE]
+            LayoutText {#text} at (176,0) size 354x18
+              text run at (176,0) width 354: "http://bugzilla.opendarwin.org/show_bug.cgi?id=7301"
+          LayoutText {#text} at (529,0) size 721x36
+            text run at (529,0) width 5: " "
+            text run at (533,0) width 188: "Text shadow does not repaint"
+            text run at (0,18) width 58: "correctly"
+        LayoutText {#text} at (57,18) size 5x18
+          text run at (57,18) width 5: "."
+      LayoutBlockFlow {DIV} at (30,84) size 724x22
+        LayoutInline {SPAN} at (0,0) size 200x22 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 200x22
+            text run at (0,0) width 200: "Lorem ipsum dolor sit amet"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {DIV} at (30,136) size 724x22
+        LayoutInline {SPAN} at (0,0) size 200x22 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 200x22
+            text run at (0,0) width 200: "Lorem ipsum dolor sit amet"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {DIV} at (30,188) size 724x22
+        LayoutText {#text} at (0,3) size 90x18
+          text run at (0,3) width 90: "Lorem ipsum "
+        LayoutInline {SPAN} at (0,0) size 100x22 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (89,0) size 100x22
+            text run at (89,0) width 100: "dolor sit amet"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {DIV} at (30,240) size 724x22
+        LayoutInline {SPAN} at (0,0) size 97x22 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 97x22
+            text run at (0,0) width 97: "Lorem ipsum"
+        LayoutText {#text} at (96,3) size 93x18
+          text run at (96,3) width 93: " dolor sit amet"
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/text-shadow-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/text-shadow-horizontal-expected.txt
new file mode 100644
index 0000000..9065a7b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/disable-spinvalidation/paint/invalidation/text-shadow-horizontal-expected.txt
@@ -0,0 +1,43 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x562
+      LayoutBlockFlow {P} at (0,0) size 784x36
+        LayoutText {#text} at (0,0) size 177x18
+          text run at (0,0) width 177: "This is a regression test for "
+        LayoutInline {I} at (0,0) size 721x36
+          LayoutInline {A} at (0,0) size 354x18 [color=#0000EE]
+            LayoutText {#text} at (176,0) size 354x18
+              text run at (176,0) width 354: "http://bugzilla.opendarwin.org/show_bug.cgi?id=7301"
+          LayoutText {#text} at (529,0) size 721x36
+            text run at (529,0) width 5: " "
+            text run at (533,0) width 188: "Text shadow does not repaint"
+            text run at (0,18) width 58: "correctly"
+        LayoutText {#text} at (57,18) size 5x18
+          text run at (57,18) width 5: "."
+      LayoutBlockFlow {DIV} at (30,84) size 724x22
+        LayoutInline {SPAN} at (0,0) size 200x22 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 200x22
+            text run at (0,0) width 200: "Lorem ipsum dolor sit amet"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {DIV} at (30,136) size 724x22
+        LayoutInline {SPAN} at (0,0) size 200x22 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 200x22
+            text run at (0,0) width 200: "Lorem ipsum dolor sit amet"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {DIV} at (30,188) size 724x22
+        LayoutText {#text} at (0,3) size 90x18
+          text run at (0,3) width 90: "Lorem ipsum "
+        LayoutInline {SPAN} at (0,0) size 100x22 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (89,0) size 100x22
+            text run at (89,0) width 100: "dolor sit amet"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {DIV} at (30,240) size 724x22
+        LayoutInline {SPAN} at (0,0) size 97x22 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 97x22
+            text run at (0,0) width 97: "Lorem ipsum"
+        LayoutText {#text} at (96,3) size 93x18
+          text run at (96,3) width 93: " dolor sit amet"
+layer at (8,60) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,52) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/comments-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/comments-expected.txt
new file mode 100644
index 0000000..77fa6843
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/comments-expected.txt
@@ -0,0 +1,101 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 870
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x870 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x870
+    LayoutBlockFlow {BODY} at (8,8) size 769x854 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x225
+        LayoutText {#text} at (0,0) size 328x225
+          text run at (0,0) width 227: "/* This is a CSS1 comment. */"
+          text run at (226,0) width 1: " "
+          text run at (0,15) width 328: ".one {color: green;} /* Another comment */"
+          text run at (327,15) width 1: " "
+          text run at (0,30) width 281: "/* The following should not be used:"
+          text run at (280,30) width 1: " "
+          text run at (0,45) width 164: ".two {color: red;} */"
+          text run at (163,45) width 1: " "
+          text run at (0,60) width 313: ".three {color: green; /* color: red; */}"
+          text run at (312,60) width 1: " "
+          text run at (0,75) width 24: "/**"
+          text run at (23,75) width 1: " "
+          text run at (0,90) width 172: ".four {color: red;} */"
+          text run at (171,90) width 1: " "
+          text run at (0,105) width 164: ".five {color: green;}"
+          text run at (163,105) width 1: " "
+          text run at (0,120) width 32: "/**/"
+          text run at (31,120) width 1: " "
+          text run at (0,135) width 157: ".six {color: green;}"
+          text run at (156,135) width 1: " "
+          text run at (0,150) width 86: "/*********/"
+          text run at (85,150) width 1: " "
+          text run at (0,165) width 172: ".seven {color: green;}"
+          text run at (171,165) width 1: " "
+          text run at (0,180) width 125: "/* a comment **/"
+          text run at (124,180) width 1: " "
+          text run at (0,195) width 172: ".eight {color: green;}"
+          text run at (171,195) width 1: " "
+          text run at (0,210) width 0: " "
+      LayoutBlockFlow {P} at (0,290) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,324) size 769x18
+        LayoutText {#text} at (0,0) size 196x18
+          text run at (0,0) width 196: "This sentence should be black."
+      LayoutBlockFlow {P} at (0,358) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,392) size 769x18
+        LayoutText {#text} at (0,0) size 196x18
+          text run at (0,0) width 196: "This sentence should be black."
+      LayoutBlockFlow {P} at (0,426) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,460) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,494) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,528) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutTable {TABLE} at (0,562) size 219x292 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 217x290
+          LayoutTableRow {TR} at (0,0) size 217x26
+            LayoutTableCell {TD} at (0,0) size 217x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 217x264
+            LayoutTableCell {TD} at (0,145) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 205x264 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 197x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,38) size 197x18
+                LayoutText {#text} at (0,0) size 196x18
+                  text run at (0,0) width 196: "This sentence should be black."
+              LayoutBlockFlow {P} at (4,72) size 197x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,106) size 197x18
+                LayoutText {#text} at (0,0) size 196x18
+                  text run at (0,0) width 196: "This sentence should be black."
+              LayoutBlockFlow {P} at (4,140) size 197x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,174) size 197x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,208) size 197x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,242) size 197x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+layer at (8,280) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,272) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/containment-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/containment-expected.txt
new file mode 100644
index 0000000..50be7ab
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/containment-expected.txt
@@ -0,0 +1,211 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 961
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x961 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x961
+    LayoutBlockFlow {BODY} at (8,8) size 769x945 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x150
+        LayoutText {#text} at (0,0) size 710x150
+          text run at (0,0) width 609: "<LINK rel=\"stylesheet\" type=\"text/css\" href=\"linktest.css\" title=\"Default SS\">"
+          text run at (608,0) width 1: " "
+          text run at (0,15) width 710: "<LINK rel=\"alternate stylesheet\" type=\"text/css\" href=\"linktest2.css\" title=\"Alternate SS\">"
+          text run at (709,15) width 1: " "
+          text run at (0,30) width 203: "@import url(imptest1.css);"
+          text run at (202,30) width 1: " "
+          text run at (0,45) width 188: "@import \"imptest1a.css\";"
+          text run at (187,45) width 1: " "
+          text run at (0,60) width 125: "UL {color: red;}"
+          text run at (124,60) width 1: " "
+          text run at (0,75) width 172: ".four {color: purple;}"
+          text run at (171,75) width 1: " "
+          text run at (0,90) width 203: "@import url(imptest2.css);"
+          text run at (202,90) width 1: " "
+          text run at (0,105) width 32: "<!--"
+          text run at (31,105) width 1: " "
+          text run at (0,120) width 164: "P.six {color: green;}"
+          text run at (163,120) width 1: " "
+          text run at (0,135) width 24: "-->"
+          text run at (23,135) width 1: " "
+      LayoutBlockFlow {P} at (0,215) size 769x18
+        LayoutText {#text} at (0,0) size 412x18
+          text run at (0,0) width 412: "This sentence should be underlined due to the linked style sheet "
+        LayoutInline {CODE} at (0,0) size 95x15
+          LayoutText {#text} at (411,2) size 95x15
+            text run at (411,2) width 95: "linktest.css"
+        LayoutText {#text} at (505,0) size 258x18
+          text run at (505,0) width 258: ", the reference to which is shown above."
+      LayoutBlockFlow {P} at (0,249) size 769x36
+        LayoutText {#text} at (0,0) size 449x18
+          text run at (0,0) width 449: "This sentence should NOT be underlined due to the linked style sheet "
+        LayoutInline {CODE} at (0,0) size 103x15
+          LayoutText {#text} at (448,2) size 103x15
+            text run at (448,2) width 103: "linktest2.css"
+        LayoutText {#text} at (550,0) size 9x18
+          text run at (550,0) width 9: ", "
+        LayoutInline {STRONG} at (0,0) size 42x18
+          LayoutText {#text} at (558,0) size 42x18
+            text run at (558,0) width 42: "unless"
+        LayoutText {#text} at (599,0) size 751x36
+          text run at (599,0) width 152: " the external style sheet"
+          text run at (0,18) width 330: "\"Alternate SS\" has been selected via the user agent."
+      LayoutBlockFlow {UL} at (0,301) size 769x54 [color=#FF0000]
+        LayoutListItem {LI} at (40,0) size 729x18 [color=#008000]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 398x18
+            text run at (0,0) width 398: "This sentence should be green due to an imported style sheet ["
+          LayoutInline {CODE} at (0,0) size 204x15
+            LayoutText {#text} at (397,2) size 204x15
+              text run at (397,2) width 204: "@import url(imptest1.css);"
+          LayoutText {#text} at (600,0) size 10x18
+            text run at (600,0) width 10: "]."
+        LayoutListItem {LI} at (40,18) size 729x18 [color=#800080]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 403x18
+            text run at (0,0) width 403: "This sentence should be purple due to an imported style sheet ["
+          LayoutInline {CODE} at (0,0) size 180x15
+            LayoutText {#text} at (403,2) size 180x15
+              text run at (403,2) width 180: "@import \"imptest1a.css\""
+          LayoutText {#text} at (582,0) size 10x18
+            text run at (582,0) width 10: "]."
+        LayoutListItem {LI} at (40,36) size 729x18 [color=#008000]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 399x18
+            text run at (0,0) width 399: "This sentence should be green thanks to the STYLE attribute ["
+          LayoutInline {CODE} at (0,0) size 164x15
+            LayoutText {#text} at (399,2) size 164x15
+              text run at (399,2) width 164: "STYLE=\"color: green;\""
+          LayoutText {#text} at (562,0) size 11x18
+            text run at (562,0) width 11: "]."
+      LayoutBlockFlow {P} at (0,371) size 769x18 [color=#800080]
+        LayoutText {#text} at (0,0) size 510x18
+          text run at (0,0) width 510: "This sentence should be purple, and it doesn't have a terminating paragraph tag."
+      LayoutBlockFlow {OL} at (0,405) size 769x54
+        LayoutListItem {LI} at (40,0) size 729x18
+          LayoutListMarker (anonymous) at (-16,0) size 16x18: "1"
+          LayoutText {#text} at (0,0) size 204x18
+            text run at (0,0) width 204: "This list should NOT be purple."
+        LayoutListItem {LI} at (40,18) size 729x18
+          LayoutListMarker (anonymous) at (-16,0) size 16x18: "2"
+          LayoutText {#text} at (0,0) size 176x18
+            text run at (0,0) width 176: "It should, instead, be black."
+        LayoutListItem {LI} at (40,36) size 729x18
+          LayoutListMarker (anonymous) at (-16,0) size 16x18: "3"
+          LayoutText {#text} at (0,0) size 512x18
+            text run at (0,0) width 512: "If it IS purple, then the browser hasn't correctly parsed the preceding paragraph."
+      LayoutBlockFlow {P} at (0,475) size 769x36
+        LayoutText {#text} at (0,0) size 714x18
+          text run at (0,0) width 200: "This sentence should be black. "
+          text run at (199,0) width 515: "If it is red, then the browser has inappropriately imported the styles from the file"
+        LayoutInline {TT} at (0,0) size 94x15
+          LayoutText {#text} at (0,20) size 94x15
+            text run at (0,20) width 94: "imptest2.css"
+        LayoutText {#text} at (93,18) size 35x18
+          text run at (93,18) width 35: " (see "
+        LayoutInline {A} at (0,0) size 70x18 [color=#0000FF]
+          LayoutText {#text} at (127,18) size 70x18
+            text run at (127,18) width 70: "section 3.0"
+        LayoutText {#text} at (196,18) size 282x18
+          text run at (196,18) width 282: " of the CSS1 specification for more details)."
+      LayoutBlockFlow {P} at (0,527) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 206x18
+          text run at (0,0) width 206: "This paragraph should be green."
+      LayoutTable {TABLE} at (0,561) size 769x384 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x382
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x356
+            LayoutTableCell {TD} at (0,191) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x356 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x36
+                LayoutText {#text} at (0,0) size 412x18
+                  text run at (0,0) width 412: "This sentence should be underlined due to the linked style sheet "
+                LayoutInline {CODE} at (0,0) size 95x15
+                  LayoutText {#text} at (411,2) size 95x15
+                    text run at (411,2) width 95: "linktest.css"
+                LayoutText {#text} at (505,0) size 717x36
+                  text run at (505,0) width 212: ", the reference to which is shown"
+                  text run at (0,18) width 43: "above."
+              LayoutBlockFlow {P} at (4,56) size 747x36
+                LayoutText {#text} at (0,0) size 449x18
+                  text run at (0,0) width 449: "This sentence should NOT be underlined due to the linked style sheet "
+                LayoutInline {CODE} at (0,0) size 103x15
+                  LayoutText {#text} at (448,2) size 103x15
+                    text run at (448,2) width 103: "linktest2.css"
+                LayoutText {#text} at (550,0) size 9x18
+                  text run at (550,0) width 9: ", "
+                LayoutInline {STRONG} at (0,0) size 42x18
+                  LayoutText {#text} at (558,0) size 42x18
+                    text run at (558,0) width 42: "unless"
+                LayoutText {#text} at (599,0) size 714x36
+                  text run at (599,0) width 115: " the external style"
+                  text run at (0,18) width 367: "sheet \"Alternate SS\" has been selected via the user agent."
+              LayoutBlockFlow {UL} at (4,108) size 747x54 [color=#FF0000]
+                LayoutListItem {LI} at (40,0) size 707x18 [color=#008000]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 398x18
+                    text run at (0,0) width 398: "This sentence should be green due to an imported style sheet ["
+                  LayoutInline {CODE} at (0,0) size 204x15
+                    LayoutText {#text} at (397,2) size 204x15
+                      text run at (397,2) width 204: "@import url(imptest1.css);"
+                  LayoutText {#text} at (600,0) size 10x18
+                    text run at (600,0) width 10: "]."
+                LayoutListItem {LI} at (40,18) size 707x18 [color=#800080]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 403x18
+                    text run at (0,0) width 403: "This sentence should be purple due to an imported style sheet ["
+                  LayoutInline {CODE} at (0,0) size 180x15
+                    LayoutText {#text} at (403,2) size 180x15
+                      text run at (403,2) width 180: "@import \"imptest1a.css\""
+                  LayoutText {#text} at (582,0) size 10x18
+                    text run at (582,0) width 10: "]."
+                LayoutListItem {LI} at (40,36) size 707x18 [color=#008000]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 399x18
+                    text run at (0,0) width 399: "This sentence should be green thanks to the STYLE attribute ["
+                  LayoutInline {CODE} at (0,0) size 164x15
+                    LayoutText {#text} at (399,2) size 164x15
+                      text run at (399,2) width 164: "STYLE=\"color: green;\""
+                  LayoutText {#text} at (562,0) size 11x18
+                    text run at (562,0) width 11: "]."
+              LayoutBlockFlow {P} at (4,178) size 747x18 [color=#800080]
+                LayoutText {#text} at (0,0) size 510x18
+                  text run at (0,0) width 510: "This sentence should be purple, and it doesn't have a terminating paragraph tag."
+              LayoutBlockFlow {OL} at (4,212) size 747x54
+                LayoutListItem {LI} at (40,0) size 707x18
+                  LayoutListMarker (anonymous) at (-16,0) size 16x18: "1"
+                  LayoutText {#text} at (0,0) size 204x18
+                    text run at (0,0) width 204: "This list should NOT be purple."
+                LayoutListItem {LI} at (40,18) size 707x18
+                  LayoutListMarker (anonymous) at (-16,0) size 16x18: "2"
+                  LayoutText {#text} at (0,0) size 176x18
+                    text run at (0,0) width 176: "It should, instead, be black."
+                LayoutListItem {LI} at (40,36) size 707x18
+                  LayoutListMarker (anonymous) at (-16,0) size 16x18: "3"
+                  LayoutText {#text} at (0,0) size 512x18
+                    text run at (0,0) width 512: "If it IS purple, then the browser hasn't correctly parsed the preceding paragraph."
+              LayoutBlockFlow {P} at (4,282) size 747x36
+                LayoutText {#text} at (0,0) size 714x18
+                  text run at (0,0) width 200: "This sentence should be black. "
+                  text run at (199,0) width 515: "If it is red, then the browser has inappropriately imported the styles from the file"
+                LayoutInline {TT} at (0,0) size 94x15
+                  LayoutText {#text} at (0,20) size 94x15
+                    text run at (0,20) width 94: "imptest2.css"
+                LayoutText {#text} at (93,18) size 35x18
+                  text run at (93,18) width 35: " (see "
+                LayoutInline {A} at (0,0) size 70x18 [color=#0000FF]
+                  LayoutText {#text} at (127,18) size 70x18
+                    text run at (127,18) width 70: "section 3.0"
+                LayoutText {#text} at (196,18) size 282x18
+                  text run at (196,18) width 282: " of the CSS1 specification for more details)."
+              LayoutBlockFlow {P} at (4,334) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 206x18
+                  text run at (0,0) width 206: "This paragraph should be green."
+layer at (8,205) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,197) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/contextual_selectors-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/contextual_selectors-expected.txt
new file mode 100644
index 0000000..7382d41
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/contextual_selectors-expected.txt
@@ -0,0 +1,83 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18 [color=#000080]
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x60
+        LayoutText {#text} at (0,0) size 461x60
+          text run at (0,0) width 281: "P {color: navy; font-family: serif;}"
+          text run at (280,0) width 1: " "
+          text run at (0,15) width 461: "HTML BODY TABLE P {color: purple; font-family: sans-serif;}"
+          text run at (460,15) width 1: " "
+          text run at (0,30) width 219: "EM, UL LI LI {color: green;}"
+          text run at (218,30) width 1: " "
+          text run at (0,45) width 0: " "
+      LayoutBlockFlow {P} at (0,125) size 784x18 [color=#000080]
+        LayoutText {#text} at (0,0) size 639x18
+          text run at (0,0) width 639: "This sentence should be navy serif in the first half of the page, but purple and sans-serif in the table."
+      LayoutBlockFlow {P} at (0,159) size 784x18 [color=#000080]
+        LayoutText {#text} at (0,0) size 570x18
+          text run at (0,0) width 570: "This sentence should be normal for its section, except for the last word, which should be "
+        LayoutInline {EM} at (0,0) size 37x18 [color=#008000]
+          LayoutText {#text} at (569,0) size 37x18
+            text run at (569,0) width 37: "green"
+        LayoutText {#text} at (605,0) size 5x18
+          text run at (605,0) width 5: "."
+      LayoutBlockFlow {UL} at (0,193) size 784x36
+        LayoutListItem {LI} at (40,0) size 744x36
+          LayoutBlockFlow (anonymous) at (0,0) size 744x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutInline {EM} at (0,0) size 40x18 [color=#008000]
+              LayoutText {#text} at (0,0) size 40x18
+                text run at (0,0) width 40: "Hello."
+            LayoutText {#text} at (39,0) size 406x18
+              text run at (39,0) width 5: " "
+              text run at (43,0) width 402: "The first \"hello\" should be green, but this part should be black."
+          LayoutBlockFlow {UL} at (0,18) size 744x18
+            LayoutListItem {LI} at (40,0) size 704x18 [color=#008000]
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 138x18
+                text run at (0,0) width 138: "This should be green."
+      LayoutTable {TABLE} at (0,245) size 730x156 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 728x154
+          LayoutTableRow {TR} at (0,0) size 728x26
+            LayoutTableCell {TD} at (0,0) size 728x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 728x128
+            LayoutTableCell {TD} at (0,77) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 716x128 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 708x18 [color=#800080]
+                LayoutText {#text} at (0,0) size 708x18
+                  text run at (0,0) width 708: "This sentence should be navy serif in the first half of the page, but purple and sans-serif in the table."
+              LayoutBlockFlow {P} at (4,38) size 708x18 [color=#800080]
+                LayoutText {#text} at (0,0) size 628x18
+                  text run at (0,0) width 628: "This sentence should be normal for its section, except for the last word, which should be "
+                LayoutInline {EM} at (0,0) size 42x18 [color=#008000]
+                  LayoutText {#text} at (627,0) size 42x18
+                    text run at (627,0) width 42: "green"
+                LayoutText {#text} at (668,0) size 6x18
+                  text run at (668,0) width 6: "."
+              LayoutBlockFlow {UL} at (4,72) size 708x36
+                LayoutListItem {LI} at (40,0) size 668x36
+                  LayoutBlockFlow (anonymous) at (0,0) size 668x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutInline {EM} at (0,0) size 40x18 [color=#008000]
+                      LayoutText {#text} at (0,0) size 40x18
+                        text run at (0,0) width 40: "Hello."
+                    LayoutText {#text} at (39,0) size 406x18
+                      text run at (39,0) width 5: " "
+                      text run at (43,0) width 402: "The first \"hello\" should be green, but this part should be black."
+                  LayoutBlockFlow {UL} at (0,18) size 668x18
+                    LayoutListItem {LI} at (40,0) size 628x18 [color=#008000]
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 138x18
+                        text run at (0,0) width 138: "This should be green."
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/grouping-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/grouping-expected.txt
new file mode 100644
index 0000000..5762d680
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/grouping-expected.txt
@@ -0,0 +1,45 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x30
+        LayoutText {#text} at (0,0) size 266x30
+          text run at (0,0) width 266: ".one, .two, .three {color: green;}"
+          text run at (265,0) width 1: " "
+          text run at (0,15) width 0: " "
+      LayoutBlockFlow {P} at (0,95) size 784x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,129) size 784x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,163) size 784x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutTable {TABLE} at (0,197) size 219x122 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 217x120
+          LayoutTableRow {TR} at (0,0) size 217x26
+            LayoutTableCell {TD} at (0,0) size 217x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 217x94
+            LayoutTableCell {TD} at (0,60) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 205x94 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 197x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,38) size 197x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,72) size 197x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+layer at (8,85) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/id_as_selector-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/id_as_selector-expected.txt
new file mode 100644
index 0000000..8f0dc25
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/id_as_selector-expected.txt
@@ -0,0 +1,93 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 627
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x627 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x627
+    LayoutBlockFlow {BODY} at (8,8) size 769x611 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x120
+        LayoutText {#text} at (0,0) size 266x120
+          text run at (0,0) width 157: "#one {color: green;}"
+          text run at (156,0) width 1: " "
+          text run at (0,15) width 149: "#a1 {color: green;}"
+          text run at (148,15) width 1: " "
+          text run at (0,30) width 219: "P#two, P#two2 {color: blue;}"
+          text run at (218,30) width 1: " "
+          text run at (0,45) width 266: "P#three, P#three2 {color: purple;}"
+          text run at (265,45) width 1: " "
+          text run at (0,60) width 164: "#four {color: green;}"
+          text run at (163,60) width 1: " "
+          text run at (0,75) width 149: "#a2 {color: green;}"
+          text run at (148,75) width 1: " "
+          text run at (0,90) width 235: "P#five, P#five2 {color: blue;}"
+          text run at (234,90) width 1: " "
+          text run at (0,105) width 235: "P#six, P#six2 {color: purple;}"
+      LayoutBlockFlow {P} at (0,185) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,219) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,253) size 769x18 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 204x18
+          text run at (0,0) width 204: "This paragraph should be blue ["
+        LayoutInline {TT} at (0,0) size 63x15
+          LayoutText {#text} at (203,2) size 63x15
+            text run at (203,2) width 63: "ID=\"two\""
+        LayoutText {#text} at (265,0) size 10x18
+          text run at (265,0) width 10: "]."
+      LayoutBlockFlow {PRE} at (0,287) size 769x15
+        LayoutText {#text} at (0,0) size 383x15
+          text run at (0,0) width 383: "This sentence should NOT be blue [PRE ID=\"two2\"]."
+          text run at (382,0) width 1: " "
+      LayoutBlockFlow {PRE} at (0,315) size 769x15
+        LayoutText {#text} at (0,0) size 461x15
+          text run at (0,0) width 461: "This sentence should be black, not purple [PRE ID=\"three\"]."
+          text run at (460,0) width 1: " "
+      LayoutBlockFlow {UL} at (0,346) size 769x18
+        LayoutListItem {LI} at (40,0) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 240x18
+            text run at (0,0) width 240: "This sentence should NOT be purple."
+      LayoutTable {TABLE} at (0,380) size 413x231 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 411x229
+          LayoutTableRow {TR} at (0,0) size 411x26
+            LayoutTableCell {TD} at (0,0) size 411x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 411x203
+            LayoutTableCell {TD} at (0,114) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 399x203 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 391x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,38) size 391x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,72) size 391x18 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 204x18
+                  text run at (0,0) width 204: "This paragraph should be blue ["
+                LayoutInline {TT} at (0,0) size 71x15
+                  LayoutText {#text} at (203,2) size 71x15
+                    text run at (203,2) width 71: "ID=\"five\""
+                LayoutText {#text} at (273,0) size 10x18
+                  text run at (273,0) width 10: "]."
+              LayoutBlockFlow {PRE} at (4,106) size 391x15
+                LayoutText {#text} at (0,0) size 391x15
+                  text run at (0,0) width 391: "This sentence should NOT be blue [PRE ID=\"five2\"]."
+                  text run at (390,0) width 1: " "
+              LayoutBlockFlow {PRE} at (4,134) size 391x15
+                LayoutText {#text} at (0,0) size 352x15
+                  text run at (0,0) width 352: "This sentence should be black [PRE ID=\"six\"]."
+                  text run at (351,0) width 1: " "
+              LayoutBlockFlow {UL} at (4,165) size 391x18
+                LayoutListItem {LI} at (40,0) size 351x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 240x18
+                    text run at (0,0) width 240: "This sentence should NOT be purple."
+layer at (8,175) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,167) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/inheritance-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/inheritance-expected.txt
new file mode 100644
index 0000000..34b00e7c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/basic/inheritance-expected.txt
@@ -0,0 +1,190 @@
+layer at (0,0) size 800x600 scrollHeight 731
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x731 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x730.59
+    LayoutBlockFlow {BODY} at (8,8) size 784x714.59 [color=#008000] [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x105
+        LayoutText {#text} at (0,0) size 266x105
+          text run at (0,0) width 157: "BODY {color: green;}"
+          text run at (156,0) width 1: " "
+          text run at (0,15) width 133: "H3 {color: blue;}"
+          text run at (132,15) width 1: " "
+          text run at (0,30) width 149: "EM {color: purple;}"
+          text run at (148,30) width 1: " "
+          text run at (0,45) width 203: ".one {font-style: italic;}"
+          text run at (202,45) width 1: " "
+          text run at (0,60) width 266: ".two {text-decoration: underline;}"
+          text run at (265,60) width 1: " "
+          text run at (0,75) width 149: "#two {color: navy;}"
+          text run at (148,75) width 1: " "
+          text run at (0,90) width 180: ".three {color: purple;}"
+          text run at (179,90) width 1: " "
+      LayoutBlockFlow {H3} at (0,172.72) size 784x22 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 216x22
+          text run at (0,0) width 216: "This sentence should show "
+        LayoutInline {STRONG} at (0,0) size 35x22
+          LayoutText {#text} at (215,0) size 35x22
+            text run at (215,0) width 35: "blue"
+        LayoutText {#text} at (249,0) size 41x22
+          text run at (249,0) width 41: " and "
+        LayoutInline {EM} at (0,0) size 50x22 [color=#800080]
+          LayoutText {#text} at (289,0) size 50x22
+            text run at (289,0) width 50: "purple"
+        LayoutText {#text} at (338,0) size 6x22
+          text run at (338,0) width 6: "."
+      LayoutBlockFlow {H3} at (0,213.44) size 784x22 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 194x22
+          text run at (0,0) width 194: "This sentence should be "
+        LayoutInline {SPAN} at (0,0) size 34x22
+          LayoutText {#text} at (193,0) size 34x22
+            text run at (193,0) width 34: "blue"
+        LayoutText {#text} at (226,0) size 101x22
+          text run at (226,0) width 101: " throughout."
+      LayoutBlockFlow {P} at (0,254.16) size 784x18
+        LayoutText {#text} at (0,0) size 230x18
+          text run at (0,0) width 230: "This should be green except for the "
+        LayoutInline {EM} at (0,0) size 118x18 [color=#800080]
+          LayoutText {#text} at (229,0) size 118x18
+            text run at (229,0) width 118: "emphasized words"
+        LayoutText {#text} at (346,0) size 163x18
+          text run at (346,0) width 163: ", which should be purple."
+      LayoutBlockFlow {H3} at (0,290.88) size 784x22 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 287x22
+          text run at (0,0) width 287: "This should be blue and underlined."
+      LayoutBlockFlow {P} at (0,331.59) size 784x18
+        LayoutText {#text} at (0,0) size 299x18
+          text run at (0,0) width 299: "This sentence should be underlined, including "
+        LayoutInline {TT} at (0,0) size 71x15
+          LayoutText {#text} at (298,2) size 71x15
+            text run at (298,2) width 71: "this part"
+        LayoutText {#text} at (368,0) size 9x18
+          text run at (368,0) width 9: ", "
+        LayoutInline {I} at (0,0) size 55x18
+          LayoutText {#text} at (376,0) size 55x18
+            text run at (376,0) width 55: "this part"
+        LayoutText {#text} at (430,0) size 9x18
+          text run at (430,0) width 9: ", "
+        LayoutInline {EM} at (0,0) size 54x18 [color=#800080]
+          LayoutText {#text} at (438,0) size 54x18
+            text run at (438,0) width 54: "this part"
+        LayoutText {#text} at (491,0) size 37x18
+          text run at (491,0) width 37: ", and "
+        LayoutInline {STRONG} at (0,0) size 59x18
+          LayoutText {#text} at (527,0) size 59x18
+            text run at (527,0) width 59: "this part"
+        LayoutText {#text} at (585,0) size 5x18
+          text run at (585,0) width 5: "."
+      LayoutBlockFlow {P} at (0,365.59) size 784x18 [color=#000080]
+        LayoutText {#text} at (0,0) size 444x18
+          text run at (0,0) width 444: "This sentence should also be underlined, as well as dark blue (navy), "
+        LayoutInline {TT} at (0,0) size 149x15
+          LayoutText {#text} at (443,2) size 149x15
+            text run at (443,2) width 149: "including this part"
+        LayoutText {#text} at (591,0) size 5x18
+          text run at (591,0) width 5: "."
+      LayoutBlockFlow {P} at (0,399.59) size 784x18 [color=#800080]
+        LayoutText {#text} at (0,0) size 271x18
+          text run at (0,0) width 271: "This sentence should be purple, including "
+        LayoutInline {STRONG} at (0,0) size 59x18
+          LayoutText {#text} at (270,0) size 59x18
+            text run at (270,0) width 59: "this part"
+        LayoutText {#text} at (328,0) size 32x18
+          text run at (328,0) width 32: " and "
+        LayoutInline {SPAN} at (0,0) size 178x18
+          LayoutText {#text} at (359,0) size 178x18
+            text run at (359,0) width 178: "this part (which is spanned)"
+        LayoutText {#text} at (536,0) size 5x18
+          text run at (536,0) width 5: "."
+      LayoutTable {TABLE} at (0,433.59) size 618x281 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 616x279
+          LayoutTableRow {TR} at (0,0) size 616x26
+            LayoutTableCell {TD} at (0,0) size 616x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 616x253
+            LayoutTableCell {TD} at (0,139) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 604x252.88 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {H3} at (4,4) size 596x22 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 216x22
+                  text run at (0,0) width 216: "This sentence should show "
+                LayoutInline {STRONG} at (0,0) size 35x22
+                  LayoutText {#text} at (215,0) size 35x22
+                    text run at (215,0) width 35: "blue"
+                LayoutText {#text} at (249,0) size 41x22
+                  text run at (249,0) width 41: " and "
+                LayoutInline {EM} at (0,0) size 50x22 [color=#800080]
+                  LayoutText {#text} at (289,0) size 50x22
+                    text run at (289,0) width 50: "purple"
+                LayoutText {#text} at (338,0) size 6x22
+                  text run at (338,0) width 6: "."
+              LayoutBlockFlow {H3} at (4,44.72) size 596x22 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 194x22
+                  text run at (0,0) width 194: "This sentence should be "
+                LayoutInline {SPAN} at (0,0) size 34x22
+                  LayoutText {#text} at (193,0) size 34x22
+                    text run at (193,0) width 34: "blue"
+                LayoutText {#text} at (226,0) size 101x22
+                  text run at (226,0) width 101: " throughout."
+              LayoutBlockFlow {P} at (4,85.44) size 596x18
+                LayoutText {#text} at (0,0) size 230x18
+                  text run at (0,0) width 230: "This should be green except for the "
+                LayoutInline {EM} at (0,0) size 118x18 [color=#800080]
+                  LayoutText {#text} at (229,0) size 118x18
+                    text run at (229,0) width 118: "emphasized words"
+                LayoutText {#text} at (346,0) size 163x18
+                  text run at (346,0) width 163: ", which should be purple."
+              LayoutBlockFlow {H3} at (4,122.16) size 596x22 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 287x22
+                  text run at (0,0) width 287: "This should be blue and underlined."
+              LayoutBlockFlow {P} at (4,162.88) size 596x18
+                LayoutText {#text} at (0,0) size 299x18
+                  text run at (0,0) width 299: "This sentence should be underlined, including "
+                LayoutInline {TT} at (0,0) size 71x15
+                  LayoutText {#text} at (298,2) size 71x15
+                    text run at (298,2) width 71: "this part"
+                LayoutText {#text} at (368,0) size 9x18
+                  text run at (368,0) width 9: ", "
+                LayoutInline {I} at (0,0) size 55x18
+                  LayoutText {#text} at (376,0) size 55x18
+                    text run at (376,0) width 55: "this part"
+                LayoutText {#text} at (430,0) size 9x18
+                  text run at (430,0) width 9: ", "
+                LayoutInline {EM} at (0,0) size 54x18 [color=#800080]
+                  LayoutText {#text} at (438,0) size 54x18
+                    text run at (438,0) width 54: "this part"
+                LayoutText {#text} at (491,0) size 37x18
+                  text run at (491,0) width 37: ", and "
+                LayoutInline {STRONG} at (0,0) size 59x18
+                  LayoutText {#text} at (527,0) size 59x18
+                    text run at (527,0) width 59: "this part"
+                LayoutText {#text} at (585,0) size 5x18
+                  text run at (585,0) width 5: "."
+              LayoutBlockFlow {P} at (4,196.88) size 596x18 [color=#000080]
+                LayoutText {#text} at (0,0) size 444x18
+                  text run at (0,0) width 444: "This sentence should also be underlined, as well as dark blue (navy), "
+                LayoutInline {TT} at (0,0) size 149x15
+                  LayoutText {#text} at (443,2) size 149x15
+                    text run at (443,2) width 149: "including this part"
+                LayoutText {#text} at (591,0) size 5x18
+                  text run at (591,0) width 5: "."
+              LayoutBlockFlow {P} at (4,230.88) size 596x18 [color=#800080]
+                LayoutText {#text} at (0,0) size 271x18
+                  text run at (0,0) width 271: "This sentence should be purple, including "
+                LayoutInline {STRONG} at (0,0) size 59x18
+                  LayoutText {#text} at (270,0) size 59x18
+                    text run at (270,0) width 59: "this part"
+                LayoutText {#text} at (328,0) size 32x18
+                  text run at (328,0) width 32: " and "
+                LayoutInline {SPAN} at (0,0) size 178x18
+                  LayoutText {#text} at (359,0) size 178x18
+                    text run at (359,0) width 178: "this part (which is spanned)"
+                LayoutText {#text} at (536,0) size 5x18
+                  text run at (536,0) width 5: "."
+layer at (8,160) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,152) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border-expected.txt
new file mode 100644
index 0000000..6cd3a3e7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border-expected.txt
@@ -0,0 +1,189 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1432
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1432 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1432
+    LayoutBlockFlow {BODY} at (8,8) size 769x1416 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x135
+        LayoutText {#text} at (0,0) size 266x135
+          text run at (0,0) width 266: ".one {border: medium black solid;}"
+          text run at (265,0) width 1: " "
+          text run at (0,15) width 258: ".two {border: thin maroon ridge;}"
+          text run at (257,15) width 1: " "
+          text run at (0,30) width 266: ".three {border: 10px teal outset;}"
+          text run at (265,30) width 1: " "
+          text run at (0,45) width 258: ".four {border: 10px olive inset;}"
+          text run at (257,45) width 1: " "
+          text run at (0,60) width 219: ".five {border: 10px maroon;}"
+          text run at (218,60) width 1: " "
+          text run at (0,75) width 227: ".six {border: maroon double;}"
+          text run at (226,75) width 1: " "
+          text run at (0,90) width 250: ".seven {border: left red solid;}"
+          text run at (249,90) width 1: " "
+          text run at (0,105) width 164: ".eight {border: 0px;}"
+          text run at (163,105) width 1: " "
+          text run at (0,120) width 227: "TD {border: 2px solid green;}"
+          text run at (226,120) width 1: " "
+      LayoutBlockFlow {P} at (0,200) size 769x36
+        LayoutText {#text} at (0,0) size 765x36
+          text run at (0,0) width 641: "Note that all table cells on this page should have a two-pixel solid green border along all four sides. "
+          text run at (640,0) width 125: "This border applies"
+          text run at (0,18) width 324: "only to the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (0,252) size 769x24 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 491x18
+          text run at (3,3) width 491: "This paragraph should have a medium black solid border all the way around."
+      LayoutBlockFlow {P} at (0,292) size 769x20 [border: (1px ridge #800000)]
+        LayoutText {#text} at (1,1) size 488x18
+          text run at (1,1) width 488: "This paragraph should have a thin maroon ridged border all the way around."
+      LayoutBlockFlow {P} at (0,328) size 769x38 [border: (10px outset #008080)]
+        LayoutText {#text} at (10,10) size 528x18
+          text run at (10,10) width 528: "This paragraph should have a ten-pixel-wide teal outset border all the way around."
+      LayoutBlockFlow {P} at (0,382) size 769x38 [border: (10px inset #808000)]
+        LayoutText {#text} at (10,10) size 529x18
+          text run at (10,10) width 529: "This paragraph should have a ten-pixel-wide olive inset border all the way around."
+      LayoutBlockFlow {P} at (0,436) size 769x36
+        LayoutText {#text} at (0,0) size 354x18
+          text run at (0,0) width 354: "This paragraph should have no border around it, as the "
+        LayoutInline {TT} at (0,0) size 94x15
+          LayoutText {#text} at (353,2) size 94x15
+            text run at (353,2) width 94: "border-style"
+        LayoutText {#text} at (446,0) size 740x36
+          text run at (446,0) width 294: " was not set, and it should not be offset in any"
+          text run at (0,18) width 30: "way."
+      LayoutBlockFlow {P} at (0,488) size 769x42 [border: (3px double #800000)]
+        LayoutText {#text} at (3,3) size 543x18
+          text run at (3,3) width 543: "This paragraph should have a medium maroon double border around it, even though "
+        LayoutInline {CODE} at (0,0) size 95x15
+          LayoutText {#text} at (545,5) size 95x15
+            text run at (545,5) width 95: "border-width"
+        LayoutText {#text} at (639,3) size 755x36
+          text run at (639,3) width 119: " was not explicitly"
+          text run at (3,21) width 22: "set."
+      LayoutBlockFlow {P} at (0,546) size 769x18
+        LayoutText {#text} at (0,0) size 633x18
+          text run at (0,0) width 633: "This paragraph should have no border around it, as its declaration is invalid and should be ignored."
+      LayoutBlockFlow {P} at (0,580) size 769x37
+        LayoutInline {A} at (0,0) size 25x18
+          LayoutText {#text} at (0,1) size 25x18
+            text run at (0,1) width 25: "The"
+        LayoutText {#text} at (24,1) size 730x18
+          text run at (24,1) width 730: " following image is also an anchor which points to a target on this page, but it should not have a border around it: "
+        LayoutInline {A} at (0,0) size 16x18 [color=#0000FF]
+          LayoutImage {IMG} at (753.77,0) size 15x15
+        LayoutText {#text} at (0,19) size 4x18
+          text run at (0,19) width 4: "."
+      LayoutTable {TABLE} at (0,633) size 769x113 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x111
+          LayoutTableRow {TR} at (0,5) size 767x42
+            LayoutTableCell {TD} at (5,5) size 757x42 [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (3,3) size 728x36
+                text run at (3,3) width 413: "Every cell in this table should have a 2-pixel solid green border. "
+                text run at (415,3) width 316: "This is also true of the table-testing section in the"
+                text run at (3,21) width 179: "second half of the test page."
+          LayoutTableRow {TR} at (0,52) size 767x54
+            LayoutTableCell {TD} at (5,67) size 192x24 [border: (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (3,3) size 54x18
+                text run at (3,3) width 54: "Cell one"
+            LayoutTableCell {TD} at (202,52) size 560x54 [border: (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (3,3) size 554x18
+                LayoutText {#text} at (0,0) size 55x18
+                  text run at (0,0) width 55: "Cell two"
+              LayoutTable {TABLE} at (3,21) size 168x30 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 166x28
+                  LayoutTableRow {TR} at (0,2) size 166x24
+                    LayoutTableCell {TD} at (2,2) size 162x24 [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (3,3) size 156x18
+                        text run at (3,3) width 156: "Nested single-cell table!"
+      LayoutBlockFlow {P} at (0,762) size 769x18
+        LayoutText {#text} at (0,0) size 180x18
+          text run at (0,0) width 180: "This is an unstyled element."
+      LayoutTable {TABLE} at (0,796) size 769x620 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x618
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (5,5) size 161x18
+                  text run at (5,5) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x590
+            LayoutTableCell {TD} at (0,309) size 14x28 [bgcolor=#C0C0C0] [border: (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (5,5) size 4x18
+                text run at (5,5) width 4: " "
+            LayoutTableCell {TD} at (14,28) size 753x590 [border: (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (5,5) size 743x36
+                LayoutText {#text} at (0,0) size 715x36
+                  text run at (0,0) width 641: "Note that all table cells on this page should have a two-pixel solid green border along all four sides. "
+                  text run at (640,0) width 75: "This border"
+                  text run at (0,18) width 373: "applies only to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (5,57) size 743x24 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 491x18
+                  text run at (3,3) width 491: "This paragraph should have a medium black solid border all the way around."
+              LayoutBlockFlow {P} at (5,97) size 743x20 [border: (1px ridge #800000)]
+                LayoutText {#text} at (1,1) size 488x18
+                  text run at (1,1) width 488: "This paragraph should have a thin maroon ridged border all the way around."
+              LayoutBlockFlow {P} at (5,133) size 743x38 [border: (10px outset #008080)]
+                LayoutText {#text} at (10,10) size 528x18
+                  text run at (10,10) width 528: "This paragraph should have a ten-pixel-wide teal outset border all the way around."
+              LayoutBlockFlow {P} at (5,187) size 743x38 [border: (10px inset #808000)]
+                LayoutText {#text} at (10,10) size 529x18
+                  text run at (10,10) width 529: "This paragraph should have a ten-pixel-wide olive inset border all the way around."
+              LayoutBlockFlow {P} at (5,241) size 743x36
+                LayoutText {#text} at (0,0) size 354x18
+                  text run at (0,0) width 354: "This paragraph should have no border around it, as the "
+                LayoutInline {TT} at (0,0) size 94x15
+                  LayoutText {#text} at (353,2) size 94x15
+                    text run at (353,2) width 94: "border-style"
+                LayoutText {#text} at (446,0) size 740x36
+                  text run at (446,0) width 294: " was not set, and it should not be offset in any"
+                  text run at (0,18) width 30: "way."
+              LayoutBlockFlow {P} at (5,293) size 743x42 [border: (3px double #800000)]
+                LayoutText {#text} at (3,3) size 543x18
+                  text run at (3,3) width 543: "This paragraph should have a medium maroon double border around it, even though "
+                LayoutInline {CODE} at (0,0) size 95x15
+                  LayoutText {#text} at (545,5) size 95x15
+                    text run at (545,5) width 95: "border-width"
+                LayoutText {#text} at (639,3) size 690x36
+                  text run at (639,3) width 54: " was not"
+                  text run at (3,21) width 87: "explicitly set."
+              LayoutBlockFlow {P} at (5,351) size 743x18
+                LayoutText {#text} at (0,0) size 633x18
+                  text run at (0,0) width 633: "This paragraph should have no border around it, as its declaration is invalid and should be ignored."
+              LayoutBlockFlow {P} at (5,385) size 743x37
+                LayoutInline {A} at (0,0) size 25x18
+                  LayoutText {#text} at (0,0) size 25x18
+                    text run at (0,0) width 25: "The"
+                LayoutText {#text} at (24,0) size 733x37
+                  text run at (24,0) width 709: " following image is also an anchor which points to a target on this page, but it should not have a border around"
+                  text run at (0,19) width 18: "it: "
+                LayoutInline {A} at (0,0) size 16x18 [color=#0000FF]
+                  LayoutImage {IMG} at (17.33,18) size 15x15
+                LayoutText {#text} at (32,19) size 5x18
+                  text run at (32,19) width 5: "."
+              LayoutTable {TABLE} at (5,438) size 743x113 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 741x111
+                  LayoutTableRow {TR} at (0,5) size 741x42
+                    LayoutTableCell {TD} at (5,5) size 731x42 [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (3,3) size 705x36
+                        text run at (3,3) width 413: "Every cell in this table should have a 2-pixel solid green border. "
+                        text run at (415,3) width 293: "This is also true of the table-testing section in"
+                        text run at (3,21) width 203: "the second half of the test page."
+                  LayoutTableRow {TR} at (0,52) size 741x54
+                    LayoutTableCell {TD} at (5,67) size 185x24 [border: (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (3,3) size 54x18
+                        text run at (3,3) width 54: "Cell one"
+                    LayoutTableCell {TD} at (195,52) size 541x54 [border: (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (3,3) size 535x18
+                        LayoutText {#text} at (0,0) size 55x18
+                          text run at (0,0) width 55: "Cell two"
+                      LayoutTable {TABLE} at (3,21) size 168x30 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 166x28
+                          LayoutTableRow {TR} at (0,2) size 166x24
+                            LayoutTableCell {TD} at (2,2) size 162x24 [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (3,3) size 156x18
+                                text run at (3,3) width 156: "Nested single-cell table!"
+              LayoutBlockFlow {P} at (5,567) size 743x18
+                LayoutText {#text} at (0,0) size 180x18
+                  text run at (0,0) width 180: "This is an unstyled element."
+layer at (8,190) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,182) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_bottom-expected.txt
new file mode 100644
index 0000000..0b8adbbf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_bottom-expected.txt
@@ -0,0 +1,164 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 995
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x995 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x995
+    LayoutBlockFlow {BODY} at (8,8) size 769x979 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x60
+        LayoutText {#text} at (0,0) size 336x60
+          text run at (0,0) width 320: ".one {border-bottom: purple double 10px;}"
+          text run at (319,0) width 1: " "
+          text run at (0,15) width 313: ".two {border-bottom: purple thin solid;}"
+          text run at (312,15) width 1: " "
+          text run at (0,30) width 336: ".three {border-bottom: black medium solid;}"
+          text run at (335,30) width 1: " "
+          text run at (0,45) width 281: "TD {border-bottom: green 2px solid;}"
+          text run at (280,45) width 1: " "
+      LayoutBlockFlow {P} at (0,125) size 769x36
+        LayoutText {#text} at (0,0) size 747x36
+          text run at (0,0) width 673: "Note that all table cells on this page should have a two-pixel solid green border along their bottom sides. "
+          text run at (672,0) width 75: "This border"
+          text run at (0,18) width 373: "applies only to the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (0,177) size 769x28 [border: none (10px double #800080) none]
+        LayoutText {#text} at (0,0) size 445x18
+          text run at (0,0) width 445: "This paragraph should have a purple, double, 10-pixel bottom border."
+      LayoutBlockFlow {P} at (0,221) size 769x19 [border: none (1px solid #800080) none]
+        LayoutText {#text} at (0,0) size 361x18
+          text run at (0,0) width 361: "This paragraph should have a thin purple bottom border."
+      LayoutTable {TABLE} at (0,256) size 769x110 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x108
+          LayoutTableRow {TR} at (0,5) size 767x41
+            LayoutTableCell {TD} at (5,5) size 757x41 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (2,2) size 738x36
+                text run at (2,2) width 463: "Every cell in this table should have a 2-pixel solid green bottom border. "
+                text run at (464,2) width 276: "This is also true of the table-testing section"
+                text run at (2,20) width 219: "in the second half of the test page."
+          LayoutTableRow {TR} at (0,51) size 767x52
+            LayoutTableCell {TD} at (5,65) size 190x23 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (2,2) size 54x18
+                text run at (2,2) width 54: "Cell one"
+            LayoutTableCell {TD} at (200,51) size 562x52 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (2,2) size 558x18
+                LayoutText {#text} at (0,0) size 55x18
+                  text run at (0,0) width 55: "Cell two"
+              LayoutTable {TABLE} at (2,20) size 166x29 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 164x27
+                  LayoutTableRow {TR} at (0,2) size 164x23
+                    LayoutTableCell {TD} at (2,2) size 160x23 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,2) size 156x18
+                        text run at (2,2) width 156: "Nested single-cell table!"
+      LayoutBlockFlow {UL} at (0,382) size 769x135
+        LayoutListItem {LI} at (40,0) size 729x75 [border: none (3px solid #000000) none]
+          LayoutBlockFlow (anonymous) at (0,0) size 729x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 123x18
+              text run at (0,0) width 123: "This is a list item..."
+          LayoutBlockFlow {UL} at (0,18) size 729x54
+            LayoutListItem {LI} at (40,0) size 689x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 75x18
+                text run at (0,0) width 75: "...and this..."
+            LayoutListItem {LI} at (40,18) size 689x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 118x18
+                text run at (0,0) width 118: "...is a second list..."
+            LayoutListItem {LI} at (40,36) size 689x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 182x18
+                text run at (0,0) width 182: "...nested within the list item."
+        LayoutListItem {LI} at (40,75) size 729x21 [border: none (3px solid #000000) none]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 163x18
+            text run at (0,0) width 163: "This is a second list item."
+        LayoutListItem {LI} at (40,96) size 729x39 [border: none (3px solid #000000) none]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 714x36
+            text run at (0,0) width 714: "Each list item in this list should have a medium-width black border at its bottom, which for the first item means"
+            text run at (0,18) width 135: "that it should appear "
+          LayoutInline {EM} at (0,0) size 51x18
+            LayoutText {#text} at (134,18) size 51x18
+              text run at (134,18) width 51: "beneath"
+          LayoutText {#text} at (184,18) size 401x18
+            text run at (184,18) width 401: " the nested list (below the line \"...nested within the list item.\")."
+      LayoutTable {TABLE} at (0,533) size 769x446 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x444
+          LayoutTableRow {TR} at (0,0) size 767x27
+            LayoutTableCell {TD} at (0,0) size 767x27 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,27) size 767x417
+            LayoutTableCell {TD} at (0,222) size 12x27 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,27) size 755x417 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x36
+                LayoutText {#text} at (0,0) size 747x36
+                  text run at (0,0) width 673: "Note that all table cells on this page should have a two-pixel solid green border along their bottom sides. "
+                  text run at (672,0) width 75: "This border"
+                  text run at (0,18) width 373: "applies only to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (4,56) size 747x28 [border: none (10px double #800080) none]
+                LayoutText {#text} at (0,0) size 445x18
+                  text run at (0,0) width 445: "This paragraph should have a purple, double, 10-pixel bottom border."
+              LayoutBlockFlow {P} at (4,100) size 747x19 [border: none (1px solid #800080) none]
+                LayoutText {#text} at (0,0) size 361x18
+                  text run at (0,0) width 361: "This paragraph should have a thin purple bottom border."
+              LayoutTable {TABLE} at (4,135) size 747x110 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 745x108
+                  LayoutTableRow {TR} at (0,5) size 745x41
+                    LayoutTableCell {TD} at (5,5) size 735x41 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (2,2) size 688x36
+                        text run at (2,2) width 463: "Every cell in this table should have a 2-pixel solid green bottom border. "
+                        text run at (464,2) width 226: "This is also true of the table-testing"
+                        text run at (2,20) width 268: "section in the second half of the test page."
+                  LayoutTableRow {TR} at (0,51) size 745x52
+                    LayoutTableCell {TD} at (5,65) size 184x23 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,2) size 54x18
+                        text run at (2,2) width 54: "Cell one"
+                    LayoutTableCell {TD} at (194,51) size 546x52 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (2,2) size 542x18
+                        LayoutText {#text} at (0,0) size 55x18
+                          text run at (0,0) width 55: "Cell two"
+                      LayoutTable {TABLE} at (2,20) size 166x29 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 164x27
+                          LayoutTableRow {TR} at (0,2) size 164x23
+                            LayoutTableCell {TD} at (2,2) size 160x23 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (2,2) size 156x18
+                                text run at (2,2) width 156: "Nested single-cell table!"
+              LayoutBlockFlow {UL} at (4,261) size 747x135
+                LayoutListItem {LI} at (40,0) size 707x75 [border: none (3px solid #000000) none]
+                  LayoutBlockFlow (anonymous) at (0,0) size 707x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 123x18
+                      text run at (0,0) width 123: "This is a list item..."
+                  LayoutBlockFlow {UL} at (0,18) size 707x54
+                    LayoutListItem {LI} at (40,0) size 667x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 75x18
+                        text run at (0,0) width 75: "...and this..."
+                    LayoutListItem {LI} at (40,18) size 667x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 118x18
+                        text run at (0,0) width 118: "...is a second list..."
+                    LayoutListItem {LI} at (40,36) size 667x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 182x18
+                        text run at (0,0) width 182: "...nested within the list item."
+                LayoutListItem {LI} at (40,75) size 707x21 [border: none (3px solid #000000) none]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 163x18
+                    text run at (0,0) width 163: "This is a second list item."
+                LayoutListItem {LI} at (40,96) size 707x39 [border: none (3px solid #000000) none]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 669x36
+                    text run at (0,0) width 669: "Each list item in this list should have a medium-width black border at its bottom, which for the first item"
+                    text run at (0,18) width 180: "means that it should appear "
+                  LayoutInline {EM} at (0,0) size 51x18
+                    LayoutText {#text} at (179,18) size 51x18
+                      text run at (179,18) width 51: "beneath"
+                  LayoutText {#text} at (229,18) size 401x18
+                    text run at (229,18) width 401: " the nested list (below the line \"...nested within the list item.\")."
+layer at (8,115) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_bottom_inline-expected.txt
new file mode 100644
index 0000000..130f107
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_bottom_inline-expected.txt
@@ -0,0 +1,61 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 320x45
+          text run at (0,0) width 320: ".one {border-bottom: purple double 10px;}"
+          text run at (319,0) width 1: " "
+          text run at (0,15) width 313: ".two {border-bottom: purple thin solid;}"
+          text run at (312,15) width 1: " "
+          text run at (0,30) width 0: " "
+      LayoutBlockFlow {P} at (0,110) size 784x54 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 680x18
+          text run at (0,0) width 680: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
+        LayoutInline {SPAN} at (0,0) size 59x28 [border: none (10px double #800080) none]
+          LayoutText {#text} at (679,0) size 59x18
+            text run at (679,0) width 59: "class one"
+        LayoutText {#text} at (737,0) size 742x36
+          text run at (737,0) width 5: ","
+          text run at (0,18) width 412: "which should have a 10-pixel purple double bottom border; and "
+        LayoutInline {SPAN} at (0,0) size 60x19 [border: none (1px solid #800080) none]
+          LayoutText {#text} at (411,18) size 60x18
+            text run at (411,18) width 60: "class two"
+        LayoutText {#text} at (470,18) size 768x36
+          text run at (470,18) width 298: ", which should have a thin solid purple bottom"
+          text run at (0,36) width 49: "border. "
+          text run at (48,36) width 439: "The line-height of the parent element should not change on any line."
+      LayoutTable {TABLE} at (0,180) size 784x90 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x88
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x62
+            LayoutTableCell {TD} at (0,44) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x62 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x54 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 680x18
+                  text run at (0,0) width 680: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
+                LayoutInline {SPAN} at (0,0) size 59x28 [border: none (10px double #800080) none]
+                  LayoutText {#text} at (679,0) size 59x18
+                    text run at (679,0) width 59: "class one"
+                LayoutText {#text} at (737,0) size 742x36
+                  text run at (737,0) width 5: ","
+                  text run at (0,18) width 412: "which should have a 10-pixel purple double bottom border; and "
+                LayoutInline {SPAN} at (0,0) size 60x19 [border: none (1px solid #800080) none]
+                  LayoutText {#text} at (411,18) size 60x18
+                    text run at (411,18) width 60: "class two"
+                LayoutText {#text} at (470,18) size 719x36
+                  text run at (470,18) width 249: ", which should have a thin solid purple"
+                  text run at (0,36) width 99: "bottom border. "
+                  text run at (98,36) width 438: "The line-height of the parent element should not change on any line."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_bottom_width-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_bottom_width-expected.txt
new file mode 100644
index 0000000..a110fa0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_bottom_width-expected.txt
@@ -0,0 +1,104 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 877
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x877 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x877
+    LayoutBlockFlow {BODY} at (8,8) size 769x861 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x90
+        LayoutText {#text} at (0,0) size 453x90
+          text run at (0,0) width 445: ".zero {background-color: silver; border-bottom-width: 0;}"
+          text run at (444,0) width 1: " "
+          text run at (0,15) width 422: ".one {border-bottom-width: 50px; border-style: solid;}"
+          text run at (421,15) width 1: " "
+          text run at (0,30) width 430: ".two {border-bottom-width: thick; border-style: solid;}"
+          text run at (429,30) width 1: " "
+          text run at (0,45) width 453: ".three {border-bottom-width: medium; border-style: solid;}"
+          text run at (452,45) width 1: " "
+          text run at (0,60) width 430: ".four {border-bottom-width: thin; border-style: solid;}"
+          text run at (429,60) width 1: " "
+          text run at (0,75) width 266: ".five {border-bottom-width: 25px;}"
+          text run at (265,75) width 1: " "
+      LayoutBlockFlow {P} at (0,155) size 769x18
+        LayoutText {#text} at (0,0) size 160x18
+          text run at (0,0) width 160: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 95x15
+          LayoutText {#text} at (159,2) size 95x15
+            text run at (159,2) width 95: "border-style"
+        LayoutText {#text} at (253,0) size 92x18
+          text run at (253,0) width 92: " is supported.)"
+      LayoutBlockFlow {P} at (0,189) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,223) size 769x71 [border: (3px solid #000000) (50px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 395x18
+          text run at (3,3) width 395: "This element should have a bottom border width of 50 pixels."
+      LayoutBlockFlow {P} at (0,310) size 769x26 [border: (3px solid #000000) (5px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 351x18
+          text run at (3,3) width 351: "This element should have a thick bottom border width."
+      LayoutBlockFlow {P} at (0,352) size 769x24 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 372x18
+          text run at (3,3) width 372: "This element should have a medium bottom border width."
+      LayoutBlockFlow {P} at (0,392) size 769x22 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 344x18
+          text run at (3,3) width 344: "This element should have a thin bottom border width."
+      LayoutBlockFlow {P} at (0,430) size 769x18
+        LayoutText {#text} at (0,0) size 545x18
+          text run at (0,0) width 545: "This element should have no border and no extra \"padding\" on its bottom side, as no "
+        LayoutInline {CODE} at (0,0) size 95x15
+          LayoutText {#text} at (544,2) size 95x15
+            text run at (544,2) width 95: "border-style"
+        LayoutText {#text} at (638,0) size 56x18
+          text run at (638,0) width 56: " was set."
+      LayoutBlockFlow {P} at (0,464) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutTable {TABLE} at (0,498) size 716x363 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 714x361
+          LayoutTableRow {TR} at (0,0) size 714x26
+            LayoutTableCell {TD} at (0,0) size 714x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 714x335
+            LayoutTableCell {TD} at (0,180) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 702x335 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 694x18
+                LayoutText {#text} at (0,0) size 160x18
+                  text run at (0,0) width 160: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 95x15
+                  LayoutText {#text} at (159,2) size 95x15
+                    text run at (159,2) width 95: "border-style"
+                LayoutText {#text} at (253,0) size 92x18
+                  text run at (253,0) width 92: " is supported.)"
+              LayoutBlockFlow {P} at (4,38) size 694x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,72) size 694x71 [border: (3px solid #000000) (50px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 395x18
+                  text run at (3,3) width 395: "This element should have a bottom border width of 50 pixels."
+              LayoutBlockFlow {P} at (4,159) size 694x26 [border: (3px solid #000000) (5px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 351x18
+                  text run at (3,3) width 351: "This element should have a thick bottom border width."
+              LayoutBlockFlow {P} at (4,201) size 694x24 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 372x18
+                  text run at (3,3) width 372: "This element should have a medium bottom border width."
+              LayoutBlockFlow {P} at (4,241) size 694x22 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 344x18
+                  text run at (3,3) width 344: "This element should have a thin bottom border width."
+              LayoutBlockFlow {P} at (4,279) size 694x18
+                LayoutText {#text} at (0,0) size 545x18
+                  text run at (0,0) width 545: "This element should have no border and no extra \"padding\" on its bottom side, as no "
+                LayoutInline {CODE} at (0,0) size 95x15
+                  LayoutText {#text} at (544,2) size 95x15
+                    text run at (544,2) width 95: "border-style"
+                LayoutText {#text} at (638,0) size 56x18
+                  text run at (638,0) width 56: " was set."
+              LayoutBlockFlow {P} at (4,313) size 694x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_bottom_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_bottom_width_inline-expected.txt
new file mode 100644
index 0000000..c5a511505
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_bottom_width_inline-expected.txt
@@ -0,0 +1,88 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 422x45
+          text run at (0,0) width 422: ".one {border-bottom-width: 25px; border-style: solid;}"
+          text run at (421,0) width 1: " "
+          text run at (0,15) width 422: ".two {border-bottom-width: thin; border-style: solid;}"
+          text run at (421,15) width 1: " "
+          text run at (0,30) width 274: ".three {border-bottom-width: 25px;}"
+          text run at (273,30) width 1: " "
+      LayoutBlockFlow {P} at (0,110) size 784x100 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 176x18
+          text run at (3,3) width 176: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 25x15
+          LayoutText {#text} at (178,5) size 25x15
+            text run at (178,5) width 25: "one"
+        LayoutText {#text} at (202,3) size 164x18
+          text run at (202,3) width 9: ". "
+          text run at (210,3) width 156: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 178x22 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+          LayoutText {#text} at (368,3) size 149x18
+            text run at (368,3) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 24x15
+            LayoutText {#text} at (516,5) size 24x15
+              text run at (516,5) width 24: "two"
+        LayoutText {#text} at (542,3) size 768x54
+          text run at (542,3) width 226: ", which should result in a thin solid"
+          text run at (3,21) width 731: "border on the bottom side of each box in the inline element (and the UA's default border on the other three sides). "
+          text run at (733,21) width 38: "There"
+          text run at (3,39) width 64: "is also an "
+        LayoutInline {SPAN} at (0,0) size 188x18
+          LayoutText {#text} at (66,39) size 149x18
+            text run at (66,39) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 40x15
+            LayoutText {#text} at (214,41) size 40x15
+              text run at (214,41) width 40: "three"
+        LayoutText {#text} at (253,39) size 764x36
+          text run at (253,39) width 514: ", which should have no bottom border width or visible border because no border"
+          text run at (3,57) width 85: "style was set."
+      LayoutTable {TABLE} at (0,226) size 784x136 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x134
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x108
+            LayoutTableCell {TD} at (0,67) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x108 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x100 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 176x18
+                  text run at (3,3) width 176: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 25x15
+                  LayoutText {#text} at (178,5) size 25x15
+                    text run at (178,5) width 25: "one"
+                LayoutText {#text} at (202,3) size 164x18
+                  text run at (202,3) width 9: ". "
+                  text run at (210,3) width 156: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 178x22 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+                  LayoutText {#text} at (368,3) size 149x18
+                    text run at (368,3) width 149: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 24x15
+                    LayoutText {#text} at (516,5) size 24x15
+                      text run at (516,5) width 24: "two"
+                LayoutText {#text} at (542,3) size 730x54
+                  text run at (542,3) width 191: ", which should result in a thin"
+                  text run at (3,21) width 716: "solid border on the bottom side of each box in the inline element (and the UA's default border on the other three"
+                  text run at (3,39) width 46: "sides). "
+                  text run at (48,39) width 106: "There is also an "
+                LayoutInline {SPAN} at (0,0) size 187x18
+                  LayoutText {#text} at (153,39) size 148x18
+                    text run at (153,39) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 40x15
+                    LayoutText {#text} at (300,41) size 40x15
+                      text run at (300,41) width 40: "three"
+                LayoutText {#text} at (339,39) size 730x36
+                  text run at (339,39) width 394: ", which should have no bottom border width or visible border"
+                  text run at (3,57) width 206: "because no border style was set."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_color-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_color-expected.txt
new file mode 100644
index 0000000..21373ea
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_color-expected.txt
@@ -0,0 +1,50 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 710x45
+          text run at (0,0) width 383: ".one {border-color: purple; border-style: solid;}"
+          text run at (382,0) width 1: " "
+          text run at (0,15) width 554: ".two {border-color: purple; border-width: medium; border-style: solid;}"
+          text run at (553,15) width 1: " "
+          text run at (0,30) width 710: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
+          text run at (709,30) width 1: " "
+      LayoutBlockFlow {P} at (0,110) size 784x24 [border: (3px solid #800080)]
+        LayoutText {#text} at (3,3) size 364x18
+          text run at (3,3) width 364: "This element should have a purple border surrounding it."
+      LayoutBlockFlow {P} at (0,150) size 784x24 [border: (3px solid #800080)]
+        LayoutText {#text} at (3,3) size 463x18
+          text run at (3,3) width 463: "This element should have a medium-width purple border surrounding it."
+      LayoutBlockFlow {P} at (0,190) size 784x42 [border: (3px solid #800080) (3px solid #008000) (3px solid #0000FF) (3px solid #FFFF00)]
+        LayoutText {#text} at (3,3) size 776x36
+          text run at (3,3) width 776: "This element should be surrounded by a medium width border which is purple on top, green on the right side, blue on the"
+          text run at (3,21) width 227: "bottom, and yellow on the left side."
+      LayoutTable {TABLE} at (0,248) size 784x158 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x156
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x130
+            LayoutTableCell {TD} at (0,78) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x130 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x24 [border: (3px solid #800080)]
+                LayoutText {#text} at (3,3) size 364x18
+                  text run at (3,3) width 364: "This element should have a purple border surrounding it."
+              LayoutBlockFlow {P} at (4,44) size 762x24 [border: (3px solid #800080)]
+                LayoutText {#text} at (3,3) size 463x18
+                  text run at (3,3) width 463: "This element should have a medium-width purple border surrounding it."
+              LayoutBlockFlow {P} at (4,84) size 762x42 [border: (3px solid #800080) (3px solid #008000) (3px solid #0000FF) (3px solid #FFFF00)]
+                LayoutText {#text} at (3,3) size 753x36
+                  text run at (3,3) width 753: "This element should be surrounded by a medium width border which is purple on top, green on the right side, blue on"
+                  text run at (3,21) width 251: "the bottom, and yellow on the left side."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_color_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_color_inline-expected.txt
new file mode 100644
index 0000000..dd06c68a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_color_inline-expected.txt
@@ -0,0 +1,74 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 710x45
+          text run at (0,0) width 383: ".one {border-color: purple; border-style: solid;}"
+          text run at (382,0) width 1: " "
+          text run at (0,15) width 554: ".two {border-color: purple; border-width: medium; border-style: solid;}"
+          text run at (553,15) width 1: " "
+          text run at (0,30) width 710: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
+          text run at (709,30) width 1: " "
+      LayoutBlockFlow {P} at (0,110) size 784x72 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 691x18
+          text run at (0,0) width 691: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
+        LayoutInline {SPAN} at (0,0) size 65x24 [border: (3px solid #800080)]
+          LayoutText {#text} at (693,0) size 59x18
+            text run at (693,0) width 59: "class one"
+        LayoutText {#text} at (754,0) size 5x18
+          text run at (754,0) width 5: ","
+        LayoutInline {SPAN} at (0,0) size 66x24 [border: (3px solid #800080)]
+          LayoutText {#text} at (3,18) size 60x18
+            text run at (3,18) width 60: "class two"
+        LayoutText {#text} at (65,18) size 36x18
+          text run at (65,18) width 36: ", and "
+        LayoutInline {SPAN} at (0,0) size 74x24 [border: (3px solid #800080) (3px solid #008000) (3px solid #0000FF) (3px solid #FFFF00)]
+          LayoutText {#text} at (103,18) size 68x18
+            text run at (103,18) width 68: "class three"
+        LayoutText {#text} at (173,18) size 772x54
+          text run at (173,18) width 9: ". "
+          text run at (181,18) width 585: "The effect for each inline element should be to have a purple medium-width solid border in"
+          text run at (0,36) width 633: "the first and second cases, and a purple-green-blue-yellow medium-width solid border in the third. "
+          text run at (632,36) width 140: "The line-height of the"
+          text run at (0,54) width 334: "parent element should not change at all, on any line."
+      LayoutTable {TABLE} at (0,198) size 784x108 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x106
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x80
+            LayoutTableCell {TD} at (0,53) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x80 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x72 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 691x18
+                  text run at (0,0) width 691: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
+                LayoutInline {SPAN} at (0,0) size 65x24 [border: (3px solid #800080)]
+                  LayoutText {#text} at (693,0) size 59x18
+                    text run at (693,0) width 59: "class one"
+                LayoutText {#text} at (754,0) size 5x18
+                  text run at (754,0) width 5: ","
+                LayoutInline {SPAN} at (0,0) size 66x24 [border: (3px solid #800080)]
+                  LayoutText {#text} at (3,18) size 60x18
+                    text run at (3,18) width 60: "class two"
+                LayoutText {#text} at (65,18) size 36x18
+                  text run at (65,18) width 36: ", and "
+                LayoutInline {SPAN} at (0,0) size 74x24 [border: (3px solid #800080) (3px solid #008000) (3px solid #0000FF) (3px solid #FFFF00)]
+                  LayoutText {#text} at (103,18) size 68x18
+                    text run at (103,18) width 68: "class three"
+                LayoutText {#text} at (173,18) size 749x54
+                  text run at (173,18) width 9: ". "
+                  text run at (181,18) width 568: "The effect for each inline element should be to have a purple medium-width solid border"
+                  text run at (0,36) width 650: "in the first and second cases, and a purple-green-blue-yellow medium-width solid border in the third. "
+                  text run at (649,36) width 99: "The line-height"
+                  text run at (0,54) width 375: "of the parent element should not change at all, on any line."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_inline-expected.txt
new file mode 100644
index 0000000..ffab5080
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_inline-expected.txt
@@ -0,0 +1,60 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 250x45
+          text run at (0,0) width 250: ".one {border: 10px teal outset;}"
+          text run at (249,0) width 1: " "
+          text run at (0,15) width 250: ".two {border: 10px olive inset;}"
+          text run at (249,15) width 1: " "
+          text run at (0,30) width 0: " "
+      LayoutBlockFlow {P} at (0,110) size 784x54 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 691x18
+          text run at (0,0) width 691: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
+        LayoutInline {SPAN} at (0,0) size 79x38 [border: (10px outset #008080)]
+          LayoutText {#text} at (700,0) size 59x18
+            text run at (700,0) width 59: "class one"
+        LayoutText {#text} at (768,0) size 773x36
+          text run at (768,0) width 5: ","
+          text run at (0,18) width 361: "which should result in a 10-pixel outset teal border; and "
+        LayoutInline {SPAN} at (0,0) size 80x38 [border: (10px inset #808000)]
+          LayoutText {#text} at (370,18) size 60x18
+            text run at (370,18) width 60: "class two"
+        LayoutText {#text} at (439,18) size 778x36
+          text run at (439,18) width 339: ", which should result in a 10-pixel inset olive border."
+          text run at (0,36) width 438: "The line-height of the parent element should not change on any line."
+      LayoutTable {TABLE} at (0,180) size 784x90 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x88
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x62
+            LayoutTableCell {TD} at (0,44) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x62 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x54 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 691x18
+                  text run at (0,0) width 691: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
+                LayoutInline {SPAN} at (0,0) size 732x56 [border: (10px outset #008080)]
+                  LayoutText {#text} at (700,0) size 732x36
+                    text run at (700,0) width 32: "class"
+                    text run at (0,18) width 24: "one"
+                LayoutText {#text} at (33,18) size 369x18
+                  text run at (33,18) width 369: ", which should result in a 10-pixel outset teal border; and "
+                LayoutInline {SPAN} at (0,0) size 80x38 [border: (10px inset #808000)]
+                  LayoutText {#text} at (411,18) size 60x18
+                    text run at (411,18) width 60: "class two"
+                LayoutText {#text} at (480,18) size 734x36
+                  text run at (480,18) width 254: ", which should result in a 10-pixel inset"
+                  text run at (0,36) width 85: "olive border. "
+                  text run at (84,36) width 439: "The line-height of the parent element should not change on any line."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_left-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_left-expected.txt
new file mode 100644
index 0000000..27a2001a1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_left-expected.txt
@@ -0,0 +1,163 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1028
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1028 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1028
+    LayoutBlockFlow {BODY} at (8,8) size 769x1012 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (20,0) size 749x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x105
+        LayoutText {#text} at (0,0) size 336x105
+          text run at (0,0) width 172: "P {margin-left: 20px;}"
+          text run at (171,0) width 1: " "
+          text run at (0,15) width 305: ".one {border-left: purple double 10px;}"
+          text run at (304,15) width 1: " "
+          text run at (0,30) width 297: ".two {border-left: purple thin solid;}"
+          text run at (296,30) width 1: " "
+          text run at (0,45) width 328: ".threea {border-left: black medium solid;}"
+          text run at (327,45) width 1: " "
+          text run at (0,60) width 336: ".threeb {border-left: purple medium solid;}"
+          text run at (335,60) width 1: " "
+          text run at (0,75) width 320: ".threec {border-left: blue medium solid;}"
+          text run at (319,75) width 1: " "
+          text run at (0,90) width 266: "TD {border-left: green 2px solid;}"
+          text run at (265,90) width 1: " "
+      LayoutBlockFlow {P} at (20,170) size 749x36
+        LayoutText {#text} at (0,0) size 723x36
+          text run at (0,0) width 649: "Note that all table cells on this page should have a two-pixel solid green border along their left sides. "
+          text run at (648,0) width 75: "This border"
+          text run at (0,18) width 373: "applies only to the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (20,222) size 749x18 [border: none (10px double #800080)]
+        LayoutText {#text} at (10,0) size 421x18
+          text run at (10,0) width 421: "This paragraph should have a purple, double, 10-pixel left border."
+      LayoutBlockFlow {P} at (20,256) size 749x18 [border: none (1px solid #800080)]
+        LayoutText {#text} at (1,0) size 337x18
+          text run at (1,0) width 337: "This paragraph should have a thin purple left border."
+      LayoutTable {TABLE} at (0,290) size 769x107 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x105
+          LayoutTableRow {TR} at (0,5) size 767x40
+            LayoutTableCell {TD} at (5,5) size 757x40 [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (3,2) size 730x36
+                text run at (3,2) width 439: "Every cell in this table should have a 2-pixel solid green left border. "
+                text run at (441,2) width 292: "This is also true of the table-testing section in"
+                text run at (3,20) width 203: "the second half of the test page."
+          LayoutTableRow {TR} at (0,50) size 767x50
+            LayoutTableCell {TD} at (5,64) size 192x22 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (3,2) size 54x18
+                text run at (3,2) width 54: "Cell one"
+            LayoutTableCell {TD} at (202,50) size 560x50 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (3,2) size 555x18
+                LayoutText {#text} at (0,0) size 55x18
+                  text run at (0,0) width 55: "Cell two"
+              LayoutTable {TABLE} at (3,20) size 167x28 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 165x26
+                  LayoutTableRow {TR} at (0,2) size 165x22
+                    LayoutTableCell {TD} at (2,2) size 161x22 [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (3,2) size 156x18
+                        text run at (3,2) width 156: "Nested single-cell table!"
+      LayoutBlockFlow {UL} at (0,413) size 769x144
+        LayoutListItem {LI} at (40,0) size 729x72 [border: none (3px solid #000000)]
+          LayoutBlockFlow (anonymous) at (3,0) size 726x18
+            LayoutListMarker (anonymous) at (-20,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 123x18
+              text run at (0,0) width 123: "This is a list item..."
+          LayoutBlockFlow {UL} at (3,18) size 726x54
+            LayoutListItem {LI} at (40,0) size 686x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 75x18
+                text run at (0,0) width 75: "...and this..."
+            LayoutListItem {LI} at (40,18) size 686x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 118x18
+                text run at (0,0) width 118: "...is a second list..."
+            LayoutListItem {LI} at (40,36) size 686x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 182x18
+                text run at (0,0) width 182: "...nested within the list item."
+        LayoutListItem {LI} at (40,72) size 729x18 [border: none (3px solid #800080)]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (3,0) size 163x18
+            text run at (3,0) width 163: "This is a second list item."
+        LayoutListItem {LI} at (40,90) size 729x54 [border: none (3px solid #0000FF)]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (3,0) size 721x54
+            text run at (3,0) width 709: "Each list item in this 'parent' list should have a medium-width border along its left side, in each of three colors."
+            text run at (3,18) width 721: "The first item's border should travel the entire height the nested list (to end near the baseline of the line \"...nested"
+            text run at (3,36) width 546: "within the list item.\"), even though the nested list does not have any border styles set."
+      LayoutTable {TABLE} at (0,573) size 769x439 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x437
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (5,4) size 161x18
+                  text run at (5,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x411
+            LayoutTableCell {TD} at (0,218) size 13x26 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (5,4) size 4x18
+                text run at (5,4) width 4: " "
+            LayoutTableCell {TD} at (13,26) size 754x411 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (25,4) size 725x36
+                LayoutText {#text} at (0,0) size 723x36
+                  text run at (0,0) width 649: "Note that all table cells on this page should have a two-pixel solid green border along their left sides. "
+                  text run at (648,0) width 75: "This border"
+                  text run at (0,18) width 373: "applies only to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (25,56) size 725x18 [border: none (10px double #800080)]
+                LayoutText {#text} at (10,0) size 421x18
+                  text run at (10,0) width 421: "This paragraph should have a purple, double, 10-pixel left border."
+              LayoutBlockFlow {P} at (25,90) size 725x18 [border: none (1px solid #800080)]
+                LayoutText {#text} at (1,0) size 337x18
+                  text run at (1,0) width 337: "This paragraph should have a thin purple left border."
+              LayoutTable {TABLE} at (5,124) size 745x107 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 743x105
+                  LayoutTableRow {TR} at (0,5) size 743x40
+                    LayoutTableCell {TD} at (5,5) size 733x40 [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (3,2) size 714x36
+                        text run at (3,2) width 439: "Every cell in this table should have a 2-pixel solid green left border. "
+                        text run at (441,2) width 276: "This is also true of the table-testing section"
+                        text run at (3,20) width 219: "in the second half of the test page."
+                  LayoutTableRow {TR} at (0,50) size 743x50
+                    LayoutTableCell {TD} at (5,64) size 185x22 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (3,2) size 54x18
+                        text run at (3,2) width 54: "Cell one"
+                    LayoutTableCell {TD} at (195,50) size 543x50 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (3,2) size 538x18
+                        LayoutText {#text} at (0,0) size 55x18
+                          text run at (0,0) width 55: "Cell two"
+                      LayoutTable {TABLE} at (3,20) size 167x28 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 165x26
+                          LayoutTableRow {TR} at (0,2) size 165x22
+                            LayoutTableCell {TD} at (2,2) size 161x22 [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (3,2) size 156x18
+                                text run at (3,2) width 156: "Nested single-cell table!"
+              LayoutBlockFlow {UL} at (5,247) size 745x144
+                LayoutListItem {LI} at (40,0) size 705x72 [border: none (3px solid #000000)]
+                  LayoutBlockFlow (anonymous) at (3,0) size 702x18
+                    LayoutListMarker (anonymous) at (-20,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 123x18
+                      text run at (0,0) width 123: "This is a list item..."
+                  LayoutBlockFlow {UL} at (3,18) size 702x54
+                    LayoutListItem {LI} at (40,0) size 662x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 75x18
+                        text run at (0,0) width 75: "...and this..."
+                    LayoutListItem {LI} at (40,18) size 662x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 118x18
+                        text run at (0,0) width 118: "...is a second list..."
+                    LayoutListItem {LI} at (40,36) size 662x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 182x18
+                        text run at (0,0) width 182: "...nested within the list item."
+                LayoutListItem {LI} at (40,72) size 705x18 [border: none (3px solid #800080)]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (3,0) size 163x18
+                    text run at (3,0) width 163: "This is a second list item."
+                LayoutListItem {LI} at (40,90) size 705x54 [border: none (3px solid #0000FF)]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (3,0) size 677x54
+                    text run at (3,0) width 662: "Each list item in this 'parent' list should have a medium-width border along its left side, in each of three"
+                    text run at (3,18) width 48: "colors. "
+                    text run at (50,18) width 630: "The first item's border should travel the entire height the nested list (to end near the baseline of the"
+                    text run at (3,36) width 638: "line \"...nested within the list item.\"), even though the nested list does not have any border styles set."
+layer at (8,160) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,152) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_left_inline-expected.txt
new file mode 100644
index 0000000..f0df8f6b6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_left_inline-expected.txt
@@ -0,0 +1,63 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (20,0) size 764x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x60
+        LayoutText {#text} at (0,0) size 305x60
+          text run at (0,0) width 172: "P {margin-left: 20px;}"
+          text run at (171,0) width 1: " "
+          text run at (0,15) width 305: ".one {border-left: purple double 10px;}"
+          text run at (304,15) width 1: " "
+          text run at (0,30) width 297: ".two {border-left: purple thin solid;}"
+          text run at (296,30) width 1: " "
+          text run at (0,45) width 0: " "
+      LayoutBlockFlow {P} at (20,125) size 764x54 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 760x36
+          text run at (0,0) width 760: "This paragraph has a background color of silver and a 20-pixel left margin, and it contains inline elements with classes"
+          text run at (0,18) width 18: "of "
+        LayoutInline {SPAN} at (0,0) size 69x18 [border: none (10px double #800080)]
+          LayoutText {#text} at (27,18) size 59x18
+            text run at (27,18) width 59: "class one"
+        LayoutText {#text} at (85,18) size 396x18
+          text run at (85,18) width 396: ", which should have a 10-pixel purple double left border; and "
+        LayoutInline {SPAN} at (0,0) size 62x18 [border: none (1px solid #800080)]
+          LayoutText {#text} at (481,18) size 61x18
+            text run at (481,18) width 61: "class two"
+        LayoutText {#text} at (541,18) size 745x36
+          text run at (541,18) width 204: ", which should have a thin solid"
+          text run at (0,36) width 120: "purple left border. "
+          text run at (119,36) width 438: "The line-height of the parent element should not change on any line."
+      LayoutTable {TABLE} at (0,195) size 784x90 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x88
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x62
+            LayoutTableCell {TD} at (0,44) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x62 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (24,4) size 742x54 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 712x36
+                  text run at (0,0) width 712: "This paragraph has a background color of silver and a 20-pixel left margin, and it contains inline elements with"
+                  text run at (0,18) width 66: "classes of "
+                LayoutInline {SPAN} at (0,0) size 69x18 [border: none (10px double #800080)]
+                  LayoutText {#text} at (75,18) size 59x18
+                    text run at (75,18) width 59: "class one"
+                LayoutText {#text} at (133,18) size 397x18
+                  text run at (133,18) width 397: ", which should have a 10-pixel purple double left border; and "
+                LayoutInline {SPAN} at (0,0) size 61x18 [border: none (1px solid #800080)]
+                  LayoutText {#text} at (530,18) size 60x18
+                    text run at (530,18) width 60: "class two"
+                LayoutText {#text} at (589,18) size 729x36
+                  text run at (589,18) width 140: ", which should have a"
+                  text run at (0,36) width 184: "thin solid purple left border. "
+                  text run at (183,36) width 438: "The line-height of the parent element should not change on any line."
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_left_width-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_left_width-expected.txt
new file mode 100644
index 0000000..f01a391
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_left_width-expected.txt
@@ -0,0 +1,106 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 859
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x859 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x859
+    LayoutBlockFlow {BODY} at (8,8) size 769x843 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x90
+        LayoutText {#text} at (0,0) size 437x90
+          text run at (0,0) width 430: ".zero {background-color: silver; border-left-width: 0;}"
+          text run at (429,0) width 1: " "
+          text run at (0,15) width 406: ".one {border-left-width: 50px; border-style: solid;}"
+          text run at (405,15) width 1: " "
+          text run at (0,30) width 414: ".two {border-left-width: thick; border-style: solid;}"
+          text run at (413,30) width 1: " "
+          text run at (0,45) width 437: ".three {border-left-width: medium; border-style: solid;}"
+          text run at (436,45) width 1: " "
+          text run at (0,60) width 414: ".four {border-left-width: thin; border-style: solid;}"
+          text run at (413,60) width 1: " "
+          text run at (0,75) width 250: ".five {border-left-width: 25px;}"
+          text run at (249,75) width 1: " "
+      LayoutBlockFlow {P} at (0,155) size 769x18
+        LayoutText {#text} at (0,0) size 160x18
+          text run at (0,0) width 160: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 95x15
+          LayoutText {#text} at (159,2) size 95x15
+            text run at (159,2) width 95: "border-style"
+        LayoutText {#text} at (253,0) size 92x18
+          text run at (253,0) width 92: " is supported.)"
+      LayoutBlockFlow {P} at (0,189) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,223) size 769x42 [border: (3px solid #000000) (50px solid #000000)]
+        LayoutText {#text} at (50,3) size 697x36
+          text run at (50,3) width 697: "This element should have a left border width of 50 pixels, which will be more obvious if the element is more"
+          text run at (50,21) width 120: "than one line long."
+      LayoutBlockFlow {P} at (0,281) size 769x42 [border: (3px solid #000000) (5px solid #000000)]
+        LayoutText {#text} at (5,3) size 740x36
+          text run at (5,3) width 740: "This element should have a thick left border width, which will be more obvious if the element is more than one line"
+          text run at (5,21) width 33: "long."
+      LayoutBlockFlow {P} at (0,339) size 769x42 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 760x36
+          text run at (3,3) width 760: "This element should have a medium left border width, which will be more obvious if the element is more than one line"
+          text run at (3,21) width 33: "long."
+      LayoutBlockFlow {P} at (0,397) size 769x42 [border: (3px solid #000000) (1px solid #000000)]
+        LayoutText {#text} at (1,3) size 733x36
+          text run at (1,3) width 733: "This element should have a thin left border width, which will be more obvious if the element is more than one line"
+          text run at (1,21) width 33: "long."
+      LayoutBlockFlow {P} at (0,455) size 769x18
+        LayoutText {#text} at (0,0) size 521x18
+          text run at (0,0) width 521: "This element should have no border and no extra \"padding\" on its left side, as no "
+        LayoutInline {CODE} at (0,0) size 95x15
+          LayoutText {#text} at (520,2) size 95x15
+            text run at (520,2) width 95: "border-style"
+        LayoutText {#text} at (614,0) size 56x18
+          text run at (614,0) width 56: " was set."
+      LayoutTable {TABLE} at (0,489) size 769x354 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x352
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x326
+            LayoutTableCell {TD} at (0,176) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x326 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18
+                LayoutText {#text} at (0,0) size 160x18
+                  text run at (0,0) width 160: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 95x15
+                  LayoutText {#text} at (159,2) size 95x15
+                    text run at (159,2) width 95: "border-style"
+                LayoutText {#text} at (253,0) size 92x18
+                  text run at (253,0) width 92: " is supported.)"
+              LayoutBlockFlow {P} at (4,38) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,72) size 747x42 [border: (3px solid #000000) (50px solid #000000)]
+                LayoutText {#text} at (50,3) size 660x36
+                  text run at (50,3) width 660: "This element should have a left border width of 50 pixels, which will be more obvious if the element is"
+                  text run at (50,21) width 156: "more than one line long."
+              LayoutBlockFlow {P} at (4,130) size 747x42 [border: (3px solid #000000) (5px solid #000000)]
+                LayoutText {#text} at (5,3) size 712x36
+                  text run at (5,3) width 712: "This element should have a thick left border width, which will be more obvious if the element is more than one"
+                  text run at (5,21) width 61: "line long."
+              LayoutBlockFlow {P} at (4,188) size 747x42 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 732x36
+                  text run at (3,3) width 732: "This element should have a medium left border width, which will be more obvious if the element is more than one"
+                  text run at (3,21) width 61: "line long."
+              LayoutBlockFlow {P} at (4,246) size 747x42 [border: (3px solid #000000) (1px solid #000000)]
+                LayoutText {#text} at (1,3) size 733x36
+                  text run at (1,3) width 733: "This element should have a thin left border width, which will be more obvious if the element is more than one line"
+                  text run at (1,21) width 33: "long."
+              LayoutBlockFlow {P} at (4,304) size 747x18
+                LayoutText {#text} at (0,0) size 521x18
+                  text run at (0,0) width 521: "This element should have no border and no extra \"padding\" on its left side, as no "
+                LayoutInline {CODE} at (0,0) size 95x15
+                  LayoutText {#text} at (520,2) size 95x15
+                    text run at (520,2) width 95: "border-style"
+                LayoutText {#text} at (614,0) size 56x18
+                  text run at (614,0) width 56: " was set."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_left_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_left_width_inline-expected.txt
new file mode 100644
index 0000000..ee06bc9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_left_width_inline-expected.txt
@@ -0,0 +1,98 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 406x45
+          text run at (0,0) width 406: ".one {border-left-width: 25px; border-style: solid;}"
+          text run at (405,0) width 1: " "
+          text run at (0,15) width 406: ".two {border-left-width: thin; border-style: solid;}"
+          text run at (405,15) width 1: " "
+          text run at (0,30) width 258: ".three {border-left-width: 25px;}"
+          text run at (257,30) width 1: " "
+      LayoutBlockFlow {P} at (0,110) size 784x78 [border: (3px solid #000000) (25px solid #000000)]
+        LayoutText {#text} at (25,3) size 176x18
+          text run at (25,3) width 176: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 25x15
+          LayoutText {#text} at (200,5) size 25x15
+            text run at (200,5) width 25: "one"
+        LayoutText {#text} at (224,3) size 164x18
+          text run at (224,3) width 9: ". "
+          text run at (232,3) width 156: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 176x24 [border: (3px solid #000000) (1px solid #000000)]
+          LayoutText {#text} at (388,3) size 149x18
+            text run at (388,3) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 24x15
+            LayoutText {#text} at (536,5) size 24x15
+              text run at (536,5) width 24: "two"
+        LayoutText {#text} at (562,3) size 728x36
+          text run at (562,3) width 191: ", which should result in a thin"
+          text run at (25,21) width 221: "solid border on the left side of the "
+        LayoutInline {STRONG} at (0,0) size 28x18
+          LayoutText {#text} at (245,21) size 28x18
+            text run at (245,21) width 28: "first"
+        LayoutText {#text} at (272,21) size 714x36
+          text run at (272,21) width 467: " box in the inline element (and the UA's default border on the other three"
+          text run at (25,39) width 46: "sides). "
+          text run at (70,39) width 106: "There is also an "
+        LayoutInline {SPAN} at (0,0) size 187x18
+          LayoutText {#text} at (175,39) size 148x18
+            text run at (175,39) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 40x15
+            LayoutText {#text} at (322,41) size 40x15
+              text run at (322,41) width 40: "three"
+        LayoutText {#text} at (361,39) size 706x36
+          text run at (361,39) width 370: ", which should have no left border width or visible border"
+          text run at (25,57) width 206: "because no border style was set."
+      LayoutTable {TABLE} at (0,204) size 784x114 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x112
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x86
+            LayoutTableCell {TD} at (0,56) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x86 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x78 [border: (3px solid #000000) (25px solid #000000)]
+                LayoutText {#text} at (25,3) size 176x18
+                  text run at (25,3) width 176: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 25x15
+                  LayoutText {#text} at (200,5) size 25x15
+                    text run at (200,5) width 25: "one"
+                LayoutText {#text} at (224,3) size 164x18
+                  text run at (224,3) width 9: ". "
+                  text run at (232,3) width 156: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 176x24 [border: (3px solid #000000) (1px solid #000000)]
+                  LayoutText {#text} at (388,3) size 149x18
+                    text run at (388,3) width 149: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 24x15
+                    LayoutText {#text} at (536,5) size 24x15
+                      text run at (536,5) width 24: "two"
+                LayoutText {#text} at (562,3) size 728x36
+                  text run at (562,3) width 191: ", which should result in a thin"
+                  text run at (25,21) width 221: "solid border on the left side of the "
+                LayoutInline {STRONG} at (0,0) size 28x18
+                  LayoutText {#text} at (245,21) size 28x18
+                    text run at (245,21) width 28: "first"
+                LayoutText {#text} at (272,21) size 714x36
+                  text run at (272,21) width 467: " box in the inline element (and the UA's default border on the other three"
+                  text run at (25,39) width 46: "sides). "
+                  text run at (70,39) width 106: "There is also an "
+                LayoutInline {SPAN} at (0,0) size 187x18
+                  LayoutText {#text} at (175,39) size 148x18
+                    text run at (175,39) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 40x15
+                    LayoutText {#text} at (322,41) size 40x15
+                      text run at (322,41) width 40: "three"
+                LayoutText {#text} at (361,39) size 706x36
+                  text run at (361,39) width 370: ", which should have no left border width or visible border"
+                  text run at (25,57) width 206: "because no border style was set."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_right-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_right-expected.txt
new file mode 100644
index 0000000..fa0bc7a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_right-expected.txt
@@ -0,0 +1,63 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 764x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x60
+        LayoutText {#text} at (0,0) size 313x60
+          text run at (0,0) width 180: "P {margin-right: 20px;}"
+          text run at (179,0) width 1: " "
+          text run at (0,15) width 313: ".one {border-right: purple double 10px;}"
+          text run at (312,15) width 1: " "
+          text run at (0,30) width 305: ".two {border-right: purple thin solid;}"
+          text run at (304,30) width 1: " "
+          text run at (0,45) width 0: " "
+      LayoutBlockFlow {P} at (0,125) size 764x54 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 720x36
+          text run at (0,0) width 720: "This paragraph has a background color of silver and a 20-pixel right margin, and it contains inline elements with"
+          text run at (0,18) width 66: "classes of "
+        LayoutInline {SPAN} at (0,0) size 69x18 [border: none (10px double #800080) none]
+          LayoutText {#text} at (65,18) size 59x18
+            text run at (65,18) width 59: "class one"
+        LayoutText {#text} at (133,18) size 406x18
+          text run at (133,18) width 406: ", which should have a 10-pixel purple double right border; and "
+        LayoutInline {SPAN} at (0,0) size 61x18 [border: none (1px solid #800080) none]
+          LayoutText {#text} at (538,18) size 60x18
+            text run at (538,18) width 60: "class two"
+        LayoutText {#text} at (598,18) size 738x36
+          text run at (598,18) width 140: ", which should have a"
+          text run at (0,36) width 192: "thin solid purple right border. "
+          text run at (191,36) width 439: "The line-height of the parent element should not change on any line."
+      LayoutTable {TABLE} at (0,195) size 784x90 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x88
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x62
+            LayoutTableCell {TD} at (0,44) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x62 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 742x54 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 720x36
+                  text run at (0,0) width 720: "This paragraph has a background color of silver and a 20-pixel right margin, and it contains inline elements with"
+                  text run at (0,18) width 66: "classes of "
+                LayoutInline {SPAN} at (0,0) size 69x18 [border: none (10px double #800080) none]
+                  LayoutText {#text} at (65,18) size 59x18
+                    text run at (65,18) width 59: "class one"
+                LayoutText {#text} at (133,18) size 406x18
+                  text run at (133,18) width 406: ", which should have a 10-pixel purple double right border; and "
+                LayoutInline {SPAN} at (0,0) size 61x18 [border: none (1px solid #800080) none]
+                  LayoutText {#text} at (538,18) size 60x18
+                    text run at (538,18) width 60: "class two"
+                LayoutText {#text} at (598,18) size 738x36
+                  text run at (598,18) width 140: ", which should have a"
+                  text run at (0,36) width 192: "thin solid purple right border. "
+                  text run at (191,36) width 439: "The line-height of the parent element should not change on any line."
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_right_inline-expected.txt
new file mode 100644
index 0000000..2ab1b41a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_right_inline-expected.txt
@@ -0,0 +1,168 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1082
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1082 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1082
+    LayoutBlockFlow {BODY} at (8,8) size 769x1066 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 749x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x105
+        LayoutText {#text} at (0,0) size 344x105
+          text run at (0,0) width 180: "P {margin-right: 20px;}"
+          text run at (179,0) width 1: " "
+          text run at (0,15) width 313: ".one {border-right: purple double 10px;}"
+          text run at (312,15) width 1: " "
+          text run at (0,30) width 305: ".two {border-right: purple thin solid;}"
+          text run at (304,30) width 1: " "
+          text run at (0,45) width 336: ".threea {border-right: black medium solid;}"
+          text run at (335,45) width 1: " "
+          text run at (0,60) width 344: ".threeb {border-right: purple medium solid;}"
+          text run at (343,60) width 1: " "
+          text run at (0,75) width 328: ".threec {border-right: blue medium solid;}"
+          text run at (327,75) width 1: " "
+          text run at (0,90) width 274: "TD {border-right: green 2px solid;}"
+          text run at (273,90) width 1: " "
+      LayoutBlockFlow {P} at (0,170) size 749x36
+        LayoutText {#text} at (0,0) size 732x36
+          text run at (0,0) width 658: "Note that all table cells on this page should have a two-pixel solid green border along their right sides. "
+          text run at (657,0) width 75: "This border"
+          text run at (0,18) width 373: "applies only to the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (0,222) size 749x18 [border: none (10px double #800080) none]
+        LayoutText {#text} at (0,0) size 430x18
+          text run at (0,0) width 430: "This paragraph should have a purple, double, 10-pixel right border."
+      LayoutBlockFlow {P} at (0,256) size 749x18 [border: none (1px solid #800080) none]
+        LayoutText {#text} at (0,0) size 346x18
+          text run at (0,0) width 346: "This paragraph should have a thin purple right border."
+      LayoutTable {TABLE} at (0,290) size 769x107 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x105
+          LayoutTableRow {TR} at (0,5) size 767x40
+            LayoutTableCell {TD} at (5,5) size 757x40 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (2,2) size 739x36
+                text run at (2,2) width 447: "Every cell in this table should have a 2-pixel solid green right border. "
+                text run at (449,2) width 292: "This is also true of the table-testing section in"
+                text run at (2,20) width 203: "the second half of the test page."
+          LayoutTableRow {TR} at (0,50) size 767x50
+            LayoutTableCell {TD} at (5,64) size 191x22 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (2,2) size 54x18
+                text run at (2,2) width 54: "Cell one"
+            LayoutTableCell {TD} at (201,50) size 561x50 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (2,2) size 556x18
+                LayoutText {#text} at (0,0) size 55x18
+                  text run at (0,0) width 55: "Cell two"
+              LayoutTable {TABLE} at (2,20) size 167x28 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 165x26
+                  LayoutTableRow {TR} at (0,2) size 165x22
+                    LayoutTableCell {TD} at (2,2) size 161x22 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,2) size 156x18
+                        text run at (2,2) width 156: "Nested single-cell table!"
+      LayoutBlockFlow {UL} at (0,413) size 769x162
+        LayoutListItem {LI} at (40,0) size 729x72 [border: none (3px solid #000000) none]
+          LayoutBlockFlow (anonymous) at (0,0) size 726x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 123x18
+              text run at (0,0) width 123: "This is a list item..."
+          LayoutBlockFlow {UL} at (0,18) size 726x54
+            LayoutListItem {LI} at (40,0) size 686x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 75x18
+                text run at (0,0) width 75: "...and this..."
+            LayoutListItem {LI} at (40,18) size 686x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 118x18
+                text run at (0,0) width 118: "...is a second list..."
+            LayoutListItem {LI} at (40,36) size 686x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 182x18
+                text run at (0,0) width 182: "...nested within the list item."
+        LayoutListItem {LI} at (40,72) size 729x18 [border: none (3px solid #800080) none]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 163x18
+            text run at (0,0) width 163: "This is a second list item."
+        LayoutListItem {LI} at (40,90) size 729x72 [border: none (3px solid #0000FF) none]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 722x72
+            text run at (0,0) width 718: "Each list item in this 'parent' list should have a medium-width border along its right side, in each of three colors."
+            text run at (0,18) width 721: "The first item's border should travel the entire height the nested list (to end near the baseline of the line \"...nested"
+            text run at (0,36) width 550: "within the list item.\"), even though the nested list does not have any border styles set. "
+            text run at (549,36) width 173: "The borders should line up"
+            text run at (0,54) width 633: "together at the right edge of the document's body, as each list element has a default width of 100%."
+      LayoutTable {TABLE} at (0,591) size 769x475 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x473
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x447
+            LayoutTableCell {TD} at (0,236) size 13x26 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (13,26) size 754x447 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 725x36
+                LayoutText {#text} at (0,0) size 687x36
+                  text run at (0,0) width 658: "Note that all table cells on this page should have a two-pixel solid green border along their right sides. "
+                  text run at (657,0) width 30: "This"
+                  text run at (0,18) width 419: "border applies only to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (4,56) size 725x18 [border: none (10px double #800080) none]
+                LayoutText {#text} at (0,0) size 430x18
+                  text run at (0,0) width 430: "This paragraph should have a purple, double, 10-pixel right border."
+              LayoutBlockFlow {P} at (4,90) size 725x18 [border: none (1px solid #800080) none]
+                LayoutText {#text} at (0,0) size 346x18
+                  text run at (0,0) width 346: "This paragraph should have a thin purple right border."
+              LayoutTable {TABLE} at (4,124) size 745x107 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 743x105
+                  LayoutTableRow {TR} at (0,5) size 743x40
+                    LayoutTableCell {TD} at (5,5) size 733x40 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (2,2) size 723x36
+                        text run at (2,2) width 447: "Every cell in this table should have a 2-pixel solid green right border. "
+                        text run at (449,2) width 276: "This is also true of the table-testing section"
+                        text run at (2,20) width 219: "in the second half of the test page."
+                  LayoutTableRow {TR} at (0,50) size 743x50
+                    LayoutTableCell {TD} at (5,64) size 185x22 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,2) size 54x18
+                        text run at (2,2) width 54: "Cell one"
+                    LayoutTableCell {TD} at (195,50) size 543x50 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (2,2) size 538x18
+                        LayoutText {#text} at (0,0) size 55x18
+                          text run at (0,0) width 55: "Cell two"
+                      LayoutTable {TABLE} at (2,20) size 167x28 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 165x26
+                          LayoutTableRow {TR} at (0,2) size 165x22
+                            LayoutTableCell {TD} at (2,2) size 161x22 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (2,2) size 156x18
+                                text run at (2,2) width 156: "Nested single-cell table!"
+              LayoutBlockFlow {UL} at (4,247) size 745x180
+                LayoutListItem {LI} at (40,0) size 705x72 [border: none (3px solid #000000) none]
+                  LayoutBlockFlow (anonymous) at (0,0) size 702x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 123x18
+                      text run at (0,0) width 123: "This is a list item..."
+                  LayoutBlockFlow {UL} at (0,18) size 702x54
+                    LayoutListItem {LI} at (40,0) size 662x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 75x18
+                        text run at (0,0) width 75: "...and this..."
+                    LayoutListItem {LI} at (40,18) size 662x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 118x18
+                        text run at (0,0) width 118: "...is a second list..."
+                    LayoutListItem {LI} at (40,36) size 662x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 182x18
+                        text run at (0,0) width 182: "...nested within the list item."
+                LayoutListItem {LI} at (40,72) size 705x18 [border: none (3px solid #800080) none]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 163x18
+                    text run at (0,0) width 163: "This is a second list item."
+                LayoutListItem {LI} at (40,90) size 705x90 [border: none (3px solid #0000FF) none]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 677x90
+                    text run at (0,0) width 671: "Each list item in this 'parent' list should have a medium-width border along its right side, in each of three"
+                    text run at (0,18) width 48: "colors. "
+                    text run at (47,18) width 630: "The first item's border should travel the entire height the nested list (to end near the baseline of the"
+                    text run at (0,36) width 642: "line \"...nested within the list item.\"), even though the nested list does not have any border styles set. "
+                    text run at (641,36) width 26: "The"
+                    text run at (0,54) width 677: "borders should line up together at the right edge of the document's body, as each list element has a default"
+                    text run at (0,72) width 100: "width of 100%."
+layer at (8,160) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,152) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_right_width-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_right_width-expected.txt
new file mode 100644
index 0000000..9bd7aac
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_right_width-expected.txt
@@ -0,0 +1,106 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 859
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x859 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x859
+    LayoutBlockFlow {BODY} at (8,8) size 769x843 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x90
+        LayoutText {#text} at (0,0) size 445x90
+          text run at (0,0) width 437: ".zero {background-color: silver; border-right-width: 0;}"
+          text run at (436,0) width 1: " "
+          text run at (0,15) width 414: ".one {border-right-width: 25px; border-style: solid;}"
+          text run at (413,15) width 1: " "
+          text run at (0,30) width 422: ".two {border-right-width: thick; border-style: solid;}"
+          text run at (421,30) width 1: " "
+          text run at (0,45) width 445: ".three {border-right-width: medium; border-style: solid;}"
+          text run at (444,45) width 1: " "
+          text run at (0,60) width 422: ".four {border-right-width: thin; border-style: solid;}"
+          text run at (421,60) width 1: " "
+          text run at (0,75) width 266: ".five {border-right-width: 100px;}"
+          text run at (265,75) width 1: " "
+      LayoutBlockFlow {P} at (0,155) size 769x18
+        LayoutText {#text} at (0,0) size 160x18
+          text run at (0,0) width 160: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 95x15
+          LayoutText {#text} at (159,2) size 95x15
+            text run at (159,2) width 95: "border-style"
+        LayoutText {#text} at (253,0) size 92x18
+          text run at (253,0) width 92: " is supported.)"
+      LayoutBlockFlow {P} at (0,189) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,223) size 769x42 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 737x36
+          text run at (3,3) width 737: "This element should have a right border width of 25 pixels, which will be more obvious if the element is more than"
+          text run at (3,21) width 88: "one line long."
+      LayoutBlockFlow {P} at (0,281) size 769x42 [border: (3px solid #000000) (5px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 749x36
+          text run at (3,3) width 749: "This element should have a thick right border width, which will be more obvious if the element is more than one line"
+          text run at (3,21) width 33: "long."
+      LayoutBlockFlow {P} at (0,339) size 769x42 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 741x36
+          text run at (3,3) width 741: "This element should have a medium right border width, which will be more obvious if the element is more than one"
+          text run at (3,21) width 61: "line long."
+      LayoutBlockFlow {P} at (0,397) size 769x42 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 742x36
+          text run at (3,3) width 742: "This element should have a thin right border width, which will be more obvious if the element is more than one line"
+          text run at (3,21) width 33: "long."
+      LayoutBlockFlow {P} at (0,455) size 769x18
+        LayoutText {#text} at (0,0) size 530x18
+          text run at (0,0) width 530: "This element should have no border and no extra \"padding\" on its right side, as no "
+        LayoutInline {CODE} at (0,0) size 95x15
+          LayoutText {#text} at (529,2) size 95x15
+            text run at (529,2) width 95: "border-style"
+        LayoutText {#text} at (623,0) size 56x18
+          text run at (623,0) width 56: " was set."
+      LayoutTable {TABLE} at (0,489) size 769x354 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x352
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x326
+            LayoutTableCell {TD} at (0,176) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x326 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18
+                LayoutText {#text} at (0,0) size 160x18
+                  text run at (0,0) width 160: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 95x15
+                  LayoutText {#text} at (159,2) size 95x15
+                    text run at (159,2) width 95: "border-style"
+                LayoutText {#text} at (253,0) size 92x18
+                  text run at (253,0) width 92: " is supported.)"
+              LayoutBlockFlow {P} at (4,38) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,72) size 747x42 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 706x36
+                  text run at (3,3) width 706: "This element should have a right border width of 25 pixels, which will be more obvious if the element is more"
+                  text run at (3,21) width 120: "than one line long."
+              LayoutBlockFlow {P} at (4,130) size 747x42 [border: (3px solid #000000) (5px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 721x36
+                  text run at (3,3) width 721: "This element should have a thick right border width, which will be more obvious if the element is more than one"
+                  text run at (3,21) width 61: "line long."
+              LayoutBlockFlow {P} at (4,188) size 747x42 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 741x36
+                  text run at (3,3) width 741: "This element should have a medium right border width, which will be more obvious if the element is more than one"
+                  text run at (3,21) width 61: "line long."
+              LayoutBlockFlow {P} at (4,246) size 747x42 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 742x36
+                  text run at (3,3) width 742: "This element should have a thin right border width, which will be more obvious if the element is more than one line"
+                  text run at (3,21) width 33: "long."
+              LayoutBlockFlow {P} at (4,304) size 747x18
+                LayoutText {#text} at (0,0) size 530x18
+                  text run at (0,0) width 530: "This element should have no border and no extra \"padding\" on its right side, as no "
+                LayoutInline {CODE} at (0,0) size 95x15
+                  LayoutText {#text} at (529,2) size 95x15
+                    text run at (529,2) width 95: "border-style"
+                LayoutText {#text} at (623,0) size 56x18
+                  text run at (623,0) width 56: " was set."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_right_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_right_width_inline-expected.txt
new file mode 100644
index 0000000..8457a89
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_right_width_inline-expected.txt
@@ -0,0 +1,98 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 414x45
+          text run at (0,0) width 414: ".one {border-right-width: 25px; border-style: solid;}"
+          text run at (413,0) width 1: " "
+          text run at (0,15) width 414: ".two {border-right-width: thin; border-style: solid;}"
+          text run at (413,15) width 1: " "
+          text run at (0,30) width 266: ".three {border-right-width: 25px;}"
+          text run at (265,30) width 1: " "
+      LayoutBlockFlow {P} at (0,110) size 784x78 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 176x18
+          text run at (3,3) width 176: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 25x15
+          LayoutText {#text} at (178,5) size 25x15
+            text run at (178,5) width 25: "one"
+        LayoutText {#text} at (202,3) size 164x18
+          text run at (202,3) width 9: ". "
+          text run at (210,3) width 156: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 176x24 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+          LayoutText {#text} at (368,3) size 149x18
+            text run at (368,3) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 24x15
+            LayoutText {#text} at (516,5) size 24x15
+              text run at (516,5) width 24: "two"
+        LayoutText {#text} at (540,3) size 728x36
+          text run at (540,3) width 191: ", which should result in a thin"
+          text run at (3,21) width 230: "solid border on the right side of the "
+        LayoutInline {STRONG} at (0,0) size 25x18
+          LayoutText {#text} at (232,21) size 25x18
+            text run at (232,21) width 25: "last"
+        LayoutText {#text} at (256,21) size 720x36
+          text run at (256,21) width 467: " box of the inline element (and the UA's default border on the other three"
+          text run at (3,39) width 46: "sides). "
+          text run at (48,39) width 106: "There is also an "
+        LayoutInline {SPAN} at (0,0) size 187x18
+          LayoutText {#text} at (153,39) size 148x18
+            text run at (153,39) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 40x15
+            LayoutText {#text} at (300,41) size 40x15
+              text run at (300,41) width 40: "three"
+        LayoutText {#text} at (339,39) size 715x36
+          text run at (339,39) width 379: ", which should have no right border width or visible border"
+          text run at (3,57) width 206: "because no border style was set."
+      LayoutTable {TABLE} at (0,204) size 784x114 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x112
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x86
+            LayoutTableCell {TD} at (0,56) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x86 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x78 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 176x18
+                  text run at (3,3) width 176: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 25x15
+                  LayoutText {#text} at (178,5) size 25x15
+                    text run at (178,5) width 25: "one"
+                LayoutText {#text} at (202,3) size 164x18
+                  text run at (202,3) width 9: ". "
+                  text run at (210,3) width 156: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 176x24 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+                  LayoutText {#text} at (368,3) size 149x18
+                    text run at (368,3) width 149: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 24x15
+                    LayoutText {#text} at (516,5) size 24x15
+                      text run at (516,5) width 24: "two"
+                LayoutText {#text} at (540,3) size 728x36
+                  text run at (540,3) width 191: ", which should result in a thin"
+                  text run at (3,21) width 230: "solid border on the right side of the "
+                LayoutInline {STRONG} at (0,0) size 25x18
+                  LayoutText {#text} at (232,21) size 25x18
+                    text run at (232,21) width 25: "last"
+                LayoutText {#text} at (256,21) size 720x36
+                  text run at (256,21) width 467: " box of the inline element (and the UA's default border on the other three"
+                  text run at (3,39) width 46: "sides). "
+                  text run at (48,39) width 106: "There is also an "
+                LayoutInline {SPAN} at (0,0) size 187x18
+                  LayoutText {#text} at (153,39) size 148x18
+                    text run at (153,39) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 40x15
+                    LayoutText {#text} at (300,41) size 40x15
+                      text run at (300,41) width 40: "three"
+                LayoutText {#text} at (339,39) size 715x36
+                  text run at (339,39) width 379: ", which should have no right border width or visible border"
+                  text run at (3,57) width 206: "because no border style was set."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_style-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_style-expected.txt
new file mode 100644
index 0000000..8085a4a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_style-expected.txt
@@ -0,0 +1,121 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1301
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1301 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1301
+    LayoutBlockFlow {BODY} at (8,8) size 769x1285 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x180
+        LayoutText {#text} at (0,0) size 617x180
+          text run at (0,0) width 547: ".one {border-style: dotted; border-color: black; border-width: thick;}"
+          text run at (546,0) width 1: " "
+          text run at (0,15) width 547: ".two {border-style: dashed; border-color: black; border-width: thick;}"
+          text run at (546,15) width 1: " "
+          text run at (0,30) width 554: ".three {border-style: solid; border-color: black; border-width: thick;}"
+          text run at (553,30) width 1: " "
+          text run at (0,45) width 554: ".four {border-style: double; border-color: black; border-width: thick;}"
+          text run at (553,45) width 1: " "
+          text run at (0,60) width 554: ".five {border-style: groove; border-color: olive; border-width: thick;}"
+          text run at (553,60) width 1: " "
+          text run at (0,75) width 539: ".six {border-style: ridge; border-color: olive; border-width: thick;}"
+          text run at (538,75) width 1: " "
+          text run at (0,90) width 554: ".seven {border-style: inset; border-color: olive; border-width: thick;}"
+          text run at (553,90) width 1: " "
+          text run at (0,105) width 562: ".eight {border-style: outset; border-color: olive; border-width: thick;}"
+          text run at (561,105) width 1: " "
+          text run at (0,120) width 617: ".nine {border-style: double groove; border-color: purple; border-width: thick;}"
+          text run at (616,120) width 1: " "
+          text run at (0,135) width 359: ".ten {border-style: double groove ridge inset;"
+          text run at (358,135) width 1: " "
+          text run at (0,150) width 359: "   border-color: purple; border-width: thick;}"
+          text run at (358,150) width 1: " "
+          text run at (0,165) width 539: ".eleven {border-style: none; border-color: red; border-width: thick;}"
+          text run at (538,165) width 1: " "
+      LayoutBlockFlow {P} at (0,245) size 769x28 [border: (5px dotted #000000)]
+        LayoutText {#text} at (5,5) size 480x18
+          text run at (5,5) width 480: "This paragraph should have a thick black dotted border all the way around."
+      LayoutBlockFlow {P} at (0,289) size 769x28 [border: (5px dashed #000000)]
+        LayoutText {#text} at (5,5) size 484x18
+          text run at (5,5) width 484: "This paragraph should have a thick black dashed border all the way around."
+      LayoutBlockFlow {P} at (0,333) size 769x28 [border: (5px solid #000000)]
+        LayoutText {#text} at (5,5) size 471x18
+          text run at (5,5) width 471: "This paragraph should have a thick black solid border all the way around."
+      LayoutBlockFlow {P} at (0,377) size 769x28 [border: (5px double #000000)]
+        LayoutText {#text} at (5,5) size 483x18
+          text run at (5,5) width 483: "This paragraph should have a thick black double border all the way around."
+      LayoutBlockFlow {P} at (0,421) size 769x28 [border: (5px groove #808000)]
+        LayoutText {#text} at (5,5) size 482x18
+          text run at (5,5) width 482: "This paragraph should have a thick olive groove border all the way around."
+      LayoutBlockFlow {P} at (0,465) size 769x28 [border: (5px ridge #808000)]
+        LayoutText {#text} at (5,5) size 470x18
+          text run at (5,5) width 470: "This paragraph should have a thick olive ridge border all the way around."
+      LayoutBlockFlow {P} at (0,509) size 769x28 [border: (5px inset #808000)]
+        LayoutText {#text} at (5,5) size 467x18
+          text run at (5,5) width 467: "This paragraph should have a thick olive inset border all the way around."
+      LayoutBlockFlow {P} at (0,553) size 769x28 [border: (5px outset #808000)]
+        LayoutText {#text} at (5,5) size 475x18
+          text run at (5,5) width 475: "This paragraph should have a thick olive outset border all the way around."
+      LayoutBlockFlow {P} at (0,597) size 769x46 [border: (5px double #800080) (5px groove #800080) (5px double #800080) (5px groove #800080)]
+        LayoutText {#text} at (5,5) size 757x36
+          text run at (5,5) width 627: "This paragraph should have thick double top and bottom borders, and thick grooved side borders. "
+          text run at (631,5) width 131: "The color of all four"
+          text run at (5,23) width 208: "sides should be based on purple."
+      LayoutBlockFlow {P} at (0,659) size 769x46 [border: (5px double #800080) (5px groove #800080) (5px ridge #800080) (5px inset #800080)]
+        LayoutText {#text} at (5,5) size 738x36
+          text run at (5,5) width 713: "This paragraph should have, in clockwise order from the top, a double, grooved, ridged, and inset thick border. "
+          text run at (717,5) width 26: "The"
+          text run at (5,23) width 312: "color of all four sides should be based on purple."
+      LayoutBlockFlow {P} at (0,721) size 769x18
+        LayoutText {#text} at (0,0) size 283x18
+          text run at (0,0) width 283: "This paragraph should have no border at all."
+      LayoutTable {TABLE} at (0,755) size 769x530 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x528
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x502
+            LayoutTableCell {TD} at (0,264) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x502 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x28 [border: (5px dotted #000000)]
+                LayoutText {#text} at (5,5) size 480x18
+                  text run at (5,5) width 480: "This paragraph should have a thick black dotted border all the way around."
+              LayoutBlockFlow {P} at (4,48) size 747x28 [border: (5px dashed #000000)]
+                LayoutText {#text} at (5,5) size 484x18
+                  text run at (5,5) width 484: "This paragraph should have a thick black dashed border all the way around."
+              LayoutBlockFlow {P} at (4,92) size 747x28 [border: (5px solid #000000)]
+                LayoutText {#text} at (5,5) size 471x18
+                  text run at (5,5) width 471: "This paragraph should have a thick black solid border all the way around."
+              LayoutBlockFlow {P} at (4,136) size 747x28 [border: (5px double #000000)]
+                LayoutText {#text} at (5,5) size 483x18
+                  text run at (5,5) width 483: "This paragraph should have a thick black double border all the way around."
+              LayoutBlockFlow {P} at (4,180) size 747x28 [border: (5px groove #808000)]
+                LayoutText {#text} at (5,5) size 482x18
+                  text run at (5,5) width 482: "This paragraph should have a thick olive groove border all the way around."
+              LayoutBlockFlow {P} at (4,224) size 747x28 [border: (5px ridge #808000)]
+                LayoutText {#text} at (5,5) size 470x18
+                  text run at (5,5) width 470: "This paragraph should have a thick olive ridge border all the way around."
+              LayoutBlockFlow {P} at (4,268) size 747x28 [border: (5px inset #808000)]
+                LayoutText {#text} at (5,5) size 467x18
+                  text run at (5,5) width 467: "This paragraph should have a thick olive inset border all the way around."
+              LayoutBlockFlow {P} at (4,312) size 747x28 [border: (5px outset #808000)]
+                LayoutText {#text} at (5,5) size 475x18
+                  text run at (5,5) width 475: "This paragraph should have a thick olive outset border all the way around."
+              LayoutBlockFlow {P} at (4,356) size 747x46 [border: (5px double #800080) (5px groove #800080) (5px double #800080) (5px groove #800080)]
+                LayoutText {#text} at (5,5) size 727x36
+                  text run at (5,5) width 627: "This paragraph should have thick double top and bottom borders, and thick grooved side borders. "
+                  text run at (631,5) width 101: "The color of all"
+                  text run at (5,23) width 238: "four sides should be based on purple."
+              LayoutBlockFlow {P} at (4,418) size 747x46 [border: (5px double #800080) (5px groove #800080) (5px ridge #800080) (5px inset #800080)]
+                LayoutText {#text} at (5,5) size 709x36
+                  text run at (5,5) width 709: "This paragraph should have, in clockwise order from the top, a double, grooved, ridged, and inset thick border."
+                  text run at (5,23) width 341: "The color of all four sides should be based on purple."
+              LayoutBlockFlow {P} at (4,480) size 747x18
+                LayoutText {#text} at (0,0) size 283x18
+                  text run at (0,0) width 283: "This paragraph should have no border at all."
+layer at (8,235) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,227) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_style_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_style_inline-expected.txt
new file mode 100644
index 0000000..afd0c10
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_style_inline-expected.txt
@@ -0,0 +1,71 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 554x45
+          text run at (0,0) width 547: ".one {border-style: dashed; border-color: black; border-width: thick;}"
+          text run at (546,0) width 1: " "
+          text run at (0,15) width 531: ".two {border-style: groove; border-color: red; border-width: thick;}"
+          text run at (530,15) width 1: " "
+          text run at (0,30) width 554: ".three {border-style: none; border-color: purple; border-width: thick;}"
+          text run at (553,30) width 1: " "
+      LayoutBlockFlow {P} at (0,110) size 784x54 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 679x18
+          text run at (0,0) width 679: "This is an unstyled element, save for the background color, and it contains inline elements with classes of "
+        LayoutInline {SPAN} at (0,0) size 69x28 [border: (5px dashed #000000)]
+          LayoutText {#text} at (683,0) size 59x18
+            text run at (683,0) width 59: "class one"
+        LayoutText {#text} at (746,0) size 751x36
+          text run at (746,0) width 5: ","
+          text run at (0,18) width 313: "which will result in a dashed thick black border; "
+        LayoutInline {SPAN} at (0,0) size 70x28 [border: (5px groove #FF0000)]
+          LayoutText {#text} at (317,18) size 60x18
+            text run at (317,18) width 60: "class two"
+        LayoutText {#text} at (381,18) size 375x18
+          text run at (381,18) width 375: ", which should result in a grooved thick purple border, and"
+        LayoutInline {SPAN} at (0,0) size 68x18
+          LayoutText {#text} at (0,36) size 68x18
+            text run at (0,36) width 68: "class three"
+        LayoutText {#text} at (67,36) size 701x18
+          text run at (67,36) width 260: ", which should result in no border at all. "
+          text run at (326,36) width 442: "The line-height of the parent element should not change, on any line."
+      LayoutTable {TABLE} at (0,180) size 784x108 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x106
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x80
+            LayoutTableCell {TD} at (0,53) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x80 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x72 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 679x18
+                  text run at (0,0) width 679: "This is an unstyled element, save for the background color, and it contains inline elements with classes of "
+                LayoutInline {SPAN} at (0,0) size 69x28 [border: (5px dashed #000000)]
+                  LayoutText {#text} at (683,0) size 59x18
+                    text run at (683,0) width 59: "class one"
+                LayoutText {#text} at (746,0) size 751x36
+                  text run at (746,0) width 5: ","
+                  text run at (0,18) width 313: "which will result in a dashed thick black border; "
+                LayoutInline {SPAN} at (0,0) size 70x28 [border: (5px groove #FF0000)]
+                  LayoutText {#text} at (317,18) size 60x18
+                    text run at (317,18) width 60: "class two"
+                LayoutText {#text} at (381,18) size 375x18
+                  text run at (381,18) width 375: ", which should result in a grooved thick purple border, and"
+                LayoutInline {SPAN} at (0,0) size 68x18
+                  LayoutText {#text} at (0,36) size 68x18
+                    text run at (0,36) width 68: "class three"
+                LayoutText {#text} at (67,36) size 736x36
+                  text run at (67,36) width 260: ", which should result in no border at all. "
+                  text run at (326,36) width 410: "The line-height of the parent element should not change, on any"
+                  text run at (0,54) width 28: "line."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_top-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_top-expected.txt
new file mode 100644
index 0000000..e05fb2f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_top-expected.txt
@@ -0,0 +1,152 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 959
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x959 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x959
+    LayoutBlockFlow {BODY} at (8,8) size 769x943 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x60
+        LayoutText {#text} at (0,0) size 313x60
+          text run at (0,0) width 297: ".one {border-top: purple double 10px;}"
+          text run at (296,0) width 1: " "
+          text run at (0,15) width 289: ".two {border-top: purple thin solid;}"
+          text run at (288,15) width 1: " "
+          text run at (0,30) width 313: ".three {border-top: black medium solid;}"
+          text run at (312,30) width 1: " "
+          text run at (0,45) width 258: "TD {border-top: green 2px solid;}"
+          text run at (257,45) width 1: " "
+      LayoutBlockFlow {P} at (0,125) size 769x36
+        LayoutText {#text} at (0,0) size 723x36
+          text run at (0,0) width 648: "Note that all table cells on this page should have a two-pixel solid green border along their top sides. "
+          text run at (647,0) width 76: "This border"
+          text run at (0,18) width 373: "applies only to the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (0,177) size 769x28 [border: (10px double #800080) none]
+        LayoutText {#text} at (0,10) size 420x18
+          text run at (0,10) width 420: "This paragraph should have a purple, double, 10-pixel top border."
+      LayoutBlockFlow {P} at (0,221) size 769x19 [border: (1px solid #800080) none]
+        LayoutText {#text} at (0,1) size 336x18
+          text run at (0,1) width 336: "This paragraph should have a thin purple top border."
+      LayoutTable {TABLE} at (0,256) size 769x110 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x108
+          LayoutTableRow {TR} at (0,5) size 767x41
+            LayoutTableCell {TD} at (5,5) size 757x41 [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (2,3) size 753x36
+                text run at (2,3) width 438: "Every cell in this table should have a 2-pixel solid green top border. "
+                text run at (439,3) width 316: "This is also true of the table-testing section in the"
+                text run at (2,21) width 179: "second half of the test page."
+          LayoutTableRow {TR} at (0,51) size 767x52
+            LayoutTableCell {TD} at (5,65) size 190x23 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (2,3) size 54x18
+                text run at (2,3) width 54: "Cell one"
+            LayoutTableCell {TD} at (200,51) size 562x52 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (2,3) size 558x18
+                LayoutText {#text} at (0,0) size 55x18
+                  text run at (0,0) width 55: "Cell two"
+              LayoutTable {TABLE} at (2,21) size 166x29 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 164x27
+                  LayoutTableRow {TR} at (0,2) size 164x23
+                    LayoutTableCell {TD} at (2,2) size 160x23 [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,3) size 156x18
+                        text run at (2,3) width 156: "Nested single-cell table!"
+      LayoutBlockFlow {UL} at (0,382) size 769x117
+        LayoutListItem {LI} at (40,0) size 729x75 [border: (3px solid #000000) none]
+          LayoutBlockFlow (anonymous) at (0,3) size 729x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 123x18
+              text run at (0,0) width 123: "This is a list item..."
+          LayoutBlockFlow {UL} at (0,21) size 729x54
+            LayoutListItem {LI} at (40,0) size 689x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 75x18
+                text run at (0,0) width 75: "...and this..."
+            LayoutListItem {LI} at (40,18) size 689x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 118x18
+                text run at (0,0) width 118: "...is a second list..."
+            LayoutListItem {LI} at (40,36) size 689x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 182x18
+                text run at (0,0) width 182: "...nested within the list item."
+        LayoutListItem {LI} at (40,75) size 729x21 [border: (3px solid #000000) none]
+          LayoutListMarker (anonymous) at (-17,3) size 7x18: bullet
+          LayoutText {#text} at (0,3) size 163x18
+            text run at (0,3) width 163: "This is a second list item."
+        LayoutListItem {LI} at (40,96) size 729x21 [border: (3px solid #000000) none]
+          LayoutListMarker (anonymous) at (-17,3) size 7x18: bullet
+          LayoutText {#text} at (0,3) size 493x18
+            text run at (0,3) width 493: "Each list item in this list should have a medium-width black border at its top."
+      LayoutTable {TABLE} at (0,515) size 769x428 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x426
+          LayoutTableRow {TR} at (0,0) size 767x27
+            LayoutTableCell {TD} at (0,0) size 767x27 [bgcolor=#C0C0C0] [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,5) size 161x18
+                  text run at (4,5) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,27) size 767x399
+            LayoutTableCell {TD} at (0,213) size 12x27 [bgcolor=#C0C0C0] [border: (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,5) size 4x18
+                text run at (4,5) width 4: " "
+            LayoutTableCell {TD} at (12,27) size 755x399 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,5) size 747x36
+                LayoutText {#text} at (0,0) size 723x36
+                  text run at (0,0) width 648: "Note that all table cells on this page should have a two-pixel solid green border along their top sides. "
+                  text run at (647,0) width 76: "This border"
+                  text run at (0,18) width 373: "applies only to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (4,57) size 747x28 [border: (10px double #800080) none]
+                LayoutText {#text} at (0,10) size 420x18
+                  text run at (0,10) width 420: "This paragraph should have a purple, double, 10-pixel top border."
+              LayoutBlockFlow {P} at (4,101) size 747x19 [border: (1px solid #800080) none]
+                LayoutText {#text} at (0,1) size 336x18
+                  text run at (0,1) width 336: "This paragraph should have a thin purple top border."
+              LayoutTable {TABLE} at (4,136) size 747x110 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 745x108
+                  LayoutTableRow {TR} at (0,5) size 745x41
+                    LayoutTableCell {TD} at (5,5) size 735x41 [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (2,3) size 729x36
+                        text run at (2,3) width 438: "Every cell in this table should have a 2-pixel solid green top border. "
+                        text run at (439,3) width 292: "This is also true of the table-testing section in"
+                        text run at (2,21) width 203: "the second half of the test page."
+                  LayoutTableRow {TR} at (0,51) size 745x52
+                    LayoutTableCell {TD} at (5,65) size 185x23 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,3) size 54x18
+                        text run at (2,3) width 54: "Cell one"
+                    LayoutTableCell {TD} at (195,51) size 545x52 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (2,3) size 541x18
+                        LayoutText {#text} at (0,0) size 55x18
+                          text run at (0,0) width 55: "Cell two"
+                      LayoutTable {TABLE} at (2,21) size 166x29 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 164x27
+                          LayoutTableRow {TR} at (0,2) size 164x23
+                            LayoutTableCell {TD} at (2,2) size 160x23 [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (2,3) size 156x18
+                                text run at (2,3) width 156: "Nested single-cell table!"
+              LayoutBlockFlow {UL} at (4,262) size 747x117
+                LayoutListItem {LI} at (40,0) size 707x75 [border: (3px solid #000000) none]
+                  LayoutBlockFlow (anonymous) at (0,3) size 707x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 123x18
+                      text run at (0,0) width 123: "This is a list item..."
+                  LayoutBlockFlow {UL} at (0,21) size 707x54
+                    LayoutListItem {LI} at (40,0) size 667x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 75x18
+                        text run at (0,0) width 75: "...and this..."
+                    LayoutListItem {LI} at (40,18) size 667x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 118x18
+                        text run at (0,0) width 118: "...is a second list..."
+                    LayoutListItem {LI} at (40,36) size 667x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 182x18
+                        text run at (0,0) width 182: "...nested within the list item."
+                LayoutListItem {LI} at (40,75) size 707x21 [border: (3px solid #000000) none]
+                  LayoutListMarker (anonymous) at (-17,3) size 7x18: bullet
+                  LayoutText {#text} at (0,3) size 163x18
+                    text run at (0,3) width 163: "This is a second list item."
+                LayoutListItem {LI} at (40,96) size 707x21 [border: (3px solid #000000) none]
+                  LayoutListMarker (anonymous) at (-17,3) size 7x18: bullet
+                  LayoutText {#text} at (0,3) size 493x18
+                    text run at (0,3) width 493: "Each list item in this list should have a medium-width black border at its top."
+layer at (8,115) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_top_inline-expected.txt
new file mode 100644
index 0000000..897191d1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_top_inline-expected.txt
@@ -0,0 +1,60 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 297x45
+          text run at (0,0) width 297: ".one {border-top: purple double 10px;}"
+          text run at (296,0) width 1: " "
+          text run at (0,15) width 289: ".two {border-top: purple thin solid;}"
+          text run at (288,15) width 1: " "
+          text run at (0,30) width 0: " "
+      LayoutBlockFlow {P} at (0,110) size 784x54 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 680x18
+          text run at (0,0) width 680: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
+        LayoutInline {SPAN} at (0,0) size 59x28 [border: (10px double #800080) none]
+          LayoutText {#text} at (679,0) size 59x18
+            text run at (679,0) width 59: "class one"
+        LayoutText {#text} at (737,0) size 742x36
+          text run at (737,0) width 5: ","
+          text run at (0,18) width 387: "which should have a 10-pixel purple double top border; and "
+        LayoutInline {SPAN} at (0,0) size 60x19 [border: (1px solid #800080) none]
+          LayoutText {#text} at (386,18) size 60x18
+            text run at (386,18) width 60: "class two"
+        LayoutText {#text} at (445,18) size 767x36
+          text run at (445,18) width 322: ", which should have a thin solid purple top border."
+          text run at (0,36) width 438: "The line-height of the parent element should not change on any line."
+      LayoutTable {TABLE} at (0,180) size 784x90 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x88
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x62
+            LayoutTableCell {TD} at (0,44) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x62 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x54 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 680x18
+                  text run at (0,0) width 680: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
+                LayoutInline {SPAN} at (0,0) size 59x28 [border: (10px double #800080) none]
+                  LayoutText {#text} at (679,0) size 59x18
+                    text run at (679,0) width 59: "class one"
+                LayoutText {#text} at (737,0) size 742x36
+                  text run at (737,0) width 5: ","
+                  text run at (0,18) width 387: "which should have a 10-pixel purple double top border; and "
+                LayoutInline {SPAN} at (0,0) size 60x19 [border: (1px solid #800080) none]
+                  LayoutText {#text} at (386,18) size 60x18
+                    text run at (386,18) width 60: "class two"
+                LayoutText {#text} at (445,18) size 719x36
+                  text run at (445,18) width 274: ", which should have a thin solid purple top"
+                  text run at (0,36) width 49: "border. "
+                  text run at (48,36) width 439: "The line-height of the parent element should not change on any line."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_top_width-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_top_width-expected.txt
new file mode 100644
index 0000000..b1016c6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_top_width-expected.txt
@@ -0,0 +1,98 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 759
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x759 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x759
+    LayoutBlockFlow {BODY} at (8,8) size 769x743 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x90
+        LayoutText {#text} at (0,0) size 430x90
+          text run at (0,0) width 422: ".zero {background-color: silver; border-top-width: 0;}"
+          text run at (421,0) width 1: " "
+          text run at (0,15) width 398: ".one {border-top-width: 25px; border-style: solid;}"
+          text run at (397,15) width 1: " "
+          text run at (0,30) width 406: ".two {border-top-width: thick; border-style: solid;}"
+          text run at (405,30) width 1: " "
+          text run at (0,45) width 430: ".three {border-top-width: medium; border-style: solid;}"
+          text run at (429,45) width 1: " "
+          text run at (0,60) width 406: ".four {border-top-width: thin; border-style: solid;}"
+          text run at (405,60) width 1: " "
+          text run at (0,75) width 242: ".five {border-top-width: 25px;}"
+          text run at (241,75) width 1: " "
+      LayoutBlockFlow {P} at (0,155) size 769x18
+        LayoutText {#text} at (0,0) size 160x18
+          text run at (0,0) width 160: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 95x15
+          LayoutText {#text} at (159,2) size 95x15
+            text run at (159,2) width 95: "border-style"
+        LayoutText {#text} at (253,0) size 92x18
+          text run at (253,0) width 92: " is supported.)"
+      LayoutBlockFlow {P} at (0,189) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,223) size 769x46 [border: (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,25) size 383x18
+          text run at (3,25) width 383: "This paragraph should have a top border width of 25 pixels."
+      LayoutBlockFlow {P} at (0,285) size 769x26 [border: (5px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,5) size 340x18
+          text run at (3,5) width 340: "This paragraph should have a thick top border width."
+      LayoutBlockFlow {P} at (0,327) size 769x24 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 360x18
+          text run at (3,3) width 360: "This paragraph should have a medium top border width."
+      LayoutBlockFlow {P} at (0,367) size 769x22 [border: (1px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,1) size 332x18
+          text run at (3,1) width 332: "This paragraph should have a thin top border width."
+      LayoutBlockFlow {P} at (0,405) size 769x18
+        LayoutText {#text} at (0,0) size 534x18
+          text run at (0,0) width 534: "This paragraph should have no border and no extra \"padding\" on its top side, as no "
+        LayoutInline {CODE} at (0,0) size 94x15
+          LayoutText {#text} at (533,2) size 94x15
+            text run at (533,2) width 94: "border-style"
+        LayoutText {#text} at (627,0) size 55x18
+          text run at (627,0) width 55: " was set."
+      LayoutTable {TABLE} at (0,439) size 704x304 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 702x302
+          LayoutTableRow {TR} at (0,0) size 702x26
+            LayoutTableCell {TD} at (0,0) size 702x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 702x276
+            LayoutTableCell {TD} at (0,151) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 690x276 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 682x18
+                LayoutText {#text} at (0,0) size 160x18
+                  text run at (0,0) width 160: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 95x15
+                  LayoutText {#text} at (159,2) size 95x15
+                    text run at (159,2) width 95: "border-style"
+                LayoutText {#text} at (253,0) size 92x18
+                  text run at (253,0) width 92: " is supported.)"
+              LayoutBlockFlow {P} at (4,38) size 682x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,72) size 682x46 [border: (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,25) size 383x18
+                  text run at (3,25) width 383: "This paragraph should have a top border width of 25 pixels."
+              LayoutBlockFlow {P} at (4,134) size 682x26 [border: (5px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,5) size 340x18
+                  text run at (3,5) width 340: "This paragraph should have a thick top border width."
+              LayoutBlockFlow {P} at (4,176) size 682x24 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 360x18
+                  text run at (3,3) width 360: "This paragraph should have a medium top border width."
+              LayoutBlockFlow {P} at (4,216) size 682x22 [border: (1px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,1) size 332x18
+                  text run at (3,1) width 332: "This paragraph should have a thin top border width."
+              LayoutBlockFlow {P} at (4,254) size 682x18
+                LayoutText {#text} at (0,0) size 534x18
+                  text run at (0,0) width 534: "This paragraph should have no border and no extra \"padding\" on its top side, as no "
+                LayoutInline {CODE} at (0,0) size 94x15
+                  LayoutText {#text} at (533,2) size 94x15
+                    text run at (533,2) width 94: "border-style"
+                LayoutText {#text} at (627,0) size 55x18
+                  text run at (627,0) width 55: " was set."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_top_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_top_width_inline-expected.txt
new file mode 100644
index 0000000..92cc9dbd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_top_width_inline-expected.txt
@@ -0,0 +1,87 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 398x45
+          text run at (0,0) width 398: ".one {border-top-width: 25px; border-style: solid;}"
+          text run at (397,0) width 1: " "
+          text run at (0,15) width 398: ".two {border-top-width: thin; border-style: solid;}"
+          text run at (397,15) width 1: " "
+          text run at (0,30) width 250: ".three {border-top-width: 25px;}"
+          text run at (249,30) width 1: " "
+      LayoutBlockFlow {P} at (0,110) size 784x100 [border: (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,25) size 176x18
+          text run at (3,25) width 176: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 25x15
+          LayoutText {#text} at (178,27) size 25x15
+            text run at (178,27) width 25: "one"
+        LayoutText {#text} at (202,25) size 164x18
+          text run at (202,25) width 9: ". "
+          text run at (210,25) width 156: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 178x22 [border: (1px solid #000000) (3px solid #000000)]
+          LayoutText {#text} at (368,25) size 149x18
+            text run at (368,25) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 24x15
+            LayoutText {#text} at (516,27) size 24x15
+              text run at (516,27) width 24: "two"
+        LayoutText {#text} at (542,25) size 765x54
+          text run at (542,25) width 226: ", which should result in a thin solid"
+          text run at (3,43) width 706: "border on the top side of each box in the inline element (and the UA's default border on the other three sides). "
+          text run at (708,43) width 53: "There is"
+          text run at (3,61) width 49: "also an "
+        LayoutInline {SPAN} at (0,0) size 188x18
+          LayoutText {#text} at (51,61) size 149x18
+            text run at (51,61) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 40x15
+            LayoutText {#text} at (199,63) size 40x15
+              text run at (199,63) width 40: "three"
+        LayoutText {#text} at (238,61) size 759x36
+          text run at (238,61) width 524: ", which should have no top border width or visible border because no border style"
+          text run at (3,79) width 51: "was set."
+      LayoutTable {TABLE} at (0,226) size 784x136 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x134
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x108
+            LayoutTableCell {TD} at (0,67) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x108 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x100 [border: (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,25) size 176x18
+                  text run at (3,25) width 176: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 25x15
+                  LayoutText {#text} at (178,27) size 25x15
+                    text run at (178,27) width 25: "one"
+                LayoutText {#text} at (202,25) size 164x18
+                  text run at (202,25) width 9: ". "
+                  text run at (210,25) width 156: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 178x22 [border: (1px solid #000000) (3px solid #000000)]
+                  LayoutText {#text} at (368,25) size 149x18
+                    text run at (368,25) width 149: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 24x15
+                    LayoutText {#text} at (516,27) size 24x15
+                      text run at (516,27) width 24: "two"
+                LayoutText {#text} at (542,25) size 737x54
+                  text run at (542,25) width 191: ", which should result in a thin"
+                  text run at (3,43) width 737: "solid border on the top side of each box in the inline element (and the UA's default border on the other three sides)."
+                  text run at (3,61) width 105: "There is also an "
+                LayoutInline {SPAN} at (0,0) size 188x18
+                  LayoutText {#text} at (107,61) size 149x18
+                    text run at (107,61) width 149: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 40x15
+                    LayoutText {#text} at (255,63) size 40x15
+                      text run at (255,63) width 40: "three"
+                LayoutText {#text} at (294,61) size 735x36
+                  text run at (294,61) width 444: ", which should have no top border width or visible border because no"
+                  text run at (3,79) width 131: "border style was set."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_width-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_width-expected.txt
new file mode 100644
index 0000000..0345d55
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_width-expected.txt
@@ -0,0 +1,98 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 903
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x903 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x903
+    LayoutBlockFlow {BODY} at (8,8) size 769x887 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x90
+        LayoutText {#text} at (0,0) size 398x90
+          text run at (0,0) width 391: ".zero {background-color: silver; border-width: 0;}"
+          text run at (390,0) width 1: " "
+          text run at (0,15) width 367: ".one {border-width: 50px; border-style: solid;}"
+          text run at (366,15) width 1: " "
+          text run at (0,30) width 375: ".two {border-width: thick; border-style: solid;}"
+          text run at (374,30) width 1: " "
+          text run at (0,45) width 398: ".three {border-width: medium; border-style: solid;}"
+          text run at (397,45) width 1: " "
+          text run at (0,60) width 375: ".four {border-width: thin; border-style: solid;}"
+          text run at (374,60) width 1: " "
+          text run at (0,75) width 211: ".five {border-width: 25px;}"
+          text run at (210,75) width 1: " "
+      LayoutBlockFlow {P} at (0,155) size 769x18
+        LayoutText {#text} at (0,0) size 160x18
+          text run at (0,0) width 160: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 95x15
+          LayoutText {#text} at (159,2) size 95x15
+            text run at (159,2) width 95: "border-style"
+        LayoutText {#text} at (253,0) size 92x18
+          text run at (253,0) width 92: " is supported.)"
+      LayoutBlockFlow {P} at (0,189) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,223) size 769x118 [border: (50px solid #000000)]
+        LayoutText {#text} at (50,50) size 402x18
+          text run at (50,50) width 402: "This element should have an overall border width of 50 pixels."
+      LayoutBlockFlow {P} at (0,357) size 769x28 [border: (5px solid #000000)]
+        LayoutText {#text} at (5,5) size 350x18
+          text run at (5,5) width 350: "This element should have a thick overall border width."
+      LayoutBlockFlow {P} at (0,401) size 769x24 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 371x18
+          text run at (3,3) width 371: "This element should have a medium overall border width."
+      LayoutBlockFlow {P} at (0,441) size 769x20 [border: (1px solid #000000)]
+        LayoutText {#text} at (1,1) size 343x18
+          text run at (1,1) width 343: "This element should have a thin overall border width."
+      LayoutBlockFlow {P} at (0,477) size 769x18
+        LayoutText {#text} at (0,0) size 504x18
+          text run at (0,0) width 504: "This element should have no border and no extra \"padding\" on any side, as no "
+        LayoutInline {CODE} at (0,0) size 95x15
+          LayoutText {#text} at (503,2) size 95x15
+            text run at (503,2) width 95: "border-style"
+        LayoutText {#text} at (597,0) size 55x18
+          text run at (597,0) width 55: " was set."
+      LayoutTable {TABLE} at (0,511) size 674x376 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 672x374
+          LayoutTableRow {TR} at (0,0) size 672x26
+            LayoutTableCell {TD} at (0,0) size 672x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 672x348
+            LayoutTableCell {TD} at (0,187) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 660x348 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 652x18
+                LayoutText {#text} at (0,0) size 160x18
+                  text run at (0,0) width 160: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 95x15
+                  LayoutText {#text} at (159,2) size 95x15
+                    text run at (159,2) width 95: "border-style"
+                LayoutText {#text} at (253,0) size 92x18
+                  text run at (253,0) width 92: " is supported.)"
+              LayoutBlockFlow {P} at (4,38) size 652x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,72) size 652x118 [border: (50px solid #000000)]
+                LayoutText {#text} at (50,50) size 402x18
+                  text run at (50,50) width 402: "This element should have an overall border width of 50 pixels."
+              LayoutBlockFlow {P} at (4,206) size 652x28 [border: (5px solid #000000)]
+                LayoutText {#text} at (5,5) size 350x18
+                  text run at (5,5) width 350: "This element should have a thick overall border width."
+              LayoutBlockFlow {P} at (4,250) size 652x24 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 371x18
+                  text run at (3,3) width 371: "This element should have a medium overall border width."
+              LayoutBlockFlow {P} at (4,290) size 652x20 [border: (1px solid #000000)]
+                LayoutText {#text} at (1,1) size 343x18
+                  text run at (1,1) width 343: "This element should have a thin overall border width."
+              LayoutBlockFlow {P} at (4,326) size 652x18
+                LayoutText {#text} at (0,0) size 504x18
+                  text run at (0,0) width 504: "This element should have no border and no extra \"padding\" on any side, as no "
+                LayoutInline {CODE} at (0,0) size 95x15
+                  LayoutText {#text} at (503,2) size 95x15
+                    text run at (503,2) width 95: "border-style"
+                LayoutText {#text} at (597,0) size 55x18
+                  text run at (597,0) width 55: " was set."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_width_inline-expected.txt
new file mode 100644
index 0000000..95b4c91e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/border_width_inline-expected.txt
@@ -0,0 +1,86 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 367x45
+          text run at (0,0) width 367: ".one {border-width: 25px; border-style: solid;}"
+          text run at (366,0) width 1: " "
+          text run at (0,15) width 367: ".two {border-width: thin; border-style: solid;}"
+          text run at (366,15) width 1: " "
+          text run at (0,30) width 219: ".three {border-width: 25px;}"
+          text run at (218,30) width 1: " "
+      LayoutBlockFlow {P} at (0,110) size 784x104 [border: (25px solid #000000)]
+        LayoutText {#text} at (25,25) size 176x18
+          text run at (25,25) width 176: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 25x15
+          LayoutText {#text} at (200,27) size 25x15
+            text run at (200,27) width 25: "one"
+        LayoutText {#text} at (224,25) size 164x18
+          text run at (224,25) width 9: ". "
+          text run at (232,25) width 156: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 174x20 [border: (1px solid #000000)]
+          LayoutText {#text} at (388,25) size 149x18
+            text run at (388,25) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 24x15
+            LayoutText {#text} at (536,27) size 24x15
+              text run at (536,27) width 24: "two"
+        LayoutText {#text} at (560,25) size 726x36
+          text run at (560,25) width 191: ", which should result in a thin"
+          text run at (25,43) width 382: "solid border on each side of each box in the inline element. "
+          text run at (406,43) width 106: "There is also an "
+        LayoutInline {SPAN} at (0,0) size 187x18
+          LayoutText {#text} at (511,43) size 148x18
+            text run at (511,43) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 39x15
+            LayoutText {#text} at (659,45) size 39x15
+              text run at (659,45) width 39: "three"
+        LayoutText {#text} at (698,43) size 721x36
+          text run at (698,43) width 48: ", which"
+          text run at (25,61) width 393: "should have no border width because no border style was set."
+      LayoutTable {TABLE} at (0,230) size 784x140 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x138
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x112
+            LayoutTableCell {TD} at (0,69) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x112 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x104 [border: (25px solid #000000)]
+                LayoutText {#text} at (25,25) size 176x18
+                  text run at (25,25) width 176: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 25x15
+                  LayoutText {#text} at (200,27) size 25x15
+                    text run at (200,27) width 25: "one"
+                LayoutText {#text} at (224,25) size 164x18
+                  text run at (224,25) width 9: ". "
+                  text run at (232,25) width 156: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 174x20 [border: (1px solid #000000)]
+                  LayoutText {#text} at (388,25) size 149x18
+                    text run at (388,25) width 149: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 24x15
+                    LayoutText {#text} at (536,27) size 24x15
+                      text run at (536,27) width 24: "two"
+                LayoutText {#text} at (560,25) size 697x36
+                  text run at (560,25) width 162: ", which should result in a"
+                  text run at (25,43) width 411: "thin solid border on each side of each box in the inline element. "
+                  text run at (435,43) width 106: "There is also an "
+                LayoutInline {SPAN} at (0,0) size 187x18
+                  LayoutText {#text} at (540,43) size 148x18
+                    text run at (540,43) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 40x15
+                    LayoutText {#text} at (687,45) size 40x15
+                      text run at (687,45) width 40: "three"
+                LayoutText {#text} at (726,43) size 706x36
+                  text run at (726,43) width 5: ","
+                  text run at (25,61) width 436: "which should have no border width because no border style was set."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/clear-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/clear-expected.txt
new file mode 100644
index 0000000..f7e3c00d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/clear-expected.txt
@@ -0,0 +1,92 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 961
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x961 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x961
+    LayoutBlockFlow {BODY} at (8,8) size 769x945 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x60
+        LayoutText {#text} at (0,0) size 164x60
+          text run at (0,0) width 149: ".one {clear: left;}"
+          text run at (148,0) width 1: " "
+          text run at (0,15) width 157: ".two {clear: right;}"
+          text run at (156,15) width 1: " "
+          text run at (0,30) width 164: ".three {clear: both;}"
+          text run at (163,30) width 1: " "
+          text run at (0,45) width 157: ".four {clear: none;}"
+          text run at (156,45) width 1: " "
+      LayoutImage (floating) {IMG} at (0,117) size 15x50
+      LayoutBlockFlow {P} at (0,125) size 769x18
+        LayoutText {#text} at (18,0) size 605x18
+          text run at (18,0) width 605: "This text should be flowing past a tall orange rectangle on the left side of the browser window."
+      LayoutBlockFlow (anonymous) at (0,159) size 769x18
+        LayoutBR {BR} at (18,0) size 0x18
+        LayoutImage (floating) {IMG} at (0,18) size 15x50
+      LayoutBlockFlow {P} at (0,227) size 769x18
+        LayoutText {#text} at (0,0) size 661x18
+          text run at (0,0) width 661: "This paragraph should appear below the tall orange rectangle above and to the left, and not flow past it."
+      LayoutBlockFlow (anonymous) at (0,261) size 769x18
+        LayoutBR {BR} at (0,0) size 0x18
+        LayoutImage (floating) {IMG} at (754,18) size 15x50
+      LayoutBlockFlow {P} at (0,329) size 769x18
+        LayoutText {#text} at (0,0) size 670x18
+          text run at (0,0) width 670: "This paragraph should appear below the tall orange rectangle above and to the right, and not flow past it."
+      LayoutBlockFlow (anonymous) at (0,363) size 769x18
+        LayoutBR {BR} at (0,0) size 0x18
+        LayoutImage (floating) {IMG} at (0,18) size 15x50
+        LayoutImage (floating) {IMG} at (754,18) size 15x50
+      LayoutBlockFlow {P} at (0,431) size 769x18
+        LayoutText {#text} at (0,0) size 611x18
+          text run at (0,0) width 611: "This paragraph should appear below the two tall orange rectangles, and not flow between them."
+      LayoutImage (floating) {IMG} at (0,465) size 15x50
+      LayoutImage (floating) {IMG} at (754,465) size 15x50
+      LayoutBlockFlow {P} at (0,465) size 769x18
+        LayoutText {#text} at (18,0) size 397x18
+          text run at (18,0) width 397: "This paragraph should be between both tall orange rectangles."
+      LayoutBlockFlow (anonymous) at (0,499) size 769x18
+        LayoutBR {BR} at (18,0) size 0x18
+      LayoutTable {TABLE} at (0,517) size 692x428 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 690x426
+          LayoutTableRow {TR} at (0,0) size 690x26
+            LayoutTableCell {TD} at (0,0) size 690x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 690x400
+            LayoutTableCell {TD} at (0,213) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 678x400 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutImage (floating) {IMG} at (4,4) size 15x50
+              LayoutBlockFlow {P} at (4,4) size 670x18
+                LayoutText {#text} at (18,0) size 605x18
+                  text run at (18,0) width 605: "This text should be flowing past a tall orange rectangle on the left side of the browser window."
+              LayoutBlockFlow (anonymous) at (4,38) size 670x18
+                LayoutBR {BR} at (18,0) size 0x18
+                LayoutImage (floating) {IMG} at (0,18) size 15x50
+              LayoutBlockFlow {P} at (4,106) size 670x18
+                LayoutText {#text} at (0,0) size 661x18
+                  text run at (0,0) width 661: "This paragraph should appear below the tall orange rectangle above and to the left, and not flow past it."
+              LayoutBlockFlow (anonymous) at (4,140) size 670x18
+                LayoutBR {BR} at (0,0) size 0x18
+                LayoutImage (floating) {IMG} at (655,18) size 15x50
+              LayoutBlockFlow {P} at (4,208) size 670x18
+                LayoutText {#text} at (0,0) size 670x18
+                  text run at (0,0) width 670: "This paragraph should appear below the tall orange rectangle above and to the right, and not flow past it."
+              LayoutBlockFlow (anonymous) at (4,242) size 670x18
+                LayoutBR {BR} at (0,0) size 0x18
+                LayoutImage (floating) {IMG} at (0,18) size 15x50
+                LayoutImage (floating) {IMG} at (655,18) size 15x50
+              LayoutBlockFlow {P} at (4,310) size 670x18
+                LayoutText {#text} at (0,0) size 611x18
+                  text run at (0,0) width 611: "This paragraph should appear below the two tall orange rectangles, and not flow between them."
+              LayoutImage (floating) {IMG} at (4,344) size 15x50
+              LayoutImage (floating) {IMG} at (659,344) size 15x50
+              LayoutBlockFlow {P} at (4,344) size 670x18
+                LayoutText {#text} at (18,0) size 397x18
+                  text run at (18,0) width 397: "This paragraph should be between both tall orange rectangles."
+              LayoutBlockFlow (anonymous) at (4,378) size 670x18
+                LayoutBR {BR} at (18,0) size 0x18
+layer at (8,115) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/clear_float-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/clear_float-expected.txt
new file mode 100644
index 0000000..d06aaba
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/clear_float-expected.txt
@@ -0,0 +1,161 @@
+layer at (0,0) size 800x600 scrollHeight 775
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x775 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x774.88
+    LayoutBlockFlow {BODY} at (8,8) size 784x758.88 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,31) size 784x135
+        LayoutText {#text} at (0,0) size 601x135
+          text run at (0,0) width 383: "P { margin: 0; padding: 0; text-align:  justify;}"
+          text run at (382,0) width 1: " "
+          text run at (0,15) width 0: " "
+          text run at (0,30) width 375: "DIV.menu {float: left; clear: left; width: 11em;"
+          text run at (374,30) width 1: " "
+          text run at (0,45) width 453: "          margin: 0; margin-bottom: 10px; padding: 0.5em;}"
+          text run at (452,45) width 1: " "
+          text run at (0,60) width 422: "DIV.menu H1 {font-size: 1.2em; margin: 0; padding: 0;}"
+          text run at (421,60) width 1: " "
+          text run at (0,75) width 437: "DIV.menu UL {margin: 0.2em 0.3em 0.2em 1em; padding: 0;}"
+          text run at (436,75) width 1: " "
+          text run at (0,90) width 601: "DIV.article {padding: 0.5em; margin: 0; margin-left: 14em; margin-right: 2em;"
+          text run at (600,90) width 1: " "
+          text run at (0,105) width 469: "             color: black; background: yellow; clear: none;}"
+          text run at (468,105) width 1: " "
+          text run at (0,120) width 0: " "
+      LayoutBlockFlow (floating) {DIV} at (0,189) size 192x116.38 [color=#FFFFFF] [bgcolor=#008000]
+        LayoutBlockFlow {H1} at (8,8) size 176x22
+          LayoutText {#text} at (0,0) size 82x22
+            text run at (0,0) width 82: "Top menu"
+        LayoutBlockFlow {UL} at (24,33.19) size 155.20x72
+          LayoutListItem {LI} at (0,0) size 155.20x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 36x18
+              text run at (0,0) width 36: "green"
+          LayoutListItem {LI} at (0,18) size 155.20x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 64x18
+              text run at (0,0) width 64: "white text"
+          LayoutListItem {LI} at (0,36) size 155.20x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 96x18
+              text run at (0,0) width 96: "0.5em padding"
+          LayoutListItem {LI} at (0,54) size 155.20x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 89x18
+              text run at (0,0) width 89: "0.5em margin"
+      LayoutBlockFlow (floating) {DIV} at (0,315.38) size 192x116.38 [color=#FFFFFF] [bgcolor=#0000FF]
+        LayoutBlockFlow {H1} at (8,8) size 176x22
+          LayoutText {#text} at (0,0) size 112x22
+            text run at (0,0) width 112: "Bottom menu"
+        LayoutBlockFlow {UL} at (24,33.19) size 155.20x72
+          LayoutListItem {LI} at (0,0) size 155.20x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 108x18
+              text run at (0,0) width 108: "blue background"
+          LayoutListItem {LI} at (0,18) size 155.20x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 64x18
+              text run at (0,0) width 64: "white text"
+          LayoutListItem {LI} at (0,36) size 155.20x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 96x18
+              text run at (0,0) width 96: "0.5em padding"
+          LayoutListItem {LI} at (0,54) size 155.20x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 89x18
+              text run at (0,0) width 89: "0.5em margin"
+      LayoutBlockFlow {DIV} at (224,189) size 528x221.88 [bgcolor=#FFFF00]
+        LayoutBlockFlow {H1} at (8,29.44) size 512x37
+          LayoutText {#text} at (0,0) size 275x37
+            text run at (0,0) width 275: "The 'clear' property"
+        LayoutBlockFlow {P} at (8,87.88) size 512x90
+          LayoutText {#text} at (0,0) size 512x90
+            text run at (0,0) width 512: "This page has two floating \"menus\" on the side; one has a green background,"
+            text run at (0,18) width 238: "and the other a blue background. "
+            text run at (237,18) width 275: "Due to settings on the 'float' and 'clear'"
+            text run at (0,36) width 512: "properties, the two menus should appear on the left side of the page, the blue"
+            text run at (0,54) width 512: "below the green. There should be a 10px gap between the two menus. There"
+            text run at (0,72) width 465: "should also be a 10px gap between the top menu and the top of the page."
+        LayoutBlockFlow {P} at (8,177.88) size 512x36
+          LayoutText {#text} at (0,0) size 512x36
+            text run at (0,0) width 512: "The top of the yellow rectangle (to which this paragraph belongs) should be"
+            text run at (0,18) width 339: "vertically aligned with the top of the green rectangle."
+      LayoutTable {TABLE} at (192,410.88) size 592x348 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 590x346
+          LayoutTableRow {TR} at (0,0) size 590x26
+            LayoutTableCell {TD} at (0,0) size 590x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 590x320
+            LayoutTableCell {TD} at (0,173) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 578x319.88 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (floating) {DIV} at (4,4) size 192x116.38 [color=#FFFFFF] [bgcolor=#008000]
+                LayoutBlockFlow {H1} at (8,8) size 176x22
+                  LayoutText {#text} at (0,0) size 82x22
+                    text run at (0,0) width 82: "Top menu"
+                LayoutBlockFlow {UL} at (24,33.19) size 155.20x72
+                  LayoutListItem {LI} at (0,0) size 155.20x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 36x18
+                      text run at (0,0) width 36: "green"
+                  LayoutListItem {LI} at (0,18) size 155.20x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 64x18
+                      text run at (0,0) width 64: "white text"
+                  LayoutListItem {LI} at (0,36) size 155.20x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 96x18
+                      text run at (0,0) width 96: "0.5em padding"
+                  LayoutListItem {LI} at (0,54) size 155.20x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 89x18
+                      text run at (0,0) width 89: "0.5em margin"
+              LayoutBlockFlow (floating) {DIV} at (4,130.38) size 192x116.38 [color=#FFFFFF] [bgcolor=#0000FF]
+                LayoutBlockFlow {H1} at (8,8) size 176x22
+                  LayoutText {#text} at (0,0) size 112x22
+                    text run at (0,0) width 112: "Bottom menu"
+                LayoutBlockFlow {UL} at (24,33.19) size 155.20x72
+                  LayoutListItem {LI} at (0,0) size 155.20x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 108x18
+                      text run at (0,0) width 108: "blue background"
+                  LayoutListItem {LI} at (0,18) size 155.20x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 64x18
+                      text run at (0,0) width 64: "white text"
+                  LayoutListItem {LI} at (0,36) size 155.20x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 96x18
+                      text run at (0,0) width 96: "0.5em padding"
+                  LayoutListItem {LI} at (0,54) size 155.20x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 89x18
+                      text run at (0,0) width 89: "0.5em margin"
+              LayoutBlockFlow {DIV} at (228,4) size 314x311.88 [bgcolor=#FFFF00]
+                LayoutBlockFlow {H1} at (8,29.44) size 298x37
+                  LayoutText {#text} at (0,0) size 275x37
+                    text run at (0,0) width 275: "The 'clear' property"
+                LayoutBlockFlow {P} at (8,87.88) size 298x162
+                  LayoutText {#text} at (0,0) size 298x162
+                    text run at (0,0) width 298: "This page has two floating \"menus\" on the"
+                    text run at (0,18) width 298: "side; one has a green background, and the"
+                    text run at (0,36) width 174: "other a blue background. "
+                    text run at (173,36) width 125: "Due to settings on"
+                    text run at (0,54) width 298: "the 'float' and 'clear' properties, the two menus"
+                    text run at (0,72) width 298: "should appear on the left side of the page, the"
+                    text run at (0,90) width 298: "blue below the green. There should be a 10px"
+                    text run at (0,108) width 298: "gap between the two menus. There should"
+                    text run at (0,126) width 298: "also be a 10px gap between the top menu and"
+                    text run at (0,144) width 124: "the top of the page."
+                LayoutBlockFlow {P} at (8,249.88) size 298x54
+                  LayoutText {#text} at (0,0) size 298x54
+                    text run at (0,0) width 298: "The top of the yellow rectangle (to which this"
+                    text run at (0,18) width 298: "paragraph belongs) should be vertically"
+                    text run at (0,36) width 275: "aligned with the top of the green rectangle."
+layer at (8,187) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,179) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/float-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/float-expected.txt
new file mode 100644
index 0000000..20b2779
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/float-expected.txt
@@ -0,0 +1,61 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 157x45
+          text run at (0,0) width 149: ".one {float: left;}"
+          text run at (148,0) width 1: " "
+          text run at (0,15) width 157: ".two {float: right;}"
+          text run at (156,15) width 1: " "
+          text run at (0,30) width 0: " "
+      LayoutImage (floating) {IMG} at (0,102) size 15x50
+      LayoutBlockFlow {P} at (0,110) size 784x36
+        LayoutText {#text} at (15,0) size 736x36
+          text run at (15,0) width 609: "This text should be flowing past a tall orange rectangle on the left side of the browser window. "
+          text run at (623,0) width 128: "In this case, it is the"
+          text run at (15,18) width 259: "image which has been floated to the left."
+      LayoutBlockFlow (anonymous) at (0,162) size 784x18
+        LayoutBR {BR} at (0,0) size 0x18
+      LayoutImage (floating) {IMG} at (769,198) size 15x50
+      LayoutBlockFlow {P} at (0,206) size 784x36
+        LayoutText {#text} at (0,0) size 745x36
+          text run at (0,0) width 618: "This text should be flowing past a tall orange rectangle on the right side of the browser window. "
+          text run at (617,0) width 128: "In this case, it is the"
+          text run at (0,18) width 268: "image which has been floated to the right."
+      LayoutTable {TABLE} at (0,258) size 784x174 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x172
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x146
+            LayoutTableCell {TD} at (0,86) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x146 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutImage (floating) {IMG} at (4,4) size 15x50
+              LayoutBlockFlow {P} at (4,4) size 762x36
+                LayoutText {#text} at (15,0) size 736x36
+                  text run at (15,0) width 609: "This text should be flowing past a tall orange rectangle on the left side of the browser window. "
+                  text run at (623,0) width 128: "In this case, it is the"
+                  text run at (15,18) width 259: "image which has been floated to the left."
+              LayoutBlockFlow (anonymous) at (4,56) size 762x18
+                LayoutBR {BR} at (0,0) size 0x18
+              LayoutImage (floating) {IMG} at (751,92) size 15x50
+              LayoutBlockFlow {P} at (4,100) size 762x36
+                LayoutText {#text} at (0,0) size 745x36
+                  text run at (0,0) width 618: "This text should be flowing past a tall orange rectangle on the right side of the browser window. "
+                  text run at (617,0) width 128: "In this case, it is the"
+                  text run at (0,18) width 268: "image which has been floated to the right."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,196) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,188) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (25,375) size 762x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,82) size 762x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/float_elements_in_series-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/float_elements_in_series-expected.txt
index 65a03971..3f91390 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/float_elements_in_series-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/float_elements_in_series-expected.txt
@@ -32,7 +32,6 @@
           text run at (0,165) width 196: "TABLE {margin: 20px 0px;}"
           text run at (195,165) width 1: " "
           text run at (0,180) width 0: " "
-      LayoutBlockFlow {HR} at (0,239) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,249) size 769x36
         LayoutText {#text} at (0,0) size 769x36
           text run at (0,0) width 769: "The four floating DIV elements below should appear next to each other horizontally. The table at the bottom of this"
@@ -157,6 +156,8 @@
                         LayoutBlockFlow {IMG} at (0,0) size 100x1
                       LayoutTableCell {TD} at (600,9) size 20x1 [bgcolor=#000000] [r=0 c=14 rs=1 cs=1]
                         LayoutBlockFlow {IMG} at (0,0) size 20x1
+layer at (8,247) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,239) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (8,420) size 20x1
   LayoutBlockFlow {SPAN} at (0,0) size 20x1
     LayoutInline {SPAN} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/float_margin-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/float_margin-expected.txt
new file mode 100644
index 0000000..a9d8823
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/float_margin-expected.txt
@@ -0,0 +1,165 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1902
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1902 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1902
+    LayoutBlockFlow {BODY} at (8,8) size 769x1886 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x135
+        LayoutText {#text} at (0,0) size 547x135
+          text run at (0,0) width 336: "P.test {background: white; font-size: 20px;"
+          text run at (335,0) width 1: " "
+          text run at (0,15) width 547: "        margin-left: 30px; margin-right: 10px; padding: 0; border: 0;}"
+          text run at (546,15) width 1: " "
+          text run at (0,30) width 305: "IMG {padding: 0; border: 0; margin: 0;}"
+          text run at (304,30) width 1: " "
+          text run at (0,45) width 196: "P.test IMG {float: left;}"
+          text run at (195,45) width 1: " "
+          text run at (0,60) width 344: "#img2 {margin-top: 30px; margin-left: 30px;}"
+          text run at (343,60) width 1: " "
+          text run at (0,75) width 359: "#img3 {margin-top: -30px; margin-left: -30px;}"
+          text run at (358,75) width 1: " "
+          text run at (0,90) width 375: "#img4 {margin-right: 30px; margin-bottom: 30px;}"
+          text run at (374,90) width 1: " "
+          text run at (0,105) width 391: "#img5 {margin-right: -30px; margin-bottom: -30px;}"
+          text run at (390,105) width 1: " "
+          text run at (0,120) width 0: " "
+      LayoutBlockFlow {P} at (30,204) size 729x92 [bgcolor=#FFFFFF]
+        LayoutText {#text} at (0,0) size 724x92
+          text run at (0,0) width 656: "This paragraph should have a white background which extends to the edges of the"
+          text run at (0,23) width 120: "element's box. "
+          text run at (119,23) width 437: "There is no padding set on this paragraph whatsoever. "
+          text run at (555,23) width 164: "If the background of"
+          text run at (0,46) width 724: "the entire box is not white, this may cause problems with the following tests; at any rate, it"
+          text run at (0,69) width 220: "must be taken into account."
+      LayoutBlockFlow {P} at (30,316) size 729x115 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (0,0) size 60x60
+        LayoutText {#text} at (60,0) size 712x115
+          text run at (60,0) width 626: "The image in the upper left corner of this paragraph should be floated left, and"
+          text run at (60,23) width 118: "nothing more. "
+          text run at (177,23) width 535: "The edges of the white background should line up with the top and"
+          text run at (60,46) width 193: "left edges of the image. "
+          text run at (252,46) width 448: "This paragraph should have a white background, first of"
+          text run at (0,69) width 422: "all, which extends to the edges of the element's box. "
+          text run at (421,69) width 246: "There is no padding set on this"
+          text run at (0,92) width 180: "paragraph whatsoever."
+      LayoutBlockFlow {P} at (30,451) size 729x115 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (30,30) size 60x60
+        LayoutText {#text} at (90,0) size 723x115
+          text run at (90,0) width 608: "The image in the upper left corner of this paragraph should be pushed down"
+          text run at (90,23) width 601: "and to the right 30 pixels each from the upper left corner of the paragraph's"
+          text run at (90,46) width 397: "box, and displace the paragraph text accordingly. "
+          text run at (486,46) width 237: "This paragraph should have a"
+          text run at (90,69) width 628: "white background, first of all, which extends to the edges of the element's box."
+          text run at (0,92) width 431: "There is no padding set on this paragraph whatsoever."
+      LayoutBlockFlow {P} at (30,586) size 729x115 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (-30,-30) size 60x60
+        LayoutText {#text} at (30,0) size 729x115
+          text run at (30,0) width 699: "The image in the upper left corner of this paragraph should be pushed up and to the left"
+          text run at (30,23) width 698: "30 pixels each from the upper left corner of the paragraph's box, thus causing the edges"
+          text run at (0,46) width 573: "of the white background to align with the thick gray lines in the image. "
+          text run at (572,46) width 122: "This paragraph"
+          text run at (0,69) width 703: "should have a white background, first of all, which extends to the edges of the element's"
+          text run at (0,92) width 40: "box. "
+          text run at (40,92) width 431: "There is no padding set on this paragraph whatsoever."
+      LayoutBlockFlow {P} at (30,721) size 729x138 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (0,0) size 60x60
+        LayoutText {#text} at (90,0) size 722x138
+          text run at (90,0) width 626: "The image in the upper left corner of this paragraph should be floated left, and"
+          text run at (90,23) width 632: "the edges of the white background should line up with the top and left edges of"
+          text run at (90,46) width 89: "the image. "
+          text run at (178,46) width 532: "However, there should be 30 pixels of space between the right and"
+          text run at (90,69) width 483: "bottom edges of the image and the paragraph text around it. "
+          text run at (572,69) width 121: "This paragraph"
+          text run at (0,92) width 703: "should have a white background, first of all, which extends to the edges of the element's"
+          text run at (0,115) width 40: "box. "
+          text run at (40,115) width 431: "There is no padding set on this paragraph whatsoever."
+      LayoutBlockFlow {P} at (30,879) size 729x138 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (0,0) size 60x60
+        LayoutText {#text} at (30,0) size 722x138
+          text run at (30,0) width 656: "The image in the upper left corner of this paragraph should be floated left, and the"
+          text run at (30,23) width 691: "edges of the white background should line up with the top and left edges of the image."
+          text run at (0,46) width 695: "However, the text should overlap the image's right and bottom sides, lining up with the"
+          text run at (0,69) width 238: "thick gray lines in the image. "
+          text run at (237,69) width 478: "This paragraph should have a white background, first of all,"
+          text run at (0,92) width 392: "which extends to the edges of the element's box. "
+          text run at (391,92) width 331: "There is no padding set on this paragraph"
+          text run at (0,115) width 95: "whatsoever."
+      LayoutTable {TABLE} at (0,1037) size 769x849 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x847
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x821
+            LayoutTableCell {TD} at (0,423) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x821 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (34,4) size 707x92 [bgcolor=#FFFFFF]
+                LayoutText {#text} at (0,0) size 698x92
+                  text run at (0,0) width 656: "This paragraph should have a white background which extends to the edges of the"
+                  text run at (0,23) width 120: "element's box. "
+                  text run at (119,23) width 437: "There is no padding set on this paragraph whatsoever. "
+                  text run at (555,23) width 143: "If the background"
+                  text run at (0,46) width 690: "of the entire box is not white, this may cause problems with the following tests; at any"
+                  text run at (0,69) width 276: "rate, it must be taken into account."
+              LayoutBlockFlow {P} at (34,116) size 707x115 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (0,0) size 60x60
+                LayoutText {#text} at (60,0) size 691x115
+                  text run at (60,0) width 626: "The image in the upper left corner of this paragraph should be floated left, and"
+                  text run at (60,23) width 118: "nothing more. "
+                  text run at (177,23) width 501: "The edges of the white background should line up with the top"
+                  text run at (60,46) width 227: "and left edges of the image. "
+                  text run at (286,46) width 390: "This paragraph should have a white background,"
+                  text run at (0,69) width 480: "first of all, which extends to the edges of the element's box. "
+                  text run at (479,69) width 212: "There is no padding set on"
+                  text run at (0,92) width 214: "this paragraph whatsoever."
+              LayoutBlockFlow {P} at (34,251) size 707x115 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (30,30) size 60x60
+                LayoutText {#text} at (90,0) size 698x115
+                  text run at (90,0) width 608: "The image in the upper left corner of this paragraph should be pushed down"
+                  text run at (90,23) width 601: "and to the right 30 pixels each from the upper left corner of the paragraph's"
+                  text run at (90,46) width 397: "box, and displace the paragraph text accordingly. "
+                  text run at (486,46) width 180: "This paragraph should"
+                  text run at (90,69) width 565: "have a white background, first of all, which extends to the edges of the"
+                  text run at (0,92) width 120: "element's box. "
+                  text run at (119,92) width 432: "There is no padding set on this paragraph whatsoever."
+              LayoutBlockFlow {P} at (34,386) size 707x115 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (-30,-30) size 60x60
+                LayoutText {#text} at (30,0) size 697x115
+                  text run at (30,0) width 667: "The image in the upper left corner of this paragraph should be pushed up and to the"
+                  text run at (30,23) width 650: "left 30 pixels each from the upper left corner of the paragraph's box, thus causing"
+                  text run at (0,46) width 653: "the edges of the white background to align with the thick gray lines in the image. "
+                  text run at (652,46) width 37: "This"
+                  text run at (0,69) width 679: "paragraph should have a white background, first of all, which extends to the edges of"
+                  text run at (0,92) width 150: "the element's box. "
+                  text run at (149,92) width 431: "There is no padding set on this paragraph whatsoever."
+              LayoutBlockFlow {P} at (34,521) size 707x138 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (0,0) size 60x60
+                LayoutText {#text} at (90,0) size 706x138
+                  text run at (90,0) width 593: "The image in the upper left corner of this paragraph should be floated left,"
+                  text run at (90,23) width 594: "and the edges of the white background should line up with the top and left"
+                  text run at (90,46) width 161: "edges of the image. "
+                  text run at (250,46) width 456: "However, there should be 30 pixels of space between the"
+                  text run at (90,69) width 559: "right and bottom edges of the image and the paragraph text around it. "
+                  text run at (648,69) width 37: "This"
+                  text run at (0,92) width 679: "paragraph should have a white background, first of all, which extends to the edges of"
+                  text run at (0,115) width 150: "the element's box. "
+                  text run at (149,115) width 431: "There is no padding set on this paragraph whatsoever."
+              LayoutBlockFlow {P} at (34,679) size 707x138 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (0,0) size 60x60
+                LayoutText {#text} at (30,0) size 697x138
+                  text run at (30,0) width 656: "The image in the upper left corner of this paragraph should be floated left, and the"
+                  text run at (30,23) width 632: "edges of the white background should line up with the top and left edges of the"
+                  text run at (0,46) width 59: "image. "
+                  text run at (58,46) width 626: "However, the text should overlap the image's right and bottom sides, lining up"
+                  text run at (0,69) width 308: "with the thick gray lines in the image. "
+                  text run at (307,69) width 390: "This paragraph should have a white background,"
+                  text run at (0,92) width 480: "first of all, which extends to the edges of the element's box. "
+                  text run at (479,92) width 212: "There is no padding set on"
+                  text run at (0,115) width 214: "this paragraph whatsoever."
+layer at (8,190) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,182) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/float_on_text_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/float_on_text_elements-expected.txt
new file mode 100644
index 0000000..0d664fd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/float_on_text_elements-expected.txt
@@ -0,0 +1,377 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2786
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2786 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2786
+    LayoutBlockFlow {BODY} at (8,8) size 769x2770 [bgcolor=#CCCCCC]
+      LayoutBlockFlow (floating) {P} at (0,0) size 384.50x36 [bgcolor=#FFFF00]
+        LayoutText {#text} at (0,0) size 385x36
+          text run at (0,0) width 385: "This paragraph is of class \"one\". It has a width of 50% and"
+          text run at (0,18) width 128: "is floated to the left."
+      LayoutBlockFlow {P} at (0,0) size 769x90
+        LayoutText {#text} at (384,0) size 769x90
+          text run at (384,0) width 385: "This paragraph should start on the right side of a yellow"
+          text run at (384,18) width 385: "box which contains the previous paragraph. Since the text"
+          text run at (0,36) width 769: "of this element is much longer than the text in the previous element, the text will wrap around the yellow box. There is"
+          text run at (0,54) width 769: "no padding, border or margins on this and the previous element, so the text of the two elements should be very close to"
+          text run at (0,72) width 70: "each other."
+      LayoutBlockFlow (anonymous) at (0,90) size 769x18
+        LayoutBR {BR} at (0,0) size 0x18
+      LayoutBlockFlow (anonymous) at (0,126) size 769x91
+        LayoutBlockFlow (floating) {P} at (0,0) size 769x72 [bgcolor=#FFFF00]
+          LayoutText {#text} at (0,0) size 769x72
+            text run at (0,0) width 769: "This paragraph is of class \"two\". Since the width has been set to 100%, it should automatically be as wide as its parent"
+            text run at (0,18) width 769: "element allows it to be. Therefore, even though the element is floated, there is no room for other content on the sides"
+            text run at (0,36) width 769: "and a orange square image should be seen AFTER the paragraph, not next to it. A yellow background has been added"
+            text run at (0,54) width 265: "to this paragraph for diagnostic purposes."
+        LayoutImage {IMG} at (0,72) size 15x15
+        LayoutText {#text} at (15,73) size 4x18
+          text run at (15,73) width 4: " "
+        LayoutBR {BR} at (19,87) size 0x0
+      LayoutBlockFlow (anonymous) at (0,235) size 769x108
+        LayoutBlockFlow (floating) {P} at (0,0) size 384.50x108 [bgcolor=#FFFF00]
+          LayoutText {#text} at (0,0) size 385x108
+            text run at (0,0) width 384: "This paragraph is floated to the left and the orange square"
+            text run at (0,18) width 384: "image should appear to the right of the paragraph. This"
+            text run at (0,36) width 385: "paragraph has a yellow background and no padding, margin"
+            text run at (0,54) width 385: "or border. The right edge of this yellow box should be"
+            text run at (0,72) width 385: "horizontally aligned with the left edge of the yellow box"
+            text run at (0,90) width 81: "undernearth."
+        LayoutImage {IMG} at (384.50,0) size 15x15
+        LayoutText {#text} at (399,1) size 5x18
+          text run at (399,1) width 5: " "
+        LayoutBR {BR} at (403,15) size 1x0
+      LayoutBlockFlow (anonymous) at (0,361) size 769x108
+        LayoutBlockFlow (floating) {P} at (384.50,0) size 384.50x108 [bgcolor=#FFFF00]
+          LayoutText {#text} at (0,0) size 385x108
+            text run at (0,0) width 384: "This paragraph is floated to the right (using a STYLE"
+            text run at (0,18) width 384: "attribute) and the orange square image should appear to the"
+            text run at (0,36) width 384: "left of the paragraph. This paragraph has a yellow"
+            text run at (0,54) width 384: "background and no padding, margin or border. The left"
+            text run at (0,72) width 385: "edge of this yellow box should be horizonally aligned with"
+            text run at (0,90) width 251: "the right edge of the yellow box above."
+        LayoutImage {IMG} at (0,0) size 15x15
+        LayoutText {#text} at (15,1) size 4x18
+          text run at (15,1) width 4: " "
+        LayoutBR {BR} at (19,15) size 0x0
+      LayoutBlockFlow {P} at (0,487) size 769x72
+        LayoutBlockFlow (floating) {SPAN} at (0,0) size 48x37 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 22x37
+            text run at (0,0) width 22: "T"
+        LayoutText {#text} at (48,0) size 769x72
+          text run at (48,0) width 721: "he first letter (a \"T\") of this paragraph should float left and be twice the font-size of the rest of the paragraph, as"
+          text run at (48,18) width 529: "well as bold, with a content width of 1.5em and a background-color of silver. "
+          text run at (576,18) width 193: "The top of the big letter \"T\""
+          text run at (48,36) width 721: "should be vertically aligned with the top of the first line of this paragraph. This is commonly known as \"drop-"
+          text run at (0,54) width 33: "cap\"."
+      LayoutBlockFlow (anonymous) at (0,559) size 769x18
+        LayoutBR {BR} at (0,0) size 0x18
+      LayoutBlockFlow (floating) {P} at (423,605) size 336x214 [bgcolor=#FFFF00] [border: (3px solid #FF0000)]
+        LayoutText {#text} at (8,8) size 320x198
+          text run at (8,8) width 320: "This paragraph should be floated to the right, sort"
+          text run at (8,26) width 320: "of like a 'sidebar' in a magazine article. Its width"
+          text run at (8,44) width 320: "is 20em so the box should not be reformatted"
+          text run at (8,62) width 320: "when the size of the viewport is changed (e.g."
+          text run at (8,80) width 320: "when the window is resized). The background"
+          text run at (8,98) width 320: "color of the element is yellow, and there should"
+          text run at (8,116) width 320: "be a 3px solid red border outside a 5px wide"
+          text run at (8,134) width 320: "padding. Also, the element has a 10px wide"
+          text run at (8,152) width 320: "margin around it where the blue background of"
+          text run at (8,170) width 320: "the paragraph in the normal flow should shine"
+          text run at (8,188) width 54: "through."
+      LayoutBlockFlow {P} at (0,595) size 769x216 [bgcolor=#66CCFF]
+        LayoutText {#text} at (0,0) size 413x216
+          text run at (0,0) width 413: "This paragraph is not floating. If there is enough room, the"
+          text run at (0,18) width 413: "textual content of the paragraph should appear on the left side of"
+          text run at (0,36) width 230: "the yellow \"sidebar\" on the right. "
+          text run at (229,36) width 184: "The content of this element"
+          text run at (0,54) width 274: "should flow around the floated element. "
+          text run at (273,54) width 140: "However, the floated"
+          text run at (0,72) width 413: "element may or may not be obscured by the blue background of"
+          text run at (0,90) width 413: "this element, as the specification does not say which is drawn"
+          text run at (0,108) width 64: "\"on top.\" "
+          text run at (63,108) width 350: "Even if the floated element is obscured, it still forces"
+          text run at (0,126) width 323: "the content of this element to flow around it. "
+          text run at (322,126) width 91: "If the floated"
+          text run at (0,144) width 413: "element is not obscured, then the blue rectangle of this"
+          text run at (0,162) width 413: "paragraph should extend 10px above and to the right of the"
+          text run at (0,180) width 413: "sidebar's red border, due to the margin styles set for the floated"
+          text run at (0,198) width 55: "element."
+      LayoutBlockFlow (anonymous) at (0,811) size 769x18
+        LayoutBR {BR} at (0,0) size 0x18
+      LayoutBlockFlow {DIV} at (0,847) size 769x26 [bgcolor=#66CCFF] [border: (4px solid #FF0000)]
+        LayoutBlockFlow (floating) {DIV} at (425,14) size 330x244 [bgcolor=#FFFF00]
+          LayoutBlockFlow {P} at (5,5) size 320x234
+            LayoutText {#text} at (0,0) size 320x234
+              text run at (0,0) width 320: "This paragraph is placed inside a DIV element"
+              text run at (0,18) width 320: "which is floated to the right. The width of the"
+              text run at (0,36) width 320: "DIV element is 20em. The background is yellow"
+              text run at (0,54) width 320: "and there is a 5px padding, a 10px margin and no"
+              text run at (0,72) width 320: "border. Since it is floated, the yellow box should"
+              text run at (0,90) width 320: "be rendered on top of the background and borders"
+              text run at (0,108) width 320: "of adjacent non-floated elements. To the left of"
+              text run at (0,126) width 320: "this yellow box there should be a short paragraph"
+              text run at (0,144) width 320: "with a blue background and a red border. The"
+              text run at (0,162) width 320: "yellow box should be rendered on top of the"
+              text run at (0,180) width 320: "bottom red border. I.e., the bottom red border will"
+              text run at (0,198) width 320: "appear broken where it's overlaid by the yellow"
+              text run at (0,216) width 63: "rectangle."
+        LayoutBlockFlow {P} at (4,4) size 761x18
+          LayoutText {#text} at (0,0) size 274x18
+            text run at (0,0) width 274: "See description in the box on the right side"
+      LayoutBlockFlow (anonymous) at (0,873) size 769x242
+        LayoutBR {BR} at (0,0) size 0x18
+      LayoutBlockFlow (floating) {DIV} at (0,1133) size 192.25x72 [bgcolor=#66CCFF]
+        LayoutBlockFlow {P} at (0,0) size 192.25x72
+          LayoutText {#text} at (0,0) size 193x72
+            text run at (0,0) width 192: "This paragraph is inside a"
+            text run at (0,18) width 193: "DIV which is floated left. Its"
+            text run at (0,36) width 192: "background is blue and the"
+            text run at (0,54) width 89: "width is 25%."
+      LayoutBlockFlow (floating) {DIV} at (576.75,1133) size 192.25x72 [bgcolor=#FFFF00]
+        LayoutBlockFlow {P} at (0,0) size 192.25x72
+          LayoutText {#text} at (0,0) size 192x72
+            text run at (0,0) width 192: "This paragraph is inside a"
+            text run at (0,18) width 192: "DIV which is floated right. Its"
+            text run at (0,36) width 192: "background is yellow and the"
+            text run at (0,54) width 89: "width is 25%."
+      LayoutBlockFlow {P} at (0,1133) size 769x36
+        LayoutText {#text} at (192,0) size 384x36
+          text run at (192,0) width 384: "This paragraph should appear between a blue box (on the"
+          text run at (192,18) width 31: "left) "
+          text run at (222,18) width 204: "and a yellow box (on the right)."
+      LayoutBlockFlow (anonymous) at (0,1169) size 769x36
+        LayoutBR {BR} at (192,0) size 1x18
+      LayoutBlockFlow (anonymous) at (0,1223) size 769x126
+        LayoutBlockFlow (floating) {DIV} at (0,0) size 576.75x126 [bgcolor=#66CCFF]
+          LayoutBlockFlow (floating) {DIV} at (422.56,0) size 144.19x36 [bgcolor=#FFFF00]
+            LayoutBlockFlow {P} at (0,0) size 144.19x36
+              LayoutText {#text} at (0,0) size 145x36
+                text run at (0,0) width 145: "See description in the"
+                text run at (0,18) width 127: "box on the left side."
+          LayoutBlockFlow {P} at (0,0) size 576.75x126
+            LayoutText {#text} at (0,0) size 577x126
+              text run at (0,0) width 423: "This paragraph is inside a DIV which is floated left. The"
+              text run at (0,18) width 422: "background of the DIV element is blue and its width is 75%. This"
+              text run at (0,36) width 407: "text should all be inside the blue rectangle. The blue DIV "
+              text run at (406,36) width 170: "element has another DIV"
+              text run at (0,54) width 224: "element as a child. It has a yellow "
+              text run at (223,54) width 353: "background color and is floated to the right. Since it is"
+              text run at (0,72) width 12: "a "
+              text run at (11,72) width 410: "child of the blue DIV, the yellow DIV should appear inside the "
+              text run at (420,72) width 157: "blue rectangle. Due to it"
+              text run at (0,90) width 236: "being floated to the right and having "
+              text run at (235,90) width 342: "a 10px right margin, the yellow rectange should have"
+              text run at (0,108) width 79: "a 10px blue "
+              text run at (78,108) width 144: "stripe on its right side."
+        LayoutBR {BR} at (576,0) size 1x18
+      LayoutTable {TABLE} at (0,1367) size 769x1403 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1401
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x1375
+            LayoutTableCell {TD} at (0,700) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x1375 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (floating) {P} at (4,4) size 373.50x36 [bgcolor=#FFFF00]
+                LayoutText {#text} at (0,0) size 373x36
+                  text run at (0,0) width 373: "This paragraph is of class \"one\". It has a width of 50%"
+                  text run at (0,18) width 155: "and is floated to the left."
+              LayoutBlockFlow {P} at (4,4) size 747x90
+                LayoutText {#text} at (373,0) size 747x90
+                  text run at (373,0) width 374: "This paragraph should start on the right side of a yellow"
+                  text run at (373,18) width 374: "box which contains the previous paragraph. Since the text"
+                  text run at (0,36) width 747: "of this element is much longer than the text in the previous element, the text will wrap around the yellow box. There"
+                  text run at (0,54) width 747: "is no padding, border or margins on this and the previous element, so the text of the two elements should be very"
+                  text run at (0,72) width 123: "close to each other."
+              LayoutBlockFlow (anonymous) at (4,94) size 747x18
+                LayoutBR {BR} at (0,0) size 0x18
+              LayoutBlockFlow (anonymous) at (4,130) size 747x91
+                LayoutBlockFlow (floating) {P} at (0,0) size 747x72 [bgcolor=#FFFF00]
+                  LayoutText {#text} at (0,0) size 747x72
+                    text run at (0,0) width 747: "This paragraph is of class \"two\". Since the width has been set to 100%, it should automatically be as wide as its"
+                    text run at (0,18) width 747: "parent element allows it to be. Therefore, even though the element is floated, there is no room for other content on"
+                    text run at (0,36) width 747: "the sides and a orange square image should be seen AFTER the paragraph, not next to it. A yellow background has"
+                    text run at (0,54) width 342: "been added to this paragraph for diagnostic purposes."
+                LayoutImage {IMG} at (0,72) size 15x15
+                LayoutText {#text} at (15,73) size 4x18
+                  text run at (15,73) width 4: " "
+                LayoutBR {BR} at (19,87) size 0x0
+              LayoutBlockFlow (anonymous) at (4,239) size 747x108
+                LayoutBlockFlow (floating) {P} at (0,0) size 373.50x108 [bgcolor=#FFFF00]
+                  LayoutText {#text} at (0,0) size 374x108
+                    text run at (0,0) width 373: "This paragraph is floated to the left and the orange square"
+                    text run at (0,18) width 373: "image should appear to the right of the paragraph. This"
+                    text run at (0,36) width 374: "paragraph has a yellow background and no padding,"
+                    text run at (0,54) width 373: "margin or border. The right edge of this yellow box"
+                    text run at (0,72) width 373: "should be horizontally aligned with the left edge of the"
+                    text run at (0,90) width 156: "yellow box undernearth."
+                LayoutImage {IMG} at (373.50,0) size 15x15
+                LayoutText {#text} at (388,1) size 5x18
+                  text run at (388,1) width 5: " "
+                LayoutBR {BR} at (392,15) size 1x0
+              LayoutBlockFlow (anonymous) at (4,365) size 747x108
+                LayoutBlockFlow (floating) {P} at (373.50,0) size 373.50x108 [bgcolor=#FFFF00]
+                  LayoutText {#text} at (0,0) size 374x108
+                    text run at (0,0) width 373: "This paragraph is floated to the right (using a STYLE"
+                    text run at (0,18) width 374: "attribute) and the orange square image should appear to"
+                    text run at (0,36) width 374: "the left of the paragraph. This paragraph has a yellow"
+                    text run at (0,54) width 373: "background and no padding, margin or border. The left"
+                    text run at (0,72) width 373: "edge of this yellow box should be horizonally aligned"
+                    text run at (0,90) width 284: "with the right edge of the yellow box above."
+                LayoutImage {IMG} at (0,0) size 15x15
+                LayoutText {#text} at (15,1) size 4x18
+                  text run at (15,1) width 4: " "
+                LayoutBR {BR} at (19,15) size 0x0
+              LayoutBlockFlow {P} at (4,491) size 747x72
+                LayoutBlockFlow (floating) {SPAN} at (0,0) size 48x37 [bgcolor=#C0C0C0]
+                  LayoutText {#text} at (0,0) size 22x37
+                    text run at (0,0) width 22: "T"
+                LayoutText {#text} at (48,0) size 747x72
+                  text run at (48,0) width 699: "he first letter (a \"T\") of this paragraph should float left and be twice the font-size of the rest of the paragraph,"
+                  text run at (48,18) width 519: "as well as bold, with a content width of 1.5em and a background-color of silver. "
+                  text run at (566,18) width 181: "The top of the big letter \"T\""
+                  text run at (48,36) width 699: "should be vertically aligned with the top of the first line of this paragraph. This is commonly known as"
+                  text run at (0,54) width 74: "\"drop-cap\"."
+              LayoutBlockFlow (anonymous) at (4,563) size 747x18
+                LayoutBR {BR} at (0,0) size 0x18
+              LayoutBlockFlow (floating) {P} at (405,609) size 336x214 [bgcolor=#FFFF00] [border: (3px solid #FF0000)]
+                LayoutText {#text} at (8,8) size 320x198
+                  text run at (8,8) width 320: "This paragraph should be floated to the right, sort"
+                  text run at (8,26) width 320: "of like a 'sidebar' in a magazine article. Its width"
+                  text run at (8,44) width 320: "is 20em so the box should not be reformatted"
+                  text run at (8,62) width 320: "when the size of the viewport is changed (e.g."
+                  text run at (8,80) width 320: "when the window is resized). The background"
+                  text run at (8,98) width 320: "color of the element is yellow, and there should"
+                  text run at (8,116) width 320: "be a 3px solid red border outside a 5px wide"
+                  text run at (8,134) width 320: "padding. Also, the element has a 10px wide"
+                  text run at (8,152) width 320: "margin around it where the blue background of"
+                  text run at (8,170) width 320: "the paragraph in the normal flow should shine"
+                  text run at (8,188) width 54: "through."
+              LayoutBlockFlow {P} at (4,599) size 747x216 [bgcolor=#66CCFF]
+                LayoutText {#text} at (0,0) size 391x216
+                  text run at (0,0) width 391: "This paragraph is not floating. If there is enough room, the"
+                  text run at (0,18) width 391: "textual content of the paragraph should appear on the left"
+                  text run at (0,36) width 269: "side of the yellow \"sidebar\" on the right. "
+                  text run at (268,36) width 123: "The content of this"
+                  text run at (0,54) width 329: "element should flow around the floated element. "
+                  text run at (328,54) width 63: "However,"
+                  text run at (0,72) width 391: "the floated element may or may not be obscured by the blue"
+                  text run at (0,90) width 391: "background of this element, as the specification does not say"
+                  text run at (0,108) width 184: "which is drawn \"on top.\" "
+                  text run at (183,108) width 208: "Even if the floated element is"
+                  text run at (0,126) width 391: "obscured, it still forces the content of this element to flow"
+                  text run at (0,144) width 71: "around it. "
+                  text run at (70,144) width 321: "If the floated element is not obscured, then the"
+                  text run at (0,162) width 391: "blue rectangle of this paragraph should extend 10px above"
+                  text run at (0,180) width 391: "and to the right of the sidebar's red border, due to the margin"
+                  text run at (0,198) width 211: "styles set for the floated element."
+              LayoutBlockFlow (anonymous) at (4,815) size 747x18
+                LayoutBR {BR} at (0,0) size 0x18
+              LayoutBlockFlow {DIV} at (4,851) size 747x26 [bgcolor=#66CCFF] [border: (4px solid #FF0000)]
+                LayoutBlockFlow (floating) {DIV} at (403,14) size 330x244 [bgcolor=#FFFF00]
+                  LayoutBlockFlow {P} at (5,5) size 320x234
+                    LayoutText {#text} at (0,0) size 320x234
+                      text run at (0,0) width 320: "This paragraph is placed inside a DIV element"
+                      text run at (0,18) width 320: "which is floated to the right. The width of the"
+                      text run at (0,36) width 320: "DIV element is 20em. The background is yellow"
+                      text run at (0,54) width 320: "and there is a 5px padding, a 10px margin and no"
+                      text run at (0,72) width 320: "border. Since it is floated, the yellow box should"
+                      text run at (0,90) width 320: "be rendered on top of the background and borders"
+                      text run at (0,108) width 320: "of adjacent non-floated elements. To the left of"
+                      text run at (0,126) width 320: "this yellow box there should be a short paragraph"
+                      text run at (0,144) width 320: "with a blue background and a red border. The"
+                      text run at (0,162) width 320: "yellow box should be rendered on top of the"
+                      text run at (0,180) width 320: "bottom red border. I.e., the bottom red border will"
+                      text run at (0,198) width 320: "appear broken where it's overlaid by the yellow"
+                      text run at (0,216) width 63: "rectangle."
+                LayoutBlockFlow {P} at (4,4) size 739x18
+                  LayoutText {#text} at (0,0) size 274x18
+                    text run at (0,0) width 274: "See description in the box on the right side"
+              LayoutBlockFlow (anonymous) at (4,877) size 747x242
+                LayoutBR {BR} at (0,0) size 0x18
+              LayoutBlockFlow (floating) {DIV} at (4,1137) size 186.75x72 [bgcolor=#66CCFF]
+                LayoutBlockFlow {P} at (0,0) size 186.75x72
+                  LayoutText {#text} at (0,0) size 187x72
+                    text run at (0,0) width 187: "This paragraph is inside a"
+                    text run at (0,18) width 187: "DIV which is floated left. Its"
+                    text run at (0,36) width 187: "background is blue and the"
+                    text run at (0,54) width 89: "width is 25%."
+              LayoutBlockFlow (floating) {DIV} at (564.25,1137) size 186.75x72 [bgcolor=#FFFF00]
+                LayoutBlockFlow {P} at (0,0) size 186.75x72
+                  LayoutText {#text} at (0,0) size 187x72
+                    text run at (0,0) width 187: "This paragraph is inside a"
+                    text run at (0,18) width 186: "DIV which is floated right."
+                    text run at (0,36) width 20: "Its "
+                    text run at (20,36) width 166: "background is yellow and"
+                    text run at (0,54) width 112: "the width is 25%."
+              LayoutBlockFlow {P} at (4,1137) size 747x36
+                LayoutText {#text} at (186,0) size 374x36
+                  text run at (186,0) width 374: "This paragraph should appear between a blue box (on the"
+                  text run at (186,18) width 32: "left) "
+                  text run at (217,18) width 203: "and a yellow box (on the right)."
+              LayoutBlockFlow (anonymous) at (4,1173) size 747x36
+                LayoutBR {BR} at (186,0) size 1x18
+              LayoutBlockFlow (anonymous) at (4,1227) size 747x126
+                LayoutBlockFlow (floating) {DIV} at (0,0) size 560.25x126 [bgcolor=#66CCFF]
+                  LayoutBlockFlow (floating) {DIV} at (410.19,0) size 140.06x36 [bgcolor=#FFFF00]
+                    LayoutBlockFlow {P} at (0,0) size 140.06x36
+                      LayoutText {#text} at (0,0) size 140x36
+                        text run at (0,0) width 140: "See description in the"
+                        text run at (0,18) width 127: "box on the left side."
+                  LayoutBlockFlow {P} at (0,0) size 560.25x126
+                    LayoutText {#text} at (0,0) size 561x126
+                      text run at (0,0) width 410: "This paragraph is inside a DIV which is floated left. The"
+                      text run at (0,18) width 410: "background of the DIV element is blue and its width is 75%."
+                      text run at (0,36) width 35: "This "
+                      text run at (34,36) width 394: "text should all be inside the blue rectangle. The blue DIV "
+                      text run at (427,36) width 133: "element has another"
+                      text run at (0,54) width 269: "DIV element as a child. It has a yellow "
+                      text run at (268,54) width 293: "background color and is floated to the right."
+                      text run at (0,72) width 91: "Since it is a "
+                      text run at (90,72) width 443: "child of the blue DIV, the yellow DIV should appear inside the "
+                      text run at (532,72) width 29: "blue"
+                      text run at (0,90) width 395: "rectangle. Due to it being floated to the right and having "
+                      text run at (394,90) width 166: "a 10px right margin, the"
+                      text run at (0,108) width 266: "yellow rectange should have a 10px blue "
+                      text run at (265,108) width 143: "stripe on its right side."
+                LayoutBR {BR} at (560,0) size 1x18
+layer at (8,124) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,116) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,359) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,351) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,485) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,477) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,593) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,585) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,845) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,837) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1131) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1123) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1221) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1213) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1365) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1357) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (25,1522) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,120) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1631) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,229) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1757) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,355) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1883) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,481) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1991) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,589) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2243) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,841) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2529) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1127) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2619) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1217) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2763) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1361) size 747x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/height-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/height-expected.txt
new file mode 100644
index 0000000..ca57c1c5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/height-expected.txt
@@ -0,0 +1,77 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 974
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x974 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x974
+    LayoutBlockFlow {BODY} at (8,8) size 769x958 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x45
+        LayoutText {#text} at (0,0) size 164x45
+          text run at (0,0) width 157: ".one {height: 50px;}"
+          text run at (156,0) width 1: " "
+          text run at (0,15) width 164: ".two {height: 100px;}"
+          text run at (163,15) width 1: " "
+          text run at (0,30) width 0: " "
+      LayoutBlockFlow (anonymous) at (0,102) size 769x50
+        LayoutImage {IMG} at (0,0) size 50x50
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,168) size 769x18
+        LayoutText {#text} at (0,0) size 280x18
+          text run at (0,0) width 280: "The square above should be fifty pixels tall."
+      LayoutBlockFlow (anonymous) at (0,202) size 769x100
+        LayoutImage {IMG} at (0,0) size 100x100
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,318) size 769x18
+        LayoutText {#text} at (0,0) size 340x18
+          text run at (0,0) width 340: "The square above should be 100 pixels tall and wide."
+      LayoutBlockFlow (anonymous) at (0,352) size 769x100
+        LayoutImage {IMG} at (0,0) size 30x100
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,468) size 769x36
+        LayoutText {#text} at (0,0) size 765x36
+          text run at (0,0) width 765: "The rectangular image above should be 100 pixels tall and 30 pixels wide (the original image is 50x15, and the size has"
+          text run at (0,18) width 152: "been doubled using the "
+        LayoutInline {CODE} at (0,0) size 48x15
+          LayoutText {#text} at (151,20) size 48x15
+            text run at (151,20) width 48: "height"
+        LayoutText {#text} at (198,18) size 69x18
+          text run at (198,18) width 69: " property)."
+      LayoutTable {TABLE} at (0,520) size 769x438 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x436
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x410
+            LayoutTableCell {TD} at (0,218) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x410 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (4,4) size 747x50
+                LayoutImage {IMG} at (0,0) size 50x50
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,70) size 747x18
+                LayoutText {#text} at (0,0) size 280x18
+                  text run at (0,0) width 280: "The square above should be fifty pixels tall."
+              LayoutBlockFlow (anonymous) at (4,104) size 747x100
+                LayoutImage {IMG} at (0,0) size 100x100
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,220) size 747x18
+                LayoutText {#text} at (0,0) size 340x18
+                  text run at (0,0) width 340: "The square above should be 100 pixels tall and wide."
+              LayoutBlockFlow (anonymous) at (4,254) size 747x100
+                LayoutImage {IMG} at (0,0) size 30x100
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,370) size 747x36
+                LayoutText {#text} at (0,0) size 739x36
+                  text run at (0,0) width 739: "The rectangular image above should be 100 pixels tall and 30 pixels wide (the original image is 50x15, and the size"
+                  text run at (0,18) width 178: "has been doubled using the "
+                LayoutInline {CODE} at (0,0) size 48x15
+                  LayoutText {#text} at (177,20) size 48x15
+                    text run at (177,20) width 48: "height"
+                LayoutText {#text} at (224,18) size 68x18
+                  text run at (224,18) width 68: " property)."
+layer at (8,100) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin-expected.txt
new file mode 100644
index 0000000..4e9507b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin-expected.txt
@@ -0,0 +1,167 @@
+layer at (0,0) size 800x600 scrollWidth 802 scrollHeight 2645
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x2645 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x2645
+    LayoutBlockFlow {BODY} at (8,8) size 784x2629 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x105
+        LayoutText {#text} at (0,0) size 352x105
+          text run at (0,0) width 344: ".zero {background-color: silver; margin: 0;}"
+          text run at (343,0) width 1: " "
+          text run at (0,15) width 352: ".one {margin: 0.5in; background-color: aqua;}"
+          text run at (351,15) width 1: " "
+          text run at (0,30) width 344: ".two {margin: 25px; background-color: aqua;}"
+          text run at (343,30) width 1: " "
+          text run at (0,45) width 352: ".three {margin: 5em; background-color: aqua;}"
+          text run at (351,45) width 1: " "
+          text run at (0,60) width 344: ".four {margin: 25%; background-color: aqua;}"
+          text run at (343,60) width 1: " "
+          text run at (0,75) width 164: ".five {margin: 25px;}"
+          text run at (163,75) width 1: " "
+          text run at (0,90) width 352: ".six {margin: -10px; background-color: aqua;}"
+          text run at (351,90) width 1: " "
+      LayoutBlockFlow {P} at (0,170) size 784x36
+        LayoutText {#text} at (0,0) size 752x36
+          text run at (0,0) width 752: "NOTE: The following tests are separated by class-zero paragraphs, so as to prevent margin-collapsing as described in"
+          text run at (0,18) width 252: "section 4.1.1 of the CSS1 specification."
+      LayoutBlockFlow {P} at (0,222) size 784x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (48,288) size 688x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 672x18
+          text run at (0,0) width 672: "This sentence should have an overall margin of half an inch, which will require extra text in order to test."
+      LayoutBlockFlow {P} at (0,354) size 784x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (25,397) size 734x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 655x18
+          text run at (0,0) width 655: "This sentence should have an overall margin of 25 pixels, which will require extra text in order to test."
+      LayoutBlockFlow {P} at (0,440) size 784x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (80,538) size 624x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 598x36
+          text run at (0,0) width 598: "This sentence should have an overall margin of 5 em, which will require extra text in order to"
+          text run at (0,18) width 27: "test."
+      LayoutBlockFlow {P} at (0,654) size 784x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (196,868) size 392x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 386x54
+          text run at (0,0) width 383: "This sentence should have an overall margin of 25%, which"
+          text run at (0,18) width 386: "is calculated with respect to the width of the parent element."
+          text run at (0,36) width 272: "This will require extra text in order to test."
+      LayoutBlockFlow {P} at (0,1118) size 784x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {UL} at (25,1161) size 734x122 [bgcolor=#00FFFF]
+        LayoutListItem {LI} at (40,0) size 694x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 382x18
+            text run at (0,0) width 382: "This list has a margin of 25px, and a light blue background."
+        LayoutListItem {LI} at (40,18) size 694x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 269x18
+            text run at (0,0) width 269: "Therefore, it ought to have such a margin."
+        LayoutListItem {LI} at (65,61) size 644x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 555x18
+            text run at (0,0) width 555: "This list item has a margin of 25px, which should cause it to be offset in some fashion."
+        LayoutListItem {LI} at (40,104) size 694x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 304x18
+            text run at (0,0) width 304: "This list item has no special styles applied to it."
+      LayoutBlockFlow {P} at (0,1308) size 784x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (-10,1316) size 804x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 789x54
+          text run at (0,0) width 772: "This paragraph has an overall margin of -10px, which should make it wider than usual as well as shift it upward and pull"
+          text run at (0,18) width 376: "subsequent text up toward it, and a light blue background. "
+          text run at (375,18) width 394: "In all other respects, however, the element should be normal. "
+          text run at (768,18) width 21: "No"
+          text run at (0,36) width 538: "styles have been applied to it besides the negative margin and the background color."
+      LayoutBlockFlow {P} at (0,1360) size 784x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutTable {TABLE} at (0,1378) size 784x1251 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x1249
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x1223
+            LayoutTableCell {TD} at (0,624) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x1223 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x36
+                LayoutText {#text} at (0,0) size 752x36
+                  text run at (0,0) width 752: "NOTE: The following tests are separated by class-zero paragraphs, so as to prevent margin-collapsing as described in"
+                  text run at (0,18) width 252: "section 4.1.1 of the CSS1 specification."
+              LayoutBlockFlow {P} at (4,56) size 762x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (52,122) size 666x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 642x36
+                  text run at (0,0) width 642: "This sentence should have an overall margin of half an inch, which will require extra text in order to"
+                  text run at (0,18) width 27: "test."
+              LayoutBlockFlow {P} at (4,206) size 762x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (29,249) size 712x18 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 655x18
+                  text run at (0,0) width 655: "This sentence should have an overall margin of 25 pixels, which will require extra text in order to test."
+              LayoutBlockFlow {P} at (4,292) size 762x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (84,390) size 602x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 598x36
+                  text run at (0,0) width 598: "This sentence should have an overall margin of 5 em, which will require extra text in order to"
+                  text run at (0,18) width 27: "test."
+              LayoutBlockFlow {P} at (4,506) size 762x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (194.50,714.50) size 381x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 370x54
+                  text run at (0,0) width 340: "This sentence should have an overall margin of 25%,"
+                  text run at (0,18) width 370: "which is calculated with respect to the width of the parent"
+                  text run at (0,36) width 59: "element. "
+                  text run at (58,36) width 273: "This will require extra text in order to test."
+              LayoutBlockFlow {P} at (4,959) size 762x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {UL} at (29,1002) size 712x122 [bgcolor=#00FFFF]
+                LayoutListItem {LI} at (40,0) size 672x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 382x18
+                    text run at (0,0) width 382: "This list has a margin of 25px, and a light blue background."
+                LayoutListItem {LI} at (40,18) size 672x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 269x18
+                    text run at (0,0) width 269: "Therefore, it ought to have such a margin."
+                LayoutListItem {LI} at (65,61) size 622x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 555x18
+                    text run at (0,0) width 555: "This list item has a margin of 25px, which should cause it to be offset in some fashion."
+                LayoutListItem {LI} at (40,104) size 672x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 304x18
+                    text run at (0,0) width 304: "This list item has no special styles applied to it."
+              LayoutBlockFlow {P} at (4,1149) size 762x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (-6,1157) size 782x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 772x54
+                  text run at (0,0) width 772: "This paragraph has an overall margin of -10px, which should make it wider than usual as well as shift it upward and pull"
+                  text run at (0,18) width 376: "subsequent text up toward it, and a light blue background. "
+                  text run at (375,18) width 390: "In all other respects, however, the element should be normal."
+                  text run at (0,36) width 561: "No styles have been applied to it besides the negative margin and the background color."
+              LayoutBlockFlow {P} at (4,1201) size 762x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+layer at (8,160) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,152) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_bottom-expected.txt
new file mode 100644
index 0000000..3d4946d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_bottom-expected.txt
@@ -0,0 +1,151 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1729
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1729 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1729.25
+    LayoutBlockFlow {BODY} at (8,8) size 769x1713.25 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x135
+        LayoutText {#text} at (0,0) size 406x135
+          text run at (0,0) width 398: ".zero {background-color: silver; margin-bottom: 0;}"
+          text run at (397,0) width 1: " "
+          text run at (0,15) width 406: ".one {margin-bottom: 0.5in; background-color: aqua;}"
+          text run at (405,15) width 1: " "
+          text run at (0,30) width 398: ".two {margin-bottom: 25px; background-color: aqua;}"
+          text run at (397,30) width 1: " "
+          text run at (0,45) width 406: ".three {margin-bottom: 5em; background-color: aqua;}"
+          text run at (405,45) width 1: " "
+          text run at (0,60) width 398: ".four {margin-bottom: 25%; background-color: aqua;}"
+          text run at (397,60) width 1: " "
+          text run at (0,75) width 219: ".five {margin-bottom: 25px;}"
+          text run at (218,75) width 1: " "
+          text run at (0,90) width 406: ".six {margin-bottom: -10px; background-color: aqua;}"
+          text run at (405,90) width 1: " "
+          text run at (0,105) width 172: "P, UL {margin-top: 0;}"
+          text run at (171,105) width 1: " "
+          text run at (0,120) width 0: " "
+      LayoutBlockFlow {P} at (0,192) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,210) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 756x36
+          text run at (0,0) width 756: "This sentence should have a bottom margin of half an inch, which will require extra text in order to make sure that the"
+          text run at (0,18) width 208: "margin isn't applied to each line."
+      LayoutBlockFlow {P} at (0,294) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 739x36
+          text run at (0,0) width 739: "This sentence should have a bottom margin of 25 pixels, which will require extra text in order to make sure that the"
+          text run at (0,18) width 208: "margin isn't applied to each line."
+      LayoutBlockFlow {P} at (0,355) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 761x36
+          text run at (0,0) width 761: "This sentence should have a bottom margin of 5 em, which will require extra text in order to make sure that the margin"
+          text run at (0,18) width 159: "isn't applied to each line."
+      LayoutBlockFlow {P} at (0,471) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 754x36
+          text run at (0,0) width 754: "This element should have a bottom margin of 25%, which will require extra text in order to make sure that the margin"
+          text run at (0,18) width 159: "isn't applied to each line."
+      LayoutBlockFlow {P} at (0,699.25) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,717.25) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 238x18
+          text run at (0,0) width 238: "This element also has a class of zero."
+      LayoutBlockFlow {UL} at (0,735.25) size 769x97 [bgcolor=#00FFFF]
+        LayoutListItem {LI} at (40,0) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 433x18
+            text run at (0,0) width 433: "This list has a margin-bottom of 25px, and a light blue background."
+        LayoutListItem {LI} at (40,18) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 269x18
+            text run at (0,0) width 269: "Therefore, it ought to have such a margin."
+        LayoutListItem {LI} at (40,36) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 604x18
+            text run at (0,0) width 604: "This list item has a bottom margin of 25px, which should cause it to be offset in some fashion."
+        LayoutListItem {LI} at (40,79) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 304x18
+            text run at (0,0) width 304: "This list item has no special styles applied to it."
+      LayoutBlockFlow {P} at (0,857.25) size 769x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 761x54
+          text run at (0,0) width 761: "This paragraph has a bottom margin of -10px, which should cause elements after it to be shifted \"upward\" on the page,"
+          text run at (0,18) width 125: "and no top margin. "
+          text run at (124,18) width 497: "No other styles have been applied to it besides a light blue background color. "
+          text run at (620,18) width 131: "In all other respects,"
+          text run at (0,36) width 194: "the element should be normal."
+      LayoutBlockFlow {P} at (0,901.25) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,919.25) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 238x18
+          text run at (0,0) width 238: "This element also has a class of zero."
+      LayoutTable {TABLE} at (0,937.25) size 769x776 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x774
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x748
+            LayoutTableCell {TD} at (0,387) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x747.75 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,22) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 732x36
+                  text run at (0,0) width 732: "This sentence should have a bottom margin of half an inch, which will require extra text in order to make sure that"
+                  text run at (0,18) width 232: "the margin isn't applied to each line."
+              LayoutBlockFlow {P} at (4,106) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 739x36
+                  text run at (0,0) width 739: "This sentence should have a bottom margin of 25 pixels, which will require extra text in order to make sure that the"
+                  text run at (0,18) width 208: "margin isn't applied to each line."
+              LayoutBlockFlow {P} at (4,167) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 712x36
+                  text run at (0,0) width 712: "This sentence should have a bottom margin of 5 em, which will require extra text in order to make sure that the"
+                  text run at (0,18) width 208: "margin isn't applied to each line."
+              LayoutBlockFlow {P} at (4,283) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 705x36
+                  text run at (0,0) width 705: "This element should have a bottom margin of 25%, which will require extra text in order to make sure that the"
+                  text run at (0,18) width 208: "margin isn't applied to each line."
+              LayoutBlockFlow {P} at (4,505.75) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,523.75) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 238x18
+                  text run at (0,0) width 238: "This element also has a class of zero."
+              LayoutBlockFlow {UL} at (4,541.75) size 747x97 [bgcolor=#00FFFF]
+                LayoutListItem {LI} at (40,0) size 707x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 433x18
+                    text run at (0,0) width 433: "This list has a margin-bottom of 25px, and a light blue background."
+                LayoutListItem {LI} at (40,18) size 707x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 269x18
+                    text run at (0,0) width 269: "Therefore, it ought to have such a margin."
+                LayoutListItem {LI} at (40,36) size 707x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 604x18
+                    text run at (0,0) width 604: "This list item has a bottom margin of 25px, which should cause it to be offset in some fashion."
+                LayoutListItem {LI} at (40,79) size 707x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 304x18
+                    text run at (0,0) width 304: "This list item has no special styles applied to it."
+              LayoutBlockFlow {P} at (4,663.75) size 747x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 730x54
+                  text run at (0,0) width 722: "This paragraph has a bottom margin of -10px, which should cause elements after it to be shifted \"upward\" on the"
+                  text run at (0,18) width 163: "page, and no top margin. "
+                  text run at (162,18) width 498: "No other styles have been applied to it besides a light blue background color. "
+                  text run at (659,18) width 71: "In all other"
+                  text run at (0,36) width 253: "respects, the element should be normal."
+              LayoutBlockFlow {P} at (4,707.75) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,725.75) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 238x18
+                  text run at (0,0) width 238: "This element also has a class of zero."
+layer at (8,190) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,182) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_bottom_inline-expected.txt
new file mode 100644
index 0000000..40a2ec1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_bottom_inline-expected.txt
@@ -0,0 +1,96 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x30
+        LayoutText {#text} at (0,0) size 406x30
+          text run at (0,0) width 398: ".one {margin-bottom: 25px; background-color: aqua;}"
+          text run at (397,0) width 1: " "
+          text run at (0,15) width 406: ".two {margin-bottom: -10px; background-color: aqua;}"
+          text run at (405,15) width 1: " "
+      LayoutBlockFlow {P} at (0,95) size 784x54 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 490x18
+          text run at (0,0) width 400: "This element is unstyled save for a background color of gray.. "
+          text run at (399,0) width 91: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 776x36 [bgcolor=#00FFFF]
+          LayoutText {#text} at (489,0) size 148x18
+            text run at (489,0) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x15
+            LayoutText {#text} at (636,2) size 25x15
+              text run at (636,2) width 25: "one"
+          LayoutText {#text} at (660,0) size 776x36
+            text run at (660,0) width 116: ", giving it an aqua"
+            text run at (0,18) width 249: "background and a 25px bottom margin"
+        LayoutText {#text} at (248,18) size 775x36
+          text run at (248,18) width 9: ". "
+          text run at (256,18) width 519: "Margins on inline elements does not affect line-height calculations, so all lines in"
+          text run at (0,36) width 297: "this element should have the same line-height."
+      LayoutBlockFlow {P} at (0,165) size 784x54 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 490x18
+          text run at (0,0) width 400: "This element is unstyled save for a background color of gray.. "
+          text run at (399,0) width 91: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 776x36 [bgcolor=#00FFFF]
+          LayoutText {#text} at (489,0) size 148x18
+            text run at (489,0) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x15
+            LayoutText {#text} at (636,2) size 25x15
+              text run at (636,2) width 25: "two"
+          LayoutText {#text} at (660,0) size 776x36
+            text run at (660,0) width 116: ", giving it an aqua"
+            text run at (0,18) width 254: "background and a -10px bottom margin"
+        LayoutText {#text} at (253,18) size 781x36
+          text run at (253,18) width 9: ". "
+          text run at (261,18) width 520: "Margins on inline elements does not affect line-height calculations, so all lines in"
+          text run at (0,36) width 297: "this element should have the same line-height."
+      LayoutTable {TABLE} at (0,235) size 784x160 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x158
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x132
+            LayoutTableCell {TD} at (0,79) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x132 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x54 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 490x18
+                  text run at (0,0) width 400: "This element is unstyled save for a background color of gray.. "
+                  text run at (399,0) width 91: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 742x36 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (489,0) size 148x18
+                    text run at (489,0) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x15
+                    LayoutText {#text} at (636,2) size 25x15
+                      text run at (636,2) width 25: "one"
+                  LayoutText {#text} at (660,0) size 742x36
+                    text run at (660,0) width 82: ", giving it an"
+                    text run at (0,18) width 283: "aqua background and a 25px bottom margin"
+                LayoutText {#text} at (282,18) size 759x36
+                  text run at (282,18) width 9: ". "
+                  text run at (290,18) width 469: "Margins on inline elements does not affect line-height calculations, so all"
+                  text run at (0,36) width 348: "lines in this element should have the same line-height."
+              LayoutBlockFlow {P} at (4,74) size 762x54 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 490x18
+                  text run at (0,0) width 400: "This element is unstyled save for a background color of gray.. "
+                  text run at (399,0) width 91: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 742x36 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (489,0) size 148x18
+                    text run at (489,0) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x15
+                    LayoutText {#text} at (636,2) size 25x15
+                      text run at (636,2) width 25: "two"
+                  LayoutText {#text} at (660,0) size 742x36
+                    text run at (660,0) width 82: ", giving it an"
+                    text run at (0,18) width 288: "aqua background and a -10px bottom margin"
+                LayoutText {#text} at (287,18) size 744x36
+                  text run at (287,18) width 9: ". "
+                  text run at (295,18) width 449: "Margins on inline elements does not affect line-height calculations, so"
+                  text run at (0,36) width 368: "all lines in this element should have the same line-height."
+layer at (8,85) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_inline-expected.txt
new file mode 100644
index 0000000..7de450d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_inline-expected.txt
@@ -0,0 +1,126 @@
+layer at (0,0) size 800x600 scrollHeight 714
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x714 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x714
+    LayoutBlockFlow {BODY} at (8,8) size 784x698 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 352x45
+          text run at (0,0) width 344: ".zero {background-color: silver; margin: 0;}"
+          text run at (343,0) width 1: " "
+          text run at (0,15) width 344: ".one {margin: 25px; background-color: aqua;}"
+          text run at (343,15) width 1: " "
+          text run at (0,30) width 352: ".two {margin: -10px; background-color: aqua;}"
+          text run at (351,30) width 1: " "
+      LayoutBlockFlow {P} at (0,102) size 784x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,136) size 784x72 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 490x18
+          text run at (0,0) width 400: "This element is unstyled save for a background color of gray.. "
+          text run at (399,0) width 91: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 767x36 [bgcolor=#00FFFF]
+          LayoutText {#text} at (514,0) size 148x18
+            text run at (514,0) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x15
+            LayoutText {#text} at (661,2) size 25x15
+              text run at (661,2) width 25: "one"
+          LayoutText {#text} at (685,0) size 767x36
+            text run at (685,0) width 82: ", giving it an"
+            text run at (0,18) width 233: "aqua background and a 25px margin"
+        LayoutText {#text} at (257,18) size 782x54
+          text run at (257,18) width 9: ". "
+          text run at (265,18) width 504: "Margins on inline elements does not affect line-height calculations, so all lines"
+          text run at (0,36) width 317: "in this element should have the same line-height. "
+          text run at (316,36) width 466: "However, there should be a 25px margin to the left side of the inline box"
+          text run at (0,54) width 761: "in the first line it appears, and a 25px margin to the right side of the inline element box in the last line where it appears."
+      LayoutBlockFlow {P} at (0,224) size 784x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,258) size 784x72 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 490x18
+          text run at (0,0) width 400: "This element is unstyled save for a background color of gray.. "
+          text run at (399,0) width 91: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 766x36 [bgcolor=#00FFFF]
+          LayoutText {#text} at (479,0) size 148x18
+            text run at (479,0) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x15
+            LayoutText {#text} at (626,2) size 25x15
+              text run at (626,2) width 25: "two"
+          LayoutText {#text} at (650,0) size 766x36
+            text run at (650,0) width 116: ", giving it an aqua"
+            text run at (0,18) width 205: "background and a -10px margin"
+        LayoutText {#text} at (194,18) size 783x54
+          text run at (194,18) width 9: ". "
+          text run at (202,18) width 547: "Margins on inline elements does not affect line-height calculations, so all lines in this"
+          text run at (0,36) width 274: "element should have the same line-height. "
+          text run at (273,36) width 510: "However, there should be a -10px margin to the left side of the inline box in the"
+          text run at (0,54) width 727: "first line it appears, and a -10px margin to the right side of the inline element box in the last line where it appears."
+      LayoutBlockFlow {P} at (0,346) size 784x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutTable {TABLE} at (0,364) size 784x334 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x332
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x306
+            LayoutTableCell {TD} at (0,166) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x306 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,38) size 762x90 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 490x18
+                  text run at (0,0) width 400: "This element is unstyled save for a background color of gray.. "
+                  text run at (399,0) width 91: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 748x36 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (514,0) size 148x18
+                    text run at (514,0) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x15
+                    LayoutText {#text} at (661,2) size 25x15
+                      text run at (661,2) width 25: "one"
+                  LayoutText {#text} at (685,0) size 748x36
+                    text run at (685,0) width 63: ", giving it"
+                    text run at (0,18) width 253: "an aqua background and a 25px margin"
+                LayoutText {#text} at (277,18) size 760x72
+                  text run at (277,18) width 9: ". "
+                  text run at (285,18) width 469: "Margins on inline elements does not affect line-height calculations, so all"
+                  text run at (0,36) width 352: "lines in this element should have the same line-height. "
+                  text run at (351,36) width 396: "However, there should be a 25px margin to the left side of the"
+                  text run at (0,54) width 760: "inline box in the first line it appears, and a 25px margin to the right side of the inline element box in the last line where"
+                  text run at (0,72) width 66: "it appears."
+              LayoutBlockFlow {P} at (4,144) size 762x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,178) size 762x90 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 490x18
+                  text run at (0,0) width 400: "This element is unstyled save for a background color of gray.. "
+                  text run at (399,0) width 91: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 732x36 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (479,0) size 148x18
+                    text run at (479,0) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x15
+                    LayoutText {#text} at (626,2) size 25x15
+                      text run at (626,2) width 25: "two"
+                  LayoutText {#text} at (650,0) size 732x36
+                    text run at (650,0) width 82: ", giving it an"
+                    text run at (0,18) width 239: "aqua background and a -10px margin"
+                LayoutText {#text} at (228,18) size 756x72
+                  text run at (228,18) width 9: ". "
+                  text run at (236,18) width 520: "Margins on inline elements does not affect line-height calculations, so all lines in"
+                  text run at (0,36) width 301: "this element should have the same line-height. "
+                  text run at (300,36) width 442: "However, there should be a -10px margin to the left side of the inline"
+                  text run at (0,54) width 738: "box in the first line it appears, and a -10px margin to the right side of the inline element box in the last line where it"
+                  text run at (0,72) width 53: "appears."
+              LayoutBlockFlow {P} at (4,284) size 762x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_left-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_left-expected.txt
new file mode 100644
index 0000000..c1806f6b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_left-expected.txt
@@ -0,0 +1,121 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1005
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1005 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1005
+    LayoutBlockFlow {BODY} at (8,8) size 769x989 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x90
+        LayoutText {#text} at (0,0) size 398x90
+          text run at (0,0) width 383: ".zero {background-color: silver; margin-left: 0;}"
+          text run at (382,0) width 1: " "
+          text run at (0,15) width 391: ".one {margin-left: 0.5in; background-color: aqua;}"
+          text run at (390,15) width 1: " "
+          text run at (0,30) width 383: ".two {margin-left: 25px; background-color: aqua;}"
+          text run at (382,30) width 1: " "
+          text run at (0,45) width 391: ".three {margin-left: 5em; background-color: aqua;}"
+          text run at (390,45) width 1: " "
+          text run at (0,60) width 383: ".four {margin-left: 25%; background-color: aqua;}"
+          text run at (382,60) width 1: " "
+          text run at (0,75) width 398: ".five {margin-left: -10px; background-color: aqua;}"
+          text run at (397,75) width 1: " "
+      LayoutBlockFlow {P} at (0,155) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (48,189) size 721x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 355x18
+          text run at (0,0) width 355: "This sentence should have a left margin of half an inch."
+      LayoutBlockFlow {P} at (25,223) size 744x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 338x18
+          text run at (0,0) width 338: "This sentence should have a left margin of 25 pixels."
+      LayoutBlockFlow {P} at (80,257) size 689x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 311x18
+          text run at (0,0) width 311: "This sentence should have a left margin of 5 em."
+      LayoutBlockFlow {P} at (192.25,291) size 576.75x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 557x36
+          text run at (0,0) width 557: "This sentence should have a left margin of 25%, which is calculated with respect to the"
+          text run at (0,18) width 180: "width of the parent element."
+      LayoutBlockFlow {UL} at (25,343) size 744x90 [bgcolor=#808080]
+        LayoutListItem {LI} at (40,0) size 704x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 699x18
+            text run at (0,0) width 699: "The left margin on this unordered list has been set to 25 pixels, and its background color has been set to gray."
+        LayoutListItem {LI} at (65,18) size 679x54 [bgcolor=#FFFFFF]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 669x54
+            text run at (0,0) width 669: "Another list item might not be such a bad idea, either, considering that such things do need to be double-"
+            text run at (0,18) width 61: "checked. "
+            text run at (60,18) width 576: "This list item has its left margin also set to 25 pixels, which should combine with the list's"
+            text run at (0,36) width 537: "margin to make 50 pixels of margin, and its background color has been set to white."
+        LayoutListItem {LI} at (40,72) size 704x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 185x18
+            text run at (0,0) width 185: "This is an unclassed list item"
+      LayoutBlockFlow {P} at (0,449) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (-10,483) size 779x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 773x54
+          text run at (0,0) width 773: "This paragraph has a left margin of -10px, which should cause it to be wider than it might otherwise be, and it has a light"
+          text run at (0,18) width 116: "blue background. "
+          text run at (115,18) width 394: "In all other respects, however, the element should be normal. "
+          text run at (508,18) width 261: "No styles have been applied to it besides"
+          text run at (0,36) width 323: "the negative left margin and the background color."
+      LayoutTable {TABLE} at (0,553) size 769x436 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x434
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x408
+            LayoutTableCell {TD} at (0,217) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x408 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (52,38) size 699x18 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 355x18
+                  text run at (0,0) width 355: "This sentence should have a left margin of half an inch."
+              LayoutBlockFlow {P} at (29,72) size 722x18 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 338x18
+                  text run at (0,0) width 338: "This sentence should have a left margin of 25 pixels."
+              LayoutBlockFlow {P} at (84,106) size 667x18 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 311x18
+                  text run at (0,0) width 311: "This sentence should have a left margin of 5 em."
+              LayoutBlockFlow {P} at (190.75,140) size 560.25x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 557x36
+                  text run at (0,0) width 557: "This sentence should have a left margin of 25%, which is calculated with respect to the"
+                  text run at (0,18) width 180: "width of the parent element."
+              LayoutBlockFlow {UL} at (29,192) size 722x108 [bgcolor=#808080]
+                LayoutListItem {LI} at (40,0) size 682x36
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 664x36
+                    text run at (0,0) width 664: "The left margin on this unordered list has been set to 25 pixels, and its background color has been set to"
+                    text run at (0,18) width 32: "gray."
+                LayoutListItem {LI} at (65,36) size 657x54 [bgcolor=#FFFFFF]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 652x54
+                    text run at (0,0) width 617: "Another list item might not be such a bad idea, either, considering that such things do need to be"
+                    text run at (0,18) width 110: "double-checked. "
+                    text run at (109,18) width 543: "This list item has its left margin also set to 25 pixels, which should combine with the"
+                    text run at (0,36) width 570: "list's margin to make 50 pixels of margin, and its background color has been set to white."
+                LayoutListItem {LI} at (40,90) size 682x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 185x18
+                    text run at (0,0) width 185: "This is an unclassed list item"
+              LayoutBlockFlow {P} at (4,316) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (-6,350) size 757x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 751x54
+                  text run at (0,0) width 740: "This paragraph has a left margin of -10px, which should cause it to be wider than it might otherwise be, and it has a"
+                  text run at (0,18) width 149: "light blue background. "
+                  text run at (148,18) width 394: "In all other respects, however, the element should be normal. "
+                  text run at (541,18) width 210: "No styles have been applied to it"
+                  text run at (0,36) width 374: "besides the negative left margin and the background color."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_left_inline-expected.txt
new file mode 100644
index 0000000..5f2920df
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_left_inline-expected.txt
@@ -0,0 +1,100 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x30
+        LayoutText {#text} at (0,0) size 391x30
+          text run at (0,0) width 383: ".one {margin-left: 25px; background-color: aqua;}"
+          text run at (382,0) width 1: " "
+          text run at (0,15) width 391: ".two {margin-left: -10px; background-color: aqua;}"
+          text run at (390,15) width 1: " "
+      LayoutBlockFlow {P} at (0,95) size 784x36 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 551x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 156: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 172x18 [bgcolor=#00FFFF]
+          LayoutText {#text} at (575,0) size 149x18
+            text run at (575,0) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 24x15
+            LayoutText {#text} at (723,2) size 24x15
+              text run at (723,2) width 24: "one"
+        LayoutText {#text} at (746,0) size 751x36
+          text run at (746,0) width 5: ","
+          text run at (0,18) width 350: "which should result in 25-pixel left margin only in the "
+        LayoutInline {STRONG} at (0,0) size 29x18
+          LayoutText {#text} at (349,18) size 29x18
+            text run at (349,18) width 29: "first"
+        LayoutText {#text} at (377,18) size 237x18
+          text run at (377,18) width 237: " line in which the inline box appears."
+      LayoutBlockFlow {P} at (0,147) size 784x36 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 551x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 156: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 172x18 [bgcolor=#00FFFF]
+          LayoutText {#text} at (540,0) size 149x18
+            text run at (540,0) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 24x15
+            LayoutText {#text} at (688,2) size 24x15
+              text run at (688,2) width 24: "two"
+        LayoutText {#text} at (711,0) size 759x36
+          text run at (711,0) width 48: ", which"
+          text run at (0,18) width 291: "should result in -10px left margin only in the "
+        LayoutInline {STRONG} at (0,0) size 29x18
+          LayoutText {#text} at (290,18) size 29x18
+            text run at (290,18) width 29: "first"
+        LayoutText {#text} at (318,18) size 237x18
+          text run at (318,18) width 237: " line in which the inline box appears."
+      LayoutTable {TABLE} at (0,199) size 784x124 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x122
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x96
+            LayoutTableCell {TD} at (0,61) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x96 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x36 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 551x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 156: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 172x18 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (575,0) size 149x18
+                    text run at (575,0) width 149: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 24x15
+                    LayoutText {#text} at (723,2) size 24x15
+                      text run at (723,2) width 24: "one"
+                LayoutText {#text} at (746,0) size 751x36
+                  text run at (746,0) width 5: ","
+                  text run at (0,18) width 350: "which should result in 25-pixel left margin only in the "
+                LayoutInline {STRONG} at (0,0) size 29x18
+                  LayoutText {#text} at (349,18) size 29x18
+                    text run at (349,18) width 29: "first"
+                LayoutText {#text} at (377,18) size 237x18
+                  text run at (377,18) width 237: " line in which the inline box appears."
+              LayoutBlockFlow {P} at (4,56) size 762x36 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 551x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 156: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 172x18 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (540,0) size 149x18
+                    text run at (540,0) width 149: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 24x15
+                    LayoutText {#text} at (688,2) size 24x15
+                      text run at (688,2) width 24: "two"
+                LayoutText {#text} at (711,0) size 759x36
+                  text run at (711,0) width 48: ", which"
+                  text run at (0,18) width 291: "should result in -10px left margin only in the "
+                LayoutInline {STRONG} at (0,0) size 29x18
+                  LayoutText {#text} at (290,18) size 29x18
+                    text run at (290,18) width 29: "first"
+                LayoutText {#text} at (318,18) size 237x18
+                  text run at (318,18) width 237: " line in which the inline box appears."
+layer at (8,85) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_right-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_right-expected.txt
new file mode 100644
index 0000000..2b86296
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_right-expected.txt
@@ -0,0 +1,121 @@
+layer at (0,0) size 800x600 scrollWidth 802 scrollHeight 1005
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x1005 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x1005
+    LayoutBlockFlow {BODY} at (8,8) size 784x989 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x90
+        LayoutText {#text} at (0,0) size 547x90
+          text run at (0,0) width 539: ".zero {background-color: silver; margin-right: 0; text-align: right;}"
+          text run at (538,0) width 1: " "
+          text run at (0,15) width 547: ".one {margin-right: 0.5in; text-align: right; background-color: aqua;}"
+          text run at (546,15) width 1: " "
+          text run at (0,30) width 539: ".two {margin-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (538,30) width 1: " "
+          text run at (0,45) width 547: ".three {margin-right: 5em; text-align: right; background-color: aqua;}"
+          text run at (546,45) width 1: " "
+          text run at (0,60) width 539: ".four {margin-right: 25%; text-align: right; background-color: aqua;}"
+          text run at (538,60) width 1: " "
+          text run at (0,75) width 406: ".five {margin-right: -10px; background-color: aqua;}"
+          text run at (405,75) width 1: " "
+      LayoutBlockFlow {P} at (0,155) size 784x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (576,0) size 208x18
+          text run at (576,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,189) size 736x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (372,0) size 364x18
+          text run at (372,0) width 364: "This sentence should have a right margin of half an inch."
+      LayoutBlockFlow {P} at (0,223) size 759x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (412,0) size 347x18
+          text run at (412,0) width 347: "This sentence should have a right margin of 25 pixels."
+      LayoutBlockFlow {P} at (0,257) size 704x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (384,0) size 320x18
+          text run at (384,0) width 320: "This sentence should have a right margin of 5 em."
+      LayoutBlockFlow {P} at (0,291) size 588x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (22,0) size 566x36
+          text run at (22,0) width 566: "This sentence should have a right margin of 25%, which is calculated with respect to the"
+          text run at (408,18) width 180: "width of the parent element."
+      LayoutBlockFlow {UL} at (0,343) size 759x90 [bgcolor=#808080]
+        LayoutListItem {LI} at (40,0) size 719x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (7,0) size 712x18
+            text run at (7,0) width 712: "The right margin on this unordered list has been set to 25 pixels, and the background color has been set to gray."
+        LayoutListItem {LI} at (40,18) size 694x54 [bgcolor=#FFFFFF]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (25,0) size 694x54
+            text run at (25,0) width 669: "Another list item might not be such a bad idea, either, considering that such things do need to be double-"
+            text run at (0,18) width 62: "checked. "
+            text run at (61,18) width 633: "This list item has its right margin also set to 25 pixels, which should combine with the list's margin"
+            text run at (205,36) width 489: "to make 50 pixels of margin, and its background-color has been set to white."
+        LayoutListItem {LI} at (40,72) size 719x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (534,0) size 185x18
+            text run at (534,0) width 185: "This is an unclassed list item"
+      LayoutBlockFlow {P} at (0,449) size 784x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (576,0) size 208x18
+          text run at (576,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,483) size 794x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 793x54
+          text run at (0,0) width 782: "This paragraph has a right margin of -10px, which should cause it to be wider than it might otherwise be, and it has a light"
+          text run at (0,18) width 116: "blue background. "
+          text run at (115,18) width 394: "In all other respects, however, the element should be normal. "
+          text run at (508,18) width 285: "No styles have been applied to it besides the"
+          text run at (0,36) width 308: "negative right margin and the background color."
+      LayoutTable {TABLE} at (0,553) size 784x436 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x434
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x408
+            LayoutTableCell {TD} at (0,217) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x408 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (554,0) size 208x18
+                  text run at (554,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,38) size 714x18 [bgcolor=#00FFFF]
+                LayoutText {#text} at (350,0) size 364x18
+                  text run at (350,0) width 364: "This sentence should have a right margin of half an inch."
+              LayoutBlockFlow {P} at (4,72) size 737x18 [bgcolor=#00FFFF]
+                LayoutText {#text} at (390,0) size 347x18
+                  text run at (390,0) width 347: "This sentence should have a right margin of 25 pixels."
+              LayoutBlockFlow {P} at (4,106) size 682x18 [bgcolor=#00FFFF]
+                LayoutText {#text} at (362,0) size 320x18
+                  text run at (362,0) width 320: "This sentence should have a right margin of 5 em."
+              LayoutBlockFlow {P} at (4,140) size 571.50x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (5,0) size 567x36
+                  text run at (5,0) width 567: "This sentence should have a right margin of 25%, which is calculated with respect to the"
+                  text run at (391,18) width 181: "width of the parent element."
+              LayoutBlockFlow {UL} at (4,192) size 737x108 [bgcolor=#808080]
+                LayoutListItem {LI} at (40,0) size 697x36
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (20,0) size 677x36
+                    text run at (20,0) width 677: "The right margin on this unordered list has been set to 25 pixels, and the background color has been set to"
+                    text run at (665,18) width 32: "gray."
+                LayoutListItem {LI} at (40,36) size 672x54 [bgcolor=#FFFFFF]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (3,0) size 669x54
+                    text run at (3,0) width 669: "Another list item might not be such a bad idea, either, considering that such things do need to be double-"
+                    text run at (27,18) width 62: "checked. "
+                    text run at (88,18) width 584: "This list item has its right margin also set to 25 pixels, which should combine with the list's"
+                    text run at (134,36) width 538: "margin to make 50 pixels of margin, and its background-color has been set to white."
+                LayoutListItem {LI} at (40,90) size 697x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (512,0) size 185x18
+                    text run at (512,0) width 185: "This is an unclassed list item"
+              LayoutBlockFlow {P} at (4,316) size 762x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (554,0) size 208x18
+                  text run at (554,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,350) size 772x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 751x54
+                  text run at (0,0) width 749: "This paragraph has a right margin of -10px, which should cause it to be wider than it might otherwise be, and it has a"
+                  text run at (0,18) width 149: "light blue background. "
+                  text run at (148,18) width 394: "In all other respects, however, the element should be normal. "
+                  text run at (541,18) width 210: "No styles have been applied to it"
+                  text run at (0,36) width 383: "besides the negative right margin and the background color."
+layer at (8,145) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_right_inline-expected.txt
new file mode 100644
index 0000000..cf4788e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_right_inline-expected.txt
@@ -0,0 +1,100 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x30
+        LayoutText {#text} at (0,0) size 539x30
+          text run at (0,0) width 539: ".one {margin-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (538,0) width 1: " "
+          text run at (0,15) width 398: ".two {margin-right: -10px; background-color: aqua;}"
+          text run at (397,15) width 1: " "
+      LayoutBlockFlow {P} at (0,95) size 784x36 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 551x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 156: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 172x18 [bgcolor=#00FFFF]
+          LayoutText {#text} at (550,0) size 149x18
+            text run at (550,0) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 24x15
+            LayoutText {#text} at (698,2) size 24x15
+              text run at (698,2) width 24: "one"
+        LayoutText {#text} at (746,0) size 751x36
+          text run at (746,0) width 5: ","
+          text run at (0,18) width 359: "which should result in 25-pixel right margin only in the "
+        LayoutInline {STRONG} at (0,0) size 25x18
+          LayoutText {#text} at (358,18) size 25x18
+            text run at (358,18) width 25: "last"
+        LayoutText {#text} at (382,18) size 238x18
+          text run at (382,18) width 238: " line in which the inline box appears."
+      LayoutBlockFlow {P} at (0,147) size 784x36 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 551x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 156: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 172x18 [bgcolor=#00FFFF]
+          LayoutText {#text} at (550,0) size 149x18
+            text run at (550,0) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 24x15
+            LayoutText {#text} at (698,2) size 24x15
+              text run at (698,2) width 24: "two"
+        LayoutText {#text} at (711,0) size 759x36
+          text run at (711,0) width 48: ", which"
+          text run at (0,18) width 300: "should result in -10px right margin only in the "
+        LayoutInline {STRONG} at (0,0) size 25x18
+          LayoutText {#text} at (299,18) size 25x18
+            text run at (299,18) width 25: "last"
+        LayoutText {#text} at (323,18) size 238x18
+          text run at (323,18) width 238: " line in which the inline box appears."
+      LayoutTable {TABLE} at (0,199) size 784x124 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x122
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x96
+            LayoutTableCell {TD} at (0,61) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x96 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x36 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 551x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 156: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 172x18 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (550,0) size 149x18
+                    text run at (550,0) width 149: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 24x15
+                    LayoutText {#text} at (698,2) size 24x15
+                      text run at (698,2) width 24: "one"
+                LayoutText {#text} at (746,0) size 751x36
+                  text run at (746,0) width 5: ","
+                  text run at (0,18) width 359: "which should result in 25-pixel right margin only in the "
+                LayoutInline {STRONG} at (0,0) size 25x18
+                  LayoutText {#text} at (358,18) size 25x18
+                    text run at (358,18) width 25: "last"
+                LayoutText {#text} at (382,18) size 238x18
+                  text run at (382,18) width 238: " line in which the inline box appears."
+              LayoutBlockFlow {P} at (4,56) size 762x36 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 551x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 156: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 172x18 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (550,0) size 149x18
+                    text run at (550,0) width 149: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 24x15
+                    LayoutText {#text} at (698,2) size 24x15
+                      text run at (698,2) width 24: "two"
+                LayoutText {#text} at (711,0) size 759x36
+                  text run at (711,0) width 48: ", which"
+                  text run at (0,18) width 300: "should result in -10px right margin only in the "
+                LayoutInline {STRONG} at (0,0) size 25x18
+                  LayoutText {#text} at (299,18) size 25x18
+                    text run at (299,18) width 25: "last"
+                LayoutText {#text} at (323,18) size 238x18
+                  text run at (323,18) width 238: " line in which the inline box appears."
+layer at (8,85) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_top-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_top-expected.txt
new file mode 100644
index 0000000..49cb0bb1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_top-expected.txt
@@ -0,0 +1,139 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1639
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1639 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1639.25
+    LayoutBlockFlow {BODY} at (8,8) size 769x1623.25 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,31) size 769x120
+        LayoutText {#text} at (0,0) size 383x120
+          text run at (0,0) width 375: ".zero {background-color: silver; margin-top: 0;}"
+          text run at (374,0) width 1: " "
+          text run at (0,15) width 383: ".one {margin-top: 0.5in; background-color: aqua;}"
+          text run at (382,15) width 1: " "
+          text run at (0,30) width 375: ".two {margin-top: 25px; background-color: aqua;}"
+          text run at (374,30) width 1: " "
+          text run at (0,45) width 383: ".three {margin-top: 5em; background-color: aqua;}"
+          text run at (382,45) width 1: " "
+          text run at (0,60) width 375: ".four {margin-top: 25%; background-color: aqua;}"
+          text run at (374,60) width 1: " "
+          text run at (0,75) width 196: ".five {margin-top: 25px;}"
+          text run at (195,75) width 1: " "
+          text run at (0,90) width 383: ".six {margin-top: -10px; background-color: aqua;}"
+          text run at (382,90) width 1: " "
+          text run at (0,105) width 196: "P, UL {margin-bottom: 0;}"
+          text run at (195,105) width 1: " "
+      LayoutBlockFlow {P} at (0,174) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,192) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 238x18
+          text run at (0,0) width 238: "This element also has a class of zero."
+      LayoutBlockFlow {P} at (0,258) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 727x36
+          text run at (0,0) width 727: "This element should have a top margin of half an inch, which will require extra text in order to make sure that the"
+          text run at (0,18) width 208: "margin isn't applied to each line."
+      LayoutBlockFlow {P} at (0,319) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 758x36
+          text run at (0,0) width 758: "This element should have a top margin of 25 pixels, which will require extra text in order to make sure that the margin"
+          text run at (0,18) width 159: "isn't applied to each line."
+      LayoutBlockFlow {P} at (0,435) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 762x36
+          text run at (0,0) width 762: "This element should have a top margin of 5 em, which will require extra text in order to make sure that the margin isn't"
+          text run at (0,18) width 129: "applied to each line."
+      LayoutBlockFlow {P} at (0,663.25) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 768x36
+          text run at (0,0) width 740: "This element should have a top margin of 25%, which is calculated with respect to the width of the parent element. "
+          text run at (739,0) width 29: "This"
+          text run at (0,18) width 240: "will require extra text in order to test."
+      LayoutBlockFlow {UL} at (0,724.25) size 769x97 [bgcolor=#00FFFF]
+        LayoutListItem {LI} at (40,0) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 408x18
+            text run at (0,0) width 408: "This list has a margin-top of 25px, and a light blue background."
+        LayoutListItem {LI} at (40,18) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 269x18
+            text run at (0,0) width 269: "Therefore, it ought to have such a margin."
+        LayoutListItem {LI} at (40,61) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 579x18
+            text run at (0,0) width 579: "This list item has a top margin of 25px, which should cause it to be offset in some fashion."
+        LayoutListItem {LI} at (40,79) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 304x18
+            text run at (0,0) width 304: "This list item has no special styles applied to it."
+      LayoutBlockFlow {P} at (0,821.25) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,829.25) size 769x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 758x54
+          text run at (0,0) width 725: "This element has a top margin of -10px, which should cause it to be shifted \"upward\" on the page, and no bottom"
+          text run at (0,18) width 54: "margin. "
+          text run at (53,18) width 497: "No other styles have been applied to it besides a light blue background color. "
+          text run at (549,18) width 209: "In all other respects, the element"
+          text run at (0,36) width 116: "should be normal."
+      LayoutTable {TABLE} at (0,883.25) size 769x740 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x738
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x712
+            LayoutTableCell {TD} at (0,369) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x711.75 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,22) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 238x18
+                  text run at (0,0) width 238: "This element also has a class of zero."
+              LayoutBlockFlow {P} at (4,88) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 727x36
+                  text run at (0,0) width 727: "This element should have a top margin of half an inch, which will require extra text in order to make sure that the"
+                  text run at (0,18) width 208: "margin isn't applied to each line."
+              LayoutBlockFlow {P} at (4,149) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 709x36
+                  text run at (0,0) width 709: "This element should have a top margin of 25 pixels, which will require extra text in order to make sure that the"
+                  text run at (0,18) width 208: "margin isn't applied to each line."
+              LayoutBlockFlow {P} at (4,265) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 732x36
+                  text run at (0,0) width 732: "This element should have a top margin of 5 em, which will require extra text in order to make sure that the margin"
+                  text run at (0,18) width 159: "isn't applied to each line."
+              LayoutBlockFlow {P} at (4,487.75) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 736x36
+                  text run at (0,0) width 736: "This element should have a top margin of 25%, which is calculated with respect to the width of the parent element."
+                  text run at (0,18) width 272: "This will require extra text in order to test."
+              LayoutBlockFlow {UL} at (4,548.75) size 747x97 [bgcolor=#00FFFF]
+                LayoutListItem {LI} at (40,0) size 707x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 408x18
+                    text run at (0,0) width 408: "This list has a margin-top of 25px, and a light blue background."
+                LayoutListItem {LI} at (40,18) size 707x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 269x18
+                    text run at (0,0) width 269: "Therefore, it ought to have such a margin."
+                LayoutListItem {LI} at (40,61) size 707x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 579x18
+                    text run at (0,0) width 579: "This list item has a top margin of 25px, which should cause it to be offset in some fashion."
+                LayoutListItem {LI} at (40,79) size 707x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 304x18
+                    text run at (0,0) width 304: "This list item has no special styles applied to it."
+              LayoutBlockFlow {P} at (4,645.75) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,653.75) size 747x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 725x54
+                  text run at (0,0) width 725: "This element has a top margin of -10px, which should cause it to be shifted \"upward\" on the page, and no bottom"
+                  text run at (0,18) width 54: "margin. "
+                  text run at (53,18) width 497: "No other styles have been applied to it besides a light blue background color. "
+                  text run at (549,18) width 154: "In all other respects, the"
+                  text run at (0,36) width 170: "element should be normal."
+layer at (8,172) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,164) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_top_inline-expected.txt
new file mode 100644
index 0000000..3bf6d67
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/margin_top_inline-expected.txt
@@ -0,0 +1,99 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x60
+        LayoutText {#text} at (0,0) size 383x60
+          text run at (0,0) width 375: ".zero {background-color: silver; margin-top: 0;}"
+          text run at (374,0) width 1: " "
+          text run at (0,15) width 375: ".one {margin-top: 25px; background-color: aqua;}"
+          text run at (374,15) width 1: " "
+          text run at (0,30) width 383: ".two {margin-top: -10px; background-color: aqua;}"
+          text run at (382,30) width 1: " "
+          text run at (0,45) width 0: " "
+      LayoutBlockFlow {P} at (0,125) size 784x54 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 486x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 91: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 772x36 [bgcolor=#00FFFF]
+          LayoutText {#text} at (485,0) size 148x18
+            text run at (485,0) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x15
+            LayoutText {#text} at (632,2) size 25x15
+              text run at (632,2) width 25: "one"
+          LayoutText {#text} at (656,0) size 772x36
+            text run at (656,0) width 116: ", giving it an aqua"
+            text run at (0,18) width 224: "background and a 25px top margin"
+        LayoutText {#text} at (223,18) size 764x36
+          text run at (223,18) width 9: ". "
+          text run at (231,18) width 533: "Margins on inline elements do not affect line-height calculations, so all lines in this"
+          text run at (0,36) width 270: "element should have the same line-height."
+      LayoutBlockFlow {P} at (0,195) size 784x54 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 486x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 91: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 770x36 [bgcolor=#00FFFF]
+          LayoutText {#text} at (485,0) size 148x18
+            text run at (485,0) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x15
+            LayoutText {#text} at (632,2) size 25x15
+              text run at (632,2) width 25: "two"
+          LayoutText {#text} at (656,0) size 770x36
+            text run at (656,0) width 114: ", giving the inline"
+            text run at (0,18) width 337: "element an aqua background and a -10px top margin"
+        LayoutText {#text} at (336,18) size 780x36
+          text run at (336,18) width 9: ". "
+          text run at (344,18) width 436: "Margins on inline elements do not affect line-height calculations, so"
+          text run at (0,36) width 368: "all lines in this element should have the same line-height."
+      LayoutTable {TABLE} at (0,265) size 784x160 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x158
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x132
+            LayoutTableCell {TD} at (0,79) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x132 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x54 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 486x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 91: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 738x36 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (485,0) size 148x18
+                    text run at (485,0) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x15
+                    LayoutText {#text} at (632,2) size 25x15
+                      text run at (632,2) width 25: "one"
+                  LayoutText {#text} at (656,0) size 738x36
+                    text run at (656,0) width 82: ", giving it an"
+                    text run at (0,18) width 258: "aqua background and a 25px top margin"
+                LayoutText {#text} at (257,18) size 755x36
+                  text run at (257,18) width 9: ". "
+                  text run at (265,18) width 490: "Margins on inline elements do not affect line-height calculations, so all lines"
+                  text run at (0,36) width 313: "in this element should have the same line-height."
+              LayoutBlockFlow {P} at (4,74) size 762x54 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 486x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 91: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 729x36 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (485,0) size 148x18
+                    text run at (485,0) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x15
+                    LayoutText {#text} at (632,2) size 25x15
+                      text run at (632,2) width 25: "two"
+                  LayoutText {#text} at (656,0) size 729x36
+                    text run at (656,0) width 73: ", giving the"
+                    text run at (0,18) width 377: "inline element an aqua background and a -10px top margin"
+                LayoutText {#text} at (376,18) size 718x36
+                  text run at (376,18) width 9: ". "
+                  text run at (384,18) width 334: "Margins on inline elements do not affect line-height"
+                  text run at (0,36) width 470: "calculations, so all lines in this element should have the same line-height."
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding-expected.txt
new file mode 100644
index 0000000..99f3c526
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding-expected.txt
@@ -0,0 +1,96 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2222
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2222 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2221.50
+    LayoutBlockFlow {BODY} at (8,8) size 769x2205.50 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x90
+        LayoutText {#text} at (0,0) size 367x90
+          text run at (0,0) width 352: ".zero {background-color: silver; padding: 0;}"
+          text run at (351,0) width 1: " "
+          text run at (0,15) width 359: ".one {padding: 0.5in; background-color: aqua;}"
+          text run at (358,15) width 1: " "
+          text run at (0,30) width 352: ".two {padding: 25px; background-color: aqua;}"
+          text run at (351,30) width 1: " "
+          text run at (0,45) width 359: ".three {padding: 5em; background-color: aqua;}"
+          text run at (358,45) width 1: " "
+          text run at (0,60) width 352: ".four {padding: 25%; background-color: aqua;}"
+          text run at (351,60) width 1: " "
+          text run at (0,75) width 367: ".five {padding: -20px; background-color: aqua;}"
+          text run at (366,75) width 1: " "
+      LayoutBlockFlow {P} at (0,155) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,189) size 769x132 [bgcolor=#00FFFF]
+        LayoutText {#text} at (48,48) size 644x36
+          text run at (48,48) width 644: "This element should have an overall padding of half an inch, which will require extra text in order to"
+          text run at (48,66) width 31: "test. "
+          text run at (78,66) width 472: "Both the content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,337) size 769x86 [bgcolor=#00FFFF]
+        LayoutText {#text} at (25,25) size 716x36
+          text run at (25,25) width 661: "This element should have an overall padding of 25 pixels, which will require extra text in order to test. "
+          text run at (685,25) width 56: "Both the"
+          text run at (25,43) width 413: "content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,439) size 769x196 [bgcolor=#00FFFF]
+        LayoutText {#text} at (80,80) size 600x36
+          text run at (80,80) width 600: "This element should have an overall padding of 5 em, which will require extra text in order to"
+          text run at (80,98) width 31: "test. "
+          text run at (110,98) width 472: "Both the content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,651) size 769x456.50 [bgcolor=#00FFFF]
+        LayoutText {#text} at (192,192) size 370x72
+          text run at (192,192) width 342: "This element should have an overall padding of 25%,"
+          text run at (192,210) width 370: "which is calculated with respect to the width of the parent"
+          text run at (192,228) width 59: "element. "
+          text run at (250,228) width 293: "Both the content background and the padding"
+          text run at (192,246) width 176: "should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,1123.50) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 763x36
+          text run at (0,0) width 550: "This element should have no padding, since negative padding values are not allowed. "
+          text run at (549,0) width 214: "Both the content background and"
+          text run at (0,18) width 304: "the normal padding should be aqua (light blue)."
+      LayoutTable {TABLE} at (0,1175.50) size 769x1030 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1028
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x1002
+            LayoutTableCell {TD} at (0,514) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x1001.50 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,38) size 747x132 [bgcolor=#00FFFF]
+                LayoutText {#text} at (48,48) size 644x36
+                  text run at (48,48) width 644: "This element should have an overall padding of half an inch, which will require extra text in order to"
+                  text run at (48,66) width 31: "test. "
+                  text run at (78,66) width 472: "Both the content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,186) size 747x86 [bgcolor=#00FFFF]
+                LayoutText {#text} at (25,25) size 692x36
+                  text run at (25,25) width 661: "This element should have an overall padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (685,25) width 32: "Both"
+                  text run at (25,43) width 436: "the content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,288) size 747x196 [bgcolor=#00FFFF]
+                LayoutText {#text} at (80,80) size 584x36
+                  text run at (80,80) width 584: "This element should have an overall padding of 5 em, which will require extra text in order"
+                  text run at (80,98) width 47: "to test. "
+                  text run at (126,98) width 472: "Both the content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,500) size 747x445.50 [bgcolor=#00FFFF]
+                LayoutText {#text} at (186,187) size 371x72
+                  text run at (186,187) width 343: "This element should have an overall padding of 25%,"
+                  text run at (186,205) width 371: "which is calculated with respect to the width of the parent"
+                  text run at (186,223) width 60: "element. "
+                  text run at (245,223) width 292: "Both the content background and the padding"
+                  text run at (186,241) width 177: "should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,961.50) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 735x36
+                  text run at (0,0) width 550: "This element should have no padding, since negative padding values are not allowed. "
+                  text run at (549,0) width 186: "Both the content background"
+                  text run at (0,18) width 332: "and the normal padding should be aqua (light blue)."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_bottom-expected.txt
new file mode 100644
index 0000000..593b21a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_bottom-expected.txt
@@ -0,0 +1,100 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1550
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1550 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1550.25
+    LayoutBlockFlow {BODY} at (8,8) size 769x1534.25 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x90
+        LayoutText {#text} at (0,0) size 422x90
+          text run at (0,0) width 406: ".zero {background-color: silver; padding-bottom: 0;}"
+          text run at (405,0) width 1: " "
+          text run at (0,15) width 414: ".one {padding-bottom: 0.5in; background-color: aqua;}"
+          text run at (413,15) width 1: " "
+          text run at (0,30) width 406: ".two {padding-bottom: 25px; background-color: aqua;}"
+          text run at (405,30) width 1: " "
+          text run at (0,45) width 414: ".three {padding-bottom: 5em; background-color: aqua;}"
+          text run at (413,45) width 1: " "
+          text run at (0,60) width 406: ".four {padding-bottom: 25%; background-color: aqua;}"
+          text run at (405,60) width 1: " "
+          text run at (0,75) width 422: ".five {padding-bottom: -20px; background-color: aqua;}"
+          text run at (421,75) width 1: " "
+      LayoutBlockFlow {P} at (0,155) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,189) size 769x84 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 726x36
+          text run at (0,0) width 671: "This element should have a bottom padding of half an inch, which will require extra text in order to test. "
+          text run at (670,0) width 56: "Both the"
+          text run at (0,18) width 413: "content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,289) size 769x61 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 760x36
+          text run at (0,0) width 654: "This element should have a bottom padding of 25 pixels, which will require extra text in order to test. "
+          text run at (653,0) width 107: "Both the content"
+          text run at (0,18) width 362: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,366) size 769x116 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 733x36
+          text run at (0,0) width 627: "This element should have a bottom padding of 5 em, which will require extra text in order to test. "
+          text run at (626,0) width 107: "Both the content"
+          text run at (0,18) width 362: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,498) size 769x228.25 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 767x36
+          text run at (0,0) width 767: "This element should have a bottom padding of 25%, which is calculated with respect to the width of the parent element."
+          text run at (0,18) width 276: "This will require extra text in order to test. "
+          text run at (275,18) width 472: "Both the content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,742.25) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,776.25) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 705x36
+          text run at (0,0) width 599: "This element should have no bottom padding, since negative padding values are not allowed. "
+          text run at (598,0) width 107: "Both the content"
+          text run at (0,18) width 411: "background and the normal padding should be aqua (light blue)."
+      LayoutTable {TABLE} at (0,828.25) size 769x706 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x704
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x678
+            LayoutTableCell {TD} at (0,352) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x677.75 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,38) size 747x84 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 726x36
+                  text run at (0,0) width 671: "This element should have a bottom padding of half an inch, which will require extra text in order to test. "
+                  text run at (670,0) width 56: "Both the"
+                  text run at (0,18) width 413: "content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,138) size 747x61 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 709x36
+                  text run at (0,0) width 654: "This element should have a bottom padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (653,0) width 56: "Both the"
+                  text run at (0,18) width 413: "content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,215) size 747x116 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 733x36
+                  text run at (0,0) width 627: "This element should have a bottom padding of 5 em, which will require extra text in order to test. "
+                  text run at (626,0) width 107: "Both the content"
+                  text run at (0,18) width 362: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,347) size 747x240.75 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 726x54
+                  text run at (0,0) width 709: "This element should have a bottom padding of 25%, which is calculated with respect to the width of the parent"
+                  text run at (0,18) width 59: "element. "
+                  text run at (58,18) width 277: "This will require extra text in order to test. "
+                  text run at (334,18) width 392: "Both the content background and the padding should be aqua"
+                  text run at (0,36) width 76: "(light blue)."
+              LayoutBlockFlow {P} at (4,603.75) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,637.75) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 705x36
+                  text run at (0,0) width 599: "This element should have no bottom padding, since negative padding values are not allowed. "
+                  text run at (598,0) width 107: "Both the content"
+                  text run at (0,18) width 411: "background and the normal padding should be aqua (light blue)."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_bottom_inline-expected.txt
new file mode 100644
index 0000000..223bdf1b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_bottom_inline-expected.txt
@@ -0,0 +1,101 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 414x45
+          text run at (0,0) width 406: ".one {padding-bottom: 25px; background-color: aqua;}"
+          text run at (405,0) width 1: " "
+          text run at (0,15) width 414: ".two {padding-bottom: -10px; background-color: aqua;}"
+          text run at (413,15) width 1: " "
+          text run at (0,30) width 0: " "
+      LayoutBlockFlow {P} at (0,110) size 784x72 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 486x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 91: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 772x61 [bgcolor=#00FFFF]
+          LayoutText {#text} at (485,0) size 148x18
+            text run at (485,0) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x15
+            LayoutText {#text} at (632,2) size 25x15
+              text run at (632,2) width 25: "one"
+          LayoutText {#text} at (656,0) size 772x36
+            text run at (656,0) width 116: ", giving it an aqua"
+            text run at (0,18) width 255: "background and a 25px bottom padding"
+        LayoutText {#text} at (254,18) size 781x54
+          text run at (254,18) width 9: ". "
+          text run at (262,18) width 519: "Padding on inline elements does not affect line-height calculations, so all lines in"
+          text run at (0,36) width 301: "this element should have the same line-height. "
+          text run at (300,36) width 475: "There may be implementation-specific limits on how much of the padding"
+          text run at (0,54) width 204: "the user agent is able to display."
+      LayoutBlockFlow {P} at (0,198) size 784x54 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 486x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 91: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 772x36 [bgcolor=#00FFFF]
+          LayoutText {#text} at (485,0) size 148x18
+            text run at (485,0) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x15
+            LayoutText {#text} at (632,2) size 25x15
+              text run at (632,2) width 25: "two"
+          LayoutText {#text} at (656,0) size 772x36
+            text run at (656,0) width 116: ", giving it an aqua"
+            text run at (0,18) width 530: "background and no bottom padding, since negative padding values are not allowed"
+        LayoutText {#text} at (529,18) size 770x36
+          text run at (529,18) width 9: ". "
+          text run at (537,18) width 233: "Padding on inline elements does not"
+          text run at (0,36) width 584: "affect line-height calculations, so all lines in this element should have the same line-height."
+      LayoutTable {TABLE} at (0,268) size 784x178 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x176
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x150
+            LayoutTableCell {TD} at (0,88) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x150 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x72 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 486x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 91: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 738x61 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (485,0) size 148x18
+                    text run at (485,0) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x15
+                    LayoutText {#text} at (632,2) size 25x15
+                      text run at (632,2) width 25: "one"
+                  LayoutText {#text} at (656,0) size 738x36
+                    text run at (656,0) width 82: ", giving it an"
+                    text run at (0,18) width 289: "aqua background and a 25px bottom padding"
+                LayoutText {#text} at (288,18) size 750x54
+                  text run at (288,18) width 9: ". "
+                  text run at (296,18) width 449: "Padding on inline elements does not affect line-height calculations, so"
+                  text run at (0,36) width 372: "all lines in this element should have the same line-height. "
+                  text run at (371,36) width 379: "There may be implementation-specific limits on how much"
+                  text run at (0,54) width 301: "of the padding the user agent is able to display."
+              LayoutBlockFlow {P} at (4,92) size 762x54 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 486x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 91: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 738x36 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (485,0) size 148x18
+                    text run at (485,0) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x15
+                    LayoutText {#text} at (632,2) size 25x15
+                      text run at (632,2) width 25: "two"
+                  LayoutText {#text} at (656,0) size 738x36
+                    text run at (656,0) width 82: ", giving it an"
+                    text run at (0,18) width 564: "aqua background and no bottom padding, since negative padding values are not allowed"
+                LayoutText {#text} at (563,18) size 746x36
+                  text run at (563,18) width 9: ". "
+                  text run at (571,18) width 175: "Padding on inline elements"
+                  text run at (0,36) width 641: "does not affect line-height calculations, so all lines in this element should have the same line-height."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_inline-expected.txt
new file mode 100644
index 0000000..937d996
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_inline-expected.txt
@@ -0,0 +1,127 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 753
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x753 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x753
+    LayoutBlockFlow {BODY} at (8,8) size 769x737 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x60
+        LayoutText {#text} at (0,0) size 359x60
+          text run at (0,0) width 352: ".zero {background-color: silver; padding: 0;}"
+          text run at (351,0) width 1: " "
+          text run at (0,15) width 352: ".one {padding: 25px; background-color: aqua;}"
+          text run at (351,15) width 1: " "
+          text run at (0,30) width 359: ".two {padding: -10px; background-color: aqua;}"
+          text run at (358,30) width 1: " "
+          text run at (0,45) width 0: " "
+      LayoutBlockFlow {P} at (0,125) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,159) size 769x108 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 486x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 91: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 763x86 [bgcolor=#00FFFF]
+          LayoutText {#text} at (510,0) size 148x18
+            text run at (510,0) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x15
+            LayoutText {#text} at (657,2) size 25x15
+              text run at (657,2) width 25: "one"
+          LayoutText {#text} at (681,0) size 763x36
+            text run at (681,0) width 82: ", giving it an"
+            text run at (0,18) width 240: "aqua background and a 25px padding"
+        LayoutText {#text} at (264,18) size 747x90
+          text run at (264,18) width 9: ". "
+          text run at (272,18) width 469: "Padding on inline elements does not affect line-height calculations, so all"
+          text run at (0,36) width 352: "lines in this element should have the same line-height. "
+          text run at (351,36) width 396: "There may be implementation-specific limits on how much of"
+          text run at (0,54) width 462: "the padding the user agent is able to display above and below each line. "
+          text run at (461,54) width 267: "However, there should be at least 25px of"
+          text run at (0,72) width 744: "padding to the left side of the inline box in the first line it appears, and 25px of padding to the right side of the inline"
+          text run at (0,90) width 286: "element box in the last line where it appears."
+      LayoutBlockFlow {P} at (0,283) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,317) size 769x54 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 486x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 91: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 738x36 [bgcolor=#00FFFF]
+          LayoutText {#text} at (485,0) size 148x18
+            text run at (485,0) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x15
+            LayoutText {#text} at (632,2) size 25x15
+              text run at (632,2) width 25: "two"
+          LayoutText {#text} at (656,0) size 738x36
+            text run at (656,0) width 82: ", giving it an"
+            text run at (0,18) width 515: "aqua background and no padding, since negative padding values are not allowed"
+        LayoutText {#text} at (514,18) size 755x36
+          text run at (514,18) width 9: ". "
+          text run at (522,18) width 233: "Padding on inline elements does not"
+          text run at (0,36) width 584: "affect line-height calculations, so all lines in this element should have the same line-height."
+      LayoutBlockFlow {P} at (0,387) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutTable {TABLE} at (0,421) size 769x316 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x314
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x288
+            LayoutTableCell {TD} at (0,157) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x288 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,38) size 747x108 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 486x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 91: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 744x86 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (510,0) size 148x18
+                    text run at (510,0) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x15
+                    LayoutText {#text} at (657,2) size 25x15
+                      text run at (657,2) width 25: "one"
+                  LayoutText {#text} at (681,0) size 744x36
+                    text run at (681,0) width 63: ", giving it"
+                    text run at (0,18) width 259: "an aqua background and a 25px padding"
+                LayoutText {#text} at (283,18) size 740x90
+                  text run at (283,18) width 9: ". "
+                  text run at (291,18) width 449: "Padding on inline elements does not affect line-height calculations, so"
+                  text run at (0,36) width 372: "all lines in this element should have the same line-height. "
+                  text run at (371,36) width 339: "There may be implementation-specific limits on how"
+                  text run at (0,54) width 519: "much of the padding the user agent is able to display above and below each line. "
+                  text run at (518,54) width 214: "However, there should be at least"
+                  text run at (0,72) width 734: "25px of padding to the left side of the inline box in the first line it appears, and 25px of padding to the right side of"
+                  text run at (0,90) width 350: "the inline element box in the last line where it appears."
+              LayoutBlockFlow {P} at (4,162) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,196) size 747x54 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 486x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 91: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 738x36 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (485,0) size 148x18
+                    text run at (485,0) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x15
+                    LayoutText {#text} at (632,2) size 25x15
+                      text run at (632,2) width 25: "two"
+                  LayoutText {#text} at (656,0) size 738x36
+                    text run at (656,0) width 82: ", giving it an"
+                    text run at (0,18) width 515: "aqua background and no padding, since negative padding values are not allowed"
+                LayoutText {#text} at (514,18) size 730x36
+                  text run at (514,18) width 9: ". "
+                  text run at (522,18) width 208: "Padding on inline elements does"
+                  text run at (0,36) width 608: "not affect line-height calculations, so all lines in this element should have the same line-height."
+              LayoutBlockFlow {P} at (4,266) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+layer at (8,115) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_left-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_left-expected.txt
new file mode 100644
index 0000000..de16672
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_left-expected.txt
@@ -0,0 +1,119 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1009
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1009 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1009
+    LayoutBlockFlow {BODY} at (8,8) size 769x993 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x90
+        LayoutText {#text} at (0,0) size 406x90
+          text run at (0,0) width 391: ".zero {background-color: silver; padding-left: 0;}"
+          text run at (390,0) width 1: " "
+          text run at (0,15) width 398: ".one {padding-left: 0.5in; background-color: aqua;}"
+          text run at (397,15) width 1: " "
+          text run at (0,30) width 391: ".two {padding-left: 25px; background-color: aqua;}"
+          text run at (390,30) width 1: " "
+          text run at (0,45) width 398: ".three {padding-left: 5em; background-color: aqua;}"
+          text run at (397,45) width 1: " "
+          text run at (0,60) width 391: ".four {padding-left: 25%; background-color: aqua;}"
+          text run at (390,60) width 1: " "
+          text run at (0,75) width 406: ".five {padding-left: -20px; background-color: aqua;}"
+          text run at (405,75) width 1: " "
+      LayoutBlockFlow {P} at (0,155) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,189) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (48,0) size 702x36
+          text run at (48,0) width 647: "This element should have a left padding of half an inch, which will require extra text in order to test. "
+          text run at (694,0) width 56: "Both the"
+          text run at (48,18) width 413: "content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,241) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (25,0) size 736x36
+          text run at (25,0) width 630: "This element should have a left padding of 25 pixels, which will require extra text in order to test. "
+          text run at (654,0) width 107: "Both the content"
+          text run at (25,18) width 362: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,293) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (80,0) size 654x36
+          text run at (80,0) width 599: "This element should have a left padding of 5em, which will require extra text in order to test. "
+          text run at (678,0) width 56: "Both the"
+          text run at (80,18) width 413: "content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,345) size 769x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (192,0) size 576x54
+          text run at (192,0) width 560: "This element should have a left padding of 25%, which is calculated with respect to the"
+          text run at (192,18) width 185: "width of the parent element. "
+          text run at (376,18) width 392: "Both the content background and the padding should be aqua"
+          text run at (192,36) width 76: "(light blue)."
+      LayoutBlockFlow {UL} at (0,415) size 769x72 [bgcolor=#808080]
+        LayoutListItem {LI} at (25,0) size 744x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 732x18
+            text run at (0,0) width 732: "The left padding on this unordered list has been set to 25 pixels, which will require some extra test in order to test."
+        LayoutListItem {LI} at (25,18) size 744x54 [bgcolor=#FFFFFF]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (25,0) size 714x54
+            text run at (25,0) width 669: "Another list item might not be such a bad idea, either, considering that such things do need to be double-"
+            text run at (25,18) width 61: "checked. "
+            text run at (85,18) width 654: "This list item has its left padding also set to 25 pixels, which should combine with the list's padding to"
+            text run at (25,36) width 168: "make 50 pixels of margin."
+      LayoutBlockFlow {P} at (0,503) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 761x36
+          text run at (0,0) width 575: "This element should have no left padding, since negative padding values are not allowed. "
+          text run at (574,0) width 187: "Both the content background"
+          text run at (0,18) width 332: "and the normal padding should be aqua (light blue)."
+      LayoutTable {TABLE} at (0,555) size 769x438 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x436
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x410
+            LayoutTableCell {TD} at (0,218) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x410 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,38) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (48,0) size 679x36
+                  text run at (48,0) width 647: "This element should have a left padding of half an inch, which will require extra text in order to test. "
+                  text run at (694,0) width 33: "Both"
+                  text run at (48,18) width 436: "the content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,90) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (25,0) size 685x36
+                  text run at (25,0) width 630: "This element should have a left padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (654,0) width 56: "Both the"
+                  text run at (25,18) width 413: "content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,142) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (80,0) size 654x36
+                  text run at (80,0) width 599: "This element should have a left padding of 5em, which will require extra text in order to test. "
+                  text run at (678,0) width 56: "Both the"
+                  text run at (80,18) width 413: "content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,194) size 747x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (186,0) size 560x54
+                  text run at (186,0) width 560: "This element should have a left padding of 25%, which is calculated with respect to the"
+                  text run at (186,18) width 185: "width of the parent element. "
+                  text run at (370,18) width 358: "Both the content background and the padding should be"
+                  text run at (186,36) width 111: "aqua (light blue)."
+              LayoutBlockFlow {UL} at (4,264) size 747x90 [bgcolor=#808080]
+                LayoutListItem {LI} at (25,0) size 722x36
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 702x36
+                    text run at (0,0) width 702: "The left padding on this unordered list has been set to 25 pixels, which will require some extra test in order to"
+                    text run at (0,18) width 27: "test."
+                LayoutListItem {LI} at (25,36) size 722x54 [bgcolor=#FFFFFF]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (25,0) size 669x54
+                    text run at (25,0) width 669: "Another list item might not be such a bad idea, either, considering that such things do need to be double-"
+                    text run at (25,18) width 61: "checked. "
+                    text run at (85,18) width 582: "This list item has its left padding also set to 25 pixels, which should combine with the list's"
+                    text run at (25,36) width 240: "padding to make 50 pixels of margin."
+              LayoutBlockFlow {P} at (4,370) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 681x36
+                  text run at (0,0) width 575: "This element should have no left padding, since negative padding values are not allowed. "
+                  text run at (574,0) width 107: "Both the content"
+                  text run at (0,18) width 411: "background and the normal padding should be aqua (light blue)."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_left_inline-expected.txt
new file mode 100644
index 0000000..bf6956b1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_left_inline-expected.txt
@@ -0,0 +1,102 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 398x45
+          text run at (0,0) width 391: ".one {padding-left: 25px; background-color: aqua;}"
+          text run at (390,0) width 1: " "
+          text run at (0,15) width 398: ".two {padding-left: -10px; background-color: aqua;}"
+          text run at (397,15) width 1: " "
+          text run at (0,30) width 0: " "
+      LayoutBlockFlow {P} at (0,110) size 784x54 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 551x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 156: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 197x18 [bgcolor=#00FFFF]
+          LayoutText {#text} at (575,0) size 149x18
+            text run at (575,0) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 24x15
+            LayoutText {#text} at (723,2) size 24x15
+              text run at (723,2) width 24: "one"
+        LayoutText {#text} at (0,18) size 582x18
+          text run at (0,18) width 582: "which should result in 25-pixel left padding (which should also be a light blue) only in the "
+        LayoutInline {STRONG} at (0,0) size 29x18
+          LayoutText {#text} at (581,18) size 29x18
+            text run at (581,18) width 29: "first"
+        LayoutText {#text} at (609,18) size 761x36
+          text run at (609,18) width 152: " line in which the inline"
+          text run at (0,36) width 81: "box appears."
+      LayoutBlockFlow {P} at (0,180) size 784x54 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 551x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 156: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 172x18 [bgcolor=#00FFFF]
+          LayoutText {#text} at (550,0) size 149x18
+            text run at (550,0) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 24x15
+            LayoutText {#text} at (698,2) size 24x15
+              text run at (698,2) width 24: "two"
+        LayoutText {#text} at (721,0) size 765x36
+          text run at (721,0) width 44: " which"
+          text run at (0,18) width 523: "should result in -10px left padding (which should also be a light blue) only in the "
+        LayoutInline {STRONG} at (0,0) size 29x18
+          LayoutText {#text} at (522,18) size 29x18
+            text run at (522,18) width 29: "first"
+        LayoutText {#text} at (550,18) size 730x36
+          text run at (550,18) width 180: " line in which the inline box"
+          text run at (0,36) width 53: "appears."
+      LayoutTable {TABLE} at (0,250) size 784x160 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x158
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x132
+            LayoutTableCell {TD} at (0,79) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x132 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x54 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 551x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 156: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 197x18 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (575,0) size 149x18
+                    text run at (575,0) width 149: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 24x15
+                    LayoutText {#text} at (723,2) size 24x15
+                      text run at (723,2) width 24: "one"
+                LayoutText {#text} at (0,18) size 582x18
+                  text run at (0,18) width 582: "which should result in 25-pixel left padding (which should also be a light blue) only in the "
+                LayoutInline {STRONG} at (0,0) size 29x18
+                  LayoutText {#text} at (581,18) size 29x18
+                    text run at (581,18) width 29: "first"
+                LayoutText {#text} at (609,18) size 761x36
+                  text run at (609,18) width 152: " line in which the inline"
+                  text run at (0,36) width 81: "box appears."
+              LayoutBlockFlow {P} at (4,74) size 762x54 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 551x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 156: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 172x18 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (550,0) size 149x18
+                    text run at (550,0) width 149: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 24x15
+                    LayoutText {#text} at (698,2) size 24x15
+                      text run at (698,2) width 24: "two"
+                LayoutText {#text} at (0,18) size 566x18
+                  text run at (0,18) width 566: "which should result in -10px left padding (which should also be a light blue) only in the "
+                LayoutInline {STRONG} at (0,0) size 29x18
+                  LayoutText {#text} at (565,18) size 29x18
+                    text run at (565,18) width 29: "first"
+                LayoutText {#text} at (593,18) size 745x36
+                  text run at (593,18) width 152: " line in which the inline"
+                  text run at (0,36) width 81: "box appears."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_right-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_right-expected.txt
new file mode 100644
index 0000000..5604ee9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_right-expected.txt
@@ -0,0 +1,136 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1171
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1171 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1171
+    LayoutBlockFlow {BODY} at (8,8) size 769x1155 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x90
+        LayoutText {#text} at (0,0) size 562x90
+          text run at (0,0) width 398: ".zero {background-color: silver; padding-right: 0;}"
+          text run at (397,0) width 1: " "
+          text run at (0,15) width 554: ".one {padding-right: 0.5in; text-align: right; background-color: aqua;}"
+          text run at (553,15) width 1: " "
+          text run at (0,30) width 547: ".two {padding-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (546,30) width 1: " "
+          text run at (0,45) width 554: ".three {padding-right: 5em; text-align: right; background-color: aqua;}"
+          text run at (553,45) width 1: " "
+          text run at (0,60) width 547: ".four {padding-right: 25%; text-align: right; background-color: aqua;}"
+          text run at (546,60) width 1: " "
+          text run at (0,75) width 562: ".five {padding-right: -20px; text-align: right; background-color: aqua;}"
+          text run at (561,75) width 1: " "
+      LayoutBlockFlow {P} at (0,155) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,189) size 769x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (10,0) size 711x54
+          text run at (10,0) width 657: "This element should have a right padding of half an inch, which will require extra text in order to test. "
+          text run at (666,0) width 55: "Both the"
+          text run at (34,18) width 418: "content background and the padding should be aqua (light blue). "
+          text run at (451,18) width 270: "The text has been right-aligned in order to"
+          text run at (486,36) width 235: "make the right padding easier to see."
+      LayoutBlockFlow {P} at (0,259) size 769x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (50,0) size 725x54
+          text run at (50,0) width 640: "This element should have a right padding of 25 pixels, which will require extra text in order to test. "
+          text run at (689,0) width 55: "Both the"
+          text run at (19,18) width 417: "content background and the padding should be aqua (light blue). "
+          text run at (435,18) width 309: "The text has been right-aligned in order to make"
+          text run at (548,36) width 196: "the right padding easier to see."
+      LayoutBlockFlow {P} at (0,329) size 769x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (22,0) size 687x54
+          text run at (22,0) width 613: "This element should have a right padding of 5 em, which will require extra text in order to test. "
+          text run at (634,0) width 55: "Both the"
+          text run at (2,18) width 418: "content background and the padding should be aqua (light blue). "
+          text run at (419,18) width 270: "The text has been right-aligned in order to"
+          text run at (454,36) width 235: "make the right padding easier to see."
+      LayoutBlockFlow {P} at (0,399) size 769x72 [bgcolor=#00FFFF]
+        LayoutText {#text} at (8,0) size 576x72
+          text run at (8,0) width 569: "This element should have a right padding of 25%, which is calculated with respect to the"
+          text run at (1,18) width 185: "width of the parent element. "
+          text run at (185,18) width 392: "Both the content background and the padding should be aqua"
+          text run at (17,36) width 81: "(light blue). "
+          text run at (97,36) width 480: "The text has been right-aligned in order to make the right padding easier to"
+          text run at (552,54) width 25: "see."
+      LayoutBlockFlow {UL} at (0,487) size 769x72 [bgcolor=#808080]
+        LayoutListItem {LI} at (40,0) size 704x36
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (8,0) size 696x36
+            text run at (8,0) width 696: "The right padding on this unordered list has been set to 25 pixels, which will require some extra text in order"
+            text run at (661,18) width 43: "to test."
+        LayoutListItem {LI} at (40,36) size 704x36 [bgcolor=#FFFFFF]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (5,0) size 674x36
+            text run at (5,0) width 674: "This list item has a right padding of 25 pixels, which will appear to the left of the gray padding of the UL"
+            text run at (624,18) width 55: "element."
+      LayoutBlockFlow {P} at (0,575) size 769x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (79,0) size 747x54
+          text run at (79,0) width 585: "This element should have no right padding, since negative padding values are not allowed. "
+          text run at (663,0) width 106: "Both the content"
+          text run at (22,18) width 416: "background and the normal padding should be aqua (light blue). "
+          text run at (437,18) width 332: "The text has been right-aligned in order to make the"
+          text run at (549,36) width 220: "lack of right padding easier to see."
+      LayoutTable {TABLE} at (0,645) size 769x510 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x508
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x482
+            LayoutTableCell {TD} at (0,254) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x482 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,38) size 747x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (12,0) size 694x54
+                  text run at (12,0) width 656: "This element should have a right padding of half an inch, which will require extra text in order to test. "
+                  text run at (667,0) width 32: "Both"
+                  text run at (5,18) width 441: "the content background and the padding should be aqua (light blue). "
+                  text run at (445,18) width 254: "The text has been right-aligned in order"
+                  text run at (448,36) width 251: "to make the right padding easier to see."
+              LayoutBlockFlow {P} at (4,108) size 747x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (28,0) size 694x54
+                  text run at (28,0) width 640: "This element should have a right padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (667,0) width 55: "Both the"
+                  text run at (35,18) width 418: "content background and the padding should be aqua (light blue). "
+                  text run at (452,18) width 270: "The text has been right-aligned in order to"
+                  text run at (487,36) width 235: "make the right padding easier to see."
+              LayoutBlockFlow {P} at (4,178) size 747x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 667x54
+                  text run at (0,0) width 613: "This element should have a right padding of 5 em, which will require extra text in order to test. "
+                  text run at (612,0) width 55: "Both the"
+                  text run at (35,18) width 417: "content background and the padding should be aqua (light blue). "
+                  text run at (451,18) width 216: "The text has been right-aligned in"
+                  text run at (378,36) width 289: "order to make the right padding easier to see."
+              LayoutBlockFlow {P} at (4,248) size 747x72 [bgcolor=#00FFFF]
+                LayoutText {#text} at (15,0) size 556x72
+                  text run at (15,0) width 546: "This element should have a right padding of 25%, which is calculated with respect to"
+                  text run at (14,18) width 209: "the width of the parent element. "
+                  text run at (222,18) width 339: "Both the content background and the padding should"
+                  text run at (5,36) width 134: "be aqua (light blue). "
+                  text run at (138,36) width 423: "The text has been right-aligned in order to make the right padding"
+                  text run at (478,54) width 83: "easier to see."
+              LayoutBlockFlow {UL} at (4,336) size 747x72 [bgcolor=#808080]
+                LayoutListItem {LI} at (40,0) size 682x36
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (24,0) size 658x36
+                    text run at (24,0) width 658: "The right padding on this unordered list has been set to 25 pixels, which will require some extra text in"
+                    text run at (601,18) width 81: "order to test."
+                LayoutListItem {LI} at (40,36) size 682x36 [bgcolor=#FFFFFF]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (9,0) size 648x36
+                    text run at (9,0) width 648: "This list item has a right padding of 25 pixels, which will appear to the left of the gray padding of the"
+                    text run at (577,18) width 80: "UL element."
+              LayoutBlockFlow {P} at (4,424) size 747x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (57,0) size 747x54
+                  text run at (57,0) width 585: "This element should have no right padding, since negative padding values are not allowed. "
+                  text run at (641,0) width 106: "Both the content"
+                  text run at (0,18) width 416: "background and the normal padding should be aqua (light blue). "
+                  text run at (415,18) width 332: "The text has been right-aligned in order to make the"
+                  text run at (527,36) width 220: "lack of right padding easier to see."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_right_inline-expected.txt
new file mode 100644
index 0000000..d545cb63
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_right_inline-expected.txt
@@ -0,0 +1,105 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 554x45
+          text run at (0,0) width 547: ".one {padding-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (546,0) width 1: " "
+          text run at (0,15) width 554: ".two {padding-right: -10px; text-align: right; background-color: aqua;}"
+          text run at (553,15) width 1: " "
+          text run at (0,30) width 0: " "
+      LayoutBlockFlow {P} at (0,110) size 784x54 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 551x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 156: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 197x18 [bgcolor=#00FFFF]
+          LayoutText {#text} at (550,0) size 149x18
+            text run at (550,0) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 24x15
+            LayoutText {#text} at (698,2) size 24x15
+              text run at (698,2) width 24: "one"
+        LayoutText {#text} at (746,0) size 751x36
+          text run at (746,0) width 5: ","
+          text run at (0,18) width 580: "which should result in 25-pixel right padding (which should also be light blue) only in the "
+        LayoutInline {STRONG} at (0,0) size 25x18
+          LayoutText {#text} at (579,18) size 25x18
+            text run at (579,18) width 25: "last"
+        LayoutText {#text} at (603,18) size 783x36
+          text run at (603,18) width 180: " line in which the inline box"
+          text run at (0,36) width 53: "appears."
+      LayoutBlockFlow {P} at (0,180) size 784x54 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 551x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 156: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 172x18 [bgcolor=#00FFFF]
+          LayoutText {#text} at (550,0) size 149x18
+            text run at (550,0) width 149: "inline element of class "
+          LayoutInline {TT} at (0,0) size 24x15
+            LayoutText {#text} at (698,2) size 24x15
+              text run at (698,2) width 24: "two"
+        LayoutText {#text} at (721,0) size 769x36
+          text run at (721,0) width 48: ", which"
+          text run at (0,18) width 559: "should result in no right padding, since negative padding values are not allowed, in the "
+        LayoutInline {STRONG} at (0,0) size 25x18
+          LayoutText {#text} at (558,18) size 25x18
+            text run at (558,18) width 25: "last"
+        LayoutText {#text} at (582,18) size 763x36
+          text run at (582,18) width 181: " line in which the inline box"
+          text run at (0,36) width 53: "appears."
+      LayoutTable {TABLE} at (0,250) size 784x160 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x158
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x132
+            LayoutTableCell {TD} at (0,79) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x132 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x54 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 551x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 156: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 197x18 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (550,0) size 149x18
+                    text run at (550,0) width 149: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 24x15
+                    LayoutText {#text} at (698,2) size 24x15
+                      text run at (698,2) width 24: "one"
+                LayoutText {#text} at (746,0) size 751x36
+                  text run at (746,0) width 5: ","
+                  text run at (0,18) width 580: "which should result in 25-pixel right padding (which should also be light blue) only in the "
+                LayoutInline {STRONG} at (0,0) size 25x18
+                  LayoutText {#text} at (579,18) size 25x18
+                    text run at (579,18) width 25: "last"
+                LayoutText {#text} at (603,18) size 755x36
+                  text run at (603,18) width 152: " line in which the inline"
+                  text run at (0,36) width 81: "box appears."
+              LayoutBlockFlow {P} at (4,74) size 762x54 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 551x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 156: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 172x18 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (550,0) size 149x18
+                    text run at (550,0) width 149: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 24x15
+                    LayoutText {#text} at (698,2) size 24x15
+                      text run at (698,2) width 24: "two"
+                LayoutText {#text} at (721,0) size 726x36
+                  text run at (721,0) width 5: ","
+                  text run at (0,18) width 602: "which should result in no right padding, since negative padding values are not allowed, in the "
+                LayoutInline {STRONG} at (0,0) size 25x18
+                  LayoutText {#text} at (601,18) size 25x18
+                    text run at (601,18) width 25: "last"
+                LayoutText {#text} at (625,18) size 737x36
+                  text run at (625,18) width 112: " line in which the"
+                  text run at (0,36) width 122: "inline box appears."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_top-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_top-expected.txt
new file mode 100644
index 0000000..411a057
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_top-expected.txt
@@ -0,0 +1,92 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1464
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1464 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1464.25
+    LayoutBlockFlow {BODY} at (8,8) size 769x1448.25 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x90
+        LayoutText {#text} at (0,0) size 398x90
+          text run at (0,0) width 383: ".zero {background-color: silver; padding-top: 0;}"
+          text run at (382,0) width 1: " "
+          text run at (0,15) width 391: ".one {padding-top: 0.5in; background-color: aqua;}"
+          text run at (390,15) width 1: " "
+          text run at (0,30) width 383: ".two {padding-top: 25px; background-color: aqua;}"
+          text run at (382,30) width 1: " "
+          text run at (0,45) width 391: ".three {padding-top: 5em; background-color: aqua;}"
+          text run at (390,45) width 1: " "
+          text run at (0,60) width 383: ".four {padding-top: 25%; background-color: aqua;}"
+          text run at (382,60) width 1: " "
+          text run at (0,75) width 398: ".five {padding-top: -20px; background-color: aqua;}"
+          text run at (397,75) width 1: " "
+      LayoutBlockFlow {P} at (0,155) size 769x18 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,189) size 769x84 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,48) size 752x36
+          text run at (0,48) width 647: "This element should have a top padding of half an inch, which will require extra text in order to test. "
+          text run at (646,48) width 106: "Both the content"
+          text run at (0,66) width 362: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,289) size 769x61 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,25) size 735x36
+          text run at (0,25) width 629: "This element should have a top padding of 25 pixels, which will require extra text in order to test. "
+          text run at (628,25) width 107: "Both the content"
+          text run at (0,43) width 362: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,366) size 769x116 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,80) size 708x36
+          text run at (0,80) width 603: "This element should have a top padding of 5 em, which will require extra text in order to test. "
+          text run at (602,80) width 106: "Both the content"
+          text run at (0,98) width 362: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,498) size 769x228.25 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,192) size 747x36
+          text run at (0,192) width 742: "This element should have a top padding of 25%, which is calculated with respect to the width of the parent element."
+          text run at (0,210) width 475: "Both the content background and the padding should be aqua (light blue). "
+          text run at (475,210) width 272: "This will require extra text in order to test."
+      LayoutBlockFlow {P} at (0,742.25) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 760x36
+          text run at (0,0) width 575: "This element should have no top padding, since negative padding values are not allowed. "
+          text run at (574,0) width 186: "Both the content background"
+          text run at (0,18) width 332: "and the normal padding should be aqua (light blue)."
+      LayoutTable {TABLE} at (0,794.25) size 769x654 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x652
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x626
+            LayoutTableCell {TD} at (0,326) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x625.75 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,38) size 747x84 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,48) size 701x36
+                  text run at (0,48) width 647: "This element should have a top padding of half an inch, which will require extra text in order to test. "
+                  text run at (646,48) width 55: "Both the"
+                  text run at (0,66) width 413: "content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,138) size 747x61 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,25) size 735x36
+                  text run at (0,25) width 629: "This element should have a top padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (628,25) width 107: "Both the content"
+                  text run at (0,43) width 362: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,215) size 747x116 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,80) size 708x36
+                  text run at (0,80) width 603: "This element should have a top padding of 5 em, which will require extra text in order to test. "
+                  text run at (602,80) width 106: "Both the content"
+                  text run at (0,98) width 362: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,347) size 747x222.75 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,187) size 747x36
+                  text run at (0,187) width 742: "This element should have a top padding of 25%, which is calculated with respect to the width of the parent element."
+                  text run at (0,205) width 475: "Both the content background and the padding should be aqua (light blue). "
+                  text run at (475,205) width 272: "This will require extra text in order to test."
+              LayoutBlockFlow {P} at (4,585.75) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 680x36
+                  text run at (0,0) width 575: "This element should have no top padding, since negative padding values are not allowed. "
+                  text run at (574,0) width 106: "Both the content"
+                  text run at (0,18) width 411: "background and the normal padding should be aqua (light blue)."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_top_inline-expected.txt
new file mode 100644
index 0000000..fc5d63d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/padding_top_inline-expected.txt
@@ -0,0 +1,101 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 391x45
+          text run at (0,0) width 383: ".one {padding-top: 25px; background-color: aqua;}"
+          text run at (382,0) width 1: " "
+          text run at (0,15) width 391: ".two {padding-top: -10px; background-color: aqua;}"
+          text run at (390,15) width 1: " "
+          text run at (0,30) width 0: " "
+      LayoutBlockFlow {P} at (0,110) size 784x72 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 486x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 91: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 772x61 [bgcolor=#00FFFF]
+          LayoutText {#text} at (485,0) size 148x18
+            text run at (485,0) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x15
+            LayoutText {#text} at (632,2) size 25x15
+              text run at (632,2) width 25: "one"
+          LayoutText {#text} at (656,0) size 772x36
+            text run at (656,0) width 116: ", giving it an aqua"
+            text run at (0,18) width 230: "background and a 25px top padding"
+        LayoutText {#text} at (229,18) size 784x54
+          text run at (229,18) width 9: ". "
+          text run at (237,18) width 547: "Padding on inline elements does not affect line-height calculations, so all lines in this"
+          text run at (0,36) width 274: "element should have the same line-height. "
+          text run at (273,36) width 499: "There may be implementation-specific limits on how much of the padding the"
+          text run at (0,54) width 181: "user agent is able to display."
+      LayoutBlockFlow {P} at (0,198) size 784x54 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 486x18
+          text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+          text run at (395,0) width 91: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 772x36 [bgcolor=#00FFFF]
+          LayoutText {#text} at (485,0) size 148x18
+            text run at (485,0) width 148: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x15
+            LayoutText {#text} at (632,2) size 25x15
+              text run at (632,2) width 25: "two"
+          LayoutText {#text} at (656,0) size 772x36
+            text run at (656,0) width 116: ", giving it an aqua"
+            text run at (0,18) width 505: "background and no top padding, since negative padding values are not allowed"
+        LayoutText {#text} at (504,18) size 745x36
+          text run at (504,18) width 9: ". "
+          text run at (512,18) width 233: "Padding on inline elements does not"
+          text run at (0,36) width 584: "affect line-height calculations, so all lines in this element should have the same line-height."
+      LayoutTable {TABLE} at (0,268) size 784x178 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x176
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x150
+            LayoutTableCell {TD} at (0,88) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x150 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x72 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 486x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 91: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 738x61 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (485,0) size 148x18
+                    text run at (485,0) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x15
+                    LayoutText {#text} at (632,2) size 25x15
+                      text run at (632,2) width 25: "one"
+                  LayoutText {#text} at (656,0) size 738x36
+                    text run at (656,0) width 82: ", giving it an"
+                    text run at (0,18) width 264: "aqua background and a 25px top padding"
+                LayoutText {#text} at (263,18) size 747x54
+                  text run at (263,18) width 9: ". "
+                  text run at (271,18) width 469: "Padding on inline elements does not affect line-height calculations, so all"
+                  text run at (0,36) width 352: "lines in this element should have the same line-height. "
+                  text run at (351,36) width 396: "There may be implementation-specific limits on how much of"
+                  text run at (0,54) width 283: "the padding the user agent is able to display."
+              LayoutBlockFlow {P} at (4,92) size 762x54 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 486x18
+                  text run at (0,0) width 396: "This element is unstyled save for a background color of gray. "
+                  text run at (395,0) width 91: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 738x36 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (485,0) size 148x18
+                    text run at (485,0) width 148: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x15
+                    LayoutText {#text} at (632,2) size 25x15
+                      text run at (632,2) width 25: "two"
+                  LayoutText {#text} at (656,0) size 738x36
+                    text run at (656,0) width 82: ", giving it an"
+                    text run at (0,18) width 539: "aqua background and no top padding, since negative padding values are not allowed"
+                LayoutText {#text} at (538,18) size 755x36
+                  text run at (538,18) width 9: ". "
+                  text run at (546,18) width 209: "Padding on inline elements does"
+                  text run at (0,36) width 608: "not affect line-height calculations, so all lines in this element should have the same line-height."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/width-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/width-expected.txt
new file mode 100644
index 0000000..ab85400
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/box_properties/width-expected.txt
@@ -0,0 +1,87 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1378
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1378 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1378
+    LayoutBlockFlow {BODY} at (8,8) size 769x1362 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x45
+        LayoutText {#text} at (0,0) size 149x45
+          text run at (0,0) width 149: ".one {width: 50px;}"
+          text run at (148,0) width 1: " "
+          text run at (0,15) width 141: ".two {width: 50%;}"
+          text run at (140,15) width 1: " "
+          text run at (0,30) width 149: "TABLE {width: 50%;}"
+          text run at (148,30) width 1: " "
+      LayoutBlockFlow (anonymous) at (0,102) size 769x50
+        LayoutImage {IMG} at (0,0) size 50x50
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,168) size 769x18
+        LayoutText {#text} at (0,0) size 291x18
+          text run at (0,0) width 291: "The square above should be fifty pixels wide."
+      LayoutBlockFlow (anonymous) at (0,202) size 769x385
+        LayoutImage {IMG} at (0,0) size 384.50x384.50
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,603) size 769x18
+        LayoutText {#text} at (0,0) size 683x18
+          text run at (0,0) width 683: "The square above should be half as wide as the image's parent element (either the BODY or the table cell)."
+      LayoutBlockFlow {P} at (0,637) size 384.50x108
+        LayoutText {#text} at (0,0) size 375x72
+          text run at (0,0) width 336: "This paragraph should be half the width of its parent"
+          text run at (0,18) width 375: "element (either the BODY or the table, which should itself"
+          text run at (0,36) width 255: "be half as wide as the BODY element). "
+          text run at (254,36) width 108: "This is extra text"
+          text run at (0,54) width 329: "included to ensure that this will be a fair test of the "
+        LayoutInline {CODE} at (0,0) size 40x15
+          LayoutText {#text} at (328,56) size 40x15
+            text run at (328,56) width 40: "width"
+        LayoutText {#text} at (0,72) size 379x36
+          text run at (0,72) width 379: "property without the need for the user to resize the viewing"
+          text run at (0,90) width 55: "window."
+      LayoutTable {TABLE} at (0,761) size 384x601 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 382x599
+          LayoutTableRow {TR} at (0,0) size 382x26
+            LayoutTableCell {TD} at (0,0) size 382x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 382x573
+            LayoutTableCell {TD} at (0,299) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 370x573 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (4,4) size 362x50
+                LayoutImage {IMG} at (0,0) size 50x50
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,70) size 362x18
+                LayoutText {#text} at (0,0) size 291x18
+                  text run at (0,0) width 291: "The square above should be fifty pixels wide."
+              LayoutBlockFlow (anonymous) at (4,104) size 362x181
+                LayoutImage {IMG} at (0,0) size 181x181
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,301) size 362x36
+                LayoutText {#text} at (0,0) size 353x36
+                  text run at (0,0) width 353: "The square above should be half as wide as the image's"
+                  text run at (0,18) width 326: "parent element (either the BODY or the table cell)."
+              LayoutBlockFlow {P} at (4,353) size 181x216
+                LayoutText {#text} at (0,0) size 174x162
+                  text run at (0,0) width 163: "This paragraph should be"
+                  text run at (0,18) width 170: "half the width of its parent"
+                  text run at (0,36) width 170: "element (either the BODY"
+                  text run at (0,54) width 166: "or the table, which should"
+                  text run at (0,72) width 174: "itself be half as wide as the"
+                  text run at (0,90) width 114: "BODY element). "
+                  text run at (113,90) width 44: "This is"
+                  text run at (0,108) width 136: "extra text included to"
+                  text run at (0,126) width 156: "ensure that this will be a"
+                  text run at (0,144) width 94: "fair test of the "
+                LayoutInline {CODE} at (0,0) size 40x15
+                  LayoutText {#text} at (93,146) size 40x15
+                    text run at (93,146) width 40: "width"
+                LayoutText {#text} at (0,162) size 165x54
+                  text run at (0,162) width 165: "property without the need"
+                  text run at (0,180) width 155: "for the user to resize the"
+                  text run at (0,198) width 111: "viewing window."
+layer at (8,100) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/cascade/cascade_order-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/cascade/cascade_order-expected.txt
new file mode 100644
index 0000000..d7c38c7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/cascade/cascade_order-expected.txt
@@ -0,0 +1,143 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 790
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x790 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x790
+    LayoutBlockFlow {BODY} at (8,8) size 769x774 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x165
+        LayoutText {#text} at (0,0) size 562x165
+          text run at (0,0) width 562: "<LINK rel=\"stylesheet\" type=\"text/css\" HREF=\"../resources/linktest.css\">"
+          text run at (561,0) width 1: " "
+          text run at (0,15) width 149: "LI {color: purple;}"
+          text run at (148,15) width 1: " "
+          text run at (0,30) width 157: "UL LI {color: blue;}"
+          text run at (156,30) width 1: " "
+          text run at (0,45) width 180: "UL LI LI {color: gray;}"
+          text run at (179,45) width 1: " "
+          text run at (0,60) width 172: "LI.red {color: green;}"
+          text run at (171,60) width 1: " "
+          text run at (0,75) width 211: "UL LI.mar {color: #660000;}"
+          text run at (210,75) width 1: " "
+          text run at (0,90) width 196: "UL LI#gre {color: green;}"
+          text run at (195,90) width 1: " "
+          text run at (0,105) width 157: ".test {color: blue;}"
+          text run at (156,105) width 1: " "
+          text run at (0,120) width 172: ".test {color: purple;}"
+          text run at (171,120) width 1: " "
+          text run at (0,135) width 289: ".one {text-decoration: line-through;}"
+          text run at (288,135) width 1: " "
+          text run at (0,150) width 0: " "
+      LayoutBlockFlow {UL} at (0,230) size 769x144
+        LayoutListItem {LI} at (40,0) size 729x18 [color=#0000FF]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 194x18
+            text run at (0,0) width 194: "This list item should be blue..."
+        LayoutListItem {LI} at (40,18) size 729x72 [color=#0000FF]
+          LayoutBlockFlow (anonymous) at (0,0) size 729x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 295x18
+              text run at (0,0) width 295: "...and so should this; neither should be purple."
+          LayoutBlockFlow {UL} at (0,18) size 729x54
+            LayoutListItem {LI} at (40,0) size 689x18 [color=#808080]
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 194x18
+                text run at (0,0) width 194: "This list item should be gray..."
+            LayoutListItem {LI} at (40,18) size 689x18 [color=#808080]
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 116x18
+                text run at (0,0) width 116: "...as should this...."
+            LayoutListItem {LI} at (40,36) size 689x18 [color=#008000]
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutText {#text} at (0,0) size 196x18
+                text run at (0,0) width 196: "...but this one should be green."
+        LayoutListItem {LI} at (40,90) size 729x18 [color=#660000]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 174x18
+            text run at (0,0) width 174: "This ought to be dark red..."
+        LayoutListItem {LI} at (40,108) size 729x18 [color=#008000]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 87x18
+            text run at (0,0) width 87: "...this green..."
+        LayoutListItem {LI} at (40,126) size 729x18 [color=#0000FF]
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 98x18
+            text run at (0,0) width 98: "...and this blue."
+      LayoutBlockFlow {P} at (0,390) size 769x18 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 282x18
+          text run at (0,0) width 282: "This sentence should be blue (STYLE attr.)."
+      LayoutBlockFlow {P} at (0,424) size 769x18 [color=#800080]
+        LayoutText {#text} at (0,0) size 208x18
+          text run at (0,0) width 208: "This sentence should be purple ["
+        LayoutInline {CODE} at (0,0) size 95x15
+          LayoutText {#text} at (207,2) size 95x15
+            text run at (207,2) width 95: "class=\"test\""
+        LayoutText {#text} at (301,0) size 10x18
+          text run at (301,0) width 10: "]."
+      LayoutBlockFlow {P} at (0,458) size 769x18
+        LayoutText {#text} at (0,0) size 697x18
+          text run at (0,0) width 697: "This text should be stricken (overriding the imported underline; only works if LINKed sheets are supported)."
+      LayoutTable {TABLE} at (0,492) size 719x282 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 717x280
+          LayoutTableRow {TR} at (0,0) size 717x26
+            LayoutTableCell {TD} at (0,0) size 717x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 717x254
+            LayoutTableCell {TD} at (0,140) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 705x254 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {UL} at (4,4) size 697x144
+                LayoutListItem {LI} at (40,0) size 657x18 [color=#0000FF]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 194x18
+                    text run at (0,0) width 194: "This list item should be blue..."
+                LayoutListItem {LI} at (40,18) size 657x72 [color=#0000FF]
+                  LayoutBlockFlow (anonymous) at (0,0) size 657x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 295x18
+                      text run at (0,0) width 295: "...and so should this; neither should be purple."
+                  LayoutBlockFlow {UL} at (0,18) size 657x54
+                    LayoutListItem {LI} at (40,0) size 617x18 [color=#808080]
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 194x18
+                        text run at (0,0) width 194: "This list item should be gray..."
+                    LayoutListItem {LI} at (40,18) size 617x18 [color=#808080]
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 116x18
+                        text run at (0,0) width 116: "...as should this...."
+                    LayoutListItem {LI} at (40,36) size 617x18 [color=#008000]
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutText {#text} at (0,0) size 196x18
+                        text run at (0,0) width 196: "...but this one should be green."
+                LayoutListItem {LI} at (40,90) size 657x18 [color=#660000]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 174x18
+                    text run at (0,0) width 174: "This ought to be dark red..."
+                LayoutListItem {LI} at (40,108) size 657x18 [color=#008000]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 87x18
+                    text run at (0,0) width 87: "...this green..."
+                LayoutListItem {LI} at (40,126) size 657x18 [color=#0000FF]
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 98x18
+                    text run at (0,0) width 98: "...and this blue."
+              LayoutBlockFlow {P} at (4,164) size 697x18 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 282x18
+                  text run at (0,0) width 282: "This sentence should be blue (STYLE attr.)."
+              LayoutBlockFlow {P} at (4,198) size 697x18 [color=#800080]
+                LayoutText {#text} at (0,0) size 208x18
+                  text run at (0,0) width 208: "This sentence should be purple ["
+                LayoutInline {CODE} at (0,0) size 95x15
+                  LayoutText {#text} at (207,2) size 95x15
+                    text run at (207,2) width 95: "class=\"test\""
+                LayoutText {#text} at (301,0) size 10x18
+                  text run at (301,0) width 10: "]."
+              LayoutBlockFlow {P} at (4,232) size 697x18
+                LayoutText {#text} at (0,0) size 697x18
+                  text run at (0,0) width 697: "This text should be stricken (overriding the imported underline; only works if LINKed sheets are supported)."
+layer at (8,220) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,212) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/cascade/important-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/cascade/important-expected.txt
new file mode 100644
index 0000000..8444083ee
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/cascade/important-expected.txt
@@ -0,0 +1,69 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x60
+        LayoutText {#text} at (0,0) size 227x60
+          text run at (0,0) width 227: "P {color: green ! important;}"
+          text run at (226,0) width 1: " "
+          text run at (0,15) width 118: "P {color: red;}"
+          text run at (117,15) width 1: " "
+          text run at (0,30) width 172: "P#id1 {color: purple;}"
+          text run at (171,30) width 1: " "
+          text run at (0,45) width 0: " "
+      LayoutBlockFlow {P} at (0,125) size 784x36 [color=#008000]
+        LayoutText {#text} at (0,0) size 784x36
+          text run at (0,0) width 784: "This sentence should be green, because the declaration marked important should override any other normal declaration for"
+          text run at (0,18) width 366: "the same element, even if it occurs later in the stylesheet."
+      LayoutBlockFlow {P} at (0,177) size 784x36 [color=#008000]
+        LayoutText {#text} at (0,0) size 409x18
+          text run at (0,0) width 409: "This sentence should also be green, even though it has an ID of "
+        LayoutInline {TT} at (0,0) size 25x15
+          LayoutText {#text} at (408,2) size 25x15
+            text run at (408,2) width 25: "id1"
+        LayoutText {#text} at (432,0) size 738x36
+          text run at (432,0) width 263: ", which would ordinarily make it purple. "
+          text run at (694,0) width 44: "This is"
+          text run at (0,18) width 714: "because declarations marked important have more weight than normal declarations given in a STYLE attribute."
+      LayoutBlockFlow {P} at (0,229) size 784x36 [color=#008000]
+        LayoutText {#text} at (0,0) size 712x36
+          text run at (0,0) width 615: "This sentence should also be green, even though it has a STYLE attribute declaring it to be red. "
+          text run at (614,0) width 98: "This is because"
+          text run at (0,18) width 659: "declarations marked important have more weight than normal declarations given in a STYLE attribute."
+      LayoutTable {TABLE} at (0,281) size 784x176 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x174
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x148
+            LayoutTableCell {TD} at (0,87) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x148 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x36 [color=#008000]
+                LayoutText {#text} at (0,0) size 761x36
+                  text run at (0,0) width 761: "This sentence should be green, because the declaration marked important should override any other normal declaration"
+                  text run at (0,18) width 388: "for the same element, even if it occurs later in the stylesheet."
+              LayoutBlockFlow {P} at (4,56) size 762x36 [color=#008000]
+                LayoutText {#text} at (0,0) size 409x18
+                  text run at (0,0) width 409: "This sentence should also be green, even though it has an ID of "
+                LayoutInline {TT} at (0,0) size 25x15
+                  LayoutText {#text} at (408,2) size 25x15
+                    text run at (408,2) width 25: "id1"
+                LayoutText {#text} at (432,0) size 738x36
+                  text run at (432,0) width 263: ", which would ordinarily make it purple. "
+                  text run at (694,0) width 44: "This is"
+                  text run at (0,18) width 714: "because declarations marked important have more weight than normal declarations given in a STYLE attribute."
+              LayoutBlockFlow {P} at (4,108) size 762x36 [color=#008000]
+                LayoutText {#text} at (0,0) size 712x36
+                  text run at (0,0) width 615: "This sentence should also be green, even though it has a STYLE attribute declaring it to be red. "
+                  text run at (614,0) width 98: "This is because"
+                  text run at (0,18) width 659: "declarations marked important have more weight than normal declarations given in a STYLE attribute."
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/display-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/display-expected.txt
new file mode 100644
index 0000000..b483dc3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/display-expected.txt
@@ -0,0 +1,132 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 816
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x816 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x816
+    LayoutBlockFlow {BODY} at (8,8) size 769x800 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x75
+        LayoutText {#text} at (0,0) size 554x75
+          text run at (0,0) width 172: ".one {display: block;}"
+          text run at (171,0) width 1: " "
+          text run at (0,15) width 180: ".two {display: inline;}"
+          text run at (179,15) width 1: " "
+          text run at (0,30) width 554: ".three {display: list-item; list-style-type: square; margin-left: 3em;}"
+          text run at (553,30) width 1: " "
+          text run at (0,45) width 266: ".four {display: none; color: red;}"
+          text run at (265,45) width 1: " "
+          text run at (0,60) width 149: "I {display: block;}"
+          text run at (148,60) width 1: " "
+      LayoutBlockFlow {P} at (0,140) size 769x18
+        LayoutText {#text} at (0,0) size 299x18
+          text run at (0,0) width 299: "This sentence should be a block-level element."
+      LayoutBlockFlow (anonymous) at (0,174) size 769x54
+        LayoutInline {P} at (0,0) size 458x18
+          LayoutText {#text} at (0,0) size 458x18
+            text run at (0,0) width 458: "This sentence should be part of an inline element, as are the next three. "
+        LayoutInline {P} at (0,0) size 748x54
+          LayoutText {#text} at (457,0) size 748x54
+            text run at (457,0) width 280: "This sentence and the next two are part of a"
+            text run at (0,18) width 148: "second inline element. "
+            text run at (147,18) width 601: "They should therefore appear, along with the sentence above, to be all one paragraph which is"
+            text run at (0,36) width 133: "four sentences long. "
+            text run at (132,36) width 256: "If this is not the case, then the keyword "
+          LayoutInline {CODE} at (0,0) size 48x15
+            LayoutText {#text} at (387,38) size 48x15
+              text run at (387,38) width 48: "inline"
+          LayoutText {#text} at (434,36) size 112x18
+            text run at (434,36) width 112: " is being ignored."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutListItem {P} at (48,244) size 721x54
+        LayoutListMarker (anonymous) at (-17,0) size 7x18: black square
+        LayoutText {#text} at (0,0) size 694x36
+          text run at (0,0) width 694: "This sentence should be treated as a list-item, and therefore be rendered however this user agent displays list"
+          text run at (0,18) width 58: "items (if "
+        LayoutInline {CODE} at (0,0) size 118x15
+          LayoutText {#text} at (57,20) size 118x15
+            text run at (57,20) width 118: "list-style-type"
+        LayoutText {#text} at (174,18) size 720x36
+          text run at (174,18) width 369: " is supported, there will be a square for the item marker). "
+          text run at (542,18) width 178: "A 3em left margin has been"
+          text run at (0,36) width 438: "applied in order to ensure that there is space for the list-item marker."
+      LayoutBlockFlow {P} at (0,314) size 769x18
+        LayoutText {#text} at (0,0) size 467x18
+          text run at (0,0) width 467: "The next paragraph should be invisible (if it's visible, you'll see red text)."
+      LayoutBlockFlow {P} at (0,348) size 769x18
+        LayoutText {#text} at (0,0) size 252x18
+          text run at (0,0) width 252: "There should be no text after the colon:"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,382) size 769x54
+        LayoutBlockFlow (anonymous) at (0,0) size 769x18
+          LayoutText {#text} at (0,0) size 116x18
+            text run at (0,0) width 116: "The italicized text"
+        LayoutBlockFlow {I} at (0,18) size 769x18
+          LayoutText {#text} at (0,0) size 113x18
+            text run at (0,0) width 113: "in this paragraph"
+        LayoutBlockFlow (anonymous) at (0,36) size 769x18
+          LayoutText {#text} at (0,0) size 208x18
+            text run at (0,0) width 208: "should be a block-level element."
+      LayoutTable {TABLE} at (0,452) size 769x348 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x346
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x320
+            LayoutTableCell {TD} at (0,173) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x320 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18
+                LayoutText {#text} at (0,0) size 299x18
+                  text run at (0,0) width 299: "This sentence should be a block-level element."
+              LayoutBlockFlow (anonymous) at (4,38) size 747x54
+                LayoutInline {P} at (0,0) size 458x18
+                  LayoutText {#text} at (0,0) size 458x18
+                    text run at (0,0) width 458: "This sentence should be part of an inline element, as are the next three. "
+                LayoutInline {P} at (0,0) size 737x54
+                  LayoutText {#text} at (457,0) size 737x54
+                    text run at (457,0) width 280: "This sentence and the next two are part of a"
+                    text run at (0,18) width 148: "second inline element. "
+                    text run at (147,18) width 587: "They should therefore appear, along with the sentence above, to be all one paragraph which"
+                    text run at (0,36) width 148: "is four sentences long. "
+                    text run at (147,36) width 256: "If this is not the case, then the keyword "
+                  LayoutInline {CODE} at (0,0) size 47x15
+                    LayoutText {#text} at (402,38) size 47x15
+                      text run at (402,38) width 47: "inline"
+                  LayoutText {#text} at (448,36) size 113x18
+                    text run at (448,36) width 113: " is being ignored."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutListItem {P} at (52,108) size 699x54
+                LayoutListMarker (anonymous) at (-17,0) size 7x18: black square
+                LayoutText {#text} at (0,0) size 694x36
+                  text run at (0,0) width 694: "This sentence should be treated as a list-item, and therefore be rendered however this user agent displays list"
+                  text run at (0,18) width 58: "items (if "
+                LayoutInline {CODE} at (0,0) size 118x15
+                  LayoutText {#text} at (57,20) size 118x15
+                    text run at (57,20) width 118: "list-style-type"
+                LayoutText {#text} at (174,18) size 686x36
+                  text run at (174,18) width 369: " is supported, there will be a square for the item marker). "
+                  text run at (542,18) width 144: "A 3em left margin has"
+                  text run at (0,36) width 472: "been applied in order to ensure that there is space for the list-item marker."
+              LayoutBlockFlow {P} at (4,178) size 747x18
+                LayoutText {#text} at (0,0) size 467x18
+                  text run at (0,0) width 467: "The next paragraph should be invisible (if it's visible, you'll see red text)."
+              LayoutBlockFlow {P} at (4,212) size 747x18
+                LayoutText {#text} at (0,0) size 252x18
+                  text run at (0,0) width 252: "There should be no text after the colon:"
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,246) size 747x54
+                LayoutBlockFlow (anonymous) at (0,0) size 747x18
+                  LayoutText {#text} at (0,0) size 116x18
+                    text run at (0,0) width 116: "The italicized text"
+                LayoutBlockFlow {I} at (0,18) size 747x18
+                  LayoutText {#text} at (0,0) size 113x18
+                    text run at (0,0) width 113: "in this paragraph"
+                LayoutBlockFlow (anonymous) at (0,36) size 747x18
+                  LayoutText {#text} at (0,0) size 208x18
+                    text run at (0,0) width 208: "should be a block-level element."
+layer at (8,130) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,122) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/list_style-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/list_style-expected.txt
new file mode 100644
index 0000000..fcaeb27
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/list_style-expected.txt
@@ -0,0 +1,54 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x30
+        LayoutText {#text} at (0,0) size 484x30
+          text run at (0,0) width 297: ".one {list-style: upper-alpha inside;}"
+          text run at (296,0) width 1: " "
+          text run at (0,15) width 484: ".two {list-style: url(../resources/oransqr.gif) disc outside;}"
+          text run at (483,15) width 1: " "
+      LayoutBlockFlow {UL} at (0,95) size 784x36
+        LayoutListItem {LI} at (40,0) size 744x36
+          LayoutListMarker (anonymous) at (0,0) size 19.55x18: "A"
+          LayoutText {#text} at (19,0) size 695x36
+            text run at (19,0) width 676: "The text in this item should not behave as expected; that is, it should line up with the capital-A on the left"
+            text run at (0,18) width 345: "margin, leaving no blank space beneath the capital-A."
+      LayoutBlockFlow {UL} at (0,147) size 784x37
+        LayoutListItem {LI} at (40,0) size 744x37
+          LayoutListMarker (anonymous) at (-22,0) size 15x15
+          LayoutText {#text} at (0,1) size 727x36
+            text run at (0,1) width 489: "The text in this item have an orange square for its bullet; failing that, a disc. "
+            text run at (488,1) width 239: "Also, the bullet should be outside the"
+            text run at (0,19) width 290: "text block, as the list has been set to 'outside'."
+      LayoutTable {TABLE} at (0,200) size 784x141 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x139
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x113
+            LayoutTableCell {TD} at (0,69) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x113 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {UL} at (4,4) size 762x36
+                LayoutListItem {LI} at (40,0) size 722x36
+                  LayoutListMarker (anonymous) at (0,0) size 19.55x18: "A"
+                  LayoutText {#text} at (19,0) size 695x36
+                    text run at (19,0) width 676: "The text in this item should not behave as expected; that is, it should line up with the capital-A on the left"
+                    text run at (0,18) width 345: "margin, leaving no blank space beneath the capital-A."
+              LayoutBlockFlow {UL} at (4,56) size 762x37
+                LayoutListItem {LI} at (40,0) size 722x37
+                  LayoutListMarker (anonymous) at (-22,0) size 15x15
+                  LayoutText {#text} at (0,1) size 703x36
+                    text run at (0,1) width 489: "The text in this item have an orange square for its bullet; failing that, a disc. "
+                    text run at (488,1) width 215: "Also, the bullet should be outside"
+                    text run at (0,19) width 314: "the text block, as the list has been set to 'outside'."
+layer at (8,85) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/list_style_image-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/list_style_image-expected.txt
new file mode 100644
index 0000000..ed7aedd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/list_style_image-expected.txt
@@ -0,0 +1,81 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 430x45
+          text run at (0,0) width 430: ".one {list-style-image: url(../resources/oransqr.gif);}"
+          text run at (429,0) width 1: " "
+          text run at (0,15) width 235: ".two {list-style-image: none;}"
+          text run at (234,15) width 1: " "
+          text run at (0,30) width 0: " "
+      LayoutBlockFlow {UL} at (0,110) size 784x57
+        LayoutListItem {LI} at (40,0) size 744x19
+          LayoutListMarker (anonymous) at (-22,0) size 15x15
+          LayoutText {#text} at (0,1) size 64x18
+            text run at (0,1) width 64: "This list..."
+        LayoutListItem {LI} at (40,19) size 744x19
+          LayoutListMarker (anonymous) at (-22,0) size 15x15
+          LayoutText {#text} at (0,1) size 116x18
+            text run at (0,1) width 116: "...should feature..."
+        LayoutListItem {LI} at (40,38) size 744x19
+          LayoutListMarker (anonymous) at (-22,0) size 15x15
+          LayoutText {#text} at (0,1) size 150x18
+            text run at (0,1) width 150: "...images for each item."
+      LayoutBlockFlow {UL} at (0,183) size 784x54
+        LayoutListItem {LI} at (40,0) size 744x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 64x18
+            text run at (0,0) width 64: "This list..."
+        LayoutListItem {LI} at (40,18) size 744x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 116x18
+            text run at (0,0) width 116: "...should feature..."
+        LayoutListItem {LI} at (40,36) size 744x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 238x18
+            text run at (0,0) width 238: "...standard list markers for each item."
+      LayoutTable {TABLE} at (0,253) size 300x179 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 298x177
+          LayoutTableRow {TR} at (0,0) size 298x26
+            LayoutTableCell {TD} at (0,0) size 298x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 298x151
+            LayoutTableCell {TD} at (0,88) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 286x151 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {UL} at (4,4) size 278x57
+                LayoutListItem {LI} at (40,0) size 238x19
+                  LayoutListMarker (anonymous) at (-22,0) size 15x15
+                  LayoutText {#text} at (0,1) size 64x18
+                    text run at (0,1) width 64: "This list..."
+                LayoutListItem {LI} at (40,19) size 238x19
+                  LayoutListMarker (anonymous) at (-22,0) size 15x15
+                  LayoutText {#text} at (0,1) size 116x18
+                    text run at (0,1) width 116: "...should feature..."
+                LayoutListItem {LI} at (40,38) size 238x19
+                  LayoutListMarker (anonymous) at (-22,0) size 15x15
+                  LayoutText {#text} at (0,1) size 150x18
+                    text run at (0,1) width 150: "...images for each item."
+              LayoutBlockFlow {UL} at (4,77) size 278x54
+                LayoutListItem {LI} at (40,0) size 238x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 64x18
+                    text run at (0,0) width 64: "This list..."
+                LayoutListItem {LI} at (40,18) size 238x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 116x18
+                    text run at (0,0) width 116: "...should feature..."
+                LayoutListItem {LI} at (40,36) size 238x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 238x18
+                    text run at (0,0) width 238: "...standard list markers for each item."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/list_style_position-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/list_style_position-expected.txt
index f60174b..525a27f 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/list_style_position-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/list_style_position-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,15) width 274: ".two {list-style-position: inside;}"
           text run at (273,15) width 1: " "
           text run at (0,30) width 0: " "
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,110) size 784x36
         LayoutListItem {LI} at (40,0) size 744x36
           LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
@@ -50,3 +49,5 @@
                   LayoutText {#text} at (22,0) size 674x36
                     text run at (22,0) width 652: "The text in this item should not behave as expected; that is, it should line up with the bullet on the left"
                     text run at (0,18) width 321: "margin, leaving no blank space beneath the bullet."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/list_style_type-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/list_style_type-expected.txt
new file mode 100644
index 0000000..f57e3831
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/list_style_type-expected.txt
@@ -0,0 +1,271 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1527
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1527 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1527
+    LayoutBlockFlow {BODY} at (8,8) size 769x1511 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x150
+        LayoutText {#text} at (0,0) size 297x150
+          text run at (0,0) width 227: ".one {list-style-type: disc;}"
+          text run at (226,0) width 1: " "
+          text run at (0,15) width 242: ".two {list-style-type: circle;}"
+          text run at (241,15) width 1: " "
+          text run at (0,30) width 258: ".three {list-style-type: square;}"
+          text run at (257,30) width 1: " "
+          text run at (0,45) width 289: ".four {list-style-type: lower-roman;}"
+          text run at (288,45) width 1: " "
+          text run at (0,60) width 289: ".five {list-style-type: upper-roman;}"
+          text run at (288,60) width 1: " "
+          text run at (0,75) width 281: ".six {list-style-type: lower-alpha;}"
+          text run at (280,75) width 1: " "
+          text run at (0,90) width 297: ".seven {list-style-type: upper-alpha;}"
+          text run at (296,90) width 1: " "
+          text run at (0,105) width 266: ".eight {list-style-type: decimal;}"
+          text run at (265,105) width 1: " "
+          text run at (0,120) width 235: ".nine {list-style-type: none;}"
+          text run at (234,120) width 1: " "
+          text run at (0,135) width 0: " "
+      LayoutBlockFlow {UL} at (0,215) size 769x54
+        LayoutListItem {LI} at (40,0) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 64x18
+            text run at (0,0) width 64: "This list..."
+        LayoutListItem {LI} at (40,18) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 116x18
+            text run at (0,0) width 116: "...should feature..."
+        LayoutListItem {LI} at (40,36) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 137x18
+            text run at (0,0) width 137: "...discs for each item."
+      LayoutBlockFlow {UL} at (0,285) size 769x54
+        LayoutListItem {LI} at (40,0) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+          LayoutText {#text} at (0,0) size 64x18
+            text run at (0,0) width 64: "This list..."
+        LayoutListItem {LI} at (40,18) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+          LayoutText {#text} at (0,0) size 116x18
+            text run at (0,0) width 116: "...should feature..."
+        LayoutListItem {LI} at (40,36) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+          LayoutText {#text} at (0,0) size 147x18
+            text run at (0,0) width 147: "...circles for each item."
+      LayoutBlockFlow {UL} at (0,355) size 769x54
+        LayoutListItem {LI} at (40,0) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: black square
+          LayoutText {#text} at (0,0) size 64x18
+            text run at (0,0) width 64: "This list..."
+        LayoutListItem {LI} at (40,18) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: black square
+          LayoutText {#text} at (0,0) size 116x18
+            text run at (0,0) width 116: "...should feature..."
+        LayoutListItem {LI} at (40,36) size 729x18
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: black square
+          LayoutText {#text} at (0,0) size 153x18
+            text run at (0,0) width 153: "...squares for each item."
+      LayoutBlockFlow {OL} at (0,425) size 769x54
+        LayoutListItem {LI} at (40,0) size 729x18
+          LayoutListMarker (anonymous) at (-12.44,0) size 12.44x18: "i"
+          LayoutText {#text} at (0,0) size 64x18
+            text run at (0,0) width 64: "This list..."
+        LayoutListItem {LI} at (40,18) size 729x18
+          LayoutListMarker (anonymous) at (-16.89,0) size 16.89x18: "ii"
+          LayoutText {#text} at (0,0) size 116x18
+            text run at (0,0) width 116: "...should feature..."
+        LayoutListItem {LI} at (40,36) size 729x18
+          LayoutListMarker (anonymous) at (-21.33,0) size 21.33x18: "iii"
+          LayoutText {#text} at (0,0) size 282x18
+            text run at (0,0) width 282: "...lowercase Roman numerals for each item."
+      LayoutBlockFlow {OL} at (0,495) size 769x54
+        LayoutListItem {LI} at (40,0) size 729x18
+          LayoutListMarker (anonymous) at (-13.33,0) size 13.33x18: "I"
+          LayoutText {#text} at (0,0) size 64x18
+            text run at (0,0) width 64: "This list..."
+        LayoutListItem {LI} at (40,18) size 729x18
+          LayoutListMarker (anonymous) at (-18.66,0) size 18.66x18: "II"
+          LayoutText {#text} at (0,0) size 116x18
+            text run at (0,0) width 116: "...should feature..."
+        LayoutListItem {LI} at (40,36) size 729x18
+          LayoutListMarker (anonymous) at (-23.98,0) size 23.98x18: "III"
+          LayoutText {#text} at (0,0) size 282x18
+            text run at (0,0) width 282: "...uppercase Roman numerals for each item."
+      LayoutBlockFlow {OL} at (0,565) size 769x54
+        LayoutListItem {LI} at (40,0) size 729x18
+          LayoutListMarker (anonymous) at (-15.09,0) size 15.09x18: "a"
+          LayoutText {#text} at (0,0) size 64x18
+            text run at (0,0) width 64: "This list..."
+        LayoutListItem {LI} at (40,18) size 729x18
+          LayoutListMarker (anonymous) at (-16,0) size 16x18: "b"
+          LayoutText {#text} at (0,0) size 116x18
+            text run at (0,0) width 116: "...should feature..."
+        LayoutListItem {LI} at (40,36) size 729x18
+          LayoutListMarker (anonymous) at (-15.09,0) size 15.09x18: "c"
+          LayoutText {#text} at (0,0) size 212x18
+            text run at (0,0) width 212: "...lowercase letters for each item."
+      LayoutBlockFlow {OL} at (0,635) size 769x54
+        LayoutListItem {LI} at (40,0) size 729x18
+          LayoutListMarker (anonymous) at (-19.55,0) size 19.55x18: "A"
+          LayoutText {#text} at (0,0) size 64x18
+            text run at (0,0) width 64: "This list..."
+        LayoutListItem {LI} at (40,18) size 729x18
+          LayoutListMarker (anonymous) at (-18.67,0) size 18.67x18: "B"
+          LayoutText {#text} at (0,0) size 116x18
+            text run at (0,0) width 116: "...should feature..."
+        LayoutListItem {LI} at (40,36) size 729x18
+          LayoutListMarker (anonymous) at (-18.67,0) size 18.67x18: "C"
+          LayoutText {#text} at (0,0) size 212x18
+            text run at (0,0) width 212: "...uppercase letters for each item."
+      LayoutBlockFlow {OL} at (0,705) size 769x54
+        LayoutListItem {LI} at (40,0) size 729x18
+          LayoutListMarker (anonymous) at (-19.55,0) size 19.55x18: "A"
+          LayoutText {#text} at (0,0) size 160x18
+            text run at (0,0) width 160: "This list should feature..."
+        LayoutListItem {LI} at (40,18) size 729x18
+          LayoutListMarker (anonymous) at (-18.67,0) size 18.67x18: "B"
+          LayoutText {#text} at (0,0) size 152x18
+            text run at (0,0) width 152: "...letters for each item..."
+        LayoutListItem {LI} at (40,36) size 729x18
+          LayoutListMarker (anonymous) at (-16,0) size 16x18: "3"
+          LayoutText {#text} at (0,0) size 112x18
+            text run at (0,0) width 112: "...except this one."
+      LayoutBlockFlow {UL} at (0,775) size 769x54
+        LayoutListItem {LI} at (40,0) size 729x18
+          LayoutText {#text} at (0,0) size 64x18
+            text run at (0,0) width 64: "This list..."
+        LayoutListItem {LI} at (40,18) size 729x18
+          LayoutText {#text} at (0,0) size 116x18
+            text run at (0,0) width 116: "...should feature..."
+        LayoutListItem {LI} at (40,36) size 729x18
+          LayoutText {#text} at (0,0) size 154x18
+            text run at (0,0) width 154: "...nothing for each item."
+      LayoutTable {TABLE} at (0,845) size 344x666 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 342x664
+          LayoutTableRow {TR} at (0,0) size 342x26
+            LayoutTableCell {TD} at (0,0) size 342x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 342x638
+            LayoutTableCell {TD} at (0,332) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 330x638 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {UL} at (4,4) size 322x54
+                LayoutListItem {LI} at (40,0) size 282x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 64x18
+                    text run at (0,0) width 64: "This list..."
+                LayoutListItem {LI} at (40,18) size 282x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 116x18
+                    text run at (0,0) width 116: "...should feature..."
+                LayoutListItem {LI} at (40,36) size 282x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 137x18
+                    text run at (0,0) width 137: "...discs for each item."
+              LayoutBlockFlow {UL} at (4,74) size 322x54
+                LayoutListItem {LI} at (40,0) size 282x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                  LayoutText {#text} at (0,0) size 64x18
+                    text run at (0,0) width 64: "This list..."
+                LayoutListItem {LI} at (40,18) size 282x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                  LayoutText {#text} at (0,0) size 116x18
+                    text run at (0,0) width 116: "...should feature..."
+                LayoutListItem {LI} at (40,36) size 282x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                  LayoutText {#text} at (0,0) size 147x18
+                    text run at (0,0) width 147: "...circles for each item."
+              LayoutBlockFlow {UL} at (4,144) size 322x54
+                LayoutListItem {LI} at (40,0) size 282x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: black square
+                  LayoutText {#text} at (0,0) size 64x18
+                    text run at (0,0) width 64: "This list..."
+                LayoutListItem {LI} at (40,18) size 282x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: black square
+                  LayoutText {#text} at (0,0) size 116x18
+                    text run at (0,0) width 116: "...should feature..."
+                LayoutListItem {LI} at (40,36) size 282x18
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: black square
+                  LayoutText {#text} at (0,0) size 153x18
+                    text run at (0,0) width 153: "...squares for each item."
+              LayoutBlockFlow {OL} at (4,214) size 322x54
+                LayoutListItem {LI} at (40,0) size 282x18
+                  LayoutListMarker (anonymous) at (-12.44,0) size 12.44x18: "i"
+                  LayoutText {#text} at (0,0) size 64x18
+                    text run at (0,0) width 64: "This list..."
+                LayoutListItem {LI} at (40,18) size 282x18
+                  LayoutListMarker (anonymous) at (-16.89,0) size 16.89x18: "ii"
+                  LayoutText {#text} at (0,0) size 116x18
+                    text run at (0,0) width 116: "...should feature..."
+                LayoutListItem {LI} at (40,36) size 282x18
+                  LayoutListMarker (anonymous) at (-21.33,0) size 21.33x18: "iii"
+                  LayoutText {#text} at (0,0) size 282x18
+                    text run at (0,0) width 282: "...lowercase Roman numerals for each item."
+              LayoutBlockFlow {OL} at (4,284) size 322x54
+                LayoutListItem {LI} at (40,0) size 282x18
+                  LayoutListMarker (anonymous) at (-13.33,0) size 13.33x18: "I"
+                  LayoutText {#text} at (0,0) size 64x18
+                    text run at (0,0) width 64: "This list..."
+                LayoutListItem {LI} at (40,18) size 282x18
+                  LayoutListMarker (anonymous) at (-18.66,0) size 18.66x18: "II"
+                  LayoutText {#text} at (0,0) size 116x18
+                    text run at (0,0) width 116: "...should feature..."
+                LayoutListItem {LI} at (40,36) size 282x18
+                  LayoutListMarker (anonymous) at (-23.98,0) size 23.98x18: "III"
+                  LayoutText {#text} at (0,0) size 282x18
+                    text run at (0,0) width 282: "...uppercase Roman numerals for each item."
+              LayoutBlockFlow {OL} at (4,354) size 322x54
+                LayoutListItem {LI} at (40,0) size 282x18
+                  LayoutListMarker (anonymous) at (-15.09,0) size 15.09x18: "a"
+                  LayoutText {#text} at (0,0) size 64x18
+                    text run at (0,0) width 64: "This list..."
+                LayoutListItem {LI} at (40,18) size 282x18
+                  LayoutListMarker (anonymous) at (-16,0) size 16x18: "b"
+                  LayoutText {#text} at (0,0) size 116x18
+                    text run at (0,0) width 116: "...should feature..."
+                LayoutListItem {LI} at (40,36) size 282x18
+                  LayoutListMarker (anonymous) at (-15.09,0) size 15.09x18: "c"
+                  LayoutText {#text} at (0,0) size 212x18
+                    text run at (0,0) width 212: "...lowercase letters for each item."
+              LayoutBlockFlow {OL} at (4,424) size 322x54
+                LayoutListItem {LI} at (40,0) size 282x18
+                  LayoutListMarker (anonymous) at (-19.55,0) size 19.55x18: "A"
+                  LayoutText {#text} at (0,0) size 64x18
+                    text run at (0,0) width 64: "This list..."
+                LayoutListItem {LI} at (40,18) size 282x18
+                  LayoutListMarker (anonymous) at (-18.67,0) size 18.67x18: "B"
+                  LayoutText {#text} at (0,0) size 116x18
+                    text run at (0,0) width 116: "...should feature..."
+                LayoutListItem {LI} at (40,36) size 282x18
+                  LayoutListMarker (anonymous) at (-18.67,0) size 18.67x18: "C"
+                  LayoutText {#text} at (0,0) size 212x18
+                    text run at (0,0) width 212: "...uppercase letters for each item."
+              LayoutBlockFlow {OL} at (4,494) size 322x54
+                LayoutListItem {LI} at (40,0) size 282x18
+                  LayoutListMarker (anonymous) at (-19.55,0) size 19.55x18: "A"
+                  LayoutText {#text} at (0,0) size 160x18
+                    text run at (0,0) width 160: "This list should feature..."
+                LayoutListItem {LI} at (40,18) size 282x18
+                  LayoutListMarker (anonymous) at (-18.67,0) size 18.67x18: "B"
+                  LayoutText {#text} at (0,0) size 152x18
+                    text run at (0,0) width 152: "...letters for each item..."
+                LayoutListItem {LI} at (40,36) size 282x18
+                  LayoutListMarker (anonymous) at (-16,0) size 16x18: "3"
+                  LayoutText {#text} at (0,0) size 112x18
+                    text run at (0,0) width 112: "...except this one."
+              LayoutBlockFlow {UL} at (4,564) size 322x54
+                LayoutListItem {LI} at (40,0) size 282x18
+                  LayoutText {#text} at (0,0) size 64x18
+                    text run at (0,0) width 64: "This list..."
+                LayoutListItem {LI} at (40,18) size 282x18
+                  LayoutText {#text} at (0,0) size 116x18
+                    text run at (0,0) width 116: "...should feature..."
+                LayoutListItem {LI} at (40,36) size 282x18
+                  LayoutText {#text} at (0,0) size 154x18
+                    text run at (0,0) width 154: "...nothing for each item."
+layer at (8,205) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,197) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/white_space-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/white_space-expected.txt
new file mode 100644
index 0000000..ef8ed43
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/classification/white_space-expected.txt
@@ -0,0 +1,81 @@
+layer at (0,0) size 800x600 scrollWidth 936
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x60
+        LayoutText {#text} at (0,0) size 227x60
+          text run at (0,0) width 188: ".one {white-space: pre;}"
+          text run at (187,0) width 1: " "
+          text run at (0,15) width 211: ".two {white-space: nowrap;}"
+          text run at (210,15) width 1: " "
+          text run at (0,30) width 227: ".three {white-space: normal;}"
+          text run at (226,30) width 1: " "
+          text run at (0,45) width 0: " "
+      LayoutBlockFlow {P} at (0,125) size 784x90
+        LayoutText {#text} at (0,0) size 576x90
+          text run at (0,0) width 0: " "
+          text run at (0,18) width 576: "This sentence should     show extra space  where there    would ordinarily         not be any."
+          text run at (575,18) width 1: " "
+          text run at (0,36) width 302: "     There should also be preservation of returns"
+          text run at (301,36) width 1: " "
+          text run at (0,54) width 100: "as this sentence"
+          text run at (99,54) width 1: " "
+          text run at (0,72) width 189: "     very clearly demonstrates."
+          text run at (188,72) width 1: " "
+      LayoutBlockFlow {P} at (0,231) size 784x18
+        LayoutText {#text} at (0,0) size 906x18
+          text run at (0,0) width 906: "This sentence should not word-wrap, no matter how long the sentence is, as it has been set to nowrap and that should have the obvious effect."
+      LayoutBlockFlow {P} at (0,265) size 784x36
+        LayoutText {#text} at (0,0) size 300x36
+          text run at (0,0) width 0: " "
+          text run at (0,18) width 300: "This sentence      should     show extra   space, "
+        LayoutInline {SPAN} at (0,0) size 160x18
+          LayoutText {#text} at (299,18) size 160x18
+            text run at (299,18) width 87: "except in the "
+            text run at (385,18) width 74: "second half"
+        LayoutText {#text} at (458,18) size 5x18
+          text run at (458,18) width 5: "."
+          text run at (462,18) width 1: " "
+      LayoutTable {TABLE} at (0,317) size 928x212 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 926x210
+          LayoutTableRow {TR} at (0,0) size 926x26
+            LayoutTableCell {TD} at (0,0) size 926x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 926x184
+            LayoutTableCell {TD} at (0,105) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 914x184 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 906x90
+                LayoutText {#text} at (0,0) size 576x90
+                  text run at (0,0) width 0: " "
+                  text run at (0,18) width 576: "This sentence should     show extra space  where there    would ordinarily         not be any."
+                  text run at (575,18) width 1: " "
+                  text run at (0,36) width 302: "     There should also be preservation of returns"
+                  text run at (301,36) width 1: " "
+                  text run at (0,54) width 100: "as this sentence"
+                  text run at (99,54) width 1: " "
+                  text run at (0,72) width 189: "     very clearly demonstrates."
+                  text run at (188,72) width 1: " "
+              LayoutBlockFlow {P} at (4,110) size 906x18
+                LayoutText {#text} at (0,0) size 906x18
+                  text run at (0,0) width 906: "This sentence should not word-wrap, no matter how long the sentence is, as it has been set to nowrap and that should have the obvious effect."
+              LayoutBlockFlow {P} at (4,144) size 906x36
+                LayoutText {#text} at (0,0) size 300x36
+                  text run at (0,0) width 0: " "
+                  text run at (0,18) width 300: "This sentence      should     show extra   space, "
+                LayoutInline {SPAN} at (0,0) size 160x18
+                  LayoutText {#text} at (299,18) size 160x18
+                    text run at (299,18) width 87: "except in the "
+                    text run at (385,18) width 74: "second half"
+                LayoutText {#text} at (458,18) size 5x18
+                  text run at (458,18) width 5: "."
+                  text run at (462,18) width 1: " "
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background-expected.txt
new file mode 100644
index 0000000..04a33a4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background-expected.txt
@@ -0,0 +1,93 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 721
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x721 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x721
+    LayoutBlockFlow {BODY} at (8,8) size 769x705 [bgcolor=#008000]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x60
+        LayoutText {#text} at (0,0) size 632x60
+          text run at (0,0) width 632: "BODY {background: green url(../resources/oransqr.gif) repeat-x center top fixed;}"
+          text run at (631,0) width 1: " "
+          text run at (0,15) width 554: ".one {background: lime url(../resources/oransqr.gif) repeat-y 100% 0%;}"
+          text run at (553,15) width 1: " "
+          text run at (0,30) width 578: ".two {background: lime url(../resources/oransqr.gif) repeat-y center top;}"
+          text run at (577,30) width 1: " "
+          text run at (0,45) width 578: ".three {background: lime url(../resources/oransqr.gif) repeat-x left top;}"
+          text run at (577,45) width 1: " "
+      LayoutBlockFlow {P} at (0,125) size 769x54
+        LayoutText {#text} at (0,0) size 741x18
+          text run at (0,0) width 741: "This document should have a green background with an orange strip running across the entire top of the page, since"
+        LayoutInline {CODE} at (0,0) size 63x15
+          LayoutText {#text} at (0,20) size 63x15
+            text run at (0,20) width 63: "repeat-x"
+        LayoutText {#text} at (62,18) size 768x36
+          text run at (62,18) width 308: " indicates tiling in both directions of the x-axis. "
+          text run at (369,18) width 304: "Furthermore, the strip should be fixed in place. "
+          text run at (672,18) width 96: "I'll have to add"
+          text run at (0,36) width 502: "extra text at the end of this page to make it long enough to scroll conveniently."
+      LayoutBlockFlow {P} at (0,195) size 769x54 [bgcolor=#00FF00]
+        LayoutText {#text} at (0,0) size 758x54
+          text run at (0,0) width 758: "This paragraph should have a lime background and an orange strip which starts at the top right and runs to the bottom."
+          text run at (0,18) width 717: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in"
+          text run at (0,36) width 183: "handling these declarations. "
+          text run at (182,36) width 311: "Hey, I didn't say the page would be pretty, did I?"
+      LayoutBlockFlow {P} at (0,265) size 769x54 [bgcolor=#00FF00]
+        LayoutText {#text} at (0,0) size 766x54
+          text run at (0,0) width 766: "This paragraph should have a lime background and an orange strip which starts at the center top and runs to the bottom."
+          text run at (0,18) width 717: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in"
+          text run at (0,36) width 183: "handling these declarations. "
+          text run at (182,36) width 311: "Hey, I didn't say the page would be pretty, did I?"
+      LayoutBlockFlow {P} at (0,335) size 769x54 [bgcolor=#00FF00]
+        LayoutText {#text} at (0,0) size 758x54
+          text run at (0,0) width 758: "This paragraph should have a lime background and an orange strip which starts at the top left and runs to the top right."
+          text run at (0,18) width 717: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in"
+          text run at (0,36) width 183: "handling these declarations. "
+          text run at (182,36) width 311: "Hey, I didn't say the page would be pretty, did I?"
+      LayoutTable {TABLE} at (0,405) size 769x300 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x298
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x272
+            LayoutTableCell {TD} at (0,149) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x272 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x54
+                LayoutText {#text} at (0,0) size 741x18
+                  text run at (0,0) width 741: "This document should have a green background with an orange strip running across the entire top of the page, since"
+                LayoutInline {CODE} at (0,0) size 63x15
+                  LayoutText {#text} at (0,20) size 63x15
+                    text run at (0,20) width 63: "repeat-x"
+                LayoutText {#text} at (62,18) size 741x36
+                  text run at (62,18) width 308: " indicates tiling in both directions of the x-axis. "
+                  text run at (369,18) width 304: "Furthermore, the strip should be fixed in place. "
+                  text run at (672,18) width 69: "I'll have to"
+                  text run at (0,36) width 530: "add extra text at the end of this page to make it long enough to scroll conveniently."
+              LayoutBlockFlow {P} at (4,74) size 747x54 [bgcolor=#00FF00]
+                LayoutText {#text} at (0,0) size 704x54
+                  text run at (0,0) width 704: "This paragraph should have a lime background and an orange strip which starts at the top right and runs to the"
+                  text run at (0,18) width 54: "bottom. "
+                  text run at (53,18) width 645: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your"
+                  text run at (0,36) width 255: "browser in handling these declarations. "
+                  text run at (254,36) width 311: "Hey, I didn't say the page would be pretty, did I?"
+              LayoutBlockFlow {P} at (4,144) size 747x54 [bgcolor=#00FF00]
+                LayoutText {#text} at (0,0) size 713x54
+                  text run at (0,0) width 713: "This paragraph should have a lime background and an orange strip which starts at the center top and runs to the"
+                  text run at (0,18) width 54: "bottom. "
+                  text run at (53,18) width 645: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your"
+                  text run at (0,36) width 255: "browser in handling these declarations. "
+                  text run at (254,36) width 311: "Hey, I didn't say the page would be pretty, did I?"
+              LayoutBlockFlow {P} at (4,214) size 747x54 [bgcolor=#00FF00]
+                LayoutText {#text} at (0,0) size 739x54
+                  text run at (0,0) width 720: "This paragraph should have a lime background and an orange strip which starts at the top left and runs to the top"
+                  text run at (0,18) width 39: "right. "
+                  text run at (38,18) width 701: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser"
+                  text run at (0,36) width 199: "in handling these declarations. "
+                  text run at (198,36) width 311: "Hey, I didn't say the page would be pretty, did I?"
+layer at (8,115) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_attachment-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_attachment-expected.txt
new file mode 100644
index 0000000..a3fa681
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_attachment-expected.txt
@@ -0,0 +1,185 @@
+layer at (0,0) size 800x600 scrollWidth 858 scrollHeight 1195
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x1195 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x1194.53
+    LayoutBlockFlow {BODY} at (8,8) size 784x1178.53 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x30
+        LayoutText {#text} at (0,0) size 851x30
+          text run at (0,0) width 851: "BODY {background-image: url(../resources/bg.gif); background-repeat: repeat-x; background-attachment: fixed;}"
+          text run at (850,0) width 1: " "
+          text run at (0,15) width 0: " "
+      LayoutBlockFlow {P} at (0,95) size 784x90
+        LayoutText {#text} at (0,0) size 778x90
+          text run at (0,0) width 778: "This document should have a green grid-pattern line across the top of the page (or at least a tiled background) which does"
+          text run at (0,18) width 204: "NOT scroll with the document. "
+          text run at (203,18) width 563: "It should, instead, appear to be a fixed pattern past which the content scrolls, even when"
+          text run at (0,36) width 199: "the end of the page is reached. "
+          text run at (198,36) width 574: "In addition, the default Test Suite background should NOT appear, as it's been overridden"
+          text run at (0,54) width 176: "by the styles shown above. "
+          text run at (175,54) width 560: "I'll have to add a lot of extra text to the page in order to make all this something we can"
+          text run at (0,72) width 100: "actually check. "
+          text run at (99,72) width 231: "Don't worry, I'll think of something."
+      LayoutBlockFlow {P} at (0,201) size 784x18
+        LayoutText {#text} at (0,0) size 518x18
+          text run at (0,0) width 425: "In fact, why not the relevant section from the CSS1 specification? "
+          text run at (424,0) width 94: "A capital idea."
+      LayoutBlockFlow {H4} at (0,268.27) size 784x18
+        LayoutInline {A} at (0,0) size 222x18
+          LayoutText {#text} at (0,0) size 222x18
+            text run at (0,0) width 222: "5.3.5    'background-attachment'"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,307.53) size 784x90
+        LayoutInline {EM} at (0,0) size 41x18
+          LayoutText {#text} at (0,0) size 41x18
+            text run at (0,0) width 41: "Value:"
+        LayoutText {#text} at (40,0) size 84x18
+          text run at (40,0) width 84: " scroll | fixed"
+        LayoutBR {BR} at (123,14) size 1x0
+        LayoutInline {EM} at (0,0) size 45x18
+          LayoutText {#text} at (0,18) size 45x18
+            text run at (0,18) width 45: "Initial:"
+        LayoutText {#text} at (44,18) size 40x18
+          text run at (44,18) width 40: " scroll"
+        LayoutBR {BR} at (83,32) size 1x0
+        LayoutInline {EM} at (0,0) size 70x18
+          LayoutText {#text} at (0,36) size 70x18
+            text run at (0,36) width 70: "Applies to:"
+        LayoutText {#text} at (69,36) size 82x18
+          text run at (69,36) width 82: " all elements"
+        LayoutBR {BR} at (150,50) size 1x0
+        LayoutInline {EM} at (0,0) size 64x18
+          LayoutText {#text} at (0,54) size 64x18
+            text run at (0,54) width 64: "Inherited:"
+        LayoutText {#text} at (63,54) size 21x18
+          text run at (63,54) width 21: " no"
+        LayoutBR {BR} at (83,68) size 1x0
+        LayoutInline {EM} at (0,0) size 123x18
+          LayoutText {#text} at (0,72) size 123x18
+            text run at (0,72) width 123: "Percentage values:"
+        LayoutText {#text} at (122,72) size 33x18
+          text run at (122,72) width 33: " N/A"
+        LayoutBR {BR} at (154,86) size 1x0
+      LayoutBlockFlow {P} at (0,413.53) size 784x36
+        LayoutText {#text} at (0,0) size 781x36
+          text run at (0,0) width 781: "If a background image is specified, the value of 'background-attachment' determines if it is fixed with regard to the canvas"
+          text run at (0,18) width 237: "or if it scrolls along with the content."
+      LayoutBlockFlow {PRE} at (0,465.53) size 784x75
+        LayoutText {#text} at (0,0) size 289x75
+          text run at (0,0) width 71: "  BODY { "
+          text run at (70,0) width 1: " "
+          text run at (0,15) width 289: "    background: red url(pendant.gif);"
+          text run at (288,15) width 1: " "
+          text run at (0,30) width 250: "    background-repeat: repeat-y;"
+          text run at (249,30) width 1: " "
+          text run at (0,45) width 258: "    background-attachment: fixed;"
+          text run at (257,45) width 1: " "
+          text run at (0,60) width 24: "  }"
+          text run at (23,60) width 1: " "
+      LayoutBlockFlow {P} at (0,556.53) size 784x54
+        LayoutInline {EM} at (0,0) size 72x18
+          LayoutText {#text} at (0,0) size 72x18
+            text run at (0,0) width 72: "CSS1 core:"
+        LayoutText {#text} at (71,0) size 778x54
+          text run at (71,0) width 683: " UAs may treat 'fixed' as 'scroll'. However, it is recommended they interpret 'fixed' correctly, at least on the"
+          text run at (0,18) width 778: "HTML and BODY elements, since there is no way for an author to provide an image only for those browsers that support"
+          text run at (0,36) width 42: "'fixed'."
+      LayoutTable {TABLE} at (0,626.53) size 784x552 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x550
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x524
+            LayoutTableCell {TD} at (0,275) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x523.53 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x90
+                LayoutText {#text} at (0,0) size 760x90
+                  text run at (0,0) width 745: "This document should have a green grid-pattern line across the top of the page (or at least a tiled background) which"
+                  text run at (0,18) width 237: "does NOT scroll with the document. "
+                  text run at (236,18) width 524: "It should, instead, appear to be a fixed pattern past which the content scrolls, even"
+                  text run at (0,36) width 237: "when the end of the page is reached. "
+                  text run at (236,36) width 501: "In addition, the default Test Suite background should NOT appear, as it's been"
+                  text run at (0,54) width 250: "overridden by the styles shown above. "
+                  text run at (249,54) width 510: "I'll have to add a lot of extra text to the page in order to make all this something"
+                  text run at (0,72) width 149: "we can actually check. "
+                  text run at (148,72) width 231: "Don't worry, I'll think of something."
+              LayoutBlockFlow {P} at (4,110) size 762x18
+                LayoutText {#text} at (0,0) size 518x18
+                  text run at (0,0) width 425: "In fact, why not the relevant section from the CSS1 specification? "
+                  text run at (424,0) width 94: "A capital idea."
+              LayoutBlockFlow {H4} at (4,177.27) size 762x18
+                LayoutInline {A} at (0,0) size 222x18
+                  LayoutText {#text} at (0,0) size 222x18
+                    text run at (0,0) width 222: "5.3.5    'background-attachment'"
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,216.53) size 762x90
+                LayoutInline {EM} at (0,0) size 41x18
+                  LayoutText {#text} at (0,0) size 41x18
+                    text run at (0,0) width 41: "Value:"
+                LayoutText {#text} at (40,0) size 84x18
+                  text run at (40,0) width 84: " scroll | fixed"
+                LayoutBR {BR} at (123,14) size 1x0
+                LayoutInline {EM} at (0,0) size 45x18
+                  LayoutText {#text} at (0,18) size 45x18
+                    text run at (0,18) width 45: "Initial:"
+                LayoutText {#text} at (44,18) size 40x18
+                  text run at (44,18) width 40: " scroll"
+                LayoutBR {BR} at (83,32) size 1x0
+                LayoutInline {EM} at (0,0) size 70x18
+                  LayoutText {#text} at (0,36) size 70x18
+                    text run at (0,36) width 70: "Applies to:"
+                LayoutText {#text} at (69,36) size 82x18
+                  text run at (69,36) width 82: " all elements"
+                LayoutBR {BR} at (150,50) size 1x0
+                LayoutInline {EM} at (0,0) size 64x18
+                  LayoutText {#text} at (0,54) size 64x18
+                    text run at (0,54) width 64: "Inherited:"
+                LayoutText {#text} at (63,54) size 21x18
+                  text run at (63,54) width 21: " no"
+                LayoutBR {BR} at (83,68) size 1x0
+                LayoutInline {EM} at (0,0) size 123x18
+                  LayoutText {#text} at (0,72) size 123x18
+                    text run at (0,72) width 123: "Percentage values:"
+                LayoutText {#text} at (122,72) size 33x18
+                  text run at (122,72) width 33: " N/A"
+                LayoutBR {BR} at (154,86) size 1x0
+              LayoutBlockFlow {P} at (4,322.53) size 762x36
+                LayoutText {#text} at (0,0) size 734x36
+                  text run at (0,0) width 734: "If a background image is specified, the value of 'background-attachment' determines if it is fixed with regard to the"
+                  text run at (0,18) width 284: "canvas or if it scrolls along with the content."
+              LayoutBlockFlow {PRE} at (4,374.53) size 762x75
+                LayoutText {#text} at (0,0) size 289x75
+                  text run at (0,0) width 71: "  BODY { "
+                  text run at (70,0) width 1: " "
+                  text run at (0,15) width 289: "    background: red url(pendant.gif);"
+                  text run at (288,15) width 1: " "
+                  text run at (0,30) width 250: "    background-repeat: repeat-y;"
+                  text run at (249,30) width 1: " "
+                  text run at (0,45) width 258: "    background-attachment: fixed;"
+                  text run at (257,45) width 1: " "
+                  text run at (0,60) width 24: "  }"
+                  text run at (23,60) width 1: " "
+              LayoutBlockFlow {P} at (4,465.53) size 762x54
+                LayoutInline {EM} at (0,0) size 72x18
+                  LayoutText {#text} at (0,0) size 72x18
+                    text run at (0,0) width 72: "CSS1 core:"
+                LayoutText {#text} at (71,0) size 754x54
+                  text run at (71,0) width 683: " UAs may treat 'fixed' as 'scroll'. However, it is recommended they interpret 'fixed' correctly, at least on the"
+                  text run at (0,18) width 726: "HTML and BODY elements, since there is no way for an author to provide an image only for those browsers that"
+                  text run at (0,36) width 94: "support 'fixed'."
+layer at (8,85) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,243) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,235) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,253) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,245) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (25,806) size 762x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,144) size 762x2 [border: (1px inset #EEEEEE)]
+layer at (25,816) size 762x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,154) size 762x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_color-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_color-expected.txt
new file mode 100644
index 0000000..2540bb6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_color-expected.txt
@@ -0,0 +1,84 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18 [bgcolor=#008000]
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x60
+        LayoutText {#text} at (0,0) size 289x60
+          text run at (0,0) width 219: "P {background-color: green;}"
+          text run at (218,0) width 1: " "
+          text run at (0,15) width 235: ".one {background-color: lime;}"
+          text run at (234,15) width 1: " "
+          text run at (0,30) width 289: ".two {background-color: transparent;}"
+          text run at (288,30) width 1: " "
+          text run at (0,45) width 0: " "
+      LayoutBlockFlow {P} at (0,125) size 784x18 [bgcolor=#008000]
+        LayoutText {#text} at (0,0) size 282x18
+          text run at (0,0) width 282: "This element's background should be green."
+      LayoutBlockFlow {P} at (0,159) size 784x18 [bgcolor=#00FF00]
+        LayoutText {#text} at (0,0) size 358x18
+          text run at (0,0) width 358: "This element's background should be lime (light green)."
+      LayoutBlockFlow {P} at (0,193) size 784x54 [bgcolor=#008000]
+        LayoutText {#text} at (0,0) size 663x18
+          text run at (0,0) width 663: "This element's background should be green, and the last word in this sentence should also have a green "
+        LayoutInline {SPAN} at (0,0) size 77x18
+          LayoutText {#text} at (662,0) size 77x18
+            text run at (662,0) width 77: "background"
+        LayoutText {#text} at (738,0) size 775x54
+          text run at (738,0) width 9: ". "
+          text run at (746,0) width 29: "This"
+          text run at (0,18) width 726: "is because the background color of the parent element (the paragraph) should \"shine through\" the SPANned word"
+          text run at (0,36) width 187: "\"sentence,\" which was set to "
+        LayoutInline {CODE} at (0,0) size 87x15
+          LayoutText {#text} at (186,38) size 87x15
+            text run at (186,38) width 87: "transparent"
+        LayoutText {#text} at (272,36) size 403x18
+          text run at (272,36) width 9: ". "
+          text run at (280,36) width 395: "If the document background is visible, the browser is in error."
+      LayoutBlockFlow {P} at (0,263) size 784x18
+        LayoutText {#text} at (0,0) size 754x18
+          text run at (0,0) width 469: "This element should allow the document background to \"shine through.\" "
+          text run at (468,0) width 286: "There should be no green backgrounds here!"
+      LayoutTable {TABLE} at (0,297) size 784x192 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x190
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x164
+            LayoutTableCell {TD} at (0,95) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x164 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x18 [bgcolor=#008000]
+                LayoutText {#text} at (0,0) size 282x18
+                  text run at (0,0) width 282: "This element's background should be green."
+              LayoutBlockFlow {P} at (4,38) size 762x18 [bgcolor=#00FF00]
+                LayoutText {#text} at (0,0) size 358x18
+                  text run at (0,0) width 358: "This element's background should be lime (light green)."
+              LayoutBlockFlow {P} at (4,72) size 762x54 [bgcolor=#008000]
+                LayoutText {#text} at (0,0) size 663x18
+                  text run at (0,0) width 663: "This element's background should be green, and the last word in this sentence should also have a green "
+                LayoutInline {SPAN} at (0,0) size 77x18
+                  LayoutText {#text} at (662,0) size 77x18
+                    text run at (662,0) width 77: "background"
+                LayoutText {#text} at (738,0) size 758x54
+                  text run at (738,0) width 5: "."
+                  text run at (0,18) width 758: "This is because the background color of the parent element (the paragraph) should \"shine through\" the SPANned word"
+                  text run at (0,36) width 187: "\"sentence,\" which was set to "
+                LayoutInline {CODE} at (0,0) size 87x15
+                  LayoutText {#text} at (186,38) size 87x15
+                    text run at (186,38) width 87: "transparent"
+                LayoutText {#text} at (272,36) size 403x18
+                  text run at (272,36) width 9: ". "
+                  text run at (280,36) width 395: "If the document background is visible, the browser is in error."
+              LayoutBlockFlow {P} at (4,142) size 762x18
+                LayoutText {#text} at (0,0) size 754x18
+                  text run at (0,0) width 469: "This element should allow the document background to \"shine through.\" "
+                  text run at (468,0) width 286: "There should be no green backgrounds here!"
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_image-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_image-expected.txt
new file mode 100644
index 0000000..95274fa
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_image-expected.txt
@@ -0,0 +1,95 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 367x45
+          text run at (0,0) width 367: "P {background-image: url(../resources/bg.gif);}"
+          text run at (366,0) width 1: " "
+          text run at (0,15) width 235: ".one {background-image: none;}"
+          text run at (234,15) width 1: " "
+          text run at (0,30) width 0: " "
+      LayoutBlockFlow {P} at (0,110) size 784x36
+        LayoutText {#text} at (0,0) size 760x36
+          text run at (0,0) width 512: "This sentence should be backed by an image-- a green grid pattern, in this case. "
+          text run at (511,0) width 249: "The background image should also tile"
+          text run at (0,18) width 678: "along both axes, because no repeat direction is specified (specific tests for repeating are found elsewhere)."
+      LayoutBlockFlow {P} at (0,162) size 784x72
+        LayoutText {#text} at (0,0) size 607x18
+          text run at (0,0) width 607: "This sentence should be backed by a repeated green-grid image, as should the last three words "
+        LayoutInline {STRONG} at (0,0) size 105x18
+          LayoutInline {SPAN} at (0,0) size 105x18
+            LayoutText {#text} at (606,0) size 105x18
+              text run at (606,0) width 105: "in this sentence"
+        LayoutText {#text} at (710,0) size 757x36
+          text run at (710,0) width 9: ". "
+          text run at (718,0) width 39: "If it is"
+          text run at (0,18) width 60: "not, then "
+        LayoutInline {CODE} at (0,0) size 33x15
+          LayoutText {#text} at (59,20) size 33x15
+            text run at (59,20) width 33: "none"
+        LayoutText {#text} at (91,18) size 174x18
+          text run at (91,18) width 169: " is interpreted incorrectly. "
+          text run at (259,18) width 6: "("
+        LayoutInline {CODE} at (0,0) size 32x15
+          LayoutText {#text} at (264,20) size 32x15
+            text run at (264,20) width 32: "none"
+        LayoutText {#text} at (295,18) size 763x54
+          text run at (295,18) width 468: " means that the element has no background image, allowing the parent to"
+          text run at (0,36) width 763: "\"shine through\" by default; since the parent of the words \"in this sentence\" is the paragraph, then the paragraph's image"
+          text run at (0,54) width 118: "should be visible.)"
+      LayoutBlockFlow {P} at (0,250) size 784x36
+        LayoutText {#text} at (0,0) size 774x36
+          text run at (0,0) width 774: "This sentence should NOT be backed by a repeated green-grid image, allowing the page's background to \"shine through\""
+          text run at (0,18) width 50: "instead."
+      LayoutTable {TABLE} at (0,302) size 784x212 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x210
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x184
+            LayoutTableCell {TD} at (0,105) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x184 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x36
+                LayoutText {#text} at (0,0) size 760x36
+                  text run at (0,0) width 512: "This sentence should be backed by an image-- a green grid pattern, in this case. "
+                  text run at (511,0) width 249: "The background image should also tile"
+                  text run at (0,18) width 678: "along both axes, because no repeat direction is specified (specific tests for repeating are found elsewhere)."
+              LayoutBlockFlow {P} at (4,56) size 762x72
+                LayoutText {#text} at (0,0) size 607x18
+                  text run at (0,0) width 607: "This sentence should be backed by a repeated green-grid image, as should the last three words "
+                LayoutInline {STRONG} at (0,0) size 105x18
+                  LayoutInline {SPAN} at (0,0) size 105x18
+                    LayoutText {#text} at (606,0) size 105x18
+                      text run at (606,0) width 105: "in this sentence"
+                LayoutText {#text} at (710,0) size 757x36
+                  text run at (710,0) width 9: ". "
+                  text run at (718,0) width 39: "If it is"
+                  text run at (0,18) width 60: "not, then "
+                LayoutInline {CODE} at (0,0) size 33x15
+                  LayoutText {#text} at (59,20) size 33x15
+                    text run at (59,20) width 33: "none"
+                LayoutText {#text} at (91,18) size 174x18
+                  text run at (91,18) width 169: " is interpreted incorrectly. "
+                  text run at (259,18) width 6: "("
+                LayoutInline {CODE} at (0,0) size 32x15
+                  LayoutText {#text} at (264,20) size 32x15
+                    text run at (264,20) width 32: "none"
+                LayoutText {#text} at (295,18) size 747x54
+                  text run at (295,18) width 452: " means that the element has no background image, allowing the parent"
+                  text run at (0,36) width 737: "to \"shine through\" by default; since the parent of the words \"in this sentence\" is the paragraph, then the paragraph's"
+                  text run at (0,54) width 161: "image should be visible.)"
+              LayoutBlockFlow {P} at (4,144) size 762x36
+                LayoutText {#text} at (0,0) size 714x36
+                  text run at (0,0) width 714: "This sentence should NOT be backed by a repeated green-grid image, allowing the page's background to \"shine"
+                  text run at (0,18) width 110: "through\" instead."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_position-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_position-expected.txt
new file mode 100644
index 0000000..1e90e84
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_position-expected.txt
@@ -0,0 +1,149 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1458
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1458 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1458
+    LayoutBlockFlow {BODY} at (8,8) size 769x1442 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x255
+        LayoutText {#text} at (0,0) size 671x255
+          text run at (0,0) width 632: "BODY {background-image: url(../resources/bg.gif); background-position: right top;"
+          text run at (631,0) width 1: " "
+          text run at (0,15) width 281: "      background-repeat: no-repeat;}"
+          text run at (280,15) width 1: " "
+          text run at (0,30) width 609: ".one {background-image: url(../resources/bg.gif); background-position: center;"
+          text run at (608,30) width 1: " "
+          text run at (0,45) width 469: "      background-repeat: no-repeat; background-color: aqua;}"
+          text run at (468,45) width 1: " "
+          text run at (0,60) width 617: ".two {background-image: url(../resources/bg.gif); background-position: 50% 50%;"
+          text run at (616,60) width 1: " "
+          text run at (0,75) width 469: "      background-repeat: no-repeat; background-color: aqua;}"
+          text run at (468,75) width 1: " "
+          text run at (0,90) width 671: ".three {background-image: url(../resources/bg.gif); background-position: bottom right;"
+          text run at (670,90) width 1: " "
+          text run at (0,105) width 484: "        background-repeat: no-repeat; background-color: aqua;}"
+          text run at (483,105) width 1: " "
+          text run at (0,120) width 640: ".four {background-image: url(../resources/bg.gif); background-position: 100% 100%;"
+          text run at (639,120) width 1: " "
+          text run at (0,135) width 476: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (475,135) width 1: " "
+          text run at (0,150) width 617: ".five {background-image: url(../resources/bg.gif); background-position: 0% 50%;"
+          text run at (616,150) width 1: " "
+          text run at (0,165) width 476: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (475,165) width 1: " "
+          text run at (0,180) width 617: ".six {background-image: url(../resources/bg.gif); background-position: 75% 25%;"
+          text run at (616,180) width 1: " "
+          text run at (0,195) width 476: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (475,195) width 1: " "
+          text run at (0,210) width 648: ".seven {background-image: url(../resources/bg.gif); background-position: 20px 20px;"
+          text run at (647,210) width 1: " "
+          text run at (0,225) width 476: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (475,225) width 1: " "
+          text run at (0,240) width 0: " "
+      LayoutBlockFlow {P} at (0,320) size 769x18
+        LayoutText {#text} at (0,0) size 514x18
+          text run at (0,0) width 514: "This document should have a single, small green image in its upper right corner."
+      LayoutBlockFlow {P} at (0,354) size 769x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 756x54
+          text run at (0,0) width 753: "This paragraph should have a single, small green image exactly in its center; that is, the center of the image should be"
+          text run at (0,18) width 231: "fixed at the center of the paragraph. "
+          text run at (231,18) width 525: "The background color will make it easier to determine the edges of the paragraph,"
+          text run at (0,36) width 295: "and therefore allow you to calculate its center."
+      LayoutBlockFlow {P} at (0,424) size 769x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 756x54
+          text run at (0,0) width 753: "This paragraph should have a single, small green image exactly in its center; that is, the center of the image should be"
+          text run at (0,18) width 231: "fixed at the center of the paragraph. "
+          text run at (231,18) width 525: "The background color will make it easier to determine the edges of the paragraph,"
+          text run at (0,36) width 295: "and therefore allow you to calculate its center."
+      LayoutBlockFlow {P} at (0,494) size 769x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 764x54
+          text run at (0,0) width 748: "This paragraph should have a single, small green image in its lower-right corner; that is, the lower right corner of the"
+          text run at (0,18) width 417: "image should be fixed at the lower right corner of the paragraph. "
+          text run at (416,18) width 348: "The background color will make it easier to determine"
+          text run at (0,36) width 445: "the edges of the paragraph, and therefore allow you to see its corners."
+      LayoutBlockFlow {P} at (0,564) size 769x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 764x54
+          text run at (0,0) width 748: "This paragraph should have a single, small green image in its lower-right corner; that is, the lower right corner of the"
+          text run at (0,18) width 417: "image should be fixed at the lower right corner of the paragraph. "
+          text run at (416,18) width 348: "The background color will make it easier to determine"
+          text run at (0,36) width 445: "the edges of the paragraph, and therefore allow you to see its corners."
+      LayoutBlockFlow {P} at (0,634) size 769x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 751x54
+          text run at (0,0) width 741: "This paragraph should have a single, small green image exactly at the left center; that is, the left center of the image"
+          text run at (0,18) width 323: "should be fixed at the left center of the paragraph. "
+          text run at (322,18) width 429: "The background color will make it easier to determine the edges of"
+          text run at (0,36) width 391: "the paragraph, and therefore allow you to calculate its center."
+      LayoutBlockFlow {P} at (0,704) size 769x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 762x54
+          text run at (0,0) width 762: "This paragraph should have a single, small green image positioned 75% of the way across the element, and 25% down."
+          text run at (0,18) width 758: "The background color will make it easier to determine the edges of the paragraph, which should help in determining if"
+          text run at (0,36) width 683: "all this is so, and the extra text should make the element long enough for this test to be simpler to evaluate."
+      LayoutBlockFlow {P} at (0,774) size 769x72 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 769x72
+          text run at (0,0) width 764: "This paragraph should have a single, small green image positioned 20 pixels down and to the left of the upper left-hand"
+          text run at (0,18) width 759: "corner; that is, the upper left-hand corner of the image should be 20 pixels down and to the left of the upper-left corner"
+          text run at (0,36) width 100: "of the element. "
+          text run at (99,36) width 670: "The background color will make it easier to determine the edges of the paragraph, which should assist in"
+          text run at (0,54) width 124: "evaluating this test."
+      LayoutTable {TABLE} at (0,862) size 769x580 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x578
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x552
+            LayoutTableCell {TD} at (0,289) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x552 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18
+                LayoutText {#text} at (0,0) size 514x18
+                  text run at (0,0) width 514: "This document should have a single, small green image in its upper right corner."
+              LayoutBlockFlow {P} at (4,38) size 747x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 734x54
+                  text run at (0,0) width 734: "This paragraph should have a single, small green image exactly in its center; that is, the center of the image should"
+                  text run at (0,18) width 251: "be fixed at the center of the paragraph. "
+                  text run at (250,18) width 453: "The background color will make it easier to determine the edges of the"
+                  text run at (0,36) width 367: "paragraph, and therefore allow you to calculate its center."
+              LayoutBlockFlow {P} at (4,108) size 747x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 734x54
+                  text run at (0,0) width 734: "This paragraph should have a single, small green image exactly in its center; that is, the center of the image should"
+                  text run at (0,18) width 251: "be fixed at the center of the paragraph. "
+                  text run at (250,18) width 453: "The background color will make it easier to determine the edges of the"
+                  text run at (0,36) width 367: "paragraph, and therefore allow you to calculate its center."
+              LayoutBlockFlow {P} at (4,178) size 747x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 748x54
+                  text run at (0,0) width 748: "This paragraph should have a single, small green image in its lower-right corner; that is, the lower right corner of the"
+                  text run at (0,18) width 417: "image should be fixed at the lower right corner of the paragraph. "
+                  text run at (416,18) width 280: "The background color will make it easier to"
+                  text run at (0,36) width 513: "determine the edges of the paragraph, and therefore allow you to see its corners."
+              LayoutBlockFlow {P} at (4,248) size 747x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 748x54
+                  text run at (0,0) width 748: "This paragraph should have a single, small green image in its lower-right corner; that is, the lower right corner of the"
+                  text run at (0,18) width 417: "image should be fixed at the lower right corner of the paragraph. "
+                  text run at (416,18) width 280: "The background color will make it easier to"
+                  text run at (0,36) width 513: "determine the edges of the paragraph, and therefore allow you to see its corners."
+              LayoutBlockFlow {P} at (4,318) size 747x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 741x54
+                  text run at (0,0) width 741: "This paragraph should have a single, small green image exactly at the left center; that is, the left center of the image"
+                  text run at (0,18) width 323: "should be fixed at the left center of the paragraph. "
+                  text run at (322,18) width 412: "The background color will make it easier to determine the edges"
+                  text run at (0,36) width 408: "of the paragraph, and therefore allow you to calculate its center."
+              LayoutBlockFlow {P} at (4,388) size 747x72 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 719x72
+                  text run at (0,0) width 719: "This paragraph should have a single, small green image positioned 75% of the way across the element, and 25%"
+                  text run at (0,18) width 44: "down. "
+                  text run at (43,18) width 663: "The background color will make it easier to determine the edges of the paragraph, which should help in"
+                  text run at (0,36) width 717: "determining if all this is so, and the extra text should make the element long enough for this test to be simpler to"
+                  text run at (0,54) width 58: "evaluate."
+              LayoutBlockFlow {P} at (4,476) size 747x72 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 738x72
+                  text run at (0,0) width 733: "This paragraph should have a single, small green image positioned 20 pixels down and to the left of the upper left-"
+                  text run at (0,18) width 728: "hand corner; that is, the upper left-hand corner of the image should be 20 pixels down and to the left of the upper-"
+                  text run at (0,36) width 170: "left corner of the element. "
+                  text run at (169,36) width 569: "The background color will make it easier to determine the edges of the paragraph, which"
+                  text run at (0,54) width 226: "should assist in evaluating this test."
+layer at (8,310) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,302) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_repeat-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_repeat-expected.txt
new file mode 100644
index 0000000..15c11b7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/background_repeat-expected.txt
@@ -0,0 +1,311 @@
+layer at (0,0) size 800x600 scrollWidth 866 scrollHeight 1838
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x1838 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x1838
+    LayoutBlockFlow {BODY} at (8,8) size 784x1822 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x225
+        LayoutText {#text} at (0,0) size 859x225
+          text run at (0,0) width 656: ".one {background-image: url(../resources/oransqr.gif); background-repeat: repeat-y;}"
+          text run at (655,0) width 1: " "
+          text run at (0,15) width 656: ".two {background-image: url(../resources/oransqr.gif); background-repeat: repeat-x;}"
+          text run at (655,15) width 1: " "
+          text run at (0,30) width 679: ".three {background-image: url(../resources/oransqr.gif); background-repeat: no-repeat;}"
+          text run at (678,30) width 1: " "
+          text run at (0,45) width 859: ".four {background-image: url(../resources/bg.gif); background-position: 50% 50%; background-repeat: repeat-y;}"
+          text run at (858,45) width 1: " "
+          text run at (0,60) width 687: ".five {background-image: url(../resources/crosshair2.gif); background-position: 50% 50%;"
+          text run at (686,60) width 1: " "
+          text run at (0,75) width 235: "       background-color: red;}"
+          text run at (234,75) width 1: " "
+          text run at (0,90) width 703: ".six {background-image: url(../resources/crosshair2.gif); background-position: center top;"
+          text run at (702,90) width 1: " "
+          text run at (0,105) width 227: "      background-color: red;}"
+          text run at (226,105) width 1: " "
+          text run at (0,120) width 703: ".seven {background-image: url(../resources/crosshair2.gif); background-position: top left;"
+          text run at (702,120) width 1: " "
+          text run at (0,135) width 242: "        background-color: red;}"
+          text run at (241,135) width 1: " "
+          text run at (0,150) width 734: ".eight {background-image: url(../resources/crosshair2.gif); background-position: bottom right;"
+          text run at (733,150) width 1: " "
+          text run at (0,165) width 242: "        background-color: red;}"
+          text run at (241,165) width 1: " "
+          text run at (0,180) width 687: ".nine {background-image: url(../resources/crosshair2.gif); background-position: 50% 50%;"
+          text run at (686,180) width 1: " "
+          text run at (0,195) width 235: "       background-color: red;}"
+          text run at (234,195) width 1: " "
+          text run at (0,210) width 0: " "
+      LayoutBlockFlow {P} at (0,290) size 784x54
+        LayoutText {#text} at (0,0) size 779x36
+          text run at (0,0) width 779: "This sentence should have an orange stripe repeated in the \"y\" direction, starting at the upper left corner (since the default"
+          text run at (0,18) width 23: "for "
+        LayoutInline {CODE} at (0,0) size 149x15
+          LayoutText {#text} at (22,20) size 149x15
+            text run at (22,20) width 149: "background-position"
+        LayoutText {#text} at (170,18) size 740x36
+          text run at (170,18) width 328: " is '0% 0%' and that property is not declared here). "
+          text run at (497,18) width 243: "This is extra text included for the sole"
+          text run at (0,36) width 264: "purpose of making the paragraph longer. "
+          text run at (263,36) width 224: "Thank you for your understanding."
+      LayoutBlockFlow {P} at (0,360) size 784x54
+        LayoutText {#text} at (0,0) size 779x36
+          text run at (0,0) width 779: "This sentence should have an orange stripe repeated in the \"x\" direction, starting at the upper left corner (since the default"
+          text run at (0,18) width 23: "for "
+        LayoutInline {CODE} at (0,0) size 149x15
+          LayoutText {#text} at (22,20) size 149x15
+            text run at (22,20) width 149: "background-position"
+        LayoutText {#text} at (170,18) size 740x36
+          text run at (170,18) width 328: " is '0% 0%' and that property is not declared here). "
+          text run at (497,18) width 243: "This is extra text included for the sole"
+          text run at (0,36) width 264: "purpose of making the paragraph longer. "
+          text run at (263,36) width 224: "Thank you for your understanding."
+      LayoutBlockFlow {P} at (0,430) size 784x54
+        LayoutText {#text} at (0,0) size 712x18
+          text run at (0,0) width 712: "This sentence should have a single orange square behind it, placed at the upper left corner (since the default for"
+        LayoutInline {CODE} at (0,0) size 149x15
+          LayoutText {#text} at (0,20) size 149x15
+            text run at (0,20) width 149: "background-position"
+        LayoutText {#text} at (148,18) size 772x36
+          text run at (148,18) width 327: " is '0% 0%' and that property is not declared here). "
+          text run at (474,18) width 298: "This is extra text included for the sole purpose"
+          text run at (0,36) width 209: "of making the paragraph longer. "
+          text run at (208,36) width 225: "Thank you for your understanding."
+      LayoutBlockFlow {P} at (0,500) size 784x72
+        LayoutText {#text} at (0,0) size 778x36
+          text run at (0,0) width 778: "This sentence should have a green-hatch stripe running vertically down the center of the paragraph, with the origin image"
+          text run at (0,18) width 221: "exactly centered in the paragraph. "
+          text run at (220,18) width 103: "This is because "
+        LayoutInline {CODE} at (0,0) size 63x15
+          LayoutText {#text} at (322,20) size 63x15
+            text run at (322,20) width 63: "repeat-y"
+        LayoutText {#text} at (384,18) size 118x18
+          text run at (384,18) width 118: " specifies tiling in "
+        LayoutInline {EM} at (0,0) size 30x18
+          LayoutText {#text} at (501,18) size 30x18
+            text run at (501,18) width 30: "both"
+        LayoutText {#text} at (530,18) size 779x36
+          text run at (530,18) width 162: " directions on the y-axis. "
+          text run at (691,18) width 88: "Note that this"
+          text run at (0,36) width 275: "test is only valid if the user agent supports "
+        LayoutInline {CODE} at (0,0) size 149x15
+          LayoutText {#text} at (274,38) size 149x15
+            text run at (274,38) width 149: "background-position"
+        LayoutText {#text} at (422,36) size 35x18
+          text run at (422,36) width 35: " (see "
+        LayoutInline {A} at (0,0) size 59x18 [color=#0000FF]
+          LayoutText {#text} at (456,36) size 59x18
+            text run at (456,36) width 59: "test 5.3.6"
+        LayoutText {#text} at (514,36) size 771x36
+          text run at (514,36) width 14: "). "
+          text run at (527,36) width 244: "I'll fill the paragraph with extra text to"
+          text run at (0,54) width 350: "make the conformance (or lack thereof) more obvious."
+      LayoutBlockFlow {P} at (0,588) size 784x90 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 768x18
+          text run at (0,0) width 670: "This paragraph should have a tiled background, with the origin image exactly centered in the paragraph. "
+          text run at (669,0) width 99: "This is because"
+        LayoutInline {CODE} at (0,0) size 133x15
+          LayoutText {#text} at (0,20) size 133x15
+            text run at (0,20) width 133: "background-repeat"
+        LayoutText {#text} at (132,18) size 118x18
+          text run at (132,18) width 118: " specifies tiling in "
+        LayoutInline {EM} at (0,0) size 18x18
+          LayoutText {#text} at (249,18) size 18x18
+            text run at (249,18) width 18: "all"
+        LayoutText {#text} at (266,18) size 765x36
+          text run at (266,18) width 372: " directions, regardless of the position of the origin image. "
+          text run at (637,18) width 128: "Note that this test is"
+          text run at (0,36) width 234: "only valid if the user agent supports "
+        LayoutInline {CODE} at (0,0) size 149x15
+          LayoutText {#text} at (233,38) size 149x15
+            text run at (233,38) width 149: "background-position"
+        LayoutText {#text} at (381,36) size 35x18
+          text run at (381,36) width 35: " (see "
+        LayoutInline {A} at (0,0) size 59x18 [color=#0000FF]
+          LayoutText {#text} at (415,36) size 59x18
+            text run at (415,36) width 59: "test 5.3.6"
+        LayoutText {#text} at (473,36) size 783x54
+          text run at (473,36) width 14: "). "
+          text run at (486,36) width 283: "I'll fill the paragraph with extra text to make"
+          text run at (0,54) width 315: "the conformance (or lack thereof) more obvious. "
+          text run at (314,54) width 469: "A background color is present, although if it is visible then the image has"
+          text run at (0,72) width 144: "not bee correctly tiled."
+      LayoutBlockFlow {P} at (0,694) size 784x54 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 781x54
+          text run at (0,0) width 781: "This sentence should have a fully tiled background which starts at its center top; that is, the background's origin should be"
+          text run at (0,18) width 283: "the exact center of the top of the paragraph. "
+          text run at (282,18) width 460: "I'll fill it with extra text to make the conformance (or lack thereof) more"
+          text run at (0,36) width 59: "obvious. "
+          text run at (58,36) width 669: "A background color is present, although if it is visible, then the image may not have been tiled correctly."
+      LayoutBlockFlow {P} at (0,764) size 784x54 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 770x54
+          text run at (0,0) width 499: "This sentence should have a fully tiled background which starts at its top left. "
+          text run at (498,0) width 228: "I'll fill it with extra text to make the"
+          text run at (0,18) width 291: "conformance (or lack thereof) more obvious. "
+          text run at (290,18) width 480: "A background color is present, although if it is visible, then the image may"
+          text run at (0,36) width 186: "not have been tiled correctly."
+      LayoutBlockFlow {P} at (0,834) size 784x72 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 778x72
+          text run at (0,0) width 778: "This sentence should have a fully tiled background which starts at its bottom right; in other words, a complete instance of"
+          text run at (0,18) width 702: "the image should be anchored in the bottom right corner, with the tiled background extending out from there. "
+          text run at (701,18) width 53: "I'll fill it"
+          text run at (0,36) width 467: "with extra text to make the conformance (or lack thereof) more obvious. "
+          text run at (466,36) width 299: "A background color is present, although if it is"
+          text run at (0,54) width 366: "visible, then the image may not have been tiled correctly."
+      LayoutBlockFlow {P} at (0,922) size 784x108 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 782x108
+          text run at (0,0) width 737: "This sentence should have a fully tiled background which starts at its center and is tiled in all directions; that is, the"
+          text run at (0,18) width 414: "background's origin should be the exact center of the paragraph. "
+          text run at (413,18) width 369: "I'll fill it with extra text to make the conformance (or lack"
+          text run at (0,36) width 151: "thereof) more obvious. "
+          text run at (150,36) width 454: "In fact, a lot of extra text will be necessary to make this at all obvious. "
+          text run at (603,36) width 160: "This is true because I am"
+          text run at (0,54) width 765: "not able to increase the text size without resorting to either headings or other CSS properties, neither of which I want to"
+          text run at (0,72) width 162: "use in this circumstance. "
+          text run at (161,72) width 245: "This ought to be enough text, though. "
+          text run at (405,72) width 350: "A background color is present, although if it is visible,"
+          text run at (0,90) width 315: "then the image may not have been tiled correctly."
+      LayoutTable {TABLE} at (0,1046) size 784x776 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x774
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x748
+            LayoutTableCell {TD} at (0,387) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x748 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x54
+                LayoutText {#text} at (0,0) size 731x36
+                  text run at (0,0) width 731: "This sentence should have an orange stripe repeated in the \"y\" direction, starting at the upper left corner (since the"
+                  text run at (0,18) width 72: "default for "
+                LayoutInline {CODE} at (0,0) size 149x15
+                  LayoutText {#text} at (71,20) size 149x15
+                    text run at (71,20) width 149: "background-position"
+                LayoutText {#text} at (219,18) size 759x36
+                  text run at (219,18) width 327: " is '0% 0%' and that property is not declared here). "
+                  text run at (545,18) width 214: "This is extra text included for the"
+                  text run at (0,36) width 294: "sole purpose of making the paragraph longer. "
+                  text run at (293,36) width 224: "Thank you for your understanding."
+              LayoutBlockFlow {P} at (4,74) size 762x54
+                LayoutText {#text} at (0,0) size 731x36
+                  text run at (0,0) width 731: "This sentence should have an orange stripe repeated in the \"x\" direction, starting at the upper left corner (since the"
+                  text run at (0,18) width 72: "default for "
+                LayoutInline {CODE} at (0,0) size 149x15
+                  LayoutText {#text} at (71,20) size 149x15
+                    text run at (71,20) width 149: "background-position"
+                LayoutText {#text} at (219,18) size 759x36
+                  text run at (219,18) width 327: " is '0% 0%' and that property is not declared here). "
+                  text run at (545,18) width 214: "This is extra text included for the"
+                  text run at (0,36) width 294: "sole purpose of making the paragraph longer. "
+                  text run at (293,36) width 224: "Thank you for your understanding."
+              LayoutBlockFlow {P} at (4,144) size 762x54
+                LayoutText {#text} at (0,0) size 712x18
+                  text run at (0,0) width 712: "This sentence should have a single orange square behind it, placed at the upper left corner (since the default for"
+                LayoutInline {CODE} at (0,0) size 149x15
+                  LayoutText {#text} at (0,20) size 149x15
+                    text run at (0,20) width 149: "background-position"
+                LayoutText {#text} at (148,18) size 717x36
+                  text run at (148,18) width 327: " is '0% 0%' and that property is not declared here). "
+                  text run at (474,18) width 243: "This is extra text included for the sole"
+                  text run at (0,36) width 264: "purpose of making the paragraph longer. "
+                  text run at (263,36) width 224: "Thank you for your understanding."
+              LayoutBlockFlow {P} at (4,214) size 762x72
+                LayoutText {#text} at (0,0) size 734x36
+                  text run at (0,0) width 734: "This sentence should have a green-hatch stripe running vertically down the center of the paragraph, with the origin"
+                  text run at (0,18) width 264: "image exactly centered in the paragraph. "
+                  text run at (263,18) width 103: "This is because "
+                LayoutInline {CODE} at (0,0) size 63x15
+                  LayoutText {#text} at (365,20) size 63x15
+                    text run at (365,20) width 63: "repeat-y"
+                LayoutText {#text} at (427,18) size 118x18
+                  text run at (427,18) width 118: " specifies tiling in "
+                LayoutInline {EM} at (0,0) size 30x18
+                  LayoutText {#text} at (544,18) size 30x18
+                    text run at (544,18) width 30: "both"
+                LayoutText {#text} at (573,18) size 732x36
+                  text run at (573,18) width 159: " directions on the y-axis."
+                  text run at (0,36) width 365: "Note that this test is only valid if the user agent supports "
+                LayoutInline {CODE} at (0,0) size 149x15
+                  LayoutText {#text} at (364,38) size 149x15
+                    text run at (364,38) width 149: "background-position"
+                LayoutText {#text} at (512,36) size 35x18
+                  text run at (512,36) width 35: " (see "
+                LayoutInline {A} at (0,0) size 59x18 [color=#0000FF]
+                  LayoutText {#text} at (546,36) size 59x18
+                    text run at (546,36) width 59: "test 5.3.6"
+                LayoutText {#text} at (604,36) size 749x36
+                  text run at (604,36) width 14: "). "
+                  text run at (617,36) width 132: "I'll fill the paragraph"
+                  text run at (0,54) width 463: "with extra text to make the conformance (or lack thereof) more obvious."
+              LayoutBlockFlow {P} at (4,302) size 762x90 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 714x36
+                  text run at (0,0) width 670: "This paragraph should have a tiled background, with the origin image exactly centered in the paragraph. "
+                  text run at (669,0) width 45: "This is"
+                  text run at (0,18) width 55: "because "
+                LayoutInline {CODE} at (0,0) size 134x15
+                  LayoutText {#text} at (54,20) size 134x15
+                    text run at (54,20) width 134: "background-repeat"
+                LayoutText {#text} at (187,18) size 118x18
+                  text run at (187,18) width 118: " specifies tiling in "
+                LayoutInline {EM} at (0,0) size 18x18
+                  LayoutText {#text} at (304,18) size 18x18
+                    text run at (304,18) width 18: "all"
+                LayoutText {#text} at (321,18) size 752x36
+                  text run at (321,18) width 372: " directions, regardless of the position of the origin image. "
+                  text run at (692,18) width 60: "Note that"
+                  text run at (0,36) width 302: "this test is only valid if the user agent supports "
+                LayoutInline {CODE} at (0,0) size 149x15
+                  LayoutText {#text} at (301,38) size 149x15
+                    text run at (301,38) width 149: "background-position"
+                LayoutText {#text} at (449,36) size 35x18
+                  text run at (449,36) width 35: " (see "
+                LayoutInline {A} at (0,0) size 59x18 [color=#0000FF]
+                  LayoutText {#text} at (483,36) size 59x18
+                    text run at (483,36) width 59: "test 5.3.6"
+                LayoutText {#text} at (541,36) size 754x54
+                  text run at (541,36) width 14: "). "
+                  text run at (554,36) width 200: "I'll fill the paragraph with extra"
+                  text run at (0,54) width 398: "text to make the conformance (or lack thereof) more obvious. "
+                  text run at (397,54) width 346: "A background color is present, although if it is visible"
+                  text run at (0,72) width 268: "then the image has not bee correctly tiled."
+              LayoutBlockFlow {P} at (4,408) size 762x54 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 761x54
+                  text run at (0,0) width 761: "This sentence should have a fully tiled background which starts at its center top; that is, the background's origin should"
+                  text run at (0,18) width 302: "be the exact center of the top of the paragraph. "
+                  text run at (301,18) width 460: "I'll fill it with extra text to make the conformance (or lack thereof) more"
+                  text run at (0,36) width 59: "obvious. "
+                  text run at (58,36) width 669: "A background color is present, although if it is visible, then the image may not have been tiled correctly."
+              LayoutBlockFlow {P} at (4,478) size 762x54 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 738x54
+                  text run at (0,0) width 499: "This sentence should have a fully tiled background which starts at its top left. "
+                  text run at (498,0) width 228: "I'll fill it with extra text to make the"
+                  text run at (0,18) width 291: "conformance (or lack thereof) more obvious. "
+                  text run at (290,18) width 448: "A background color is present, although if it is visible, then the image"
+                  text run at (0,36) width 217: "may not have been tiled correctly."
+              LayoutBlockFlow {P} at (4,548) size 762x72 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 760x72
+                  text run at (0,0) width 760: "This sentence should have a fully tiled background which starts at its bottom right; in other words, a complete instance"
+                  text run at (0,18) width 719: "of the image should be anchored in the bottom right corner, with the tiled background extending out from there. "
+                  text run at (718,18) width 40: "I'll fill"
+                  text run at (0,36) width 479: "it with extra text to make the conformance (or lack thereof) more obvious. "
+                  text run at (478,36) width 272: "A background color is present, although if"
+                  text run at (0,54) width 394: "it is visible, then the image may not have been tiled correctly."
+              LayoutBlockFlow {P} at (4,636) size 762x108 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 761x108
+                  text run at (0,0) width 737: "This sentence should have a fully tiled background which starts at its center and is tiled in all directions; that is, the"
+                  text run at (0,18) width 414: "background's origin should be the exact center of the paragraph. "
+                  text run at (413,18) width 338: "I'll fill it with extra text to make the conformance (or"
+                  text run at (0,36) width 181: "lack thereof) more obvious. "
+                  text run at (180,36) width 455: "In fact, a lot of extra text will be necessary to make this at all obvious. "
+                  text run at (634,36) width 127: "This is true because"
+                  text run at (0,54) width 746: "I am not able to increase the text size without resorting to either headings or other CSS properties, neither of which I"
+                  text run at (0,72) width 213: "want to use in this circumstance. "
+                  text run at (212,72) width 245: "This ought to be enough text, though. "
+                  text run at (456,72) width 299: "A background color is present, although if it is"
+                  text run at (0,90) width 366: "visible, then the image may not have been tiled correctly."
+layer at (8,280) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,272) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/color-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/color-expected.txt
new file mode 100644
index 0000000..28fa63bc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/color_and_background/color-expected.txt
@@ -0,0 +1,39 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x30
+        LayoutText {#text} at (0,0) size 157x30
+          text run at (0,0) width 157: ".one {color: green;}"
+          text run at (156,0) width 1: " "
+          text run at (0,15) width 0: " "
+      LayoutBlockFlow {P} at (0,95) size 784x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,129) size 784x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutTable {TABLE} at (0,163) size 219x88 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 217x86
+          LayoutTableRow {TR} at (0,0) size 217x26
+            LayoutTableCell {TD} at (0,0) size 217x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 217x60
+            LayoutTableCell {TD} at (0,43) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 205x60 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 197x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,38) size 197x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+layer at (8,85) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/conformance/forward_compatible_parsing-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/conformance/forward_compatible_parsing-expected.txt
new file mode 100644
index 0000000..e80136a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/conformance/forward_compatible_parsing-expected.txt
@@ -0,0 +1,550 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 4053
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x4053 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x4053
+    LayoutBlockFlow {BODY} at (8,8) size 769x4037 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x810
+        LayoutText {#text} at (0,0) size 554x810
+          text run at (0,0) width 297: "P.one {color: green; rotation: 70deg;}"
+          text run at (296,0) width 1: " "
+          text run at (0,15) width 172: "P.oneb {color: green;}"
+          text run at (171,15) width 1: " "
+          text run at (0,30) width 227: "P.oneb {color: invalidValue;}"
+          text run at (226,30) width 1: " "
+          text run at (0,45) width 266: "P.two {background-color: inherit;}"
+          text run at (265,45) width 1: " "
+          text run at (0,60) width 211: "H1 + P.three {color: blue;}"
+          text run at (210,60) width 1: " "
+          text run at (0,75) width 196: "P.four + H1 {color: red;}"
+          text run at (195,75) width 1: " "
+          text run at (0,90) width 258: "P.five {background-color: \"red\";}"
+          text run at (257,90) width 1: " "
+          text run at (0,105) width 398: "P.sixa {border-width: medium; border-style: solid;}"
+          text run at (397,105) width 1: " "
+          text run at (0,120) width 391: "P.sixb {border-width: funny; border-style: solid;}"
+          text run at (390,120) width 1: " "
+          text run at (0,135) width 383: "P.sixc {border-width: 50zu; border-style: solid;}"
+          text run at (382,135) width 1: " "
+          text run at (0,150) width 367: "P.sixd {border-width: px; border-style: solid;}"
+          text run at (366,150) width 1: " "
+          text run at (0,165) width 94: "@three-dee {"
+          text run at (93,165) width 1: " "
+          text run at (0,180) width 180: " @background-lighting {"
+          text run at (179,180) width 1: " "
+          text run at (0,195) width 133: "  azimuth: 30deg;"
+          text run at (132,195) width 1: " "
+          text run at (0,210) width 157: "  elevation: 190deg;"
+          text run at (156,210) width 1: " "
+          text run at (0,225) width 24: "  }"
+          text run at (23,225) width 1: " "
+          text run at (0,240) width 180: " P.seven { color: red }"
+          text run at (179,240) width 1: " "
+          text run at (0,255) width 16: " }"
+          text run at (15,255) width 1: " "
+          text run at (0,270) width 180: "P.eight {COLOR: GREEN;}"
+          text run at (179,270) width 1: " "
+          text run at (0,285) width 188: "OL:wait {color: maroon;}"
+          text run at (187,285) width 1: " "
+          text run at (0,300) width 266: "P.ten:first-child {color: maroon;}"
+          text run at (265,300) width 1: " "
+          text run at (0,315) width 203: "UL:lang(fr) {color: gray;}"
+          text run at (202,315) width 1: " "
+          text run at (0,330) width 242: "BLOCKQUOTE[href] {color: navy;}"
+          text run at (241,330) width 1: " "
+          text run at (0,345) width 281: "ACRONYM[href=\"foo\"] {color: purple;}"
+          text run at (280,345) width 1: " "
+          text run at (0,360) width 289: "ADDRESS[href~=\"foo\"] {color: purple;}"
+          text run at (288,360) width 1: " "
+          text run at (0,375) width 242: "SPAN[lang|=\"fr\"] {color: #c37;}"
+          text run at (241,375) width 1: " "
+          text run at (0,390) width 94: "@media tty {"
+          text run at (93,390) width 1: " "
+          text run at (0,405) width 133: " H1 {color: red;}"
+          text run at (132,405) width 1: " "
+          text run at (0,420) width 188: " P.sixteen {color: red;}"
+          text run at (187,420) width 1: " "
+          text run at (0,435) width 16: " }"
+          text run at (15,435) width 1: " "
+          text run at (0,450) width 94: "@three-dee {"
+          text run at (93,450) width 1: " "
+          text run at (0,465) width 203: " P.seventeen {color: red }"
+          text run at (202,465) width 1: " "
+          text run at (0,480) width 16: " }"
+          text run at (15,480) width 1: " "
+          text run at (0,495) width 554: "P.eighteena {text-decoration: underline overline line-through diagonal;"
+          text run at (553,495) width 1: " "
+          text run at (0,510) width 406: "            font: bold highlighted 100% sans-serif;}"
+          text run at (405,510) width 1: " "
+          text run at (0,525) width 554: "P.eighteenb {text-decoration: underline overline line-through diagonal;"
+          text run at (553,525) width 1: " "
+          text run at (0,540) width 367: "            font: bold highlighted 100% serif;}"
+          text run at (366,540) width 1: " "
+          text run at (0,555) width 375: "EM, P.nineteena ! EM, STRONG {font-size: 200%; }"
+          text run at (374,555) width 1: " "
+          text run at (0,570) width 0: " "
+          text run at (0,585) width 125: "// UL.nineteenb,"
+          text run at (124,585) width 1: " "
+          text run at (0,600) width 196: "P.nineteenb {color: red;}"
+          text run at (195,600) width 1: " "
+          text run at (0,615) width 0: " "
+          text run at (0,630) width 352: "P.twentya {rotation-code: \"}\"; color: blue;} "
+          text run at (351,630) width 1: " "
+          text run at (0,645) width 383: "P.twentyb {rotation-code: \"\\\"}\\\"\"; color: green;}"
+          text run at (382,645) width 1: " "
+          text run at (0,660) width 391: "P.twentyonea {rotation-code: '}'; color: purple;} "
+          text run at (390,660) width 1: " "
+          text run at (0,675) width 406: "P.twentyoneb {rotation-code: '\\'}\\''; color: green;}"
+          text run at (405,675) width 1: " "
+          text run at (0,690) width 102: "P.twentytwo {"
+          text run at (101,690) width 1: " "
+          text run at (0,705) width 367: " type-display: @threedee {rotation-code: '}';};"
+          text run at (366,705) width 1: " "
+          text run at (0,720) width 110: " color: green;"
+          text run at (109,720) width 1: " "
+          text run at (0,735) width 16: " }"
+          text run at (15,735) width 1: " "
+          text run at (0,750) width 274: "P.twentythree {text-indent: 0.5in;}"
+          text run at (273,750) width 1: " "
+          text run at (0,765) width 110: " color: maroon"
+          text run at (109,765) width 1: " "
+          text run at (0,780) width 203: "P.twentyfour {color: red;}"
+          text run at (202,780) width 1: " "
+          text run at (0,795) width 0: " "
+      LayoutBlockFlow {P} at (0,875) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 493x18
+          text run at (0,0) width 493: "This paragraph should be green, because only the rotation should be ignored."
+      LayoutBlockFlow {P} at (0,909) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 634x18
+          text run at (0,0) width 634: "This paragraph should be green, since error-checking should be done before calculating specificity."
+      LayoutBlockFlow {P} at (0,943) size 769x36
+        LayoutText {#text} at (0,0) size 568x18
+          text run at (0,0) width 568: "This paragraph should have a solid gray background (or a white grid), because in CSS1, "
+        LayoutInline {CODE} at (0,0) size 55x15
+          LayoutText {#text} at (567,2) size 55x15
+            text run at (567,2) width 55: "inherit"
+        LayoutText {#text} at (622,0) size 769x36
+          text run at (622,0) width 147: " is an invalid keyword,"
+          text run at (0,18) width 530: "and in CSS2, it will cause the gray background (not the white grid) to be inherited."
+      LayoutBlockFlow {P} at (0,995) size 769x18
+        LayoutText {#text} at (0,0) size 649x18
+          text run at (0,0) width 649: "This paragraph should be black, since in CSS1, the selector is invalid, and in CSS2, it does not apply."
+      LayoutBlockFlow {P} at (0,1029) size 769x18
+        LayoutText {#text} at (0,0) size 649x18
+          text run at (0,0) width 649: "This paragraph should be black, since in CSS1, the selector is invalid, and in CSS2, it does not apply."
+      LayoutBlockFlow {P} at (0,1063) size 769x18
+        LayoutText {#text} at (0,0) size 532x18
+          text run at (0,0) width 532: "This paragraph should have a white background, since keywords cannot be quoted."
+      LayoutBlockFlow {P} at (0,1097) size 769x42 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 731x36
+          text run at (3,3) width 656: "This paragraph should have a medium-width border around it (the same as the next three paragraphs). "
+          text run at (658,3) width 76: "This should"
+          text run at (3,21) width 365: "cause the user agent to use the default value of 'medium'."
+      LayoutBlockFlow {P} at (0,1155) size 769x42 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 754x36
+          text run at (3,3) width 754: "This paragraph should have a medium-width border around it (the same as the previous and the next two paragraphs),"
+          text run at (3,21) width 233: "because the border-width is invalid. "
+          text run at (235,21) width 444: "This should cause the user agent to use the default value of 'medium'."
+      LayoutBlockFlow {P} at (0,1213) size 769x60 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 754x54
+          text run at (3,3) width 754: "This paragraph should have a medium-width border around it (the same as the next and the previous two paragraphs),"
+          text run at (3,21) width 599: "because the border-width units are invalid, and therefore the border-width should be ignored. "
+          text run at (601,21) width 139: "This should cause the"
+          text run at (3,39) width 302: "user agent to use the default value of 'medium'."
+      LayoutBlockFlow {P} at (0,1289) size 769x60 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 758x54
+          text run at (3,3) width 758: "This paragraph should have a medium-width border around it (the same as the previous three paragraphs), because the"
+          text run at (3,21) width 558: "border-width does not have any value to go with its pixel unit, and is therefore invalid. "
+          text run at (560,21) width 170: "This should cause the user"
+          text run at (3,39) width 271: "agent to use the default value of 'medium'."
+      LayoutBlockFlow {P} at (0,1365) size 769x18
+        LayoutText {#text} at (0,0) size 676x18
+          text run at (0,0) width 676: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule."
+      LayoutBlockFlow {P} at (0,1399) size 769x36 [color=#008000]
+        LayoutText {#text} at (0,0) size 739x36
+          text run at (0,0) width 210: "This paragraph should be green. "
+          text run at (209,0) width 530: "CSS is case-insensitive, unless required to be case sensitive due to interaction with"
+          text run at (0,18) width 278: "other standards (e.g., font names or URLs.)"
+      LayoutBlockFlow {OL} at (0,1451) size 769x18
+        LayoutListItem {LI} at (40,0) size 729x18
+          LayoutListMarker (anonymous) at (-16,0) size 16x18: "1"
+          LayoutText {#text} at (0,0) size 635x18
+            text run at (0,0) width 635: "This ordered list item should be black, because the declaration has an invalid pseudo-class selector."
+      LayoutBlockFlow {P} at (0,1485) size 769x36
+        LayoutText {#text} at (0,0) size 765x36
+          text run at (0,0) width 765: "This paragraph should be black, because, in CSS1, :first-child is an invalid pseudo-class, and in CSS2, this paragraph is"
+          text run at (0,18) width 113: "not the first child."
+      LayoutBlockFlow {UL} at (0,1537) size 769x36
+        LayoutListItem {LI} at (40,0) size 729x36
+          LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+          LayoutText {#text} at (0,0) size 704x36
+            text run at (0,0) width 704: "This unordered list item should be black, because, according to CSS1, the selector is invalid, and according to"
+            text run at (0,18) width 232: "CSS2, the selector should not apply."
+      LayoutBlockFlow {BLOCKQUOTE} at (40,1589) size 689x36
+        LayoutText {#text} at (0,0) size 654x36
+          text run at (0,0) width 654: "This blockquote should be black, because, according to CSS1, the selector is invalid, and according to"
+          text run at (0,18) width 232: "CSS2, the selector should not apply."
+      LayoutBlockFlow {P} at (0,1641) size 769x36
+        LayoutInline {ACRONYM} at (0,0) size 761x36
+          LayoutText {#text} at (0,0) size 761x36
+            text run at (0,0) width 761: "This acronym should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the selector"
+            text run at (0,18) width 110: "should not apply."
+      LayoutBlockFlow {ADDRESS} at (0,1693) size 769x36
+        LayoutText {#text} at (0,0) size 756x36
+          text run at (0,0) width 756: "This address should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the selector"
+          text run at (0,18) width 110: "should not apply."
+      LayoutBlockFlow {P} at (0,1745) size 769x36
+        LayoutInline {SPAN} at (0,0) size 734x36
+          LayoutText {#text} at (0,0) size 734x36
+            text run at (0,0) width 734: "This span should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the selector"
+            text run at (0,18) width 110: "should not apply."
+      LayoutBlockFlow {P} at (0,1797) size 769x36
+        LayoutText {#text} at (0,0) size 755x36
+          text run at (0,0) width 680: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule. "
+          text run at (679,0) width 76: "However, it"
+          text run at (0,18) width 617: "is valid in CSS2, so if this is being viewed on a tty browser that supports CSS2, it should be red."
+      LayoutBlockFlow {P} at (0,1849) size 769x18
+        LayoutText {#text} at (0,0) size 676x18
+          text run at (0,0) width 676: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule."
+      LayoutBlockFlow {P} at (0,1883) size 769x72
+        LayoutText {#text} at (0,0) size 753x18
+          text run at (0,0) width 753: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold), because"
+        LayoutInline {CODE} at (0,0) size 63x15
+          LayoutText {#text} at (0,20) size 63x15
+            text run at (0,20) width 63: "diagonal"
+        LayoutText {#text} at (62,18) size 231x18
+          text run at (62,18) width 231: " is not a valid keyword, making the "
+        LayoutInline {CODE} at (0,0) size 118x15
+          LayoutText {#text} at (292,20) size 118x15
+            text run at (292,20) width 118: "text-decoration"
+        LayoutText {#text} at (409,18) size 135x18
+          text run at (409,18) width 57: " invalid. "
+          text run at (465,18) width 79: "In addition, "
+        LayoutInline {CODE} at (0,0) size 87x15
+          LayoutText {#text} at (543,20) size 87x15
+            text run at (543,20) width 87: "highlighted"
+        LayoutText {#text} at (629,18) size 762x36
+          text run at (629,18) width 133: " is not a valid part of"
+          text run at (0,36) width 24: "the "
+        LayoutInline {CODE} at (0,0) size 32x15
+          LayoutText {#text} at (23,38) size 32x15
+            text run at (23,38) width 32: "font"
+        LayoutText {#text} at (54,36) size 733x36
+          text run at (54,36) width 184: " property, making it invalid. "
+          text run at (237,36) width 496: "Therefore, this paragraph's font should be the UA default, and match the next"
+          text run at (0,54) width 72: "paragraph. "
+          text run at (71,54) width 197: "If this is not the case, then the "
+        LayoutInline {CODE} at (0,0) size 32x15
+          LayoutText {#text} at (267,56) size 32x15
+            text run at (267,56) width 32: "font"
+        LayoutText {#text} at (298,54) size 255x18
+          text run at (298,54) width 255: " declaration is being improperly parsed."
+      LayoutBlockFlow {P} at (0,1971) size 769x72
+        LayoutText {#text} at (0,0) size 753x18
+          text run at (0,0) width 753: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold), because"
+        LayoutInline {CODE} at (0,0) size 63x15
+          LayoutText {#text} at (0,20) size 63x15
+            text run at (0,20) width 63: "diagonal"
+        LayoutText {#text} at (62,18) size 231x18
+          text run at (62,18) width 231: " is not a valid keyword, making the "
+        LayoutInline {CODE} at (0,0) size 118x15
+          LayoutText {#text} at (292,20) size 118x15
+            text run at (292,20) width 118: "text-decoration"
+        LayoutText {#text} at (409,18) size 135x18
+          text run at (409,18) width 57: " invalid. "
+          text run at (465,18) width 79: "In addition, "
+        LayoutInline {CODE} at (0,0) size 87x15
+          LayoutText {#text} at (543,20) size 87x15
+            text run at (543,20) width 87: "highlighted"
+        LayoutText {#text} at (629,18) size 762x36
+          text run at (629,18) width 133: " is not a valid part of"
+          text run at (0,36) width 24: "the "
+        LayoutInline {CODE} at (0,0) size 32x15
+          LayoutText {#text} at (23,38) size 32x15
+            text run at (23,38) width 32: "font"
+        LayoutText {#text} at (54,36) size 760x36
+          text run at (54,36) width 184: " property, making it invalid. "
+          text run at (237,36) width 523: "Therefore, this paragraph's font should be the UA default, and match the previous"
+          text run at (0,54) width 72: "paragraph. "
+          text run at (71,54) width 197: "If this is not the case, then the "
+        LayoutInline {CODE} at (0,0) size 32x15
+          LayoutText {#text} at (267,56) size 32x15
+            text run at (267,56) width 32: "font"
+        LayoutText {#text} at (298,54) size 255x18
+          text run at (298,54) width 255: " declaration is being improperly parsed."
+      LayoutBlockFlow {P} at (0,2059) size 769x54
+        LayoutText {#text} at (0,0) size 542x18
+          text run at (0,0) width 513: "The text of this paragraph should be normal size because the selector is invalid. "
+          text run at (512,0) width 30: "The "
+        LayoutInline {EM} at (0,0) size 102x18
+          LayoutText {#text} at (541,0) size 102x18
+            text run at (541,0) width 102: "emphasized text"
+        LayoutText {#text} at (642,0) size 56x18
+          text run at (642,0) width 56: " and the "
+        LayoutInline {STRONG} at (0,0) size 741x36
+          LayoutText {#text} at (697,0) size 741x36
+            text run at (697,0) width 44: "strong"
+            text run at (0,18) width 26: "text"
+        LayoutText {#text} at (25,18) size 736x36
+          text run at (25,18) width 711: " within it should also be normal size, since the entire ruleset should be skipped (since in some future version of"
+          text run at (0,36) width 603: "CSS, there could be an operator within the selector that has higher precedence than a comma)."
+      LayoutBlockFlow {P} at (0,2129) size 769x36
+        LayoutText {#text} at (0,0) size 474x18
+          text run at (0,0) width 474: "This paragraph should be black, because the line before the declaration is "
+        LayoutInline {STRONG} at (0,0) size 23x18
+          LayoutText {#text} at (473,0) size 23x18
+            text run at (473,0) width 23: "not"
+        LayoutText {#text} at (495,0) size 759x36
+          text run at (495,0) width 264: " a comment and therefore the selector for"
+          text run at (0,18) width 141: "P.nineteenb is invalid."
+      LayoutBlockFlow {P} at (0,2181) size 769x18 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 480x18
+          text run at (0,0) width 480: "This paragraph should be blue, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2215) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 488x18
+          text run at (0,0) width 488: "This paragraph should be green, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2249) size 769x18 [color=#800080]
+        LayoutText {#text} at (0,0) size 493x18
+          text run at (0,0) width 493: "This paragraph should be purple, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2283) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 488x18
+          text run at (0,0) width 488: "This paragraph should be green, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2317) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 488x18
+          text run at (0,0) width 488: "This paragraph should be green, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2351) size 769x18
+        LayoutText {#text} at (48,0) size 612x18
+          text run at (48,0) width 494: "This paragraph should be indented half an inch, but it should not be maroon. "
+          text run at (541,0) width 119: "It should be black."
+      LayoutBlockFlow {P} at (0,2385) size 769x36
+        LayoutText {#text} at (0,0) size 767x36
+          text run at (0,0) width 767: "This paragraph should be black, because the color declaration after the previous ruleset should be considered part of the"
+          text run at (0,18) width 632: "selector for this ruleset, and this ruleset therefore has an invalid selector and should not be applied."
+      LayoutTable {TABLE} at (0,2437) size 769x1600 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1598
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x1572
+            LayoutTableCell {TD} at (0,799) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x1572 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 493x18
+                  text run at (0,0) width 493: "This paragraph should be green, because only the rotation should be ignored."
+              LayoutBlockFlow {P} at (4,38) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 634x18
+                  text run at (0,0) width 634: "This paragraph should be green, since error-checking should be done before calculating specificity."
+              LayoutBlockFlow {P} at (4,72) size 747x36
+                LayoutText {#text} at (0,0) size 568x18
+                  text run at (0,0) width 568: "This paragraph should have a solid gray background (or a white grid), because in CSS1, "
+                LayoutInline {CODE} at (0,0) size 55x15
+                  LayoutText {#text} at (567,2) size 55x15
+                    text run at (567,2) width 55: "inherit"
+                LayoutText {#text} at (622,0) size 705x36
+                  text run at (622,0) width 83: " is an invalid"
+                  text run at (0,18) width 594: "keyword, and in CSS2, it will cause the gray background (not the white grid) to be inherited."
+              LayoutBlockFlow {P} at (4,124) size 747x18
+                LayoutText {#text} at (0,0) size 649x18
+                  text run at (0,0) width 649: "This paragraph should be black, since in CSS1, the selector is invalid, and in CSS2, it does not apply."
+              LayoutBlockFlow {P} at (4,158) size 747x18
+                LayoutText {#text} at (0,0) size 649x18
+                  text run at (0,0) width 649: "This paragraph should be black, since in CSS1, the selector is invalid, and in CSS2, it does not apply."
+              LayoutBlockFlow {P} at (4,192) size 747x18
+                LayoutText {#text} at (0,0) size 532x18
+                  text run at (0,0) width 532: "This paragraph should have a white background, since keywords cannot be quoted."
+              LayoutBlockFlow {P} at (4,226) size 747x42 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 731x36
+                  text run at (3,3) width 656: "This paragraph should have a medium-width border around it (the same as the next three paragraphs). "
+                  text run at (658,3) width 76: "This should"
+                  text run at (3,21) width 365: "cause the user agent to use the default value of 'medium'."
+              LayoutBlockFlow {P} at (4,284) size 747x60 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 694x54
+                  text run at (3,3) width 670: "This paragraph should have a medium-width border around it (the same as the previous and the next two"
+                  text run at (3,21) width 317: "paragraphs), because the border-width is invalid. "
+                  text run at (319,21) width 378: "This should cause the user agent to use the default value of"
+                  text run at (3,39) width 63: "'medium'."
+              LayoutBlockFlow {P} at (4,360) size 747x60 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 711x54
+                  text run at (3,3) width 670: "This paragraph should have a medium-width border around it (the same as the next and the previous two"
+                  text run at (3,21) width 683: "paragraphs), because the border-width units are invalid, and therefore the border-width should be ignored. "
+                  text run at (685,21) width 29: "This"
+                  text run at (3,39) width 411: "should cause the user agent to use the default value of 'medium'."
+              LayoutBlockFlow {P} at (4,436) size 747x60 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 734x54
+                  text run at (3,3) width 734: "This paragraph should have a medium-width border around it (the same as the previous three paragraphs), because"
+                  text run at (3,21) width 582: "the border-width does not have any value to go with its pixel unit, and is therefore invalid. "
+                  text run at (584,21) width 139: "This should cause the"
+                  text run at (3,39) width 302: "user agent to use the default value of 'medium'."
+              LayoutBlockFlow {P} at (4,512) size 747x18
+                LayoutText {#text} at (0,0) size 676x18
+                  text run at (0,0) width 676: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule."
+              LayoutBlockFlow {P} at (4,546) size 747x36 [color=#008000]
+                LayoutText {#text} at (0,0) size 739x36
+                  text run at (0,0) width 210: "This paragraph should be green. "
+                  text run at (209,0) width 530: "CSS is case-insensitive, unless required to be case sensitive due to interaction with"
+                  text run at (0,18) width 278: "other standards (e.g., font names or URLs.)"
+              LayoutBlockFlow {OL} at (4,598) size 747x18
+                LayoutListItem {LI} at (40,0) size 707x18
+                  LayoutListMarker (anonymous) at (-16,0) size 16x18: "1"
+                  LayoutText {#text} at (0,0) size 635x18
+                    text run at (0,0) width 635: "This ordered list item should be black, because the declaration has an invalid pseudo-class selector."
+              LayoutBlockFlow {P} at (4,632) size 747x36
+                LayoutText {#text} at (0,0) size 683x36
+                  text run at (0,0) width 683: "This paragraph should be black, because, in CSS1, :first-child is an invalid pseudo-class, and in CSS2, this"
+                  text run at (0,18) width 196: "paragraph is not the first child."
+              LayoutBlockFlow {UL} at (4,684) size 747x36
+                LayoutListItem {LI} at (40,0) size 707x36
+                  LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                  LayoutText {#text} at (0,0) size 704x36
+                    text run at (0,0) width 704: "This unordered list item should be black, because, according to CSS1, the selector is invalid, and according to"
+                    text run at (0,18) width 232: "CSS2, the selector should not apply."
+              LayoutBlockFlow {BLOCKQUOTE} at (44,736) size 667x36
+                LayoutText {#text} at (0,0) size 654x36
+                  text run at (0,0) width 654: "This blockquote should be black, because, according to CSS1, the selector is invalid, and according to"
+                  text run at (0,18) width 232: "CSS2, the selector should not apply."
+              LayoutBlockFlow {P} at (4,788) size 747x36
+                LayoutInline {ACRONYM} at (0,0) size 707x36
+                  LayoutText {#text} at (0,0) size 707x36
+                    text run at (0,0) width 707: "This acronym should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the"
+                    text run at (0,18) width 164: "selector should not apply."
+              LayoutBlockFlow {ADDRESS} at (4,840) size 747x36
+                LayoutText {#text} at (0,0) size 701x36
+                  text run at (0,0) width 701: "This address should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the"
+                  text run at (0,18) width 165: "selector should not apply."
+              LayoutBlockFlow {P} at (4,892) size 747x36
+                LayoutInline {SPAN} at (0,0) size 734x36
+                  LayoutText {#text} at (0,0) size 734x36
+                    text run at (0,0) width 734: "This span should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the selector"
+                    text run at (0,18) width 110: "should not apply."
+              LayoutBlockFlow {P} at (4,944) size 747x36
+                LayoutText {#text} at (0,0) size 742x36
+                  text run at (0,0) width 680: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule. "
+                  text run at (679,0) width 63: "However,"
+                  text run at (0,18) width 630: "it is valid in CSS2, so if this is being viewed on a tty browser that supports CSS2, it should be red."
+              LayoutBlockFlow {P} at (4,996) size 747x18
+                LayoutText {#text} at (0,0) size 676x18
+                  text run at (0,0) width 676: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule."
+              LayoutBlockFlow {P} at (4,1030) size 747x72
+                LayoutText {#text} at (0,0) size 699x36
+                  text run at (0,0) width 699: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold),"
+                  text run at (0,18) width 55: "because "
+                LayoutInline {CODE} at (0,0) size 64x15
+                  LayoutText {#text} at (54,20) size 64x15
+                    text run at (54,20) width 64: "diagonal"
+                LayoutText {#text} at (117,18) size 230x18
+                  text run at (117,18) width 230: " is not a valid keyword, making the "
+                LayoutInline {CODE} at (0,0) size 118x15
+                  LayoutText {#text} at (346,20) size 118x15
+                    text run at (346,20) width 118: "text-decoration"
+                LayoutText {#text} at (463,18) size 135x18
+                  text run at (463,18) width 58: " invalid. "
+                  text run at (520,18) width 78: "In addition, "
+                LayoutInline {CODE} at (0,0) size 87x15
+                  LayoutText {#text} at (597,20) size 87x15
+                    text run at (597,20) width 87: "highlighted"
+                LayoutText {#text} at (683,18) size 735x36
+                  text run at (683,18) width 52: " is not a"
+                  text run at (0,36) width 106: "valid part of the "
+                LayoutInline {CODE} at (0,0) size 32x15
+                  LayoutText {#text} at (105,38) size 32x15
+                    text run at (105,38) width 32: "font"
+                LayoutText {#text} at (136,36) size 717x36
+                  text run at (136,36) width 184: " property, making it invalid. "
+                  text run at (319,36) width 398: "Therefore, this paragraph's font should be the UA default, and"
+                  text run at (0,54) width 171: "match the next paragraph. "
+                  text run at (170,54) width 196: "If this is not the case, then the "
+                LayoutInline {CODE} at (0,0) size 32x15
+                  LayoutText {#text} at (365,56) size 32x15
+                    text run at (365,56) width 32: "font"
+                LayoutText {#text} at (396,54) size 255x18
+                  text run at (396,54) width 255: " declaration is being improperly parsed."
+              LayoutBlockFlow {P} at (4,1118) size 747x72
+                LayoutText {#text} at (0,0) size 699x36
+                  text run at (0,0) width 699: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold),"
+                  text run at (0,18) width 55: "because "
+                LayoutInline {CODE} at (0,0) size 64x15
+                  LayoutText {#text} at (54,20) size 64x15
+                    text run at (54,20) width 64: "diagonal"
+                LayoutText {#text} at (117,18) size 230x18
+                  text run at (117,18) width 230: " is not a valid keyword, making the "
+                LayoutInline {CODE} at (0,0) size 118x15
+                  LayoutText {#text} at (346,20) size 118x15
+                    text run at (346,20) width 118: "text-decoration"
+                LayoutText {#text} at (463,18) size 135x18
+                  text run at (463,18) width 58: " invalid. "
+                  text run at (520,18) width 78: "In addition, "
+                LayoutInline {CODE} at (0,0) size 87x15
+                  LayoutText {#text} at (597,20) size 87x15
+                    text run at (597,20) width 87: "highlighted"
+                LayoutText {#text} at (683,18) size 735x36
+                  text run at (683,18) width 52: " is not a"
+                  text run at (0,36) width 106: "valid part of the "
+                LayoutInline {CODE} at (0,0) size 32x15
+                  LayoutText {#text} at (105,38) size 32x15
+                    text run at (105,38) width 32: "font"
+                LayoutText {#text} at (136,36) size 717x36
+                  text run at (136,36) width 184: " property, making it invalid. "
+                  text run at (319,36) width 398: "Therefore, this paragraph's font should be the UA default, and"
+                  text run at (0,54) width 198: "match the previous paragraph. "
+                  text run at (197,54) width 196: "If this is not the case, then the "
+                LayoutInline {CODE} at (0,0) size 32x15
+                  LayoutText {#text} at (392,56) size 32x15
+                    text run at (392,56) width 32: "font"
+                LayoutText {#text} at (423,54) size 256x18
+                  text run at (423,54) width 256: " declaration is being improperly parsed."
+              LayoutBlockFlow {P} at (4,1206) size 747x54
+                LayoutText {#text} at (0,0) size 542x18
+                  text run at (0,0) width 513: "The text of this paragraph should be normal size because the selector is invalid. "
+                  text run at (512,0) width 30: "The "
+                LayoutInline {EM} at (0,0) size 102x18
+                  LayoutText {#text} at (541,0) size 102x18
+                    text run at (541,0) width 102: "emphasized text"
+                LayoutText {#text} at (642,0) size 56x18
+                  text run at (642,0) width 56: " and the "
+                LayoutInline {STRONG} at (0,0) size 741x36
+                  LayoutText {#text} at (697,0) size 741x36
+                    text run at (697,0) width 44: "strong"
+                    text run at (0,18) width 26: "text"
+                LayoutText {#text} at (25,18) size 736x36
+                  text run at (25,18) width 711: " within it should also be normal size, since the entire ruleset should be skipped (since in some future version of"
+                  text run at (0,36) width 603: "CSS, there could be an operator within the selector that has higher precedence than a comma)."
+              LayoutBlockFlow {P} at (4,1276) size 747x36
+                LayoutText {#text} at (0,0) size 474x18
+                  text run at (0,0) width 474: "This paragraph should be black, because the line before the declaration is "
+                LayoutInline {STRONG} at (0,0) size 23x18
+                  LayoutText {#text} at (473,0) size 23x18
+                    text run at (473,0) width 23: "not"
+                LayoutText {#text} at (495,0) size 737x36
+                  text run at (495,0) width 242: " a comment and therefore the selector"
+                  text run at (0,18) width 164: "for P.nineteenb is invalid."
+              LayoutBlockFlow {P} at (4,1328) size 747x18 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 480x18
+                  text run at (0,0) width 480: "This paragraph should be blue, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1362) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 488x18
+                  text run at (0,0) width 488: "This paragraph should be green, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1396) size 747x18 [color=#800080]
+                LayoutText {#text} at (0,0) size 493x18
+                  text run at (0,0) width 493: "This paragraph should be purple, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1430) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 488x18
+                  text run at (0,0) width 488: "This paragraph should be green, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1464) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 488x18
+                  text run at (0,0) width 488: "This paragraph should be green, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1498) size 747x18
+                LayoutText {#text} at (48,0) size 612x18
+                  text run at (48,0) width 494: "This paragraph should be indented half an inch, but it should not be maroon. "
+                  text run at (541,0) width 119: "It should be black."
+              LayoutBlockFlow {P} at (4,1532) size 747x36
+                LayoutText {#text} at (0,0) size 743x36
+                  text run at (0,0) width 743: "This paragraph should be black, because the color declaration after the previous ruleset should be considered part of"
+                  text run at (0,18) width 656: "the selector for this ruleset, and this ruleset therefore has an invalid selector and should not be applied."
+layer at (8,865) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,857) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font-expected.txt
new file mode 100644
index 0000000..1267e44
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font-expected.txt
@@ -0,0 +1,230 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 4227
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x4227 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x4227.33
+    LayoutBlockFlow {BODY} at (8,8) size 769x4211.33 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x14
+        LayoutText {#text} at (0,0) size 272x14
+          text run at (0,0) width 272: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,26) size 769x168
+        LayoutText {#text} at (0,0) size 411x168
+          text run at (0,0) width 166: "BODY {font-size: 12px;}"
+          text run at (165,0) width 1: " "
+          text run at (0,14) width 332: ".one {font: italic small-caps 13pt Helvetica;}"
+          text run at (331,14) width 1: " "
+          text run at (0,28) width 209: ".two {font: 150%/150% serif;}"
+          text run at (208,28) width 1: " "
+          text run at (0,42) width 260: ".three {font: 150%/150% sans-serif;}"
+          text run at (259,42) width 1: " "
+          text run at (0,56) width 238: ".four {font: small/200% cursive;}"
+          text run at (237,56) width 1: " "
+          text run at (0,70) width 411: ".five {font: italic small-caps 900 150%/150% sans-serif;}"
+          text run at (410,70) width 1: " "
+          text run at (0,84) width 404: ".six {font: italic small-caps 100 150%/300% sans-serif;}"
+          text run at (403,84) width 1: " "
+          text run at (0,98) width 404: ".seven {font: italic small-caps 900 150%/2em monospace;}"
+          text run at (403,98) width 1: " "
+          text run at (0,112) width 411: ".eight {font: italic small-caps 500 150%/1in sans-serif;}"
+          text run at (410,112) width 1: " "
+          text run at (0,126) width 389: ".nine {font: oblique normal 700 18px/200% sans-serif;}"
+          text run at (388,126) width 1: " "
+          text run at (0,140) width 310: ".ten {font: normal 400 80%/2.5 sans-serif;}"
+          text run at (309,140) width 1: " "
+          text run at (0,154) width 274: "SPAN.color {background-color: silver;}"
+          text run at (273,154) width 1: " "
+      LayoutBlockFlow {P} at (0,220) size 769x14
+        LayoutText {#text} at (0,0) size 720x14
+          text run at (0,0) width 431: "This element is unstyled, and should inherit a font-size of 12px from the BODY element. "
+          text run at (430,0) width 290: "This is the \"base font size\" referred to in the following tests."
+      LayoutBlockFlow {P} at (0,251.33) size 769x20
+        LayoutText {#text} at (0,0) size 494x20
+          text run at (0,0) width 494: "This element should be 13pt. Helvetica which is in small-cap italics."
+      LayoutBlockFlow {P} at (0,289.33) size 769x81
+        LayoutText {#text} at (0,2) size 764x76
+          text run at (0,2) width 278: "This element should be in a serif font. "
+          text run at (277,2) width 475: "Its font-size should be 150% the base font size, and its line-height"
+          text run at (0,29) width 418: "should 150% of that value (18px and 27px, respectively). "
+          text run at (417,29) width 347: "Extra text is included for the purposes of testing"
+          text run at (0,56) width 152: "this more effectively."
+      LayoutBlockFlow {P} at (0,388.33) size 769x81
+        LayoutText {#text} at (0,3) size 761x75
+          text run at (0,3) width 349: "This element should be in a sans-serif font. "
+          text run at (348,3) width 413: "Its font-size should be 150% the base font size, and"
+          text run at (0,30) width 569: "its line-height should 150% of that value (18px and 27px, respectively). "
+          text run at (568,30) width 193: "Extra text is included for"
+          text run at (0,57) width 350: "the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,487.33) size 769x78
+        LayoutText {#text} at (0,2) size 756x47
+          text run at (0,2) width 608: "This element should be in a cursive font, 'small' in size, with a line-height 200% the height of the text's actual size. "
+          text run at (607,2) width 149: "For example, if the font-size"
+          text run at (0,28) width 32: "value "
+        LayoutInline {CODE} at (0,0) size 31x12
+          LayoutText {#text} at (31,33) size 31x12
+            text run at (31,33) width 31: "small"
+        LayoutText {#text} at (61,28) size 760x47
+          text run at (61,28) width 313: " is calculated at 10px, then the line-height should be 20px. "
+          text run at (373,28) width 271: "The actual value of the font-size is UA-dependent. "
+          text run at (643,28) width 117: "Extra text is included"
+          text run at (0,54) width 244: "for the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,583.33) size 769x108
+        LayoutText {#text} at (0,3) size 750x102
+          text run at (0,3) width 729: "This element should be in a sans-serif font, italicized and small caps, with a weight of 900. "
+          text run at (728,3) width 22: "Its"
+          text run at (0,30) width 748: "font-size should be 150% the base font size, and its line-height should be 150% of that value"
+          text run at (0,57) width 243: "(18px and 27px, respectively). "
+          text run at (242,57) width 480: "Extra text is included for the purposes of testing this more"
+          text run at (0,84) width 92: "effectively."
+      LayoutBlockFlow {P} at (0,709.33) size 769x162
+        LayoutText {#text} at (0,16) size 765x129
+          text run at (0,16) width 699: "This element should be in a sans-serif font, italicized and small caps, with a weight of 100. "
+          text run at (698,16) width 67: "Its font-"
+          text run at (0,70) width 761: "size should be 150% the base font size, and its line-height should be 300% of that value (18px and"
+          text run at (0,124) width 153: "54px, respectively). "
+          text run at (152,124) width 547: "Extra text is included for the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,889.33) size 769x144
+        LayoutText {#text} at (0,7) size 733x129
+          text run at (0,7) width 733: "This element should be in a monospace font, italicized and small caps, with a weight of"
+          text run at (0,43) width 54: "900. "
+          text run at (54,43) width 672: "Its font-size should be 150% the base font size, and its line-height should be"
+          text run at (0,79) width 605: "2em, or twice the element's font size (18px and 36px, respectively). "
+          text run at (604,79) width 111: "Extra text is"
+          text run at (0,115) width 488: "included for the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,1051.33) size 769x288
+        LayoutText {#text} at (0,37) size 741x213
+          text run at (0,37) width 719: "This element should be in a sans-serif font, italicized and small caps, with a weight of 500. "
+          text run at (718,37) width 23: "Its"
+          text run at (0,133) width 691: "font-size should be 150% the base font size, or 18px, and its line-height should be 1in. "
+          text run at (690,133) width 48: "Extra"
+          text run at (0,229) width 523: "text is included for the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,1357.33) size 769x144
+        LayoutText {#text} at (0,7) size 753x129
+          text run at (0,7) width 753: "This element should be in a sans-serif font, oblique and not small-caps, with a weight of"
+          text run at (0,43) width 41: "700. "
+          text run at (40,43) width 666: "Its font-size should be 18 pixels, and its line-height should be 36px (200% this"
+          text run at (0,79) width 177: "element's font size). "
+          text run at (176,79) width 501: "Extra text is included for the purposes of testing this more"
+          text run at (0,115) width 92: "effectively."
+      LayoutBlockFlow {P} at (0,1519.33) size 769x46
+        LayoutText {#text} at (0,6) size 742x33
+          text run at (0,6) width 276: "This element should be in a sans-serif font, with a weight of 400. "
+          text run at (275,6) width 417: "Its font-size should be 80% of 12px, or 9.6px, and its line-height shoud be 2.5 times that, or 24px. "
+          text run at (691,6) width 51: "Extra text is"
+          text run at (0,29) width 239: "included for the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,1583.33) size 769x216
+        LayoutInline {SPAN} at (0,0) size 765x183 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,16) size 765x183
+            text run at (0,16) width 699: "This element should be in a sans-serif font, italicized and small caps, with a weight of 100. "
+            text run at (698,16) width 67: "Its font-"
+            text run at (0,70) width 761: "size should be 150% the base font size, and its line-height should be 300% of that value (18px and"
+            text run at (0,124) width 753: "54px, respectively). The text should have a silver background. The background color has been set"
+            text run at (0,178) width 678: "on an inline element and should therefore only cover the text, not the interline spacing."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutTable {TABLE} at (0,1817.33) size 769x2394 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x2392
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x2366
+            LayoutTableCell {TD} at (0,1196) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x2366.33 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x36
+                LayoutText {#text} at (0,0) size 746x36
+                  text run at (0,0) width 575: "This element is unstyled, and should inherit a font-size of 12px from the BODY element. "
+                  text run at (574,0) width 172: "This is the \"base font size\""
+                  text run at (0,18) width 210: "referred to in the following tests."
+              LayoutBlockFlow {P} at (4,57.33) size 747x20
+                LayoutText {#text} at (0,0) size 494x20
+                  text run at (0,0) width 494: "This element should be 13pt. Helvetica which is in small-cap italics."
+              LayoutBlockFlow {P} at (4,101.33) size 747x144
+                LayoutText {#text} at (0,4) size 729x136
+                  text run at (0,4) width 370: "This element should be in a serif font. "
+                  text run at (369,4) width 360: "Its font-size should be 150% the base"
+                  text run at (0,40) width 688: "font size, and its line-height should 150% of that value (18px and 27px,"
+                  text run at (0,76) width 136: "respectively). "
+                  text run at (135,76) width 559: "Extra text is included for the purposes of testing this more"
+                  text run at (0,112) width 107: "effectively."
+              LayoutBlockFlow {P} at (4,269.33) size 747x144
+                LayoutText {#text} at (0,4) size 741x136
+                  text run at (0,4) width 465: "This element should be in a sans-serif font. "
+                  text run at (464,4) width 234: "Its font-size should be"
+                  text run at (0,40) width 741: "150% the base font size, and its line-height should 150% of that value"
+                  text run at (0,76) width 327: "(18px and 27px, respectively). "
+                  text run at (326,76) width 403: "Extra text is included for the purposes"
+                  text run at (0,112) width 321: "of testing this more effectively."
+              LayoutBlockFlow {P} at (4,437.33) size 747x78
+                LayoutText {#text} at (0,2) size 737x47
+                  text run at (0,2) width 608: "This element should be in a cursive font, 'small' in size, with a line-height 200% the height of the text's actual size. "
+                  text run at (607,2) width 130: "For example, if the font-"
+                  text run at (0,28) width 54: "size value "
+                LayoutInline {CODE} at (0,0) size 31x12
+                  LayoutText {#text} at (53,33) size 31x12
+                    text run at (53,33) width 31: "small"
+                LayoutText {#text} at (83,28) size 733x47
+                  text run at (83,28) width 313: " is calculated at 10px, then the line-height should be 20px. "
+                  text run at (395,28) width 271: "The actual value of the font-size is UA-dependent. "
+                  text run at (665,28) width 68: "Extra text is"
+                  text run at (0,54) width 293: "included for the purposes of testing this more effectively."
+              LayoutBlockFlow {P} at (4,539.33) size 747x180
+                LayoutText {#text} at (0,4) size 730x172
+                  text run at (0,4) width 722: "This element should be in a sans-serif font, italicized and small caps,"
+                  text run at (0,40) width 228: "with a weight of 900. "
+                  text run at (227,40) width 503: "Its font-size should be 150% the base font size,"
+                  text run at (0,76) width 679: "and its line-height should be 150% of that value (18px and 27px,"
+                  text run at (0,112) width 150: "respectively). "
+                  text run at (149,112) width 571: "Extra text is included for the purposes of testing this"
+                  text run at (0,148) width 178: "more effectively."
+              LayoutBlockFlow {P} at (4,743.33) size 747x288
+                LayoutText {#text} at (0,22) size 739x244
+                  text run at (0,22) width 739: "This element should be in a sans-serif font, italicized and small caps, with"
+                  text run at (0,94) width 173: "a weight of 100. "
+                  text run at (172,94) width 559: "Its font-size should be 150% the base font size, and its"
+                  text run at (0,166) width 722: "line-height should be 300% of that value (18px and 54px, respectively)."
+                  text run at (0,238) width 717: "Extra text is included for the purposes of testing this more effectively."
+              LayoutBlockFlow {P} at (4,1055.33) size 747x195
+                LayoutText {#text} at (0,8) size 733x179
+                  text run at (0,8) width 700: "This element should be in a monospace font, italicized and small caps, with a"
+                  text run at (0,47) width 150: "weight of 900. "
+                  text run at (149,47) width 584: "Its font-size should be 150% the base font size, and its line-"
+                  text run at (0,86) width 658: "height should be 2em, or twice the element's font size (18px and 36px,"
+                  text run at (0,125) width 136: "respectively). "
+                  text run at (135,125) width 542: "Extra text is included for the purposes of testing this more"
+                  text run at (0,164) width 105: "effectively."
+              LayoutBlockFlow {P} at (4,1274.33) size 747x384
+                LayoutText {#text} at (0,34) size 726x316
+                  text run at (0,34) width 711: "This element should be in a sans-serif font, italicized and small caps,"
+                  text run at (0,130) width 227: "with a weight of 500. "
+                  text run at (226,130) width 500: "Its font-size should be 150% the base font size,"
+                  text run at (0,226) width 438: "or 18px, and its line-height should be 1in. "
+                  text run at (437,226) width 272: "Extra text is included for"
+                  text run at (0,322) width 476: "the purposes of testing this more effectively."
+              LayoutBlockFlow {P} at (4,1682.33) size 747x144
+                LayoutText {#text} at (0,7) size 731x129
+                  text run at (0,7) width 731: "This element should be in a sans-serif font, oblique and not small-caps, with a weight"
+                  text run at (0,43) width 63: "of 700. "
+                  text run at (62,43) width 666: "Its font-size should be 18 pixels, and its line-height should be 36px (200% this"
+                  text run at (0,79) width 177: "element's font size). "
+                  text run at (176,79) width 501: "Extra text is included for the purposes of testing this more"
+                  text run at (0,115) width 92: "effectively."
+              LayoutBlockFlow {P} at (4,1844.33) size 747x62
+                LayoutText {#text} at (0,8) size 728x46
+                  text run at (0,8) width 368: "This element should be in a sans-serif font, with a weight of 400. "
+                  text run at (367,8) width 361: "Its font-size should be 80% of 12px, or 9.6px, and its line-height"
+                  text run at (0,39) width 190: "shoud be 2.5 times that, or 24px. "
+                  text run at (189,39) width 390: "Extra text is included for the purposes of testing this more effectively."
+              LayoutBlockFlow {P} at (4,1930.33) size 747x432
+                LayoutInline {SPAN} at (0,0) size 739x388 [bgcolor=#C0C0C0]
+                  LayoutText {#text} at (0,22) size 739x388
+                    text run at (0,22) width 739: "This element should be in a sans-serif font, italicized and small caps, with"
+                    text run at (0,94) width 173: "a weight of 100. "
+                    text run at (172,94) width 559: "Its font-size should be 150% the base font size, and its"
+                    text run at (0,166) width 722: "line-height should be 300% of that value (18px and 54px, respectively)."
+                    text run at (0,238) width 700: "The text should have a silver background. The background color has"
+                    text run at (0,310) width 718: "been set on an inline element and should therefore only cover the text,"
+                    text run at (0,382) width 253: "not the interline spacing."
+                LayoutText {#text} at (0,0) size 0x0
+layer at (8,214) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,206) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_family-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_family-expected.txt
new file mode 100644
index 0000000..0cb9245c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_family-expected.txt
@@ -0,0 +1,140 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1313
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1313 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1313
+    LayoutBlockFlow {BODY} at (8,8) size 769x1297 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x135
+        LayoutText {#text} at (0,0) size 305x135
+          text run at (0,0) width 211: "DIV.a {font-family: serif;}"
+          text run at (210,0) width 1: " "
+          text run at (0,15) width 242: "DIV.b {font-family: monospace;}"
+          text run at (241,15) width 1: " "
+          text run at (0,30) width 203: ".one {font-family: serif;}"
+          text run at (202,30) width 1: " "
+          text run at (0,45) width 242: ".two {font-family: sans-serif;}"
+          text run at (241,45) width 1: " "
+          text run at (0,60) width 235: ".three {font-family: cursive;}"
+          text run at (234,60) width 1: " "
+          text run at (0,75) width 227: ".four {font-family: fantasy;}"
+          text run at (226,75) width 1: " "
+          text run at (0,90) width 242: ".five {font-family: monospace;}"
+          text run at (241,90) width 1: " "
+          text run at (0,105) width 305: ".six {font-family: sans-serif,cursive;}"
+          text run at (304,105) width 1: " "
+          text run at (0,120) width 297: ".seven {font-family: monospace,serif;}"
+          text run at (296,120) width 1: " "
+      LayoutBlockFlow {DIV} at (0,200) size 769x199
+        LayoutBlockFlow {P} at (0,0) size 769x18
+          LayoutText {#text} at (0,0) size 653x18
+            text run at (0,0) width 653: "This sentence is normal for the first division, which is the next five sentences; it should be a serif font."
+        LayoutBlockFlow {P} at (0,34) size 769x18
+          LayoutText {#text} at (0,0) size 248x18
+            text run at (0,0) width 248: "This sentence should be in a serif font."
+        LayoutBlockFlow {P} at (0,68) size 769x18
+          LayoutText {#text} at (0,0) size 314x18
+            text run at (0,0) width 314: "This sentence should be in a sans-serif font."
+        LayoutBlockFlow {P} at (0,102) size 769x25
+          LayoutText {#text} at (0,0) size 266x25
+            text run at (0,0) width 266: "This sentence should be in a cursive font."
+        LayoutBlockFlow {P} at (0,143) size 769x25
+          LayoutText {#text} at (0,0) size 296x25
+            text run at (0,0) width 296: "This sentence should be in a fantasy font."
+        LayoutBlockFlow {P} at (0,184) size 769x15
+          LayoutText {#text} at (0,0) size 344x15
+            text run at (0,0) width 344: "This sentence should be in a monospace font."
+      LayoutBlockFlow {P} at (0,430) size 769x18
+        LayoutText {#text} at (0,0) size 400x18
+          text run at (0,0) width 400: "This sentence should be in a sans-serif font, not cursive."
+      LayoutBlockFlow {P} at (0,464) size 769x18
+        LayoutText {#text} at (0,0) size 529x18
+          text run at (0,0) width 529: "This sentence should be in a monospace font, not serif."
+      LayoutBlockFlow {DIV} at (0,513) size 769x211
+        LayoutBlockFlow {P} at (0,0) size 769x30
+          LayoutText {#text} at (0,0) size 749x30
+            text run at (0,0) width 749: "This sentence is normal for the first division, which is the next five sentences; it should be a"
+            text run at (0,15) width 118: "monospace font."
+        LayoutBlockFlow {P} at (0,46) size 769x18
+          LayoutText {#text} at (0,0) size 248x18
+            text run at (0,0) width 248: "This sentence should be in a serif font."
+        LayoutBlockFlow {P} at (0,80) size 769x18
+          LayoutText {#text} at (0,0) size 314x18
+            text run at (0,0) width 314: "This sentence should be in a sans-serif font."
+        LayoutBlockFlow {P} at (0,114) size 769x25
+          LayoutText {#text} at (0,0) size 266x25
+            text run at (0,0) width 266: "This sentence should be in a cursive font."
+        LayoutBlockFlow {P} at (0,155) size 769x25
+          LayoutText {#text} at (0,0) size 296x25
+            text run at (0,0) width 296: "This sentence should be in a fantasy font."
+        LayoutBlockFlow {P} at (0,196) size 769x15
+          LayoutText {#text} at (0,0) size 344x15
+            text run at (0,0) width 344: "This sentence should be in a monospace font."
+      LayoutTable {TABLE} at (0,737) size 769x560 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x558
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x532
+            LayoutTableCell {TD} at (0,279) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x532 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {DIV} at (4,4) size 747x199
+                LayoutBlockFlow {P} at (0,0) size 747x18
+                  LayoutText {#text} at (0,0) size 653x18
+                    text run at (0,0) width 653: "This sentence is normal for the first division, which is the next five sentences; it should be a serif font."
+                LayoutBlockFlow {P} at (0,34) size 747x18
+                  LayoutText {#text} at (0,0) size 248x18
+                    text run at (0,0) width 248: "This sentence should be in a serif font."
+                LayoutBlockFlow {P} at (0,68) size 747x18
+                  LayoutText {#text} at (0,0) size 314x18
+                    text run at (0,0) width 314: "This sentence should be in a sans-serif font."
+                LayoutBlockFlow {P} at (0,102) size 747x25
+                  LayoutText {#text} at (0,0) size 266x25
+                    text run at (0,0) width 266: "This sentence should be in a cursive font."
+                LayoutBlockFlow {P} at (0,143) size 747x25
+                  LayoutText {#text} at (0,0) size 296x25
+                    text run at (0,0) width 296: "This sentence should be in a fantasy font."
+                LayoutBlockFlow {P} at (0,184) size 747x15
+                  LayoutText {#text} at (0,0) size 344x15
+                    text run at (0,0) width 344: "This sentence should be in a monospace font."
+              LayoutBlockFlow {P} at (4,234) size 747x18
+                LayoutText {#text} at (0,0) size 400x18
+                  text run at (0,0) width 400: "This sentence should be in a sans-serif font, not cursive."
+              LayoutBlockFlow {P} at (4,268) size 747x18
+                LayoutText {#text} at (0,0) size 529x18
+                  text run at (0,0) width 529: "This sentence should be in a monospace font, not serif."
+              LayoutBlockFlow {DIV} at (4,317) size 747x211
+                LayoutBlockFlow {P} at (0,0) size 747x30
+                  LayoutText {#text} at (0,0) size 734x30
+                    text run at (0,0) width 734: "This sentence is normal for the first division, which is the next five sentences; it should be"
+                    text run at (0,15) width 133: "a monospace font."
+                LayoutBlockFlow {P} at (0,46) size 747x18
+                  LayoutText {#text} at (0,0) size 248x18
+                    text run at (0,0) width 248: "This sentence should be in a serif font."
+                LayoutBlockFlow {P} at (0,80) size 747x18
+                  LayoutText {#text} at (0,0) size 314x18
+                    text run at (0,0) width 314: "This sentence should be in a sans-serif font."
+                LayoutBlockFlow {P} at (0,114) size 747x25
+                  LayoutText {#text} at (0,0) size 266x25
+                    text run at (0,0) width 266: "This sentence should be in a cursive font."
+                LayoutBlockFlow {P} at (0,155) size 747x25
+                  LayoutText {#text} at (0,0) size 296x25
+                    text run at (0,0) width 296: "This sentence should be in a fantasy font."
+                LayoutBlockFlow {P} at (0,196) size 747x15
+                  LayoutText {#text} at (0,0) size 344x15
+                    text run at (0,0) width 344: "This sentence should be in a monospace font."
+layer at (8,190) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,182) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,420) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,412) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,506) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,498) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (25,988) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,216) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1074) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,302) size 747x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_size-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_size-expected.txt
new file mode 100644
index 0000000..f8d7d2b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_size-expected.txt
@@ -0,0 +1,258 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2811
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2811 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2811.27
+    LayoutBlockFlow {BODY} at (8,8) size 769x2795.27 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x300
+        LayoutText {#text} at (0,0) size 219x300
+          text run at (0,0) width 196: ".one {font-size: medium;}"
+          text run at (195,0) width 1: " "
+          text run at (0,15) width 196: ".two {font-size: larger;}"
+          text run at (195,15) width 1: " "
+          text run at (0,30) width 219: ".three {font-size: smaller;}"
+          text run at (218,30) width 1: " "
+          text run at (0,45) width 219: ".four {font-size: xx-small;}"
+          text run at (218,45) width 1: " "
+          text run at (0,60) width 211: ".five {font-size: x-small;}"
+          text run at (210,60) width 1: " "
+          text run at (0,75) width 188: ".six {font-size: small;}"
+          text run at (187,75) width 1: " "
+          text run at (0,90) width 203: ".seven {font-size: large;}"
+          text run at (202,90) width 1: " "
+          text run at (0,105) width 219: ".eight {font-size: x-large;}"
+          text run at (218,105) width 1: " "
+          text run at (0,120) width 219: ".nine {font-size: xx-large;}"
+          text run at (218,120) width 1: " "
+          text run at (0,135) width 172: ".a {font-size: 0.5in;}"
+          text run at (171,135) width 1: " "
+          text run at (0,150) width 157: ".b {font-size: 1cm;}"
+          text run at (156,150) width 1: " "
+          text run at (0,165) width 164: ".c {font-size: 10mm;}"
+          text run at (163,165) width 1: " "
+          text run at (0,180) width 164: ".d {font-size: 18pt;}"
+          text run at (163,180) width 1: " "
+          text run at (0,195) width 172: ".e {font-size: 1.5pc;}"
+          text run at (171,195) width 1: " "
+          text run at (0,210) width 157: ".f {font-size: 2em;}"
+          text run at (156,210) width 1: " "
+          text run at (0,225) width 157: ".g {font-size: 3ex;}"
+          text run at (156,225) width 1: " "
+          text run at (0,240) width 164: ".h {font-size: 25px;}"
+          text run at (163,240) width 1: " "
+          text run at (0,255) width 164: ".i {font-size: 200%;}"
+          text run at (163,255) width 1: " "
+          text run at (0,270) width 180: ".j {font-size: -0.5in;}"
+          text run at (179,270) width 1: " "
+          text run at (0,285) width 0: " "
+      LayoutBlockFlow {P} at (0,365) size 769x18
+        LayoutText {#text} at (0,0) size 707x18
+          text run at (0,0) width 707: "This paragraph element is unstyled, so the size of the font in this element is the default size for this user agent."
+      LayoutBlockFlow {P} at (0,399) size 769x18
+        LayoutText {#text} at (0,0) size 190x18
+          text run at (0,0) width 190: "This sentence has been set to "
+        LayoutInline {CODE} at (0,0) size 48x15
+          LayoutText {#text} at (189,2) size 48x15
+            text run at (189,2) width 48: "medium"
+        LayoutText {#text} at (236,0) size 368x18
+          text run at (236,0) width 368: ", which may or may not be the same size as unstyled text."
+      LayoutBlockFlow {P} at (0,436.19) size 769x22
+        LayoutText {#text} at (0,0) size 380x22
+          text run at (0,0) width 380: "This sentence should be larger than unstyled text."
+      LayoutBlockFlow {P} at (0,477.38) size 769x15
+        LayoutText {#text} at (0,0) size 272x15
+          text run at (0,0) width 272: "This sentence should be smaller than unstyled text."
+      LayoutBlockFlow {P} at (0,505.70) size 769x18
+        LayoutText {#text} at (0,6) size 286x10
+          text run at (0,6) width 286: "This sentence should be very small, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 54x18
+          LayoutText {#text} at (285,0) size 54x18
+            text run at (285,0) width 54: "medium"
+        LayoutText {#text} at (338,6) size 3x10
+          text run at (338,6) width 3: "."
+      LayoutBlockFlow {P} at (0,533.70) size 769x18
+        LayoutText {#text} at (0,4) size 324x13
+          text run at (0,4) width 324: "This sentence should be rather small, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 53x18
+          LayoutText {#text} at (323,0) size 53x18
+            text run at (323,0) width 53: "medium"
+        LayoutText {#text} at (375,4) size 4x13
+          text run at (375,4) width 4: "."
+      LayoutBlockFlow {P} at (0,564.70) size 769x18
+        LayoutText {#text} at (0,2) size 387x15
+          text run at (0,2) width 387: "This sentence should be small, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 54x18
+          LayoutText {#text} at (386,0) size 54x18
+            text run at (386,0) width 54: "medium"
+        LayoutText {#text} at (439,2) size 4x15
+          text run at (439,2) width 4: "."
+      LayoutBlockFlow {P} at (0,600.70) size 769x22
+        LayoutText {#text} at (0,0) size 533x22
+          text run at (0,0) width 533: "This sentence should be large, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 53x18
+          LayoutText {#text} at (532,3) size 53x18
+            text run at (532,3) width 53: "medium"
+        LayoutText {#text} at (584,0) size 5x22
+          text run at (584,0) width 5: "."
+      LayoutBlockFlow {P} at (0,646.70) size 769x56
+        LayoutText {#text} at (0,0) size 766x28
+          text run at (0,0) width 766: "This sentence should be rather large, but the last word in the sentence should be"
+        LayoutInline {SPAN} at (0,0) size 53x18
+          LayoutText {#text} at (0,36) size 53x18
+            text run at (0,36) width 53: "medium"
+        LayoutText {#text} at (52,28) size 7x28
+          text run at (52,28) width 7: "."
+      LayoutBlockFlow {P} at (0,734.70) size 769x74
+        LayoutText {#text} at (0,0) size 754x74
+          text run at (0,0) width 754: "This sentence should be very large, but the last word in the"
+          text run at (0,37) width 250: "sentence should be "
+        LayoutInline {SPAN} at (0,0) size 54x18
+          LayoutText {#text} at (249,52) size 54x18
+            text run at (249,52) width 54: "medium"
+        LayoutText {#text} at (302,37) size 9x37
+          text run at (302,37) width 9: "."
+      LayoutBlockFlow {P} at (0,856.70) size 769x110
+        LayoutText {#text} at (0,0) size 699x110
+          text run at (0,0) width 699: "This sentence should be half an inch"
+          text run at (0,55) width 74: "tall."
+      LayoutBlockFlow {P} at (0,1014.70) size 769x43
+        LayoutText {#text} at (0,0) size 663x43
+          text run at (0,0) width 663: "This sentence should be one centimeter tall."
+      LayoutBlockFlow {P} at (0,1095.48) size 769x43
+        LayoutText {#text} at (0,0) size 667x43
+          text run at (0,0) width 667: "This sentence should be ten millimeters tall."
+      LayoutBlockFlow {P} at (0,1176.27) size 769x28
+        LayoutText {#text} at (0,0) size 425x28
+          text run at (0,0) width 425: "This sentence should be eighteen points tall."
+      LayoutBlockFlow {P} at (0,1228.27) size 769x28
+        LayoutText {#text} at (0,0) size 494x28
+          text run at (0,0) width 494: "This sentence should be one and one half picas tall."
+      LayoutBlockFlow {P} at (0,1288.27) size 769x37
+        LayoutText {#text} at (0,0) size 467x37
+          text run at (0,0) width 467: "This sentence should be two em tall."
+      LayoutBlockFlow {P} at (0,1357.27) size 769x24
+        LayoutText {#text} at (0,0) size 319x24
+          text run at (0,0) width 319: "This sentence should be three ex tall."
+      LayoutBlockFlow {P} at (0,1406.27) size 769x29
+        LayoutText {#text} at (0,0) size 471x29
+          text run at (0,0) width 471: "This sentence should be twenty-five pixels tall."
+      LayoutBlockFlow {P} at (0,1467.27) size 769x37
+        LayoutText {#text} at (0,0) size 549x37
+          text run at (0,0) width 549: "This sentence should be twice normal size."
+      LayoutBlockFlow {P} at (0,1536.27) size 769x18
+        LayoutText {#text} at (0,0) size 686x18
+          text run at (0,0) width 686: "This sentence should be normal size, since no negative values are allowed and therefore should be ignored."
+      LayoutTable {TABLE} at (0,1570.27) size 769x1225 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1223
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x1197
+            LayoutTableCell {TD} at (0,611) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x1197.27 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18
+                LayoutText {#text} at (0,0) size 707x18
+                  text run at (0,0) width 707: "This paragraph element is unstyled, so the size of the font in this element is the default size for this user agent."
+              LayoutBlockFlow {P} at (4,38) size 747x18
+                LayoutText {#text} at (0,0) size 190x18
+                  text run at (0,0) width 190: "This sentence has been set to "
+                LayoutInline {CODE} at (0,0) size 48x15
+                  LayoutText {#text} at (189,2) size 48x15
+                    text run at (189,2) width 48: "medium"
+                LayoutText {#text} at (236,0) size 368x18
+                  text run at (236,0) width 368: ", which may or may not be the same size as unstyled text."
+              LayoutBlockFlow {P} at (4,75.19) size 747x22
+                LayoutText {#text} at (0,0) size 380x22
+                  text run at (0,0) width 380: "This sentence should be larger than unstyled text."
+              LayoutBlockFlow {P} at (4,116.38) size 747x15
+                LayoutText {#text} at (0,0) size 272x15
+                  text run at (0,0) width 272: "This sentence should be smaller than unstyled text."
+              LayoutBlockFlow {P} at (4,144.70) size 747x18
+                LayoutText {#text} at (0,6) size 286x10
+                  text run at (0,6) width 286: "This sentence should be very small, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 54x18
+                  LayoutText {#text} at (285,0) size 54x18
+                    text run at (285,0) width 54: "medium"
+                LayoutText {#text} at (338,6) size 3x10
+                  text run at (338,6) width 3: "."
+              LayoutBlockFlow {P} at (4,172.70) size 747x18
+                LayoutText {#text} at (0,4) size 324x13
+                  text run at (0,4) width 324: "This sentence should be rather small, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 53x18
+                  LayoutText {#text} at (323,0) size 53x18
+                    text run at (323,0) width 53: "medium"
+                LayoutText {#text} at (375,4) size 4x13
+                  text run at (375,4) width 4: "."
+              LayoutBlockFlow {P} at (4,203.70) size 747x18
+                LayoutText {#text} at (0,2) size 387x15
+                  text run at (0,2) width 387: "This sentence should be small, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 54x18
+                  LayoutText {#text} at (386,0) size 54x18
+                    text run at (386,0) width 54: "medium"
+                LayoutText {#text} at (439,2) size 4x15
+                  text run at (439,2) width 4: "."
+              LayoutBlockFlow {P} at (4,239.70) size 747x22
+                LayoutText {#text} at (0,0) size 533x22
+                  text run at (0,0) width 533: "This sentence should be large, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 53x18
+                  LayoutText {#text} at (532,3) size 53x18
+                    text run at (532,3) width 53: "medium"
+                LayoutText {#text} at (584,0) size 5x22
+                  text run at (584,0) width 5: "."
+              LayoutBlockFlow {P} at (4,285.70) size 747x56
+                LayoutText {#text} at (0,0) size 737x56
+                  text run at (0,0) width 737: "This sentence should be rather large, but the last word in the sentence should"
+                  text run at (0,28) width 29: "be "
+                LayoutInline {SPAN} at (0,0) size 54x18
+                  LayoutText {#text} at (28,36) size 54x18
+                    text run at (28,36) width 54: "medium"
+                LayoutText {#text} at (81,28) size 7x28
+                  text run at (81,28) width 7: "."
+              LayoutBlockFlow {P} at (4,373.70) size 747x74
+                LayoutText {#text} at (0,0) size 706x74
+                  text run at (0,0) width 706: "This sentence should be very large, but the last word in"
+                  text run at (0,37) width 297: "the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 54x18
+                  LayoutText {#text} at (296,52) size 54x18
+                    text run at (296,52) width 54: "medium"
+                LayoutText {#text} at (349,37) size 9x37
+                  text run at (349,37) width 9: "."
+              LayoutBlockFlow {P} at (4,495.70) size 747x110
+                LayoutText {#text} at (0,0) size 699x110
+                  text run at (0,0) width 699: "This sentence should be half an inch"
+                  text run at (0,55) width 74: "tall."
+              LayoutBlockFlow {P} at (4,653.70) size 747x43
+                LayoutText {#text} at (0,0) size 663x43
+                  text run at (0,0) width 663: "This sentence should be one centimeter tall."
+              LayoutBlockFlow {P} at (4,734.48) size 747x43
+                LayoutText {#text} at (0,0) size 667x43
+                  text run at (0,0) width 667: "This sentence should be ten millimeters tall."
+              LayoutBlockFlow {P} at (4,815.27) size 747x28
+                LayoutText {#text} at (0,0) size 425x28
+                  text run at (0,0) width 425: "This sentence should be eighteen points tall."
+              LayoutBlockFlow {P} at (4,867.27) size 747x28
+                LayoutText {#text} at (0,0) size 494x28
+                  text run at (0,0) width 494: "This sentence should be one and one half picas tall."
+              LayoutBlockFlow {P} at (4,927.27) size 747x37
+                LayoutText {#text} at (0,0) size 467x37
+                  text run at (0,0) width 467: "This sentence should be two em tall."
+              LayoutBlockFlow {P} at (4,996.27) size 747x24
+                LayoutText {#text} at (0,0) size 319x24
+                  text run at (0,0) width 319: "This sentence should be three ex tall."
+              LayoutBlockFlow {P} at (4,1045.27) size 747x29
+                LayoutText {#text} at (0,0) size 471x29
+                  text run at (0,0) width 471: "This sentence should be twenty-five pixels tall."
+              LayoutBlockFlow {P} at (4,1106.27) size 747x37
+                LayoutText {#text} at (0,0) size 549x37
+                  text run at (0,0) width 549: "This sentence should be twice normal size."
+              LayoutBlockFlow {P} at (4,1175.27) size 747x18
+                LayoutText {#text} at (0,0) size 686x18
+                  text run at (0,0) width 686: "This sentence should be normal size, since no negative values are allowed and therefore should be ignored."
+layer at (8,355) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,347) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_style-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_style-expected.txt
new file mode 100644
index 0000000..c5cd1ea5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_style-expected.txt
@@ -0,0 +1,63 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x60
+        LayoutText {#text} at (0,0) size 242x60
+          text run at (0,0) width 203: ".one {font-style: italic;}"
+          text run at (202,0) width 1: " "
+          text run at (0,15) width 211: ".two {font-style: oblique;}"
+          text run at (210,15) width 1: " "
+          text run at (0,30) width 242: ".three, I {font-style: normal;}"
+          text run at (241,30) width 1: " "
+          text run at (0,45) width 0: " "
+      LayoutBlockFlow {P} at (0,125) size 784x18
+        LayoutText {#text} at (0,0) size 510x18
+          text run at (0,0) width 510: "This paragraph should be in italics, but the last word of the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 46x18
+          LayoutText {#text} at (509,0) size 46x18
+            text run at (509,0) width 46: "normal"
+        LayoutText {#text} at (554,0) size 5x18
+          text run at (554,0) width 5: "."
+      LayoutBlockFlow {P} at (0,159) size 784x18
+        LayoutText {#text} at (0,0) size 222x18
+          text run at (0,0) width 222: "This paragraph should be oblique."
+      LayoutBlockFlow {P} at (0,193) size 784x18
+        LayoutInline {I} at (0,0) size 216x18
+          LayoutText {#text} at (0,0) size 216x18
+            text run at (0,0) width 216: "This paragraph should be normal."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutTable {TABLE} at (0,227) size 581x122 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 579x120
+          LayoutTableRow {TR} at (0,0) size 579x26
+            LayoutTableCell {TD} at (0,0) size 579x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 579x94
+            LayoutTableCell {TD} at (0,60) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 567x94 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 559x18
+                LayoutText {#text} at (0,0) size 510x18
+                  text run at (0,0) width 510: "This paragraph should be in italics, but the last word of the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 46x18
+                  LayoutText {#text} at (509,0) size 46x18
+                    text run at (509,0) width 46: "normal"
+                LayoutText {#text} at (554,0) size 5x18
+                  text run at (554,0) width 5: "."
+              LayoutBlockFlow {P} at (4,38) size 559x18
+                LayoutText {#text} at (0,0) size 222x18
+                  text run at (0,0) width 222: "This paragraph should be oblique."
+              LayoutBlockFlow {P} at (4,72) size 559x18
+                LayoutInline {I} at (0,0) size 216x18
+                  LayoutText {#text} at (0,0) size 216x18
+                    text run at (0,0) width 216: "This paragraph should be normal."
+                LayoutText {#text} at (0,0) size 0x0
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_variant-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_variant-expected.txt
new file mode 100644
index 0000000..948bd6c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_variant-expected.txt
@@ -0,0 +1,51 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x45
+        LayoutText {#text} at (0,0) size 250x45
+          text run at (0,0) width 250: ".one {font-variant: small-caps;}"
+          text run at (249,0) width 1: " "
+          text run at (0,15) width 219: ".two {font-variant: normal;}"
+          text run at (218,15) width 1: " "
+          text run at (0,30) width 0: " "
+      LayoutBlockFlow {P} at (0,110) size 784x18
+        LayoutText {#text} at (0,0) size 267x18
+          text run at (0,0) width 267: "This Paragraph should be in Small Caps."
+      LayoutBlockFlow {P} at (0,144) size 784x18
+        LayoutText {#text} at (0,0) size 570x18
+          text run at (0,0) width 570: "This Paragraph should be in Small Caps, but the Last Word in the Sentence should be "
+        LayoutInline {SPAN} at (0,0) size 49x18
+          LayoutText {#text} at (569,0) size 49x18
+            text run at (569,0) width 49: "Normal"
+        LayoutText {#text} at (617,0) size 5x18
+          text run at (617,0) width 5: "."
+      LayoutTable {TABLE} at (0,178) size 644x88 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 642x86
+          LayoutTableRow {TR} at (0,0) size 642x26
+            LayoutTableCell {TD} at (0,0) size 642x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 642x60
+            LayoutTableCell {TD} at (0,43) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 630x60 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 622x18
+                LayoutText {#text} at (0,0) size 267x18
+                  text run at (0,0) width 267: "This Paragraph should be in Small Caps."
+              LayoutBlockFlow {P} at (4,38) size 622x18
+                LayoutText {#text} at (0,0) size 570x18
+                  text run at (0,0) width 570: "This Paragraph should be in Small Caps, but the Last Word in the Sentence should be "
+                LayoutInline {SPAN} at (0,0) size 49x18
+                  LayoutText {#text} at (569,0) size 49x18
+                    text run at (569,0) width 49: "Normal"
+                LayoutText {#text} at (617,0) size 5x18
+                  text run at (617,0) width 5: "."
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_weight-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_weight-expected.txt
new file mode 100644
index 0000000..d35ca88
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/font_properties/font_weight-expected.txt
@@ -0,0 +1,125 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1046
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1046 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1045.80
+    LayoutBlockFlow {BODY} at (8,8) size 769x1029.80 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x165
+        LayoutText {#text} at (0,0) size 235x165
+          text run at (0,0) width 196: ".one {font-weight: bold;}"
+          text run at (195,0) width 1: " "
+          text run at (0,15) width 211: ".two {font-weight: bolder;}"
+          text run at (210,15) width 1: " "
+          text run at (0,30) width 235: ".three {font-weight: lighter;}"
+          text run at (234,30) width 1: " "
+          text run at (0,45) width 196: ".four {font-weight: 100;}"
+          text run at (195,45) width 1: " "
+          text run at (0,60) width 196: ".five {font-weight: 300;}"
+          text run at (195,60) width 1: " "
+          text run at (0,75) width 188: ".six {font-weight: 500;}"
+          text run at (187,75) width 1: " "
+          text run at (0,90) width 203: ".seven {font-weight: 700;}"
+          text run at (202,90) width 1: " "
+          text run at (0,105) width 203: ".eight {font-weight: 900;}"
+          text run at (202,105) width 1: " "
+          text run at (0,120) width 219: ".nine {font-weight: normal;}"
+          text run at (218,120) width 1: " "
+          text run at (0,135) width 196: "B {font-weight: lighter;}"
+          text run at (195,135) width 1: " "
+          text run at (0,150) width 0: " "
+      LayoutBlockFlow {P} at (0,230) size 769x18
+        LayoutText {#text} at (0,0) size 200x18
+          text run at (0,0) width 200: "This sentence should be bold."
+      LayoutBlockFlow {P} at (0,264) size 769x18
+        LayoutText {#text} at (0,0) size 303x18
+          text run at (0,0) width 303: "This sentence should be bolder than normal."
+      LayoutBlockFlow {H4} at (0,303.27) size 769x18
+        LayoutText {#text} at (0,0) size 133x18
+          text run at (0,0) width 133: "This is a heading-4."
+      LayoutBlockFlow {H4} at (0,342.53) size 769x18
+        LayoutText {#text} at (0,0) size 181x18
+          text run at (0,0) width 181: "This is a bolder heading-4."
+      LayoutBlockFlow {P} at (0,381.80) size 769x18
+        LayoutInline {B} at (0,0) size 361x18
+          LayoutText {#text} at (0,0) size 361x18
+            text run at (0,0) width 361: "This sentence should be normal (boldface made lighter)."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,415.80) size 769x18
+        LayoutText {#text} at (0,0) size 233x18
+          text run at (0,0) width 233: "This sentence should be weight 100."
+      LayoutBlockFlow {P} at (0,449.80) size 769x18
+        LayoutText {#text} at (0,0) size 233x18
+          text run at (0,0) width 233: "This sentence should be weight 300."
+      LayoutBlockFlow {P} at (0,483.80) size 769x18
+        LayoutText {#text} at (0,0) size 233x18
+          text run at (0,0) width 233: "This sentence should be weight 500."
+      LayoutBlockFlow {P} at (0,517.80) size 769x18
+        LayoutText {#text} at (0,0) size 243x18
+          text run at (0,0) width 243: "This sentence should be weight 700."
+      LayoutBlockFlow {P} at (0,551.80) size 769x18
+        LayoutText {#text} at (0,0) size 243x18
+          text run at (0,0) width 243: "This sentence should be weight 900."
+      LayoutBlockFlow {P} at (0,585.80) size 769x18
+        LayoutText {#text} at (0,0) size 498x18
+          text run at (0,0) width 498: "This sentence should be bold, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 46x18
+          LayoutText {#text} at (497,0) size 46x18
+            text run at (497,0) width 46: "normal"
+        LayoutText {#text} at (542,0) size 5x18
+          text run at (542,0) width 5: "."
+      LayoutTable {TABLE} at (0,619.80) size 569x410 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 567x408
+          LayoutTableRow {TR} at (0,0) size 567x26
+            LayoutTableCell {TD} at (0,0) size 567x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 567x382
+            LayoutTableCell {TD} at (0,204) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 555x381.80 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 547x18
+                LayoutText {#text} at (0,0) size 200x18
+                  text run at (0,0) width 200: "This sentence should be bold."
+              LayoutBlockFlow {P} at (4,38) size 547x18
+                LayoutText {#text} at (0,0) size 303x18
+                  text run at (0,0) width 303: "This sentence should be bolder than normal."
+              LayoutBlockFlow {H4} at (4,77.27) size 547x18
+                LayoutText {#text} at (0,0) size 133x18
+                  text run at (0,0) width 133: "This is a heading-4."
+              LayoutBlockFlow {H4} at (4,116.53) size 547x18
+                LayoutText {#text} at (0,0) size 181x18
+                  text run at (0,0) width 181: "This is a bolder heading-4."
+              LayoutBlockFlow {P} at (4,155.80) size 547x18
+                LayoutInline {B} at (0,0) size 361x18
+                  LayoutText {#text} at (0,0) size 361x18
+                    text run at (0,0) width 361: "This sentence should be normal (boldface made lighter)."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,189.80) size 547x18
+                LayoutText {#text} at (0,0) size 233x18
+                  text run at (0,0) width 233: "This sentence should be weight 100."
+              LayoutBlockFlow {P} at (4,223.80) size 547x18
+                LayoutText {#text} at (0,0) size 233x18
+                  text run at (0,0) width 233: "This sentence should be weight 300."
+              LayoutBlockFlow {P} at (4,257.80) size 547x18
+                LayoutText {#text} at (0,0) size 233x18
+                  text run at (0,0) width 233: "This sentence should be weight 500."
+              LayoutBlockFlow {P} at (4,291.80) size 547x18
+                LayoutText {#text} at (0,0) size 243x18
+                  text run at (0,0) width 243: "This sentence should be weight 700."
+              LayoutBlockFlow {P} at (4,325.80) size 547x18
+                LayoutText {#text} at (0,0) size 243x18
+                  text run at (0,0) width 243: "This sentence should be weight 900."
+              LayoutBlockFlow {P} at (4,359.80) size 547x18
+                LayoutText {#text} at (0,0) size 498x18
+                  text run at (0,0) width 498: "This sentence should be bold, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 46x18
+                  LayoutText {#text} at (497,0) size 46x18
+                    text run at (497,0) width 46: "normal"
+                LayoutText {#text} at (542,0) size 5x18
+                  text run at (542,0) width 5: "."
+layer at (8,220) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,212) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/canvas-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/canvas-expected.txt
new file mode 100644
index 0000000..af8806a5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/canvas-expected.txt
@@ -0,0 +1,42 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (25,25) size 750x550 [bgcolor=#008000]
+      LayoutBlockFlow {P} at (0,0) size 750x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 750x30
+        LayoutText {#text} at (0,0) size 539x30
+          text run at (0,0) width 235: "HTML {background-color: aqua;}"
+          text run at (234,0) width 1: " "
+          text run at (0,15) width 539: "BODY {background-color: green; background-image: none; margin: 25px;}"
+          text run at (538,15) width 1: " "
+      LayoutBlockFlow {P} at (0,95) size 750x54
+        LayoutText {#text} at (0,0) size 747x54
+          text run at (0,0) width 392: "The body of this document should have a green background. "
+          text run at (391,0) width 316: "It also has a margin of 25 pixels, so the light blue"
+          text run at (0,18) width 434: "background set for the HTML element should surround the BODY. "
+          text run at (433,18) width 314: "If the BODY content is significantly shorter than"
+          text run at (0,36) width 528: "the browser's window height, then the bottom border may be larger than 25 pixels."
+      LayoutTable {TABLE} at (0,165) size 750x90 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 748x88
+          LayoutTableRow {TR} at (0,0) size 748x26
+            LayoutTableCell {TD} at (0,0) size 748x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 748x62
+            LayoutTableCell {TD} at (0,44) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 736x62 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 728x54
+                LayoutText {#text} at (0,0) size 715x54
+                  text run at (0,0) width 392: "The body of this document should have a green background. "
+                  text run at (391,0) width 316: "It also has a margin of 25 pixels, so the light blue"
+                  text run at (0,18) width 434: "background set for the HTML element should surround the BODY. "
+                  text run at (433,18) width 282: "If the BODY content is significantly shorter"
+                  text run at (0,36) width 559: "than the browser's window height, then the bottom border may be larger than 25 pixels."
+layer at (25,102) size 750x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,77) size 750x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/floating_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/floating_elements-expected.txt
new file mode 100644
index 0000000..552b60d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/floating_elements-expected.txt
@@ -0,0 +1,755 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 6353
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x6353 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x6353
+    LayoutBlockFlow {BODY} at (8,8) size 769x6337 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x135
+        LayoutText {#text} at (0,0) size 469x135
+          text run at (0,0) width 266: "HR.minor {clear: both; width: 5%;}"
+          text run at (265,0) width 1: " "
+          text run at (0,15) width 391: "HR.major {clear: both; width: 75%; margin: 1.5em;}"
+          text run at (390,15) width 1: " "
+          text run at (0,30) width 469: "DIV {border: 5px solid purple; padding: 0; margin: 0.125em;}"
+          text run at (468,30) width 1: " "
+          text run at (0,45) width 422: "P.left, P.right {width: 10em; padding: 1em; margin: 0;"
+          text run at (421,45) width 1: " "
+          text run at (0,60) width 414: "   border: 1px solid lime; background-color: silver;}"
+          text run at (413,60) width 1: " "
+          text run at (0,75) width 445: "IMG.left, IMG.right {margin: 0; border: 3px solid black;}"
+          text run at (444,75) width 1: " "
+          text run at (0,90) width 157: ".left {float: left;}"
+          text run at (156,90) width 1: " "
+          text run at (0,105) width 172: ".right {float: right;}"
+          text run at (171,105) width 1: " "
+          text run at (0,120) width 0: " "
+      LayoutBlockFlow {P} at (0,200) size 769x54
+        LayoutText {#text} at (0,0) size 762x54
+          text run at (0,0) width 694: "On this test page, each test is performed once with floating paragraphs, and then again with floating images. "
+          text run at (693,0) width 69: "Other than"
+          text run at (0,18) width 728: "the substitution of images for pargraphs, the structure of the test is exactly the same, including the direction of the"
+          text run at (0,36) width 39: "floats."
+      LayoutBlockFlow {DIV} at (2,304) size 765x100 [border: (5px solid #800080)]
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 134x54
+            text run at (17,17) width 134: "This is a left-floating"
+            text run at (17,35) width 115: "paragraph (first in"
+            text run at (17,53) width 52: "source)."
+        LayoutBlockFlow (floating) {P} at (566,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 143x54
+            text run at (17,17) width 143: "This is a right-floating"
+            text run at (17,35) width 135: "paragraph (second in"
+            text run at (17,53) width 52: "source)."
+        LayoutText {#text} at (199,5) size 362x90
+          text run at (199,5) width 178: "This is text within the DIV. "
+          text run at (376,5) width 185: "The floating elements within"
+          text run at (199,23) width 336: "this DIV should not go beyond the left or right inner"
+          text run at (199,41) width 342: "edge of this DIV, which means that the borders of the"
+          text run at (199,59) width 328: "floating elements should not overlap the top or side"
+          text run at (199,77) width 124: "borders of the DIV."
+      LayoutBlockFlow {DIV} at (2,422) size 765x64 [border: (5px solid #800080)]
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (745,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (20,5) size 739x54
+          text run at (20,5) width 178: "This is text within the DIV. "
+          text run at (197,5) width 547: "The floating images within this DIV should not go beyond the left or right inner edge"
+          text run at (20,23) width 721: "of this DIV, which means that the borders of the floating images should not overlap the top or side borders of the"
+          text run at (5,41) width 31: "DIV."
+      LayoutBlockFlow {DIV} at (2,536) size 442x226 [border: (5px solid #800080)]
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x70 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 127x36
+            text run at (17,17) width 127: "This is the first left-"
+            text run at (17,35) width 121: "floating paragraph."
+        LayoutBlockFlow (floating) {P} at (199,5) size 194x70 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 146x36
+            text run at (17,17) width 146: "This is the second left-"
+            text run at (17,35) width 121: "floating paragraph."
+        LayoutBlockFlow (floating) {P} at (5,75) size 194x70 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 132x36
+            text run at (17,17) width 132: "This is the third left-"
+            text run at (17,35) width 121: "floating paragraph."
+        LayoutText {#text} at (393,5) size 432x216
+          text run at (393,5) width 44: "This is"
+          text run at (393,23) width 24: "text"
+          text run at (393,41) width 41: "within"
+          text run at (393,59) width 20: "the"
+          text run at (199,77) width 35: "DIV. "
+          text run at (233,77) width 184: "The floating elements within"
+          text run at (199,95) width 222: "this DIV should not go beyond the"
+          text run at (199,113) width 223: "left or right inner edge of this DIV,"
+          text run at (199,131) width 229: "which means that the borders of the"
+          text run at (5,149) width 421: "floating elements should not overlap the top or side borders of the"
+          text run at (5,167) width 110: "DIV in any way. "
+          text run at (114,167) width 303: "In addition, they should not overlap each other."
+          text run at (5,185) width 432: "The first two should be side by side, whereas the third should be on"
+          text run at (5,203) width 97: "the next \"line.\""
+      LayoutBlockFlow {DIV} at (2,780) size 360x208 [border: (5px solid #800080)]
+        LayoutImage (floating) {IMG} at (5,5) size 156x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (161,5) size 156x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (5,41) size 156x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (317,5) size 344x198
+          text run at (317,5) width 29: "This"
+          text run at (317,23) width 11: "is"
+          text run at (161,41) width 131: "text within the DIV. "
+          text run at (291,41) width 26: "The"
+          text run at (161,59) width 171: "floating images within this"
+          text run at (5,77) width 343: "DIV should not go beyond the left or right inner edge"
+          text run at (5,95) width 308: "of this DIV, which means that the borders of the"
+          text run at (5,113) width 317: "floating images should not overlap the top or side"
+          text run at (5,131) width 203: "borders of the DIV in any way. "
+          text run at (207,131) width 106: "In addition, they"
+          text run at (5,149) width 197: "should not overlap each other. "
+          text run at (201,149) width 148: "The first two should be"
+          text run at (5,167) width 335: "side by side, whereas the third should be on the next"
+          text run at (5,185) width 42: "\"line.\""
+      LayoutBlockFlow {DIV} at (2,1038) size 314x350 [border: (5px solid #800080)]
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 134x54
+            text run at (17,17) width 134: "This is a left-floating"
+            text run at (17,35) width 115: "paragraph (first in"
+            text run at (17,53) width 52: "source)."
+        LayoutBlockFlow (floating) {P} at (115,93) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 143x54
+            text run at (17,17) width 143: "This is a right-floating"
+            text run at (17,35) width 135: "paragraph (second in"
+            text run at (17,53) width 52: "source)."
+        LayoutText {#text} at (199,5) size 301x340
+          text run at (199,5) width 72: "This is text"
+          text run at (199,23) width 99: "within the DIV."
+          text run at (199,41) width 78: "The floating"
+          text run at (199,59) width 102: "elements within"
+          text run at (5,93) width 103: "this DIV should"
+          text run at (5,111) width 92: "not go beyond"
+          text run at (5,129) width 97: "the left or right"
+          text run at (5,147) width 85: "inner edge of"
+          text run at (5,165) width 101: "this DIV, which"
+          text run at (5,183) width 300: "means that the borders of the floating elements"
+          text run at (5,201) width 284: "should not overlap the top or side borders of"
+          text run at (5,219) width 134: "the DIV in any way. "
+          text run at (138,219) width 153: "In addition, they should"
+          text run at (5,237) width 292: "not overlap each other in any way, nor should"
+          text run at (5,255) width 301: "the floated elements be overwritten by the DIV"
+          text run at (5,273) width 32: "text. "
+          text run at (36,273) width 254: "In addition, the floated elements should"
+          text run at (5,291) width 299: "not be side-by-side, but instead the first should"
+          text run at (5,309) width 279: "be floated left, and the second floated to the"
+          text run at (5,327) width 130: "right below the first."
+      LayoutBlockFlow {DIV} at (2,1406) size 410x226 [border: (5px solid #800080)]
+        LayoutImage (floating) {IMG} at (5,5) size 256x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (149,41) size 256x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (261,5) size 396x216
+          text run at (261,5) width 140: "This is text within the"
+          text run at (261,23) width 35: "DIV. "
+          text run at (295,23) width 79: "The floating"
+          text run at (5,41) width 118: "images within this"
+          text run at (5,59) width 120: "DIV should not go"
+          text run at (5,77) width 386: "beyond the left or right inner edge of this DIV, which means"
+          text run at (5,95) width 390: "that the borders of the floating images should not overlap the"
+          text run at (5,113) width 274: "top or side borders of the DIV in any way. "
+          text run at (279,113) width 106: "In addition, they"
+          text run at (5,131) width 362: "should not overlap each other in any way, nor should the"
+          text run at (5,149) width 314: "floated elements be overwritten by the DIV text. "
+          text run at (318,149) width 74: "In addition,"
+          text run at (5,167) width 391: "the floated images should not be side-by-side, but instead the"
+          text run at (5,185) width 389: "first should be floated left, and the second floated to the right"
+          text run at (5,203) width 96: "below the first."
+      LayoutBlockFlow {DIV} at (2,1682) size 765x118 [border: (5px solid #800080)]
+        LayoutBlockFlow (floating) {P} at (566,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 143x54
+            text run at (17,17) width 143: "This is a right-floating"
+            text run at (17,35) width 115: "paragraph (first in"
+            text run at (17,53) width 52: "source)."
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 135x54
+            text run at (17,17) width 134: "This is a left-floating"
+            text run at (17,35) width 135: "paragraph (second in"
+            text run at (17,53) width 52: "source)."
+        LayoutText {#text} at (199,5) size 556x108
+          text run at (199,5) width 178: "This is text within the DIV. "
+          text run at (376,5) width 185: "The floating elements within"
+          text run at (199,23) width 355: "this DIV should not go beyond the top side of this DIV,"
+          text run at (199,41) width 343: "which means that the borders of the floating elements"
+          text run at (199,59) width 356: "should not overlap the top or side borders of the DIV in"
+          text run at (199,77) width 61: "any way. "
+          text run at (259,77) width 271: "In addition, the top of the left-floating box"
+          text run at (5,95) width 372: "should not be higher than the top of the right-floating box."
+      LayoutBlockFlow {DIV} at (2,1818) size 765x64 [border: (5px solid #800080)]
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (745,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (20,5) size 733x54
+          text run at (20,5) width 178: "This is text within the DIV. "
+          text run at (197,5) width 532: "The floating images within this DIV should not go beyond the top side of this DIV,"
+          text run at (20,23) width 718: "which means that the borders of the floating images should not overlap the top or side borders of the DIV in any"
+          text run at (5,41) width 34: "way. "
+          text run at (38,41) width 677: "In addition, the top of the left-floating image should not be higher than the top of the right-floating image."
+      LayoutBlockFlow {DIV} at (2,1932) size 765x136 [border: (5px solid #800080)]
+        LayoutText {#text} at (199,5) size 186x18
+          text run at (199,5) width 178: "This is text within the DIV. "
+          text run at (376,5) width 9: "*"
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 134x54
+            text run at (17,17) width 134: "This is a left-floating"
+            text run at (17,35) width 115: "paragraph (first in"
+            text run at (17,53) width 52: "source)."
+        LayoutText {#text} at (384,5) size 551x36
+          text run at (384,5) width 366: " The floating elements within this DIV should not go any"
+          text run at (199,23) width 487: "higher than the line-box containing the inline content which precedes them. "
+          text run at (685,23) width 13: "* "
+        LayoutBlockFlow (floating) {P} at (566,41) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 143x54
+            text run at (17,17) width 143: "This is a right-floating"
+            text run at (17,35) width 135: "paragraph (second in"
+            text run at (17,53) width 52: "source)."
+        LayoutText {#text} at (697,23) size 722x108
+          text run at (697,23) width 30: "This"
+          text run at (199,41) width 351: "means that the top side of each float can be, at most, as"
+          text run at (199,59) width 359: "high as the top edge of the inline element containing the"
+          text run at (199,77) width 336: "content just before the floating elements occur in the"
+          text run at (5,95) width 50: "source. "
+          text run at (54,95) width 494: "In order to mark these points clearly, an asterisk has been inserted just before"
+          text run at (5,113) width 136: "each floated element."
+      LayoutBlockFlow {DIV} at (2,2086) size 765x82 [border: (5px solid #800080)]
+        LayoutText {#text} at (20,5) size 186x18
+          text run at (20,5) width 178: "This is text within the DIV. "
+          text run at (197,5) width 9: "*"
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (205,5) size 697x36
+          text run at (205,5) width 512: " The floating images within this DIV should not go any higher than the line-box"
+          text run at (20,23) width 330: "containing the inline content which precedes them. "
+          text run at (349,23) width 13: "* "
+        LayoutImage (floating) {IMG} at (745,23) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (361,23) size 723x54
+          text run at (361,23) width 367: "This means that the top side of each float can be, at most,"
+          text run at (5,41) width 705: "as high as the top edge of the inline element containing the content just before the floating images occur in the"
+          text run at (5,59) width 50: "source. "
+          text run at (54,59) width 622: "In order to mark these points clearly, an asterisk has been inserted just before each floated image."
+      LayoutBlockFlow {DIV} at (2,2218) size 765x262 [border: (5px solid #800080)]
+        LayoutText {#text} at (199,5) size 186x18
+          text run at (199,5) width 178: "This is text within the DIV. "
+          text run at (376,5) width 9: "*"
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 134x54
+            text run at (17,17) width 134: "This is a left-floating"
+            text run at (17,35) width 115: "paragraph (first in"
+            text run at (17,53) width 52: "source)."
+        LayoutText {#text} at (384,5) size 551x36
+          text run at (384,5) width 366: " The floating elements within this DIV should not go any"
+          text run at (199,23) width 487: "higher than the line-box containing the inline content which precedes them. "
+          text run at (685,23) width 13: "* "
+        LayoutBlockFlow (floating) {P} at (566,41) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 143x54
+            text run at (17,17) width 143: "This is a right-floating"
+            text run at (17,35) width 135: "paragraph (second in"
+            text run at (17,53) width 52: "source)."
+        LayoutText {#text} at (697,23) size 528x36
+          text run at (697,23) width 30: "This"
+          text run at (199,41) width 288: "means that the top side of each float can be,*"
+        LayoutBlockFlow (floating) {P} at (199,59) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 134x54
+            text run at (17,17) width 134: "This is a left-floating"
+            text run at (17,35) width 120: "paragraph (third in"
+            text run at (17,53) width 52: "source)."
+        LayoutText {#text} at (486,41) size 276x108
+          text run at (486,41) width 72: " at most, as"
+          text run at (393,59) width 169: "high as the top edge of the"
+          text run at (393,77) width 163: "inline element containing"
+          text run at (393,95) width 167: "the content just before the"
+          text run at (393,113) width 166: "floating elements occur in"
+          text run at (587,131) width 74: "the source. "
+          text run at (660,131) width 9: "*"
+        LayoutBlockFlow (floating) {P} at (393,131) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 134x54
+            text run at (17,17) width 134: "This is a left-floating"
+            text run at (17,35) width 129: "paragraph (fourth in"
+            text run at (17,53) width 52: "source)."
+        LayoutText {#text} at (668,131) size 746x126
+          text run at (668,131) width 72: " In order to"
+          text run at (587,149) width 164: "mark these points clearly,"
+          text run at (587,167) width 128: "an asterisk has been"
+          text run at (587,185) width 156: "inserted just before each"
+          text run at (587,203) width 107: "floated element. "
+          text run at (693,203) width 50: "If a line"
+          text run at (5,221) width 739: "has room for a floated element, then the element should float so that its top is aligned with the top of the line-box in"
+          text run at (5,239) width 177: "which the asterisk appears. "
+          text run at (181,239) width 411: "Otherwise, its top should align with the top of the next line-box."
+      LayoutBlockFlow {DIV} at (2,2498) size 765x118 [border: (5px solid #800080)]
+        LayoutText {#text} at (20,5) size 186x18
+          text run at (20,5) width 178: "This is text within the DIV. "
+          text run at (197,5) width 9: "*"
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (205,5) size 682x36
+          text run at (205,5) width 512: " The floating images within this DIV should not go any higher than the line-box"
+          text run at (35,23) width 330: "containing the inline content which precedes them. "
+          text run at (364,23) width 13: "* "
+        LayoutImage (floating) {IMG} at (745,23) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (376,23) size 325x18
+          text run at (376,23) width 317: "This means that the top side of each float can be, "
+          text run at (692,23) width 9: "*"
+        LayoutImage (floating) {IMG} at (20,23) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (700,23) size 719x54
+          text run at (700,23) width 16: " at"
+          text run at (35,41) width 704: "most, as high as the top edge of the inline element containing the content just before the floating images occur"
+          text run at (20,59) width 90: "in the source. "
+          text run at (109,59) width 9: "*"
+        LayoutImage (floating) {IMG} at (5,59) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (117,59) size 754x54
+          text run at (117,59) width 630: " In order to mark these points clearly, an asterisk has been inserted just before each floated image. "
+          text run at (746,59) width 12: "If"
+          text run at (20,77) width 739: "a line has room for a floated image, then the image should float so that its top is aligned with the top of the line-box"
+          text run at (5,95) width 193: "in which the asterisk appears. "
+          text run at (197,95) width 411: "Otherwise, its top should align with the top of the next line-box."
+      LayoutBlockFlow {DIV} at (2,2666) size 490x298 [border: (5px solid #800080)]
+        LayoutText {#text} at (199,5) size 56x18
+          text run at (199,5) width 56: "This is *"
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 134x54
+            text run at (17,17) width 134: "This is a left-floating"
+            text run at (17,35) width 115: "paragraph (first in"
+            text run at (17,53) width 52: "source)."
+        LayoutText {#text} at (254,5) size 13x18
+          text run at (254,5) width 13: " *"
+        LayoutBlockFlow (floating) {P} at (291,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 143x54
+            text run at (17,17) width 143: "This is a right-floating"
+            text run at (17,35) width 135: "paragraph (second in"
+            text run at (17,53) width 52: "source)."
+        LayoutText {#text} at (199,23) size 479x270
+          text run at (199,23) width 69: "text within"
+          text run at (199,41) width 54: "the DIV."
+          text run at (199,59) width 85: "Under CSS1,"
+          text run at (199,77) width 45: "the left"
+          text run at (5,95) width 468: "floating element should be placed in the upper left corner of the DIV, and"
+          text run at (5,113) width 465: "the purple border of the DIV should abut the green border of the floating"
+          text run at (5,131) width 59: "element. "
+          text run at (63,131) width 421: "Similarly, the right floating element should be placed in the upper"
+          text run at (5,149) width 467: "right corner of the DIV, and the purple border of the DIV should abut the"
+          text run at (5,167) width 466: "green border of the floating element. The text of the DIV element should"
+          text run at (5,185) width 433: "flow between and under the two floating elements. The two asterisk"
+          text run at (5,203) width 477: "characters mark the insertion points of the floating elements. It is expected"
+          text run at (5,221) width 477: "that, under future specifications, it may be acceptable for the top of floated"
+          text run at (5,239) width 475: "elements to align with the top of the line-box following the insertion point"
+          text run at (5,257) width 449: "of the floated element to avoid floating elements appearing before text"
+          text run at (5,275) width 269: "which precedes it in the source document."
+      LayoutBlockFlow {DIV} at (2,2982) size 490x226 [border: (5px solid #800080)]
+        LayoutText {#text} at (20,5) size 56x18
+          text run at (20,5) width 56: "This is *"
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (75,5) size 13x18
+          text run at (75,5) width 13: " *"
+        LayoutImage (floating) {IMG} at (470,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (87,5) size 472x216
+          text run at (87,5) width 135: " text within the DIV. "
+          text run at (221,5) width 231: "Under CSS1, the left floating image"
+          text run at (20,23) width 429: "should be placed in the upper left corner of the DIV, and the purple"
+          text run at (5,41) width 443: "border of the DIV should abut the green border of the floating image."
+          text run at (5,59) width 443: "Similarly, the right floating image should be placed in the upper right"
+          text run at (5,77) width 472: "corner of the DIV, and the purple border of the DIV should abut the green"
+          text run at (5,95) width 447: "border of the floating image. The text of the DIV element should flow"
+          text run at (5,113) width 451: "between and under the two floating image. The two asterisk characters"
+          text run at (5,131) width 305: "mark the insertion points of the floating image. "
+          text run at (309,131) width 159: "It is expected that, under"
+          text run at (5,149) width 465: "future specifications, it may be acceptable for the top of floated elements"
+          text run at (5,167) width 455: "to align with the top of the line-box following the insertion point of the"
+          text run at (5,185) width 451: "floated element to avoid floating elements appearing before text which"
+          text run at (5,203) width 226: "precedes it in the source document."
+      LayoutTable {TABLE} at (0,3258) size 769x3079 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x3077
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x3051
+            LayoutTableCell {TD} at (0,1538) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x3051 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x54
+                LayoutText {#text} at (0,0) size 736x54
+                  text run at (0,0) width 694: "On this test page, each test is performed once with floating paragraphs, and then again with floating images. "
+                  text run at (693,0) width 38: "Other"
+                  text run at (0,18) width 736: "than the substitution of images for pargraphs, the structure of the test is exactly the same, including the direction of"
+                  text run at (0,36) width 63: "the floats."
+              LayoutBlockFlow {DIV} at (6,108) size 743x100 [border: (5px solid #800080)]
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 134x54
+                    text run at (17,17) width 134: "This is a left-floating"
+                    text run at (17,35) width 115: "paragraph (first in"
+                    text run at (17,53) width 52: "source)."
+                LayoutBlockFlow (floating) {P} at (544,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 143x54
+                    text run at (17,17) width 143: "This is a right-floating"
+                    text run at (17,35) width 135: "paragraph (second in"
+                    text run at (17,53) width 52: "source)."
+                LayoutText {#text} at (199,5) size 344x90
+                  text run at (199,5) width 178: "This is text within the DIV. "
+                  text run at (376,5) width 140: "The floating elements"
+                  text run at (199,23) width 344: "within this DIV should not go beyond the left or right"
+                  text run at (199,41) width 338: "inner edge of this DIV, which means that the borders"
+                  text run at (199,59) width 340: "of the floating elements should not overlap the top or"
+                  text run at (199,77) width 153: "side borders of the DIV."
+              LayoutBlockFlow {DIV} at (6,226) size 743x64 [border: (5px solid #800080)]
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (723,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (20,5) size 704x54
+                  text run at (20,5) width 178: "This is text within the DIV. "
+                  text run at (197,5) width 512: "The floating images within this DIV should not go beyond the left or right inner"
+                  text run at (20,23) width 662: "edge of this DIV, which means that the borders of the floating images should not overlap the top or side"
+                  text run at (5,41) width 124: "borders of the DIV."
+              LayoutBlockFlow {DIV} at (6,340) size 442x226 [border: (5px solid #800080)]
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x70 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 127x36
+                    text run at (17,17) width 127: "This is the first left-"
+                    text run at (17,35) width 121: "floating paragraph."
+                LayoutBlockFlow (floating) {P} at (199,5) size 194x70 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 146x36
+                    text run at (17,17) width 146: "This is the second left-"
+                    text run at (17,35) width 121: "floating paragraph."
+                LayoutBlockFlow (floating) {P} at (5,75) size 194x70 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 132x36
+                    text run at (17,17) width 132: "This is the third left-"
+                    text run at (17,35) width 121: "floating paragraph."
+                LayoutText {#text} at (393,5) size 432x216
+                  text run at (393,5) width 44: "This is"
+                  text run at (393,23) width 24: "text"
+                  text run at (393,41) width 41: "within"
+                  text run at (393,59) width 20: "the"
+                  text run at (199,77) width 35: "DIV. "
+                  text run at (233,77) width 184: "The floating elements within"
+                  text run at (199,95) width 222: "this DIV should not go beyond the"
+                  text run at (199,113) width 223: "left or right inner edge of this DIV,"
+                  text run at (199,131) width 229: "which means that the borders of the"
+                  text run at (5,149) width 421: "floating elements should not overlap the top or side borders of the"
+                  text run at (5,167) width 110: "DIV in any way. "
+                  text run at (114,167) width 303: "In addition, they should not overlap each other."
+                  text run at (5,185) width 432: "The first two should be side by side, whereas the third should be on"
+                  text run at (5,203) width 97: "the next \"line.\""
+              LayoutBlockFlow {DIV} at (6,584) size 360x208 [border: (5px solid #800080)]
+                LayoutImage (floating) {IMG} at (5,5) size 156x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (161,5) size 156x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (5,41) size 156x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (317,5) size 344x198
+                  text run at (317,5) width 29: "This"
+                  text run at (317,23) width 11: "is"
+                  text run at (161,41) width 131: "text within the DIV. "
+                  text run at (291,41) width 26: "The"
+                  text run at (161,59) width 171: "floating images within this"
+                  text run at (5,77) width 343: "DIV should not go beyond the left or right inner edge"
+                  text run at (5,95) width 308: "of this DIV, which means that the borders of the"
+                  text run at (5,113) width 317: "floating images should not overlap the top or side"
+                  text run at (5,131) width 203: "borders of the DIV in any way. "
+                  text run at (207,131) width 106: "In addition, they"
+                  text run at (5,149) width 197: "should not overlap each other. "
+                  text run at (201,149) width 148: "The first two should be"
+                  text run at (5,167) width 335: "side by side, whereas the third should be on the next"
+                  text run at (5,185) width 42: "\"line.\""
+              LayoutBlockFlow {DIV} at (6,842) size 314x350 [border: (5px solid #800080)]
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 134x54
+                    text run at (17,17) width 134: "This is a left-floating"
+                    text run at (17,35) width 115: "paragraph (first in"
+                    text run at (17,53) width 52: "source)."
+                LayoutBlockFlow (floating) {P} at (115,93) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 143x54
+                    text run at (17,17) width 143: "This is a right-floating"
+                    text run at (17,35) width 135: "paragraph (second in"
+                    text run at (17,53) width 52: "source)."
+                LayoutText {#text} at (199,5) size 301x340
+                  text run at (199,5) width 72: "This is text"
+                  text run at (199,23) width 99: "within the DIV."
+                  text run at (199,41) width 78: "The floating"
+                  text run at (199,59) width 102: "elements within"
+                  text run at (5,93) width 103: "this DIV should"
+                  text run at (5,111) width 92: "not go beyond"
+                  text run at (5,129) width 97: "the left or right"
+                  text run at (5,147) width 85: "inner edge of"
+                  text run at (5,165) width 101: "this DIV, which"
+                  text run at (5,183) width 300: "means that the borders of the floating elements"
+                  text run at (5,201) width 284: "should not overlap the top or side borders of"
+                  text run at (5,219) width 134: "the DIV in any way. "
+                  text run at (138,219) width 153: "In addition, they should"
+                  text run at (5,237) width 292: "not overlap each other in any way, nor should"
+                  text run at (5,255) width 301: "the floated elements be overwritten by the DIV"
+                  text run at (5,273) width 32: "text. "
+                  text run at (36,273) width 254: "In addition, the floated elements should"
+                  text run at (5,291) width 299: "not be side-by-side, but instead the first should"
+                  text run at (5,309) width 279: "be floated left, and the second floated to the"
+                  text run at (5,327) width 130: "right below the first."
+              LayoutBlockFlow {DIV} at (6,1210) size 410x226 [border: (5px solid #800080)]
+                LayoutImage (floating) {IMG} at (5,5) size 256x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (149,41) size 256x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (261,5) size 396x216
+                  text run at (261,5) width 140: "This is text within the"
+                  text run at (261,23) width 35: "DIV. "
+                  text run at (295,23) width 79: "The floating"
+                  text run at (5,41) width 118: "images within this"
+                  text run at (5,59) width 120: "DIV should not go"
+                  text run at (5,77) width 386: "beyond the left or right inner edge of this DIV, which means"
+                  text run at (5,95) width 390: "that the borders of the floating images should not overlap the"
+                  text run at (5,113) width 274: "top or side borders of the DIV in any way. "
+                  text run at (279,113) width 106: "In addition, they"
+                  text run at (5,131) width 362: "should not overlap each other in any way, nor should the"
+                  text run at (5,149) width 314: "floated elements be overwritten by the DIV text. "
+                  text run at (318,149) width 74: "In addition,"
+                  text run at (5,167) width 391: "the floated images should not be side-by-side, but instead the"
+                  text run at (5,185) width 389: "first should be floated left, and the second floated to the right"
+                  text run at (5,203) width 96: "below the first."
+              LayoutBlockFlow {DIV} at (6,1486) size 743x118 [border: (5px solid #800080)]
+                LayoutBlockFlow (floating) {P} at (544,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 143x54
+                    text run at (17,17) width 143: "This is a right-floating"
+                    text run at (17,35) width 115: "paragraph (first in"
+                    text run at (17,53) width 52: "source)."
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 135x54
+                    text run at (17,17) width 134: "This is a left-floating"
+                    text run at (17,35) width 135: "paragraph (second in"
+                    text run at (17,53) width 52: "source)."
+                LayoutText {#text} at (199,5) size 539x108
+                  text run at (199,5) width 178: "This is text within the DIV. "
+                  text run at (376,5) width 140: "The floating elements"
+                  text run at (199,23) width 338: "within this DIV should not go beyond the top side of"
+                  text run at (199,41) width 343: "this DIV, which means that the borders of the floating"
+                  text run at (199,59) width 345: "elements should not overlap the top or side borders of"
+                  text run at (199,77) width 134: "the DIV in any way. "
+                  text run at (332,77) width 194: "In addition, the top of the left-"
+                  text run at (5,95) width 453: "floating box should not be higher than the top of the right-floating box."
+              LayoutBlockFlow {DIV} at (6,1622) size 743x82 [border: (5px solid #800080)]
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (723,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (20,5) size 691x72
+                  text run at (20,5) width 178: "This is text within the DIV. "
+                  text run at (197,5) width 497: "The floating images within this DIV should not go beyond the top side of this"
+                  text run at (20,23) width 676: "DIV, which means that the borders of the floating images should not overlap the top or side borders of the"
+                  text run at (5,41) width 110: "DIV in any way. "
+                  text run at (114,41) width 581: "In addition, the top of the left-floating image should not be higher than the top of the right-"
+                  text run at (5,59) width 96: "floating image."
+              LayoutBlockFlow {DIV} at (6,1754) size 743x136 [border: (5px solid #800080)]
+                LayoutText {#text} at (199,5) size 186x18
+                  text run at (199,5) width 178: "This is text within the DIV. "
+                  text run at (376,5) width 9: "*"
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 134x54
+                    text run at (17,17) width 134: "This is a left-floating"
+                    text run at (17,35) width 115: "paragraph (first in"
+                    text run at (17,53) width 52: "source)."
+                LayoutText {#text} at (384,5) size 524x36
+                  text run at (384,5) width 339: " The floating elements within this DIV should not go"
+                  text run at (199,23) width 515: "any higher than the line-box containing the inline content which precedes them. "
+                  text run at (713,23) width 9: "*"
+                LayoutBlockFlow (floating) {P} at (544,41) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 143x54
+                    text run at (17,17) width 143: "This is a right-floating"
+                    text run at (17,35) width 135: "paragraph (second in"
+                    text run at (17,53) width 52: "source)."
+                LayoutText {#text} at (199,41) size 523x90
+                  text run at (199,41) width 327: "This means that the top side of each float can be, at"
+                  text run at (199,59) width 321: "most, as high as the top edge of the inline element"
+                  text run at (199,77) width 291: "containing the content just before the floating"
+                  text run at (5,95) width 191: "elements occur in the source. "
+                  text run at (195,95) width 333: "In order to mark these points clearly, an asterisk has"
+                  text run at (5,113) width 297: "been inserted just before each floated element."
+              LayoutBlockFlow {DIV} at (6,1908) size 743x82 [border: (5px solid #800080)]
+                LayoutText {#text} at (20,5) size 186x18
+                  text run at (20,5) width 178: "This is text within the DIV. "
+                  text run at (197,5) width 9: "*"
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (205,5) size 697x36
+                  text run at (205,5) width 512: " The floating images within this DIV should not go any higher than the line-box"
+                  text run at (20,23) width 330: "containing the inline content which precedes them. "
+                  text run at (349,23) width 13: "* "
+                LayoutImage (floating) {IMG} at (723,23) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (361,23) size 711x54
+                  text run at (361,23) width 328: "This means that the top side of each float can be, at"
+                  text run at (5,41) width 704: "most, as high as the top edge of the inline element containing the content just before the floating images occur"
+                  text run at (5,59) width 90: "in the source. "
+                  text run at (94,59) width 622: "In order to mark these points clearly, an asterisk has been inserted just before each floated image."
+              LayoutBlockFlow {DIV} at (6,2040) size 743x226 [border: (5px solid #800080)]
+                LayoutText {#text} at (199,5) size 186x18
+                  text run at (199,5) width 178: "This is text within the DIV. "
+                  text run at (376,5) width 9: "*"
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 134x54
+                    text run at (17,17) width 134: "This is a left-floating"
+                    text run at (17,35) width 115: "paragraph (first in"
+                    text run at (17,53) width 52: "source)."
+                LayoutText {#text} at (384,5) size 524x36
+                  text run at (384,5) width 339: " The floating elements within this DIV should not go"
+                  text run at (199,23) width 515: "any higher than the line-box containing the inline content which precedes them. "
+                  text run at (713,23) width 9: "*"
+                LayoutBlockFlow (floating) {P} at (544,41) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 143x54
+                    text run at (17,17) width 143: "This is a right-floating"
+                    text run at (17,35) width 135: "paragraph (second in"
+                    text run at (17,53) width 52: "source)."
+                LayoutText {#text} at (199,41) size 320x18
+                  text run at (199,41) width 320: "This means that the top side of each float can be,*"
+                LayoutBlockFlow (floating) {P} at (199,59) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 134x54
+                    text run at (17,17) width 134: "This is a left-floating"
+                    text run at (17,35) width 120: "paragraph (third in"
+                    text run at (17,53) width 52: "source)."
+                LayoutText {#text} at (518,41) size 252x108
+                  text run at (518,41) width 16: " at"
+                  text run at (393,59) width 151: "most, as high as the top"
+                  text run at (393,77) width 112: "edge of the inline"
+                  text run at (393,95) width 146: "element containing the"
+                  text run at (393,113) width 143: "content just before the"
+                  text run at (393,131) width 244: "floating elements occur in the source. "
+                  text run at (636,131) width 9: "*"
+                LayoutBlockFlow (floating) {P} at (5,149) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 134x54
+                    text run at (17,17) width 134: "This is a left-floating"
+                    text run at (17,35) width 129: "paragraph (fourth in"
+                    text run at (17,53) width 52: "source)."
+                LayoutText {#text} at (644,131) size 519x90
+                  text run at (644,131) width 72: " In order to"
+                  text run at (199,149) width 503: "mark these points clearly, an asterisk has been inserted just before each floated"
+                  text run at (199,167) width 59: "element. "
+                  text run at (257,167) width 461: "If a line has room for a floated element, then the element should float so"
+                  text run at (199,185) width 505: "that its top is aligned with the top of the line-box in which the asterisk appears."
+                  text run at (199,203) width 411: "Otherwise, its top should align with the top of the next line-box."
+              LayoutBlockFlow {DIV} at (6,2287) size 743x118 [border: (5px solid #800080)]
+                LayoutText {#text} at (20,5) size 186x18
+                  text run at (20,5) width 178: "This is text within the DIV. "
+                  text run at (197,5) width 9: "*"
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (205,5) size 682x36
+                  text run at (205,5) width 512: " The floating images within this DIV should not go any higher than the line-box"
+                  text run at (35,23) width 330: "containing the inline content which precedes them. "
+                  text run at (364,23) width 13: "* "
+                LayoutImage (floating) {IMG} at (723,23) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (376,23) size 325x18
+                  text run at (376,23) width 317: "This means that the top side of each float can be, "
+                  text run at (692,23) width 9: "*"
+                LayoutImage (floating) {IMG} at (20,23) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (700,23) size 696x54
+                  text run at (700,23) width 16: " at"
+                  text run at (35,41) width 665: "most, as high as the top edge of the inline element containing the content just before the floating images"
+                  text run at (20,59) width 130: "occur in the source. "
+                  text run at (149,59) width 9: "*"
+                LayoutImage (floating) {IMG} at (5,59) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (157,59) size 731x54
+                  text run at (157,59) width 579: " In order to mark these points clearly, an asterisk has been inserted just before each floated"
+                  text run at (20,77) width 48: "image. "
+                  text run at (67,77) width 655: "If a line has room for a floated image, then the image should float so that its top is aligned with the top"
+                  text run at (5,95) width 292: "of the line-box in which the asterisk appears. "
+                  text run at (296,95) width 411: "Otherwise, its top should align with the top of the next line-box."
+              LayoutBlockFlow {DIV} at (6,2455) size 490x298 [border: (5px solid #800080)]
+                LayoutText {#text} at (199,5) size 56x18
+                  text run at (199,5) width 56: "This is *"
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 134x54
+                    text run at (17,17) width 134: "This is a left-floating"
+                    text run at (17,35) width 115: "paragraph (first in"
+                    text run at (17,53) width 52: "source)."
+                LayoutText {#text} at (254,5) size 13x18
+                  text run at (254,5) width 13: " *"
+                LayoutBlockFlow (floating) {P} at (291,5) size 194x88 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 143x54
+                    text run at (17,17) width 143: "This is a right-floating"
+                    text run at (17,35) width 135: "paragraph (second in"
+                    text run at (17,53) width 52: "source)."
+                LayoutText {#text} at (199,23) size 479x270
+                  text run at (199,23) width 69: "text within"
+                  text run at (199,41) width 54: "the DIV."
+                  text run at (199,59) width 85: "Under CSS1,"
+                  text run at (199,77) width 45: "the left"
+                  text run at (5,95) width 468: "floating element should be placed in the upper left corner of the DIV, and"
+                  text run at (5,113) width 465: "the purple border of the DIV should abut the green border of the floating"
+                  text run at (5,131) width 59: "element. "
+                  text run at (63,131) width 421: "Similarly, the right floating element should be placed in the upper"
+                  text run at (5,149) width 467: "right corner of the DIV, and the purple border of the DIV should abut the"
+                  text run at (5,167) width 466: "green border of the floating element. The text of the DIV element should"
+                  text run at (5,185) width 433: "flow between and under the two floating elements. The two asterisk"
+                  text run at (5,203) width 477: "characters mark the insertion points of the floating elements. It is expected"
+                  text run at (5,221) width 477: "that, under future specifications, it may be acceptable for the top of floated"
+                  text run at (5,239) width 475: "elements to align with the top of the line-box following the insertion point"
+                  text run at (5,257) width 449: "of the floated element to avoid floating elements appearing before text"
+                  text run at (5,275) width 269: "which precedes it in the source document."
+              LayoutBlockFlow {DIV} at (6,2771) size 490x226 [border: (5px solid #800080)]
+                LayoutText {#text} at (20,5) size 56x18
+                  text run at (20,5) width 56: "This is *"
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (75,5) size 13x18
+                  text run at (75,5) width 13: " *"
+                LayoutImage (floating) {IMG} at (470,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (87,5) size 472x216
+                  text run at (87,5) width 135: " text within the DIV. "
+                  text run at (221,5) width 231: "Under CSS1, the left floating image"
+                  text run at (20,23) width 429: "should be placed in the upper left corner of the DIV, and the purple"
+                  text run at (5,41) width 443: "border of the DIV should abut the green border of the floating image."
+                  text run at (5,59) width 443: "Similarly, the right floating image should be placed in the upper right"
+                  text run at (5,77) width 472: "corner of the DIV, and the purple border of the DIV should abut the green"
+                  text run at (5,95) width 447: "border of the floating image. The text of the DIV element should flow"
+                  text run at (5,113) width 451: "between and under the two floating image. The two asterisk characters"
+                  text run at (5,131) width 305: "mark the insertion points of the floating image. "
+                  text run at (309,131) width 159: "It is expected that, under"
+                  text run at (5,149) width 465: "future specifications, it may be acceptable for the top of floated elements"
+                  text run at (5,167) width 455: "to align with the top of the line-box following the insertion point of the"
+                  text run at (5,185) width 451: "floated element to avoid floating elements appearing before text which"
+                  text run at (5,203) width 226: "precedes it in the source document."
+layer at (8,190) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,182) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (32,286) size 579x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,278) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,420) size 41x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,412) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,518) size 579x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,510) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,778) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,770) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1020) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,1012) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,1404) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,1396) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1664) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,1656) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,1816) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,1808) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1914) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,1906) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2084) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2076) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,2200) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,2192) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2496) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2488) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,2648) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,2640) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2980) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2972) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,3240) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,3232) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (49,3375) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,82) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,3509) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,216) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,3607) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,314) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,3867) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,574) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,4109) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,816) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,4493) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1200) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,4753) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,1460) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,4905) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1612) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5021) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,1728) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,5191) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1898) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5307) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,2014) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,5570) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,2277) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5722) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,2429) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,6054) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,2761) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,6314) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,3021) size 562.25x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/height_of_lines-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/height_of_lines-expected.txt
new file mode 100644
index 0000000..89394bd2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/height_of_lines-expected.txt
@@ -0,0 +1,133 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2299
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2299 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2299
+    LayoutBlockFlow {BODY} at (8,8) size 769x2283 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x270
+        LayoutText {#text} at (0,0) size 523x270
+          text run at (0,0) width 336: "P.one {font-size: 14px; line-height: 20px;}"
+          text run at (335,0) width 1: " "
+          text run at (0,15) width 297: "IMG.onea {vertical-align: text-bottom;"
+          text run at (296,15) width 1: " "
+          text run at (0,30) width 266: "     width: 200px; height: 200px;}"
+          text run at (265,30) width 1: " "
+          text run at (0,45) width 508: "IMG.oneb {vertical-align: text-top; width: 200px; height: 200px;}"
+          text run at (507,45) width 1: " "
+          text run at (0,60) width 0: " "
+          text run at (0,75) width 336: "P.two {font-size: 14px; line-height: 20px;}"
+          text run at (335,75) width 1: " "
+          text run at (0,90) width 523: "IMG.twoa {vertical-align: text-bottom; width: 100px; height: 100px;"
+          text run at (522,90) width 1: " "
+          text run at (0,105) width 305: "     padding: 5px; border-style: solid;"
+          text run at (304,105) width 1: " "
+          text run at (0,120) width 305: "     border-width: 10px; margin: 15px;}"
+          text run at (304,120) width 1: " "
+          text run at (0,135) width 274: "IMG.twob {vertical-align: text-top;"
+          text run at (273,135) width 1: " "
+          text run at (0,150) width 297: "          width: 100px; height: 100px;"
+          text run at (296,150) width 1: " "
+          text run at (0,165) width 305: "     padding: 5px; border-style: solid;"
+          text run at (304,165) width 1: " "
+          text run at (0,180) width 305: "     border-width: 10px; margin: 15px;}"
+          text run at (304,180) width 1: " "
+          text run at (0,195) width 0: " "
+          text run at (0,210) width 469: "IMG.twoc {vertical-align: middle; width: 50px; height: 50px;"
+          text run at (468,210) width 1: " "
+          text run at (0,225) width 305: "     padding: 5px; border-style: solid;"
+          text run at (304,225) width 1: " "
+          text run at (0,240) width 313: "     border-width: 10px; margin: -10px;}"
+          text run at (312,240) width 1: " "
+          text run at (0,255) width 0: " "
+      LayoutBlockFlow {P} at (0,333) size 769x443
+        LayoutText {#text} at (0,1) size 768x239
+          text run at (0,1) width 413: "This paragraph should have a font size of 14px and a line height of 20px. "
+          text run at (412,1) width 345: "This means that the lines of text within it should be separated"
+          text run at (0,21) width 367: "by six pixels, three of which are part of the line-box of each line. "
+          text run at (366,21) width 402: "Any images within the paragraph should increase the height of the line-"
+          text run at (0,223) width 265: "box so that they fit within the line box, such as "
+        LayoutImage {IMG} at (264.41,40) size 200x200
+        LayoutText {#text} at (464,223) size 28x17
+          text run at (464,223) width 28: " and "
+        LayoutImage {IMG} at (491.61,223) size 200x200
+        LayoutText {#text} at (691,223) size 769x218
+          text run at (691,223) width 8: ". "
+          text run at (698,223) width 39: "This is"
+          text run at (0,424) width 769: "additional text to make sure that there is enough room left below the image so that this line does not hit the image that is text-top aligned."
+      LayoutBlockFlow {P} at (0,790) size 769x483
+        LayoutText {#text} at (0,1) size 758x199
+          text run at (0,1) width 413: "This paragraph should have a font size of 14px and a line height of 20px. "
+          text run at (412,1) width 345: "This means that the lines of text within it should be separated"
+          text run at (0,21) width 78: "by six pixels. "
+          text run at (77,21) width 681: "Any images within the paragraph should increase the height of the line-box so that they fit, including their padding (5px),"
+          text run at (0,183) width 351: "border (10px) and margins (15px) within the line box, such as "
+        LayoutImage {IMG} at (365.45,55) size 130x130 [border: (10px solid #000000)]
+        LayoutText {#text} at (510,183) size 28x17
+          text run at (510,183) width 28: " and "
+        LayoutImage {IMG} at (552.66,198) size 130x130 [border: (10px solid #000000)]
+        LayoutText {#text} at (697,183) size 769x257
+          text run at (697,183) width 8: ". "
+          text run at (704,183) width 39: "This is"
+          text run at (0,344) width 769: "additional text to make sure that there is enough room left below the image so that this line does not hit the image that is text-top aligned."
+          text run at (0,364) width 734: "It is the outer edge of the margin that should be text-bottom and text-top aligned in this paragraph, so for the first image the bottom"
+          text run at (0,384) width 753: "border of the image should begin 15px above the bottom of the text, and for the second image the top border should begin 15px below"
+          text run at (0,423) width 103: "the top of the text "
+        LayoutImage {IMG} at (92.25,393) size 80x80 [border: (10px solid #000000)]
+        LayoutText {#text} at (162,423) size 737x58
+          text run at (162,423) width 8: ". "
+          text run at (169,423) width 568: "The last image in this paragraph has -10px margins set on it, so that should pull the text in toward the"
+          text run at (0,464) width 374: "image in the vertical direction, and also in the horizontal direction."
+      LayoutTable {TABLE} at (0,1287) size 769x996 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x994
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x968
+            LayoutTableCell {TD} at (0,497) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x968 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x463
+                LayoutText {#text} at (0,1) size 720x239
+                  text run at (0,1) width 413: "This paragraph should have a font size of 14px and a line height of 20px. "
+                  text run at (412,1) width 288: "This means that the lines of text within it should be"
+                  text run at (0,21) width 423: "separated by six pixels, three of which are part of the line-box of each line. "
+                  text run at (422,21) width 298: "Any images within the paragraph should increase the"
+                  text run at (0,223) width 365: "height of the line-box so that they fit within the line box, such as "
+                LayoutImage {IMG} at (364.33,40) size 200x200
+                LayoutText {#text} at (564,223) size 28x17
+                  text run at (564,223) width 28: " and "
+                LayoutImage {IMG} at (0,243) size 200x200
+                LayoutText {#text} at (200,243) size 733x218
+                  text run at (200,243) width 7: ". "
+                  text run at (207,243) width 526: "This is additional text to make sure that there is enough room left below the image so that this"
+                  text run at (0,444) width 281: "line does not hit the image that is text-top aligned."
+              LayoutBlockFlow {P} at (4,481) size 747x483
+                LayoutText {#text} at (0,1) size 729x199
+                  text run at (0,1) width 413: "This paragraph should have a font size of 14px and a line height of 20px. "
+                  text run at (412,1) width 288: "This means that the lines of text within it should be"
+                  text run at (0,21) width 135: "separated by six pixels. "
+                  text run at (134,21) width 595: "Any images within the paragraph should increase the height of the line-box so that they fit, including their"
+                  text run at (0,183) width 437: "padding (5px), border (10px) and margins (15px) within the line box, such as "
+                LayoutImage {IMG} at (451.38,55) size 130x130 [border: (10px solid #000000)]
+                LayoutText {#text} at (596,183) size 28x17
+                  text run at (596,183) width 28: " and "
+                LayoutImage {IMG} at (15,218) size 130x130 [border: (10px solid #000000)]
+                LayoutText {#text} at (160,203) size 747x237
+                  text run at (160,203) width 7: ". "
+                  text run at (167,203) width 580: "This is additional text to make sure that there is enough room left below the image so that this line does"
+                  text run at (0,364) width 231: "not hit the image that is text-top aligned. "
+                  text run at (230,364) width 488: "It is the outer edge of the margin that should be text-bottom and text-top aligned in this"
+                  text run at (0,384) width 735: "paragraph, so for the first image the bottom border of the image should begin 15px above the bottom of the text, and for the second"
+                  text run at (0,423) width 367: "image the top border should begin 15px below the top of the text "
+                LayoutImage {IMG} at (356.64,393) size 80x80 [border: (10px solid #000000)]
+                LayoutText {#text} at (426,423) size 740x58
+                  text run at (426,423) width 8: ". "
+                  text run at (433,423) width 307: "The last image in this paragraph has -10px margins set"
+                  text run at (0,464) width 635: "on it, so that should pull the text in toward the image in the vertical direction, and also in the horizontal direction."
+layer at (8,325) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,317) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/inline_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/inline_elements-expected.txt
new file mode 100644
index 0000000..c3e467e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/inline_elements-expected.txt
@@ -0,0 +1,97 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 780
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x779 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x779.33
+    LayoutBlockFlow {BODY} at (8,8) size 769x763.33 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x105
+        LayoutText {#text} at (0,0) size 547x105
+          text run at (0,0) width 203: "P.one {line-height: 200%;}"
+          text run at (202,0) width 1: " "
+          text run at (0,15) width 539: "SPAN.two {border-style: solid; border-width: 10px; border-color: red;"
+          text run at (538,15) width 1: " "
+          text run at (0,30) width 297: "          padding: 2pt; margin: 30pt;}"
+          text run at (296,30) width 1: " "
+          text run at (0,45) width 352: "P.three {font-size: 10pt; line-height: 12pt;}"
+          text run at (351,45) width 1: " "
+          text run at (0,60) width 547: "SPAN.four {border-style: solid; border-width: 12px; border-color: red;"
+          text run at (546,60) width 1: " "
+          text run at (0,75) width 188: "          padding: 2pt;}"
+          text run at (187,75) width 1: " "
+          text run at (0,90) width 0: " "
+      LayoutBlockFlow {P} at (0,170) size 769x192
+        LayoutText {#text} at (0,7) size 191x18
+          text run at (0,7) width 191: "This is a paragraph that has a "
+        LayoutInline {SPAN} at (0,0) size 765x172 [border: (10px solid #FF0000)]
+          LayoutText {#text} at (242,7) size 765x146
+            text run at (242,7) width 512: "very long span in it, and the span has a 10px red border separated from the span"
+            text run at (0,39) width 190: "by 2pt, and a margin of 30pt. "
+            text run at (189,39) width 572: "The padding and border should be present on all sides of the span (although vertical lines"
+            text run at (0,71) width 547: "should appear only at the beginning and the end of the whole span, not on each line). "
+            text run at (546,71) width 211: "The padding, border, and margin"
+            text run at (0,103) width 395: "should all be noticeable at the beginning and end of the span. "
+            text run at (395,103) width 370: "However, the line height should not be changed by any of"
+            text run at (0,135) width 597: "them, so the margin should be unnoticeable and the border should overlap text on other lines."
+        LayoutText {#text} at (648,135) size 759x50
+          text run at (648,135) width 5: " "
+          text run at (652,135) width 107: "The line spacing"
+          text run at (0,167) width 358: "in the whole paragraph should be 200% of the font size."
+      LayoutBlockFlow {P} at (0,378) size 769x64
+        LayoutText {#text} at (0,0) size 159x15
+          text run at (0,0) width 159: "This is a paragraph that has a "
+        LayoutInline {SPAN} at (0,0) size 755x93 [border: (12px solid #FF0000)]
+          LayoutText {#text} at (172,0) size 755x63
+            text run at (172,0) width 548: "very long span in it, and the span has a 12px red border separated from the span by 2pt of padding (the"
+            text run at (0,16) width 755: "difference between the line-height and the font-size), which should overlap with the lines of text above and below the span, since the padding"
+            text run at (0,32) width 237: "and border should not effect the line height. "
+            text run at (236,32) width 517: "The span's border should have vertical lines only at the beginning and end of the whole span, not"
+            text run at (0,48) width 68: "on each line."
+        LayoutText {#text} at (81,48) size 411x15
+          text run at (81,48) width 5: " "
+          text run at (85,48) width 407: "The line spacing in the whole paragraph should be 12pt, with font-size 10pt."
+      LayoutTable {TABLE} at (0,455.33) size 769x308 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x306
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x280
+            LayoutTableCell {TD} at (0,153) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x280 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x192
+                LayoutText {#text} at (0,7) size 191x18
+                  text run at (0,7) width 191: "This is a paragraph that has a "
+                LayoutInline {SPAN} at (0,0) size 725x204 [border: (10px solid #FF0000)]
+                  LayoutText {#text} at (242,7) size 725x178
+                    text run at (242,7) width 478: "very long span in it, and the span has a 10px red border separated from the"
+                    text run at (0,39) width 223: "span by 2pt, and a margin of 30pt. "
+                    text run at (222,39) width 486: "The padding and border should be present on all sides of the span (although"
+                    text run at (0,71) width 634: "vertical lines should appear only at the beginning and the end of the whole span, not on each line). "
+                    text run at (633,71) width 85: "The padding,"
+                    text run at (0,103) width 521: "border, and margin should all be noticeable at the beginning and end of the span. "
+                    text run at (520,103) width 205: "However, the line height should"
+                    text run at (0,135) width 724: "not be changed by any of them, so the margin should be unnoticeable and the border should overlap text on other"
+                    text run at (0,167) width 35: "lines."
+                LayoutText {#text} at (86,167) size 472x18
+                  text run at (86,167) width 5: " "
+                  text run at (90,167) width 468: "The line spacing in the whole paragraph should be 200% of the font size."
+              LayoutBlockFlow {P} at (4,212) size 747x64
+                LayoutText {#text} at (0,0) size 159x15
+                  text run at (0,0) width 159: "This is a paragraph that has a "
+                LayoutInline {SPAN} at (0,0) size 720x93 [border: (12px solid #FF0000)]
+                  LayoutText {#text} at (172,0) size 720x63
+                    text run at (172,0) width 548: "very long span in it, and the span has a 12px red border separated from the span by 2pt of padding (the"
+                    text run at (0,16) width 708: "difference between the line-height and the font-size), which should overlap with the lines of text above and below the span, since the"
+                    text run at (0,32) width 283: "padding and border should not effect the line height. "
+                    text run at (282,32) width 430: "The span's border should have vertical lines only at the beginning and end of the"
+                    text run at (0,48) width 156: "whole span, not on each line."
+                LayoutText {#text} at (169,48) size 410x15
+                  text run at (169,48) width 4: " "
+                  text run at (172,48) width 407: "The line spacing in the whole paragraph should be 12pt, with font-size 10pt."
+layer at (8,160) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,152) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/replaced_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/replaced_elements-expected.txt
new file mode 100644
index 0000000..8d72bab
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/replaced_elements-expected.txt
@@ -0,0 +1,88 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2339
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2339 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2339
+    LayoutBlockFlow {BODY} at (8,8) size 769x2323 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x120
+        LayoutText {#text} at (0,0) size 492x120
+          text run at (0,0) width 203: "IMG.one {display: inline;}"
+          text run at (202,0) width 1: " "
+          text run at (0,15) width 196: "IMG.two {display: block;}"
+          text run at (195,15) width 1: " "
+          text run at (0,30) width 203: "IMG.three {display: block;"
+          text run at (202,30) width 1: " "
+          text run at (0,45) width 492: "           margin-right: auto; margin-left: auto; width: auto;}"
+          text run at (491,45) width 1: " "
+          text run at (0,60) width 196: "IMG.four {display: block;"
+          text run at (195,60) width 1: " "
+          text run at (0,75) width 476: "          margin-right: auto; margin-left: auto; width: 50%;}"
+          text run at (475,75) width 1: " "
+          text run at (0,90) width 196: "IMG.five {display: block;"
+          text run at (195,90) width 1: " "
+          text run at (0,105) width 453: "          margin-right: 0; margin-left: auto; width: 50%;}"
+          text run at (452,105) width 1: " "
+      LayoutBlockFlow {P} at (0,185) size 769x19
+        LayoutImage {IMG} at (0,0) size 15x15
+        LayoutText {#text} at (15,1) size 442x18
+          text run at (15,1) width 442: "The image at the beginning of this sentence should be a 15px square."
+      LayoutImage {IMG} at (0,220) size 15x15
+      LayoutBlockFlow {P} at (0,251) size 769x18
+        LayoutText {#text} at (0,0) size 498x18
+          text run at (0,0) width 498: "The above image should be a 15px square with the same left edge as this text."
+      LayoutImage {IMG} at (377,285) size 15x15
+      LayoutBlockFlow {P} at (0,316) size 769x18
+        LayoutText {#text} at (0,0) size 406x18
+          text run at (0,0) width 406: "The above image should be a 15px square aligned at the center."
+      LayoutImage {IMG} at (192.25,350) size 384.50x384.50
+      LayoutBlockFlow {P} at (0,750.50) size 769x36
+        LayoutText {#text} at (0,0) size 738x36
+          text run at (0,0) width 738: "The above image should be a square resized so its width is 50% of the its parent element, and centered horizontally"
+          text run at (0,18) width 172: "within the parent element: "
+          text run at (171,18) width 404: "the document body in the first half, and the table in the second."
+      LayoutImage {IMG} at (384.50,802.50) size 384.50x384.50
+      LayoutBlockFlow {P} at (0,1203) size 769x36
+        LayoutText {#text} at (0,0) size 750x36
+          text run at (0,0) width 750: "The above image should be a square resized so its width is 50% of its parent element, and aligned at the right edge of"
+          text run at (0,18) width 127: "the parent element: "
+          text run at (126,18) width 404: "the document body in the first half, and the table in the second."
+      LayoutTable {TABLE} at (0,1255) size 769x1068 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1066
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x1040
+            LayoutTableCell {TD} at (0,533) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x1040 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x19
+                LayoutImage {IMG} at (0,0) size 15x15
+                LayoutText {#text} at (15,1) size 442x18
+                  text run at (15,1) width 442: "The image at the beginning of this sentence should be a 15px square."
+              LayoutImage {IMG} at (4,39) size 15x15
+              LayoutBlockFlow {P} at (4,70) size 747x18
+                LayoutText {#text} at (0,0) size 498x18
+                  text run at (0,0) width 498: "The above image should be a 15px square with the same left edge as this text."
+              LayoutImage {IMG} at (370,104) size 15x15
+              LayoutBlockFlow {P} at (4,135) size 747x18
+                LayoutText {#text} at (0,0) size 406x18
+                  text run at (0,0) width 406: "The above image should be a 15px square aligned at the center."
+              LayoutImage {IMG} at (190.75,169) size 373.50x373.50
+              LayoutBlockFlow {P} at (4,558.50) size 747x36
+                LayoutText {#text} at (0,0) size 738x36
+                  text run at (0,0) width 738: "The above image should be a square resized so its width is 50% of the its parent element, and centered horizontally"
+                  text run at (0,18) width 172: "within the parent element: "
+                  text run at (171,18) width 404: "the document body in the first half, and the table in the second."
+              LayoutImage {IMG} at (377.50,610.50) size 373.50x373.50
+              LayoutBlockFlow {P} at (4,1000) size 747x36
+                LayoutText {#text} at (0,0) size 733x36
+                  text run at (0,0) width 733: "The above image should be a square resized so its width is 50% of its parent element, and aligned at the right edge"
+                  text run at (0,18) width 144: "of the parent element: "
+                  text run at (143,18) width 404: "the document body in the first half, and the table in the second."
+layer at (8,175) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,167) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/vertical_formatting-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/vertical_formatting-expected.txt
new file mode 100644
index 0000000..2f2bbda
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/formatting_model/vertical_formatting-expected.txt
@@ -0,0 +1,173 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2487
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2487 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2486.78
+    LayoutBlockFlow {BODY} at (8,8) size 769x2470.78 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x300
+        LayoutText {#text} at (0,0) size 484x300
+          text run at (0,0) width 359: "P.one {margin-bottom: 2cm; padding-bottom: 0;}"
+          text run at (358,0) width 1: " "
+          text run at (0,15) width 313: "P.two {margin-top: 2cm; padding-top: 0;}"
+          text run at (312,15) width 1: " "
+          text run at (0,30) width 313: "P.three {margin-top: 0; padding-top: 0;}"
+          text run at (312,30) width 1: " "
+          text run at (0,45) width 336: "P.four {margin-top: -1cm; margin-bottom: 0;"
+          text run at (335,45) width 1: " "
+          text run at (0,60) width 336: "        padding-top: 0; padding-bottom: 0;}"
+          text run at (335,60) width 1: " "
+          text run at (0,75) width 359: "DIV.five {margin-top: 1cm; margin-bottom: 1cm;"
+          text run at (358,75) width 1: " "
+          text run at (0,90) width 367: "          padding-top: 1cm; padding-bottom: 0;}"
+          text run at (366,90) width 1: " "
+          text run at (0,105) width 336: "P.six {margin-top: 1cm; margin-bottom: 1cm;"
+          text run at (335,105) width 1: " "
+          text run at (0,120) width 328: "       padding-top: 0; padding-bottom: 0;}"
+          text run at (327,120) width 1: " "
+          text run at (0,135) width 328: "P.seven {margin-top: 1cm; padding-top: 0;}"
+          text run at (327,135) width 1: " "
+          text run at (0,150) width 398: "P.eight {margin-bottom: -1cm; padding-bottom: 2cm;}"
+          text run at (397,150) width 1: " "
+          text run at (0,165) width 336: "P.nine {margin-top: -1cm; padding-top: 1cm;"
+          text run at (335,165) width 1: " "
+          text run at (0,180) width 367: "        padding-bottom: 0; margin-bottom: 1cm;}"
+          text run at (366,180) width 1: " "
+          text run at (0,195) width 297: "P.ten {margin-top: 1cm;padding-top: 0;"
+          text run at (296,195) width 1: " "
+          text run at (0,210) width 242: "       float: left;width: 50%;}"
+          text run at (241,210) width 1: " "
+          text run at (0,225) width 437: "P.eleven {margin-top: 1cm; padding-top: 0; clear: none;}"
+          text run at (436,225) width 1: " "
+          text run at (0,240) width 484: "P.twelve {margin-bottom: 0; padding-bottom: 1cm; clear: both;}"
+          text run at (483,240) width 1: " "
+          text run at (0,255) width 352: "P.thirteen {margin-top: 0; padding-top: 1cm;}"
+          text run at (351,255) width 1: " "
+          text run at (0,270) width 157: "TABLE {clear: both;}"
+          text run at (156,270) width 1: " "
+          text run at (0,285) width 0: " "
+      LayoutBlockFlow {P} at (0,365) size 769x36
+        LayoutText {#text} at (0,0) size 769x36
+          text run at (0,0) width 769: "There should be a two-centimeter margin between this paragraph and the next, because adjacent vertical margins should"
+          text run at (0,18) width 262: "collapse to the maximum of the margins."
+      LayoutBlockFlow {P} at (0,476.58) size 769x18
+        LayoutText {#text} at (0,0) size 168x18
+          text run at (0,0) width 168: "This is another paragraph."
+      LayoutBlockFlow {P} at (0,510.58) size 769x18
+        LayoutText {#text} at (0,0) size 503x18
+          text run at (0,0) width 503: "There should be a two-centimeter margin between this paragraph and the next."
+      LayoutBlockFlow {P} at (0,604.16) size 769x18
+        LayoutText {#text} at (0,0) size 168x18
+          text run at (0,0) width 168: "This is another paragraph."
+      LayoutBlockFlow {P} at (0,638.16) size 769x36
+        LayoutText {#text} at (0,0) size 731x36
+          text run at (0,0) width 731: "There should be a one-centimeter margin between this paragraph and the next, because when there is one negative"
+          text run at (0,18) width 474: "margin, the two margins should be added (the minus sign should be kept)."
+      LayoutBlockFlow {P} at (0,711.95) size 769x18
+        LayoutText {#text} at (0,0) size 168x18
+          text run at (0,0) width 168: "This is another paragraph."
+      LayoutBlockFlow {DIV} at (0,767.73) size 769x129.56
+        LayoutBlockFlow {P} at (0,75.56) size 769x54
+          LayoutText {#text} at (0,0) size 750x54
+            text run at (0,0) width 750: "There should be three centimeters between this text and the text above, but only one centimeter between this text and"
+            text run at (0,18) width 718: "the text below, because vertical margins of nested elements should collapse only if there is no border or padding"
+            text run at (0,36) width 137: "between the margins."
+      LayoutBlockFlow {P} at (0,935.08) size 769x18
+        LayoutText {#text} at (0,0) size 112x18
+          text run at (0,0) width 112: "This is more text."
+      LayoutBlockFlow {P} at (0,969.08) size 769x111.58
+        LayoutText {#text} at (0,0) size 738x36
+          text run at (0,0) width 738: "There should be two centimeters between this paragraph and the one below, because negative margins collapse to a"
+          text run at (0,18) width 467: "negative margin with the largest absolute value of the margins collapsed."
+      LayoutBlockFlow {P} at (0,1042.88) size 769x73.78
+        LayoutText {#text} at (0,38) size 754x36
+          text run at (0,38) width 754: "This is a paragraph, which I should make very long so that you can easily see how much space there is between it and"
+          text run at (0,56) width 208: "the one below it and to the right."
+      LayoutBlockFlow (floating) {P} at (0,1192.22) size 384.50x54
+        LayoutText {#text} at (0,0) size 362x54
+          text run at (0,0) width 362: "There should be two centimeters between this paragraph"
+          text run at (0,18) width 346: "and the one above it, since margins do not collapse on"
+          text run at (0,36) width 114: "floating elements."
+      LayoutBlockFlow {P} at (0,1154.44) size 769x54
+        LayoutText {#text} at (384,0) size 382x54
+          text run at (384,0) width 382: "There should be one centimeter between this paragraph and"
+          text run at (384,18) width 364: "the (non-floating) one above it, since the float should not"
+          text run at (384,36) width 185: "effect the paragraph spacing."
+      LayoutBlockFlow {P} at (0,1262.22) size 769x73.78
+        LayoutText {#text} at (0,0) size 760x36
+          text run at (0,0) width 562: "There should be two centimeters of padding between this paragraph and the one below. "
+          text run at (561,0) width 199: "Padding does not collapse, and"
+          text run at (0,18) width 239: "there is 1cm of padding on each side."
+      LayoutBlockFlow {P} at (0,1336) size 769x55.78
+        LayoutText {#text} at (0,38) size 171x18
+          text run at (0,38) width 171: "This is the next paragraph."
+      LayoutTable {TABLE} at (0,1407.78) size 769x1063 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1061
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x1035
+            LayoutTableCell {TD} at (0,530) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x1034.78 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x36
+                LayoutText {#text} at (0,0) size 722x36
+                  text run at (0,0) width 722: "There should be a two-centimeter margin between this paragraph and the next, because adjacent vertical margins"
+                  text run at (0,18) width 309: "should collapse to the maximum of the margins."
+              LayoutBlockFlow {P} at (4,115.58) size 747x18
+                LayoutText {#text} at (0,0) size 168x18
+                  text run at (0,0) width 168: "This is another paragraph."
+              LayoutBlockFlow {P} at (4,149.58) size 747x18
+                LayoutText {#text} at (0,0) size 503x18
+                  text run at (0,0) width 503: "There should be a two-centimeter margin between this paragraph and the next."
+              LayoutBlockFlow {P} at (4,243.16) size 747x18
+                LayoutText {#text} at (0,0) size 168x18
+                  text run at (0,0) width 168: "This is another paragraph."
+              LayoutBlockFlow {P} at (4,277.16) size 747x36
+                LayoutText {#text} at (0,0) size 731x36
+                  text run at (0,0) width 731: "There should be a one-centimeter margin between this paragraph and the next, because when there is one negative"
+                  text run at (0,18) width 474: "margin, the two margins should be added (the minus sign should be kept)."
+              LayoutBlockFlow {P} at (4,350.95) size 747x18
+                LayoutText {#text} at (0,0) size 168x18
+                  text run at (0,0) width 168: "This is another paragraph."
+              LayoutBlockFlow {DIV} at (4,406.73) size 747x129.56
+                LayoutBlockFlow {P} at (0,75.56) size 747x54
+                  LayoutText {#text} at (0,0) size 745x54
+                    text run at (0,0) width 722: "There should be three centimeters between this text and the text above, but only one centimeter between this text"
+                    text run at (0,18) width 745: "and the text below, because vertical margins of nested elements should collapse only if there is no border or padding"
+                    text run at (0,36) width 137: "between the margins."
+              LayoutBlockFlow {P} at (4,574.08) size 747x18
+                LayoutText {#text} at (0,0) size 112x18
+                  text run at (0,0) width 112: "This is more text."
+              LayoutBlockFlow {P} at (4,608.08) size 747x111.58
+                LayoutText {#text} at (0,0) size 738x36
+                  text run at (0,0) width 738: "There should be two centimeters between this paragraph and the one below, because negative margins collapse to a"
+                  text run at (0,18) width 467: "negative margin with the largest absolute value of the margins collapsed."
+              LayoutBlockFlow {P} at (4,681.88) size 747x73.78
+                LayoutText {#text} at (0,38) size 727x36
+                  text run at (0,38) width 727: "This is a paragraph, which I should make very long so that you can easily see how much space there is between it"
+                  text run at (0,56) width 236: "and the one below it and to the right."
+              LayoutBlockFlow (floating) {P} at (4,831.22) size 373.50x54
+                LayoutText {#text} at (0,0) size 362x54
+                  text run at (0,0) width 362: "There should be two centimeters between this paragraph"
+                  text run at (0,18) width 346: "and the one above it, since margins do not collapse on"
+                  text run at (0,36) width 114: "floating elements."
+              LayoutBlockFlow {P} at (4,793.44) size 747x54
+                LayoutText {#text} at (373,0) size 366x54
+                  text run at (373,0) width 355: "There should be one centimeter between this paragraph"
+                  text run at (373,18) width 366: "and the (non-floating) one above it, since the float should"
+                  text run at (373,36) width 210: "not effect the paragraph spacing."
+              LayoutBlockFlow {P} at (4,901.22) size 747x73.78
+                LayoutText {#text} at (0,0) size 733x36
+                  text run at (0,0) width 562: "There should be two centimeters of padding between this paragraph and the one below. "
+                  text run at (561,0) width 172: "Padding does not collapse,"
+                  text run at (0,18) width 266: "and there is 1cm of padding on each side."
+              LayoutBlockFlow {P} at (4,975) size 747x55.78
+                LayoutText {#text} at (0,38) size 171x18
+                  text run at (0,38) width 171: "This is the next paragraph."
+layer at (8,355) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,347) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/anchor-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/anchor-expected.txt
new file mode 100644
index 0000000..f05bc76
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/anchor-expected.txt
@@ -0,0 +1,163 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 683
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x683 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x683
+    LayoutBlockFlow {BODY} at (8,8) size 769x667 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x90
+        LayoutText {#text} at (0,0) size 196x90
+          text run at (0,0) width 133: "A {color: green;}"
+          text run at (132,0) width 1: " "
+          text run at (0,15) width 180: "A:link {color: purple;}"
+          text run at (179,15) width 1: " "
+          text run at (0,30) width 188: "A:visited {color: lime;}"
+          text run at (187,30) width 1: " "
+          text run at (0,45) width 196: "A:active {color: maroon;}"
+          text run at (195,45) width 1: " "
+          text run at (0,60) width 172: "#one {color: #006600;}"
+          text run at (171,60) width 1: " "
+          text run at (0,75) width 0: " "
+      LayoutBlockFlow {P} at (0,155) size 769x18
+        LayoutText {#text} at (0,0) size 508x18
+          text run at (0,0) width 508: "The following anchors should appear as described; none of them should be red."
+      LayoutBlockFlow {UL} at (0,189) size 769x144
+        LayoutListItem {LI} at (40,0) size 729x108
+          LayoutBlockFlow (anonymous) at (0,0) size 729x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 583x18
+              text run at (0,0) width 583: "Purple unvisited, lime (light green) visited, maroon (dark red) while active (being clicked):"
+          LayoutBlockFlow {UL} at (0,18) size 729x90
+            LayoutListItem {LI} at (40,0) size 689x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutInline {A} at (0,0) size 110x18 [color=#800080]
+                LayoutText {#text} at (0,0) size 110x18
+                  text run at (0,0) width 110: "W3C Web server"
+              LayoutText {#text} at (0,0) size 0x0
+            LayoutListItem {LI} at (40,18) size 689x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutInline {A} at (0,0) size 112x18 [color=#800080]
+                LayoutText {#text} at (0,0) size 112x18
+                  text run at (0,0) width 112: "NIST Web server"
+              LayoutText {#text} at (0,0) size 0x0
+            LayoutListItem {LI} at (40,36) size 689x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutInline {A} at (0,0) size 125x18 [color=#800080]
+                LayoutText {#text} at (0,0) size 125x18
+                  text run at (0,0) width 125: "CWRU Web server"
+              LayoutText {#text} at (0,0) size 0x0
+            LayoutListItem {LI} at (40,54) size 689x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutInline {A} at (0,0) size 47x18 [color=#800080]
+                LayoutText {#text} at (0,0) size 47x18
+                  text run at (0,0) width 47: "Yahoo!"
+              LayoutText {#text} at (0,0) size 0x0
+            LayoutListItem {LI} at (40,72) size 689x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutInline {A} at (0,0) size 58x18 [color=#800080]
+                LayoutText {#text} at (0,0) size 58x18
+                  text run at (0,0) width 58: "Erewhon"
+              LayoutText {#text} at (57,0) size 225x18
+                text run at (57,0) width 225: " (don't click on it, it goes nowhere)"
+        LayoutListItem {LI} at (40,108) size 729x36
+          LayoutBlockFlow (anonymous) at (0,0) size 729x18
+            LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+            LayoutText {#text} at (0,0) size 208x18
+              text run at (0,0) width 208: "Dark green in any circumstance:"
+          LayoutBlockFlow {UL} at (0,18) size 729x18
+            LayoutListItem {LI} at (40,0) size 689x18
+              LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+              LayoutInline {A} at (0,0) size 125x18 [color=#006600]
+                LayoutText {#text} at (0,0) size 125x18
+                  text run at (0,0) width 125: "CWRU Web server"
+              LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,349) size 769x36
+        LayoutText {#text} at (0,0) size 120x18
+          text run at (0,0) width 120: "The quoted word \""
+        LayoutInline {A} at (0,0) size 45x18 [color=#008000]
+          LayoutText {#text} at (119,0) size 45x18
+            text run at (119,0) width 45: "anchor"
+        LayoutText {#text} at (163,0) size 739x36
+          text run at (163,0) width 381: "\" should be green, NOT purple, since it's part of an anchor. "
+          text run at (543,0) width 196: "It's a named anchor, and styles"
+          text run at (0,18) width 356: "declared for the A tag are applied to them under CSS1. "
+          text run at (355,18) width 330: "It also should NOT turn orange when clicked upon."
+      LayoutTable {TABLE} at (0,401) size 769x266 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x264
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x238
+            LayoutTableCell {TD} at (0,132) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x238 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18
+                LayoutText {#text} at (0,0) size 508x18
+                  text run at (0,0) width 508: "The following anchors should appear as described; none of them should be red."
+              LayoutBlockFlow {UL} at (4,38) size 747x144
+                LayoutListItem {LI} at (40,0) size 707x108
+                  LayoutBlockFlow (anonymous) at (0,0) size 707x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 583x18
+                      text run at (0,0) width 583: "Purple unvisited, lime (light green) visited, maroon (dark red) while active (being clicked):"
+                  LayoutBlockFlow {UL} at (0,18) size 707x90
+                    LayoutListItem {LI} at (40,0) size 667x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutInline {A} at (0,0) size 110x18 [color=#800080]
+                        LayoutText {#text} at (0,0) size 110x18
+                          text run at (0,0) width 110: "W3C Web server"
+                      LayoutText {#text} at (0,0) size 0x0
+                    LayoutListItem {LI} at (40,18) size 667x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutInline {A} at (0,0) size 112x18 [color=#800080]
+                        LayoutText {#text} at (0,0) size 112x18
+                          text run at (0,0) width 112: "NIST Web server"
+                      LayoutText {#text} at (0,0) size 0x0
+                    LayoutListItem {LI} at (40,36) size 667x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutInline {A} at (0,0) size 125x18 [color=#800080]
+                        LayoutText {#text} at (0,0) size 125x18
+                          text run at (0,0) width 125: "CWRU Web server"
+                      LayoutText {#text} at (0,0) size 0x0
+                    LayoutListItem {LI} at (40,54) size 667x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutInline {A} at (0,0) size 47x18 [color=#800080]
+                        LayoutText {#text} at (0,0) size 47x18
+                          text run at (0,0) width 47: "Yahoo!"
+                      LayoutText {#text} at (0,0) size 0x0
+                    LayoutListItem {LI} at (40,72) size 667x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutInline {A} at (0,0) size 58x18 [color=#800080]
+                        LayoutText {#text} at (0,0) size 58x18
+                          text run at (0,0) width 58: "Erewhon"
+                      LayoutText {#text} at (57,0) size 225x18
+                        text run at (57,0) width 225: " (don't click on it, it goes nowhere)"
+                LayoutListItem {LI} at (40,108) size 707x36
+                  LayoutBlockFlow (anonymous) at (0,0) size 707x18
+                    LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
+                    LayoutText {#text} at (0,0) size 208x18
+                      text run at (0,0) width 208: "Dark green in any circumstance:"
+                  LayoutBlockFlow {UL} at (0,18) size 707x18
+                    LayoutListItem {LI} at (40,0) size 667x18
+                      LayoutListMarker (anonymous) at (-17,0) size 7x18: white bullet
+                      LayoutInline {A} at (0,0) size 125x18 [color=#006600]
+                        LayoutText {#text} at (0,0) size 125x18
+                          text run at (0,0) width 125: "CWRU Web server"
+                      LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,198) size 747x36
+                LayoutText {#text} at (0,0) size 120x18
+                  text run at (0,0) width 120: "The quoted word \""
+                LayoutInline {A} at (0,0) size 45x18 [color=#008000]
+                  LayoutText {#text} at (119,0) size 45x18
+                    text run at (119,0) width 45: "anchor"
+                LayoutText {#text} at (163,0) size 739x36
+                  text run at (163,0) width 381: "\" should be green, NOT purple, since it's part of an anchor. "
+                  text run at (543,0) width 196: "It's a named anchor, and styles"
+                  text run at (0,18) width 356: "declared for the A tag are applied to them under CSS1. "
+                  text run at (355,18) width 330: "It also should NOT turn orange when clicked upon."
+layer at (8,145) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,137) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/firstletter-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/firstletter-expected.txt
new file mode 100644
index 0000000..a1c8a341
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/firstletter-expected.txt
@@ -0,0 +1,94 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 711
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x711 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x711
+    LayoutBlockFlow {BODY} at (8,8) size 769x695 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 10x18 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 10x18
+            text run at (0,0) width 10: "T"
+        LayoutTextFragment {#text} at (9,0) size 354x18
+          text run at (9,0) width 354: "he style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x60
+        LayoutText {#text} at (0,0) size 305x60
+          text run at (0,0) width 242: "P:first-letter {color: maroon;}"
+          text run at (241,0) width 1: " "
+          text run at (0,15) width 281: ".two:first-letter {font-size: 200%;}"
+          text run at (280,15) width 1: " "
+          text run at (0,30) width 305: "P.three:first-letter {font-size: 350%;}"
+          text run at (304,30) width 1: " "
+          text run at (0,45) width 0: " "
+      LayoutBlockFlow {P} at (0,125) size 769x54
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 10x18 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 10x18
+            text run at (0,0) width 10: "T"
+        LayoutTextFragment {#text} at (9,0) size 766x54
+          text run at (9,0) width 444: "he first letter of this paragraph, and only that one, should be maroon. "
+          text run at (452,0) width 304: "If this precise combination does not occur, then"
+          text run at (0,18) width 216: "the user agent has failed this test. "
+          text run at (215,18) width 551: "Remember that in order to ensure a complete test, the paragraph must be displayed on"
+          text run at (0,36) width 124: "more than one line."
+      LayoutBlockFlow {P} at (0,195) size 769x73
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 20x37 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 20x37
+            text run at (0,0) width 20: "T"
+        LayoutTextFragment {#text} at (19,15) size 751x58
+          text run at (19,15) width 625: "he first letter of this paragraph, and only that one, should be a larger font size, as well as maroon. "
+          text run at (643,15) width 88: "If this precise"
+          text run at (0,37) width 433: "combination does not occur, then the user agent has failed this test. "
+          text run at (432,37) width 319: "Remember that in order to ensure a complete test,"
+          text run at (0,55) width 355: "the paragraph must be displayed on more than one line."
+      LayoutBlockFlow {P} at (0,284) size 769x100
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 76x64 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 76x64
+            text run at (0,0) width 76: "\"W"
+        LayoutTextFragment {#text} at (75,36) size 754x64
+          text run at (75,36) width 325: "e should check for quotation support,\" it was said. "
+          text run at (399,36) width 338: "The first two characters in this paragraph-- a double-"
+          text run at (0,64) width 628: "quote mark and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon. "
+          text run at (627,64) width 127: "Note that this is not"
+          text run at (0,82) width 289: "required under CSS1, but it is recommended."
+      LayoutTable {TABLE} at (0,400) size 769x295 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x293
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x267
+            LayoutTableCell {TD} at (0,146) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x267 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x54
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 10x18 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,0) size 10x18
+                    text run at (0,0) width 10: "T"
+                LayoutTextFragment {#text} at (9,0) size 725x54
+                  text run at (9,0) width 444: "he first letter of this paragraph, and only that one, should be maroon. "
+                  text run at (452,0) width 273: "If this precise combination does not occur,"
+                  text run at (0,18) width 248: "then the user agent has failed this test. "
+                  text run at (247,18) width 465: "Remember that in order to ensure a complete test, the paragraph must be"
+                  text run at (0,36) width 209: "displayed on more than one line."
+              LayoutBlockFlow {P} at (4,74) size 747x73
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 20x37 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,0) size 20x37
+                    text run at (0,0) width 20: "T"
+                LayoutTextFragment {#text} at (19,15) size 731x58
+                  text run at (19,15) width 625: "he first letter of this paragraph, and only that one, should be a larger font size, as well as maroon. "
+                  text run at (643,15) width 88: "If this precise"
+                  text run at (0,37) width 433: "combination does not occur, then the user agent has failed this test. "
+                  text run at (432,37) width 289: "Remember that in order to ensure a complete"
+                  text run at (0,55) width 385: "test, the paragraph must be displayed on more than one line."
+              LayoutBlockFlow {P} at (4,163) size 747x100
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 76x64 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,0) size 76x64
+                    text run at (0,0) width 76: "\"W"
+                LayoutTextFragment {#text} at (75,36) size 737x64
+                  text run at (75,36) width 325: "e should check for quotation support,\" it was said. "
+                  text run at (399,36) width 338: "The first two characters in this paragraph-- a double-"
+                  text run at (0,64) width 628: "quote mark and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon. "
+                  text run at (627,64) width 102: "Note that this is"
+                  text run at (0,82) width 314: "not required under CSS1, but it is recommended."
+layer at (8,115) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/firstline-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/firstline-expected.txt
new file mode 100644
index 0000000..16c84f1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/firstline-expected.txt
@@ -0,0 +1,84 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 655
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x655 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x655
+    LayoutBlockFlow {BODY} at (8,8) size 769x639 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x60
+        LayoutText {#text} at (0,0) size 352x60
+          text run at (0,0) width 219: "P:first-line {color: green;}"
+          text run at (218,0) width 1: " "
+          text run at (0,15) width 266: ".two:first-line {font-size: 200%;}"
+          text run at (265,15) width 1: " "
+          text run at (0,30) width 352: ".three:first-line {font-variant: small-caps;}"
+          text run at (351,30) width 1: " "
+          text run at (0,45) width 0: " "
+      LayoutBlockFlow {P} at (0,125) size 769x54
+        LayoutText {#text} at (0,0) size 757x54
+          text run at (0,0) width 431: "The first line of this paragraph, and only that one, should be green. "
+          text run at (430,0) width 327: "If this precise combination does not occur, then the"
+          text run at (0,18) width 193: "user agent has failed this test. "
+          text run at (192,18) width 550: "Remember that in order to ensure a complete test, the paragraph must be displayed on"
+          text run at (0,36) width 124: "more than one line."
+      LayoutBlockFlow {P} at (0,195) size 769x73
+        LayoutText {#text} at (0,0) size 766x73
+          text run at (0,0) width 766: "The first line of this paragraph, and only that one, should be"
+          text run at (0,37) width 221: "a larger font size as well as green. "
+          text run at (220,37) width 520: "If this precise combination does not occur, then the user agent has failed this test."
+          text run at (0,55) width 678: "Remember that in order to ensure a complete test, the paragraph must be displayed on more than one line."
+      LayoutBlockFlow {P} at (0,284) size 769x72
+        LayoutText {#text} at (0,0) size 750x54
+          text run at (0,0) width 599: "The first line of this paragraph, and only that one, should be displayed in small-caps style. "
+          text run at (598,0) width 152: "Thus, if the first line is"
+          text run at (0,18) width 717: "not in small-caps style, OR if the entire paragraph turns out in small-caps, then the user agent has failed this test"
+          text run at (0,36) width 235: "(although the problem might be that "
+        LayoutInline {CODE} at (0,0) size 79x15
+          LayoutText {#text} at (234,38) size 79x15
+            text run at (234,38) width 79: "small-caps"
+        LayoutText {#text} at (312,36) size 754x36
+          text run at (312,36) width 230: " is not supported by your browser). "
+          text run at (541,36) width 213: "This is extra text included for the"
+          text run at (0,54) width 480: "purposes of making the paragraph long enough to have more than one line."
+      LayoutTable {TABLE} at (0,372) size 769x267 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x265
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x239
+            LayoutTableCell {TD} at (0,132) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x239 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x54
+                LayoutText {#text} at (0,0) size 746x54
+                  text run at (0,0) width 431: "The first line of this paragraph, and only that one, should be green. "
+                  text run at (430,0) width 304: "If this precise combination does not occur, then"
+                  text run at (0,18) width 216: "the user agent has failed this test. "
+                  text run at (215,18) width 531: "Remember that in order to ensure a complete test, the paragraph must be displayed"
+                  text run at (0,36) width 144: "on more than one line."
+              LayoutBlockFlow {P} at (4,74) size 747x73
+                LayoutText {#text} at (0,0) size 729x73
+                  text run at (0,0) width 727: "The first line of this paragraph, and only that one, should"
+                  text run at (0,37) width 240: "be a larger font size as well as green. "
+                  text run at (239,37) width 490: "If this precise combination does not occur, then the user agent has failed this"
+                  text run at (0,55) width 31: "test. "
+                  text run at (30,55) width 678: "Remember that in order to ensure a complete test, the paragraph must be displayed on more than one line."
+              LayoutBlockFlow {P} at (4,163) size 747x72
+                LayoutText {#text} at (0,0) size 737x54
+                  text run at (0,0) width 599: "The first line of this paragraph, and only that one, should be displayed in small-caps style. "
+                  text run at (598,0) width 139: "Thus, if the first line"
+                  text run at (0,18) width 731: "is not in small-caps style, OR if the entire paragraph turns out in small-caps, then the user agent has failed this test"
+                  text run at (0,36) width 235: "(although the problem might be that "
+                LayoutInline {CODE} at (0,0) size 79x15
+                  LayoutText {#text} at (234,38) size 79x15
+                    text run at (234,38) width 79: "small-caps"
+                LayoutText {#text} at (312,36) size 730x36
+                  text run at (312,36) width 230: " is not supported by your browser). "
+                  text run at (541,36) width 189: "This is extra text included for"
+                  text run at (0,54) width 503: "the purposes of making the paragraph long enough to have more than one line."
+layer at (8,115) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/multiple_pseudo_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/multiple_pseudo_elements-expected.txt
new file mode 100644
index 0000000..6e070d9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/multiple_pseudo_elements-expected.txt
@@ -0,0 +1,106 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1030
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1030 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1030
+    LayoutBlockFlow {BODY} at (8,8) size 769x1014 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 10x18 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 10x18
+            text run at (0,0) width 10: "T"
+        LayoutTextFragment {#text} at (9,0) size 354x18
+          text run at (9,0) width 354: "he style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x105
+        LayoutText {#text} at (0,0) size 359x105
+          text run at (0,0) width 219: "P:first-line {color: green;}"
+          text run at (218,0) width 1: " "
+          text run at (0,15) width 242: "P:first-letter {color: maroon;}"
+          text run at (241,15) width 1: " "
+          text run at (0,30) width 266: ".two:first-line {font-size: 200%;}"
+          text run at (265,30) width 1: " "
+          text run at (0,45) width 281: ".two:first-letter {font-size: 350%;}"
+          text run at (280,45) width 1: " "
+          text run at (0,60) width 305: "P.three:first-letter {font-size: 350%;}"
+          text run at (304,60) width 1: " "
+          text run at (0,75) width 359: "P.three:first-line {font-variant: small-caps;}"
+          text run at (358,75) width 1: " "
+          text run at (0,90) width 0: " "
+      LayoutBlockFlow {P} at (0,170) size 769x54
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 10x18 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 10x18
+            text run at (0,0) width 10: "T"
+        LayoutTextFragment {#text} at (9,0) size 743x54
+          text run at (9,0) width 734: "he first letter of this paragraph, and only that one, should be maroon (dark red), while the entire first line should be"
+          text run at (0,18) width 44: "green. "
+          text run at (43,18) width 524: "If this precise combination does not occur, then the user agent has failed this test. "
+          text run at (566,18) width 170: "Remember that in order to"
+          text run at (0,36) width 505: "ensure a complete test, the paragraph must be displayed on more than one line."
+      LayoutBlockFlow {P} at (0,240) size 769x183
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 69x129 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 69x129
+            text run at (0,0) width 69: "T"
+        LayoutTextFragment {#text} at (68,72) size 766x111
+          text run at (68,72) width 633: "he first letter of this paragraph, and only that one,"
+          text run at (0,129) width 753: "should be 350% bigger than the rest of the first line of this paragraph and maroon (dark red), while the entire first line"
+          text run at (0,147) width 304: "should be 200% bigger than normal and green. "
+          text run at (303,147) width 463: "If this precise combination does not occur, then the user agent has failed"
+          text run at (0,165) width 58: "this test. "
+          text run at (57,165) width 678: "Remember that in order to ensure a complete test, the paragraph must be displayed on more than one line."
+      LayoutBlockFlow {P} at (0,439) size 769x118
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 76x64 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 76x64
+            text run at (0,0) width 76: "\"W"
+        LayoutTextFragment {#text} at (75,36) size 761x82
+          text run at (75,36) width 331: "e should check for quotation support,\" it was said. "
+          text run at (405,36) width 356: "The first two characters in this paragraph-- a double-"
+          text run at (0,64) width 696: "quote mark and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon (dark red). "
+          text run at (695,64) width 60: "Note that"
+          text run at (0,82) width 707: "the inclusion of both the quotation mark and the 'W' in the first-letter style is not required under CSS1, but it is"
+          text run at (0,100) width 99: "recommended. "
+          text run at (98,100) width 462: "In addition, the entire first line should be in a small-caps font and green."
+      LayoutTable {TABLE} at (0,573) size 769x441 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x439
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x413
+            LayoutTableCell {TD} at (0,219) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x413 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x54
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 10x18 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,0) size 10x18
+                    text run at (0,0) width 10: "T"
+                LayoutTextFragment {#text} at (9,0) size 743x54
+                  text run at (9,0) width 734: "he first letter of this paragraph, and only that one, should be maroon (dark red), while the entire first line should be"
+                  text run at (0,18) width 44: "green. "
+                  text run at (43,18) width 524: "If this precise combination does not occur, then the user agent has failed this test. "
+                  text run at (566,18) width 170: "Remember that in order to"
+                  text run at (0,36) width 505: "ensure a complete test, the paragraph must be displayed on more than one line."
+              LayoutBlockFlow {P} at (4,74) size 747x201
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 69x129 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,0) size 69x129
+                    text run at (0,0) width 69: "T"
+                LayoutTextFragment {#text} at (68,72) size 742x129
+                  text run at (68,72) width 633: "he first letter of this paragraph, and only that one,"
+                  text run at (0,129) width 725: "should be 350% bigger than the rest of the first line of this paragraph and maroon (dark red), while the entire first"
+                  text run at (0,147) width 332: "line should be 200% bigger than normal and green. "
+                  text run at (331,147) width 397: "If this precise combination does not occur, then the user agent"
+                  text run at (0,165) width 124: "has failed this test. "
+                  text run at (123,165) width 619: "Remember that in order to ensure a complete test, the paragraph must be displayed on more than"
+                  text run at (0,183) width 56: "one line."
+              LayoutBlockFlow {P} at (4,291) size 747x118
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 76x64 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,0) size 76x64
+                    text run at (0,0) width 76: "\"W"
+                LayoutTextFragment {#text} at (75,36) size 743x82
+                  text run at (75,36) width 331: "e should check for quotation support,\" it was said. "
+                  text run at (405,36) width 302: "The first two characters in this paragraph-- a"
+                  text run at (0,64) width 741: "double-quote mark and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon (dark red)."
+                  text run at (0,82) width 743: "Note that the inclusion of both the quotation mark and the 'W' in the first-letter style is not required under CSS1, but"
+                  text run at (0,100) width 127: "it is recommended. "
+                  text run at (126,100) width 461: "In addition, the entire first line should be in a small-caps font and green."
+layer at (8,160) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,152) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/pseudo_elements_in_selectors-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/pseudo_elements_in_selectors-expected.txt
new file mode 100644
index 0000000..304a115
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/pseudo/pseudo_elements_in_selectors-expected.txt
@@ -0,0 +1,78 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 385x18
+          text run at (0,0) width 385: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x60
+        LayoutText {#text} at (0,0) size 258x60
+          text run at (0,0) width 258: "P:first-line {font-weight: bold;}"
+          text run at (257,0) width 1: " "
+          text run at (0,15) width 250: "P.two:first-line {color: green;}"
+          text run at (249,15) width 1: " "
+          text run at (0,30) width 250: "P:first-line.three {color: red;}"
+          text run at (249,30) width 1: " "
+          text run at (0,45) width 0: " "
+      LayoutBlockFlow {P} at (0,125) size 784x36
+        LayoutText {#text} at (0,0) size 730x36
+          text run at (0,0) width 344: "The first line of this sentence should be boldfaced. "
+          text run at (343,0) width 387: "This test is included simply to establish a baseline for the"
+          text run at (0,18) width 655: "following tests, since if this test fails, then the rest of the tests on this page are expected to fail as well."
+      LayoutBlockFlow {P} at (0,177) size 784x36
+        LayoutText {#text} at (0,0) size 765x36
+          text run at (0,0) width 562: "The first line of this sentence should be boldfaced and green, thanks to its selector. "
+          text run at (561,0) width 204: "If this is not the case, then the"
+          text run at (0,18) width 578: "user agent may have failed to properly parse the selector, or it may simply not support the "
+        LayoutInline {TT} at (0,0) size 87x15
+          LayoutText {#text} at (577,20) size 87x15
+            text run at (577,20) width 87: ":first-line"
+        LayoutText {#text} at (663,18) size 110x18
+          text run at (663,18) width 110: " pseudo-element."
+      LayoutBlockFlow {P} at (0,229) size 784x72
+        LayoutText {#text} at (0,0) size 783x72
+          text run at (0,0) width 344: "The first line of this sentence should be boldfaced. "
+          text run at (343,0) width 422: "If it is red, then the user agent has violated the specification in"
+          text run at (0,18) width 440: "allowing pseudo-elements at a point other than the end of a selector. "
+          text run at (439,18) width 344: "If neither is the case, then the user agent has correctly"
+          text run at (0,36) width 766: "ignored the incorrect selector, but has suppressed other styles which are valid, and therefore must be considered to have"
+          text run at (0,54) width 91: "failed the test."
+      LayoutTable {TABLE} at (0,317) size 784x230 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x228
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x202
+            LayoutTableCell {TD} at (0,114) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x202 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x36
+                LayoutText {#text} at (0,0) size 730x36
+                  text run at (0,0) width 344: "The first line of this sentence should be boldfaced. "
+                  text run at (343,0) width 387: "This test is included simply to establish a baseline for the"
+                  text run at (0,18) width 655: "following tests, since if this test fails, then the rest of the tests on this page are expected to fail as well."
+              LayoutBlockFlow {P} at (4,56) size 762x54
+                LayoutText {#text} at (0,0) size 739x36
+                  text run at (0,0) width 562: "The first line of this sentence should be boldfaced and green, thanks to its selector. "
+                  text run at (561,0) width 178: "If this is not the case, then"
+                  text run at (0,18) width 602: "the user agent may have failed to properly parse the selector, or it may simply not support the "
+                LayoutInline {TT} at (0,0) size 87x15
+                  LayoutText {#text} at (601,20) size 87x15
+                    text run at (601,20) width 87: ":first-line"
+                LayoutText {#text} at (687,18) size 742x36
+                  text run at (687,18) width 55: " pseudo-"
+                  text run at (0,36) width 55: "element."
+              LayoutBlockFlow {P} at (4,126) size 762x72
+                LayoutText {#text} at (0,0) size 748x72
+                  text run at (0,0) width 344: "The first line of this sentence should be boldfaced. "
+                  text run at (343,0) width 405: "If it is red, then the user agent has violated the specification"
+                  text run at (0,18) width 456: "in allowing pseudo-elements at a point other than the end of a selector. "
+                  text run at (455,18) width 284: "If neither is the case, then the user agent has"
+                  text run at (0,36) width 703: "correctly ignored the incorrect selector, but has suppressed other styles which are valid, and therefore must be"
+                  text run at (0,54) width 215: "considered to have failed the test."
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/letter_spacing-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/letter_spacing-expected.txt
new file mode 100644
index 0000000..5c45e6b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/letter_spacing-expected.txt
@@ -0,0 +1,140 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1378
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1378 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1378
+    LayoutBlockFlow {BODY} at (8,8) size 769x1362 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x165
+        LayoutText {#text} at (0,0) size 258x165
+          text run at (0,0) width 227: ".one {letter-spacing: 0.3in;}"
+          text run at (226,0) width 1: " "
+          text run at (0,15) width 227: ".two {letter-spacing: 0.5cm;}"
+          text run at (226,15) width 1: " "
+          text run at (0,30) width 227: ".three {letter-spacing: 5mm;}"
+          text run at (226,30) width 1: " "
+          text run at (0,45) width 219: ".four {letter-spacing: 3pt;}"
+          text run at (218,45) width 1: " "
+          text run at (0,60) width 242: ".five {letter-spacing: 0.25pc;}"
+          text run at (241,60) width 1: " "
+          text run at (0,75) width 211: ".six {letter-spacing: 1em;}"
+          text run at (210,75) width 1: " "
+          text run at (0,90) width 227: ".seven {letter-spacing: 1ex;}"
+          text run at (226,90) width 1: " "
+          text run at (0,105) width 227: ".eight {letter-spacing: 5px;}"
+          text run at (226,105) width 1: " "
+          text run at (0,120) width 242: ".nine {letter-spacing: normal;}"
+          text run at (241,120) width 1: " "
+          text run at (0,135) width 219: ".ten {letter-spacing: 300%;}"
+          text run at (218,135) width 1: " "
+          text run at (0,150) width 258: ".eleven {letter-spacing: -0.1em;}"
+          text run at (257,150) width 1: " "
+      LayoutBlockFlow {P} at (0,230) size 769x72
+        LayoutText {#text} at (0,0) size 712x72
+          text run at (0,0) width 692: "This letters in this"
+          text run at (0,18) width 712: "sentence should have"
+          text run at (0,36) width 676: "extra space between"
+          text run at (0,54) width 180: "them."
+      LayoutBlockFlow {P} at (0,318) size 769x54
+        LayoutText {#text} at (0,0) size 723x54
+          text run at (0,0) width 723: "This letters in this sentence"
+          text run at (0,18) width 588: "should have extra space"
+          text run at (0,36) width 339: "between them."
+      LayoutBlockFlow {P} at (0,388) size 769x54
+        LayoutText {#text} at (0,0) size 723x54
+          text run at (0,0) width 723: "This letters in this sentence"
+          text run at (0,18) width 588: "should have extra space"
+          text run at (0,36) width 339: "between them."
+      LayoutBlockFlow {P} at (0,458) size 769x18
+        LayoutText {#text} at (0,0) size 696x18
+          text run at (0,0) width 696: "This letters in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,492) size 769x18
+        LayoutText {#text} at (0,0) size 696x18
+          text run at (0,0) width 696: "This letters in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,526) size 769x54
+        LayoutText {#text} at (0,0) size 706x54
+          text run at (0,0) width 639: "This letters in this sentence"
+          text run at (0,18) width 706: "should have extra space between"
+          text run at (0,36) width 116: "them."
+      LayoutBlockFlow {P} at (0,596) size 769x36
+        LayoutText {#text} at (0,0) size 712x36
+          text run at (0,0) width 712: "This letters in this sentence should have extra space"
+          text run at (0,18) width 187: "between them."
+      LayoutBlockFlow {P} at (0,648) size 769x36
+        LayoutText {#text} at (0,0) size 763x36
+          text run at (0,0) width 763: "This letters in this sentence should have extra space between them,"
+          text run at (0,18) width 440: "but the last few words in the sentence "
+        LayoutInline {SPAN} at (0,0) size 184x18
+          LayoutText {#text} at (439,18) size 184x18
+            text run at (439,18) width 184: "should show normal spacing"
+        LayoutText {#text} at (622,18) size 10x18
+          text run at (622,18) width 10: "."
+      LayoutBlockFlow {P} at (0,700) size 769x36
+        LayoutText {#text} at (0,0) size 746x36
+          text run at (0,0) width 746: "This letters in this sentence should have normal space between them, since percentage values are not allowed on this"
+          text run at (0,18) width 58: "property."
+      LayoutBlockFlow {P} at (0,752) size 769x18
+        LayoutText {#text} at (0,0) size 580x18
+          text run at (0,0) width 580: "This letters in this sentence should have reduced space between them, since negative values are allowed on this property."
+      LayoutTable {TABLE} at (0,786) size 769x576 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x574
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x548
+            LayoutTableCell {TD} at (0,287) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x548 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x72
+                LayoutText {#text} at (0,0) size 712x72
+                  text run at (0,0) width 692: "This letters in this"
+                  text run at (0,18) width 712: "sentence should have"
+                  text run at (0,36) width 676: "extra space between"
+                  text run at (0,54) width 180: "them."
+              LayoutBlockFlow {P} at (4,92) size 747x54
+                LayoutText {#text} at (0,0) size 723x54
+                  text run at (0,0) width 723: "This letters in this sentence"
+                  text run at (0,18) width 588: "should have extra space"
+                  text run at (0,36) width 339: "between them."
+              LayoutBlockFlow {P} at (4,162) size 747x54
+                LayoutText {#text} at (0,0) size 723x54
+                  text run at (0,0) width 723: "This letters in this sentence"
+                  text run at (0,18) width 588: "should have extra space"
+                  text run at (0,36) width 339: "between them."
+              LayoutBlockFlow {P} at (4,232) size 747x18
+                LayoutText {#text} at (0,0) size 696x18
+                  text run at (0,0) width 696: "This letters in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,266) size 747x18
+                LayoutText {#text} at (0,0) size 696x18
+                  text run at (0,0) width 696: "This letters in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,300) size 747x54
+                LayoutText {#text} at (0,0) size 706x54
+                  text run at (0,0) width 639: "This letters in this sentence"
+                  text run at (0,18) width 706: "should have extra space between"
+                  text run at (0,36) width 116: "them."
+              LayoutBlockFlow {P} at (4,370) size 747x36
+                LayoutText {#text} at (0,0) size 712x36
+                  text run at (0,0) width 712: "This letters in this sentence should have extra space"
+                  text run at (0,18) width 187: "between them."
+              LayoutBlockFlow {P} at (4,422) size 747x36
+                LayoutText {#text} at (0,0) size 693x36
+                  text run at (0,0) width 693: "This letters in this sentence should have extra space between"
+                  text run at (0,18) width 510: "them, but the last few words in the sentence "
+                LayoutInline {SPAN} at (0,0) size 183x18
+                  LayoutText {#text} at (509,18) size 183x18
+                    text run at (509,18) width 183: "should show normal spacing"
+                LayoutText {#text} at (692,18) size 9x18
+                  text run at (692,18) width 9: "."
+              LayoutBlockFlow {P} at (4,474) size 747x36
+                LayoutText {#text} at (0,0) size 746x36
+                  text run at (0,0) width 746: "This letters in this sentence should have normal space between them, since percentage values are not allowed on this"
+                  text run at (0,18) width 58: "property."
+              LayoutBlockFlow {P} at (4,526) size 747x18
+                LayoutText {#text} at (0,0) size 580x18
+                  text run at (0,0) width 580: "This letters in this sentence should have reduced space between them, since negative values are allowed on this property."
+layer at (8,220) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,212) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/line_height-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/line_height-expected.txt
new file mode 100644
index 0000000..c935cad9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/line_height-expected.txt
@@ -0,0 +1,182 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2619
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2619 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2619
+    LayoutBlockFlow {BODY} at (8,8) size 769x2603 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x210
+        LayoutText {#text} at (0,0) size 391x210
+          text run at (0,0) width 336: ".one {line-height: 0.5in; font-size: 12px;}"
+          text run at (335,0) width 1: " "
+          text run at (0,15) width 320: ".two {line-height: 2cm; font-size: 12px;}"
+          text run at (319,15) width 1: " "
+          text run at (0,30) width 344: ".three {line-height: 20mm; font-size: 12px;}"
+          text run at (343,30) width 1: " "
+          text run at (0,45) width 336: ".four {line-height: 24pt; font-size: 12px;}"
+          text run at (335,45) width 1: " "
+          text run at (0,60) width 328: ".five {line-height: 2pc; font-size: 12px;}"
+          text run at (327,60) width 1: " "
+          text run at (0,75) width 320: ".six {line-height: 2em; font-size: 12px;}"
+          text run at (319,75) width 1: " "
+          text run at (0,90) width 336: ".seven {line-height: 3ex; font-size: 12px;}"
+          text run at (335,90) width 1: " "
+          text run at (0,105) width 344: ".eight {line-height: 200%; font-size: 12px;}"
+          text run at (343,105) width 1: " "
+          text run at (0,120) width 313: ".nine {line-height: 2; font-size: 12px;}"
+          text run at (312,120) width 1: " "
+          text run at (0,135) width 328: ".ten {line-height: 50px; font-size: 12px;}"
+          text run at (327,135) width 1: " "
+          text run at (0,150) width 352: ".eleven {line-height: -1em; font-size: 12px;}"
+          text run at (351,150) width 1: " "
+          text run at (0,165) width 391: "TABLE .ten {line-height: normal; font-size: 12px;}"
+          text run at (390,165) width 1: " "
+          text run at (0,180) width 242: "DIV {background-color: silver;}"
+          text run at (241,180) width 1: " "
+          text run at (0,195) width 297: "SPAN.color {background-color: silver;}"
+          text run at (296,195) width 1: " "
+      LayoutBlockFlow {P} at (0,271) size 769x48
+        LayoutText {#text} at (0,17) size 519x14
+          text run at (0,17) width 519: "This sentence should have a line-height of half an inch, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,331) size 769x75
+        LayoutText {#text} at (0,30) size 538x14
+          text run at (0,30) width 538: "This sentence should have a line-height of two centimeters, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,418) size 769x75
+        LayoutText {#text} at (0,30) size 552x14
+          text run at (0,30) width 552: "This sentence should have a line-height of twenty millimeters, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,505) size 769x32
+        LayoutText {#text} at (0,9) size 551x14
+          text run at (0,9) width 551: "This sentence should have a line-height of twenty-four points, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,549) size 769x32
+        LayoutText {#text} at (0,9) size 508x14
+          text run at (0,9) width 508: "This sentence should have a line-height of two picas, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,593) size 769x24
+        LayoutText {#text} at (0,5) size 498x14
+          text run at (0,5) width 498: "This sentence should have a line-height of two em, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,629) size 769x16
+        LayoutText {#text} at (0,1) size 500x14
+          text run at (0,1) width 500: "This sentence should have a line-height of three ex, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,657) size 769x24
+        LayoutText {#text} at (0,5) size 550x14
+          text run at (0,5) width 550: "This sentence should have a line-height of twice the font size, which should cause extra spacing between the lines."
+      LayoutBlockFlow {DIV} at (0,693) size 769x168 [bgcolor=#C0C0C0]
+        LayoutBlockFlow (anonymous) at (0,0) size 769x24
+          LayoutText {#text} at (0,5) size 604x14
+            text run at (0,5) width 604: "This first part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+        LayoutBlockFlow {P} at (0,48) size 769x72
+          LayoutText {#text} at (0,-2) size 754x76
+            text run at (0,-2) width 742: "This sentence should have a line-height of twice the DIV's font size, or 28px;"
+            text run at (0,22) width 754: "this should not cause extra spacing between the lines, since the line-height and"
+            text run at (0,46) width 360: "font-size should have the same value."
+        LayoutBlockFlow (anonymous) at (0,144) size 769x24
+          LayoutText {#text} at (0,5) size 618x14
+            text run at (0,5) width 618: "This second part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,873) size 769x24
+        LayoutText {#text} at (0,5) size 550x14
+          text run at (0,5) width 550: "This sentence should have a line-height of twice the font size, which should cause extra spacing between the lines."
+      LayoutBlockFlow {DIV} at (0,909) size 769x240 [bgcolor=#C0C0C0]
+        LayoutBlockFlow (anonymous) at (0,0) size 769x24
+          LayoutText {#text} at (0,5) size 604x14
+            text run at (0,5) width 604: "This first part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+        LayoutBlockFlow {P} at (0,48) size 769x144
+          LayoutText {#text} at (0,10) size 742x124
+            text run at (0,10) width 742: "This sentence should have a line-height of twice the font size, which is 200%"
+            text run at (0,58) width 734: "normal thanks to an inline style; this should cause extra spacing between the"
+            text run at (0,106) width 647: "lines, as the font-size will be 28px and the line-height will be 56px."
+        LayoutBlockFlow (anonymous) at (0,216) size 769x24
+          LayoutText {#text} at (0,5) size 618x14
+            text run at (0,5) width 618: "This second part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,1161) size 769x100
+        LayoutText {#text} at (0,18) size 760x64
+          text run at (0,18) width 604: "This paragraph should have a line-height of 50 pixels in the first section, which should cause extra spacing between the lines. "
+          text run at (603,18) width 157: "In the second section (within the"
+          text run at (0,68) width 186: "table) its line-height should be normal."
+      LayoutBlockFlow {P} at (0,1273) size 769x14
+        LayoutText {#text} at (0,0) size 517x14
+          text run at (0,0) width 517: "This sentence should have a normal line-height, because negative values are not permitted for this property."
+      LayoutBlockFlow {P} at (0,1299) size 769x150
+        LayoutInline {SPAN} at (0,0) size 759x89 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,30) size 759x89
+            text run at (0,30) width 759: "This sentence should have a line-height of two centimeters, which should cause extra spacing between the lines. The text has a background color of silver, but"
+            text run at (0,105) width 693: "no padding or border. The background color has been set on an inline element and should therefore only cover the text, not the interline spacing."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutTable {TABLE} at (0,1461) size 769x1142 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1140
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x1114
+            LayoutTableCell {TD} at (0,570) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x1114 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x48
+                LayoutText {#text} at (0,17) size 519x14
+                  text run at (0,17) width 519: "This sentence should have a line-height of half an inch, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,64) size 747x75
+                LayoutText {#text} at (0,30) size 538x14
+                  text run at (0,30) width 538: "This sentence should have a line-height of two centimeters, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,151) size 747x75
+                LayoutText {#text} at (0,30) size 552x14
+                  text run at (0,30) width 552: "This sentence should have a line-height of twenty millimeters, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,238) size 747x32
+                LayoutText {#text} at (0,9) size 551x14
+                  text run at (0,9) width 551: "This sentence should have a line-height of twenty-four points, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,282) size 747x32
+                LayoutText {#text} at (0,9) size 508x14
+                  text run at (0,9) width 508: "This sentence should have a line-height of two picas, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,326) size 747x24
+                LayoutText {#text} at (0,5) size 498x14
+                  text run at (0,5) width 498: "This sentence should have a line-height of two em, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,362) size 747x16
+                LayoutText {#text} at (0,1) size 500x14
+                  text run at (0,1) width 500: "This sentence should have a line-height of three ex, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,390) size 747x24
+                LayoutText {#text} at (0,5) size 550x14
+                  text run at (0,5) width 550: "This sentence should have a line-height of twice the font size, which should cause extra spacing between the lines."
+              LayoutBlockFlow {DIV} at (4,426) size 747x168 [bgcolor=#C0C0C0]
+                LayoutBlockFlow (anonymous) at (0,0) size 747x24
+                  LayoutText {#text} at (0,5) size 604x14
+                    text run at (0,5) width 604: "This first part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+                LayoutBlockFlow {P} at (0,48) size 747x72
+                  LayoutText {#text} at (0,-2) size 742x76
+                    text run at (0,-2) width 742: "This sentence should have a line-height of twice the DIV's font size, or 28px;"
+                    text run at (0,22) width 714: "this should not cause extra spacing between the lines, since the line-height"
+                    text run at (0,46) width 401: "and font-size should have the same value."
+                LayoutBlockFlow (anonymous) at (0,144) size 747x24
+                  LayoutText {#text} at (0,5) size 618x14
+                    text run at (0,5) width 618: "This second part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,606) size 747x24
+                LayoutText {#text} at (0,5) size 550x14
+                  text run at (0,5) width 550: "This sentence should have a line-height of twice the font size, which should cause extra spacing between the lines."
+              LayoutBlockFlow {DIV} at (4,642) size 747x240 [bgcolor=#C0C0C0]
+                LayoutBlockFlow (anonymous) at (0,0) size 747x24
+                  LayoutText {#text} at (0,5) size 604x14
+                    text run at (0,5) width 604: "This first part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+                LayoutBlockFlow {P} at (0,48) size 747x144
+                  LayoutText {#text} at (0,10) size 742x124
+                    text run at (0,10) width 742: "This sentence should have a line-height of twice the font size, which is 200%"
+                    text run at (0,58) width 734: "normal thanks to an inline style; this should cause extra spacing between the"
+                    text run at (0,106) width 647: "lines, as the font-size will be 28px and the line-height will be 56px."
+                LayoutBlockFlow (anonymous) at (0,216) size 747x24
+                  LayoutText {#text} at (0,5) size 618x14
+                    text run at (0,5) width 618: "This second part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,894) size 747x28
+                LayoutText {#text} at (0,0) size 743x28
+                  text run at (0,0) width 604: "This paragraph should have a line-height of 50 pixels in the first section, which should cause extra spacing between the lines. "
+                  text run at (603,0) width 140: "In the second section (within"
+                  text run at (0,14) width 204: "the table) its line-height should be normal."
+              LayoutBlockFlow {P} at (4,934) size 747x14
+                LayoutText {#text} at (0,0) size 517x14
+                  text run at (0,0) width 517: "This sentence should have a normal line-height, because negative values are not permitted for this property."
+              LayoutBlockFlow {P} at (4,960) size 747x150
+                LayoutInline {SPAN} at (0,0) size 741x89 [bgcolor=#C0C0C0]
+                  LayoutText {#text} at (0,30) size 741x89
+                    text run at (0,30) width 741: "This sentence should have a line-height of two centimeters, which should cause extra spacing between the lines. The text has a background color of silver,"
+                    text run at (0,105) width 712: "but no padding or border. The background color has been set on an inline element and should therefore only cover the text, not the interline spacing."
+                LayoutText {#text} at (0,0) size 0x0
+layer at (8,265) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,257) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/text_align-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/text_align-expected.txt
new file mode 100644
index 0000000..a834fc8f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/text_align-expected.txt
@@ -0,0 +1,61 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x75
+        LayoutText {#text} at (0,0) size 219x75
+          text run at (0,0) width 188: ".one {text-align: left;}"
+          text run at (187,0) width 1: " "
+          text run at (0,15) width 196: ".two {text-align: right;}"
+          text run at (195,15) width 1: " "
+          text run at (0,30) width 219: ".three {text-align: center;}"
+          text run at (218,30) width 1: " "
+          text run at (0,45) width 219: ".four {text-align: justify;}"
+          text run at (218,45) width 1: " "
+          text run at (0,60) width 0: " "
+      LayoutBlockFlow {P} at (0,140) size 784x18
+        LayoutText {#text} at (0,0) size 240x18
+          text run at (0,0) width 240: "This sentence should be left-justified."
+      LayoutBlockFlow {P} at (0,174) size 784x18
+        LayoutText {#text} at (535,0) size 249x18
+          text run at (535,0) width 249: "This sentence should be right-justified."
+      LayoutBlockFlow {P} at (0,208) size 784x18
+        LayoutText {#text} at (284,0) size 216x18
+          text run at (284,0) width 216: "This sentence should be centered."
+      LayoutBlockFlow {P} at (0,242) size 784x54
+        LayoutText {#text} at (0,0) size 784x54
+          text run at (0,0) width 784: "This sentence should be fully justified, which means that the right and left margins of this paragraph should line up, no"
+          text run at (0,18) width 784: "matter how long the paragraph becomes; the exception, of course, is the last line, which should be left-justified in Western"
+          text run at (0,36) width 68: "languages."
+      LayoutTable {TABLE} at (0,312) size 784x192 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x190
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x164
+            LayoutTableCell {TD} at (0,95) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x164 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x18
+                LayoutText {#text} at (0,0) size 240x18
+                  text run at (0,0) width 240: "This sentence should be left-justified."
+              LayoutBlockFlow {P} at (4,38) size 762x18
+                LayoutText {#text} at (513,0) size 249x18
+                  text run at (513,0) width 249: "This sentence should be right-justified."
+              LayoutBlockFlow {P} at (4,72) size 762x18
+                LayoutText {#text} at (273,0) size 216x18
+                  text run at (273,0) width 216: "This sentence should be centered."
+              LayoutBlockFlow {P} at (4,106) size 762x54
+                LayoutText {#text} at (0,0) size 762x54
+                  text run at (0,0) width 762: "This sentence should be fully justified, which means that the right and left margins of this paragraph should line up, no"
+                  text run at (0,18) width 762: "matter how long the paragraph becomes; the exception, of course, is the last line, which should be left-justified in"
+                  text run at (0,36) width 124: "Western languages."
+layer at (8,130) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,122) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/text_decoration-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/text_decoration-expected.txt
new file mode 100644
index 0000000..2aa3124e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/text_decoration-expected.txt
@@ -0,0 +1,200 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1151
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1151 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1151
+    LayoutBlockFlow {BODY} at (8,8) size 769x1135 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x120
+        LayoutText {#text} at (0,0) size 453x120
+          text run at (0,0) width 266: ".one {text-decoration: underline;}"
+          text run at (265,0) width 1: " "
+          text run at (0,15) width 258: ".two {text-decoration: overline;}"
+          text run at (257,15) width 1: " "
+          text run at (0,30) width 305: ".three {text-decoration: line-through;}"
+          text run at (304,30) width 1: " "
+          text run at (0,45) width 242: ".four {text-decoration: blink;}"
+          text run at (241,45) width 1: " "
+          text run at (0,60) width 242: "B.five {text-decoration: none;}"
+          text run at (241,60) width 1: " "
+          text run at (0,75) width 336: ".six {text-decoration: underline overline;}"
+          text run at (335,75) width 1: " "
+          text run at (0,90) width 453: ".seven {text-decoration: underline overline line-through;}"
+          text run at (452,90) width 1: " "
+          text run at (0,105) width 0: " "
+      LayoutBlockFlow {P} at (0,185) size 769x18
+        LayoutText {#text} at (0,0) size 230x18
+          text run at (0,0) width 230: "This sentence should be underlined."
+      LayoutBlockFlow {P} at (0,219) size 769x18
+        LayoutText {#text} at (0,0) size 222x18
+          text run at (0,0) width 222: "This sentence should be overlined."
+      LayoutBlockFlow {P} at (0,253) size 769x18
+        LayoutText {#text} at (0,0) size 344x18
+          text run at (0,0) width 344: "This sentence should have stricken text (linethrough)."
+      LayoutBlockFlow {P} at (0,287) size 769x18
+        LayoutText {#text} at (0,0) size 602x18
+          text run at (0,0) width 215: "This element should be blinking. "
+          text run at (214,0) width 388: "(It is not required, however, that UAs support this behavior.)"
+      LayoutBlockFlow {P} at (0,321) size 769x36
+        LayoutText {#text} at (0,0) size 520x18
+          text run at (0,0) width 298: "The text in this element should be underlined. "
+          text run at (297,0) width 223: "The boldfaced text in this element "
+        LayoutInline {B} at (0,0) size 176x18
+          LayoutText {#text} at (519,0) size 176x18
+            text run at (519,0) width 176: "should also be underlined"
+        LayoutText {#text} at (694,0) size 746x36
+          text run at (694,0) width 9: ". "
+          text run at (702,0) width 44: "This is"
+          text run at (0,18) width 731: "because the parent's underline will 'span' the boldfaced text, even if the inline element has no underline of its own."
+      LayoutBlockFlow {P} at (0,373) size 769x18
+        LayoutText {#text} at (0,0) size 322x18
+          text run at (0,0) width 322: "This sentence should be underlined and overlined."
+      LayoutBlockFlow {P} at (0,407) size 769x18
+        LayoutText {#text} at (0,0) size 384x18
+          text run at (0,0) width 384: "This sentence should be underlined, overlined, and stricken."
+      LayoutBlockFlow {P} at (0,441) size 769x0
+      LayoutBlockFlow {P} at (0,441) size 769x36
+        LayoutText {#text} at (0,0) size 741x36
+          text run at (0,0) width 741: "There should be nothing visible between this sentence and the one above (there is an empty paragraph element with"
+          text run at (0,18) width 99: "class of seven)."
+      LayoutBlockFlow {P} at (0,493) size 769x55
+        LayoutText {#text} at (0,0) size 647x18
+          text run at (0,0) width 647: "Text decorations only apply to the text of an element, so the image at the end of this sentence should "
+        LayoutInline {EM} at (0,0) size 21x18
+          LayoutText {#text} at (646,0) size 21x18
+            text run at (646,0) width 21: "not"
+        LayoutText {#text} at (666,0) size 93x18
+          text run at (666,0) width 93: " be overlined: "
+        LayoutImage {IMG} at (0,18) size 15x15
+        LayoutText {#text} at (15,19) size 766x36
+          text run at (15,19) width 8: ". "
+          text run at (23,19) width 743: "The underline of the parent element should hold true beneath the image, however, since text-decoration 'spans' child"
+          text run at (0,37) width 61: "elements."
+      LayoutBlockFlow {P} at (0,564) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 107x18
+          text run at (0,0) width 107: "The underlining "
+        LayoutInline {SPAN} at (0,0) size 100x18 [color=#0000FF]
+          LayoutText {#text} at (106,0) size 100x18
+            text run at (106,0) width 100: "in this sentence"
+        LayoutText {#text} at (205,0) size 238x18
+          text run at (205,0) width 238: " should be green, no matter what the "
+        LayoutInline {SPAN} at (0,0) size 112x18 [color=#000000]
+          LayoutText {#text} at (442,0) size 112x18
+            text run at (442,0) width 112: "text color may be"
+        LayoutText {#text} at (553,0) size 5x18
+          text run at (553,0) width 5: "."
+      LayoutBlockFlow {P} at (0,598) size 769x36
+        LayoutText {#text} at (0,0) size 113x18
+          text run at (0,0) width 113: "The colors of the "
+        LayoutInline {SPAN} at (0,0) size 75x18 [color=#800080]
+          LayoutText {#text} at (112,0) size 75x18
+            text run at (112,0) width 75: "underlining"
+        LayoutText {#text} at (186,0) size 22x18
+          text run at (186,0) width 22: " in "
+        LayoutInline {SPAN} at (0,0) size 83x18 [color=#0000FF]
+          LayoutText {#text} at (207,0) size 83x18
+            text run at (207,0) width 83: "this sentence"
+        LayoutText {#text} at (289,0) size 70x18
+          text run at (289,0) width 70: " should be "
+        LayoutInline {SPAN} at (0,0) size 215x18 [color=#808080]
+          LayoutText {#text} at (359,0) size 215x18
+            text run at (359,0) width 215: "the same as that of the parent text"
+        LayoutText {#text} at (573,0) size 755x36
+          text run at (573,0) width 182: " (that is, the first word in the"
+          text run at (0,18) width 216: "sentence, which should be black)."
+      LayoutTable {TABLE} at (0,650) size 769x485 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x483
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x457
+            LayoutTableCell {TD} at (0,241) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x457 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18
+                LayoutText {#text} at (0,0) size 230x18
+                  text run at (0,0) width 230: "This sentence should be underlined."
+              LayoutBlockFlow {P} at (4,38) size 747x18
+                LayoutText {#text} at (0,0) size 222x18
+                  text run at (0,0) width 222: "This sentence should be overlined."
+              LayoutBlockFlow {P} at (4,72) size 747x18
+                LayoutText {#text} at (0,0) size 344x18
+                  text run at (0,0) width 344: "This sentence should have stricken text (linethrough)."
+              LayoutBlockFlow {P} at (4,106) size 747x18
+                LayoutText {#text} at (0,0) size 602x18
+                  text run at (0,0) width 215: "This element should be blinking. "
+                  text run at (214,0) width 388: "(It is not required, however, that UAs support this behavior.)"
+              LayoutBlockFlow {P} at (4,140) size 747x36
+                LayoutText {#text} at (0,0) size 520x18
+                  text run at (0,0) width 298: "The text in this element should be underlined. "
+                  text run at (297,0) width 223: "The boldfaced text in this element "
+                LayoutInline {B} at (0,0) size 176x18
+                  LayoutText {#text} at (519,0) size 176x18
+                    text run at (519,0) width 176: "should also be underlined"
+                LayoutText {#text} at (694,0) size 746x36
+                  text run at (694,0) width 9: ". "
+                  text run at (702,0) width 44: "This is"
+                  text run at (0,18) width 731: "because the parent's underline will 'span' the boldfaced text, even if the inline element has no underline of its own."
+              LayoutBlockFlow {P} at (4,192) size 747x18
+                LayoutText {#text} at (0,0) size 322x18
+                  text run at (0,0) width 322: "This sentence should be underlined and overlined."
+              LayoutBlockFlow {P} at (4,226) size 747x18
+                LayoutText {#text} at (0,0) size 384x18
+                  text run at (0,0) width 384: "This sentence should be underlined, overlined, and stricken."
+              LayoutBlockFlow {P} at (4,260) size 747x0
+              LayoutBlockFlow {P} at (4,260) size 747x36
+                LayoutText {#text} at (0,0) size 741x36
+                  text run at (0,0) width 741: "There should be nothing visible between this sentence and the one above (there is an empty paragraph element with"
+                  text run at (0,18) width 99: "class of seven)."
+              LayoutBlockFlow {P} at (4,312) size 747x55
+                LayoutText {#text} at (0,0) size 647x18
+                  text run at (0,0) width 647: "Text decorations only apply to the text of an element, so the image at the end of this sentence should "
+                LayoutInline {EM} at (0,0) size 21x18
+                  LayoutText {#text} at (646,0) size 21x18
+                    text run at (646,0) width 21: "not"
+                LayoutText {#text} at (666,0) size 686x37
+                  text run at (666,0) width 20: " be"
+                  text run at (0,19) width 69: "overlined: "
+                LayoutImage {IMG} at (68.86,18) size 15x15
+                LayoutText {#text} at (83,19) size 686x36
+                  text run at (83,19) width 9: ". "
+                  text run at (91,19) width 595: "The underline of the parent element should hold true beneath the image, however, since text-"
+                  text run at (0,37) width 214: "decoration 'spans' child elements."
+              LayoutBlockFlow {P} at (4,383) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 107x18
+                  text run at (0,0) width 107: "The underlining "
+                LayoutInline {SPAN} at (0,0) size 100x18 [color=#0000FF]
+                  LayoutText {#text} at (106,0) size 100x18
+                    text run at (106,0) width 100: "in this sentence"
+                LayoutText {#text} at (205,0) size 238x18
+                  text run at (205,0) width 238: " should be green, no matter what the "
+                LayoutInline {SPAN} at (0,0) size 112x18 [color=#000000]
+                  LayoutText {#text} at (442,0) size 112x18
+                    text run at (442,0) width 112: "text color may be"
+                LayoutText {#text} at (553,0) size 5x18
+                  text run at (553,0) width 5: "."
+              LayoutBlockFlow {P} at (4,417) size 747x36
+                LayoutText {#text} at (0,0) size 113x18
+                  text run at (0,0) width 113: "The colors of the "
+                LayoutInline {SPAN} at (0,0) size 75x18 [color=#800080]
+                  LayoutText {#text} at (112,0) size 75x18
+                    text run at (112,0) width 75: "underlining"
+                LayoutText {#text} at (186,0) size 22x18
+                  text run at (186,0) width 22: " in "
+                LayoutInline {SPAN} at (0,0) size 83x18 [color=#0000FF]
+                  LayoutText {#text} at (207,0) size 83x18
+                    text run at (207,0) width 83: "this sentence"
+                LayoutText {#text} at (289,0) size 70x18
+                  text run at (289,0) width 70: " should be "
+                LayoutInline {SPAN} at (0,0) size 215x18 [color=#808080]
+                  LayoutText {#text} at (359,0) size 215x18
+                    text run at (359,0) width 215: "the same as that of the parent text"
+                LayoutText {#text} at (573,0) size 732x36
+                  text run at (573,0) width 159: " (that is, the first word in"
+                  text run at (0,18) width 240: "the sentence, which should be black)."
+layer at (8,175) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,167) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/text_indent-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/text_indent-expected.txt
new file mode 100644
index 0000000..10b7a9e3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/text_indent-expected.txt
@@ -0,0 +1,137 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1246
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1246 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1246
+    LayoutBlockFlow {BODY} at (8,8) size 769x1230 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x165
+        LayoutText {#text} at (0,0) size 375x165
+          text run at (0,0) width 344: ".one {text-indent: 0.5in; background: aqua;}"
+          text run at (343,0) width 1: " "
+          text run at (0,15) width 328: ".two {text-indent: 2cm; background: aqua;}"
+          text run at (327,15) width 1: " "
+          text run at (0,30) width 352: ".three {text-indent: 20mm; background: aqua;}"
+          text run at (351,30) width 1: " "
+          text run at (0,45) width 344: ".four {text-indent: 24pt; background: aqua;}"
+          text run at (343,45) width 1: " "
+          text run at (0,60) width 336: ".five {text-indent: 2pc; background: aqua;}"
+          text run at (335,60) width 1: " "
+          text run at (0,75) width 328: ".six {text-indent: 2em; background: aqua;}"
+          text run at (327,75) width 1: " "
+          text run at (0,90) width 344: ".seven {text-indent: 2ex; background: aqua;}"
+          text run at (343,90) width 1: " "
+          text run at (0,105) width 344: ".eight {text-indent: 50%; background: aqua;}"
+          text run at (343,105) width 1: " "
+          text run at (0,120) width 344: ".nine {text-indent: 25px; background: aqua;}"
+          text run at (343,120) width 1: " "
+          text run at (0,135) width 375: "blockquote {text-indent: 50%; background: aqua;}"
+          text run at (374,135) width 1: " "
+          text run at (0,150) width 0: " "
+      LayoutBlockFlow {P} at (0,230) size 769x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (48,0) size 394x18
+          text run at (48,0) width 394: "The first line of this sentence should be indented half an inch."
+      LayoutBlockFlow {P} at (0,264) size 769x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (75,0) size 421x18
+          text run at (75,0) width 421: "The first line of this sentence should be indented two centimeters."
+      LayoutBlockFlow {P} at (0,298) size 769x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (75,0) size 440x18
+          text run at (75,0) width 440: "The first line of this sentence should be indented twenty millimeters."
+      LayoutBlockFlow {P} at (0,332) size 769x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (32,0) size 437x18
+          text run at (32,0) width 437: "The first line of this sentence should be indented twenty-four points."
+      LayoutBlockFlow {P} at (0,366) size 769x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (32,0) size 380x18
+          text run at (32,0) width 380: "The first line of this sentence should be indented two picas."
+      LayoutBlockFlow {P} at (0,400) size 769x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (32,0) size 366x18
+          text run at (32,0) width 366: "The first line of this sentence should be indented two em."
+      LayoutBlockFlow {P} at (0,434) size 769x18 [bgcolor=#00FFFF]
+        LayoutText {#text} at (14,0) size 362x18
+          text run at (14,0) width 362: "The first line of this sentence should be indented two ex."
+      LayoutBlockFlow {P} at (0,468) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (384,0) size 751x36
+          text run at (384,0) width 367: "The first line of this sentence should be indented halfway"
+          text run at (0,18) width 567: "across the page, but the rest of it should be flush with the normal left margin of the page."
+      LayoutBlockFlow {P} at (0,520) size 769x36 [bgcolor=#00FFFF]
+        LayoutText {#text} at (25,0) size 739x36
+          text run at (25,0) width 714: "The first line of this sentence should be indented 25 pixels, but the rest of it should be flush with the normal left"
+          text run at (0,18) width 125: "margin of the page."
+      LayoutBlockFlow {P} at (0,572) size 769x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (48,0) size 425x18
+          text run at (48,0) width 425: "Only the first line of this sentence should be indented half an inch,"
+        LayoutBR {BR} at (472,14) size 1x0
+        LayoutText {#text} at (0,18) size 266x18
+          text run at (0,18) width 266: "no matter where the lines might start, and"
+        LayoutBR {BR} at (265,32) size 1x0
+        LayoutInline {EM} at (0,0) size 201x18
+          LayoutText {#text} at (0,36) size 201x18
+            text run at (0,36) width 201: "regardless of any other markup"
+        LayoutText {#text} at (200,36) size 149x18
+          text run at (200,36) width 149: " which may be present."
+      LayoutBlockFlow {BLOCKQUOTE} at (40,642) size 689x54 [bgcolor=#00FFFF]
+        LayoutText {#text} at (384,0) size 651x54
+          text run at (384,0) width 228: "In the first half of the test page, this"
+          text run at (0,18) width 651: "BLOCKQUOTE element should have a text indent equal to 50% of the BODY element's width, since"
+          text run at (0,36) width 512: "BLOCKQUOTE is a child of BODY; in the second half, it is a child of TABLE."
+      LayoutTable {TABLE} at (0,712) size 769x518 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x516
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x490
+            LayoutTableCell {TD} at (0,258) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x490 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18 [bgcolor=#00FFFF]
+                LayoutText {#text} at (48,0) size 394x18
+                  text run at (48,0) width 394: "The first line of this sentence should be indented half an inch."
+              LayoutBlockFlow {P} at (4,38) size 747x18 [bgcolor=#00FFFF]
+                LayoutText {#text} at (75,0) size 421x18
+                  text run at (75,0) width 421: "The first line of this sentence should be indented two centimeters."
+              LayoutBlockFlow {P} at (4,72) size 747x18 [bgcolor=#00FFFF]
+                LayoutText {#text} at (75,0) size 440x18
+                  text run at (75,0) width 440: "The first line of this sentence should be indented twenty millimeters."
+              LayoutBlockFlow {P} at (4,106) size 747x18 [bgcolor=#00FFFF]
+                LayoutText {#text} at (32,0) size 437x18
+                  text run at (32,0) width 437: "The first line of this sentence should be indented twenty-four points."
+              LayoutBlockFlow {P} at (4,140) size 747x18 [bgcolor=#00FFFF]
+                LayoutText {#text} at (32,0) size 380x18
+                  text run at (32,0) width 380: "The first line of this sentence should be indented two picas."
+              LayoutBlockFlow {P} at (4,174) size 747x18 [bgcolor=#00FFFF]
+                LayoutText {#text} at (32,0) size 366x18
+                  text run at (32,0) width 366: "The first line of this sentence should be indented two em."
+              LayoutBlockFlow {P} at (4,208) size 747x18 [bgcolor=#00FFFF]
+                LayoutText {#text} at (14,0) size 362x18
+                  text run at (14,0) width 362: "The first line of this sentence should be indented two ex."
+              LayoutBlockFlow {P} at (4,242) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (373,0) size 740x36
+                  text run at (373,0) width 367: "The first line of this sentence should be indented halfway"
+                  text run at (0,18) width 567: "across the page, but the rest of it should be flush with the normal left margin of the page."
+              LayoutBlockFlow {P} at (4,294) size 747x36 [bgcolor=#00FFFF]
+                LayoutText {#text} at (25,0) size 739x36
+                  text run at (25,0) width 714: "The first line of this sentence should be indented 25 pixels, but the rest of it should be flush with the normal left"
+                  text run at (0,18) width 125: "margin of the page."
+              LayoutBlockFlow {P} at (4,346) size 747x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (48,0) size 425x18
+                  text run at (48,0) width 425: "Only the first line of this sentence should be indented half an inch,"
+                LayoutBR {BR} at (472,14) size 1x0
+                LayoutText {#text} at (0,18) size 266x18
+                  text run at (0,18) width 266: "no matter where the lines might start, and"
+                LayoutBR {BR} at (265,32) size 1x0
+                LayoutInline {EM} at (0,0) size 201x18
+                  LayoutText {#text} at (0,36) size 201x18
+                    text run at (0,36) width 201: "regardless of any other markup"
+                LayoutText {#text} at (200,36) size 149x18
+                  text run at (200,36) width 149: " which may be present."
+              LayoutBlockFlow {BLOCKQUOTE} at (44,416) size 667x54 [bgcolor=#00FFFF]
+                LayoutText {#text} at (373,0) size 651x54
+                  text run at (373,0) width 228: "In the first half of the test page, this"
+                  text run at (0,18) width 651: "BLOCKQUOTE element should have a text indent equal to 50% of the BODY element's width, since"
+                  text run at (0,36) width 512: "BLOCKQUOTE is a child of BODY; in the second half, it is a child of TABLE."
+layer at (8,220) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,212) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/text_transform-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/text_transform-expected.txt
new file mode 100644
index 0000000..66a45ea2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/text_transform-expected.txt
@@ -0,0 +1,107 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 732
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x732 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x732
+    LayoutBlockFlow {BODY} at (8,8) size 769x716 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x75
+        LayoutText {#text} at (0,0) size 266x75
+          text run at (0,0) width 219: ".ttn {text-transform: none;}"
+          text run at (218,0) width 1: " "
+          text run at (0,15) width 266: ".cap {text-transform: capitalize;}"
+          text run at (265,15) width 1: " "
+          text run at (0,30) width 258: ".upp {text-transform: uppercase;}"
+          text run at (257,30) width 1: " "
+          text run at (0,45) width 258: ".low {text-transform: lowercase;}"
+          text run at (257,45) width 1: " "
+          text run at (0,60) width 0: " "
+      LayoutBlockFlow {P} at (0,140) size 769x36
+        LayoutText {#text} at (0,0) size 732x36
+          text run at (0,0) width 732: "This page tests the 'text-transform' property of CSS1. This paragraph has no text transformation and should appear"
+          text run at (0,18) width 50: "normal."
+      LayoutBlockFlow {P} at (0,192) size 769x54
+        LayoutText {#text} at (0,0) size 758x54
+          text run at (0,0) width 758: "This Paragraph Is Capitalized And The First Letter In Each Word Should Therefore Appear In Uppercase. Words That"
+          text run at (0,18) width 727: "Are In Uppercase In The Source (E.G. USA) Should Remain So. There Should Be A Capital Letter After A Non-"
+          text run at (0,36) width 544: "Breaking Space (&Nbsp;). Both Those Characters Appear In The Previous Sentence."
+      LayoutBlockFlow {P} at (0,262) size 769x36
+        LayoutText {#text} at (0,0) size 743x36
+          text run at (0,0) width 743: "Words with inline elements inside them should only capitalize the first letter of the word. Therefore, the last word in"
+          text run at (0,18) width 336: "this sentence should have one, and only one, capital "
+        LayoutInline {SPAN} at (0,0) size 39x18
+          LayoutText {#text} at (335,18) size 18x18
+            text run at (335,18) width 18: "Le"
+          LayoutInline {SPAN} at (0,0) size 10x18
+            LayoutText {#text} at (352,18) size 10x18
+              text run at (352,18) width 10: "tt"
+          LayoutText {#text} at (361,18) size 13x18
+            text run at (361,18) width 13: "er"
+        LayoutText {#text} at (373,18) size 5x18
+          text run at (373,18) width 5: "."
+      LayoutBlockFlow {P} at (0,314) size 769x54
+        LayoutText {#text} at (0,0) size 704x36
+          text run at (0,0) width 704: "THIS PARAGRAPH IS UPPERCASED AND SMALL CHARACTERS IN THE SOURCE (E.G. A AND \x{C5})"
+          text run at (0,18) width 351: "SHOULD THEREFORE APPEAR IN UPPERCASE. "
+          text run at (350,18) width 278: "IN THE LAST SENTENCE, HOWEVER, "
+        LayoutInline {SPAN} at (0,0) size 753x36
+          LayoutText {#text} at (628,18) size 753x36
+            text run at (628,18) width 125: "the last eight words"
+            text run at (0,36) width 155: "should not be uppercase"
+        LayoutText {#text} at (154,36) size 5x18
+          text run at (154,36) width 5: "."
+      LayoutBlockFlow {P} at (0,384) size 769x18
+        LayoutText {#text} at (0,0) size 741x18
+          text run at (0,0) width 741: "this paragraph is lowercased and capital characters in the source (e.g. a and \x{E5}) should therefore appear in lowercase."
+      LayoutTable {TABLE} at (0,418) size 769x298 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x296
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x270
+            LayoutTableCell {TD} at (0,148) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x270 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x36
+                LayoutText {#text} at (0,0) size 732x36
+                  text run at (0,0) width 732: "This page tests the 'text-transform' property of CSS1. This paragraph has no text transformation and should appear"
+                  text run at (0,18) width 50: "normal."
+              LayoutBlockFlow {P} at (4,56) size 747x54
+                LayoutText {#text} at (0,0) size 724x54
+                  text run at (0,0) width 724: "This Paragraph Is Capitalized And The First Letter In Each Word Should Therefore Appear In Uppercase. Words"
+                  text run at (0,18) width 723: "That Are In Uppercase In The Source (E.G. USA) Should Remain So. There Should Be A Capital Letter After A"
+                  text run at (0,36) width 577: "Non-Breaking Space (&Nbsp;). Both Those Characters Appear In The Previous Sentence."
+              LayoutBlockFlow {P} at (4,126) size 747x36
+                LayoutText {#text} at (0,0) size 743x36
+                  text run at (0,0) width 743: "Words with inline elements inside them should only capitalize the first letter of the word. Therefore, the last word in"
+                  text run at (0,18) width 336: "this sentence should have one, and only one, capital "
+                LayoutInline {SPAN} at (0,0) size 39x18
+                  LayoutText {#text} at (335,18) size 18x18
+                    text run at (335,18) width 18: "Le"
+                  LayoutInline {SPAN} at (0,0) size 10x18
+                    LayoutText {#text} at (352,18) size 10x18
+                      text run at (352,18) width 10: "tt"
+                  LayoutText {#text} at (361,18) size 13x18
+                    text run at (361,18) width 13: "er"
+                LayoutText {#text} at (373,18) size 5x18
+                  text run at (373,18) width 5: "."
+              LayoutBlockFlow {P} at (4,178) size 747x54
+                LayoutText {#text} at (0,0) size 704x36
+                  text run at (0,0) width 704: "THIS PARAGRAPH IS UPPERCASED AND SMALL CHARACTERS IN THE SOURCE (E.G. A AND \x{C5})"
+                  text run at (0,18) width 351: "SHOULD THEREFORE APPEAR IN UPPERCASE. "
+                  text run at (350,18) width 278: "IN THE LAST SENTENCE, HOWEVER, "
+                LayoutInline {SPAN} at (0,0) size 710x36
+                  LayoutText {#text} at (628,18) size 710x36
+                    text run at (628,18) width 82: "the last eight"
+                    text run at (0,36) width 198: "words should not be uppercase"
+                LayoutText {#text} at (197,36) size 5x18
+                  text run at (197,36) width 5: "."
+              LayoutBlockFlow {P} at (4,248) size 747x18
+                LayoutText {#text} at (0,0) size 741x18
+                  text run at (0,0) width 741: "this paragraph is lowercased and capital characters in the source (e.g. a and \x{E5}) should therefore appear in lowercase."
+layer at (8,130) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,122) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/vertical_align-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/vertical_align-expected.txt
new file mode 100644
index 0000000..21e4a624
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/vertical_align-expected.txt
@@ -0,0 +1,723 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 4423
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x4423 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x4423.31
+    LayoutBlockFlow {BODY} at (8,8) size 769x4407.31 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x270
+        LayoutText {#text} at (0,0) size 500x270
+          text run at (0,0) width 157: "P {font-size: 12pt;}"
+          text run at (156,0) width 1: " "
+          text run at (0,15) width 211: ".one {vertical-align: sub;}"
+          text run at (210,15) width 1: " "
+          text run at (0,30) width 227: ".two {vertical-align: super;}"
+          text run at (226,30) width 1: " "
+          text run at (0,45) width 359: ".three {vertical-align: top; font-size: 12pt;}"
+          text run at (358,45) width 1: " "
+          text run at (0,60) width 391: ".four {vertical-align: text-top; font-size: 12pt;}"
+          text run at (390,60) width 1: " "
+          text run at (0,75) width 375: ".five {vertical-align: middle; font-size: 12pt;}"
+          text run at (374,75) width 1: " "
+          text run at (0,90) width 367: ".six {vertical-align: bottom; font-size: 12pt;}"
+          text run at (366,90) width 1: " "
+          text run at (0,105) width 422: ".seven {vertical-align: text-bottom; font-size: 12pt;}"
+          text run at (421,105) width 1: " "
+          text run at (0,120) width 398: ".eight {vertical-align: baseline; font-size: 12pt;}"
+          text run at (397,120) width 1: " "
+          text run at (0,135) width 500: ".nine {vertical-align: 50%; font-size: 12px; line-height: 16px;}"
+          text run at (499,135) width 1: " "
+          text run at (0,150) width 0: " "
+          text run at (0,165) width 219: "P.example {font-size: 14pt;}"
+          text run at (218,165) width 1: " "
+          text run at (0,180) width 172: "BIG {font-size: 16pt;}"
+          text run at (171,180) width 1: " "
+          text run at (0,195) width 188: "SMALL {font-size: 12pt;}"
+          text run at (187,195) width 1: " "
+          text run at (0,210) width 297: ".ttopalign {vertical-align: text-top;}"
+          text run at (296,210) width 1: " "
+          text run at (0,225) width 250: ".topalign {vertical-align: top;}"
+          text run at (249,225) width 1: " "
+          text run at (0,240) width 274: ".midalign {vertical-align: middle;}"
+          text run at (273,240) width 1: " "
+          text run at (0,255) width 0: " "
+      LayoutBlockFlow {P} at (0,335) size 769x76
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutInline {SPAN} at (0,0) size 128x18
+          LayoutText {#text} at (15,40) size 128x18
+            text run at (15,40) width 128: "The first four words"
+        LayoutText {#text} at (142,36) size 766x40
+          text run at (142,36) width 292: " in this sentence should be subscript-aligned. "
+          text run at (433,36) width 333: "The font size of the superscripted text should not be"
+          text run at (0,58) width 262: "different from that of the parent element."
+      LayoutBlockFlow {P} at (0,427) size 769x72
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutInline {SPAN} at (0,0) size 128x18
+          LayoutText {#text} at (15,30) size 128x18
+            text run at (15,30) width 128: "The first four words"
+        LayoutText {#text} at (142,36) size 766x36
+          text run at (142,36) width 304: " in this sentence should be superscript-aligned. "
+          text run at (445,36) width 321: "The font size of the subscripted text should not be"
+          text run at (0,54) width 262: "different from that of the parent element."
+      LayoutBlockFlow {P} at (0,515) size 769x72
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutInline {SPAN} at (0,0) size 128x18
+          LayoutText {#text} at (15,0) size 128x18
+            text run at (15,0) width 128: "The first four words"
+        LayoutText {#text} at (142,36) size 728x36
+          text run at (142,36) width 586: " in this sentence should be top-aligned, which will align their tops with the top of the tallest"
+          text run at (0,54) width 328: "element in the line (probably the orange rectangle)."
+      LayoutBlockFlow {P} at (0,603) size 769x132
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,36) size 4x18
+          text run at (15,36) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 755x111
+          LayoutText {#text} at (0,0) size 0x0
+          LayoutInline {SPAN} at (0,0) size 128x18
+            LayoutText {#text} at (19,21) size 128x18
+              text run at (19,21) width 128: "The first four words"
+          LayoutText {#text} at (146,21) size 755x111
+            text run at (146,21) width 558: " in this sentence should be text-top-aligned,"
+            text run at (0,58) width 755: "which should align their tops with the top of the tallest text"
+            text run at (0,95) width 136: "in the line."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,751) size 769x68
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,15) size 755x53
+          text run at (15,15) width 740: " The image at the beginning of this sentence should be middle-aligned, which should align its middle with the point"
+          text run at (0,50) width 317: "defined as the text baseline plus half the x-height."
+      LayoutBlockFlow {P} at (0,835) size 769x124
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,15) size 4x18
+          text run at (15,15) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 733x124
+          LayoutText {#text} at (0,0) size 0x0
+          LayoutInline {SPAN} at (0,0) size 128x18
+            LayoutText {#text} at (19,32) size 128x18
+              text run at (19,32) width 128: "The first four words"
+          LayoutText {#text} at (146,0) size 733x124
+            text run at (146,0) width 548: " in this sentence should be 12pt in size and"
+            text run at (0,50) width 733: "bottom-aligned, which should align their bottom with the"
+            text run at (0,87) width 518: "bottom of the lowest element in the line."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,975) size 769x161
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,15) size 4x18
+          text run at (15,15) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 751x161
+          LayoutText {#text} at (0,0) size 0x0
+          LayoutInline {SPAN} at (0,0) size 297x18
+            LayoutText {#text} at (19,19) size 297x18
+              text run at (19,19) width 297: "The first eight words (\"eight\" has a descender)"
+          LayoutText {#text} at (315,0) size 751x161
+            text run at (315,0) width 436: " in this sentence should be 12pt in"
+            text run at (0,50) width 693: "size and text-bottom-aligned, which should align their"
+            text run at (0,87) width 671: "bottom with the bottom of the lowest text (including"
+            text run at (0,124) width 295: "descenders) in the line."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,1152) size 769x132
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,36) size 4x18
+          text run at (15,36) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 761x111
+          LayoutText {#text} at (0,0) size 0x0
+          LayoutInline {SPAN} at (0,0) size 128x18
+            LayoutText {#text} at (19,36) size 128x18
+              text run at (19,36) width 128: "The first four words"
+          LayoutText {#text} at (146,21) size 761x111
+            text run at (146,21) width 548: " in this sentence should be 12pt in size and"
+            text run at (0,58) width 761: "baseline-aligned, which should align their baseline with the"
+            text run at (0,95) width 523: "baseline of the rest of the text in the line."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,1300) size 769x72
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutInline {SPAN} at (0,0) size 96x14
+          LayoutText {#text} at (15,31) size 96x14
+            text run at (15,31) width 96: "The first four words"
+        LayoutText {#text} at (110,36) size 763x36
+          text run at (110,36) width 653: " in this sentence should have a font-size of 12px and a line-height of 16px; they are also 50%-aligned,"
+          text run at (0,54) width 385: "which should raise them 8px relative to the natural baseline."
+      LayoutBlockFlow {P} at (0,1388) size 769x36
+        LayoutText {#text} at (0,0) size 759x36
+          text run at (0,0) width 759: "In the following paragraph, all images should be aligned with the top of the 14-point text, which is identical to the first"
+          text run at (0,18) width 676: "section of text, whereas any size text should be aligned with the text baseline (which is the default value)."
+      LayoutBlockFlow {P} at (0,1442.66) size 769x324
+        LayoutText {#text} at (0,25) size 118x22
+          text run at (0,25) width 118: "This paragraph "
+        LayoutImage {IMG} at (117.09,25) size 9x30
+        LayoutText {#text} at (126,25) size 5x22
+          text run at (126,25) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 416x54
+          LayoutText {#text} at (130,0) size 416x54
+            text run at (130,0) width 416: "contains many images"
+        LayoutText {#text} at (545,25) size 6x22
+          text run at (545,25) width 6: " "
+        LayoutImage {IMG} at (550.05,25) size 15x50
+        LayoutText {#text} at (565,25) size 5x22
+          text run at (565,25) width 5: " "
+        LayoutInline {BIG} at (0,0) size 156x24
+          LayoutText {#text} at (569,23) size 156x24
+            text run at (569,23) width 156: "of varying heights"
+        LayoutText {#text} at (724,25) size 6x22
+          text run at (724,25) width 6: " "
+        LayoutImage {IMG} at (729.56,25) size 3x10
+        LayoutText {#text} at (732,25) size 6x22
+          text run at (732,25) width 6: " "
+        LayoutInline {SMALL} at (0,0) size 761x115
+          LayoutText {#text} at (737,28) size 761x115
+            text run at (737,28) width 24: "and"
+            text run at (0,125) width 43: "widths"
+        LayoutText {#text} at (42,122) size 6x22
+          text run at (42,122) width 6: " "
+        LayoutImage {IMG} at (47.33,122) size 6x20
+        LayoutText {#text} at (53,122) size 99x22
+          text run at (53,122) width 99: " all of which "
+        LayoutImage {IMG} at (151.78,122) size 19.50x65
+        LayoutText {#text} at (171,122) size 5x22
+          text run at (171,122) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 265x43
+          LayoutText {#text} at (175,105) size 265x43
+            text run at (175,105) width 265: "should be aligned"
+        LayoutText {#text} at (439,122) size 5x22
+          text run at (439,122) width 5: " "
+        LayoutImage {IMG} at (443.92,122) size 10.50x35
+        LayoutText {#text} at (454,122) size 120x22
+          text run at (454,122) width 120: " with the top of "
+        LayoutImage {IMG} at (573.09,122) size 9x30
+        LayoutText {#text} at (582,122) size 5x22
+          text run at (582,122) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 700x144
+          LayoutText {#text} at (586,114) size 21x32
+            text run at (586,114) width 21: "a "
+          LayoutInline {SPAN} at (0,0) size 700x194
+            LayoutText {#text} at (606,75) size 700x194
+              text run at (606,75) width 94: "14-"
+              text run at (0,187) width 144: "point"
+          LayoutText {#text} at (143,226) size 146x32
+            text run at (143,226) width 146: " text element"
+        LayoutText {#text} at (288,234) size 6x22
+          text run at (288,234) width 6: " "
+        LayoutImage {IMG} at (293.14,234) size 15x50
+        LayoutText {#text} at (308,234) size 5x22
+          text run at (308,234) width 5: " "
+        LayoutInline {SMALL} at (0,0) size 195x18
+          LayoutText {#text} at (312,237) size 195x18
+            text run at (312,237) width 195: "regardless of the line in which"
+        LayoutText {#text} at (506,234) size 5x22
+          text run at (506,234) width 5: " "
+        LayoutImage {IMG} at (510.72,234) size 4.50x15
+        LayoutText {#text} at (515,234) size 5x22
+          text run at (515,234) width 5: " "
+        LayoutInline {BIG} at (0,0) size 160x24
+          LayoutText {#text} at (519,232) size 160x24
+            text run at (519,232) width 160: "the images appear."
+        LayoutText {#text} at (678,234) size 5x22
+          text run at (678,234) width 5: " "
+        LayoutImage {IMG} at (682.67,234) size 27x90
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,1785.31) size 769x36
+        LayoutText {#text} at (0,0) size 765x36
+          text run at (0,0) width 765: "In the following paragraph, all images should be aligned with the middle of the default text, whereas any text should be"
+          text run at (0,18) width 371: "aligned with the text baseline (which is the default value)."
+      LayoutBlockFlow {P} at (0,1837.31) size 769x230
+        LayoutText {#text} at (0,22) size 101x18
+          text run at (0,22) width 101: "This paragraph "
+        LayoutImage {IMG} at (100.41,17) size 9x30
+        LayoutText {#text} at (109,22) size 5x18
+          text run at (109,22) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 356x46
+          LayoutText {#text} at (113,0) size 356x46
+            text run at (113,0) width 356: "contains many images"
+        LayoutText {#text} at (468,22) size 5x18
+          text run at (468,22) width 5: " "
+        LayoutImage {IMG} at (472.88,7) size 15x50
+        LayoutText {#text} at (487,22) size 126x18
+          text run at (487,22) width 126: " of varying heights "
+        LayoutImage {IMG} at (612.30,27) size 3x10
+        LayoutText {#text} at (615,22) size 5x18
+          text run at (615,22) width 5: " "
+        LayoutInline {SMALL} at (0,0) size 71x18
+          LayoutText {#text} at (619,22) size 71x18
+            text run at (619,22) width 71: "and widths"
+        LayoutText {#text} at (689,22) size 5x18
+          text run at (689,22) width 5: " "
+        LayoutImage {IMG} at (693.06,22) size 6x20
+        LayoutText {#text} at (699,22) size 737x93
+          text run at (699,22) width 38: " all of"
+          text run at (0,97) width 44: "which "
+        LayoutImage {IMG} at (43.09,75) size 19.50x65
+        LayoutText {#text} at (62,97) size 122x18
+          text run at (62,97) width 122: " should be aligned "
+        LayoutImage {IMG} at (183.45,90) size 10.50x35
+        LayoutText {#text} at (193,97) size 5x18
+          text run at (193,97) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 237x37
+          LayoutText {#text} at (197,82) size 237x37
+            text run at (197,82) width 237: "with the middle of"
+        LayoutText {#text} at (433,97) size 5x18
+          text run at (433,97) width 5: " "
+        LayoutImage {IMG} at (437.47,82) size 15x50
+        LayoutText {#text} at (452,97) size 5x18
+          text run at (452,97) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 719x106
+          LayoutText {#text} at (456,89) size 18x28
+            text run at (456,89) width 18: "a "
+          LayoutInline {SPAN} at (0,0) size 204x69
+            LayoutText {#text} at (473,57) size 204x69
+              text run at (473,57) width 204: "14-point"
+          LayoutText {#text} at (676,89) size 719x106
+            text run at (676,89) width 43: " text"
+            text run at (0,167) width 76: "element"
+        LayoutText {#text} at (75,175) size 5x18
+          text run at (75,175) width 5: " "
+        LayoutImage {IMG} at (79.95,160) size 15x50
+        LayoutText {#text} at (94,175) size 5x18
+          text run at (94,175) width 5: " "
+        LayoutInline {SMALL} at (0,0) size 195x18
+          LayoutText {#text} at (98,175) size 195x18
+            text run at (98,175) width 195: "regardless of the line in which"
+        LayoutText {#text} at (292,175) size 5x18
+          text run at (292,175) width 5: " "
+        LayoutImage {IMG} at (296.22,178) size 4.50x15
+        LayoutText {#text} at (300,175) size 5x18
+          text run at (300,175) width 5: " "
+        LayoutInline {BIG} at (0,0) size 159x24
+          LayoutText {#text} at (304,170) size 159x24
+            text run at (304,170) width 159: "the images appear."
+        LayoutText {#text} at (462,175) size 5x18
+          text run at (462,175) width 5: " "
+        LayoutImage {IMG} at (466.86,140) size 27x90
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,2083.31) size 769x36
+        LayoutText {#text} at (0,0) size 750x36
+          text run at (0,0) width 750: "In the following paragraph, all elements should be aligned with the top of the tallest element on the line, whether that"
+          text run at (0,18) width 178: "element is an image or not. "
+          text run at (177,18) width 563: "Each fragment of text has been SPANned appropriately in order to cause this to happen."
+      LayoutBlockFlow {P} at (0,2135.31) size 769x201
+        LayoutInline {SPAN} at (0,0) size 97x18
+          LayoutText {#text} at (0,0) size 97x18
+            text run at (0,0) width 97: "This paragraph"
+        LayoutText {#text} at (96,0) size 5x18
+          text run at (96,0) width 5: " "
+        LayoutImage {IMG} at (100.41,0) size 3x10
+        LayoutText {#text} at (103,0) size 5x18
+          text run at (103,0) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 356x46
+          LayoutText {#text} at (107,0) size 356x46
+            text run at (107,0) width 356: "contains many images"
+        LayoutText {#text} at (462,0) size 5x18
+          text run at (462,0) width 5: " "
+        LayoutImage {IMG} at (466.88,0) size 3x10
+        LayoutText {#text} at (469,0) size 5x18
+          text run at (469,0) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 90x18
+          LayoutText {#text} at (473,0) size 90x18
+            text run at (473,0) width 90: "and some text"
+        LayoutText {#text} at (562,0) size 5x18
+          text run at (562,0) width 5: " "
+        LayoutImage {IMG} at (566.73,0) size 3x10
+        LayoutText {#text} at (569,0) size 5x18
+          text run at (569,0) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 118x18
+          LayoutText {#text} at (573,0) size 118x18
+            text run at (573,0) width 118: "of varying heights"
+        LayoutText {#text} at (690,0) size 5x18
+          text run at (690,0) width 5: " "
+        LayoutImage {IMG} at (694.16,0) size 3x10
+        LayoutText {#text} at (697,0) size 5x18
+          text run at (697,0) width 5: " "
+        LayoutInline {BIG} at (0,0) size 732x70
+          LayoutText {#text} at (701,0) size 732x70
+            text run at (701,0) width 31: "and"
+            text run at (0,46) width 57: "widths"
+        LayoutText {#text} at (56,46) size 5x18
+          text run at (56,46) width 5: " "
+        LayoutImage {IMG} at (60.88,46) size 6x20
+        LayoutText {#text} at (66,46) size 5x18
+          text run at (66,46) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 78x18
+          LayoutText {#text} at (70,46) size 78x18
+            text run at (70,46) width 78: "all of which"
+        LayoutText {#text} at (147,46) size 5x18
+          text run at (147,46) width 5: " "
+        LayoutImage {IMG} at (151.30,46) size 19.50x65
+        LayoutText {#text} at (170,46) size 5x18
+          text run at (170,46) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 114x18
+          LayoutText {#text} at (174,46) size 114x18
+            text run at (174,46) width 114: "should be aligned"
+        LayoutText {#text} at (287,46) size 5x18
+          text run at (287,46) width 5: " "
+        LayoutImage {IMG} at (291.66,46) size 10.50x35
+        LayoutText {#text} at (302,46) size 5x18
+          text run at (302,46) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 188x37
+          LayoutText {#text} at (306,46) size 188x37
+            text run at (306,46) width 188: "with the top of"
+        LayoutText {#text} at (493,46) size 5x18
+          text run at (493,46) width 5: " "
+        LayoutImage {IMG} at (497.69,46) size 15x50
+        LayoutText {#text} at (512,46) size 5x18
+          text run at (512,46) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 134x18
+          LayoutText {#text} at (516,46) size 134x18
+            text run at (516,46) width 134: "the tallest element in"
+        LayoutText {#text} at (649,46) size 5x18
+          text run at (649,46) width 5: " "
+        LayoutImage {IMG} at (653.53,46) size 4.50x15
+        LayoutText {#text} at (658,46) size 5x18
+          text run at (658,46) width 5: " "
+        LayoutInline {BIG} at (0,0) size 751x89
+          LayoutText {#text} at (662,46) size 751x89
+            text run at (662,46) width 89: "whichever"
+            text run at (0,111) width 211: "line the elements appear."
+        LayoutText {#text} at (210,111) size 5x18
+          text run at (210,111) width 5: " "
+        LayoutImage {IMG} at (214.84,111) size 27x90
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutTable {TABLE} at (0,2352.31) size 769x2055 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x2053
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x2027
+            LayoutTableCell {TD} at (0,1026) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x2027.31 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x76
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutInline {SPAN} at (0,0) size 128x18
+                  LayoutText {#text} at (15,40) size 128x18
+                    text run at (15,40) width 128: "The first four words"
+                LayoutText {#text} at (142,36) size 746x40
+                  text run at (142,36) width 292: " in this sentence should be subscript-aligned. "
+                  text run at (433,36) width 313: "The font size of the superscripted text should not"
+                  text run at (0,58) width 281: "be different from that of the parent element."
+              LayoutBlockFlow {P} at (4,96) size 747x72
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutInline {SPAN} at (0,0) size 128x18
+                  LayoutText {#text} at (15,30) size 128x18
+                    text run at (15,30) width 128: "The first four words"
+                LayoutText {#text} at (142,36) size 746x36
+                  text run at (142,36) width 304: " in this sentence should be superscript-aligned. "
+                  text run at (445,36) width 301: "The font size of the subscripted text should not"
+                  text run at (0,54) width 281: "be different from that of the parent element."
+              LayoutBlockFlow {P} at (4,184) size 747x72
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutInline {SPAN} at (0,0) size 128x18
+                  LayoutText {#text} at (15,0) size 128x18
+                    text run at (15,0) width 128: "The first four words"
+                LayoutText {#text} at (142,36) size 728x36
+                  text run at (142,36) width 586: " in this sentence should be top-aligned, which will align their tops with the top of the tallest"
+                  text run at (0,54) width 328: "element in the line (probably the orange rectangle)."
+              LayoutBlockFlow {P} at (4,272) size 747x132
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,36) size 4x18
+                  text run at (15,36) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 704x111
+                  LayoutText {#text} at (0,0) size 0x0
+                  LayoutInline {SPAN} at (0,0) size 128x18
+                    LayoutText {#text} at (19,21) size 128x18
+                      text run at (19,21) width 128: "The first four words"
+                  LayoutText {#text} at (146,21) size 704x111
+                    text run at (146,21) width 558: " in this sentence should be text-top-aligned,"
+                    text run at (0,58) width 699: "which should align their tops with the top of the tallest"
+                    text run at (0,95) width 192: "text in the line."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,420) size 747x68
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,15) size 718x53
+                  text run at (15,15) width 703: " The image at the beginning of this sentence should be middle-aligned, which should align its middle with the"
+                  text run at (0,50) width 354: "point defined as the text baseline plus half the x-height."
+              LayoutBlockFlow {P} at (4,504) size 747x124
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,15) size 4x18
+                  text run at (15,15) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 733x124
+                  LayoutText {#text} at (0,0) size 0x0
+                  LayoutInline {SPAN} at (0,0) size 128x18
+                    LayoutText {#text} at (19,32) size 128x18
+                      text run at (19,32) width 128: "The first four words"
+                  LayoutText {#text} at (146,0) size 733x124
+                    text run at (146,0) width 548: " in this sentence should be 12pt in size and"
+                    text run at (0,50) width 733: "bottom-aligned, which should align their bottom with the"
+                    text run at (0,87) width 518: "bottom of the lowest element in the line."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,644) size 747x161
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,15) size 4x18
+                  text run at (15,15) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 726x161
+                  LayoutText {#text} at (0,0) size 0x0
+                  LayoutInline {SPAN} at (0,0) size 297x18
+                    LayoutText {#text} at (19,19) size 297x18
+                      text run at (19,19) width 297: "The first eight words (\"eight\" has a descender)"
+                  LayoutText {#text} at (315,0) size 726x161
+                    text run at (315,0) width 403: " in this sentence should be 12pt"
+                    text run at (0,50) width 726: "in size and text-bottom-aligned, which should align their"
+                    text run at (0,87) width 671: "bottom with the bottom of the lowest text (including"
+                    text run at (0,124) width 295: "descenders) in the line."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,821) size 747x132
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,36) size 4x18
+                  text run at (15,36) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 714x111
+                  LayoutText {#text} at (0,0) size 0x0
+                  LayoutInline {SPAN} at (0,0) size 128x18
+                    LayoutText {#text} at (19,36) size 128x18
+                      text run at (19,36) width 128: "The first four words"
+                  LayoutText {#text} at (146,21) size 714x111
+                    text run at (146,21) width 548: " in this sentence should be 12pt in size and"
+                    text run at (0,58) width 714: "baseline-aligned, which should align their baseline with"
+                    text run at (0,95) width 570: "the baseline of the rest of the text in the line."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,969) size 747x72
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutInline {SPAN} at (0,0) size 96x14
+                  LayoutText {#text} at (15,31) size 96x14
+                    text run at (15,31) width 96: "The first four words"
+                LayoutText {#text} at (110,36) size 712x36
+                  text run at (110,36) width 602: " in this sentence should have a font-size of 12px and a line-height of 16px; they are also 50%-"
+                  text run at (0,54) width 440: "aligned, which should raise them 8px relative to the natural baseline."
+              LayoutBlockFlow {P} at (4,1057) size 747x36
+                LayoutText {#text} at (0,0) size 730x36
+                  text run at (0,0) width 730: "In the following paragraph, all images should be aligned with the top of the 14-point text, which is identical to the"
+                  text run at (0,18) width 705: "first section of text, whereas any size text should be aligned with the text baseline (which is the default value)."
+              LayoutBlockFlow {P} at (4,1111.66) size 747x324
+                LayoutText {#text} at (0,25) size 118x22
+                  text run at (0,25) width 118: "This paragraph "
+                LayoutImage {IMG} at (117.09,25) size 9x30
+                LayoutText {#text} at (126,25) size 5x22
+                  text run at (126,25) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 416x54
+                  LayoutText {#text} at (130,0) size 416x54
+                    text run at (130,0) width 416: "contains many images"
+                LayoutText {#text} at (545,25) size 6x22
+                  text run at (545,25) width 6: " "
+                LayoutImage {IMG} at (550.05,25) size 15x50
+                LayoutText {#text} at (565,25) size 5x22
+                  text run at (565,25) width 5: " "
+                LayoutInline {BIG} at (0,0) size 156x24
+                  LayoutText {#text} at (569,23) size 156x24
+                    text run at (569,23) width 156: "of varying heights"
+                LayoutText {#text} at (724,25) size 6x22
+                  text run at (724,25) width 6: " "
+                LayoutImage {IMG} at (729.56,25) size 3x10
+                LayoutText {#text} at (0,0) size 0x0
+                LayoutInline {SMALL} at (0,0) size 70x18
+                  LayoutText {#text} at (0,125) size 70x18
+                    text run at (0,125) width 70: "and widths"
+                LayoutText {#text} at (69,122) size 6x22
+                  text run at (69,122) width 6: " "
+                LayoutImage {IMG} at (74.42,122) size 6x20
+                LayoutText {#text} at (80,122) size 99x22
+                  text run at (80,122) width 99: " all of which "
+                LayoutImage {IMG} at (178.88,122) size 19.50x65
+                LayoutText {#text} at (198,122) size 6x22
+                  text run at (198,122) width 6: " "
+                LayoutInline {SPAN} at (0,0) size 264x43
+                  LayoutText {#text} at (203,105) size 264x43
+                    text run at (203,105) width 264: "should be aligned"
+                LayoutText {#text} at (466,122) size 6x22
+                  text run at (466,122) width 6: " "
+                LayoutImage {IMG} at (471.02,122) size 10.50x35
+                LayoutText {#text} at (481,122) size 120x22
+                  text run at (481,122) width 120: " with the top of "
+                LayoutImage {IMG} at (600.19,122) size 9x30
+                LayoutText {#text} at (609,122) size 5x22
+                  text run at (609,122) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 727x144
+                  LayoutText {#text} at (613,114) size 21x32
+                    text run at (613,114) width 21: "a "
+                  LayoutInline {SPAN} at (0,0) size 727x194
+                    LayoutText {#text} at (633,75) size 727x194
+                      text run at (633,75) width 94: "14-"
+                      text run at (0,187) width 144: "point"
+                  LayoutText {#text} at (143,226) size 146x32
+                    text run at (143,226) width 146: " text element"
+                LayoutText {#text} at (288,234) size 6x22
+                  text run at (288,234) width 6: " "
+                LayoutImage {IMG} at (293.14,234) size 15x50
+                LayoutText {#text} at (308,234) size 5x22
+                  text run at (308,234) width 5: " "
+                LayoutInline {SMALL} at (0,0) size 195x18
+                  LayoutText {#text} at (312,237) size 195x18
+                    text run at (312,237) width 195: "regardless of the line in which"
+                LayoutText {#text} at (506,234) size 5x22
+                  text run at (506,234) width 5: " "
+                LayoutImage {IMG} at (510.72,234) size 4.50x15
+                LayoutText {#text} at (515,234) size 5x22
+                  text run at (515,234) width 5: " "
+                LayoutInline {BIG} at (0,0) size 160x24
+                  LayoutText {#text} at (519,232) size 160x24
+                    text run at (519,232) width 160: "the images appear."
+                LayoutText {#text} at (678,234) size 5x22
+                  text run at (678,234) width 5: " "
+                LayoutImage {IMG} at (682.67,234) size 27x90
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,1454.31) size 747x36
+                LayoutText {#text} at (0,0) size 746x36
+                  text run at (0,0) width 746: "In the following paragraph, all images should be aligned with the middle of the default text, whereas any text should"
+                  text run at (0,18) width 390: "be aligned with the text baseline (which is the default value)."
+              LayoutBlockFlow {P} at (4,1506.31) size 747x230
+                LayoutText {#text} at (0,22) size 101x18
+                  text run at (0,22) width 101: "This paragraph "
+                LayoutImage {IMG} at (100.41,17) size 9x30
+                LayoutText {#text} at (109,22) size 5x18
+                  text run at (109,22) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 356x46
+                  LayoutText {#text} at (113,0) size 356x46
+                    text run at (113,0) width 356: "contains many images"
+                LayoutText {#text} at (468,22) size 5x18
+                  text run at (468,22) width 5: " "
+                LayoutImage {IMG} at (472.88,7) size 15x50
+                LayoutText {#text} at (487,22) size 126x18
+                  text run at (487,22) width 126: " of varying heights "
+                LayoutImage {IMG} at (612.30,27) size 3x10
+                LayoutText {#text} at (615,22) size 5x18
+                  text run at (615,22) width 5: " "
+                LayoutInline {SMALL} at (0,0) size 71x18
+                  LayoutText {#text} at (619,22) size 71x18
+                    text run at (619,22) width 71: "and widths"
+                LayoutText {#text} at (689,22) size 5x18
+                  text run at (689,22) width 5: " "
+                LayoutImage {IMG} at (693.06,22) size 6x20
+                LayoutText {#text} at (699,22) size 737x93
+                  text run at (699,22) width 38: " all of"
+                  text run at (0,97) width 44: "which "
+                LayoutImage {IMG} at (43.09,75) size 19.50x65
+                LayoutText {#text} at (62,97) size 122x18
+                  text run at (62,97) width 122: " should be aligned "
+                LayoutImage {IMG} at (183.45,90) size 10.50x35
+                LayoutText {#text} at (193,97) size 5x18
+                  text run at (193,97) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 237x37
+                  LayoutText {#text} at (197,82) size 237x37
+                    text run at (197,82) width 237: "with the middle of"
+                LayoutText {#text} at (433,97) size 5x18
+                  text run at (433,97) width 5: " "
+                LayoutImage {IMG} at (437.47,82) size 15x50
+                LayoutText {#text} at (452,97) size 5x18
+                  text run at (452,97) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 719x106
+                  LayoutText {#text} at (456,89) size 18x28
+                    text run at (456,89) width 18: "a "
+                  LayoutInline {SPAN} at (0,0) size 204x69
+                    LayoutText {#text} at (473,57) size 204x69
+                      text run at (473,57) width 204: "14-point"
+                  LayoutText {#text} at (676,89) size 719x106
+                    text run at (676,89) width 43: " text"
+                    text run at (0,167) width 76: "element"
+                LayoutText {#text} at (75,175) size 5x18
+                  text run at (75,175) width 5: " "
+                LayoutImage {IMG} at (79.95,160) size 15x50
+                LayoutText {#text} at (94,175) size 5x18
+                  text run at (94,175) width 5: " "
+                LayoutInline {SMALL} at (0,0) size 195x18
+                  LayoutText {#text} at (98,175) size 195x18
+                    text run at (98,175) width 195: "regardless of the line in which"
+                LayoutText {#text} at (292,175) size 5x18
+                  text run at (292,175) width 5: " "
+                LayoutImage {IMG} at (296.22,178) size 4.50x15
+                LayoutText {#text} at (300,175) size 5x18
+                  text run at (300,175) width 5: " "
+                LayoutInline {BIG} at (0,0) size 159x24
+                  LayoutText {#text} at (304,170) size 159x24
+                    text run at (304,170) width 159: "the images appear."
+                LayoutText {#text} at (462,175) size 5x18
+                  text run at (462,175) width 5: " "
+                LayoutImage {IMG} at (466.86,140) size 27x90
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,1752.31) size 747x54
+                LayoutText {#text} at (0,0) size 723x54
+                  text run at (0,0) width 723: "In the following paragraph, all elements should be aligned with the top of the tallest element on the line, whether"
+                  text run at (0,18) width 206: "that element is an image or not. "
+                  text run at (205,18) width 509: "Each fragment of text has been SPANned appropriately in order to cause this to"
+                  text run at (0,36) width 51: "happen."
+              LayoutBlockFlow {P} at (4,1822.31) size 747x201
+                LayoutInline {SPAN} at (0,0) size 97x18
+                  LayoutText {#text} at (0,0) size 97x18
+                    text run at (0,0) width 97: "This paragraph"
+                LayoutText {#text} at (96,0) size 5x18
+                  text run at (96,0) width 5: " "
+                LayoutImage {IMG} at (100.41,0) size 3x10
+                LayoutText {#text} at (103,0) size 5x18
+                  text run at (103,0) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 356x46
+                  LayoutText {#text} at (107,0) size 356x46
+                    text run at (107,0) width 356: "contains many images"
+                LayoutText {#text} at (462,0) size 5x18
+                  text run at (462,0) width 5: " "
+                LayoutImage {IMG} at (466.88,0) size 3x10
+                LayoutText {#text} at (469,0) size 5x18
+                  text run at (469,0) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 90x18
+                  LayoutText {#text} at (473,0) size 90x18
+                    text run at (473,0) width 90: "and some text"
+                LayoutText {#text} at (562,0) size 5x18
+                  text run at (562,0) width 5: " "
+                LayoutImage {IMG} at (566.73,0) size 3x10
+                LayoutText {#text} at (569,0) size 5x18
+                  text run at (569,0) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 118x18
+                  LayoutText {#text} at (573,0) size 118x18
+                    text run at (573,0) width 118: "of varying heights"
+                LayoutText {#text} at (690,0) size 5x18
+                  text run at (690,0) width 5: " "
+                LayoutImage {IMG} at (694.16,0) size 3x10
+                LayoutText {#text} at (697,0) size 5x18
+                  text run at (697,0) width 5: " "
+                LayoutInline {BIG} at (0,0) size 732x70
+                  LayoutText {#text} at (701,0) size 732x70
+                    text run at (701,0) width 31: "and"
+                    text run at (0,46) width 57: "widths"
+                LayoutText {#text} at (56,46) size 5x18
+                  text run at (56,46) width 5: " "
+                LayoutImage {IMG} at (60.88,46) size 6x20
+                LayoutText {#text} at (66,46) size 5x18
+                  text run at (66,46) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 78x18
+                  LayoutText {#text} at (70,46) size 78x18
+                    text run at (70,46) width 78: "all of which"
+                LayoutText {#text} at (147,46) size 5x18
+                  text run at (147,46) width 5: " "
+                LayoutImage {IMG} at (151.30,46) size 19.50x65
+                LayoutText {#text} at (170,46) size 5x18
+                  text run at (170,46) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 114x18
+                  LayoutText {#text} at (174,46) size 114x18
+                    text run at (174,46) width 114: "should be aligned"
+                LayoutText {#text} at (287,46) size 5x18
+                  text run at (287,46) width 5: " "
+                LayoutImage {IMG} at (291.66,46) size 10.50x35
+                LayoutText {#text} at (302,46) size 5x18
+                  text run at (302,46) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 188x37
+                  LayoutText {#text} at (306,46) size 188x37
+                    text run at (306,46) width 188: "with the top of"
+                LayoutText {#text} at (493,46) size 5x18
+                  text run at (493,46) width 5: " "
+                LayoutImage {IMG} at (497.69,46) size 15x50
+                LayoutText {#text} at (512,46) size 5x18
+                  text run at (512,46) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 134x18
+                  LayoutText {#text} at (516,46) size 134x18
+                    text run at (516,46) width 134: "the tallest element in"
+                LayoutText {#text} at (649,46) size 5x18
+                  text run at (649,46) width 5: " "
+                LayoutImage {IMG} at (653.53,46) size 4.50x15
+                LayoutText {#text} at (0,0) size 0x0
+                LayoutInline {BIG} at (0,0) size 305x24
+                  LayoutText {#text} at (0,111) size 305x24
+                    text run at (0,111) width 305: "whichever line the elements appear."
+                LayoutText {#text} at (305,111) size 4x18
+                  text run at (305,111) width 4: " "
+                LayoutImage {IMG} at (309,111) size 27x90
+                LayoutText {#text} at (0,0) size 0x0
+layer at (8,325) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,317) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/word_spacing-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/word_spacing-expected.txt
new file mode 100644
index 0000000..30114dc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/text_properties/word_spacing-expected.txt
@@ -0,0 +1,118 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 997
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x997 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x997
+    LayoutBlockFlow {BODY} at (8,8) size 769x981 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x180
+        LayoutText {#text} at (0,0) size 242x180
+          text run at (0,0) width 211: ".one {word-spacing: 0.3in;}"
+          text run at (210,0) width 1: " "
+          text run at (0,15) width 211: ".two {word-spacing: 0.5cm;}"
+          text run at (210,15) width 1: " "
+          text run at (0,30) width 211: ".three {word-spacing: 5mm;}"
+          text run at (210,30) width 1: " "
+          text run at (0,45) width 203: ".four {word-spacing: 3pt;}"
+          text run at (202,45) width 1: " "
+          text run at (0,60) width 227: ".five {word-spacing: 0.25pc;}"
+          text run at (226,60) width 1: " "
+          text run at (0,75) width 196: ".six {word-spacing: 1em;}"
+          text run at (195,75) width 1: " "
+          text run at (0,90) width 211: ".seven {word-spacing: 1ex;}"
+          text run at (210,90) width 1: " "
+          text run at (0,105) width 211: ".eight {word-spacing: 5px;}"
+          text run at (210,105) width 1: " "
+          text run at (0,120) width 227: ".nine {word-spacing: normal;}"
+          text run at (226,120) width 1: " "
+          text run at (0,135) width 203: ".ten {word-spacing: 300%;}"
+          text run at (202,135) width 1: " "
+          text run at (0,150) width 242: ".eleven {word-spacing: -0.2em;}"
+          text run at (241,150) width 1: " "
+          text run at (0,165) width 0: " "
+      LayoutBlockFlow {P} at (0,245) size 769x18
+        LayoutText {#text} at (0,0) size 716x18
+          text run at (0,0) width 716: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,279) size 769x18
+        LayoutText {#text} at (0,0) size 617x18
+          text run at (0,0) width 617: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,313) size 769x18
+        LayoutText {#text} at (0,0) size 617x18
+          text run at (0,0) width 617: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,347) size 769x18
+        LayoutText {#text} at (0,0) size 468x18
+          text run at (0,0) width 468: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,381) size 769x18
+        LayoutText {#text} at (0,0) size 468x18
+          text run at (0,0) width 468: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,415) size 769x18
+        LayoutText {#text} at (0,0) size 588x18
+          text run at (0,0) width 588: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,449) size 769x18
+        LayoutText {#text} at (0,0) size 500x18
+          text run at (0,0) width 500: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,483) size 769x36
+        LayoutText {#text} at (0,0) size 763x18
+          text run at (0,0) width 763: "This words in this sentence should have extra space between them, but the last few words in the sentence"
+        LayoutInline {SPAN} at (0,0) size 180x18
+          LayoutText {#text} at (0,18) size 180x18
+            text run at (0,18) width 180: "should have normal spacing"
+        LayoutText {#text} at (179,18) size 5x18
+          text run at (179,18) width 5: "."
+      LayoutBlockFlow {P} at (0,535) size 769x18
+        LayoutText {#text} at (0,0) size 679x18
+          text run at (0,0) width 679: "This sentence should have normal word-spacing, since percentage values are not allowed on this property."
+      LayoutBlockFlow {P} at (0,569) size 769x18
+        LayoutText {#text} at (0,0) size 716x18
+          text run at (0,0) width 716: "This words in this sentence should have reduced space between them, since negative values are allowed on this property."
+      LayoutTable {TABLE} at (0,603) size 769x378 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x376
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x350
+            LayoutTableCell {TD} at (0,188) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x350 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18
+                LayoutText {#text} at (0,0) size 716x18
+                  text run at (0,0) width 716: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,38) size 747x18
+                LayoutText {#text} at (0,0) size 617x18
+                  text run at (0,0) width 617: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,72) size 747x18
+                LayoutText {#text} at (0,0) size 617x18
+                  text run at (0,0) width 617: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,106) size 747x18
+                LayoutText {#text} at (0,0) size 468x18
+                  text run at (0,0) width 468: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,140) size 747x18
+                LayoutText {#text} at (0,0) size 468x18
+                  text run at (0,0) width 468: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,174) size 747x18
+                LayoutText {#text} at (0,0) size 588x18
+                  text run at (0,0) width 588: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,208) size 747x18
+                LayoutText {#text} at (0,0) size 500x18
+                  text run at (0,0) width 500: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,242) size 747x36
+                LayoutText {#text} at (0,0) size 699x36
+                  text run at (0,0) width 699: "This words in this sentence should have extra space between them, but the last few words in the"
+                  text run at (0,18) width 65: "sentence "
+                LayoutInline {SPAN} at (0,0) size 180x18
+                  LayoutText {#text} at (64,18) size 180x18
+                    text run at (64,18) width 180: "should have normal spacing"
+                LayoutText {#text} at (243,18) size 5x18
+                  text run at (243,18) width 5: "."
+              LayoutBlockFlow {P} at (4,294) size 747x18
+                LayoutText {#text} at (0,0) size 679x18
+                  text run at (0,0) width 679: "This sentence should have normal word-spacing, since percentage values are not allowed on this property."
+              LayoutBlockFlow {P} at (4,328) size 747x18
+                LayoutText {#text} at (0,0) size 716x18
+                  text run at (0,0) width 716: "This words in this sentence should have reduced space between them, since negative values are allowed on this property."
+layer at (8,235) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,227) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/units/color_units-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/units/color_units-expected.txt
new file mode 100644
index 0000000..9265bd19
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/units/color_units-expected.txt
@@ -0,0 +1,240 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1717
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1717 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1717
+    LayoutBlockFlow {BODY} at (8,8) size 769x1701 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x180
+        LayoutText {#text} at (0,0) size 281x180
+          text run at (0,0) width 157: "BODY {color: black;}"
+          text run at (156,0) width 1: " "
+          text run at (0,15) width 149: ".one {color: #080;}"
+          text run at (148,15) width 1: " "
+          text run at (0,30) width 172: ".two {color: #008000;}"
+          text run at (171,30) width 1: " "
+          text run at (0,45) width 227: ".three {color: rgb(0,128,0);}"
+          text run at (226,45) width 1: " "
+          text run at (0,60) width 235: ".four {color: rgb(0%,50%,0%);}"
+          text run at (234,60) width 1: " "
+          text run at (0,75) width 281: ".five {color: rgb(0.0%,50.0%,0.0%);}"
+          text run at (280,75) width 1: " "
+          text run at (0,90) width 157: ".six {color: green;}"
+          text run at (156,90) width 1: " "
+          text run at (0,105) width 227: ".seven {color: invalidValue;}"
+          text run at (226,105) width 1: " "
+          text run at (0,120) width 250: ".eight {color: rgb(0,128,1280);}"
+          text run at (249,120) width 1: " "
+          text run at (0,135) width 235: ".nine {color: rgb(0,128,255);}"
+          text run at (234,135) width 1: " "
+          text run at (0,150) width 258: ".ten {color: rgb(50%,-500%,60%);}"
+          text run at (257,150) width 1: " "
+          text run at (0,165) width 258: ".eleven {color: rgb(50%,0%,60%);}"
+          text run at (257,165) width 1: " "
+      LayoutBlockFlow {P} at (0,245) size 769x18
+        LayoutText {#text} at (0,0) size 196x18
+          text run at (0,0) width 196: "This sentence should be black."
+      LayoutBlockFlow {P} at (0,279) size 769x18 [color=#008800]
+        LayoutText {#text} at (0,0) size 518x18
+          text run at (0,0) width 518: "This sentence should be green, although slightly different from those that follow."
+      LayoutBlockFlow {P} at (0,313) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,347) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,381) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,415) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,449) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 197x18
+          text run at (0,0) width 197: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,483) size 769x18
+        LayoutText {#text} at (0,0) size 415x18
+          text run at (0,0) width 415: "This sentence should be black, because the value given for class "
+        LayoutInline {CODE} at (0,0) size 47x15
+          LayoutText {#text} at (414,2) size 47x15
+            text run at (414,2) width 47: ".seven"
+        LayoutText {#text} at (460,0) size 68x18
+          text run at (460,0) width 68: " is invalid."
+      LayoutBlockFlow {P} at (0,517) size 769x36 [color=#0080FF]
+        LayoutText {#text} at (0,0) size 737x36
+          text run at (0,0) width 737: "This sentence should be a shade of blue-green which, on a typical RGB computer display, exactly matches the next"
+          text run at (0,18) width 68: "paragraph."
+      LayoutBlockFlow {P} at (0,569) size 769x36 [color=#0080FF]
+        LayoutText {#text} at (0,0) size 765x36
+          text run at (0,0) width 765: "This sentence should be a shade of blue-green which, on a typical RGB computer display, exactly matches the previous"
+          text run at (0,18) width 68: "paragraph."
+      LayoutBlockFlow {P} at (0,621) size 769x36 [color=#800099]
+        LayoutText {#text} at (0,0) size 709x36
+          text run at (0,0) width 709: "This sentence should be a shade of purple which, on a typical RGB computer display, exactly matches the next"
+          text run at (0,18) width 68: "paragraph."
+      LayoutBlockFlow {P} at (0,673) size 769x36 [color=#800099]
+        LayoutText {#text} at (0,0) size 737x36
+          text run at (0,0) width 737: "This sentence should be a shade of purple which, on a typical RGB computer display, exactly matches the previous"
+          text run at (0,18) width 68: "paragraph."
+      LayoutBlockFlow {P} at (0,725) size 769x18
+        LayoutText {#text} at (0,0) size 196x18
+          text run at (0,0) width 196: "This sentence should be black."
+      LayoutBlockFlow {P} at (0,759) size 769x18 [color=#008800]
+        LayoutText {#text} at (0,0) size 407x18
+          text run at (0,0) width 407: "This sentence should be a slightly different green, and used the "
+        LayoutInline {TT} at (0,0) size 40x15
+          LayoutText {#text} at (406,2) size 40x15
+            text run at (406,2) width 40: "style"
+        LayoutText {#text} at (445,0) size 63x18
+          text run at (445,0) width 63: " attribute."
+      LayoutBlockFlow {P} at (0,793) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 285x18
+          text run at (0,0) width 285: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x15
+          LayoutText {#text} at (284,2) size 40x15
+            text run at (284,2) width 40: "style"
+        LayoutText {#text} at (323,0) size 63x18
+          text run at (323,0) width 63: " attribute."
+      LayoutBlockFlow {P} at (0,827) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 285x18
+          text run at (0,0) width 285: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x15
+          LayoutText {#text} at (284,2) size 40x15
+            text run at (284,2) width 40: "style"
+        LayoutText {#text} at (323,0) size 63x18
+          text run at (323,0) width 63: " attribute."
+      LayoutBlockFlow {P} at (0,861) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 285x18
+          text run at (0,0) width 285: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x15
+          LayoutText {#text} at (284,2) size 40x15
+            text run at (284,2) width 40: "style"
+        LayoutText {#text} at (323,0) size 63x18
+          text run at (323,0) width 63: " attribute."
+      LayoutBlockFlow {P} at (0,895) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 285x18
+          text run at (0,0) width 285: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x15
+          LayoutText {#text} at (284,2) size 40x15
+            text run at (284,2) width 40: "style"
+        LayoutText {#text} at (323,0) size 63x18
+          text run at (323,0) width 63: " attribute."
+      LayoutBlockFlow {P} at (0,929) size 769x18 [color=#008000]
+        LayoutText {#text} at (0,0) size 285x18
+          text run at (0,0) width 285: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x15
+          LayoutText {#text} at (284,2) size 40x15
+            text run at (284,2) width 40: "style"
+        LayoutText {#text} at (323,0) size 63x18
+          text run at (323,0) width 63: " attribute."
+      LayoutTable {TABLE} at (0,963) size 769x738 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x736
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x710
+            LayoutTableCell {TD} at (0,368) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x710 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x18
+                LayoutText {#text} at (0,0) size 196x18
+                  text run at (0,0) width 196: "This sentence should be black."
+              LayoutBlockFlow {P} at (4,38) size 747x18 [color=#008800]
+                LayoutText {#text} at (0,0) size 518x18
+                  text run at (0,0) width 518: "This sentence should be green, although slightly different from those that follow."
+              LayoutBlockFlow {P} at (4,72) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,106) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,140) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,174) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,208) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 197x18
+                  text run at (0,0) width 197: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,242) size 747x18
+                LayoutText {#text} at (0,0) size 415x18
+                  text run at (0,0) width 415: "This sentence should be black, because the value given for class "
+                LayoutInline {CODE} at (0,0) size 47x15
+                  LayoutText {#text} at (414,2) size 47x15
+                    text run at (414,2) width 47: ".seven"
+                LayoutText {#text} at (460,0) size 68x18
+                  text run at (460,0) width 68: " is invalid."
+              LayoutBlockFlow {P} at (4,276) size 747x36 [color=#0080FF]
+                LayoutText {#text} at (0,0) size 737x36
+                  text run at (0,0) width 737: "This sentence should be a shade of blue-green which, on a typical RGB computer display, exactly matches the next"
+                  text run at (0,18) width 68: "paragraph."
+              LayoutBlockFlow {P} at (4,328) size 747x36 [color=#0080FF]
+                LayoutText {#text} at (0,0) size 705x36
+                  text run at (0,0) width 705: "This sentence should be a shade of blue-green which, on a typical RGB computer display, exactly matches the"
+                  text run at (0,18) width 128: "previous paragraph."
+              LayoutBlockFlow {P} at (4,380) size 747x36 [color=#800099]
+                LayoutText {#text} at (0,0) size 709x36
+                  text run at (0,0) width 709: "This sentence should be a shade of purple which, on a typical RGB computer display, exactly matches the next"
+                  text run at (0,18) width 68: "paragraph."
+              LayoutBlockFlow {P} at (4,432) size 747x36 [color=#800099]
+                LayoutText {#text} at (0,0) size 737x36
+                  text run at (0,0) width 737: "This sentence should be a shade of purple which, on a typical RGB computer display, exactly matches the previous"
+                  text run at (0,18) width 68: "paragraph."
+              LayoutBlockFlow {P} at (4,484) size 747x18
+                LayoutText {#text} at (0,0) size 196x18
+                  text run at (0,0) width 196: "This sentence should be black."
+              LayoutBlockFlow {P} at (4,518) size 747x18 [color=#008800]
+                LayoutText {#text} at (0,0) size 407x18
+                  text run at (0,0) width 407: "This sentence should be a slightly different green, and used the "
+                LayoutInline {TT} at (0,0) size 40x15
+                  LayoutText {#text} at (406,2) size 40x15
+                    text run at (406,2) width 40: "style"
+                LayoutText {#text} at (445,0) size 63x18
+                  text run at (445,0) width 63: " attribute."
+              LayoutBlockFlow {P} at (4,552) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 285x18
+                  text run at (0,0) width 285: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x15
+                  LayoutText {#text} at (284,2) size 40x15
+                    text run at (284,2) width 40: "style"
+                LayoutText {#text} at (323,0) size 63x18
+                  text run at (323,0) width 63: " attribute."
+              LayoutBlockFlow {P} at (4,586) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 285x18
+                  text run at (0,0) width 285: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x15
+                  LayoutText {#text} at (284,2) size 40x15
+                    text run at (284,2) width 40: "style"
+                LayoutText {#text} at (323,0) size 63x18
+                  text run at (323,0) width 63: " attribute."
+              LayoutBlockFlow {P} at (4,620) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 285x18
+                  text run at (0,0) width 285: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x15
+                  LayoutText {#text} at (284,2) size 40x15
+                    text run at (284,2) width 40: "style"
+                LayoutText {#text} at (323,0) size 63x18
+                  text run at (323,0) width 63: " attribute."
+              LayoutBlockFlow {P} at (4,654) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 285x18
+                  text run at (0,0) width 285: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x15
+                  LayoutText {#text} at (284,2) size 40x15
+                    text run at (284,2) width 40: "style"
+                LayoutText {#text} at (323,0) size 63x18
+                  text run at (323,0) width 63: " attribute."
+              LayoutBlockFlow {P} at (4,688) size 747x18 [color=#008000]
+                LayoutText {#text} at (0,0) size 285x18
+                  text run at (0,0) width 285: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x15
+                  LayoutText {#text} at (284,2) size 40x15
+                    text run at (284,2) width 40: "style"
+                LayoutText {#text} at (323,0) size 63x18
+                  text run at (323,0) width 63: " attribute."
+layer at (8,235) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,227) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/units/length_units-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/units/length_units-expected.txt
new file mode 100644
index 0000000..78e7cec5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/units/length_units-expected.txt
@@ -0,0 +1,173 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1592
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1592 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1592
+    LayoutBlockFlow {BODY} at (8,8) size 769x1576 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 769x165
+        LayoutText {#text} at (0,0) size 609x165
+          text run at (0,0) width 180: ".zero {margin-left: 0;}"
+          text run at (179,0) width 1: " "
+          text run at (0,15) width 188: ".one {margin-left: 3em;}"
+          text run at (187,15) width 1: " "
+          text run at (0,30) width 188: ".two {margin-left: 3ex;}"
+          text run at (187,30) width 1: " "
+          text run at (0,45) width 211: ".three {margin-left: 36px;}"
+          text run at (210,45) width 1: " "
+          text run at (0,60) width 211: ".four {margin-left: 0.5in;}"
+          text run at (210,60) width 1: " "
+          text run at (0,75) width 219: ".five {margin-left: 1.27cm;}"
+          text run at (218,75) width 1: " "
+          text run at (0,90) width 211: ".six {margin-left: 12.7mm;}"
+          text run at (210,90) width 1: " "
+          text run at (0,105) width 211: ".seven {margin-left: 36pt;}"
+          text run at (210,105) width 1: " "
+          text run at (0,120) width 203: ".eight {margin-left: 3pc;}"
+          text run at (202,120) width 1: " "
+          text run at (0,135) width 203: ".nine {margin-left: +3pc;}"
+          text run at (202,135) width 1: " "
+          text run at (0,150) width 609: ".ten {font-size: 40px; border-left: 1ex solid purple; background-color: aqua;}"
+          text run at (608,150) width 1: " "
+      LayoutBlockFlow {P} at (0,230) size 769x36
+        LayoutText {#text} at (0,0) size 737x36
+          text run at (0,0) width 737: "This paragraph has no left margin. The following paragraphs have all been given a left margin and their left (outer)"
+          text run at (0,18) width 397: "edges should therefore be appropriately shifted to the right of "
+        LayoutInline {EM} at (0,0) size 24x18
+          LayoutText {#text} at (396,18) size 24x18
+            text run at (396,18) width 24: "this"
+        LayoutText {#text} at (419,18) size 142x18
+          text run at (419,18) width 142: " paragraph's left edge."
+      LayoutBlockFlow {P} at (48,282) size 721x18
+        LayoutText {#text} at (0,0) size 316x18
+          text run at (0,0) width 316: "This paragraph should have a left margin of 3em."
+      LayoutBlockFlow {P} at (21.53,316) size 747.47x18
+        LayoutText {#text} at (0,0) size 312x18
+          text run at (0,0) width 312: "This paragraph should have a left margin of 3ex."
+      LayoutBlockFlow {P} at (36,350) size 733x18
+        LayoutText {#text} at (0,0) size 347x18
+          text run at (0,0) width 347: "This paragraph should have a left margin of 36 pixels."
+      LayoutBlockFlow {P} at (48,384) size 721x18
+        LayoutText {#text} at (0,0) size 364x18
+          text run at (0,0) width 364: "This paragraph should have a left margin of half an inch."
+      LayoutBlockFlow {P} at (48,418) size 721x18
+        LayoutText {#text} at (0,0) size 336x18
+          text run at (0,0) width 336: "This paragraph should have a left margin of 1.27cm."
+      LayoutBlockFlow {P} at (48,452) size 721x18
+        LayoutText {#text} at (0,0) size 341x18
+          text run at (0,0) width 341: "This paragraph should have a left margin of 12.7mm."
+      LayoutBlockFlow {P} at (48,486) size 721x18
+        LayoutText {#text} at (0,0) size 348x18
+          text run at (0,0) width 348: "This paragraph should have a left margin of 36 points."
+      LayoutBlockFlow {P} at (48,520) size 721x18
+        LayoutText {#text} at (0,0) size 333x18
+          text run at (0,0) width 333: "This paragraph should have a left margin of 3 picas."
+      LayoutBlockFlow {P} at (48,554) size 721x18
+        LayoutText {#text} at (0,0) size 603x18
+          text run at (0,0) width 603: "This paragraph should have a left margin of 3 picas (the plus sign should make no difference)."
+      LayoutBlockFlow {P} at (0,612) size 769x230 [bgcolor=#00FFFF] [border: none (17.94px solid #800080)]
+        LayoutText {#text} at (17,0) size 310x46
+          text run at (17,0) width 310: "This element has a "
+        LayoutInline {CODE} at (0,0) size 217x46
+          LayoutText {#text} at (326,0) size 217x46
+            text run at (326,0) width 217: "font-size"
+        LayoutText {#text} at (542,0) size 55x46
+          text run at (542,0) width 55: " of "
+        LayoutInline {CODE} at (0,0) size 97x46
+          LayoutText {#text} at (596,0) size 97x46
+            text run at (596,0) width 97: "40px"
+        LayoutText {#text} at (692,0) size 743x92
+          text run at (692,0) width 68: " and"
+          text run at (17,46) width 29: "a "
+        LayoutInline {CODE} at (0,0) size 265x46
+          LayoutText {#text} at (45,46) size 265x46
+            text run at (45,46) width 265: "border-left"
+        LayoutText {#text} at (309,46) size 55x46
+          text run at (309,46) width 55: " of "
+        LayoutInline {CODE} at (0,0) size 385x46
+          LayoutText {#text} at (363,46) size 385x46
+            text run at (363,46) width 385: "1ex solid purple"
+        LayoutText {#text} at (747,46) size 741x184
+          text run at (747,46) width 11: "."
+          text run at (17,92) width 673: "This should make the left border the same"
+          text run at (17,138) width 710: "number of pixels as the lower-case 'x' in this"
+          text run at (17,184) width 611: "element's font, as well as solid purple."
+      LayoutTable {TABLE} at (0,882) size 769x694 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x692
+          LayoutTableRow {TR} at (0,0) size 767x26
+            LayoutTableCell {TD} at (0,0) size 767x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 767x666
+            LayoutTableCell {TD} at (0,346) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 755x666 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x36
+                LayoutText {#text} at (0,0) size 737x36
+                  text run at (0,0) width 737: "This paragraph has no left margin. The following paragraphs have all been given a left margin and their left (outer)"
+                  text run at (0,18) width 397: "edges should therefore be appropriately shifted to the right of "
+                LayoutInline {EM} at (0,0) size 24x18
+                  LayoutText {#text} at (396,18) size 24x18
+                    text run at (396,18) width 24: "this"
+                LayoutText {#text} at (419,18) size 142x18
+                  text run at (419,18) width 142: " paragraph's left edge."
+              LayoutBlockFlow {P} at (52,56) size 699x18
+                LayoutText {#text} at (0,0) size 316x18
+                  text run at (0,0) width 316: "This paragraph should have a left margin of 3em."
+              LayoutBlockFlow {P} at (25.53,90) size 725.47x18
+                LayoutText {#text} at (0,0) size 312x18
+                  text run at (0,0) width 312: "This paragraph should have a left margin of 3ex."
+              LayoutBlockFlow {P} at (40,124) size 711x18
+                LayoutText {#text} at (0,0) size 347x18
+                  text run at (0,0) width 347: "This paragraph should have a left margin of 36 pixels."
+              LayoutBlockFlow {P} at (52,158) size 699x18
+                LayoutText {#text} at (0,0) size 364x18
+                  text run at (0,0) width 364: "This paragraph should have a left margin of half an inch."
+              LayoutBlockFlow {P} at (52,192) size 699x18
+                LayoutText {#text} at (0,0) size 336x18
+                  text run at (0,0) width 336: "This paragraph should have a left margin of 1.27cm."
+              LayoutBlockFlow {P} at (52,226) size 699x18
+                LayoutText {#text} at (0,0) size 341x18
+                  text run at (0,0) width 341: "This paragraph should have a left margin of 12.7mm."
+              LayoutBlockFlow {P} at (52,260) size 699x18
+                LayoutText {#text} at (0,0) size 348x18
+                  text run at (0,0) width 348: "This paragraph should have a left margin of 36 points."
+              LayoutBlockFlow {P} at (52,294) size 699x18
+                LayoutText {#text} at (0,0) size 333x18
+                  text run at (0,0) width 333: "This paragraph should have a left margin of 3 picas."
+              LayoutBlockFlow {P} at (52,328) size 699x18
+                LayoutText {#text} at (0,0) size 603x18
+                  text run at (0,0) width 603: "This paragraph should have a left margin of 3 picas (the plus sign should make no difference)."
+              LayoutBlockFlow {P} at (4,386) size 747x276 [bgcolor=#00FFFF] [border: none (17.94px solid #800080)]
+                LayoutText {#text} at (17,0) size 310x46
+                  text run at (17,0) width 310: "This element has a "
+                LayoutInline {CODE} at (0,0) size 217x46
+                  LayoutText {#text} at (326,0) size 217x46
+                    text run at (326,0) width 217: "font-size"
+                LayoutText {#text} at (542,0) size 55x46
+                  text run at (542,0) width 55: " of "
+                LayoutInline {CODE} at (0,0) size 97x46
+                  LayoutText {#text} at (596,0) size 97x46
+                    text run at (596,0) width 97: "40px"
+                LayoutText {#text} at (17,46) size 97x46
+                  text run at (17,46) width 97: "and a "
+                LayoutInline {CODE} at (0,0) size 265x46
+                  LayoutText {#text} at (113,46) size 265x46
+                    text run at (113,46) width 265: "border-left"
+                LayoutText {#text} at (377,46) size 54x46
+                  text run at (377,46) width 54: " of "
+                LayoutInline {CODE} at (0,0) size 630x92
+                  LayoutText {#text} at (430,46) size 630x92
+                    text run at (430,46) width 217: "1ex solid"
+                    text run at (17,92) width 145: "purple"
+                LayoutText {#text} at (161,92) size 708x184
+                  text run at (161,92) width 21: ". "
+                  text run at (181,92) width 522: "This should make the left border"
+                  text run at (17,138) width 708: "the same number of pixels as the lower-case"
+                  text run at (17,184) width 642: "'x' in this element's font, as well as solid"
+                  text run at (17,230) width 114: "purple."
+layer at (8,220) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,212) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/units/percentage_units-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/units/percentage_units-expected.txt
new file mode 100644
index 0000000..582540ac
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/units/percentage_units-expected.txt
@@ -0,0 +1,67 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x75
+        LayoutText {#text} at (0,0) size 492x75
+          text run at (0,0) width 219: ".zero { background: yellow }"
+          text run at (218,0) width 1: " "
+          text run at (0,15) width 492: ".one { margin-left: 25%; margin-right: 25%; background: white }"
+          text run at (491,15) width 1: " "
+          text run at (0,30) width 484: ".two { margin-left: 50%; margin-right: 0%; background: white }"
+          text run at (483,30) width 1: " "
+          text run at (0,45) width 203: ".three {margin-left: 25%;}"
+          text run at (202,45) width 1: " "
+          text run at (0,60) width 0: " "
+      LayoutBlockFlow {DIV} at (0,140) size 784x124 [bgcolor=#FFFF00]
+        LayoutBlockFlow {DIV} at (196,0) size 392x54 [bgcolor=#FFFFFF]
+          LayoutBlockFlow {P} at (0,0) size 392x54
+            LayoutText {#text} at (0,0) size 332x54
+              text run at (0,0) width 332: "This paragraph should be centered within its yellow"
+              text run at (0,18) width 330: "containing block and its width should be half of the"
+              text run at (0,36) width 112: "containing block."
+        LayoutBlockFlow {DIV} at (392,70) size 392x54 [bgcolor=#FFFFFF]
+          LayoutBlockFlow {P} at (0,0) size 392x54
+            LayoutText {#text} at (0,0) size 361x54
+              text run at (0,0) width 361: "This paragraph should be right-aligned within its yellow"
+              text run at (0,18) width 330: "containing block and its width should be half of the"
+              text run at (0,36) width 112: "containing block."
+      LayoutBlockFlow {P} at (196,280) size 588x36
+        LayoutText {#text} at (0,0) size 560x36
+          text run at (0,0) width 560: "This paragraph should have a left margin of 25% the width of its parent element, which"
+          text run at (0,18) width 366: "should require some extra text in order to test effectively."
+      LayoutTable {TABLE} at (0,332) size 784x212 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x210
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x184
+            LayoutTableCell {TD} at (0,105) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x184 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {DIV} at (4,4) size 762x124 [bgcolor=#FFFF00]
+                LayoutBlockFlow {DIV} at (190.50,0) size 381x54 [bgcolor=#FFFFFF]
+                  LayoutBlockFlow {P} at (0,0) size 381x54
+                    LayoutText {#text} at (0,0) size 332x54
+                      text run at (0,0) width 332: "This paragraph should be centered within its yellow"
+                      text run at (0,18) width 330: "containing block and its width should be half of the"
+                      text run at (0,36) width 112: "containing block."
+                LayoutBlockFlow {DIV} at (381,70) size 381x54 [bgcolor=#FFFFFF]
+                  LayoutBlockFlow {P} at (0,0) size 381x54
+                    LayoutText {#text} at (0,0) size 361x54
+                      text run at (0,0) width 361: "This paragraph should be right-aligned within its yellow"
+                      text run at (0,18) width 330: "containing block and its width should be half of the"
+                      text run at (0,36) width 112: "containing block."
+              LayoutBlockFlow {P} at (194.50,144) size 571.50x36
+                LayoutText {#text} at (0,0) size 560x36
+                  text run at (0,0) width 560: "This paragraph should have a left margin of 25% the width of its parent element, which"
+                  text run at (0,18) width 366: "should require some extra text in order to test effectively."
+layer at (8,130) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,122) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/units/urls-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/units/urls-expected.txt
new file mode 100644
index 0000000..24cd269c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/mojo-loading/css1/units/urls-expected.txt
@@ -0,0 +1,61 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584
+      LayoutBlockFlow {P} at (0,0) size 784x18
+        LayoutText {#text} at (0,0) size 363x18
+          text run at (0,0) width 363: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,34) size 784x60
+        LayoutText {#text} at (0,0) size 632x60
+          text run at (0,0) width 632: "<LINK rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"../resources/bg.gif\">"
+          text run at (631,0) width 1: " "
+          text run at (0,15) width 289: "@import url(../resources/sec642.css);"
+          text run at (288,15) width 1: " "
+          text run at (0,30) width 344: "BODY {background: url(../resources/bg.gif);}"
+          text run at (343,30) width 1: " "
+          text run at (0,45) width 0: " "
+      LayoutBlockFlow {P} at (0,125) size 784x18
+        LayoutText {#text} at (0,0) size 393x18
+          text run at (0,0) width 393: "This page should have a green grid pattern as its background."
+      LayoutBlockFlow {P} at (0,159) size 784x54 [bgcolor=#FFFFFF]
+        LayoutText {#text} at (0,0) size 784x54
+          text run at (0,0) width 627: "This paragraph should have a white background, but NO image should appear in the background. "
+          text run at (626,0) width 153: "If an image, in this case"
+          text run at (0,18) width 784: "a red square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in relation to the"
+          text run at (0,36) width 277: "document's URL, not the stylesheet's URL."
+      LayoutBlockFlow {P} at (0,229) size 784x54 [bgcolor=#FFFFFF]
+        LayoutText {#text} at (0,0) size 784x54
+          text run at (0,0) width 627: "This paragraph should have a white background, but NO image should appear in the background. "
+          text run at (626,0) width 153: "If an image, in this case"
+          text run at (0,18) width 784: "a red square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in relation to the"
+          text run at (0,36) width 277: "document's URL, not the stylesheet's URL."
+      LayoutTable {TABLE} at (0,299) size 784x194 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x192
+          LayoutTableRow {TR} at (0,0) size 782x26
+            LayoutTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 161x18
+                LayoutText {#text} at (4,4) size 161x18
+                  text run at (4,4) width 161: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,26) size 782x166
+            LayoutTableCell {TD} at (0,96) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x18
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,26) size 770x166 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x18
+                LayoutText {#text} at (0,0) size 393x18
+                  text run at (0,0) width 393: "This page should have a green grid pattern as its background."
+              LayoutBlockFlow {P} at (4,38) size 762x54 [bgcolor=#FFFFFF]
+                LayoutText {#text} at (0,0) size 748x54
+                  text run at (0,0) width 627: "This paragraph should have a white background, but NO image should appear in the background. "
+                  text run at (626,0) width 122: "If an image, in this"
+                  text run at (0,18) width 722: "case a red square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in"
+                  text run at (0,36) width 370: "relation to the document's URL, not the stylesheet's URL."
+              LayoutBlockFlow {P} at (4,108) size 762x54 [bgcolor=#FFFFFF]
+                LayoutText {#text} at (0,0) size 748x54
+                  text run at (0,0) width 627: "This paragraph should have a white background, but NO image should appear in the background. "
+                  text run at (626,0) width 122: "If an image, in this"
+                  text run at (0,18) width 722: "case a red square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in"
+                  text run at (0,36) width 370: "relation to the document's URL, not the stylesheet's URL."
+layer at (8,115) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt
index 4fb9ec5..db0ef72 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 615.39x18
         LayoutText {#text} at (0,0) size 616x18
           text run at (0,0) width 616: "crbug.com/303728: Header Line is absolute positioned so should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 615.39x2 [border: (1px inset #EEEEEE)]
+layer at (8,26) size 615x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,26) size 615.39x2 [border: (1px inset #EEEEEE)]
 layer at (8,763) size 611x36
   LayoutBlockFlow (positioned) {DIV} at (8,763) size 610.98x36
     LayoutBlockFlow {DIV} at (0,8) size 610.98x28
-      LayoutBlockFlow {HR} at (0,0) size 610.98x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 610.98x18
         LayoutText {#text} at (0,0) size 611x18
           text run at (0,0) width 611: "crbug.com/303728: Footer Line is absolute positioned so should not be repeated on every page."
+layer at (8,771) size 611x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 610.98x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
index 304d01d..82e5fef5 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 680.27x18
         LayoutText {#text} at (0,0) size 681x18
           text run at (0,0) width 681: "crbug.com/303728: Fixed-position header Line is statically positioned and will be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 680.27x2 [border: (1px inset #EEEEEE)]
+layer at (8,42) size 680x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,26) size 680.27x2 [border: (1px inset #EEEEEE)]
 layer at (8,2567) size 624x36 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) {DIV} at (8,2567) size 624.30x36
     LayoutBlockFlow {DIV} at (0,8) size 624.30x28
-      LayoutBlockFlow {HR} at (0,0) size 624.30x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 624.30x18
         LayoutText {#text} at (0,0) size 625x18
           text run at (0,0) width 625: "crbug.com/303728: Footer Line is statically positioned and should not be repeated on every page."
+layer at (8,2575) size 624x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 624.30x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
index bc63ccbc..3b4d477 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
@@ -11,7 +11,8 @@
         LayoutText {#text} at (0,0) size 472x36
           text run at (0,0) width 472: "crbug.com/303728: Header Line should be repeated on every page except"
           text run at (0,18) width 384: "where it's clipped by the absolute element on pages 3 and 4."
-      LayoutBlockFlow {HR} at (0,44) size 500x2 [border: (1px inset #EEEEEE)]
+layer at (5,49) size 500x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,44) size 500x2 [border: (1px inset #EEEEEE)]
 layer at (0,1000) size 600x2000 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) zI: 2 {DIV} at (0,1000) size 600x2000 [bgcolor=#000000]
     LayoutText zI: 2 {#text} at (0,0) size 58x18
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt
index b413d1a0..b0a67f2 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 523.84x18
         LayoutText {#text} at (0,0) size 524x18
           text run at (0,0) width 524: "crbug.com/303728: Fixed-position header Line should be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 523.84x2 [border: (1px inset #EEEEEE)]
+layer at (8,26) size 524x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,26) size 523.84x2 [border: (1px inset #EEEEEE)]
 layer at (8,763) size 426x36
   LayoutBlockFlow (positioned) {DIV} at (8,763) size 425.66x36
     LayoutBlockFlow {DIV} at (0,8) size 425.66x28
-      LayoutBlockFlow {HR} at (0,0) size 425.66x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 425.66x18
         LayoutText {#text} at (0,0) size 426x18
           text run at (0,0) width 426: "crbug.com/303728: Footer Line should be repeated on every page."
+layer at (8,771) size 426x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 425.66x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
index e3b4936f..2edc783 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
@@ -233,13 +233,15 @@
       LayoutBlockFlow (anonymous) at (0,0) size 454.52x18
         LayoutText {#text} at (0,0) size 455x18
           text run at (0,0) width 455: "crbug.com/303728: Header Line should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 454.52x2 [border: (1px inset #EEEEEE)]
+layer at (8,42) size 455x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,26) size 454.52x2 [border: (1px inset #EEEEEE)]
 layer at (8,2567) size 1030x0
   LayoutBlockFlow {DIV} at (0,2551) size 1030x0
 layer at (8,2531) size 450x36 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) {DIV} at (0,-36) size 450.09x36
     LayoutBlockFlow {DIV} at (0,8) size 450.09x28
-      LayoutBlockFlow {HR} at (0,0) size 450.09x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 450.09x18
         LayoutText {#text} at (0,0) size 451x18
           text run at (0,0) width 451: "crbug.com/303728: Footer Line should not be repeated on every page."
+layer at (8,2539) size 450x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 450.09x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt b/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
index b9d011f..3ae204b 100644
--- a/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
@@ -231,11 +231,13 @@
       LayoutBlockFlow (anonymous) at (0,0) size 2000x18
         LayoutText {#text} at (0,0) size 706x18
           text run at (0,0) width 706: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
-      LayoutBlockFlow {HR} at (0,26) size 2000x2 [border: (1px inset #EEEEEE)]
+layer at (13,31) size 2000x2 backgroundClip at (13,31) size 1033x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,26) size 2000x2 [border: (1px inset #EEEEEE)]
 layer at (8,753) size 2010x46 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) {DIV} at (8,753) size 2010x46 [border: (5px solid #000000)]
     LayoutBlockFlow {DIV} at (5,13) size 2000x28
-      LayoutBlockFlow {HR} at (0,0) size 2000x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,10) size 2000x18
         LayoutText {#text} at (0,0) size 706x18
           text run at (0,0) width 706: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
+layer at (13,766) size 2000x2 backgroundClip at (13,766) size 1033x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2000x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/basic/comments-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/basic/comments-expected.txt
index cbf5929e..28983be 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/basic/comments-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/basic/comments-expected.txt
@@ -37,7 +37,6 @@
           text run at (0,208) width 176: ".eight {color: green;}"
           text run at (176,208) width 0: " "
           text run at (0,224) width 0: " "
-      LayoutBlockFlow {HR} at (0,289) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,307) size 769x20 [color=#008000]
         LayoutText {#text} at (0,0) size 184x19
           text run at (0,0) width 184: "This sentence should be green."
@@ -98,3 +97,5 @@
               LayoutBlockFlow {P} at (4,256) size 184x20 [color=#008000]
                 LayoutText {#text} at (0,0) size 184x19
                   text run at (0,0) width 184: "This sentence should be green."
+layer at (8,297) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,289) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/basic/containment-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/basic/containment-expected.txt
index eb66870..ec868c63 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/basic/containment-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/basic/containment-expected.txt
@@ -28,7 +28,6 @@
           text run at (168,128) width 0: " "
           text run at (0,144) width 24: "-->"
           text run at (24,144) width 0: " "
-      LayoutBlockFlow {HR} at (0,209) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,227) size 769x20
         LayoutText {#text} at (0,0) size 383x19
           text run at (0,0) width 383: "This sentence should be underlined due to the linked style sheet "
@@ -207,3 +206,5 @@
               LayoutBlockFlow {P} at (4,340) size 747x20 [color=#008000]
                 LayoutText {#text} at (0,0) size 193x19
                   text run at (0,0) width 193: "This paragraph should be green."
+layer at (8,217) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,209) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/basic/contextual_selectors-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/basic/contextual_selectors-expected.txt
index 9c3635c..3f3e59a 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/basic/contextual_selectors-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/basic/contextual_selectors-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 224: "EM, UL LI LI {color: green;}"
           text run at (224,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 784x20 [color=#000080]
         LayoutText {#text} at (0,0) size 591x19
           text run at (0,0) width 591: "This sentence should be navy serif in the first half of the page, but purple and sans-serif in the table."
@@ -80,3 +79,5 @@
                       LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
                       LayoutText {#text} at (0,0) size 128x19
                         text run at (0,0) width 128: "This should be green."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/basic/grouping-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/basic/grouping-expected.txt
index 03debe2a..a83001a 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/basic/grouping-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/basic/grouping-expected.txt
@@ -11,7 +11,6 @@
           text run at (0,0) width 272: ".one, .two, .three {color: green;}"
           text run at (272,0) width 0: " "
           text run at (0,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,99) size 784x20 [color=#008000]
         LayoutText {#text} at (0,0) size 184x19
           text run at (0,0) width 184: "This sentence should be green."
@@ -42,3 +41,5 @@
               LayoutBlockFlow {P} at (4,76) size 184x20 [color=#008000]
                 LayoutText {#text} at (0,0) size 184x19
                   text run at (0,0) width 184: "This sentence should be green."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/basic/id_as_selector-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/basic/id_as_selector-expected.txt
index 199d3e2..c5af05d 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/basic/id_as_selector-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/basic/id_as_selector-expected.txt
@@ -23,7 +23,6 @@
           text run at (0,96) width 240: "P#five, P#five2 {color: blue;}"
           text run at (240,96) width 0: " "
           text run at (0,112) width 240: "P#six, P#six2 {color: purple;}"
-      LayoutBlockFlow {HR} at (0,177) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,195) size 769x20 [color=#008000]
         LayoutText {#text} at (0,0) size 184x19
           text run at (0,0) width 184: "This sentence should be green."
@@ -90,3 +89,5 @@
                   LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
                   LayoutText {#text} at (0,0) size 226x19
                     text run at (0,0) width 226: "This sentence should NOT be purple."
+layer at (8,185) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,177) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/basic/inheritance-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/basic/inheritance-expected.txt
index 5547bbdf..317647e 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/basic/inheritance-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/basic/inheritance-expected.txt
@@ -22,7 +22,6 @@
           text run at (152,80) width 0: " "
           text run at (0,96) width 184: ".three {color: purple;}"
           text run at (184,96) width 0: " "
-      LayoutBlockFlow {HR} at (0,161) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {H3} at (0,181.72) size 784x24 [color=#0000FF]
         LayoutText {#text} at (0,0) size 221x22
           text run at (0,0) width 221: "This sentence should show "
@@ -187,3 +186,5 @@
                     text run at (334,0) width 164: "this part (which is spanned)"
                 LayoutText {#text} at (498,0) size 4x19
                   text run at (498,0) width 4: "."
+layer at (8,169) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border-expected.txt
index 2ce84a5..a10a4aea 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border-expected.txt
@@ -26,7 +26,6 @@
           text run at (168,112) width 0: " "
           text run at (0,128) width 232: "TD {border: 2px solid green;}"
           text run at (232,128) width 0: " "
-      LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,211) size 769x40
         LayoutText {#text} at (0,0) size 758x39
           text run at (0,0) width 597: "Note that all table cells on this page should have a two-pixel solid green border along all four sides. "
@@ -181,3 +180,5 @@
               LayoutBlockFlow {P} at (5,540) size 743x20
                 LayoutText {#text} at (0,0) size 163x19
                   text run at (0,0) width 163: "This is an unstyled element."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom-expected.txt
index b80219f..a25c8da 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom-expected.txt
@@ -16,7 +16,6 @@
           text run at (344,32) width 0: " "
           text run at (0,48) width 288: "TD {border-bottom: green 2px solid;}"
           text run at (288,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x40
         LayoutText {#text} at (0,0) size 745x39
           text run at (0,0) width 629: "Note that all table cells on this page should have a two-pixel solid green border along their bottom sides. "
@@ -161,3 +160,5 @@
                       text run at (89,20) width 51: "beneath"
                   LayoutText {#text} at (140,20) size 365x19
                     text run at (140,20) width 365: " the nested list (below the line \"...nested within the list item.\")."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom_inline-expected.txt
index 1abb22c..0e68cf7a 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 320: ".two {border-bottom: purple thin solid;}"
           text run at (320,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 627x19
           text run at (0,0) width 627: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
@@ -58,3 +57,5 @@
                   text run at (405,20) width 328: ", which should have a thin solid purple bottom border. "
                   text run at (732,20) width 24: "The"
                   text run at (0,40) width 375: "line-height of the parent element should not change on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom_width-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom_width-expected.txt
index 10688b7..9eadb20 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (440,64) width 0: " "
           text run at (0,80) width 272: ".five {border-bottom-width: 25px;}"
           text run at (272,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20
         LayoutText {#text} at (0,0) size 145x19
           text run at (0,0) width 145: "(These will only work if "
@@ -101,3 +100,5 @@
               LayoutBlockFlow {P} at (4,327) size 659x20 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 193x19
                   text run at (0,0) width 193: "This element has a class of zero."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom_width_inline-expected.txt
index 160bbfe8..65b10a03 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_bottom_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (432,16) width 0: " "
           text run at (0,32) width 280: ".three {border-bottom-width: 25px;}"
           text run at (280,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x88 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
         LayoutText {#text} at (3,3) size 163x19
           text run at (3,3) width 163: "This element has a class of "
@@ -82,3 +81,5 @@
                       text run at (136,46) width 40: "three"
                 LayoutText {#text} at (176,43) size 570x19
                   text run at (176,43) width 570: ", which should have no bottom border width or visible border because no border style was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_color-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_color-expected.txt
index e9902b7..c93704a 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_color-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_color-expected.txt
@@ -14,7 +14,6 @@
           text run at (568,16) width 0: " "
           text run at (0,32) width 728: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
           text run at (728,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x26 [border: (3px solid #800080)]
         LayoutText {#text} at (3,3) size 337x19
           text run at (3,3) width 337: "This element should have a purple border surrounding it."
@@ -47,3 +46,5 @@
                 LayoutText {#text} at (3,3) size 723x39
                   text run at (3,3) width 723: "This element should be surrounded by a medium width border which is purple on top, green on the right side, blue on the"
                   text run at (3,23) width 211: "bottom, and yellow on the left side."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_color_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_color_inline-expected.txt
index ba3958e..fc1a040b9 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_color_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_color_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (568,16) width 0: " "
           text run at (0,32) width 728: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
           text run at (728,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x80 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 638x19
           text run at (0,0) width 638: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
@@ -73,3 +72,5 @@
                   text run at (0,40) width 520: "second cases, and a purple-green-blue-yellow medium-width solid border in the third. "
                   text run at (520,40) width 218: "The line-height of the parent element"
                   text run at (0,60) width 216: "should not change at all, on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_inline-expected.txt
index cba446a..054adaa 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 256: ".two {border: 10px olive inset;}"
           text run at (256,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 638x19
           text run at (0,0) width 638: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
@@ -58,3 +57,5 @@
                   text run at (374,20) width 317: ", which should result in a 10-pixel inset olive border. "
                   text run at (690,20) width 54: "The line-"
                   text run at (0,40) width 349: "height of the parent element should not change on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left-expected.txt
index 64d430f9..a1397d64 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left-expected.txt
@@ -22,7 +22,6 @@
           text run at (328,80) width 0: " "
           text run at (0,96) width 272: "TD {border-left: green 2px solid;}"
           text run at (272,96) width 0: " "
-      LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (20,179) size 749x40
         LayoutText {#text} at (0,0) size 749x39
           text run at (0,0) width 604: "Note that all table cells on this page should have a two-pixel solid green border along their left sides. "
@@ -161,3 +160,5 @@
                     text run at (661,0) width 23: "The"
                     text run at (3,20) width 702: "first item's border should travel the entire height the nested list (to end near the baseline of the line \"...nested within the"
                     text run at (3,40) width 444: "list item.\"), even though the nested list does not have any border styles set."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left_inline-expected.txt
index 4ca11a5d..b66f762 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left_inline-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 304: ".two {border-left: purple thin solid;}"
           text run at (304,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (20,131) size 764x60 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 723x19
           text run at (0,0) width 723: "This paragraph has a background color of silver and a 20-pixel left margin, and it contains inline elements with classes of "
@@ -58,3 +57,5 @@
                   text run at (493,20) width 228: ", which should have a thin solid purple"
                   text run at (0,40) width 71: "left border. "
                   text run at (70,40) width 403: "The line-height of the parent element should not change on any line."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left_width-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left_width-expected.txt
index 7e755df..263ecab 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (424,64) width 0: " "
           text run at (0,80) width 256: ".five {border-left-width: 25px;}"
           text run at (256,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20
         LayoutText {#text} at (0,0) size 145x19
           text run at (0,0) width 145: "(These will only work if "
@@ -97,3 +96,5 @@
                     text run at (485,3) width 96: "border-style"
                 LayoutText {#text} at (581,0) size 53x19
                   text run at (581,0) width 53: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left_width_inline-expected.txt
index 7751986..2f3ebbd 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_left_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (416,16) width 0: " "
           text run at (0,32) width 264: ".three {border-left-width: 25px;}"
           text run at (264,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x66 [border: (3px solid #000000) (25px solid #000000)]
         LayoutText {#text} at (25,3) size 163x19
           text run at (25,3) width 163: "This element has a class of "
@@ -93,3 +92,5 @@
                 LayoutText {#text} at (244,43) size 711x39
                   text run at (244,43) width 492: ", which should have no left border width or visible border because no border style"
                   text run at (25,63) width 49: "was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right-expected.txt
index 3721dfa0..772d0de 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 312: ".two {border-right: purple thin solid;}"
           text run at (312,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 764x60 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 731x19
           text run at (0,0) width 731: "This paragraph has a background color of silver and a 20-pixel right margin, and it contains inline elements with classes of "
@@ -59,3 +58,5 @@
                   text run at (501,20) width 228: ", which should have a thin solid purple"
                   text run at (0,40) width 79: "right border. "
                   text run at (78,40) width 403: "The line-height of the parent element should not change on any line."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right_inline-expected.txt
index 1285d58..e66e7f3 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right_inline-expected.txt
@@ -22,7 +22,6 @@
           text run at (336,80) width 0: " "
           text run at (0,96) width 280: "TD {border-right: green 2px solid;}"
           text run at (280,96) width 0: " "
-      LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,179) size 749x40
         LayoutText {#text} at (0,0) size 728x39
           text run at (0,0) width 612: "Note that all table cells on this page should have a two-pixel solid green border along their right sides. "
@@ -165,3 +164,5 @@
                     text run at (0,40) width 448: "list item.\"), even though the nested list does not have any border styles set. "
                     text run at (448,40) width 250: "The borders should line up together at the"
                     text run at (0,60) width 503: "right edge of the document's body, as each list element has a default width of 100%."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right_width-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right_width-expected.txt
index 0dbeea1..975e79f4 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (432,64) width 0: " "
           text run at (0,80) width 272: ".five {border-right-width: 100px;}"
           text run at (272,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20
         LayoutText {#text} at (0,0) size 145x19
           text run at (0,0) width 145: "(These will only work if "
@@ -97,3 +96,5 @@
                     text run at (493,3) width 96: "border-style"
                 LayoutText {#text} at (589,0) size 53x19
                   text run at (589,0) width 53: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right_width_inline-expected.txt
index ed495d2..400c80bf 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_right_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (424,16) width 0: " "
           text run at (0,32) width 272: ".three {border-right-width: 25px;}"
           text run at (272,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x66 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
         LayoutText {#text} at (3,3) size 163x19
           text run at (3,3) width 163: "This element has a class of "
@@ -93,3 +92,5 @@
                 LayoutText {#text} at (235,43) size 732x39
                   text run at (235,43) width 500: ", which should have no right border width or visible border because no border style"
                   text run at (3,63) width 49: "was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_style-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_style-expected.txt
index 02c0b28..ee8fe41 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_style-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_style-expected.txt
@@ -32,7 +32,6 @@
           text run at (368,160) width 0: " "
           text run at (0,176) width 552: ".eleven {border-style: none; border-color: red; border-width: thick;}"
           text run at (552,176) width 0: " "
-      LayoutBlockFlow {HR} at (0,241) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,259) size 769x30 [border: (5px dotted #000000)]
         LayoutText {#text} at (5,5) size 452x19
           text run at (5,5) width 452: "This paragraph should have a thick black dotted border all the way around."
@@ -119,3 +118,5 @@
               LayoutBlockFlow {P} at (4,504) size 747x20
                 LayoutText {#text} at (0,0) size 265x19
                   text run at (0,0) width 265: "This paragraph should have no border at all."
+layer at (8,249) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,241) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_style_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_style_inline-expected.txt
index 7147b37..1edbe6a 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_style_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_style_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (544,16) width 0: " "
           text run at (0,32) width 568: ".three {border-style: none; border-color: purple; border-width: thick;}"
           text run at (568,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 627x19
           text run at (0,0) width 627: "This is an unstyled element, save for the background color, and it contains inline elements with classes of "
@@ -69,3 +68,5 @@
                   text run at (710,20) width 44: ", which"
                   text run at (0,40) width 193: "should result in no border at all. "
                   text run at (193,40) width 406: "The line-height of the parent element should not change, on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top-expected.txt
index ee370b3..14b69b4 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top-expected.txt
@@ -16,7 +16,6 @@
           text run at (320,32) width 0: " "
           text run at (0,48) width 264: "TD {border-top: green 2px solid;}"
           text run at (264,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x40
         LayoutText {#text} at (0,0) size 767x39
           text run at (0,0) width 606: "Note that all table cells on this page should have a two-pixel solid green border along their top sides. "
@@ -149,3 +148,5 @@
                   LayoutListMarker (anonymous) at (-18,3) size 7x19: bullet
                   LayoutText {#text} at (0,3) size 455x19
                     text run at (0,3) width 455: "Each list item in this list should have a medium-width black border at its top."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top_inline-expected.txt
index 5e5caa13..c4cf7b2 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 296: ".two {border-top: purple thin solid;}"
           text run at (296,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 627x19
           text run at (0,0) width 627: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
@@ -58,3 +57,5 @@
                   text run at (382,20) width 305: ", which should have a thin solid purple top border. "
                   text run at (686,20) width 54: "The line-"
                   text run at (0,40) width 349: "height of the parent element should not change on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top_width-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top_width-expected.txt
index 51d495f..9ee9b57 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (416,64) width 0: " "
           text run at (0,80) width 248: ".five {border-top-width: 25px;}"
           text run at (248,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20
         LayoutText {#text} at (0,0) size 145x19
           text run at (0,0) width 145: "(These will only work if "
@@ -95,3 +94,5 @@
                     text run at (502,3) width 96: "border-style"
                 LayoutText {#text} at (598,0) size 53x19
                   text run at (598,0) width 53: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top_width_inline-expected.txt
index c1e794c4..beb54d6f 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_top_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (408,16) width 0: " "
           text run at (0,32) width 256: ".three {border-top-width: 25px;}"
           text run at (256,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x88 [border: (25px solid #000000) (3px solid #000000)]
         LayoutText {#text} at (3,25) size 163x19
           text run at (3,25) width 163: "This element has a class of "
@@ -83,3 +82,5 @@
                       text run at (102,68) width 40: "three"
                 LayoutText {#text} at (142,65) size 547x19
                   text run at (142,65) width 547: ", which should have no top border width or visible border because no border style was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_width-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_width-expected.txt
index 55b4643..bb0a020 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_width-expected.txt
@@ -20,7 +20,6 @@
           text run at (384,64) width 0: " "
           text run at (0,80) width 216: ".five {border-width: 25px;}"
           text run at (216,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20
         LayoutText {#text} at (0,0) size 145x19
           text run at (0,0) width 145: "(These will only work if "
@@ -95,3 +94,5 @@
                     text run at (471,3) width 96: "border-style"
                 LayoutText {#text} at (567,0) size 53x19
                   text run at (567,0) width 53: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_width_inline-expected.txt
index d2d8d093..5be22b3 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_width_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/border_width_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (376,16) width 0: " "
           text run at (0,32) width 224: ".three {border-width: 25px;}"
           text run at (224,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x110 [border: (25px solid #000000)]
         LayoutText {#text} at (25,25) size 163x19
           text run at (25,25) width 163: "This element has a class of "
@@ -83,3 +82,5 @@
                 LayoutText {#text} at (619,45) size 712x39
                   text run at (619,45) width 118: ", which should have"
                   text run at (25,65) width 298: "no border width because no border style was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/clear-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/clear-expected.txt
index d3f8034..e20d83b 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/clear-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/clear-expected.txt
@@ -16,7 +16,6 @@
           text run at (168,32) width 0: " "
           text run at (0,48) width 160: ".four {clear: none;}"
           text run at (160,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutImage (floating) {IMG} at (0,123) size 15x50
       LayoutBlockFlow {P} at (0,131) size 769x20
         LayoutText {#text} at (18,0) size 562x19
@@ -89,3 +88,5 @@
                   text run at (18,0) width 372: "This paragraph should be between both tall orange rectangles."
               LayoutBlockFlow (anonymous) at (4,394) size 628x20
                 LayoutBR {BR} at (18,0) size 0x19
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/clear_float-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/clear_float-expected.txt
index c56f748..44659029 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/clear_float-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/clear_float-expected.txt
@@ -24,7 +24,6 @@
           text run at (0,112) width 480: "             color: black; background: yellow; clear: none;}"
           text run at (480,112) width 0: " "
           text run at (0,128) width 0: " "
-      LayoutBlockFlow {HR} at (0,190) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (floating) {DIV} at (0,200) size 192x125.38 [color=#FFFFFF] [bgcolor=#008000]
         LayoutBlockFlow {H1} at (8,8) size 176x23
           LayoutText {#text} at (0,0) size 81x22
@@ -157,3 +156,5 @@
                     text run at (0,0) width 298: "The top of the yellow rectangle (to which this"
                     text run at (0,20) width 298: "paragraph belongs) should be vertically aligned"
                     text run at (0,40) width 208: "with the top of the green rectangle."
+layer at (8,198) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,190) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float-expected.txt
index 5f710be..84cd1d5 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 160: ".two {float: right;}"
           text run at (160,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutImage (floating) {IMG} at (0,107) size 15x50
       LayoutBlockFlow {P} at (0,115) size 784x40
         LayoutText {#text} at (15,0) size 761x39
@@ -22,7 +21,6 @@
           text run at (15,20) width 162: "has been floated to the left."
       LayoutBlockFlow (anonymous) at (0,171) size 784x20
         LayoutBR {BR} at (0,0) size 0x19
-      LayoutBlockFlow {HR} at (0,199) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutImage (floating) {IMG} at (769,209) size 15x50
       LayoutBlockFlow {P} at (0,217) size 784x40
         LayoutText {#text} at (0,0) size 769x39
@@ -49,10 +47,15 @@
                   text run at (15,20) width 201: "which has been floated to the left."
               LayoutBlockFlow (anonymous) at (4,60) size 762x20
                 LayoutBR {BR} at (0,0) size 0x19
-              LayoutBlockFlow {HR} at (4,88) size 762x2 [border: (1px inset #EEEEEE)]
               LayoutImage (floating) {IMG} at (751,98) size 15x50
               LayoutBlockFlow {P} at (4,106) size 762x40
                 LayoutText {#text} at (0,0) size 730x39
                   text run at (0,0) width 574: "This text should be flowing past a tall orange rectangle on the right side of the browser window. "
                   text run at (573,0) width 157: "In this case, it is the image"
                   text run at (0,20) width 209: "which has been floated to the right."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,207) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,199) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (25,398) size 762x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,88) size 762x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float_elements_in_series-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float_elements_in_series-expected.txt
index c1291c6..c0dfb24 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float_elements_in_series-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float_elements_in_series-expected.txt
@@ -32,7 +32,6 @@
           text run at (0,176) width 200: "TABLE {margin: 20px 0px;}"
           text run at (200,176) width 0: " "
           text run at (0,192) width 0: " "
-      LayoutBlockFlow {HR} at (0,254) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,264) size 769x40
         LayoutText {#text} at (0,0) size 769x39
           text run at (0,0) width 769: "The four floating DIV elements below should appear next to each other horizontally. The table at the bottom of this page"
@@ -157,6 +156,8 @@
                         LayoutBlockFlow {IMG} at (0,0) size 100x1
                       LayoutTableCell {TD} at (600,10) size 20x1 [bgcolor=#000000] [r=0 c=14 rs=1 cs=1]
                         LayoutBlockFlow {IMG} at (0,0) size 20x1
+layer at (8,262) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,254) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (8,442) size 20x1
   LayoutBlockFlow {SPAN} at (0,0) size 20x1
     LayoutInline {SPAN} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float_margin-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float_margin-expected.txt
index 516982e..1f25473c 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float_margin-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float_margin-expected.txt
@@ -25,7 +25,6 @@
           text run at (0,112) width 400: "#img5 {margin-right: -30px; margin-bottom: -30px;}"
           text run at (400,112) width 0: " "
           text run at (0,128) width 0: " "
-      LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (30,215) size 729x92 [bgcolor=#FFFFFF]
         LayoutText {#text} at (0,0) size 719x91
           text run at (0,0) width 719: "This paragraph should have a white background which extends to the edges of the element's"
@@ -160,3 +159,5 @@
                   text run at (0,92) width 381: "which extends to the edges of the element's box. "
                   text run at (381,92) width 325: "There is no padding set on this paragraph"
                   text run at (0,115) width 95: "whatsoever."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float_on_text_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float_on_text_elements-expected.txt
index 0e3a047..75d8b39 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float_on_text_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/float_on_text_elements-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,60) width 708: "border or margins on this and the previous element, so the text of the two elements should be very close to each other."
       LayoutBlockFlow (anonymous) at (0,80) size 769x20
         LayoutBR {BR} at (0,0) size 0x19
-      LayoutBlockFlow {HR} at (0,108) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,118) size 769x100
         LayoutBlockFlow (floating) {P} at (0,0) size 769x80 [bgcolor=#FFFF00]
           LayoutText {#text} at (0,0) size 769x79
@@ -27,7 +26,6 @@
         LayoutText {#text} at (15,80) size 4x19
           text run at (15,80) width 4: " "
         LayoutBR {BR} at (19,95) size 0x0
-      LayoutBlockFlow {HR} at (0,226) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,236) size 769x100
         LayoutBlockFlow (floating) {P} at (0,0) size 384.50x100 [bgcolor=#FFFF00]
           LayoutText {#text} at (0,0) size 384x99
@@ -40,7 +38,6 @@
         LayoutText {#text} at (399,0) size 5x19
           text run at (399,0) width 5: " "
         LayoutBR {BR} at (403,15) size 1x0
-      LayoutBlockFlow {HR} at (0,344) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,354) size 769x120
         LayoutBlockFlow (floating) {P} at (384.50,0) size 384.50x120 [bgcolor=#FFFF00]
           LayoutText {#text} at (0,0) size 384x119
@@ -54,7 +51,6 @@
         LayoutText {#text} at (15,0) size 4x19
           text run at (15,0) width 4: " "
         LayoutBR {BR} at (19,15) size 0x0
-      LayoutBlockFlow {HR} at (0,482) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,492) size 769x60
         LayoutBlockFlow (floating) {SPAN} at (0,0) size 48x37 [bgcolor=#C0C0C0]
           LayoutText {#text} at (0,0) size 21x36
@@ -66,7 +62,6 @@
           text run at (0,40) width 559: "aligned with the top of the first line of this paragraph. This is commonly known as \"drop-cap\"."
       LayoutBlockFlow (anonymous) at (0,552) size 769x20
         LayoutBR {BR} at (0,0) size 0x19
-      LayoutBlockFlow {HR} at (0,580) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (floating) {P} at (423,600) size 336x216 [bgcolor=#FFFF00] [border: (3px solid #FF0000)]
         LayoutText {#text} at (8,8) size 320x199
           text run at (8,8) width 320: "This paragraph should be floated to the right, sort of"
@@ -98,7 +93,6 @@
           text run at (0,200) width 95: "floated element."
       LayoutBlockFlow (anonymous) at (0,810) size 769x20
         LayoutBR {BR} at (0,0) size 0x19
-      LayoutBlockFlow {HR} at (0,838) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,848) size 769x28 [bgcolor=#66CCFF] [border: (4px solid #FF0000)]
         LayoutBlockFlow (floating) {DIV} at (425,14) size 330x250 [bgcolor=#FFFF00]
           LayoutBlockFlow {P} at (5,5) size 320x240
@@ -120,7 +114,6 @@
             text run at (0,0) width 255: "See description in the box on the right side"
       LayoutBlockFlow (anonymous) at (0,876) size 769x246
         LayoutBR {BR} at (0,0) size 0x19
-      LayoutBlockFlow {HR} at (0,1130) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (floating) {DIV} at (0,1140) size 192.25x80 [bgcolor=#66CCFF]
         LayoutBlockFlow {P} at (0,0) size 192.25x80
           LayoutText {#text} at (0,0) size 192x79
@@ -141,7 +134,6 @@
           text run at (192,20) width 189: "and a yellow box (on the right)."
       LayoutBlockFlow (anonymous) at (0,1180) size 769x40
         LayoutBR {BR} at (192,0) size 1x19
-      LayoutBlockFlow {HR} at (0,1228) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,1238) size 769x120
         LayoutBlockFlow (floating) {DIV} at (0,0) size 576.75x120 [bgcolor=#66CCFF]
           LayoutBlockFlow (floating) {DIV} at (422.56,0) size 144.19x40 [bgcolor=#FFFF00]
@@ -166,7 +158,6 @@
               text run at (0,100) width 383: "10px right margin, the yellow rectange should have a 10px blue "
               text run at (382,100) width 132: "stripe on its right side."
         LayoutBR {BR} at (576,0) size 1x19
-      LayoutBlockFlow {HR} at (0,1366) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutTable {TABLE} at (0,1376) size 769x1454 [border: (1px outset #808080)]
         LayoutTableSection {TBODY} at (1,1) size 767x1452
           LayoutTableRow {TR} at (0,0) size 767x28
@@ -191,7 +182,6 @@
                   text run at (0,60) width 708: "border or margins on this and the previous element, so the text of the two elements should be very close to each other."
               LayoutBlockFlow (anonymous) at (4,84) size 747x20
                 LayoutBR {BR} at (0,0) size 0x19
-              LayoutBlockFlow {HR} at (4,112) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (anonymous) at (4,122) size 747x100
                 LayoutBlockFlow (floating) {P} at (0,0) size 747x80 [bgcolor=#FFFF00]
                   LayoutText {#text} at (0,0) size 747x79
@@ -203,7 +193,6 @@
                 LayoutText {#text} at (15,80) size 4x19
                   text run at (15,80) width 4: " "
                 LayoutBR {BR} at (19,95) size 0x0
-              LayoutBlockFlow {HR} at (4,230) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (anonymous) at (4,240) size 747x120
                 LayoutBlockFlow (floating) {P} at (0,0) size 373.50x120 [bgcolor=#FFFF00]
                   LayoutText {#text} at (0,0) size 374x119
@@ -217,7 +206,6 @@
                 LayoutText {#text} at (388,0) size 5x19
                   text run at (388,0) width 5: " "
                 LayoutBR {BR} at (392,15) size 1x0
-              LayoutBlockFlow {HR} at (4,368) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (anonymous) at (4,378) size 747x120
                 LayoutBlockFlow (floating) {P} at (373.50,0) size 373.50x120 [bgcolor=#FFFF00]
                   LayoutText {#text} at (0,0) size 373x119
@@ -231,7 +219,6 @@
                 LayoutText {#text} at (15,0) size 4x19
                   text run at (15,0) width 4: " "
                 LayoutBR {BR} at (19,15) size 0x0
-              LayoutBlockFlow {HR} at (4,506) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {P} at (4,516) size 747x60
                 LayoutBlockFlow (floating) {SPAN} at (0,0) size 48x37 [bgcolor=#C0C0C0]
                   LayoutText {#text} at (0,0) size 21x36
@@ -243,7 +230,6 @@
                   text run at (0,40) width 616: "vertically aligned with the top of the first line of this paragraph. This is commonly known as \"drop-cap\"."
               LayoutBlockFlow (anonymous) at (4,576) size 747x20
                 LayoutBR {BR} at (0,0) size 0x19
-              LayoutBlockFlow {HR} at (4,604) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (floating) {P} at (405,624) size 336x216 [bgcolor=#FFFF00] [border: (3px solid #FF0000)]
                 LayoutText {#text} at (8,8) size 320x199
                   text run at (8,8) width 320: "This paragraph should be floated to the right, sort of"
@@ -275,7 +261,6 @@
                   text run at (0,200) width 304: "due to the margin styles set for the floated element."
               LayoutBlockFlow (anonymous) at (4,834) size 747x20
                 LayoutBR {BR} at (0,0) size 0x19
-              LayoutBlockFlow {HR} at (4,862) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (4,872) size 747x28 [bgcolor=#66CCFF] [border: (4px solid #FF0000)]
                 LayoutBlockFlow (floating) {DIV} at (403,14) size 330x250 [bgcolor=#FFFF00]
                   LayoutBlockFlow {P} at (5,5) size 320x240
@@ -297,7 +282,6 @@
                     text run at (0,0) width 255: "See description in the box on the right side"
               LayoutBlockFlow (anonymous) at (4,900) size 747x246
                 LayoutBR {BR} at (0,0) size 0x19
-              LayoutBlockFlow {HR} at (4,1154) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (floating) {DIV} at (4,1164) size 186.75x80 [bgcolor=#66CCFF]
                 LayoutBlockFlow {P} at (0,0) size 186.75x80
                   LayoutText {#text} at (0,0) size 186x79
@@ -319,7 +303,6 @@
                   text run at (213,20) width 189: "and a yellow box (on the right)."
               LayoutBlockFlow (anonymous) at (4,1204) size 747x40
                 LayoutBR {BR} at (186,0) size 1x19
-              LayoutBlockFlow {HR} at (4,1252) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow (anonymous) at (4,1262) size 747x140
                 LayoutBlockFlow (floating) {DIV} at (0,0) size 560.25x140 [bgcolor=#66CCFF]
                   LayoutBlockFlow (floating) {DIV} at (410.19,0) size 140.06x40 [bgcolor=#FFFF00]
@@ -345,4 +328,39 @@
                       text run at (455,100) width 105: "stripe on its right"
                       text run at (0,120) width 28: "side."
                 LayoutBR {BR} at (560,0) size 1x19
-              LayoutBlockFlow {HR} at (4,1410) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (8,116) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,108) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,234) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,226) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,352) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,344) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,490) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,482) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,588) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,580) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,846) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,838) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1138) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1130) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1236) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1228) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1374) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1366) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (25,1525) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,112) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1643) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,230) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1781) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,368) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1919) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,506) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2017) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,604) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2275) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,862) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2567) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1154) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2665) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1252) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2823) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1410) size 747x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/height-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/height-expected.txt
index 51db054c..f58c5ead 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/height-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/height-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 168: ".two {height: 100px;}"
           text run at (168,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,107) size 769x50
         LayoutImage {IMG} at (0,0) size 50x50
         LayoutText {#text} at (0,0) size 0x0
@@ -74,3 +73,5 @@
                     text run at (109,23) width 48: "height"
                 LayoutText {#text} at (157,20) size 65x19
                   text run at (157,20) width 65: " property)."
+layer at (8,105) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin-expected.txt
index 2823f70..4d18d48 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin-expected.txt
@@ -22,7 +22,6 @@
           text run at (168,80) width 0: " "
           text run at (0,96) width 360: ".six {margin: -10px; background-color: aqua;}"
           text run at (360,96) width 0: " "
-      LayoutBlockFlow {HR} at (0,161) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,179) size 784x40
         LayoutText {#text} at (0,0) size 755x39
           text run at (0,0) width 755: "NOTE: The following tests are separated by class-zero paragraphs, so as to prevent margin-collapsing as described in section"
@@ -163,3 +162,5 @@
               LayoutBlockFlow {P} at (4,1207) size 762x20 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 193x19
                   text run at (0,0) width 193: "This element has a class of zero."
+layer at (8,169) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_bottom-expected.txt
index 33ce5cd..69a6090 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_bottom-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_bottom-expected.txt
@@ -25,7 +25,6 @@
           text run at (0,112) width 176: "P, UL {margin-top: 0;}"
           text run at (176,112) width 0: " "
           text run at (0,128) width 0: " "
-      LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,203) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 193x19
           text run at (0,0) width 193: "This element has a class of zero."
@@ -148,3 +147,5 @@
               LayoutBlockFlow {P} at (4,763.75) size 747x20 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 221x19
                   text run at (0,0) width 221: "This element also has a class of zero."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_bottom_inline-expected.txt
index 4dfea35..d817719 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_bottom_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_bottom_inline-expected.txt
@@ -12,7 +12,6 @@
           text run at (408,0) width 0: " "
           text run at (0,16) width 416: ".two {margin-bottom: -10px; background-color: aqua;}"
           text run at (416,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,99) size 784x60 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 456x19
           text run at (0,0) width 372: "This element is unstyled save for a background color of gray.. "
@@ -93,3 +92,5 @@
                   text run at (240,20) width 9: ". "
                   text run at (248,20) width 497: "Margins on inline elements does not affect line-height calculations, so all lines in this"
                   text run at (0,40) width 247: "element should have the same line-height."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_inline-expected.txt
index a3a9226..6ab4520bf 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_inline-expected.txt
@@ -14,7 +14,6 @@
           text run at (352,16) width 0: " "
           text run at (0,32) width 360: ".two {margin: -10px; background-color: aqua;}"
           text run at (360,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,107) size 784x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 193x19
           text run at (0,0) width 193: "This element has a class of zero."
@@ -121,3 +120,5 @@
               LayoutBlockFlow {P} at (4,268) size 762x20 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 193x19
                   text run at (0,0) width 193: "This element has a class of zero."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_left-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_left-expected.txt
index 32821585..a371e1b 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_left-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_left-expected.txt
@@ -20,7 +20,6 @@
           text run at (392,64) width 0: " "
           text run at (0,80) width 408: ".five {margin-left: -10px; background-color: aqua;}"
           text run at (408,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 193x19
           text run at (0,0) width 193: "This element has a class of zero."
@@ -117,3 +116,5 @@
                   text run at (80,20) width 369: "In all other respects, however, the element should be normal. "
                   text run at (448,20) width 269: "No styles have been applied to it besides the"
                   text run at (0,40) width 277: "negative left margin and the background color."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_left_inline-expected.txt
index 2043f040..4e11b88c 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_left_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_left_inline-expected.txt
@@ -12,7 +12,6 @@
           text run at (392,0) width 0: " "
           text run at (0,16) width 400: ".two {margin-left: -10px; background-color: aqua;}"
           text run at (400,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,99) size 784x40 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 514x19
           text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
@@ -97,3 +96,5 @@
                     text run at (221,20) width 28: "first"
                 LayoutText {#text} at (248,20) size 217x19
                   text run at (248,20) width 217: " line in which the inline box appears."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_right-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_right-expected.txt
index 573160d34..a98c349 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_right-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_right-expected.txt
@@ -20,7 +20,6 @@
           text run at (552,64) width 0: " "
           text run at (0,80) width 416: ".five {margin-right: -10px; background-color: aqua;}"
           text run at (416,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 784x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (591,0) size 193x19
           text run at (591,0) width 193: "This element has a class of zero."
@@ -116,3 +115,5 @@
                   text run at (80,20) width 369: "In all other respects, however, the element should be normal. "
                   text run at (448,20) width 322: "No styles have been applied to it besides the negative"
                   text run at (0,40) width 232: "right margin and the background color."
+layer at (8,153) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_right_inline-expected.txt
index 65fa5f9..ccfdadd 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_right_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_right_inline-expected.txt
@@ -12,7 +12,6 @@
           text run at (552,0) width 0: " "
           text run at (0,16) width 408: ".two {margin-right: -10px; background-color: aqua;}"
           text run at (408,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,99) size 784x40 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 514x19
           text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
@@ -97,3 +96,5 @@
                     text run at (229,20) width 25: "last"
                 LayoutText {#text} at (253,20) size 217x19
                   text run at (253,20) width 217: " line in which the inline box appears."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_top-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_top-expected.txt
index 5da548c..5c659a8 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_top-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_top-expected.txt
@@ -24,7 +24,6 @@
           text run at (392,96) width 0: " "
           text run at (0,112) width 200: "P, UL {margin-bottom: 0;}"
           text run at (200,112) width 0: " "
-      LayoutBlockFlow {HR} at (0,174) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,184) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 193x19
           text run at (0,0) width 193: "This element has a class of zero."
@@ -135,3 +134,5 @@
                   text run at (0,20) width 468: "No other styles have been applied to it besides a light blue background color. "
                   text run at (467,20) width 257: "In all other respects, the element should be"
                   text run at (0,40) width 45: "normal."
+layer at (8,182) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,174) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_top_inline-expected.txt
index 36fb584..d4edea4 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_top_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/margin_top_inline-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 392: ".two {margin-top: -10px; background-color: aqua;}"
           text run at (392,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 784x60 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 452x19
           text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
@@ -96,3 +95,5 @@
                   text run at (268,20) width 9: ". "
                   text run at (276,20) width 484: "Margins on inline elements do not affect line-height calculations, so all lines in this"
                   text run at (0,40) width 247: "element should have the same line-height."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding-expected.txt
index 02a02e8..346335b 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding-expected.txt
@@ -20,7 +20,6 @@
           text run at (360,64) width 0: " "
           text run at (0,80) width 376: ".five {padding: -20px; background-color: aqua;}"
           text run at (376,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 193x19
           text run at (0,0) width 193: "This element has a class of zero."
@@ -89,3 +88,5 @@
                   text run at (0,0) width 510: "This element should have no padding, since negative padding values are not allowed. "
                   text run at (510,0) width 223: "Both the content background and the"
                   text run at (0,20) width 259: "normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_bottom-expected.txt
index ceb454b..8c24c1b 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_bottom-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_bottom-expected.txt
@@ -20,7 +20,6 @@
           text run at (416,64) width 0: " "
           text run at (0,80) width 432: ".five {padding-bottom: -20px; background-color: aqua;}"
           text run at (432,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 193x19
           text run at (0,0) width 193: "This element has a class of zero."
@@ -97,3 +96,5 @@
                   text run at (0,0) width 557: "This element should have no bottom padding, since negative padding values are not allowed. "
                   text run at (557,0) width 175: "Both the content background"
                   text run at (0,20) width 307: "and the normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_bottom_inline-expected.txt
index cebf1c0..363091c5 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_bottom_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_bottom_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 424: ".two {padding-bottom: -10px; background-color: aqua;}"
           text run at (424,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x80 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 452x19
           text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
@@ -98,3 +97,5 @@
                   text run at (497,20) width 8: ". "
                   text run at (505,20) width 251: "Padding on inline elements does not affect"
                   text run at (0,40) width 492: "line-height calculations, so all lines in this element should have the same line-height."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_inline-expected.txt
index e55ae5d3..f673b082 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_inline-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 368: ".two {padding: -10px; background-color: aqua;}"
           text run at (368,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 193x19
           text run at (0,0) width 193: "This element has a class of zero."
@@ -124,3 +123,5 @@
               LayoutBlockFlow {P} at (4,288) size 747x20 [bgcolor=#C0C0C0]
                 LayoutText {#text} at (0,0) size 193x19
                   text run at (0,0) width 193: "This element has a class of zero."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_left-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_left-expected.txt
index 4e3d5688..968c6e9 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_left-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_left-expected.txt
@@ -20,7 +20,6 @@
           text run at (400,64) width 0: " "
           text run at (0,80) width 416: ".five {padding-left: -20px; background-color: aqua;}"
           text run at (416,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 193x19
           text run at (0,0) width 193: "This element has a class of zero."
@@ -113,3 +112,5 @@
                   text run at (0,0) width 532: "This element should have no left padding, since negative padding values are not allowed. "
                   text run at (532,0) width 201: "Both the content background and"
                   text run at (0,20) width 281: "the normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_left_inline-expected.txt
index 8cdb16f9..6af1111 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_left_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_left_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 408: ".two {padding-left: -10px; background-color: aqua;}"
           text run at (408,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x40 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 514x19
           text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
@@ -98,3 +97,5 @@
                     text run at (437,20) width 27: "first"
                 LayoutText {#text} at (464,20) size 216x19
                   text run at (464,20) width 216: " line in which the inline box appears."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_right-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_right-expected.txt
index 188dd69..a7445fe0 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_right-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_right-expected.txt
@@ -20,7 +20,6 @@
           text run at (560,64) width 0: " "
           text run at (0,80) width 576: ".five {padding-right: -20px; text-align: right; background-color: aqua;}"
           text run at (576,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 193x19
           text run at (0,0) width 193: "This element has a class of zero."
@@ -128,3 +127,5 @@
                   text run at (25,20) width 285: "the normal padding should be aqua (light blue). "
                   text run at (310,20) width 437: "The text has been right-aligned in order to make the lack of right padding"
                   text run at (668,40) width 79: "easier to see."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_right_inline-expected.txt
index 6fa9ae3..028b1b0 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_right_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_right_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 568: ".two {padding-right: -10px; text-align: right; background-color: aqua;}"
           text run at (568,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x40 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 514x19
           text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
@@ -98,3 +97,5 @@
                     text run at (472,20) width 24: "last"
                 LayoutText {#text} at (496,20) size 216x19
                   text run at (496,20) width 216: " line in which the inline box appears."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_top-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_top-expected.txt
index 9bd4dd5..b546a90 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_top-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_top-expected.txt
@@ -20,7 +20,6 @@
           text run at (392,64) width 0: " "
           text run at (0,80) width 408: ".five {padding-top: -20px; background-color: aqua;}"
           text run at (408,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
         LayoutText {#text} at (0,0) size 193x19
           text run at (0,0) width 193: "This element has a class of zero."
@@ -91,3 +90,5 @@
                   text run at (0,0) width 534: "This element should have no top padding, since negative padding values are not allowed. "
                   text run at (534,0) width 201: "Both the content background and"
                   text run at (0,20) width 281: "the normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_top_inline-expected.txt
index 83d2299..c488791 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_top_inline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/padding_top_inline-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 400: ".two {padding-top: -10px; background-color: aqua;}"
           text run at (400,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x80 [bgcolor=#808080]
         LayoutText {#text} at (0,0) size 452x19
           text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
@@ -98,3 +97,5 @@
                   text run at (474,20) width 8: ". "
                   text run at (482,20) width 251: "Padding on inline elements does not affect"
                   text run at (0,40) width 492: "line-height calculations, so all lines in this element should have the same line-height."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/width-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/width-expected.txt
index a50b2f2..40613e8 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/width-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/box_properties/width-expected.txt
@@ -14,7 +14,6 @@
           text run at (144,16) width 0: " "
           text run at (0,32) width 152: "TABLE {width: 50%;}"
           text run at (152,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,107) size 769x50
         LayoutImage {IMG} at (0,0) size 50x50
         LayoutText {#text} at (0,0) size 0x0
@@ -83,3 +82,5 @@
                   text run at (0,160) width 176: "property without the need for"
                   text run at (0,180) width 172: "the user to resize the viewing"
                   text run at (0,200) width 51: "window."
+layer at (8,105) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/cascade/cascade_order-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/cascade/cascade_order-expected.txt
index 5e06598..28833e3 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/cascade/cascade_order-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/cascade/cascade_order-expected.txt
@@ -29,7 +29,6 @@
           text run at (0,144) width 296: ".one {text-decoration: line-through;}"
           text run at (296,144) width 0: " "
           text run at (0,160) width 0: " "
-      LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,243) size 769x160
         LayoutListItem {LI} at (40,0) size 729x20 [color=#0000FF]
           LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
@@ -140,3 +139,5 @@
               LayoutBlockFlow {P} at (4,252) size 652x20
                 LayoutText {#text} at (0,0) size 652x19
                   text run at (0,0) width 652: "This text should be stricken (overriding the imported underline; only works if LINKed sheets are supported)."
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/cascade/important-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/cascade/important-expected.txt
index c160ca6..af35e590 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/cascade/important-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/cascade/important-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 176: "P#id1 {color: purple;}"
           text run at (176,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 784x40 [color=#008000]
         LayoutText {#text} at (0,0) size 755x39
           text run at (0,0) width 755: "This sentence should be green, because the declaration marked important should override any other normal declaration for the"
@@ -66,3 +65,5 @@
                   text run at (0,0) width 574: "This sentence should also be green, even though it has a STYLE attribute declaring it to be red. "
                   text run at (574,0) width 167: "This is because declarations"
                   text run at (0,20) width 535: "marked important have more weight than normal declarations given in a STYLE attribute."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/classification/display-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/classification/display-expected.txt
index 5871082..de3e0b8 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/classification/display-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/classification/display-expected.txt
@@ -18,7 +18,6 @@
           text run at (272,48) width 0: " "
           text run at (0,64) width 152: "I {display: block;}"
           text run at (152,64) width 0: " "
-      LayoutBlockFlow {HR} at (0,129) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,147) size 769x20
         LayoutText {#text} at (0,0) size 279x19
           text run at (0,0) width 279: "This sentence should be a block-level element."
@@ -128,3 +127,5 @@
                 LayoutBlockFlow (anonymous) at (0,40) size 747x20
                   LayoutText {#text} at (0,0) size 194x19
                     text run at (0,0) width 194: "should be a block-level element."
+layer at (8,137) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,129) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style-expected.txt
index b9227362b..4a70661 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style-expected.txt
@@ -12,7 +12,6 @@
           text run at (304,0) width 0: " "
           text run at (0,16) width 496: ".two {list-style: url(../resources/oransqr.gif) disc outside;}"
           text run at (496,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,99) size 784x40
         LayoutListItem {LI} at (40,0) size 744x40
           LayoutListMarker (anonymous) at (0,0) size 19x19: "A"
@@ -51,3 +50,5 @@
                     text run at (0,0) width 448: "The text in this item have an orange square for its bullet; failing that, a disc. "
                     text run at (448,0) width 247: "Also, the bullet should be outside the text"
                     text run at (0,20) width 248: "block, as the list has been set to 'outside'."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style_image-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style_image-expected.txt
index 08b22d62d..4ef4e03 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style_image-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style_image-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 240: ".two {list-style-image: none;}"
           text run at (240,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,115) size 784x60
         LayoutListItem {LI} at (40,0) size 744x20
           LayoutListMarker (anonymous) at (-22,0) size 15x15
@@ -78,3 +77,5 @@
                   LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
                   LayoutText {#text} at (0,0) size 223x19
                     text run at (0,0) width 223: "...standard list markers for each item."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style_position-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style_position-expected.txt
index 44c0aa43..2518c2d8 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style_position-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style_position-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 280: ".two {list-style-position: inside;}"
           text run at (280,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,115) size 784x40
         LayoutListItem {LI} at (40,0) size 744x40
           LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
@@ -50,3 +49,5 @@
                   LayoutText {#text} at (22,0) size 714x39
                     text run at (22,0) width 692: "The text in this item should not behave as expected; that is, it should line up with the bullet on the left margin, leaving"
                     text run at (0,20) width 204: "no blank space beneath the bullet."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style_type-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style_type-expected.txt
index d451fb9..0c74994 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style_type-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/classification/list_style_type-expected.txt
@@ -27,7 +27,6 @@
           text run at (0,128) width 240: ".nine {list-style-type: none;}"
           text run at (240,128) width 0: " "
           text run at (0,144) width 0: " "
-      LayoutBlockFlow {HR} at (0,209) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,227) size 769x60
         LayoutListItem {LI} at (40,0) size 729x20
           LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
@@ -268,3 +267,5 @@
                 LayoutListItem {LI} at (40,40) size 264x20
                   LayoutText {#text} at (0,0) size 141x19
                     text run at (0,0) width 141: "...nothing for each item."
+layer at (8,217) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,209) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/classification/white_space-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/classification/white_space-expected.txt
index abdcddd..a224d45 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/classification/white_space-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/classification/white_space-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 232: ".three {white-space: normal;}"
           text run at (232,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 784x100
         LayoutText {#text} at (0,0) size 543x99
           text run at (0,0) width 0: " "
@@ -78,3 +77,5 @@
                 LayoutText {#text} at (433,20) size 4x19
                   text run at (433,20) width 4: "."
                   text run at (437,20) width 0: " "
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background-expected.txt
index 285f9814..97dca62 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background-expected.txt
@@ -16,7 +16,6 @@
           text run at (592,32) width 0: " "
           text run at (0,48) width 592: ".three {background: lime url(../resources/oransqr.gif) repeat-x left top;}"
           text run at (592,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x60
         LayoutText {#text} at (0,0) size 695x19
           text run at (0,0) width 695: "This document should have a green background with an orange strip running across the entire top of the page, since "
@@ -87,3 +86,5 @@
                   text run at (0,20) width 721: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in handling"
                   text run at (0,40) width 115: "these declarations. "
                   text run at (115,40) width 294: "Hey, I didn't say the page would be pretty, did I?"
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_attachment-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_attachment-expected.txt
index bf4c210..3faed43 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_attachment-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_attachment-expected.txt
@@ -11,7 +11,6 @@
           text run at (0,0) width 872: "BODY {background-image: url(../resources/bg.gif); background-repeat: repeat-x; background-attachment: fixed;}"
           text run at (872,0) width 0: " "
           text run at (0,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,99) size 784x100
         LayoutText {#text} at (0,0) size 769x99
           text run at (0,0) width 768: "This document should have a green grid-pattern line across the top of the page (or at least a tiled background) which does NOT"
@@ -27,8 +26,6 @@
         LayoutText {#text} at (0,0) size 484x19
           text run at (0,0) width 397: "In fact, why not the relevant section from the CSS1 specification? "
           text run at (397,0) width 87: "A capital idea."
-      LayoutBlockFlow {HR} at (0,251) size 784x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow {HR} at (0,261) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {H4} at (0,284.27) size 784x20
         LayoutInline {A} at (0,0) size 213x19
           LayoutText {#text} at (0,0) size 213x19
@@ -114,8 +111,6 @@
                 LayoutText {#text} at (0,0) size 484x19
                   text run at (0,0) width 397: "In fact, why not the relevant section from the CSS1 specification? "
                   text run at (397,0) width 87: "A capital idea."
-              LayoutBlockFlow {HR} at (4,156) size 762x2 [border: (1px inset #EEEEEE)]
-              LayoutBlockFlow {HR} at (4,166) size 762x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H4} at (4,189.27) size 762x20
                 LayoutInline {A} at (0,0) size 213x19
                   LayoutText {#text} at (0,0) size 213x19
@@ -175,3 +170,13 @@
                 LayoutText {#text} at (71,0) size 759x39
                   text run at (71,0) width 688: " UAs may treat 'fixed' as 'scroll'. However, it is recommended they interpret 'fixed' correctly, at least on the HTML"
                   text run at (0,20) width 728: "and BODY elements, since there is no way for an author to provide an image only for those browsers that support 'fixed'."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,259) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,251) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,269) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,261) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (25,843) size 762x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,156) size 762x2 [border: (1px inset #EEEEEE)]
+layer at (25,853) size 762x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,166) size 762x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_color-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_color-expected.txt
index 26a2db9..f088b188 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_color-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_color-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 296: ".two {background-color: transparent;}"
           text run at (296,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 784x20 [bgcolor=#008000]
         LayoutText {#text} at (0,0) size 263x19
           text run at (0,0) width 263: "This element's background should be green."
@@ -82,3 +81,5 @@
                 LayoutText {#text} at (0,0) size 702x19
                   text run at (0,0) width 432: "This element should allow the document background to \"shine through.\" "
                   text run at (432,0) width 270: "There should be no green backgrounds here!"
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_image-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_image-expected.txt
index 6e7c95d..47586509 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_image-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_image-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 240: ".one {background-image: none;}"
           text run at (240,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x40
         LayoutText {#text} at (0,0) size 779x39
           text run at (0,0) width 482: "This sentence should be backed by an image-- a green grid pattern, in this case. "
@@ -89,3 +88,5 @@
                 LayoutText {#text} at (0,0) size 727x39
                   text run at (0,0) width 727: "This sentence should NOT be backed by a repeated green-grid image, allowing the page's background to \"shine through\""
                   text run at (0,20) width 46: "instead."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_position-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_position-expected.txt
index ef0a9da6..f927518 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_position-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_position-expected.txt
@@ -41,7 +41,6 @@
           text run at (0,240) width 488: "       background-repeat: no-repeat; background-color: aqua;}"
           text run at (488,240) width 0: " "
           text run at (0,256) width 0: " "
-      LayoutBlockFlow {HR} at (0,321) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,339) size 769x20
         LayoutText {#text} at (0,0) size 472x19
           text run at (0,0) width 472: "This document should have a single, small green image in its upper right corner."
@@ -144,3 +143,5 @@
                   text run at (0,40) width 76: "the element. "
                   text run at (76,40) width 624: "The background color will make it easier to determine the edges of the paragraph, which should assist in"
                   text run at (0,60) width 112: "evaluating this test."
+layer at (8,329) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,321) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_repeat-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_repeat-expected.txt
index 686bcc34..9b3402d 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_repeat-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/background_repeat-expected.txt
@@ -37,7 +37,6 @@
           text run at (0,208) width 240: "       background-color: red;}"
           text run at (240,208) width 0: " "
           text run at (0,224) width 0: " "
-      LayoutBlockFlow {HR} at (0,289) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,307) size 784x60
         LayoutText {#text} at (0,0) size 744x19
           text run at (0,0) width 744: "This sentence should have an orange stripe repeated in the \"y\" direction, starting at the upper left corner (since the default for"
@@ -305,3 +304,5 @@
                   text run at (86,80) width 226: "This ought to be enough text, though. "
                   text run at (312,80) width 440: "A background color is present, although if it is visible, then the image may"
                   text run at (0,100) width 173: "not have been tiled correctly."
+layer at (8,297) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,289) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/color-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/color-expected.txt
index 12ded501..897ec93 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/color-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/color_and_background/color-expected.txt
@@ -11,7 +11,6 @@
           text run at (0,0) width 160: ".one {color: green;}"
           text run at (160,0) width 0: " "
           text run at (0,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,99) size 784x20 [color=#008000]
         LayoutText {#text} at (0,0) size 184x19
           text run at (0,0) width 184: "This sentence should be green."
@@ -36,3 +35,5 @@
               LayoutBlockFlow {P} at (4,40) size 184x20 [color=#008000]
                 LayoutText {#text} at (0,0) size 184x19
                   text run at (0,0) width 184: "This sentence should be green."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/conformance/forward_compatible_parsing-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/conformance/forward_compatible_parsing-expected.txt
index ef5e0f1..ec5ffd6 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/conformance/forward_compatible_parsing-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/conformance/forward_compatible_parsing-expected.txt
@@ -113,7 +113,6 @@
           text run at (0,832) width 208: "P.twentyfour {color: red;}"
           text run at (208,832) width 0: " "
           text run at (0,848) width 0: " "
-      LayoutBlockFlow {HR} at (0,913) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,931) size 769x20 [color=#008000]
         LayoutText {#text} at (0,0) size 462x19
           text run at (0,0) width 462: "This paragraph should be green, because only the rotation should be ignored."
@@ -540,3 +539,5 @@
                 LayoutText {#text} at (0,0) size 722x39
                   text run at (0,0) width 722: "This paragraph should be black, because the color declaration after the previous ruleset should be considered part of the"
                   text run at (0,20) width 588: "selector for this ruleset, and this ruleset therefore has an invalid selector and should not be applied."
+layer at (8,921) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,913) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/canvas-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/canvas-expected.txt
index 608edbb6..56881719 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/canvas-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/canvas-expected.txt
@@ -12,7 +12,6 @@
           text run at (240,0) width 0: " "
           text run at (0,16) width 552: "BODY {background-color: green; background-image: none; margin: 25px;}"
           text run at (552,16) width 0: " "
-      LayoutBlockFlow {HR} at (0,81) size 750x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,99) size 750x60
         LayoutText {#text} at (0,0) size 735x59
           text run at (0,0) width 368: "The body of this document should have a green background. "
@@ -39,3 +38,5 @@
                   text run at (0,20) width 409: "background set for the HTML element should surround the BODY. "
                   text run at (408,20) width 310: "If the BODY content is significantly shorter than the"
                   text run at (0,40) width 474: "browser's window height, then the bottom border may be larger than 25 pixels."
+layer at (25,106) size 750x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 750x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/floating_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/floating_elements-expected.txt
index 68b4068..56157fac 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/floating_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/floating_elements-expected.txt
@@ -25,13 +25,11 @@
           text run at (0,112) width 176: ".right {float: right;}"
           text run at (176,112) width 0: " "
           text run at (0,128) width 0: " "
-      LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,211) size 769x40
         LayoutText {#text} at (0,0) size 731x39
           text run at (0,0) width 645: "On this test page, each test is performed once with floating paragraphs, and then again with floating images. "
           text run at (645,0) width 86: "Other than the"
           text run at (0,20) width 690: "substitution of images for pargraphs, the structure of the test is exactly the same, including the direction of the floats."
-      LayoutBlockFlow {HR} at (24,275) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,301) size 765x90 [border: (5px solid #800080)]
         LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
           LayoutText {#text} at (17,17) size 159x39
@@ -48,7 +46,6 @@
           text run at (199,25) width 358: "DIV should not go beyond the left or right inner edge of this"
           text run at (199,45) width 350: "DIV, which means that the borders of the floating elements"
           text run at (199,65) width 324: "should not overlap the top or side borders of the DIV."
-      LayoutBlockFlow {HR} at (364.28,400) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,410) size 765x50 [border: (5px solid #800080)]
         LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
         LayoutImage (floating) {IMG} at (745,5) size 15x36 [border: (3px solid #000000)]
@@ -56,7 +53,6 @@
           text run at (20,5) width 162: "This is text within the DIV. "
           text run at (181,5) width 541: "The floating images within this DIV should not go beyond the left or right inner edge of this"
           text run at (20,25) width 667: "DIV, which means that the borders of the floating images should not overlap the top or side borders of the DIV."
-      LayoutBlockFlow {HR} at (24,484) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,510) size 442x230 [border: (5px solid #800080)]
         LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
           LayoutText {#text} at (17,17) size 157x39
@@ -85,7 +81,6 @@
           text run at (36,185) width 288: "In addition, they should not overlap each other. "
           text run at (323,185) width 77: "The first two"
           text run at (5,205) width 414: "should be side by side, whereas the third should be on the next \"line.\""
-      LayoutBlockFlow {HR} at (364.28,748) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,758) size 360x210 [border: (5px solid #800080)]
         LayoutImage (floating) {IMG} at (5,5) size 156x36 [border: (3px solid #000000)]
         LayoutImage (floating) {IMG} at (161,5) size 156x36 [border: (3px solid #000000)]
@@ -103,7 +98,6 @@
           text run at (291,145) width 50: "The first"
           text run at (5,165) width 333: "two should be side by side, whereas the third should be"
           text run at (5,185) width 104: "on the next \"line.\""
-      LayoutBlockFlow {HR} at (24,992) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,1018) size 314x364 [border: (5px solid #800080)]
         LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
           LayoutText {#text} at (17,17) size 159x39
@@ -134,7 +128,6 @@
           text run at (5,299) width 303: "side-by-side, but instead the first should be floated"
           text run at (5,319) width 293: "left, and the second floated to the right below the"
           text run at (5,339) width 26: "first."
-      LayoutBlockFlow {HR} at (364.28,1390) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,1400) size 410x226 [border: (5px solid #800080)]
         LayoutImage (floating) {IMG} at (5,5) size 256x36 [border: (3px solid #000000)]
         LayoutImage (floating) {IMG} at (149,41) size 256x36 [border: (3px solid #000000)]
@@ -152,7 +145,6 @@
           text run at (254,161) width 135: "In addition, the floated"
           text run at (5,181) width 388: "images should not be side-by-side, but instead the first should be"
           text run at (5,201) width 368: "floated left, and the second floated to the right below the first."
-      LayoutBlockFlow {HR} at (24,1650) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,1676) size 765x130 [border: (5px solid #800080)]
         LayoutBlockFlow (floating) {P} at (566,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
           LayoutText {#text} at (17,17) size 159x39
@@ -172,7 +164,6 @@
           text run at (529,65) width 13: "In"
           text run at (199,85) width 551: "addition, the top of the left-floating box should not be higher than the top of the right-floating"
           text run at (5,105) width 27: "box."
-      LayoutBlockFlow {HR} at (364.28,1814) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,1824) size 765x70 [border: (5px solid #800080)]
         LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
         LayoutImage (floating) {IMG} at (745,5) size 15x36 [border: (3px solid #000000)]
@@ -182,7 +173,6 @@
           text run at (20,25) width 668: "means that the borders of the floating images should not overlap the top or side borders of the DIV in any way. "
           text run at (687,25) width 13: "In"
           text run at (5,45) width 606: "addition, the top of the left-floating image should not be higher than the top of the right-floating image."
-      LayoutBlockFlow {HR} at (24,1918) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,1944) size 765x130 [border: (5px solid #800080)]
         LayoutText {#text} at (199,5) size 170x19
           text run at (199,5) width 162: "This is text within the DIV. "
@@ -207,7 +197,6 @@
           text run at (5,85) width 225: "floating elements occur in the source. "
           text run at (230,85) width 313: "In order to mark these points clearly, an asterisk has"
           text run at (5,105) width 279: "been inserted just before each floated element."
-      LayoutBlockFlow {HR} at (364.28,2083) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2093) size 765x90 [border: (5px solid #800080)]
         LayoutText {#text} at (20,5) size 170x19
           text run at (20,5) width 162: "This is text within the DIV. "
@@ -223,7 +212,6 @@
           text run at (5,45) width 560: "of the inline element containing the content just before the floating images occur in the source. "
           text run at (565,45) width 175: "In order to mark these points"
           text run at (5,65) width 406: "clearly, an asterisk has been inserted just before each floated image."
-      LayoutBlockFlow {HR} at (24,2207) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2233) size 765x230 [border: (5px solid #800080)]
         LayoutText {#text} at (199,5) size 170x19
           text run at (199,5) width 162: "This is text within the DIV. "
@@ -268,7 +256,6 @@
           text run at (373,165) width 379: "If a line has room for a floated element, then the element should"
           text run at (199,185) width 517: "float so that its top is aligned with the top of the line-box in which the asterisk appears."
           text run at (199,205) width 380: "Otherwise, its top should align with the top of the next line-box."
-      LayoutBlockFlow {HR} at (364.28,2472) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2482) size 765x130 [border: (5px solid #800080)]
         LayoutText {#text} at (20,5) size 170x19
           text run at (20,5) width 162: "This is text within the DIV. "
@@ -294,7 +281,6 @@
           text run at (569,65) width 182: "If a line has room for a floated"
           text run at (5,85) width 693: "image, then the image should float so that its top is aligned with the top of the line-box in which the asterisk appears."
           text run at (5,105) width 380: "Otherwise, its top should align with the top of the next line-box."
-      LayoutBlockFlow {HR} at (24,2636) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2662) size 490x310 [border: (5px solid #800080)]
         LayoutText {#text} at (199,5) size 50x19
           text run at (199,5) width 50: "This is *"
@@ -326,7 +312,6 @@
           text run at (5,245) width 478: "floated elements to align with the top of the line-box following the insertion point"
           text run at (5,265) width 456: "of the floated element to avoid floating elements appearing before text which"
           text run at (5,285) width 213: "precedes it in the source document."
-      LayoutBlockFlow {HR} at (364.28,2980) size 40.44x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (2,2990) size 490x230 [border: (5px solid #800080)]
         LayoutText {#text} at (20,5) size 50x19
           text run at (20,5) width 50: "This is *"
@@ -349,7 +334,6 @@
           text run at (5,165) width 452: "the top of floated elements to align with the top of the line-box following the"
           text run at (5,185) width 479: "insertion point of the floated element to avoid floating elements appearing before"
           text run at (5,205) width 278: "text which precedes it in the source document."
-      LayoutBlockFlow {HR} at (24,3244) size 578.75x2 [border: (1px inset #EEEEEE)]
       LayoutTable {TABLE} at (0,3270) size 769x3175 [border: (1px outset #808080)]
         LayoutTableSection {TBODY} at (1,1) size 767x3173
           LayoutTableRow {TR} at (0,0) size 767x28
@@ -367,7 +351,6 @@
                   text run at (0,0) width 645: "On this test page, each test is performed once with floating paragraphs, and then again with floating images. "
                   text run at (645,0) width 86: "Other than the"
                   text run at (0,20) width 690: "substitution of images for pargraphs, the structure of the test is exactly the same, including the direction of the floats."
-              LayoutBlockFlow {HR} at (28,68) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,94) size 743x110 [border: (5px solid #800080)]
                 LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
                   LayoutText {#text} at (17,17) size 159x39
@@ -385,7 +368,6 @@
                   text run at (199,45) width 334: "of this DIV, which means that the borders of the floating"
                   text run at (199,65) width 325: "elements should not overlap the top or side borders of"
                   text run at (5,85) width 51: "the DIV."
-              LayoutBlockFlow {HR} at (357.83,212) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,222) size 743x50 [border: (5px solid #800080)]
                 LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
                 LayoutImage (floating) {IMG} at (723,5) size 15x36 [border: (3px solid #000000)]
@@ -393,7 +375,6 @@
                   text run at (20,5) width 162: "This is text within the DIV. "
                   text run at (181,5) width 541: "The floating images within this DIV should not go beyond the left or right inner edge of this"
                   text run at (20,25) width 667: "DIV, which means that the borders of the floating images should not overlap the top or side borders of the DIV."
-              LayoutBlockFlow {HR} at (28,296) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,322) size 442x230 [border: (5px solid #800080)]
                 LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
                   LayoutText {#text} at (17,17) size 157x39
@@ -422,7 +403,6 @@
                   text run at (36,185) width 288: "In addition, they should not overlap each other. "
                   text run at (323,185) width 77: "The first two"
                   text run at (5,205) width 414: "should be side by side, whereas the third should be on the next \"line.\""
-              LayoutBlockFlow {HR} at (357.83,560) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,570) size 360x210 [border: (5px solid #800080)]
                 LayoutImage (floating) {IMG} at (5,5) size 156x36 [border: (3px solid #000000)]
                 LayoutImage (floating) {IMG} at (161,5) size 156x36 [border: (3px solid #000000)]
@@ -440,7 +420,6 @@
                   text run at (291,145) width 50: "The first"
                   text run at (5,165) width 333: "two should be side by side, whereas the third should be"
                   text run at (5,185) width 104: "on the next \"line.\""
-              LayoutBlockFlow {HR} at (28,804) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,830) size 314x364 [border: (5px solid #800080)]
                 LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
                   LayoutText {#text} at (17,17) size 159x39
@@ -471,7 +450,6 @@
                   text run at (5,299) width 303: "side-by-side, but instead the first should be floated"
                   text run at (5,319) width 293: "left, and the second floated to the right below the"
                   text run at (5,339) width 26: "first."
-              LayoutBlockFlow {HR} at (357.83,1202) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,1212) size 410x226 [border: (5px solid #800080)]
                 LayoutImage (floating) {IMG} at (5,5) size 256x36 [border: (3px solid #000000)]
                 LayoutImage (floating) {IMG} at (149,41) size 256x36 [border: (3px solid #000000)]
@@ -489,7 +467,6 @@
                   text run at (254,161) width 135: "In addition, the floated"
                   text run at (5,181) width 388: "images should not be side-by-side, but instead the first should be"
                   text run at (5,201) width 368: "floated left, and the second floated to the right below the first."
-              LayoutBlockFlow {HR} at (28,1462) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,1488) size 743x130 [border: (5px solid #800080)]
                 LayoutBlockFlow (floating) {P} at (544,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
                   LayoutText {#text} at (17,17) size 159x39
@@ -509,7 +486,6 @@
                   text run at (199,85) width 57: "any way. "
                   text run at (255,85) width 467: "In addition, the top of the left-floating box should not be higher than the top of"
                   text run at (5,105) width 128: "the right-floating box."
-              LayoutBlockFlow {HR} at (357.83,1626) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,1636) size 743x70 [border: (5px solid #800080)]
                 LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
                 LayoutImage (floating) {IMG} at (723,5) size 15x36 [border: (3px solid #000000)]
@@ -519,7 +495,6 @@
                   text run at (20,25) width 668: "means that the borders of the floating images should not overlap the top or side borders of the DIV in any way. "
                   text run at (687,25) width 13: "In"
                   text run at (5,45) width 606: "addition, the top of the left-floating image should not be higher than the top of the right-floating image."
-              LayoutBlockFlow {HR} at (28,1730) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,1756) size 743x130 [border: (5px solid #800080)]
                 LayoutText {#text} at (199,5) size 170x19
                   text run at (199,5) width 162: "This is text within the DIV. "
@@ -544,7 +519,6 @@
                   text run at (5,85) width 315: "just before the floating elements occur in the source. "
                   text run at (320,85) width 221: "In order to mark these points clearly,"
                   text run at (5,105) width 371: "an asterisk has been inserted just before each floated element."
-              LayoutBlockFlow {HR} at (357.83,1895) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,1905) size 743x90 [border: (5px solid #800080)]
                 LayoutText {#text} at (20,5) size 170x19
                   text run at (20,5) width 162: "This is text within the DIV. "
@@ -560,7 +534,6 @@
                   text run at (5,45) width 617: "top edge of the inline element containing the content just before the floating images occur in the source. "
                   text run at (622,45) width 100: "In order to mark"
                   text run at (5,65) width 481: "these points clearly, an asterisk has been inserted just before each floated image."
-              LayoutBlockFlow {HR} at (28,2019) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,2045) size 743x290 [border: (5px solid #800080)]
                 LayoutText {#text} at (199,5) size 170x19
                   text run at (199,5) width 162: "This is text within the DIV. "
@@ -609,7 +582,6 @@
                   text run at (5,245) width 709: "line has room for a floated element, then the element should float so that its top is aligned with the top of the line-box in"
                   text run at (5,265) width 167: "which the asterisk appears. "
                   text run at (172,265) width 380: "Otherwise, its top should align with the top of the next line-box."
-              LayoutBlockFlow {HR} at (357.83,2343) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,2353) size 743x130 [border: (5px solid #800080)]
                 LayoutText {#text} at (20,5) size 170x19
                   text run at (20,5) width 162: "This is text within the DIV. "
@@ -636,7 +608,6 @@
                   text run at (5,85) width 714: "for a floated image, then the image should float so that its top is aligned with the top of the line-box in which the asterisk"
                   text run at (5,105) width 56: "appears. "
                   text run at (61,105) width 380: "Otherwise, its top should align with the top of the next line-box."
-              LayoutBlockFlow {HR} at (28,2507) size 562.25x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,2533) size 490x310 [border: (5px solid #800080)]
                 LayoutText {#text} at (199,5) size 50x19
                   text run at (199,5) width 50: "This is *"
@@ -668,7 +639,6 @@
                   text run at (5,245) width 478: "floated elements to align with the top of the line-box following the insertion point"
                   text run at (5,265) width 456: "of the floated element to avoid floating elements appearing before text which"
                   text run at (5,285) width 213: "precedes it in the source document."
-              LayoutBlockFlow {HR} at (357.83,2851) size 39.34x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (6,2861) size 490x230 [border: (5px solid #800080)]
                 LayoutText {#text} at (20,5) size 50x19
                   text run at (20,5) width 50: "This is *"
@@ -691,4 +661,65 @@
                   text run at (5,165) width 452: "the top of floated elements to align with the top of the line-box following the"
                   text run at (5,185) width 479: "insertion point of the floated element to avoid floating elements appearing before"
                   text run at (5,205) width 278: "text which precedes it in the source document."
-              LayoutBlockFlow {HR} at (28,3115) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (32,283) size 579x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,275) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,408) size 41x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,400) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,492) size 579x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,484) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,756) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,748) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1000) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,992) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,1398) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,1390) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1658) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,1650) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,1822) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,1814) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1926) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,1918) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2091) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2083) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,2215) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,2207) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2480) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2472) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,2644) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,2636) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2988) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2980) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,3252) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,3244) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (49,3375) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,68) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,3519) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,212) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,3603) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,296) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,3867) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,560) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,4111) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,804) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,4509) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1202) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,4769) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,1462) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,4933) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1626) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5037) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,1730) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,5202) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1895) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5326) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,2019) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,5650) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,2343) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5814) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,2507) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,6158) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,2851) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,6422) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,3115) size 562.25x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/height_of_lines-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/height_of_lines-expected.txt
index cc63398c..caae818 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/height_of_lines-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/height_of_lines-expected.txt
@@ -41,7 +41,6 @@
           text run at (0,256) width 320: "     border-width: 10px; margin: -10px;}"
           text run at (320,256) width 0: " "
           text run at (0,272) width 0: " "
-      LayoutBlockFlow {HR} at (0,337) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,353) size 769x464
         LayoutText {#text} at (0,2) size 763x238
           text run at (0,2) width 417: "This paragraph should have a font size of 14px and a line height of 20px. "
@@ -132,3 +131,5 @@
                   text run at (475,424) width 8: ". "
                   text run at (483,424) width 240: "The last image in this paragraph has -10px"
                   text run at (0,466) width 705: "margins set on it, so that should pull the text in toward the image in the vertical direction, and also in the horizontal direction."
+layer at (8,345) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,337) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/inline_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/inline_elements-expected.txt
index 1baebf41..ef1ee75 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/inline_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/inline_elements-expected.txt
@@ -21,7 +21,6 @@
           text run at (0,80) width 192: "          padding: 2pt;}"
           text run at (192,80) width 0: " "
           text run at (0,96) width 0: " "
-      LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,179) size 769x192
         LayoutText {#text} at (0,6) size 179x19
           text run at (0,6) width 179: "This is a paragraph that has a "
@@ -94,3 +93,5 @@
                 LayoutText {#text} at (169,48) size 405x15
                   text run at (169,48) width 3: " "
                   text run at (172,48) width 402: "The line spacing in the whole paragraph should be 12pt, with font-size 10pt."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/replaced_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/replaced_elements-expected.txt
index 3c38ba40..c30297f 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/replaced_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/replaced_elements-expected.txt
@@ -24,7 +24,6 @@
           text run at (200,96) width 0: " "
           text run at (0,112) width 464: "          margin-right: 0; margin-left: auto; width: 50%;}"
           text run at (464,112) width 0: " "
-      LayoutBlockFlow {HR} at (0,177) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,195) size 769x20
         LayoutImage {IMG} at (0,0) size 15x15
         LayoutText {#text} at (15,0) size 411x19
@@ -85,3 +84,5 @@
                   text run at (0,0) width 723: "The above image should be a square resized so its width is 50% of its parent element, and aligned at the right edge of the"
                   text run at (0,20) width 95: "parent element: "
                   text run at (95,20) width 375: "the document body in the first half, and the table in the second."
+layer at (8,185) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,177) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/vertical_formatting-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/vertical_formatting-expected.txt
index 1618335..c7b80db3 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/vertical_formatting-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/formatting_model/vertical_formatting-expected.txt
@@ -47,7 +47,6 @@
           text run at (0,288) width 160: "TABLE {clear: both;}"
           text run at (160,288) width 0: " "
           text run at (0,304) width 0: " "
-      LayoutBlockFlow {HR} at (0,369) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,387) size 769x40
         LayoutText {#text} at (0,0) size 720x39
           text run at (0,0) width 720: "There should be a two-centimeter margin between this paragraph and the next, because adjacent vertical margins should"
@@ -169,3 +168,5 @@
               LayoutBlockFlow {P} at (4,1017) size 747x57.78
                 LayoutText {#text} at (0,38) size 158x19
                   text run at (0,38) width 158: "This is the next paragraph."
+layer at (8,377) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,369) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/anchor-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/anchor-expected.txt
index b5fd0d0..623f025 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/anchor-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/anchor-expected.txt
@@ -19,7 +19,6 @@
           text run at (0,64) width 176: "#one {color: #006600;}"
           text run at (176,64) width 0: " "
           text run at (0,80) width 0: " "
-      LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,163) size 769x20
         LayoutText {#text} at (0,0) size 477x19
           text run at (0,0) width 477: "The following anchors should appear as described; none of them should be red."
@@ -160,3 +159,5 @@
                   text run at (514,0) width 185: "It's a named anchor, and styles"
                   text run at (0,20) width 339: "declared for the A tag are applied to them under CSS1. "
                   text run at (339,20) width 310: "It also should NOT turn orange when clicked upon."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/firstletter-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/firstletter-expected.txt
index 1222f08..8b383a45 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/firstletter-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/firstletter-expected.txt
@@ -18,7 +18,6 @@
           text run at (0,32) width 312: "P.three:first-letter {font-size: 350%;}"
           text run at (312,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x60
         LayoutInline {<pseudo:first-letter>} at (0,0) size 9x19 [color=#800000]
           LayoutTextFragment (anonymous) at (0,0) size 9x19
@@ -91,3 +90,5 @@
                   text run at (0,66) width 560: "mark and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon. "
                   text run at (560,66) width 171: "Note that this is not required"
                   text run at (0,86) width 220: "under CSS1, but it is recommended."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/firstline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/firstline-expected.txt
index ca951a6..8600fd1 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/firstline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/firstline-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 360: ".three:first-line {font-variant: small-caps;}"
           text run at (360,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x60
         LayoutText {#text} at (0,0) size 758x59
           text run at (0,0) width 400: "The first line of this paragraph, and only that one, should be green. "
@@ -81,3 +80,5 @@
                   text run at (296,40) width 218: " is not supported by your browser). "
                   text run at (514,40) width 195: "This is extra text included for the"
                   text run at (0,60) width 447: "purposes of making the paragraph long enough to have more than one line."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/multiple_pseudo_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/multiple_pseudo_elements-expected.txt
index 263f538..dd895dd 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/multiple_pseudo_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/multiple_pseudo_elements-expected.txt
@@ -24,7 +24,6 @@
           text run at (0,80) width 368: "P.three:first-line {font-variant: small-caps;}"
           text run at (368,80) width 0: " "
           text run at (0,96) width 0: " "
-      LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,179) size 769x60
         LayoutInline {<pseudo:first-letter>} at (0,0) size 9x19 [color=#800000]
           LayoutTextFragment (anonymous) at (0,0) size 9x19
@@ -100,3 +99,5 @@
                   text run at (0,86) width 720: "Note that the inclusion of both the quotation mark and the 'W' in the first-letter style is not required under CSS1, but it is"
                   text run at (0,106) width 94: "recommended. "
                   text run at (94,106) width 426: "In addition, the entire first line should be in a small-caps font and green."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/pseudo_elements_in_selectors-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/pseudo_elements_in_selectors-expected.txt
index 5e6dbd9..3db0314 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/pseudo_elements_in_selectors-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/pseudo/pseudo_elements_in_selectors-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 256: "P:first-line.three {color: red;}"
           text run at (256,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x40
         LayoutText {#text} at (0,0) size 714x39
           text run at (0,0) width 336: "The first line of this sentence should be boldfaced. "
@@ -75,3 +74,5 @@
                   text run at (426,20) width 321: "If neither is the case, then the user agent has correctly"
                   text run at (0,40) width 721: "ignored the incorrect selector, but has suppressed other styles which are valid, and therefore must be considered to have"
                   text run at (0,60) width 83: "failed the test."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/units/color_units-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/units/color_units-expected.txt
index 0b342511..6d7f0f2 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/units/color_units-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/units/color_units-expected.txt
@@ -32,7 +32,6 @@
           text run at (264,160) width 0: " "
           text run at (0,176) width 264: ".eleven {color: rgb(50%,0%,60%);}"
           text run at (264,176) width 0: " "
-      LayoutBlockFlow {HR} at (0,241) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,259) size 769x20
         LayoutText {#text} at (0,0) size 184x19
           text run at (0,0) width 184: "This sentence should be black."
@@ -233,3 +232,5 @@
                     text run at (268,3) width 40: "style"
                 LayoutText {#text} at (308,0) size 57x19
                   text run at (308,0) width 57: " attribute."
+layer at (8,249) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,241) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/units/length_units-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/units/length_units-expected.txt
index 812ac67..9aa43b4f 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/units/length_units-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/units/length_units-expected.txt
@@ -30,7 +30,6 @@
           text run at (208,144) width 0: " "
           text run at (0,160) width 624: ".ten {font-size: 40px; border-left: 1ex solid purple; background-color: aqua;}"
           text run at (624,160) width 0: " "
-      LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,243) size 769x40
         LayoutText {#text} at (0,0) size 758x39
           text run at (0,0) width 758: "This paragraph has no left margin. The following paragraphs have all been given a left margin and their left (outer) edges should"
@@ -170,3 +169,5 @@
                   text run at (18,145) width 698: "the same number of pixels as the lower-case"
                   text run at (18,193) width 634: "'x' in this element's font, as well as solid"
                   text run at (18,241) width 111: "purple."
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/units/percentage_units-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/units/percentage_units-expected.txt
index 3c0ae67..fd94554 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/units/percentage_units-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/units/percentage_units-expected.txt
@@ -17,7 +17,6 @@
           text run at (0,48) width 208: ".three {margin-left: 25%;}"
           text run at (208,48) width 0: " "
           text run at (0,64) width 0: " "
-      LayoutBlockFlow {HR} at (0,129) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,147) size 784x116 [bgcolor=#FFFF00]
         LayoutBlockFlow {DIV} at (196,0) size 392x40 [bgcolor=#FFFFFF]
           LayoutBlockFlow {P} at (0,0) size 392x40
@@ -62,3 +61,5 @@
                 LayoutText {#text} at (0,0) size 561x39
                   text run at (0,0) width 561: "This paragraph should have a left margin of 25% the width of its parent element, which should"
                   text run at (0,20) width 297: "require some extra text in order to test effectively."
+layer at (8,137) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,129) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/css1/units/urls-expected.txt b/third_party/WebKit/LayoutTests/platform/win/css1/units/urls-expected.txt
index df813fa..be5b6ee 100644
--- a/third_party/WebKit/LayoutTests/platform/win/css1/units/urls-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/css1/units/urls-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 352: "BODY {background: url(../resources/bg.gif);}"
           text run at (352,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 784x20
         LayoutText {#text} at (0,0) size 368x19
           text run at (0,0) width 368: "This page should have a green grid pattern as its background."
@@ -58,3 +57,5 @@
                   text run at (591,0) width 150: "If an image, in this case a"
                   text run at (0,20) width 730: "red square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in relation to the"
                   text run at (0,40) width 260: "document's URL, not the stylesheet's URL."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/editing/inserting/4278698-expected.txt b/third_party/WebKit/LayoutTests/platform/win/editing/inserting/4278698-expected.txt
index cfea1f71..808a5c4 100644
--- a/third_party/WebKit/LayoutTests/platform/win/editing/inserting/4278698-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/editing/inserting/4278698-expected.txt
@@ -15,9 +15,10 @@
       LayoutBlockFlow {P} at (0,56) size 784x20
         LayoutText {#text} at (0,0) size 424x19
           text run at (0,0) width 424: "If successful, you should see 'a' followed by 10 spaces followed by 'b'."
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,102) size 784x24 [border: (2px solid #FFAAAA)]
         LayoutBlockFlow {PRE} at (2,2) size 780x20 [border: (2px solid #AAAAFF)]
           LayoutText {#text} at (2,2) size 96x16
             text run at (2,2) width 96: "a          b"
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 3 of child 0 {#text} of child 1 {PRE} of child 7 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/win/editing/pasteboard/drop-text-without-selection-expected.txt b/third_party/WebKit/LayoutTests/platform/win/editing/pasteboard/drop-text-without-selection-expected.txt
index 19ce608..9ef4b37 100644
--- a/third_party/WebKit/LayoutTests/platform/win/editing/pasteboard/drop-text-without-selection-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/editing/pasteboard/drop-text-without-selection-expected.txt
@@ -23,7 +23,6 @@
         LayoutText {#text} at (0,0) size 625x19
           text run at (0,0) width 458: "The text field should accept drag-and-dropped text, such as the link, even if "
           text run at (458,0) width 167: "no text is currently selected."
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,102) size 784x22
         LayoutTextControl {INPUT} at (0,0) size 173x22 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
         LayoutText {#text} at (173,1) size 4x19
@@ -33,6 +32,8 @@
             text run at (177,1) width 154: "drop me into the text field"
         LayoutText {#text} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (10,113) size 169x16
   LayoutBlockFlow {DIV} at (2,3) size 169x16
     LayoutText {#text} at (0,0) size 119x16
diff --git a/third_party/WebKit/LayoutTests/platform/win/editing/selection/4402375-expected.txt b/third_party/WebKit/LayoutTests/platform/win/editing/selection/4402375-expected.txt
index df4aa0b..1a7f6c0 100644
--- a/third_party/WebKit/LayoutTests/platform/win/editing/selection/4402375-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/editing/selection/4402375-expected.txt
@@ -13,7 +13,6 @@
         LayoutText {#text} at (272,0) size 768x39
           text run at (272,0) width 496: " \"REGRESSION (417.8-TOT): finding text sometimes also selects previous image"
           text run at (0,20) width 93: "(5127) (6451)\""
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,74) size 784x40
         LayoutText {#text} at (0,0) size 772x39
           text run at (0,0) width 389: "This test uses a right aligned image next to some left aligned text. "
@@ -23,5 +22,7 @@
         LayoutImage (floating) {IMG} at (708,0) size 76x103
         LayoutText {#text} at (0,0) size 170x19
           text run at (0,0) width 170: "This text should be selected."
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
 selection start: position 0 of child 1 {#text} of child 6 {DIV} of body
 selection end:   position 29 of child 1 {#text} of child 6 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/win/editing/selection/6476-expected.txt b/third_party/WebKit/LayoutTests/platform/win/editing/selection/6476-expected.txt
index 5ad63078..d8f5e73 100644
--- a/third_party/WebKit/LayoutTests/platform/win/editing/selection/6476-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/editing/selection/6476-expected.txt
@@ -15,7 +15,6 @@
         LayoutInline {SPAN} at (0,0) size 1x19
         LayoutText {#text} at (0,20) size 170x19
           text run at (0,20) width 170: "thisshouldbeonthesecondline"
-      LayoutBlockFlow {HR} at (0,48) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,66) size 784x40
         LayoutText {#text} at (0,0) size 126x19
           text run at (0,0) width 126: "This is a testcase for "
@@ -32,4 +31,6 @@
           text run at (306,0) width 439: "To run it manually, click in the space after all the text on the first line in the"
           text run at (0,20) width 137: "above editable region. "
           text run at (137,20) width 370: "Clicking should create a caret after the first space after the 'e'."
+layer at (8,56) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,48) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 1 of child 2 {#text} of child 1 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/win/editing/selection/click-start-of-line-expected.txt b/third_party/WebKit/LayoutTests/platform/win/editing/selection/click-start-of-line-expected.txt
index 00baf9b..91bc195c 100644
--- a/third_party/WebKit/LayoutTests/platform/win/editing/selection/click-start-of-line-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/editing/selection/click-start-of-line-expected.txt
@@ -21,10 +21,11 @@
         LayoutText {#text} at (0,0) size 694x19
           text run at (0,0) width 523: "To test interactively, click the left side of the W on the second line. The caret should be "
           text run at (522,0) width 172: "move to the start of that line."
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,102) size 250x114
         LayoutText {#text} at (0,1) size 229x112
           text run at (0,1) width 147: "Alice in"
           text run at (147,1) width 12: " "
           text run at (0,58) width 229: "Wonderland"
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 10 of child 0 {#text} of child 7 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/backgrounds/background-inherit-color-bug-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/backgrounds/background-inherit-color-bug-expected.txt
index dbcc3dc3..1eef512e 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/backgrounds/background-inherit-color-bug-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/backgrounds/background-inherit-color-bug-expected.txt
@@ -8,13 +8,11 @@
           LayoutText {#text} at (0,0) size 580x36
             text run at (0,0) width 580: "Affected Browsers: Safari 2.0, Windows Internet Explorer 6"
             text run at (0,18) width 30: "SP2"
-        LayoutBlockFlow {HR} at (4,72) size 615.19x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (4,90) size 615.19x54
           LayoutText {#text} at (0,0) size 610x54
             text run at (0,0) width 610: "Bug Description: On the Affected Browsers, if a rule sets the"
             text run at (0,18) width 540: "'background-color' of an element, this color cannot be"
             text run at (0,36) width 480: "overridden by 'background:inherit' declarations."
-        LayoutBlockFlow {HR} at (4,160) size 615.19x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (4,178) size 615.19x90
           LayoutText {#text} at (0,0) size 600x54
             text run at (0,0) width 600: "Example: With the following code, the background color of H1"
@@ -28,13 +26,11 @@
           LayoutText {#text} at (0,72) size 290x18
             text run at (0,72) width 50: "  H1 "
             text run at (50,72) width 240: "{ background: inherit; }"
-        LayoutBlockFlow {HR} at (4,284) size 615.19x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (4,302) size 615.19x54
           LayoutText {#text} at (0,0) size 610x54
             text run at (0,0) width 610: "Work-around: The 'background-color' can only be overridden by"
             text run at (0,18) width 600: "another 'background-color' declaration, or by a 'background'"
             text run at (0,36) width 380: "declaration that does specify a color."
-        LayoutBlockFlow {HR} at (4,372) size 615.19x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow (anonymous) at (4,382) size 615.19x20
           LayoutText {#text} at (0,0) size 376x19
             text run at (0,0) width 376: "This is in contradiction with the CSS2 specification which says:"
@@ -75,3 +71,11 @@
           LayoutText {#text} at (4,4) size 483x73
             text run at (4,4) width 483: "This header has a pink background"
             text run at (4,41) width 219: "and that's good."
+layer at (85,80) size 615x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,72) size 615.19x2 [border: (1px inset #EEEEEE)]
+layer at (85,168) size 615x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,160) size 615.19x2 [border: (1px inset #EEEEEE)]
+layer at (85,292) size 615x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,284) size 615.19x2 [border: (1px inset #EEEEEE)]
+layer at (85,380) size 615x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,372) size 615.19x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/css-generated-content/014-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/css-generated-content/014-expected.txt
index 27b4ff5..98185158 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/css-generated-content/014-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/css-generated-content/014-expected.txt
@@ -70,7 +70,6 @@
         LayoutInline {CODE} at (0,0) size 440x16
           LayoutText {#text} at (0,0) size 440x16
             text run at (0,0) width 440: "div.box.one:after{ content:'generated content here!'; }"
-      LayoutBlockFlow {HR} at (0,392.44) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {H2} at (0,414.34) size 769x27
         LayoutText {#text} at (0,0) size 474x26
           text run at (0,0) width 474: "Example (view source to see CSS and HTML):"
@@ -104,3 +103,5 @@
           LayoutBlockFlow {<pseudo:after>} at (0,20) size 717x20 [color=#008000]
             LayoutTextFragment (anonymous) at (0,0) size 107x19
               text run at (0,0) width 107: "generated content"
+layer at (8,414) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,392.44) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/css-generated-content/016-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/css-generated-content/016-expected.txt
index 2746767..4db99322 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/css-generated-content/016-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/css-generated-content/016-expected.txt
@@ -9,7 +9,6 @@
       LayoutBlockFlow {P} at (0,36) size 784x20
         LayoutText {#text} at (0,0) size 307x19
           text run at (0,0) width 307: "The href attribute of the last one is changed onload."
-      LayoutBlockFlow {HR} at (0,72) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,90) size 784x20
         LayoutInline {A} at (0,0) size 58x19 [color=#0000EE]
           LayoutText {#text} at (0,0) size 8x19
@@ -38,3 +37,5 @@
           LayoutInline {<pseudo:after>} at (0,0) size 50x19
             LayoutTextFragment (anonymous) at (8,0) size 50x19
               text run at (8,0) width 50: "(href=4)"
+layer at (8,88) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,72) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/css-generated-content/hover-style-change-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/css-generated-content/hover-style-change-expected.txt
index 6ec8cf88..d32154f 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/css-generated-content/hover-style-change-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/css-generated-content/hover-style-change-expected.txt
@@ -9,7 +9,6 @@
         LayoutInline {<pseudo:after>} at (0,0) size 171x19
           LayoutTextFragment (anonymous) at (78,0) size 171x19
             text run at (78,0) width 171: "and generated hover content"
-      LayoutBlockFlow {HR} at (0,28) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,46) size 784x40
         LayoutText {#text} at (0,0) size 50x19
           text run at (0,0) width 50: "Test for "
@@ -34,4 +33,6 @@
           text run at (0,0) width 757: "To reproduce the bug outside of DumpRenderTree, mouse over the div several times, and the style change won't update every"
           text run at (0,20) width 29: "time "
           text run at (29,20) width 79: "like it should."
+layer at (8,36) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 3 of child 0 {#text} of child 1 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/css/find-next-layer-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/css/find-next-layer-expected.txt
index 7586ad3..0d8cb93 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/css/find-next-layer-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/css/find-next-layer-expected.txt
@@ -16,7 +16,8 @@
             text run at (0,20) width 54: "live.com"
         LayoutText {#text} at (54,20) size 4x19
           text run at (54,20) width 4: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,74) size 784x0
   LayoutBlockFlow (relative positioned) {DIV} at (0,66) size 784x0
 layer at (8,74) size 100x100
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/css/first-letter-detach-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/css/first-letter-detach-expected.txt
index e133269..be21ba3 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/css/first-letter-detach-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/css/first-letter-detach-expected.txt
@@ -23,7 +23,6 @@
             text run at (217,0) width 9: "P"
         LayoutText {#text} at (226,0) size 196x19
           text run at (226,0) width 196: "ASS\x{201D}, with nothing before the P."
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,110) size 784x20
         LayoutInline {<pseudo:first-letter>} at (0,0) size 9x19 [color=#0000FF]
           LayoutTextFragment (anonymous) at (0,0) size 9x19
@@ -42,3 +41,5 @@
             text run at (0,0) width 9: "P"
         LayoutTextFragment {#text} at (9,0) size 29x19
           text run at (9,0) width 29: "ASS"
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/css/h1-in-section-elements-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/css/h1-in-section-elements-expected.txt
index 772e1be..15ccd0c 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/css/h1-in-section-elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/css/h1-in-section-elements-expected.txt
@@ -12,65 +12,49 @@
           LayoutTableRow {TR} at (0,2) size 152x75
             LayoutTableCell {TD} at (2,2) size 73x74.81 [r=0 c=0 rs=1 cs=1]
               LayoutBlockFlow {SECTION} at (1,1) size 71x72.81
-                LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
                 LayoutBlockFlow {H1} at (0,21.91) size 71x29 [border: (1px solid #00FF00)]
                   LayoutText {#text} at (1,1) size 69x26
                     text run at (1,1) width 69: "MMM"
-                LayoutBlockFlow {HR} at (0,70.81) size 71x2 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (77,2) size 73x74.81 [r=0 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H2} at (1,22.91) size 71x29 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 69x26
                   text run at (1,1) width 69: "MMM"
-              LayoutBlockFlow {HR} at (1,71.81) size 71x2 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (0,79) size 152x68
             LayoutTableCell {TD} at (2,79) size 73x68.44 [r=1 c=0 rs=1 cs=1]
               LayoutBlockFlow {ARTICLE} at (1,1) size 71x66.44
                 LayoutBlockFlow {SECTION} at (0,0) size 71x66.44
-                  LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
                   LayoutBlockFlow {H1} at (0,20.72) size 71x25 [border: (1px solid #00FF00)]
                     LayoutText {#text} at (1,1) size 54x22
                       text run at (1,1) width 54: "MMM"
-                  LayoutBlockFlow {HR} at (0,64.44) size 71x2 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (77,79) size 73x68.44 [r=1 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H3} at (1,21.72) size 71x25 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 54x22
                   text run at (1,1) width 54: "MMM"
-              LayoutBlockFlow {HR} at (1,65.44) size 71x2 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (0,149) size 152x71
             LayoutTableCell {TD} at (2,149) size 73x70.53 [r=2 c=0 rs=1 cs=1]
               LayoutBlockFlow {NAV} at (1,1) size 71x68.53
                 LayoutBlockFlow {ARTICLE} at (0,0) size 71x68.53
                   LayoutBlockFlow {SECTION} at (0,0) size 71x68.53
-                    LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
                     LayoutBlockFlow {H1} at (0,23.27) size 71x22 [border: (1px solid #00FF00)]
                       LayoutText {#text} at (1,1) size 48x19
                         text run at (1,1) width 48: "MMM"
-                    LayoutBlockFlow {HR} at (0,66.53) size 71x2 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (77,149) size 73x70.53 [r=2 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H4} at (1,24.27) size 71x22 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 48x19
                   text run at (1,1) width 48: "MMM"
-              LayoutBlockFlow {HR} at (1,67.53) size 71x2 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (0,222) size 152x68
             LayoutTableCell {TD} at (2,222) size 73x68.34 [r=3 c=0 rs=1 cs=1]
               LayoutBlockFlow {NAV} at (1,1) size 71x66.34
                 LayoutBlockFlow {ASIDE} at (0,0) size 71x66.34
                   LayoutBlockFlow {ARTICLE} at (0,0) size 71x66.34
                     LayoutBlockFlow {SECTION} at (0,0) size 71x66.34
-                      LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
                       LayoutBlockFlow {H1} at (0,24.17) size 71x18 [border: (1px solid #00FF00)]
                         LayoutText {#text} at (1,1) size 33x15
                           text run at (1,1) width 33: "MMM"
-                      LayoutBlockFlow {HR} at (0,64.34) size 71x2 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (77,222) size 73x68.34 [r=3 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H5} at (1,25.17) size 71x18 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 33x15
                   text run at (1,1) width 33: "MMM"
-              LayoutBlockFlow {HR} at (1,65.34) size 71x2 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (0,292) size 152x71
             LayoutTableCell {TD} at (2,292) size 73x70.94 [r=4 c=0 rs=1 cs=1]
               LayoutBlockFlow {SECTION} at (1,1) size 71x68.94
@@ -79,82 +63,62 @@
                     LayoutBlockFlow {ASIDE} at (0,0) size 71x68.94
                       LayoutBlockFlow {ARTICLE} at (0,0) size 71x68.94
                         LayoutBlockFlow {SECTION} at (0,0) size 71x68.94
-                          LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
                           LayoutBlockFlow {H1} at (0,26.97) size 71x15 [border: (1px solid #00FF00)]
                             LayoutText {#text} at (1,1) size 30x13
                               text run at (1,1) width 30: "MMM"
-                          LayoutBlockFlow {HR} at (0,66.94) size 71x2 [border: (1px inset #EEEEEE)]
                   LayoutBlockFlow {DIV} at (0,68.94) size 71x0
             LayoutTableCell {TD} at (77,292) size 73x70.94 [r=4 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H6} at (1,27.97) size 71x15 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 30x13
                   text run at (1,1) width 30: "MMM"
-              LayoutBlockFlow {HR} at (1,67.94) size 71x2 [border: (1px inset #EEEEEE)]
       LayoutTable {TABLE} at (152,36) size 365x152
         LayoutTableSection {TBODY} at (0,0) size 365x152
           LayoutTableRow {TR} at (2,0) size 75x152
             LayoutTableCell {TD} at (2,2) size 74.81x73 [r=0 c=0 rs=1 cs=1]
               LayoutBlockFlow {SECTION} at (1,1) size 72.81x71
-                LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
                 LayoutBlockFlow {H1} at (21.91,0) size 29x71 [border: (1px solid #00FF00)]
                   LayoutText {#text} at (1,1) size 26x69
                     text run at (1,1) width 69: "MMM"
-                LayoutBlockFlow {HR} at (70.81,0) size 2x71 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (2,77) size 74.81x73 [r=0 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H2} at (22.91,1) size 29x71 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 26x69
                   text run at (1,1) width 69: "MMM"
-              LayoutBlockFlow {HR} at (71.81,1) size 2x71 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (79,0) size 68x152
             LayoutTableCell {TD} at (79,2) size 68.44x73 [r=1 c=0 rs=1 cs=1]
               LayoutBlockFlow {ARTICLE} at (1,1) size 66.44x71
                 LayoutBlockFlow {SECTION} at (0,0) size 66.44x71
-                  LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
                   LayoutBlockFlow {H1} at (20.72,0) size 25x71 [border: (1px solid #00FF00)]
                     LayoutText {#text} at (1,1) size 22x54
                       text run at (1,1) width 54: "MMM"
-                  LayoutBlockFlow {HR} at (64.44,0) size 2x71 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (79,77) size 68.44x73 [r=1 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H3} at (21.72,1) size 25x71 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 22x54
                   text run at (1,1) width 54: "MMM"
-              LayoutBlockFlow {HR} at (65.44,1) size 2x71 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (149,0) size 71x152
             LayoutTableCell {TD} at (149,2) size 70.53x73 [r=2 c=0 rs=1 cs=1]
               LayoutBlockFlow {NAV} at (1,1) size 68.53x71
                 LayoutBlockFlow {ARTICLE} at (0,0) size 68.53x71
                   LayoutBlockFlow {SECTION} at (0,0) size 68.53x71
-                    LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
                     LayoutBlockFlow {H1} at (23.27,0) size 22x71 [border: (1px solid #00FF00)]
                       LayoutText {#text} at (1,1) size 19x48
                         text run at (1,1) width 48: "MMM"
-                    LayoutBlockFlow {HR} at (66.53,0) size 2x71 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (149,77) size 70.53x73 [r=2 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H4} at (24.27,1) size 22x71 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 19x48
                   text run at (1,1) width 48: "MMM"
-              LayoutBlockFlow {HR} at (67.53,1) size 2x71 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (222,0) size 68x152
             LayoutTableCell {TD} at (222,2) size 68.34x73 [r=3 c=0 rs=1 cs=1]
               LayoutBlockFlow {NAV} at (1,1) size 66.34x71
                 LayoutBlockFlow {ASIDE} at (0,0) size 66.34x71
                   LayoutBlockFlow {ARTICLE} at (0,0) size 66.34x71
                     LayoutBlockFlow {SECTION} at (0,0) size 66.34x71
-                      LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
                       LayoutBlockFlow {H1} at (24.17,0) size 18x71 [border: (1px solid #00FF00)]
                         LayoutText {#text} at (1,1) size 15x33
                           text run at (1,1) width 33: "MMM"
-                      LayoutBlockFlow {HR} at (64.34,0) size 2x71 [border: (1px inset #EEEEEE)]
             LayoutTableCell {TD} at (222,77) size 68.34x73 [r=3 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H5} at (25.17,1) size 18x71 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 15x33
                   text run at (1,1) width 33: "MMM"
-              LayoutBlockFlow {HR} at (65.34,1) size 2x71 [border: (1px inset #EEEEEE)]
           LayoutTableRow {TR} at (292,0) size 71x152
             LayoutTableCell {TD} at (292,2) size 70.94x73 [r=4 c=0 rs=1 cs=1]
               LayoutBlockFlow {SECTION} at (1,1) size 68.94x71
@@ -163,15 +127,91 @@
                     LayoutBlockFlow {ASIDE} at (0,0) size 68.94x71
                       LayoutBlockFlow {ARTICLE} at (0,0) size 68.94x71
                         LayoutBlockFlow {SECTION} at (0,0) size 68.94x71
-                          LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
                           LayoutBlockFlow {H1} at (26.97,0) size 15x71 [border: (1px solid #00FF00)]
                             LayoutText {#text} at (1,1) size 13x30
                               text run at (1,1) width 30: "MMM"
-                          LayoutBlockFlow {HR} at (66.94,0) size 2x71 [border: (1px inset #EEEEEE)]
                   LayoutBlockFlow {DIV} at (68.94,0) size 0x71
             LayoutTableCell {TD} at (292,77) size 70.94x73 [r=4 c=1 rs=1 cs=1]
-              LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {H6} at (27.97,1) size 15x71 [border: (1px solid #00FF00)]
                 LayoutText {#text} at (1,1) size 13x30
                   text run at (1,1) width 30: "MMM"
-              LayoutBlockFlow {HR} at (67.94,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (11,55) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,126) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,70.81) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,55) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,126) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,71.81) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,132) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,196) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,64.44) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,132) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,196) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,65.44) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,202) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,269) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,66.53) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,202) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,269) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,67.53) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,275) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,339) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,64.34) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,275) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,339) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,65.34) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,345) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (11,412) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,66.94) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,345) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (86,412) size 71x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,67.94) size 71x2 [border: (1px inset #EEEEEE)]
+layer at (520,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (449,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (70.81,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (520,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (449,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (71.81,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (443,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (379,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (64.44,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (443,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (379,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (65.44,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (373,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (306,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (66.53,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (373,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (306,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (67.53,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (300,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (236,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (64.34,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (300,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (236,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (65.34,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (230,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (163,55) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (66.94,0) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (230,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (1,1) size 2x71 [border: (1px inset #EEEEEE)]
+layer at (163,130) size 2x71 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (67.94,1) size 2x71 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/css/hover-subselector-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/css/hover-subselector-expected.txt
index 6ef8700..652c19a 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/css/hover-subselector-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/css/hover-subselector-expected.txt
@@ -8,7 +8,6 @@
           LayoutText {#text} at (0,0) size 212x19
             text run at (0,0) width 212: "This should turn red when hovered."
         LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,28) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,46) size 784x40
         LayoutText {#text} at (0,0) size 50x19
           text run at (0,0) width 50: "Test for "
@@ -26,3 +25,5 @@
             text run at (188,23) width 97: "span#t:hover"
         LayoutText {#text} at (284,20) size 165x19
           text run at (284,20) width 165: " matches the hovered span."
+layer at (8,36) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/css/resize-corner-tracking-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/css/resize-corner-tracking-expected.txt
index 7847c7c..cc1c9bc 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/css/resize-corner-tracking-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/css/resize-corner-tracking-expected.txt
@@ -3,7 +3,6 @@
 layer at (0,0) size 800x600
   LayoutBlockFlow {HTML} at (0,0) size 800x600
     LayoutBlockFlow {BODY} at (8,8) size 784x584
-      LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,18) size 784x20
         LayoutText {#text} at (0,0) size 50x19
           text run at (0,0) width 50: "Test for "
@@ -16,7 +15,6 @@
             text run at (403,0) width 322: "Resize corner does not track the mouse accurately"
         LayoutText {#text} at (724,0) size 5x19
           text run at (724,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,54) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,189) size 784x363
         LayoutText {#text} at (169,106) size 4x19
           text run at (169,106) width 4: " "
@@ -25,6 +23,10 @@
           text run at (198,168) width 4: " "
         LayoutBR {BR} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,8) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,62) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,54) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,72) size 173x125 clip at (10,74) size 169x121
   LayoutBlockFlow {DIV} at (0,64) size 173x125 [border: (2px solid #0000FF)]
 layer at (8,197) size 169x121 clip at (10,199) size 165x117
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/css/resize-corner-tracking-transformed-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/css/resize-corner-tracking-transformed-expected.txt
index 6bf4463b..e8ddff7 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/css/resize-corner-tracking-transformed-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/css/resize-corner-tracking-transformed-expected.txt
@@ -3,7 +3,6 @@
 layer at (0,0) size 800x600
   LayoutBlockFlow {HTML} at (0,0) size 800x600
     LayoutBlockFlow {BODY} at (8,8) size 784x542
-      LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,18) size 784x20
         LayoutText {#text} at (0,0) size 50x19
           text run at (0,0) width 50: "Test for "
@@ -16,6 +15,9 @@
             text run at (363,0) width 341: "Resize corner does not track in transformed elements"
         LayoutText {#text} at (703,0) size 5x19
           text run at (703,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,54) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,8) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,62) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,54) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (58,114) size 163x129 clip at (60,116) size 159x125
   LayoutBlockFlow {DIV} at (50,106) size 163x129 [border: (2px solid #0000FF)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/css/resize-corner-tracking-transformed-iframe-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/css/resize-corner-tracking-transformed-iframe-expected.txt
index ee7b586e..35812442 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/css/resize-corner-tracking-transformed-iframe-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/css/resize-corner-tracking-transformed-iframe-expected.txt
@@ -3,7 +3,6 @@
 layer at (0,0) size 800x600
   LayoutBlockFlow {HTML} at (0,0) size 800x600
     LayoutBlockFlow {BODY} at (8,8) size 784x584
-      LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,18) size 784x20
         LayoutText {#text} at (0,0) size 50x19
           text run at (0,0) width 50: "Test for "
@@ -16,9 +15,12 @@
             text run at (356,0) width 253: "resize property doesn't work on iframes"
         LayoutText {#text} at (608,0) size 5x19
           text run at (608,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,54) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,64) size 784x230
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,8) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,62) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,54) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (58,122) size 163x130
   LayoutIFrame {IFRAME} at (50,50) size 163x130 [border: (2px solid #0000FF)]
     layer at (0,0) size 159x126
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/css/rtl-ordering-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/css/rtl-ordering-expected.txt
index ff06251..878887a4a 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/css/rtl-ordering-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/css/rtl-ordering-expected.txt
@@ -15,7 +15,6 @@
             text run at (0,20) width 381 LTR override: "type=\"button\"> text is reversed on \"visual Hebrew\" pages"
         LayoutText {#text} at (380,20) size 5x19
           text run at (380,20) width 5 LTR override: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,74) size 784x20
         LayoutText {#text} at (0,0) size 280x19
           text run at (0,0) width 280 LTR override: "The text on both buttons should like this: \x{5E8}\x{5D5}\x{5EA}\x{5E4}\x{5DB}"
@@ -32,7 +31,6 @@
             LayoutText {#text} at (0,0) size 31x16
               text run at (0,0) width 31 RTL: "\x{5DB}\x{5E4}\x{5EA}\x{5D5}\x{5E8}"
         LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,162) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,180) size 784x20
         LayoutText {#text} at (0,0) size 229x19
           text run at (0,0) width 229 LTR override: "The following lines should be identical:"
@@ -43,3 +41,7 @@
       LayoutBlockFlow {P} at (0,252) size 784x20
         LayoutText {#text} at (0,0) size 66x19
           text run at (0,0) width 66 LTR override: "21-\x{5D4} \x{5D4}\x{5D0}\x{5DE}\x{5D4}"
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,170) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,162) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/css/universal-hover-quirk-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/css/universal-hover-quirk-expected.txt
index b9a70d73..0523ea9d 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/css/universal-hover-quirk-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/css/universal-hover-quirk-expected.txt
@@ -8,7 +8,6 @@
           LayoutText {#text} at (0,0) size 235x19
             text run at (0,0) width 235: "This should not turn red when hovered."
         LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,28) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,46) size 784x40
         LayoutText {#text} at (0,0) size 50x19
           text run at (0,0) width 50: "Test for "
@@ -26,4 +25,6 @@
         LayoutText {#text} at (750,0) size 784x39
           text run at (750,0) width 34: " does"
           text run at (0,20) width 209: "not match anything in quirks mode."
+layer at (8,36) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 784x2 [border: (1px inset #EEEEEE)]
 caret: position 1 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/dom/34176-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/dom/34176-expected.txt
index 6dd19adb..07520eaf 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/dom/34176-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/dom/34176-expected.txt
@@ -10,7 +10,6 @@
           text run at (3,20) width 743: "TextRun3's bidi level is 1. TextRun2 and TextRun3 are siblings. But their ancestor (not their parent) is a sibling of TextRun1. "
           text run at (746,20) width 23: "The"
           text run at (234,40) width 535: "visual order should be TextRun3 TextRun1 TextRun2, not TextRun3 TextRun2 TextRun1."
-      LayoutBlockFlow {HR} at (0,76) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,94) size 769x20
         LayoutText {#text} at (343,0) size 426x19
           text run at (343,0) width 318: "Pure text. The following 3 lines should all display as \""
@@ -49,7 +48,6 @@
           LayoutInline {SPAN} at (0,0) size 23x19
             LayoutText {#text} at (665,0) size 23x19
               text run at (665,0) width 23 RTL: "\x{5E9}\x{5E0}\x{5D1}"
-      LayoutBlockFlow {HR} at (0,198) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,216) size 769x20
         LayoutText {#text} at (350,0) size 419x19
           text run at (350,0) width 419: "Text in <em>. The English text should be displayed as \"This is a Test\"."
@@ -96,7 +94,6 @@
           LayoutInline {EM} at (0,0) size 26x19
             LayoutText {#text} at (743,0) size 26x19
               text run at (743,0) width 26: "Test"
-      LayoutBlockFlow {HR} at (0,360) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,378) size 769x20
         LayoutText {#text} at (332,0) size 437x19
           text run at (332,0) width 437: "Text in <strong>. The following lines should all display as \"This is a Test\"."
@@ -132,7 +129,6 @@
           LayoutInline {STRONG} at (0,0) size 29x19
             LayoutText {#text} at (740,0) size 29x19
               text run at (740,0) width 29: "Test"
-      LayoutBlockFlow {HR} at (0,502) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,520) size 769x20
         LayoutText {#text} at (366,0) size 403x19
           text run at (366,0) width 403: "Text in <i>. The following lines should all display as \"This is a Test\"."
@@ -168,7 +164,6 @@
           LayoutInline {I} at (0,0) size 26x19
             LayoutText {#text} at (743,0) size 26x19
               text run at (743,0) width 26: "Test"
-      LayoutBlockFlow {HR} at (0,644) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,662) size 769x20
         LayoutText {#text} at (361,0) size 408x19
           text run at (361,0) width 408: "Text in <b>. The following lines should all display as \"This is a Test\"."
@@ -208,7 +203,6 @@
         LayoutInline {B} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,786) size 769x746
-        LayoutBlockFlow {HR} at (0,0) size 769x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (0,18) size 769x20
           LayoutText {#text} at (110,0) size 659x19
             text run at (110,0) width 659: "Text in <img>, <href>, <em>, <tr>. The following English text should all display as \"This is a Test\"."
@@ -281,7 +275,6 @@
           LayoutBlockFlow (anonymous) at (0,46) size 769x0
             LayoutInline {SPAN} at (0,0) size 0x0
               LayoutInline {EM} at (0,0) size 0x0
-        LayoutBlockFlow {HR} at (0,208) size 769x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {UL} at (0,226) size 769x520
           LayoutListItem {LI} at (40,0) size 729x20
             LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
@@ -389,5 +382,19 @@
               text run at (0,0) width 120: "Test 25: : Success"
       LayoutBlockFlow (anonymous) at (0,1548) size 769x0
         LayoutInline {B} at (0,0) size 0x0
+layer at (8,92) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,76) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,214) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,198) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,376) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,360) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,518) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,502) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,660) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,644) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,802) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1010) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,208) size 769x2 [border: (1px inset #EEEEEE)]
 selection start: position 0 of child 0 {#text} of child 14 {DIV} of child 56 {B} of body
 selection end:   position 4 of child 0 {#text} of child 14 {DIV} of child 56 {B} of body
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/dom/HTMLElement/bdo-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/dom/HTMLElement/bdo-expected.txt
index 34085c7..d9c0cfef 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/dom/HTMLElement/bdo-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/dom/HTMLElement/bdo-expected.txt
@@ -14,7 +14,6 @@
           text run at (0,0) width 696: "If successful, the first sentence would be backward, and the second sentence regular. There should then be an extra "
           text run at (695,0) width 62: "blank line,"
           text run at (0,20) width 621: "followed by a line reading only \"A,\" and finally, a sentence where only the word \"umbrella\" is backward."
-      LayoutBlockFlow {HR} at (0,128) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,138) size 784x120
         LayoutBR {BR} at (0,0) size 0x19
         LayoutInline {BDO} at (0,0) size 212x19
@@ -47,3 +46,5 @@
           LayoutText {#text} at (76,100) size 195x19
             text run at (76,100) width 195 LTR override: " sure would be useful in this rain."
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,136) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,128) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt
index 427f563e..3503a60 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/dom/HTMLLinkElement/pending-stylesheet-count-expected.txt
@@ -19,6 +19,7 @@
       LayoutBlockFlow {P} at (0,56) size 784x20
         LayoutText {#text} at (0,0) size 233x19
           text run at (0,0) width 233: "There should be a green square below."
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,102) size 784x0
       LayoutBlockFlow {DIV} at (0,102) size 100x100 [bgcolor=#008000]
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/dynamic/012-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/dynamic/012-expected.txt
index 393ccca..8e63537 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/dynamic/012-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/dynamic/012-expected.txt
@@ -18,7 +18,6 @@
           text run at (0,0) width 554: "Note that the second section is collapsed when the page opens and expanding it works fine. "
           text run at (554,0) width 162: "Just the collapse is broken."
       LayoutBlockFlow {DIV} at (0,154.91) size 784x157
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {DIV} at (0,10) size 784x21
           LayoutImage {IMG} at (0,0) size 16x16
           LayoutText {#text} at (16,1) size 75x19
@@ -55,7 +54,10 @@
                 LayoutTableCell {TD} at (36,50) size 746x22 [r=2 c=1 rs=1 cs=1]
                   LayoutText {#text} at (1,1) size 72x19
                     text run at (1,1) width 72: "block three."
-        LayoutBlockFlow {HR} at (0,155) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,163) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,318) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,155) size 784x2 [border: (1px inset #EEEEEE)]
 hidden layer at (8,194) size 106x74
   LayoutBlockFlow (positioned) {DIV} at (8,193.91) size 106x74
     LayoutTable {TABLE} at (0,0) size 106x74
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/dynamic/selection-highlight-adjust-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/dynamic/selection-highlight-adjust-expected.txt
index fd76d5c..2d802c3 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/dynamic/selection-highlight-adjust-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/dynamic/selection-highlight-adjust-expected.txt
@@ -16,7 +16,6 @@
             text run at (0,20) width 140: "highlight stays behind"
         LayoutText {#text} at (140,20) size 4x19
           text run at (140,20) width 4: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,66) size 784x75
         LayoutImage {IMG} at (0,0) size 0x30
         LayoutBR {BR} at (0,15) size 0x19
@@ -27,5 +26,7 @@
         LayoutText {#text} at (287,55) size 4x19
           text run at (287,55) width 4: " "
         LayoutBR {BR} at (291,55) size 0x19
+layer at (8,72) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
 selection start: position 0 of child 0 {#text} of child 6 {SPAN} of child 5 {DIV} of body
 selection end:   position 51 of child 0 {#text} of child 6 {SPAN} of child 5 {DIV} of body
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/encoding/invalid-UTF-8-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/encoding/invalid-UTF-8-expected.txt
index cb5d729b2..77b7eb8 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/encoding/invalid-UTF-8-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/encoding/invalid-UTF-8-expected.txt
@@ -9,7 +9,8 @@
       LayoutBlockFlow {P} at (0,36) size 784x20
         LayoutText {#text} at (0,0) size 475x19
           text run at (0,0) width 475: "The output should be: \"\x{442}??\x{442}\" (with black diamonds in place of question marks)."
-      LayoutBlockFlow {HR} at (0,72) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,90) size 784x22
         LayoutText {#text} at (0,2) size 44x19
           text run at (0,2) width 44: "\x{442}\x{FFFD}\x{FFFD}\x{442}"
+layer at (8,80) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,72) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/encoding/utf-16-big-endian-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/encoding/utf-16-big-endian-expected.txt
index ffcd939..32dbeea5 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/encoding/utf-16-big-endian-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/encoding/utf-16-big-endian-expected.txt
@@ -22,7 +22,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,28.66) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,37.31) size 784x37
         LayoutInline {SPAN} at (0,0) size 110x35
           LayoutInline {SPAN} at (0,0) size 110x35
@@ -45,7 +44,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,80.97) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,89.63) size 784x52
         LayoutInline {SPAN} at (0,0) size 562x50
           LayoutInline {SPAN} at (0,0) size 562x50
@@ -65,7 +63,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,148.28) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,156.94) size 784x21
         LayoutInline {SPAN} at (0,0) size 126x22
           LayoutInline {SPAN} at (0,0) size 126x22
@@ -88,7 +85,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,246.59) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,255.25) size 784x21
         LayoutInline {SPAN} at (0,0) size 128x16
           LayoutInline {SPAN} at (0,0) size 128x16
@@ -137,7 +133,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,345.91) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,354.56) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -237,7 +232,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,567.22) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,575.88) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -337,7 +331,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,788.53) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,797.19) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -394,7 +387,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,923.84) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,932.50) size 784x52
         LayoutInline {SPAN} at (0,0) size 195x50
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -419,7 +411,6 @@
             LayoutBR {BR} at (194,49) size 1x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,991.16) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,999.81) size 784x21
         LayoutInline {SPAN} at (0,0) size 182x16
           LayoutInline {SPAN} at (0,0) size 182x19
@@ -442,7 +433,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,1027.47) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,1036.13) size 784x20
         LayoutInline {SPAN} at (0,0) size 257x16
           LayoutInline {SPAN} at (0,0) size 257x16
@@ -459,7 +449,6 @@
             LayoutText {#text} at (0,0) size 0x0
             LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,1062.78) size 784x31.33
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (0,15.33) size 784x16
           LayoutText {#text} at (0,0) size 203x16
             text run at (0,0) width 203: "This itinerary is subject to change. "
@@ -471,6 +460,28 @@
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
+layer at (8,37) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,156) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,255) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,354) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,575) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,797) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,932) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,999) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,1035) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,1071) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (23,45) size 82x16
   LayoutInline (relative positioned) {SPAN} at (0,0) size 82x16
     LayoutText {#text} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/encoding/utf-16-little-endian-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/encoding/utf-16-little-endian-expected.txt
index ffcd939..32dbeea5 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/encoding/utf-16-little-endian-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/encoding/utf-16-little-endian-expected.txt
@@ -22,7 +22,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,28.66) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,37.31) size 784x37
         LayoutInline {SPAN} at (0,0) size 110x35
           LayoutInline {SPAN} at (0,0) size 110x35
@@ -45,7 +44,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,80.97) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,89.63) size 784x52
         LayoutInline {SPAN} at (0,0) size 562x50
           LayoutInline {SPAN} at (0,0) size 562x50
@@ -65,7 +63,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,148.28) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,156.94) size 784x21
         LayoutInline {SPAN} at (0,0) size 126x22
           LayoutInline {SPAN} at (0,0) size 126x22
@@ -88,7 +85,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,246.59) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,255.25) size 784x21
         LayoutInline {SPAN} at (0,0) size 128x16
           LayoutInline {SPAN} at (0,0) size 128x16
@@ -137,7 +133,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,345.91) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,354.56) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -237,7 +232,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,567.22) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,575.88) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -337,7 +331,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,788.53) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,797.19) size 784x0
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -394,7 +387,6 @@
               LayoutInline {SPAN} at (0,0) size 0x0
               LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,923.84) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,932.50) size 784x52
         LayoutInline {SPAN} at (0,0) size 195x50
           LayoutInline {SPAN} at (0,0) size 0x0
@@ -419,7 +411,6 @@
             LayoutBR {BR} at (194,49) size 1x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,991.16) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,999.81) size 784x21
         LayoutInline {SPAN} at (0,0) size 182x16
           LayoutInline {SPAN} at (0,0) size 182x19
@@ -442,7 +433,6 @@
             LayoutText {#text} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,1027.47) size 784x2
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,1036.13) size 784x20
         LayoutInline {SPAN} at (0,0) size 257x16
           LayoutInline {SPAN} at (0,0) size 257x16
@@ -459,7 +449,6 @@
             LayoutText {#text} at (0,0) size 0x0
             LayoutText {#text} at (0,0) size 0x0
       LayoutBlockFlow (anonymous) at (0,1062.78) size 784x31.33
-        LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
         LayoutBlockFlow {P} at (0,15.33) size 784x16
           LayoutText {#text} at (0,0) size 203x16
             text run at (0,0) width 203: "This itinerary is subject to change. "
@@ -471,6 +460,28 @@
         LayoutInline {SPAN} at (0,0) size 0x0
           LayoutInline {SPAN} at (0,0) size 0x0
           LayoutText {#text} at (0,0) size 0x0
+layer at (8,37) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,156) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,255) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,354) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,575) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,797) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,932) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,999) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,1035) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,1071) size 784x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (23,45) size 82x16
   LayoutInline (relative positioned) {SPAN} at (0,0) size 82x16
     LayoutText {#text} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/forms/button/button-inner-block-reuse-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/forms/button/button-inner-block-reuse-expected.txt
index a873ef0..0410bbb 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/forms/button/button-inner-block-reuse-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/forms/button/button-inner-block-reuse-expected.txt
@@ -20,7 +20,6 @@
         LayoutText {#text} at (0,0) size 749x19
           text run at (0,0) width 530: "In the render tree, the button should have only one child, an anonymous block wrapping "
           text run at (530,0) width 219: "all of the button's other descendants."
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,102) size 784x6
         LayoutButton {BUTTON} at (0,0) size 16x6 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
           LayoutBlockFlow (anonymous) at (8,3) size 0x0
@@ -31,3 +30,5 @@
             LayoutBlockFlow (anonymous) at (0,0) size 0x0
               LayoutInline {SPAN} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/forms/fieldset/fieldset-align-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/forms/fieldset/fieldset-align-expected.txt
index 88450a3..636e6ced 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/forms/fieldset/fieldset-align-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/forms/fieldset/fieldset-align-expected.txt
@@ -34,7 +34,6 @@
         LayoutBlockFlow (anonymous) at (14,25.59) size 737x22
           LayoutTextControl {INPUT} at (0,0) size 173x22 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
           LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,282.38) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,300.38) size 769x20
         LayoutText {#text} at (0,0) size 137x19
           text run at (0,0) width 137: "Legend align test, RTL"
@@ -73,7 +72,6 @@
       LayoutBlockFlow (anonymous) at (0,574.75) size 769x0
         LayoutInline {SPAN} at (0,0) size 0x0
         LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,582.75) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,600.75) size 769x20
         LayoutText {#text} at (0,0) size 252x19
           text run at (0,0) width 252: "Legend align test with margin and padding"
@@ -105,7 +103,6 @@
         LayoutBlockFlow (anonymous) at (17,35) size 705x22
           LayoutTextControl {INPUT} at (0,0) size 173x22 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
           LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,992.75) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,1010.75) size 769x20
         LayoutText {#text} at (0,0) size 287x19
           text run at (0,0) width 287: "Legend align test with margin and padding, RTL"
@@ -152,6 +149,8 @@
   LayoutBlockFlow {DIV} at (2,3) size 169x16
 layer at (26,251) size 169x16
   LayoutBlockFlow {DIV} at (2,3) size 169x16
+layer at (8,290) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,282.38) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (590,373) size 169x16
   LayoutBlockFlow {DIV} at (2,3) size 169x16
 layer at (590,433) size 169x16
@@ -160,6 +159,8 @@
   LayoutBlockFlow {DIV} at (2,3) size 169x16
 layer at (590,552) size 169x16
   LayoutBlockFlow {DIV} at (2,3) size 169x16
+layer at (8,591) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,582.75) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (42,683) size 169x16 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
   LayoutBlockFlow {DIV} at (2,3) size 169x16
 layer at (42,772) size 169x16 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
@@ -168,6 +169,8 @@
   LayoutBlockFlow {DIV} at (2,3) size 169x16
 layer at (42,950) size 169x16 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
   LayoutBlockFlow {DIV} at (2,3) size 169x16
+layer at (8,1001) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,992.75) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (574,1093) size 169x16 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
   LayoutBlockFlow {DIV} at (2,3) size 169x16
 layer at (574,1182) size 169x16 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/forms/floating-textfield-relayout-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/forms/floating-textfield-relayout-expected.txt
index 49cbd80..b63bde2d 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/forms/floating-textfield-relayout-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/forms/floating-textfield-relayout-expected.txt
@@ -16,7 +16,8 @@
             text run at (0,20) width 62: "keystroke"
         LayoutText {#text} at (61,20) size 5x19
           text run at (61,20) width 5: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,74) size 784x0
   LayoutBlockFlow (relative positioned) {DIV} at (0,66) size 784x0
     LayoutTextControl (floating) {INPUT} at (0,0) size 392x22 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/forms/image-border-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/forms/image-border-expected.txt
index 045501c..f17b29c8 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/forms/image-border-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/forms/image-border-expected.txt
@@ -12,9 +12,10 @@
         LayoutText {#text} at (0,35) size 52x19
           text run at (0,35) width 52: "border:0"
         LayoutImage {IMG} at (52,0) size 338x50
-      LayoutBlockFlow {HR} at (0,119) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,129) size 784x57
         LayoutText {#text} at (0,37) size 52x19
           text run at (0,37) width 52: "border:1"
         LayoutImage {IMG} at (52,0) size 340x52 [border: (1px solid #000000)]
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,127) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,119) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/forms/input-value-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/forms/input-value-expected.txt
index 99c32d48..bbdbf240 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/forms/input-value-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/forms/input-value-expected.txt
@@ -10,7 +10,6 @@
       LayoutBlockFlow {P} at (0,56) size 784x20
         LayoutText {#text} at (0,0) size 676x19
           text run at (0,0) width 676: "Results that match Gecko are like WinIE, but with \"before\" for the attribute in the first two rows and the last row."
-      LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {FORM} at (0,102) size 784x376
         LayoutTable {TABLE} at (0,0) size 734x376
           LayoutTableSection {THEAD} at (0,0) size 734x26
@@ -204,6 +203,8 @@
               LayoutTableCell {TD} at (673,325) size 59x22 [r=13 c=3 rs=1 cs=1]
                 LayoutText {#text} at (1,1) size 39x19
                   text run at (1,1) width 39: "before"
+layer at (8,100) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,92) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (381,140) size 169x16
   LayoutBlockFlow {DIV} at (2,3) size 169x16
     LayoutText {#text} at (0,0) size 35x16
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/forms/select/menulist-appearance-rtl-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/forms/select/menulist-appearance-rtl-expected.txt
index 220575e..40f63e3 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/forms/select/menulist-appearance-rtl-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/forms/select/menulist-appearance-rtl-expected.txt
@@ -1,17 +1,17 @@
 layer at (0,0) size 800x600
   LayoutView at (0,0) size 800x600
-layer at (0,0) size 800x540
-  LayoutBlockFlow {HTML} at (0,0) size 800x540
-    LayoutBlockFlow {BODY} at (8,16) size 784x516
-      LayoutBlockFlow {P} at (0,0) size 784x36
-        LayoutText {#text} at (0,0) size 758x35
-          text run at (0,0) width 758: "This tests that bidirectional text is correctly rendered in popup controls. The order of the text below each popup button"
-          text run at (0,18) width 600: "should match the order of the select's option text, and the order of the text in the popup menu."
-      LayoutBlockFlow {DL} at (0,52) size 784x168
-        LayoutBlockFlow {DT} at (0,0) size 784x18
-          LayoutText {#text} at (0,0) size 286x17
-            text run at (0,0) width 286: "1) direction: rtl; -webkit-rtl-ordering: logical"
-        LayoutBlockFlow {DD} at (40,18) size 744x38
+layer at (0,0) size 800x563
+  LayoutBlockFlow {HTML} at (0,0) size 800x563
+    LayoutBlockFlow {BODY} at (8,16) size 784x539
+      LayoutBlockFlow {P} at (0,0) size 784x40
+        LayoutText {#text} at (0,0) size 755x39
+          text run at (0,0) width 755: "This tests that bidirectional text is correctly rendered in popup controls. The order of the text below each popup button should"
+          text run at (0,20) width 520: "match the order of the select's option text, and the order of the text in the popup menu."
+      LayoutBlockFlow {DL} at (0,56) size 784x180
+        LayoutBlockFlow {DT} at (0,0) size 784x20
+          LayoutText {#text} at (0,0) size 262x19
+            text run at (0,0) width 262: "1) direction: rtl; -webkit-rtl-ordering: logical"
+        LayoutBlockFlow {DD} at (40,20) size 744x40
           LayoutBlockFlow (anonymous) at (0,0) size 744x20
             LayoutMenuList {SELECT} at (0,0) size 100x20 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
               LayoutBlockFlow (anonymous) at (1,1) size 98x18
@@ -19,14 +19,14 @@
                   text run at (31,1) width 42 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
                   text run at (73,1) width 21: "abc"
             LayoutText {#text} at (0,0) size 0x0
-          LayoutBlockFlow {DIV} at (0,20) size 100x18
-            LayoutText {#text} at (31,0) size 69x17
+          LayoutBlockFlow {DIV} at (0,20) size 100x20
+            LayoutText {#text} at (31,0) size 69x19
               text run at (31,0) width 47 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
-              text run at (77,0) width 23: "abc"
-        LayoutBlockFlow {DT} at (0,56) size 784x18
-          LayoutText {#text} at (0,0) size 118x17
-            text run at (0,0) width 118: "2) text-align: right"
-        LayoutBlockFlow {DD} at (40,74) size 744x38
+              text run at (78,0) width 22: "abc"
+        LayoutBlockFlow {DT} at (0,60) size 784x20
+          LayoutText {#text} at (0,0) size 105x19
+            text run at (0,0) width 105: "2) text-align: right"
+        LayoutBlockFlow {DD} at (40,80) size 744x40
           LayoutBlockFlow (anonymous) at (0,0) size 744x20
             LayoutMenuList {SELECT} at (0,0) size 200x20 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
               LayoutBlockFlow (anonymous) at (1,1) size 198x18
@@ -34,14 +34,14 @@
                   text run at (4,1) width 21: "abc"
                   text run at (25,1) width 42 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
             LayoutText {#text} at (0,0) size 0x0
-          LayoutBlockFlow {DIV} at (0,20) size 200x18
-            LayoutText {#text} at (0,0) size 69x17
-              text run at (0,0) width 23: "abc"
+          LayoutBlockFlow {DIV} at (0,20) size 200x20
+            LayoutText {#text} at (0,0) size 69x19
+              text run at (0,0) width 22: "abc"
               text run at (22,0) width 47 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
-        LayoutBlockFlow {DT} at (0,112) size 784x18
-          LayoutText {#text} at (0,0) size 72x17
-            text run at (0,0) width 72: "3) No style"
-        LayoutBlockFlow {DD} at (40,130) size 744x38
+        LayoutBlockFlow {DT} at (0,120) size 784x20
+          LayoutText {#text} at (0,0) size 68x19
+            text run at (0,0) width 68: "3) No style"
+        LayoutBlockFlow {DD} at (40,140) size 744x40
           LayoutBlockFlow (anonymous) at (0,0) size 744x20
             LayoutMenuList {SELECT} at (0,0) size 100x20 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
               LayoutBlockFlow (anonymous) at (1,1) size 98x18
@@ -49,120 +49,122 @@
                   text run at (4,1) width 21: "abc"
                   text run at (25,1) width 42 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
             LayoutText {#text} at (0,0) size 0x0
-          LayoutBlockFlow {DIV} at (0,20) size 100x18
-            LayoutText {#text} at (0,0) size 69x17
-              text run at (0,0) width 23: "abc"
+          LayoutBlockFlow {DIV} at (0,20) size 100x20
+            LayoutText {#text} at (0,0) size 69x19
+              text run at (0,0) width 22: "abc"
               text run at (22,0) width 47 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
-      LayoutBlockFlow {HR} at (0,236) size 784x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow {DIV} at (0,246) size 784x54
-        LayoutBlockFlow (anonymous) at (0,0) size 784x18
-          LayoutText {#text} at (0,0) size 632x17
-            text run at (0,0) width 632: "The following line and the SELECT element should have same text, and no characters are lacking."
-        LayoutBlockFlow {DIV} at (0,18) size 784x16
-          LayoutText {#text} at (0,0) size 101x16
-            text run at (0,0) width 101 RTL: "\x{627}\x{644}\x{627}\x{642}\x{62A}\x{631}\x{627}\x{62D}\x{627}\x{62A} / \x{627}\x{644}\x{634}\x{643}\x{627}\x{648}\x{64A}"
-        LayoutBlockFlow (anonymous) at (0,34) size 784x20
+      LayoutBlockFlow {DIV} at (0,262) size 784x55
+        LayoutBlockFlow (anonymous) at (0,0) size 784x20
+          LayoutText {#text} at (0,0) size 587x19
+            text run at (0,0) width 587: "The following line and the SELECT element should have same text, and no characters are lacking."
+        LayoutBlockFlow {DIV} at (0,20) size 784x15
+          LayoutText {#text} at (0,0) size 97x15
+            text run at (0,0) width 97 RTL: "\x{627}\x{644}\x{627}\x{642}\x{62A}\x{631}\x{627}\x{62D}\x{627}\x{62A} / \x{627}\x{644}\x{634}\x{643}\x{627}\x{648}\x{64A}"
+        LayoutBlockFlow (anonymous) at (0,35) size 784x20
           LayoutMenuList {SELECT} at (0,0) size 113x20 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
             LayoutBlockFlow (anonymous) at (1,1) size 111x18
               LayoutText (anonymous) at (4,1) size 91x16
                 text run at (4,1) width 91 RTL: "\x{627}\x{644}\x{627}\x{642}\x{62A}\x{631}\x{627}\x{62D}\x{627}\x{62A} / \x{627}\x{644}\x{634}\x{643}\x{627}\x{648}\x{64A}"
           LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,308) size 784x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow {P} at (0,326) size 784x18
-        LayoutText {#text} at (0,0) size 709x17
-          text run at (0,0) width 709: "Verify that the alignment and writing direction of each selected item matches the one below the pop-up button."
-layer at (8,376) size 784x156
-  LayoutBlockFlow {DIV} at (0,360) size 784x156
-    LayoutMultiColumnSet (anonymous) at (0,0) size 784x156
-layer at (8,376) size 384x312 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
-  LayoutMultiColumnFlowThread (anonymous) at (0,0) size 384x312
-    LayoutBlockFlow {DIV} at (0,0) size 384x156
-      LayoutMenuList {SELECT} at (0,0) size 350x21 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x20
-          LayoutText (anonymous) at (4,1) size 177x17
-            text run at (4,1) width 36: "First "
-            text run at (39,1) width 54 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA}"
-            text run at (92,1) width 19: "03"
-            text run at (110,1) width 41 RTL: "\x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
-            text run at (150,1) width 31: " fifth"
-      LayoutBlockFlow {DIV} at (0,21) size 352x18
+      LayoutBlockFlow {P} at (0,343) size 784x20
+        LayoutText {#text} at (0,0) size 659x19
+          text run at (0,0) width 659: "Verify that the alignment and writing direction of each selected item matches the one below the pop-up button."
+layer at (8,268) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,252) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,341) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,325) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,395) size 784x160
+  LayoutBlockFlow {DIV} at (0,379) size 784x160
+    LayoutMultiColumnSet (anonymous) at (0,0) size 784x160
+layer at (8,395) size 384x320 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutMultiColumnFlowThread (anonymous) at (0,0) size 384x320
+    LayoutBlockFlow {DIV} at (0,0) size 384x160
+      LayoutMenuList {SELECT} at (0,0) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
+        LayoutBlockFlow (anonymous) at (1,1) size 348x21
+          LayoutText (anonymous) at (4,1) size 170x18
+            text run at (4,1) width 35: "First "
+            text run at (39,1) width 50 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA}"
+            text run at (89,1) width 18: "03"
+            text run at (107,1) width 39 RTL: "\x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
+            text run at (146,1) width 28: " fifth"
+      LayoutBlockFlow {DIV} at (0,22) size 352x18
         LayoutText {#text} at (1,1) size 130x15
           text run at (1,1) width 27: "First "
           text run at (28,1) width 38 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA}"
           text run at (66,1) width 12: "03"
           text run at (78,1) width 28 RTL: "\x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
           text run at (106,1) width 25: " fifth"
-      LayoutMenuList {SELECT} at (0,39) size 350x21 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x20
-          LayoutText (anonymous) at (4,1) size 177x17
-            text run at (4,1) width 26: "fifth"
-            text run at (29,1) width 59 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} "
-            text run at (87,1) width 19: "03"
-            text run at (105,1) width 45 RTL: " \x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
-            text run at (149,1) width 32: "First"
-      LayoutBlockFlow {DIV} at (0,60) size 352x18
+      LayoutMenuList {SELECT} at (0,40) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
+        LayoutBlockFlow (anonymous) at (1,1) size 348x21
+          LayoutText (anonymous) at (4,1) size 170x18
+            text run at (4,1) width 24: "fifth"
+            text run at (28,1) width 54 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} "
+            text run at (82,1) width 18: "03"
+            text run at (100,1) width 43 RTL: " \x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
+            text run at (143,1) width 31: "First"
+      LayoutBlockFlow {DIV} at (0,62) size 352x18
         LayoutText {#text} at (1,1) size 130x15
           text run at (1,1) width 22: "fifth"
           text run at (23,1) width 41 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} "
           text run at (64,1) width 12: "03"
           text run at (76,1) width 31 RTL: " \x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
           text run at (107,1) width 24: "First"
-      LayoutMenuList {SELECT} at (0,78) size 350x21 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x20
-          LayoutText (anonymous) at (4,1) size 177x17
-            text run at (4,1) width 177 LTR override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
-      LayoutBlockFlow {DIV} at (0,99) size 352x18
+      LayoutMenuList {SELECT} at (0,80) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
+        LayoutBlockFlow (anonymous) at (1,1) size 348x21
+          LayoutText (anonymous) at (4,1) size 170x18
+            text run at (4,1) width 170 LTR override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
+      LayoutBlockFlow {DIV} at (0,102) size 352x18
         LayoutText {#text} at (1,1) size 130x15
           text run at (1,1) width 130 LTR override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
-      LayoutMenuList {SELECT} at (0,117) size 350x21 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x20
-          LayoutText (anonymous) at (4,1) size 177x17
-            text run at (4,1) width 177 RTL override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
-      LayoutBlockFlow {DIV} at (0,138) size 352x18
+      LayoutMenuList {SELECT} at (0,120) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
+        LayoutBlockFlow (anonymous) at (1,1) size 348x21
+          LayoutText (anonymous) at (4,1) size 170x18
+            text run at (4,1) width 170 RTL override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
+      LayoutBlockFlow {DIV} at (0,142) size 352x18
         LayoutText {#text} at (1,1) size 130x15
           text run at (1,1) width 130 RTL override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
-    LayoutBlockFlow {DIV} at (0,156) size 384x156
-      LayoutMenuList {SELECT} at (0,0) size 350x21 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x20
-          LayoutText (anonymous) at (167,1) size 177x17
-            text run at (167,1) width 36: "First "
-            text run at (202,1) width 54 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA}"
-            text run at (255,1) width 19: "03"
-            text run at (273,1) width 41 RTL: "\x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
-            text run at (313,1) width 31: " fifth"
-      LayoutBlockFlow {DIV} at (0,21) size 352x18
+    LayoutBlockFlow {DIV} at (0,160) size 384x160
+      LayoutMenuList {SELECT} at (0,0) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
+        LayoutBlockFlow (anonymous) at (1,1) size 348x21
+          LayoutText (anonymous) at (174,1) size 170x18
+            text run at (174,1) width 35: "First "
+            text run at (209,1) width 50 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA}"
+            text run at (259,1) width 18: "03"
+            text run at (277,1) width 39 RTL: "\x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
+            text run at (316,1) width 28: " fifth"
+      LayoutBlockFlow {DIV} at (0,22) size 352x18
         LayoutText {#text} at (221,1) size 130x15
           text run at (221,1) width 27: "First "
           text run at (248,1) width 38 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA}"
           text run at (286,1) width 12: "03"
           text run at (298,1) width 28 RTL: "\x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
           text run at (326,1) width 25: " fifth"
-      LayoutMenuList {SELECT} at (0,39) size 350x21 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x20
-          LayoutText (anonymous) at (167,1) size 177x17
-            text run at (167,1) width 26: "fifth"
-            text run at (192,1) width 59 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} "
-            text run at (250,1) width 19: "03"
-            text run at (268,1) width 45 RTL: " \x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
-            text run at (312,1) width 32: "First"
-      LayoutBlockFlow {DIV} at (0,60) size 352x18
+      LayoutMenuList {SELECT} at (0,40) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
+        LayoutBlockFlow (anonymous) at (1,1) size 348x21
+          LayoutText (anonymous) at (174,1) size 170x18
+            text run at (174,1) width 24: "fifth"
+            text run at (198,1) width 54 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} "
+            text run at (252,1) width 18: "03"
+            text run at (270,1) width 43 RTL: " \x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
+            text run at (313,1) width 31: "First"
+      LayoutBlockFlow {DIV} at (0,62) size 352x18
         LayoutText {#text} at (221,1) size 130x15
           text run at (221,1) width 22: "fifth"
           text run at (243,1) width 41 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} "
           text run at (284,1) width 12: "03"
           text run at (296,1) width 31 RTL: " \x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
           text run at (327,1) width 24: "First"
-      LayoutMenuList {SELECT} at (0,78) size 350x21 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x20
-          LayoutText (anonymous) at (167,1) size 177x17
-            text run at (167,1) width 177 LTR override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
-      LayoutBlockFlow {DIV} at (0,99) size 352x18
+      LayoutMenuList {SELECT} at (0,80) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
+        LayoutBlockFlow (anonymous) at (1,1) size 348x21
+          LayoutText (anonymous) at (174,1) size 170x18
+            text run at (174,1) width 170 LTR override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
+      LayoutBlockFlow {DIV} at (0,102) size 352x18
         LayoutText {#text} at (221,1) size 130x15
           text run at (221,1) width 130 LTR override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
-      LayoutMenuList {SELECT} at (0,117) size 350x21 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x20
-          LayoutText (anonymous) at (167,1) size 177x17
-            text run at (167,1) width 177 RTL override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
-      LayoutBlockFlow {DIV} at (0,138) size 352x18
+      LayoutMenuList {SELECT} at (0,120) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
+        LayoutBlockFlow (anonymous) at (1,1) size 348x21
+          LayoutText (anonymous) at (174,1) size 170x18
+            text run at (174,1) width 170 RTL override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
+      LayoutBlockFlow {DIV} at (0,142) size 352x18
         LayoutText {#text} at (221,1) size 130x15
           text run at (221,1) width 130 RTL override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/forms/select/select-visual-hebrew-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/forms/select/select-visual-hebrew-expected.txt
index 83d6cb38..1ba68ee4 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/forms/select/select-visual-hebrew-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/forms/select/select-visual-hebrew-expected.txt
@@ -6,7 +6,6 @@
       LayoutBlockFlow {P} at (0,0) size 784x20
         LayoutText {#text} at (0,0) size 593x19
           text run at (0,0) width 593 LTR override: "This tests that native pop-ups are rendered in logical order even in visually-ordered Hebrew pages."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,54) size 784x20
         LayoutText {#text} at (0,0) size 362x19
           text run at (0,0) width 362 LTR override: "Text on the pop-up and in the list should look like this: \x{5E8}\x{5D5}\x{5EA}\x{5E4}\x{5DB}"
@@ -16,3 +15,5 @@
             LayoutText (anonymous) at (4,1) size 31x16
               text run at (4,1) width 31 RTL: "\x{5DB}\x{5E4}\x{5EA}\x{5D5}\x{5E8}"
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/forms/visual-hebrew-text-field-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/forms/visual-hebrew-text-field-expected.txt
index 5353a70..bde2252f 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/forms/visual-hebrew-text-field-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/forms/visual-hebrew-text-field-expected.txt
@@ -15,13 +15,14 @@
             text run at (0,20) width 252 LTR override: "are reversed on \"visual Hebrew\" pages"
         LayoutText {#text} at (251,20) size 5x19
           text run at (251,20) width 5 LTR override: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,74) size 784x20
         LayoutText {#text} at (0,0) size 255x19
           text run at (0,0) width 255 LTR override: "Text in the field should look like this: \x{5E8}\x{5D5}\x{5EA}\x{5E4}\x{5DB}"
       LayoutBlockFlow (anonymous) at (0,110) size 784x22
         LayoutTextControl {INPUT} at (0,0) size 173x22 [bgcolor=#FFFFFF] [border: (2px inset #EEEEEE)]
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (10,121) size 169x16
   LayoutBlockFlow {DIV} at (2,3) size 169x16
     LayoutText {#text} at (0,0) size 31x16
diff --git a/third_party/WebKit/LayoutTests/platform/win/fast/layers/opacity-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/fast/layers/opacity-outline-expected.txt
index 926bec5..f4bf7592 100644
--- a/third_party/WebKit/LayoutTests/platform/win/fast/layers/opacity-outline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/fast/layers/opacity-outline-expected.txt
@@ -16,6 +16,7 @@
             text run at (0,20) width 319: "outline causes the outline to disappear completely"
         LayoutText {#text} at (319,20) size 4x19
           text run at (319,20) width 4: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,74) size 100x100 transparent
   LayoutBlockFlow {DIV} at (0,66) size 100x100 [bgcolor=#C0C0C0]
diff --git a/third_party/WebKit/LayoutTests/platform/win/html/tabular_data/table_createcaption-expected.txt b/third_party/WebKit/LayoutTests/platform/win/html/tabular_data/table_createcaption-expected.txt
index c04cb42..997343d 100644
--- a/third_party/WebKit/LayoutTests/platform/win/html/tabular_data/table_createcaption-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/html/tabular_data/table_createcaption-expected.txt
@@ -29,7 +29,6 @@
         LayoutText {#text} at (702,0) size 745x39
           text run at (702,0) width 43: ". Upon"
           text run at (0,20) width 549: "failure, the first table will have no caption, and the second table will have the caption Things."
-      LayoutBlockFlow {HR} at (0,168) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutTable {TABLE} at (0,178) size 103x102 [border: (1px outset #808080)]
         LayoutBlockFlow {CAPTION} at (0,0) size 103x20
           LayoutInline {B} at (0,0) size 41x19
@@ -86,3 +85,5 @@
             LayoutTableCell {TD} at (75,54) size 49x24 [border: (1px inset #808080)] [r=2 c=1 rs=1 cs=1]
               LayoutText {#text} at (2,2) size 37x19
                 text run at (2,2) width 37: "Green"
+layer at (8,176) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,168) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/html/tabular_data/td_colspan_rendering-expected.txt b/third_party/WebKit/LayoutTests/platform/win/html/tabular_data/td_colspan_rendering-expected.txt
index 2ee8412..10ccf2a6 100644
--- a/third_party/WebKit/LayoutTests/platform/win/html/tabular_data/td_colspan_rendering-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/html/tabular_data/td_colspan_rendering-expected.txt
@@ -23,7 +23,6 @@
           text run at (0,20) width 604: "the first row should span only column \"one\" and the second cell should span all of the other columns. "
           text run at (604,20) width 156: "The second table tests the"
           text run at (0,40) width 397: "zero value. \"Just A\" should span \"A\" and \"Just B\" should span \"B.\""
-      LayoutBlockFlow {HR} at (0,208) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,218) size 784x20
         LayoutBR {BR} at (0,0) size 0x19
       LayoutTable {TABLE} at (0,238) size 255x76 [border: (1px outset #808080)]
@@ -102,3 +101,5 @@
             LayoutTableCell {TD} at (170,28) size 15x24 [border: (1px inset #808080)] [r=1 c=7 rs=1 cs=1]
               LayoutText {#text} at (2,2) size 11x19
                 text run at (2,2) width 11: "H"
+layer at (8,216) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,208) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/flexible-box-overflow-expected.txt b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/flexible-box-overflow-expected.txt
index b7e9437..cd7a020 100644
--- a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/flexible-box-overflow-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/flexible-box-overflow-expected.txt
@@ -16,7 +16,6 @@
             text run at (0,20) width 244: "their top, left and children's overflows"
         LayoutText {#text} at (243,20) size 5x19
           text run at (243,20) width 5: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,66) size 784x100
         LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
           LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
@@ -40,3 +39,5 @@
               text run at (1,101) width 30: "Nam"
               text run at (1,121) width 94: "consectetuer mi"
               text run at (1,141) width 57: "eget velit."
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/flexible-box-overflow-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
index b7e9437..cd7a020 100644
--- a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
@@ -16,7 +16,6 @@
             text run at (0,20) width 244: "their top, left and children's overflows"
         LayoutText {#text} at (243,20) size 5x19
           text run at (243,20) width 5: "."
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,66) size 784x100
         LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
           LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
@@ -40,3 +39,5 @@
               text run at (1,101) width 30: "Nam"
               text run at (1,121) width 94: "consectetuer mi"
               text run at (1,141) width 57: "eget velit."
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/inline-block-overflow-expected.txt b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/inline-block-overflow-expected.txt
index 41748e3..a1ad30c7 100644
--- a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/inline-block-overflow-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/inline-block-overflow-expected.txt
@@ -6,7 +6,6 @@
       LayoutBlockFlow {P} at (0,0) size 784x20
         LayoutText {#text} at (0,0) size 302x19
           text run at (0,0) width 302: "This is a repaint test of inline blocks with overflow."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow (anonymous) at (0,46) size 784x20
         LayoutInline {SPAN} at (0,0) size 195x19
           LayoutText {#text} at (0,0) size 95x19
@@ -16,3 +15,5 @@
               text run at (0,0) width 97: "inline block with"
               text run at (0,20) width 56: "overflow."
         LayoutText {#text} at (0,0) size 0x0
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/layer-child-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/layer-child-outline-expected.txt
index d53bb3c6..776f481 100644
--- a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/layer-child-outline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/layer-child-outline-expected.txt
@@ -6,7 +6,8 @@
       LayoutBlockFlow {P} at (0,0) size 784x20
         LayoutText {#text} at (0,0) size 300x19
           text run at (0,0) width 300: "This tests repainting of a layer's children's outlines."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,54) size 100x100
   LayoutBlockFlow (relative positioned) {DIV} at (0,46) size 100x100 [bgcolor=#C0C0C0]
     LayoutBlockFlow {DIV} at (0,0) size 100x100
diff --git a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/layer-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/layer-outline-expected.txt
index bc9d2ec..a3fda7e7 100644
--- a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/layer-outline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/layer-outline-expected.txt
@@ -14,7 +14,8 @@
             text run at (546,0) width 197: " Layer outline does not repaint"
         LayoutText {#text} at (742,0) size 5x19
           text run at (742,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (18,194) size 100x100 clip at (19,195) size 98x98
   LayoutBlockFlow {DIV} at (10,186) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
 layer at (8,54) size 784x130
diff --git a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/layer-outline-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/layer-outline-horizontal-expected.txt
index bc9d2ec..a3fda7e7 100644
--- a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/layer-outline-horizontal-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/layer-outline-horizontal-expected.txt
@@ -14,7 +14,8 @@
             text run at (546,0) width 197: " Layer outline does not repaint"
         LayoutText {#text} at (742,0) size 5x19
           text run at (742,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (18,194) size 100x100 clip at (19,195) size 98x98
   LayoutBlockFlow {DIV} at (10,186) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
 layer at (8,54) size 784x130
diff --git a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/text-shadow-expected.txt b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/text-shadow-expected.txt
index f04c085..7b95a4c 100644
--- a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/text-shadow-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/text-shadow-expected.txt
@@ -15,7 +15,6 @@
             text run at (517,0) width 249: "Text shadow does not repaint correctly"
         LayoutText {#text} at (765,0) size 5x19
           text run at (765,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (30,68) size 724x21
         LayoutInline {SPAN} at (0,0) size 199x20 [bgcolor=#C0C0C0]
           LayoutText {#text} at (0,0) size 199x20
@@ -39,3 +38,5 @@
             text run at (0,0) width 96: "Lorem ipsum"
         LayoutText {#text} at (96,1) size 86x19
           text run at (96,1) width 86: " dolor sit amet"
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/text-shadow-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/text-shadow-horizontal-expected.txt
index f04c085..7b95a4c 100644
--- a/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/text-shadow-horizontal-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/paint/invalidation/text-shadow-horizontal-expected.txt
@@ -15,7 +15,6 @@
             text run at (517,0) width 249: "Text shadow does not repaint correctly"
         LayoutText {#text} at (765,0) size 5x19
           text run at (765,0) width 5: "."
-      LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (30,68) size 724x21
         LayoutInline {SPAN} at (0,0) size 199x20 [bgcolor=#C0C0C0]
           LayoutText {#text} at (0,0) size 199x20
@@ -39,3 +38,5 @@
             text run at (0,0) width 96: "Lorem ipsum"
         LayoutText {#text} at (96,1) size 86x19
           text run at (96,1) width 86: " dolor sit amet"
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/plugins/embed-attributes-style-expected.txt b/third_party/WebKit/LayoutTests/platform/win/plugins/embed-attributes-style-expected.txt
index 580e60f..1afd5c5a 100644
--- a/third_party/WebKit/LayoutTests/platform/win/plugins/embed-attributes-style-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/plugins/embed-attributes-style-expected.txt
@@ -8,7 +8,6 @@
           text run at (0,0) width 378: "This page tests using attributes to set style on embed elements. "
           text run at (378,0) width 390: "Previous versions of WebKit supported valign and border, which"
           text run at (0,20) width 430: "didn't match IE and FF. The only special support should be for 'hidden.'"
-      LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,66) size 784x0
       LayoutBlockFlow {DIV} at (0,66) size 784x105
         LayoutText {#text} at (50,85) size 115x19
@@ -22,6 +21,8 @@
         LayoutText {#text} at (52,87) size 97x19
           text run at (52,87) width 4: " "
           text run at (56,87) width 93: "hidden attribute"
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
 layer at (8,74) size 50x100
   LayoutEmbeddedObject (relative positioned) {EMBED} at (0,0) size 50x100
 layer at (8,179) size 50x100
diff --git a/third_party/WebKit/LayoutTests/platform/win/printing/absolute-position-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/win/printing/absolute-position-headers-and-footers-expected.txt
index df3d852..c2582fa6 100644
--- a/third_party/WebKit/LayoutTests/platform/win/printing/absolute-position-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/printing/absolute-position-headers-and-footers-expected.txt
@@ -1,241 +1,243 @@
-layer at (0,0) size 1046x799 scrollHeight 2567
+layer at (0,0) size 1046x799 scrollHeight 2685
   LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2567 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2567
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2535
-      LayoutBlockFlow {P} at (0,0) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,34) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,68) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,102) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,136) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,170) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,204) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,238) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,272) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,306) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,340) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,374) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,408) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,442) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,476) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,510) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,544) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,578) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,646) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,680) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,714) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,748) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,817) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,851) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,885) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,919) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,953) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,987) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1021) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1055) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1089) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1123) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1157) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1191) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1225) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1259) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1293) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1327) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1361) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1429) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1463) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1497) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1531) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1616) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1650) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1684) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1718) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1752) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1786) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1820) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1854) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1888) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1922) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1956) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1990) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2024) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2058) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2092) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2126) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2160) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2228) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2262) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2296) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2330) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2415) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2449) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2483) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2517) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-layer at (8,0) size 615x36
-  LayoutBlockFlow (positioned) {DIV} at (8,0) size 615.39x36
-    LayoutBlockFlow {DIV} at (0,0) size 615.39x28
-      LayoutBlockFlow (anonymous) at (0,0) size 615.39x18
-        LayoutText {#text} at (0,0) size 616x17
-          text run at (0,0) width 616: "crbug.com/303728: Header Line is absolute positioned so should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 615.39x2 [border: (1px inset #EEEEEE)]
-layer at (8,763) size 611x36
-  LayoutBlockFlow (positioned) {DIV} at (8,763) size 610.98x36
-    LayoutBlockFlow {DIV} at (0,8) size 610.98x28
-      LayoutBlockFlow {HR} at (0,0) size 610.98x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 610.98x18
-        LayoutText {#text} at (0,0) size 611x17
-          text run at (0,0) width 611: "crbug.com/303728: Footer Line is absolute positioned so should not be repeated on every page."
+layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
+    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
+      LayoutBlockFlow {P} at (0,0) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,36) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,72) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,108) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,144) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,180) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,216) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,252) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,288) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,324) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,360) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,396) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,432) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,468) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,504) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,540) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,576) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,612) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,648) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,684) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,720) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,756) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,783) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,819) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,855) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,891) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,927) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,963) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,999) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1035) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1071) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1107) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1143) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1179) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1215) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1251) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1287) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1323) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1359) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1395) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1431) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1467) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1503) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1539) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1582) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1618) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1654) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1690) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1726) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1762) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1798) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1834) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1870) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1906) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1942) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1978) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2014) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2050) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2086) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2122) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2158) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2194) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2230) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2266) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2302) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2338) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2381) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2417) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2453) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2489) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2525) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2561) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2597) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2633) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+layer at (8,0) size 584x38
+  LayoutBlockFlow (positioned) {DIV} at (8,0) size 584x38
+    LayoutBlockFlow {DIV} at (0,0) size 584x30
+      LayoutBlockFlow (anonymous) at (0,0) size 584x20
+        LayoutText {#text} at (0,0) size 584x19
+          text run at (0,0) width 584: "crbug.com/303728: Header Line is absolute positioned so should not be repeated on every page."
+layer at (8,28) size 584x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 584x2 [border: (1px inset #EEEEEE)]
+layer at (8,761) size 580x38
+  LayoutBlockFlow (positioned) {DIV} at (8,761) size 580x38
+    LayoutBlockFlow {DIV} at (0,8) size 580x30
+      LayoutBlockFlow (anonymous) at (0,10) size 580x20
+        LayoutText {#text} at (0,0) size 580x19
+          text run at (0,0) width 580: "crbug.com/303728: Footer Line is absolute positioned so should not be repeated on every page."
+layer at (8,769) size 580x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 580x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-but-static-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
index bcd0a47..3b43ace 100644
--- a/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
@@ -1,241 +1,243 @@
-layer at (0,0) size 1046x799 scrollHeight 2567
+layer at (0,0) size 1046x799 scrollHeight 2685
   LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2567 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2567
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2535
-      LayoutBlockFlow {P} at (0,0) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,34) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,68) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,102) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,136) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,170) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,204) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,238) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,272) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,306) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,340) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,374) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,408) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,442) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,476) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,510) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,544) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,578) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,646) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,680) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,714) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,748) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,817) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,851) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,885) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,919) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,953) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,987) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1021) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1055) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1089) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1123) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1157) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1191) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1225) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1259) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1293) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1327) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1361) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1429) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1463) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1497) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1531) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1616) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1650) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1684) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1718) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1752) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1786) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1820) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1854) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1888) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1922) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1956) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1990) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2024) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2058) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2092) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2126) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2160) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2228) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2262) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2296) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2330) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2415) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2449) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2483) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2517) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-layer at (8,16) size 680x36
-  LayoutBlockFlow (positioned) {DIV} at (8,16) size 680.27x36
-    LayoutBlockFlow {DIV} at (0,0) size 680.27x28
-      LayoutBlockFlow (anonymous) at (0,0) size 680.27x18
-        LayoutText {#text} at (0,0) size 681x17
-          text run at (0,0) width 681: "crbug.com/303728: Fixed-position header Line is statically positioned and will be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 680.27x2 [border: (1px inset #EEEEEE)]
-layer at (8,2567) size 624x36 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (8,2567) size 624.30x36
-    LayoutBlockFlow {DIV} at (0,8) size 624.30x28
-      LayoutBlockFlow {HR} at (0,0) size 624.30x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 624.30x18
-        LayoutText {#text} at (0,0) size 625x17
-          text run at (0,0) width 625: "crbug.com/303728: Footer Line is statically positioned and should not be repeated on every page."
+layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
+    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
+      LayoutBlockFlow {P} at (0,0) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,36) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,72) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,108) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,144) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,180) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,216) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,252) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,288) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,324) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,360) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,396) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,432) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,468) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,504) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,540) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,576) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,612) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,648) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,684) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,720) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,756) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,783) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,819) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,855) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,891) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,927) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,963) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,999) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1035) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1071) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1107) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1143) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1179) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1215) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1251) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1287) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1323) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1359) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1395) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1431) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1467) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1503) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1539) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1582) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1618) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1654) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1690) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1726) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1762) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1798) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1834) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1870) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1906) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1942) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1978) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2014) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2050) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2086) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2122) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2158) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2194) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2230) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2266) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2302) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2338) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2381) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2417) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2453) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2489) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2525) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2561) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2597) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2633) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+layer at (8,16) size 638x38
+  LayoutBlockFlow (positioned) {DIV} at (8,16) size 638x38
+    LayoutBlockFlow {DIV} at (0,0) size 638x30
+      LayoutBlockFlow (anonymous) at (0,0) size 638x20
+        LayoutText {#text} at (0,0) size 638x19
+          text run at (0,0) width 638: "crbug.com/303728: Fixed-position header Line is statically positioned and will be repeated on every page."
+layer at (8,44) size 638x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 638x2 [border: (1px inset #EEEEEE)]
+layer at (8,2685) size 589x38 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow (positioned) {DIV} at (8,2685) size 589x38
+    LayoutBlockFlow {DIV} at (0,8) size 589x30
+      LayoutBlockFlow (anonymous) at (0,10) size 589x20
+        LayoutText {#text} at (0,0) size 589x19
+          text run at (0,0) width 589: "crbug.com/303728: Footer Line is statically positioned and should not be repeated on every page."
+layer at (8,2693) size 589x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 589x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt b/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
index c86a393..4ceb0d1 100644
--- a/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
@@ -11,7 +11,8 @@
         LayoutText {#text} at (0,0) size 491x39
           text run at (0,0) width 491: "crbug.com/303728: Header Line should be repeated on every page except where"
           text run at (0,20) width 321: "it's clipped by the absolute element on pages 3 and 4."
-      LayoutBlockFlow {HR} at (0,48) size 500x2 [border: (1px inset #EEEEEE)]
+layer at (5,53) size 500x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,48) size 500x2 [border: (1px inset #EEEEEE)]
 layer at (0,1000) size 600x2000 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) zI: 2 {DIV} at (0,1000) size 600x2000 [bgcolor=#000000]
     LayoutText zI: 2 {#text} at (0,0) size 54x19
diff --git a/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-expected.txt
index 4829fd4..cfd751b 100644
--- a/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-expected.txt
@@ -1,241 +1,243 @@
-layer at (0,0) size 1046x799 scrollHeight 2567
+layer at (0,0) size 1046x799 scrollHeight 2685
   LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2567 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2567
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2535
-      LayoutBlockFlow {P} at (0,0) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,34) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,68) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,102) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,136) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,170) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,204) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,238) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,272) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,306) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,340) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,374) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,408) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,442) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,476) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,510) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,544) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,578) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,646) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,680) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,714) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,748) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,817) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,851) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,885) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,919) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,953) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,987) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1021) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1055) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1089) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1123) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1157) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1191) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1225) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1259) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1293) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1327) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1361) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1429) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1463) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1497) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1531) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1616) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1650) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1684) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1718) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1752) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1786) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1820) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1854) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1888) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1922) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1956) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1990) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2024) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2058) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2092) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2126) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2160) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2228) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2262) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2296) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2330) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2415) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2449) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2483) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2517) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-layer at (8,0) size 524x36
-  LayoutBlockFlow (positioned) {DIV} at (8,0) size 523.84x36
-    LayoutBlockFlow {DIV} at (0,0) size 523.84x28
-      LayoutBlockFlow (anonymous) at (0,0) size 523.84x18
-        LayoutText {#text} at (0,0) size 524x17
-          text run at (0,0) width 524: "crbug.com/303728: Fixed-position header Line should be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 523.84x2 [border: (1px inset #EEEEEE)]
-layer at (8,763) size 426x36
-  LayoutBlockFlow (positioned) {DIV} at (8,763) size 425.66x36
-    LayoutBlockFlow {DIV} at (0,8) size 425.66x28
-      LayoutBlockFlow {HR} at (0,0) size 425.66x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 425.66x18
-        LayoutText {#text} at (0,0) size 426x17
-          text run at (0,0) width 426: "crbug.com/303728: Footer Line should be repeated on every page."
+layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
+    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
+      LayoutBlockFlow {P} at (0,0) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,36) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,72) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,108) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,144) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,180) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,216) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,252) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,288) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,324) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,360) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,396) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,432) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,468) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,504) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,540) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,576) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,612) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,648) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,684) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,720) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,756) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,783) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,819) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,855) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,891) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,927) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,963) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,999) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1035) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1071) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1107) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1143) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1179) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1215) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1251) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1287) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1323) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1359) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1395) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1431) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1467) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1503) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1539) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1582) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1618) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1654) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1690) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1726) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1762) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1798) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1834) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1870) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1906) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1942) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1978) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2014) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2050) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2086) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2122) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2158) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2194) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2230) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2266) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2302) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2338) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2381) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2417) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2453) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2489) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2525) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2561) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2597) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2633) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+layer at (8,0) size 497x38
+  LayoutBlockFlow (positioned) {DIV} at (8,0) size 497x38
+    LayoutBlockFlow {DIV} at (0,0) size 497x30
+      LayoutBlockFlow (anonymous) at (0,0) size 497x20
+        LayoutText {#text} at (0,0) size 497x19
+          text run at (0,0) width 497: "crbug.com/303728: Fixed-position header Line should be repeated on every page."
+layer at (8,28) size 497x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 497x2 [border: (1px inset #EEEEEE)]
+layer at (8,761) size 406x38
+  LayoutBlockFlow (positioned) {DIV} at (8,761) size 406x38
+    LayoutBlockFlow {DIV} at (0,8) size 406x30
+      LayoutBlockFlow (anonymous) at (0,10) size 406x20
+        LayoutText {#text} at (0,0) size 406x19
+          text run at (0,0) width 406: "crbug.com/303728: Footer Line should be repeated on every page."
+layer at (8,769) size 406x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 406x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt b/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
index 87eac940..756b9bc 100644
--- a/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
@@ -1,245 +1,247 @@
-layer at (0,0) size 1046x799 scrollHeight 2567
+layer at (0,0) size 1046x799 scrollHeight 2685
   LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2567 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2567
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2535
-      LayoutBlockFlow {P} at (0,0) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,34) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,68) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,102) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,136) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,170) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,204) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,238) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,272) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,306) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,340) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,374) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,408) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,442) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,476) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,510) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,544) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,578) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,646) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,680) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,714) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,748) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,817) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,851) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,885) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,919) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,953) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,987) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1021) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1055) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1089) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1123) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1157) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1191) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1225) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1259) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1293) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1327) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1361) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1429) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1463) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1497) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1531) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1616) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1650) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1684) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1718) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1752) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1786) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1820) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1854) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1888) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1922) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1956) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1990) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2024) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2058) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2092) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2126) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2160) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2228) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2262) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2296) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2330) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2415) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2449) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2483) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2517) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
+layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
+    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
+      LayoutBlockFlow {P} at (0,0) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,36) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,72) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,108) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,144) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,180) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,216) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,252) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,288) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,324) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,360) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,396) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,432) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,468) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,504) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,540) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,576) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,612) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,648) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,684) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,720) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,756) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,783) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,819) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,855) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,891) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,927) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,963) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,999) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1035) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1071) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1107) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1143) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1179) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1215) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1251) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1287) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1323) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1359) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1395) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1431) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1467) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1503) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1539) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1582) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1618) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1654) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1690) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1726) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1762) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1798) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1834) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1870) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1906) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1942) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1978) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2014) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2050) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2086) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2122) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2158) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2194) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2230) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2266) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2302) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2338) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2381) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2417) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2453) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2489) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2525) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2561) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2597) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2633) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
 layer at (8,16) size 1030x0
   LayoutBlockFlow {DIV} at (0,0) size 1030x0
-layer at (8,16) size 455x36
-  LayoutBlockFlow (positioned) {DIV} at (0,0) size 454.52x36
-    LayoutBlockFlow {DIV} at (0,0) size 454.52x28
-      LayoutBlockFlow (anonymous) at (0,0) size 454.52x18
-        LayoutText {#text} at (0,0) size 455x17
-          text run at (0,0) width 455: "crbug.com/303728: Header Line should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 454.52x2 [border: (1px inset #EEEEEE)]
-layer at (8,2567) size 1030x0
-  LayoutBlockFlow {DIV} at (0,2551) size 1030x0
-layer at (8,2531) size 450x36 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (0,-36) size 450.09x36
-    LayoutBlockFlow {DIV} at (0,8) size 450.09x28
-      LayoutBlockFlow {HR} at (0,0) size 450.09x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 450.09x18
-        LayoutText {#text} at (0,0) size 451x17
-          text run at (0,0) width 451: "crbug.com/303728: Footer Line should not be repeated on every page."
+layer at (8,16) size 433x38
+  LayoutBlockFlow (positioned) {DIV} at (0,0) size 433x38
+    LayoutBlockFlow {DIV} at (0,0) size 433x30
+      LayoutBlockFlow (anonymous) at (0,0) size 433x20
+        LayoutText {#text} at (0,0) size 433x19
+          text run at (0,0) width 433: "crbug.com/303728: Header Line should not be repeated on every page."
+layer at (8,44) size 433x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 433x2 [border: (1px inset #EEEEEE)]
+layer at (8,2685) size 1030x0
+  LayoutBlockFlow {DIV} at (0,2669) size 1030x0
+layer at (8,2647) size 429x38 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow (positioned) {DIV} at (0,-38) size 429x38
+    LayoutBlockFlow {DIV} at (0,8) size 429x30
+      LayoutBlockFlow (anonymous) at (0,10) size 429x20
+        LayoutText {#text} at (0,0) size 429x19
+          text run at (0,0) width 429: "crbug.com/303728: Footer Line should not be repeated on every page."
+layer at (8,2655) size 429x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 429x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt b/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
index 442a95a..d06aef6 100644
--- a/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
@@ -1,241 +1,243 @@
-layer at (0,0) size 1046x799 scrollHeight 2567
+layer at (0,0) size 1046x799 scrollHeight 2685
   LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2567 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2567
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2535
-      LayoutBlockFlow {P} at (0,0) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,34) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,68) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,102) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,136) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,170) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,204) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,238) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,272) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,306) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,340) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,374) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,408) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,442) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,476) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,510) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,544) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,578) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,646) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,680) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,714) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,748) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,817) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,851) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,885) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,919) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,953) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,987) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1021) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1055) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1089) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1123) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1157) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1191) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1225) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1259) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1293) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1327) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1361) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1429) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1463) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1497) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1531) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1616) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1650) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1684) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1718) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1752) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1786) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1820) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1854) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1888) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1922) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1956) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1990) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2024) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2058) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2092) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2126) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2160) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2228) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2262) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2296) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2330) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2415) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2449) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2483) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2517) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-layer at (8,0) size 2010x46 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (8,0) size 2010x46 [border: (5px solid #000000)]
-    LayoutBlockFlow {DIV} at (5,5) size 2000x28
-      LayoutBlockFlow (anonymous) at (0,0) size 2000x18
-        LayoutText {#text} at (0,0) size 706x17
-          text run at (0,0) width 706: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
-      LayoutBlockFlow {HR} at (0,26) size 2000x2 [border: (1px inset #EEEEEE)]
-layer at (8,753) size 2010x46 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (8,753) size 2010x46 [border: (5px solid #000000)]
-    LayoutBlockFlow {DIV} at (5,13) size 2000x28
-      LayoutBlockFlow {HR} at (0,0) size 2000x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 2000x18
-        LayoutText {#text} at (0,0) size 706x17
-          text run at (0,0) width 706: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
+layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
+    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
+      LayoutBlockFlow {P} at (0,0) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,36) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,72) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,108) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,144) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,180) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,216) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,252) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,288) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,324) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,360) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,396) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,432) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,468) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,504) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,540) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,576) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,612) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,648) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,684) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,720) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,756) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,783) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,819) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,855) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,891) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,927) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,963) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,999) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1035) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1071) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1107) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1143) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1179) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1215) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1251) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1287) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1323) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1359) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1395) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1431) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1467) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1503) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1539) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1582) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1618) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1654) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1690) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1726) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1762) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1798) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1834) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1870) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1906) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1942) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1978) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2014) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2050) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2086) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2122) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2158) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2194) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2230) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2266) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2302) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2338) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2381) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2417) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2453) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2489) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2525) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2561) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2597) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2633) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+layer at (8,0) size 2010x48 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow (positioned) {DIV} at (8,0) size 2010x48 [border: (5px solid #000000)]
+    LayoutBlockFlow {DIV} at (5,5) size 2000x30
+      LayoutBlockFlow (anonymous) at (0,0) size 2000x20
+        LayoutText {#text} at (0,0) size 672x19
+          text run at (0,0) width 672: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
+layer at (13,33) size 2000x2 backgroundClip at (13,33) size 1033x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 2000x2 [border: (1px inset #EEEEEE)]
+layer at (8,751) size 2010x48 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow (positioned) {DIV} at (8,751) size 2010x48 [border: (5px solid #000000)]
+    LayoutBlockFlow {DIV} at (5,13) size 2000x30
+      LayoutBlockFlow (anonymous) at (0,10) size 2000x20
+        LayoutText {#text} at (0,0) size 672x19
+          text run at (0,0) width 672: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
+layer at (13,764) size 2000x2 backgroundClip at (13,764) size 1033x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2000x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/svg/custom/svg-float-border-padding-expected.txt b/third_party/WebKit/LayoutTests/platform/win/svg/custom/svg-float-border-padding-expected.txt
index 91aa36f..64a82729 100644
--- a/third_party/WebKit/LayoutTests/platform/win/svg/custom/svg-float-border-padding-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/svg/custom/svg-float-border-padding-expected.txt
@@ -15,7 +15,6 @@
       LayoutBlockFlow {p} at (0,232) size 784x20
         LayoutText {#text} at (0,0) size 338x19
           text run at (0,0) width 338: "There should be a red, white and blue pattern above this"
-      LayoutBlockFlow {hr} at (0,268) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {p} at (0,286) size 784x20
         LayoutText {#text} at (0,0) size 338x19
           text run at (0,0) width 338: "There should be a red, white and blue pattern below this"
@@ -24,3 +23,5 @@
       LayoutBlockFlow {p} at (0,482) size 784x20
         LayoutText {#text} at (0,0) size 338x19
           text run at (0,0) width 338: "There should be a red, white and blue pattern above this"
+layer at (8,276) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {hr} at (0,268) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/svg/zoom/page/zoom-svg-float-border-padding-expected.txt b/third_party/WebKit/LayoutTests/platform/win/svg/zoom/page/zoom-svg-float-border-padding-expected.txt
index e09c64c..1cfd45e 100644
--- a/third_party/WebKit/LayoutTests/platform/win/svg/zoom/page/zoom-svg-float-border-padding-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/svg/zoom/page/zoom-svg-float-border-padding-expected.txt
@@ -16,7 +16,6 @@
       LayoutBlockFlow {p} at (0,357.41) size 761.97x27
         LayoutText {#text} at (0,0) size 523x26
           text run at (0,0) width 523: "There should be a red, white and blue pattern above this"
-      LayoutBlockFlow {hr} at (0,407.44) size 761.97x2.88 [border: (1.44px inset #EEEEEE)]
       LayoutBlockFlow {p} at (0,433.34) size 761.97x27
         LayoutText {#text} at (0,0) size 524x26
           text run at (0,0) width 524: "There should be a red, white and blue pattern below this"
@@ -25,3 +24,5 @@
       LayoutBlockFlow {p} at (0,713.73) size 761.97x27
         LayoutText {#text} at (0,0) size 523x26
           text run at (0,0) width 523: "There should be a red, white and blue pattern above this"
+layer at (12,419) size 762x3 backgroundClip at (12,419) size 761x3 clip at (0,0) size 0x0
+  LayoutBlockFlow {hr} at (0,407.44) size 761.97x2.88 [border: (1.44px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/svg/zoom/text/zoom-svg-float-border-padding-expected.txt b/third_party/WebKit/LayoutTests/platform/win/svg/zoom/text/zoom-svg-float-border-padding-expected.txt
index 6aa91ca..8a5719e 100644
--- a/third_party/WebKit/LayoutTests/platform/win/svg/zoom/text/zoom-svg-float-border-padding-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/svg/zoom/text/zoom-svg-float-border-padding-expected.txt
@@ -16,7 +16,6 @@
       LayoutBlockFlow {p} at (0,287.06) size 769x27
         LayoutText {#text} at (0,0) size 523x26
           text run at (0,0) width 523: "There should be a red, white and blue pattern above this"
-      LayoutBlockFlow {hr} at (0,337.09) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {p} at (0,362.13) size 769x27
         LayoutText {#text} at (0,0) size 524x26
           text run at (0,0) width 524: "There should be a red, white and blue pattern below this"
@@ -25,3 +24,5 @@
       LayoutBlockFlow {p} at (0,572.16) size 769x27
         LayoutText {#text} at (0,0) size 523x26
           text run at (0,0) width 523: "There should be a red, white and blue pattern above this"
+layer at (8,345) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {hr} at (0,337.09) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-expected.txt
new file mode 100644
index 0000000..cd7a020
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-expected.txt
@@ -0,0 +1,43 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x552
+      LayoutBlockFlow {P} at (0,0) size 784x40
+        LayoutText {#text} at (0,0) size 215x19
+          text run at (0,0) width 215: "This is a test for regressions against "
+        LayoutInline {I} at (0,0) size 756x39
+          LayoutInline {A} at (0,0) size 350x19 [color=#0000EE]
+            LayoutText {#text} at (215,0) size 350x19
+              text run at (215,0) width 350: "http://bugzilla.opendarwin.org/show_bug.cgi?id=8056"
+          LayoutText {#text} at (564,0) size 756x39
+            text run at (564,0) width 5: " "
+            text run at (568,0) width 188: "Flexible boxes do not repaint"
+            text run at (0,20) width 244: "their top, left and children's overflows"
+        LayoutText {#text} at (243,20) size 5x19
+          text run at (243,20) width 5: "."
+      LayoutBlockFlow {DIV} at (0,66) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+            LayoutText {#text} at (1,1) size 169x19
+              text run at (1,1) width 169: "Lorem ipsum dolor sit amet."
+      LayoutBlockFlow {DIV} at (0,186) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+      LayoutBlockFlow {DIV} at (0,306) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+      LayoutBlockFlow {DIV} at (0,426) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+            LayoutText {#text} at (1,1) size 94x159
+              text run at (1,1) width 79: "Lorem ipsum"
+              text run at (1,21) width 86: "dolor sit amet,"
+              text run at (1,41) width 76: "consectetuer"
+              text run at (1,61) width 84: "adipiscing elit."
+              text run at (1,81) width 92: "Etiam et ipsum."
+              text run at (1,101) width 30: "Nam"
+              text run at (1,121) width 94: "consectetuer mi"
+              text run at (1,141) width 57: "eget velit."
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
new file mode 100644
index 0000000..cd7a020
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/flexible-box-overflow-horizontal-expected.txt
@@ -0,0 +1,43 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x552
+      LayoutBlockFlow {P} at (0,0) size 784x40
+        LayoutText {#text} at (0,0) size 215x19
+          text run at (0,0) width 215: "This is a test for regressions against "
+        LayoutInline {I} at (0,0) size 756x39
+          LayoutInline {A} at (0,0) size 350x19 [color=#0000EE]
+            LayoutText {#text} at (215,0) size 350x19
+              text run at (215,0) width 350: "http://bugzilla.opendarwin.org/show_bug.cgi?id=8056"
+          LayoutText {#text} at (564,0) size 756x39
+            text run at (564,0) width 5: " "
+            text run at (568,0) width 188: "Flexible boxes do not repaint"
+            text run at (0,20) width 244: "their top, left and children's overflows"
+        LayoutText {#text} at (243,20) size 5x19
+          text run at (243,20) width 5: "."
+      LayoutBlockFlow {DIV} at (0,66) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+            LayoutText {#text} at (1,1) size 169x19
+              text run at (1,1) width 169: "Lorem ipsum dolor sit amet."
+      LayoutBlockFlow {DIV} at (0,186) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+      LayoutBlockFlow {DIV} at (0,306) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+      LayoutBlockFlow {DIV} at (0,426) size 784x100
+        LayoutDeprecatedFlexibleBox {DIV} at (10,10) size 80x80 [bgcolor=#FFFF00]
+          LayoutBlockFlow {DIV} at (-10,-10) size 100x100 [border: (1px solid #000000)]
+            LayoutText {#text} at (1,1) size 94x159
+              text run at (1,1) width 79: "Lorem ipsum"
+              text run at (1,21) width 86: "dolor sit amet,"
+              text run at (1,41) width 76: "consectetuer"
+              text run at (1,61) width 84: "adipiscing elit."
+              text run at (1,81) width 92: "Etiam et ipsum."
+              text run at (1,101) width 30: "Nam"
+              text run at (1,121) width 94: "consectetuer mi"
+              text run at (1,141) width 57: "eget velit."
+layer at (8,64) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,56) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/inline-block-overflow-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/inline-block-overflow-expected.txt
new file mode 100644
index 0000000..a1ad30c7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/inline-block-overflow-expected.txt
@@ -0,0 +1,19 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 302x19
+          text run at (0,0) width 302: "This is a repaint test of inline blocks with overflow."
+      LayoutBlockFlow (anonymous) at (0,46) size 784x20
+        LayoutInline {SPAN} at (0,0) size 195x19
+          LayoutText {#text} at (0,0) size 95x19
+            text run at (0,0) width 95: "Here comes an "
+          LayoutBlockFlow {SPAN} at (95,0) size 100x20 [bgcolor=#C0C0C0]
+            LayoutText {#text} at (0,0) size 97x39
+              text run at (0,0) width 97: "inline block with"
+              text run at (0,20) width 56: "overflow."
+        LayoutText {#text} at (0,0) size 0x0
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/layer-child-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/layer-child-outline-expected.txt
new file mode 100644
index 0000000..776f481
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/layer-child-outline-expected.txt
@@ -0,0 +1,13 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 300x19
+          text run at (0,0) width 300: "This tests repainting of a layer's children's outlines."
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,54) size 100x100
+  LayoutBlockFlow (relative positioned) {DIV} at (0,46) size 100x100 [bgcolor=#C0C0C0]
+    LayoutBlockFlow {DIV} at (0,0) size 100x100
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/layer-outline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/layer-outline-expected.txt
new file mode 100644
index 0000000..a3fda7e7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/layer-outline-expected.txt
@@ -0,0 +1,36 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 197x19
+          text run at (0,0) width 197: "This tests for regressions against "
+        LayoutInline {I} at (0,0) size 546x19
+          LayoutInline {A} at (0,0) size 350x19 [color=#0000EE]
+            LayoutText {#text} at (197,0) size 350x19
+              text run at (197,0) width 350: "http://bugzilla.opendarwin.org/show_bug.cgi?id=7943"
+          LayoutText {#text} at (546,0) size 197x19
+            text run at (546,0) width 197: " Layer outline does not repaint"
+        LayoutText {#text} at (742,0) size 5x19
+          text run at (742,0) width 5: "."
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (18,194) size 100x100 clip at (19,195) size 98x98
+  LayoutBlockFlow {DIV} at (10,186) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (8,54) size 784x130
+  LayoutBlockFlow (relative positioned) {DIV} at (0,46) size 784x130
+layer at (18,64) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (10,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (148,64) size 100x100 backgroundClip at (138,54) size 100x100 clip at (138,54) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (140,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (278,64) size 100x100 backgroundClip at (268,54) size 5x5 clip at (268,54) size 5x5
+  LayoutBlockFlow (positioned) {DIV} at (270,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (408,64) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (400,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (538,64) size 100x100 backgroundClip at (548,74) size 100x100 clip at (548,74) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (530,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (668,64) size 100x100 backgroundClip at (773,169) size 5x5 clip at (773,169) size 5x5
+  LayoutBlockFlow (positioned) {DIV} at (660,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (18,324) size 100x100
+  LayoutBlockFlow (relative positioned) {DIV} at (0,296) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/layer-outline-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/layer-outline-horizontal-expected.txt
new file mode 100644
index 0000000..a3fda7e7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/layer-outline-horizontal-expected.txt
@@ -0,0 +1,36 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 197x19
+          text run at (0,0) width 197: "This tests for regressions against "
+        LayoutInline {I} at (0,0) size 546x19
+          LayoutInline {A} at (0,0) size 350x19 [color=#0000EE]
+            LayoutText {#text} at (197,0) size 350x19
+              text run at (197,0) width 350: "http://bugzilla.opendarwin.org/show_bug.cgi?id=7943"
+          LayoutText {#text} at (546,0) size 197x19
+            text run at (546,0) width 197: " Layer outline does not repaint"
+        LayoutText {#text} at (742,0) size 5x19
+          text run at (742,0) width 5: "."
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (18,194) size 100x100 clip at (19,195) size 98x98
+  LayoutBlockFlow {DIV} at (10,186) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (8,54) size 784x130
+  LayoutBlockFlow (relative positioned) {DIV} at (0,46) size 784x130
+layer at (18,64) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (10,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (148,64) size 100x100 backgroundClip at (138,54) size 100x100 clip at (138,54) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (140,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (278,64) size 100x100 backgroundClip at (268,54) size 5x5 clip at (268,54) size 5x5
+  LayoutBlockFlow (positioned) {DIV} at (270,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (408,64) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (400,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (538,64) size 100x100 backgroundClip at (548,74) size 100x100 clip at (548,74) size 100x100
+  LayoutBlockFlow (positioned) {DIV} at (530,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (668,64) size 100x100 backgroundClip at (773,169) size 5x5 clip at (773,169) size 5x5
+  LayoutBlockFlow (positioned) {DIV} at (660,10) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
+layer at (18,324) size 100x100
+  LayoutBlockFlow (relative positioned) {DIV} at (0,296) size 100x100 [bgcolor=#EEEEEE] [border: (1px solid #000000)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/text-shadow-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/text-shadow-expected.txt
new file mode 100644
index 0000000..7b95a4c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/text-shadow-expected.txt
@@ -0,0 +1,42 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x562
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 164x19
+          text run at (0,0) width 164: "This is a regression test for "
+        LayoutInline {I} at (0,0) size 602x19
+          LayoutInline {A} at (0,0) size 350x19 [color=#0000EE]
+            LayoutText {#text} at (164,0) size 350x19
+              text run at (164,0) width 350: "http://bugzilla.opendarwin.org/show_bug.cgi?id=7301"
+          LayoutText {#text} at (513,0) size 253x19
+            text run at (513,0) width 5: " "
+            text run at (517,0) width 249: "Text shadow does not repaint correctly"
+        LayoutText {#text} at (765,0) size 5x19
+          text run at (765,0) width 5: "."
+      LayoutBlockFlow {DIV} at (30,68) size 724x21
+        LayoutInline {SPAN} at (0,0) size 199x20 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 199x20
+            text run at (0,0) width 199: "Lorem ipsum dolor sit amet"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {DIV} at (30,119) size 724x21
+        LayoutInline {SPAN} at (0,0) size 199x20 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 199x20
+            text run at (0,0) width 199: "Lorem ipsum dolor sit amet"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {DIV} at (30,170) size 724x21
+        LayoutText {#text} at (0,1) size 83x19
+          text run at (0,1) width 83: "Lorem ipsum "
+        LayoutInline {SPAN} at (0,0) size 98x20 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (83,0) size 98x20
+            text run at (83,0) width 98: "dolor sit amet"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {DIV} at (30,221) size 724x21
+        LayoutInline {SPAN} at (0,0) size 96x20 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 96x20
+            text run at (0,0) width 96: "Lorem ipsum"
+        LayoutText {#text} at (96,1) size 86x19
+          text run at (96,1) width 86: " dolor sit amet"
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/text-shadow-horizontal-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/text-shadow-horizontal-expected.txt
new file mode 100644
index 0000000..7b95a4c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/disable-spinvalidation/paint/invalidation/text-shadow-horizontal-expected.txt
@@ -0,0 +1,42 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x562
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 164x19
+          text run at (0,0) width 164: "This is a regression test for "
+        LayoutInline {I} at (0,0) size 602x19
+          LayoutInline {A} at (0,0) size 350x19 [color=#0000EE]
+            LayoutText {#text} at (164,0) size 350x19
+              text run at (164,0) width 350: "http://bugzilla.opendarwin.org/show_bug.cgi?id=7301"
+          LayoutText {#text} at (513,0) size 253x19
+            text run at (513,0) width 5: " "
+            text run at (517,0) width 249: "Text shadow does not repaint correctly"
+        LayoutText {#text} at (765,0) size 5x19
+          text run at (765,0) width 5: "."
+      LayoutBlockFlow {DIV} at (30,68) size 724x21
+        LayoutInline {SPAN} at (0,0) size 199x20 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 199x20
+            text run at (0,0) width 199: "Lorem ipsum dolor sit amet"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {DIV} at (30,119) size 724x21
+        LayoutInline {SPAN} at (0,0) size 199x20 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 199x20
+            text run at (0,0) width 199: "Lorem ipsum dolor sit amet"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {DIV} at (30,170) size 724x21
+        LayoutText {#text} at (0,1) size 83x19
+          text run at (0,1) width 83: "Lorem ipsum "
+        LayoutInline {SPAN} at (0,0) size 98x20 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (83,0) size 98x20
+            text run at (83,0) width 98: "dolor sit amet"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {DIV} at (30,221) size 724x21
+        LayoutInline {SPAN} at (0,0) size 96x20 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 96x20
+            text run at (0,0) width 96: "Lorem ipsum"
+        LayoutText {#text} at (96,1) size 86x19
+          text run at (96,1) width 86: " dolor sit amet"
+layer at (8,44) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,36) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/comments-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/comments-expected.txt
new file mode 100644
index 0000000..28983be
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/comments-expected.txt
@@ -0,0 +1,101 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 921
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x921 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x921
+    LayoutBlockFlow {BODY} at (8,8) size 769x905 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x240
+        LayoutText {#text} at (0,0) size 336x240
+          text run at (0,0) width 232: "/* This is a CSS1 comment. */"
+          text run at (232,0) width 0: " "
+          text run at (0,16) width 336: ".one {color: green;} /* Another comment */"
+          text run at (336,16) width 0: " "
+          text run at (0,32) width 288: "/* The following should not be used:"
+          text run at (288,32) width 0: " "
+          text run at (0,48) width 168: ".two {color: red;} */"
+          text run at (168,48) width 0: " "
+          text run at (0,64) width 320: ".three {color: green; /* color: red; */}"
+          text run at (320,64) width 0: " "
+          text run at (0,80) width 24: "/**"
+          text run at (24,80) width 0: " "
+          text run at (0,96) width 176: ".four {color: red;} */"
+          text run at (176,96) width 0: " "
+          text run at (0,112) width 168: ".five {color: green;}"
+          text run at (168,112) width 0: " "
+          text run at (0,128) width 32: "/**/"
+          text run at (32,128) width 0: " "
+          text run at (0,144) width 160: ".six {color: green;}"
+          text run at (160,144) width 0: " "
+          text run at (0,160) width 88: "/*********/"
+          text run at (88,160) width 0: " "
+          text run at (0,176) width 176: ".seven {color: green;}"
+          text run at (176,176) width 0: " "
+          text run at (0,192) width 128: "/* a comment **/"
+          text run at (128,192) width 0: " "
+          text run at (0,208) width 176: ".eight {color: green;}"
+          text run at (176,208) width 0: " "
+          text run at (0,224) width 0: " "
+      LayoutBlockFlow {P} at (0,307) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,343) size 769x20
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be black."
+      LayoutBlockFlow {P} at (0,379) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,415) size 769x20
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be black."
+      LayoutBlockFlow {P} at (0,451) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,487) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,523) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,559) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutTable {TABLE} at (0,595) size 206x310 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 204x308
+          LayoutTableRow {TR} at (0,0) size 204x28
+            LayoutTableCell {TD} at (0,0) size 204x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 204x280
+            LayoutTableCell {TD} at (0,154) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 192x280 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 184x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,40) size 184x20
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be black."
+              LayoutBlockFlow {P} at (4,76) size 184x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,112) size 184x20
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be black."
+              LayoutBlockFlow {P} at (4,148) size 184x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,184) size 184x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,220) size 184x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,256) size 184x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+layer at (8,297) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,289) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/containment-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/containment-expected.txt
new file mode 100644
index 0000000..ec868c63
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/containment-expected.txt
@@ -0,0 +1,210 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1009
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1009 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1009
+    LayoutBlockFlow {BODY} at (8,8) size 769x993 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x160
+        LayoutText {#text} at (0,0) size 728x160
+          text run at (0,0) width 624: "<LINK rel=\"stylesheet\" type=\"text/css\" href=\"linktest.css\" title=\"Default SS\">"
+          text run at (624,0) width 0: " "
+          text run at (0,16) width 728: "<LINK rel=\"alternate stylesheet\" type=\"text/css\" href=\"linktest2.css\" title=\"Alternate SS\">"
+          text run at (728,16) width 0: " "
+          text run at (0,32) width 208: "@import url(imptest1.css);"
+          text run at (208,32) width 0: " "
+          text run at (0,48) width 192: "@import \"imptest1a.css\";"
+          text run at (192,48) width 0: " "
+          text run at (0,64) width 128: "UL {color: red;}"
+          text run at (128,64) width 0: " "
+          text run at (0,80) width 176: ".four {color: purple;}"
+          text run at (176,80) width 0: " "
+          text run at (0,96) width 208: "@import url(imptest2.css);"
+          text run at (208,96) width 0: " "
+          text run at (0,112) width 32: "<!--"
+          text run at (32,112) width 0: " "
+          text run at (0,128) width 168: "P.six {color: green;}"
+          text run at (168,128) width 0: " "
+          text run at (0,144) width 24: "-->"
+          text run at (24,144) width 0: " "
+      LayoutBlockFlow {P} at (0,227) size 769x20
+        LayoutText {#text} at (0,0) size 383x19
+          text run at (0,0) width 383: "This sentence should be underlined due to the linked style sheet "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (383,3) size 96x16
+            text run at (383,3) width 96: "linktest.css"
+        LayoutText {#text} at (479,0) size 242x19
+          text run at (479,0) width 242: ", the reference to which is shown above."
+      LayoutBlockFlow {P} at (0,263) size 769x40
+        LayoutText {#text} at (0,0) size 420x19
+          text run at (0,0) width 420: "This sentence should NOT be underlined due to the linked style sheet "
+        LayoutInline {CODE} at (0,0) size 104x16
+          LayoutText {#text} at (420,3) size 104x16
+            text run at (420,3) width 104: "linktest2.css"
+        LayoutText {#text} at (524,0) size 8x19
+          text run at (524,0) width 8: ", "
+        LayoutInline {STRONG} at (0,0) size 42x19
+          LayoutText {#text} at (532,0) size 42x19
+            text run at (532,0) width 42: "unless"
+        LayoutText {#text} at (574,0) size 713x39
+          text run at (574,0) width 139: " the external style sheet"
+          text run at (0,20) width 309: "\"Alternate SS\" has been selected via the user agent."
+      LayoutBlockFlow {UL} at (0,319) size 769x60 [color=#FF0000]
+        LayoutListItem {LI} at (40,0) size 729x20 [color=#008000]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 373x19
+            text run at (0,0) width 373: "This sentence should be green due to an imported style sheet ["
+          LayoutInline {CODE} at (0,0) size 208x16
+            LayoutText {#text} at (373,3) size 208x16
+              text run at (373,3) width 208: "@import url(imptest1.css);"
+          LayoutText {#text} at (581,0) size 9x19
+            text run at (581,0) width 9: "]."
+        LayoutListItem {LI} at (40,20) size 729x20 [color=#800080]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 378x19
+            text run at (0,0) width 378: "This sentence should be purple due to an imported style sheet ["
+          LayoutInline {CODE} at (0,0) size 184x16
+            LayoutText {#text} at (378,3) size 184x16
+              text run at (378,3) width 184: "@import \"imptest1a.css\""
+          LayoutText {#text} at (562,0) size 9x19
+            text run at (562,0) width 9: "]."
+        LayoutListItem {LI} at (40,40) size 729x20 [color=#008000]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 374x19
+            text run at (0,0) width 374: "This sentence should be green thanks to the STYLE attribute ["
+          LayoutInline {CODE} at (0,0) size 168x16
+            LayoutText {#text} at (374,3) size 168x16
+              text run at (374,3) width 168: "STYLE=\"color: green;\""
+          LayoutText {#text} at (542,0) size 9x19
+            text run at (542,0) width 9: "]."
+      LayoutBlockFlow {P} at (0,395) size 769x20 [color=#800080]
+        LayoutText {#text} at (0,0) size 476x19
+          text run at (0,0) width 476: "This sentence should be purple, and it doesn't have a terminating paragraph tag."
+      LayoutBlockFlow {OL} at (0,431) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-16,0) size 16x19: "1"
+          LayoutText {#text} at (0,0) size 190x19
+            text run at (0,0) width 190: "This list should NOT be purple."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-16,0) size 16x19: "2"
+          LayoutText {#text} at (0,0) size 166x19
+            text run at (0,0) width 166: "It should, instead, be black."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-16,0) size 16x19: "3"
+          LayoutText {#text} at (0,0) size 483x19
+            text run at (0,0) width 483: "If it IS purple, then the browser hasn't correctly parsed the preceding paragraph."
+      LayoutBlockFlow {P} at (0,507) size 769x40
+        LayoutText {#text} at (0,0) size 668x19
+          text run at (0,0) width 188: "This sentence should be black. "
+          text run at (188,0) width 480: "If it is red, then the browser has inappropriately imported the styles from the file "
+        LayoutInline {TT} at (0,0) size 96x16
+          LayoutText {#text} at (668,3) size 96x16
+            text run at (668,3) width 96: "imptest2.css"
+        LayoutText {#text} at (0,20) size 29x19
+          text run at (0,20) width 29: "(see "
+        LayoutInline {A} at (0,0) size 66x19 [color=#0000FF]
+          LayoutText {#text} at (29,20) size 66x19
+            text run at (29,20) width 66: "section 3.0"
+        LayoutText {#text} at (95,20) size 264x19
+          text run at (95,20) width 264: " of the CSS1 specification for more details)."
+      LayoutBlockFlow {P} at (0,563) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This paragraph should be green."
+      LayoutTable {TABLE} at (0,599) size 769x394 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x392
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x364
+            LayoutTableCell {TD} at (0,196) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x364 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 383x19
+                  text run at (0,0) width 383: "This sentence should be underlined due to the linked style sheet "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (383,3) size 96x16
+                    text run at (383,3) width 96: "linktest.css"
+                LayoutText {#text} at (479,0) size 242x19
+                  text run at (479,0) width 242: ", the reference to which is shown above."
+              LayoutBlockFlow {P} at (4,40) size 747x40
+                LayoutText {#text} at (0,0) size 420x19
+                  text run at (0,0) width 420: "This sentence should NOT be underlined due to the linked style sheet "
+                LayoutInline {CODE} at (0,0) size 104x16
+                  LayoutText {#text} at (420,3) size 104x16
+                    text run at (420,3) width 104: "linktest2.css"
+                LayoutText {#text} at (524,0) size 8x19
+                  text run at (524,0) width 8: ", "
+                LayoutInline {STRONG} at (0,0) size 42x19
+                  LayoutText {#text} at (532,0) size 42x19
+                    text run at (532,0) width 42: "unless"
+                LayoutText {#text} at (574,0) size 713x39
+                  text run at (574,0) width 139: " the external style sheet"
+                  text run at (0,20) width 309: "\"Alternate SS\" has been selected via the user agent."
+              LayoutBlockFlow {UL} at (4,96) size 747x60 [color=#FF0000]
+                LayoutListItem {LI} at (40,0) size 707x20 [color=#008000]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 373x19
+                    text run at (0,0) width 373: "This sentence should be green due to an imported style sheet ["
+                  LayoutInline {CODE} at (0,0) size 208x16
+                    LayoutText {#text} at (373,3) size 208x16
+                      text run at (373,3) width 208: "@import url(imptest1.css);"
+                  LayoutText {#text} at (581,0) size 9x19
+                    text run at (581,0) width 9: "]."
+                LayoutListItem {LI} at (40,20) size 707x20 [color=#800080]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 378x19
+                    text run at (0,0) width 378: "This sentence should be purple due to an imported style sheet ["
+                  LayoutInline {CODE} at (0,0) size 184x16
+                    LayoutText {#text} at (378,3) size 184x16
+                      text run at (378,3) width 184: "@import \"imptest1a.css\""
+                  LayoutText {#text} at (562,0) size 9x19
+                    text run at (562,0) width 9: "]."
+                LayoutListItem {LI} at (40,40) size 707x20 [color=#008000]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 374x19
+                    text run at (0,0) width 374: "This sentence should be green thanks to the STYLE attribute ["
+                  LayoutInline {CODE} at (0,0) size 168x16
+                    LayoutText {#text} at (374,3) size 168x16
+                      text run at (374,3) width 168: "STYLE=\"color: green;\""
+                  LayoutText {#text} at (542,0) size 9x19
+                    text run at (542,0) width 9: "]."
+              LayoutBlockFlow {P} at (4,172) size 747x20 [color=#800080]
+                LayoutText {#text} at (0,0) size 476x19
+                  text run at (0,0) width 476: "This sentence should be purple, and it doesn't have a terminating paragraph tag."
+              LayoutBlockFlow {OL} at (4,208) size 747x60
+                LayoutListItem {LI} at (40,0) size 707x20
+                  LayoutListMarker (anonymous) at (-16,0) size 16x19: "1"
+                  LayoutText {#text} at (0,0) size 190x19
+                    text run at (0,0) width 190: "This list should NOT be purple."
+                LayoutListItem {LI} at (40,20) size 707x20
+                  LayoutListMarker (anonymous) at (-16,0) size 16x19: "2"
+                  LayoutText {#text} at (0,0) size 166x19
+                    text run at (0,0) width 166: "It should, instead, be black."
+                LayoutListItem {LI} at (40,40) size 707x20
+                  LayoutListMarker (anonymous) at (-16,0) size 16x19: "3"
+                  LayoutText {#text} at (0,0) size 483x19
+                    text run at (0,0) width 483: "If it IS purple, then the browser hasn't correctly parsed the preceding paragraph."
+              LayoutBlockFlow {P} at (4,284) size 747x40
+                LayoutText {#text} at (0,0) size 664x19
+                  text run at (0,0) width 188: "This sentence should be black. "
+                  text run at (188,0) width 476: "If it is red, then the browser has inappropriately imported the styles from the file"
+                LayoutInline {TT} at (0,0) size 96x16
+                  LayoutText {#text} at (0,23) size 96x16
+                    text run at (0,23) width 96: "imptest2.css"
+                LayoutText {#text} at (96,20) size 33x19
+                  text run at (96,20) width 33: " (see "
+                LayoutInline {A} at (0,0) size 66x19 [color=#0000FF]
+                  LayoutText {#text} at (129,20) size 66x19
+                    text run at (129,20) width 66: "section 3.0"
+                LayoutText {#text} at (195,20) size 264x19
+                  text run at (195,20) width 264: " of the CSS1 specification for more details)."
+              LayoutBlockFlow {P} at (4,340) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This paragraph should be green."
+layer at (8,217) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,209) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/contextual_selectors-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/contextual_selectors-expected.txt
new file mode 100644
index 0000000..3f3e59a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/contextual_selectors-expected.txt
@@ -0,0 +1,83 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20 [color=#000080]
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 472x64
+          text run at (0,0) width 288: "P {color: navy; font-family: serif;}"
+          text run at (288,0) width 0: " "
+          text run at (0,16) width 472: "HTML BODY TABLE P {color: purple; font-family: sans-serif;}"
+          text run at (472,16) width 0: " "
+          text run at (0,32) width 224: "EM, UL LI LI {color: green;}"
+          text run at (224,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 784x20 [color=#000080]
+        LayoutText {#text} at (0,0) size 591x19
+          text run at (0,0) width 591: "This sentence should be navy serif in the first half of the page, but purple and sans-serif in the table."
+      LayoutBlockFlow {P} at (0,167) size 784x20 [color=#000080]
+        LayoutText {#text} at (0,0) size 532x19
+          text run at (0,0) width 532: "This sentence should be normal for its section, except for the last word, which should be "
+        LayoutInline {EM} at (0,0) size 36x19 [color=#008000]
+          LayoutText {#text} at (532,0) size 36x19
+            text run at (532,0) width 36: "green"
+        LayoutText {#text} at (567,0) size 5x19
+          text run at (567,0) width 5: "."
+      LayoutBlockFlow {UL} at (0,203) size 784x40
+        LayoutListItem {LI} at (40,0) size 744x40
+          LayoutBlockFlow (anonymous) at (0,0) size 744x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutInline {EM} at (0,0) size 38x19 [color=#008000]
+              LayoutText {#text} at (0,0) size 38x19
+                text run at (0,0) width 38: "Hello."
+            LayoutText {#text} at (38,0) size 376x19
+              text run at (38,0) width 4: " "
+              text run at (42,0) width 372: "The first \"hello\" should be green, but this part should be black."
+          LayoutBlockFlow {UL} at (0,20) size 744x20
+            LayoutListItem {LI} at (40,0) size 704x20 [color=#008000]
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 128x19
+                text run at (0,0) width 128: "This should be green."
+      LayoutTable {TABLE} at (0,259) size 699x165 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 697x163
+          LayoutTableRow {TR} at (0,0) size 697x28
+            LayoutTableCell {TD} at (0,0) size 697x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 697x135
+            LayoutTableCell {TD} at (0,81) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 685x135 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 677x19 [color=#800080]
+                LayoutText {#text} at (0,0) size 677x18
+                  text run at (0,0) width 677: "This sentence should be navy serif in the first half of the page, but purple and sans-serif in the table."
+              LayoutBlockFlow {P} at (4,39) size 677x20 [color=#800080]
+                LayoutText {#text} at (0,1) size 603x18
+                  text run at (0,1) width 603: "This sentence should be normal for its section, except for the last word, which should be "
+                LayoutInline {EM} at (0,0) size 41x19 [color=#008000]
+                  LayoutText {#text} at (603,0) size 41x19
+                    text run at (603,0) width 41: "green"
+                LayoutText {#text} at (644,1) size 4x18
+                  text run at (644,1) width 4: "."
+              LayoutBlockFlow {UL} at (4,75) size 677x40
+                LayoutListItem {LI} at (40,0) size 637x40
+                  LayoutBlockFlow (anonymous) at (0,0) size 637x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutInline {EM} at (0,0) size 38x19 [color=#008000]
+                      LayoutText {#text} at (0,0) size 38x19
+                        text run at (0,0) width 38: "Hello."
+                    LayoutText {#text} at (38,0) size 376x19
+                      text run at (38,0) width 4: " "
+                      text run at (42,0) width 372: "The first \"hello\" should be green, but this part should be black."
+                  LayoutBlockFlow {UL} at (0,20) size 637x20
+                    LayoutListItem {LI} at (40,0) size 597x20 [color=#008000]
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 128x19
+                        text run at (0,0) width 128: "This should be green."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/grouping-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/grouping-expected.txt
new file mode 100644
index 0000000..a83001a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/grouping-expected.txt
@@ -0,0 +1,45 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x32
+        LayoutText {#text} at (0,0) size 272x32
+          text run at (0,0) width 272: ".one, .two, .three {color: green;}"
+          text run at (272,0) width 0: " "
+          text run at (0,16) width 0: " "
+      LayoutBlockFlow {P} at (0,99) size 784x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,135) size 784x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,171) size 784x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutTable {TABLE} at (0,207) size 206x130 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 204x128
+          LayoutTableRow {TR} at (0,0) size 204x28
+            LayoutTableCell {TD} at (0,0) size 204x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 204x100
+            LayoutTableCell {TD} at (0,64) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 192x100 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 184x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,40) size 184x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,76) size 184x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/id_as_selector-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/id_as_selector-expected.txt
new file mode 100644
index 0000000..c5af05d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/id_as_selector-expected.txt
@@ -0,0 +1,93 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 659
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x659 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x659
+    LayoutBlockFlow {BODY} at (8,8) size 769x643 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x128
+        LayoutText {#text} at (0,0) size 272x128
+          text run at (0,0) width 160: "#one {color: green;}"
+          text run at (160,0) width 0: " "
+          text run at (0,16) width 152: "#a1 {color: green;}"
+          text run at (152,16) width 0: " "
+          text run at (0,32) width 224: "P#two, P#two2 {color: blue;}"
+          text run at (224,32) width 0: " "
+          text run at (0,48) width 272: "P#three, P#three2 {color: purple;}"
+          text run at (272,48) width 0: " "
+          text run at (0,64) width 168: "#four {color: green;}"
+          text run at (168,64) width 0: " "
+          text run at (0,80) width 152: "#a2 {color: green;}"
+          text run at (152,80) width 0: " "
+          text run at (0,96) width 240: "P#five, P#five2 {color: blue;}"
+          text run at (240,96) width 0: " "
+          text run at (0,112) width 240: "P#six, P#six2 {color: purple;}"
+      LayoutBlockFlow {P} at (0,195) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,231) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,267) size 769x20 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 190x19
+          text run at (0,0) width 190: "This paragraph should be blue ["
+        LayoutInline {TT} at (0,0) size 64x16
+          LayoutText {#text} at (190,3) size 64x16
+            text run at (190,3) width 64: "ID=\"two\""
+        LayoutText {#text} at (254,0) size 9x19
+          text run at (254,0) width 9: "]."
+      LayoutBlockFlow {PRE} at (0,303) size 769x16
+        LayoutText {#text} at (0,0) size 392x16
+          text run at (0,0) width 392: "This sentence should NOT be blue [PRE ID=\"two2\"]."
+          text run at (392,0) width 0: " "
+      LayoutBlockFlow {PRE} at (0,332) size 769x16
+        LayoutText {#text} at (0,0) size 472x16
+          text run at (0,0) width 472: "This sentence should be black, not purple [PRE ID=\"three\"]."
+          text run at (472,0) width 0: " "
+      LayoutBlockFlow {UL} at (0,364) size 769x20
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 226x19
+            text run at (0,0) width 226: "This sentence should NOT be purple."
+      LayoutTable {TABLE} at (0,400) size 422x243 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 420x241
+          LayoutTableRow {TR} at (0,0) size 420x28
+            LayoutTableCell {TD} at (0,0) size 420x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 420x213
+            LayoutTableCell {TD} at (0,120) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 408x213 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 400x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,40) size 400x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,76) size 400x20 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 190x19
+                  text run at (0,0) width 190: "This paragraph should be blue ["
+                LayoutInline {TT} at (0,0) size 72x16
+                  LayoutText {#text} at (190,3) size 72x16
+                    text run at (190,3) width 72: "ID=\"five\""
+                LayoutText {#text} at (262,0) size 9x19
+                  text run at (262,0) width 9: "]."
+              LayoutBlockFlow {PRE} at (4,112) size 400x16
+                LayoutText {#text} at (0,0) size 400x16
+                  text run at (0,0) width 400: "This sentence should NOT be blue [PRE ID=\"five2\"]."
+                  text run at (400,0) width 0: " "
+              LayoutBlockFlow {PRE} at (4,141) size 400x16
+                LayoutText {#text} at (0,0) size 360x16
+                  text run at (0,0) width 360: "This sentence should be black [PRE ID=\"six\"]."
+                  text run at (360,0) width 0: " "
+              LayoutBlockFlow {UL} at (4,173) size 400x20
+                LayoutListItem {LI} at (40,0) size 360x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 226x19
+                    text run at (0,0) width 226: "This sentence should NOT be purple."
+layer at (8,185) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,177) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/inheritance-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/inheritance-expected.txt
new file mode 100644
index 0000000..317647e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/basic/inheritance-expected.txt
@@ -0,0 +1,190 @@
+layer at (0,0) size 800x600 scrollHeight 768
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x768 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x767.59
+    LayoutBlockFlow {BODY} at (8,8) size 784x751.59 [color=#008000] [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x112
+        LayoutText {#text} at (0,0) size 272x112
+          text run at (0,0) width 160: "BODY {color: green;}"
+          text run at (160,0) width 0: " "
+          text run at (0,16) width 136: "H3 {color: blue;}"
+          text run at (136,16) width 0: " "
+          text run at (0,32) width 152: "EM {color: purple;}"
+          text run at (152,32) width 0: " "
+          text run at (0,48) width 208: ".one {font-style: italic;}"
+          text run at (208,48) width 0: " "
+          text run at (0,64) width 272: ".two {text-decoration: underline;}"
+          text run at (272,64) width 0: " "
+          text run at (0,80) width 152: "#two {color: navy;}"
+          text run at (152,80) width 0: " "
+          text run at (0,96) width 184: ".three {color: purple;}"
+          text run at (184,96) width 0: " "
+      LayoutBlockFlow {H3} at (0,181.72) size 784x24 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 221x22
+          text run at (0,0) width 221: "This sentence should show "
+        LayoutInline {STRONG} at (0,0) size 34x22
+          LayoutText {#text} at (221,0) size 34x22
+            text run at (221,0) width 34: "blue"
+        LayoutText {#text} at (255,0) size 40x22
+          text run at (255,0) width 40: " and "
+        LayoutInline {EM} at (0,0) size 52x22 [color=#800080]
+          LayoutText {#text} at (295,1) size 52x22
+            text run at (295,1) width 52: "purple"
+        LayoutText {#text} at (347,0) size 5x22
+          text run at (347,0) width 5: "."
+      LayoutBlockFlow {H3} at (0,224.44) size 784x24 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 198x22
+          text run at (0,0) width 198: "This sentence should be "
+        LayoutInline {SPAN} at (0,0) size 35x22
+          LayoutText {#text} at (198,1) size 35x22
+            text run at (198,1) width 35: "blue"
+        LayoutText {#text} at (233,0) size 100x22
+          text run at (233,0) width 100: " throughout."
+      LayoutBlockFlow {P} at (0,267.16) size 784x20
+        LayoutText {#text} at (0,0) size 215x19
+          text run at (0,0) width 215: "This should be green except for the "
+        LayoutInline {EM} at (0,0) size 117x19 [color=#800080]
+          LayoutText {#text} at (215,0) size 117x19
+            text run at (215,0) width 117: "emphasized words"
+        LayoutText {#text} at (331,0) size 152x19
+          text run at (331,0) width 152: ", which should be purple."
+      LayoutBlockFlow {H3} at (0,305.88) size 784x23 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 288x22
+          text run at (0,0) width 288: "This should be blue and underlined."
+      LayoutBlockFlow {P} at (0,347.59) size 784x20
+        LayoutText {#text} at (0,0) size 273x19
+          text run at (0,0) width 273: "This sentence should be underlined, including "
+        LayoutInline {TT} at (0,0) size 72x16
+          LayoutText {#text} at (273,3) size 72x16
+            text run at (273,3) width 72: "this part"
+        LayoutText {#text} at (345,0) size 8x19
+          text run at (345,0) width 8: ", "
+        LayoutInline {I} at (0,0) size 54x19
+          LayoutText {#text} at (353,0) size 54x19
+            text run at (353,0) width 54: "this part"
+        LayoutText {#text} at (407,0) size 8x19
+          text run at (407,0) width 8: ", "
+        LayoutInline {EM} at (0,0) size 54x19 [color=#800080]
+          LayoutText {#text} at (415,0) size 54x19
+            text run at (415,0) width 54: "this part"
+        LayoutText {#text} at (469,0) size 34x19
+          text run at (469,0) width 34: ", and "
+        LayoutInline {STRONG} at (0,0) size 55x19
+          LayoutText {#text} at (503,0) size 55x19
+            text run at (503,0) width 55: "this part"
+        LayoutText {#text} at (558,0) size 4x19
+          text run at (558,0) width 4: "."
+      LayoutBlockFlow {P} at (0,383.59) size 784x20 [color=#000080]
+        LayoutText {#text} at (0,0) size 414x19
+          text run at (0,0) width 414: "This sentence should also be underlined, as well as dark blue (navy), "
+        LayoutInline {TT} at (0,0) size 152x16
+          LayoutText {#text} at (414,3) size 152x16
+            text run at (414,3) width 152: "including this part"
+        LayoutText {#text} at (566,0) size 4x19
+          text run at (566,0) width 4: "."
+      LayoutBlockFlow {P} at (0,419.59) size 784x20 [color=#800080]
+        LayoutText {#text} at (0,0) size 249x19
+          text run at (0,0) width 249: "This sentence should be purple, including "
+        LayoutInline {STRONG} at (0,0) size 55x19
+          LayoutText {#text} at (249,0) size 55x19
+            text run at (249,0) width 55: "this part"
+        LayoutText {#text} at (304,0) size 30x19
+          text run at (304,0) width 30: " and "
+        LayoutInline {SPAN} at (0,0) size 164x19
+          LayoutText {#text} at (334,0) size 164x19
+            text run at (334,0) width 164: "this part (which is spanned)"
+        LayoutText {#text} at (498,0) size 4x19
+          text run at (498,0) width 4: "."
+      LayoutTable {TABLE} at (0,455.59) size 592x296 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 590x294
+          LayoutTableRow {TR} at (0,0) size 590x28
+            LayoutTableCell {TD} at (0,0) size 590x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 590x266
+            LayoutTableCell {TD} at (0,147) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 578x265.88 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {H3} at (4,4) size 570x24 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 221x22
+                  text run at (0,0) width 221: "This sentence should show "
+                LayoutInline {STRONG} at (0,0) size 34x22
+                  LayoutText {#text} at (221,0) size 34x22
+                    text run at (221,0) width 34: "blue"
+                LayoutText {#text} at (255,0) size 40x22
+                  text run at (255,0) width 40: " and "
+                LayoutInline {EM} at (0,0) size 52x22 [color=#800080]
+                  LayoutText {#text} at (295,1) size 52x22
+                    text run at (295,1) width 52: "purple"
+                LayoutText {#text} at (347,0) size 5x22
+                  text run at (347,0) width 5: "."
+              LayoutBlockFlow {H3} at (4,46.72) size 570x24 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 198x22
+                  text run at (0,0) width 198: "This sentence should be "
+                LayoutInline {SPAN} at (0,0) size 35x22
+                  LayoutText {#text} at (198,1) size 35x22
+                    text run at (198,1) width 35: "blue"
+                LayoutText {#text} at (233,0) size 100x22
+                  text run at (233,0) width 100: " throughout."
+              LayoutBlockFlow {P} at (4,89.44) size 570x20
+                LayoutText {#text} at (0,0) size 215x19
+                  text run at (0,0) width 215: "This should be green except for the "
+                LayoutInline {EM} at (0,0) size 117x19 [color=#800080]
+                  LayoutText {#text} at (215,0) size 117x19
+                    text run at (215,0) width 117: "emphasized words"
+                LayoutText {#text} at (331,0) size 152x19
+                  text run at (331,0) width 152: ", which should be purple."
+              LayoutBlockFlow {H3} at (4,128.16) size 570x23 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 288x22
+                  text run at (0,0) width 288: "This should be blue and underlined."
+              LayoutBlockFlow {P} at (4,169.88) size 570x20
+                LayoutText {#text} at (0,0) size 273x19
+                  text run at (0,0) width 273: "This sentence should be underlined, including "
+                LayoutInline {TT} at (0,0) size 72x16
+                  LayoutText {#text} at (273,3) size 72x16
+                    text run at (273,3) width 72: "this part"
+                LayoutText {#text} at (345,0) size 8x19
+                  text run at (345,0) width 8: ", "
+                LayoutInline {I} at (0,0) size 54x19
+                  LayoutText {#text} at (353,0) size 54x19
+                    text run at (353,0) width 54: "this part"
+                LayoutText {#text} at (407,0) size 8x19
+                  text run at (407,0) width 8: ", "
+                LayoutInline {EM} at (0,0) size 54x19 [color=#800080]
+                  LayoutText {#text} at (415,0) size 54x19
+                    text run at (415,0) width 54: "this part"
+                LayoutText {#text} at (469,0) size 34x19
+                  text run at (469,0) width 34: ", and "
+                LayoutInline {STRONG} at (0,0) size 55x19
+                  LayoutText {#text} at (503,0) size 55x19
+                    text run at (503,0) width 55: "this part"
+                LayoutText {#text} at (558,0) size 4x19
+                  text run at (558,0) width 4: "."
+              LayoutBlockFlow {P} at (4,205.88) size 570x20 [color=#000080]
+                LayoutText {#text} at (0,0) size 414x19
+                  text run at (0,0) width 414: "This sentence should also be underlined, as well as dark blue (navy), "
+                LayoutInline {TT} at (0,0) size 152x16
+                  LayoutText {#text} at (414,3) size 152x16
+                    text run at (414,3) width 152: "including this part"
+                LayoutText {#text} at (566,0) size 4x19
+                  text run at (566,0) width 4: "."
+              LayoutBlockFlow {P} at (4,241.88) size 570x20 [color=#800080]
+                LayoutText {#text} at (0,0) size 249x19
+                  text run at (0,0) width 249: "This sentence should be purple, including "
+                LayoutInline {STRONG} at (0,0) size 55x19
+                  LayoutText {#text} at (249,0) size 55x19
+                    text run at (249,0) width 55: "this part"
+                LayoutText {#text} at (304,0) size 30x19
+                  text run at (304,0) width 30: " and "
+                LayoutInline {SPAN} at (0,0) size 164x19
+                  LayoutText {#text} at (334,0) size 164x19
+                    text run at (334,0) width 164: "this part (which is spanned)"
+                LayoutText {#text} at (498,0) size 4x19
+                  text run at (498,0) width 4: "."
+layer at (8,169) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border-expected.txt
new file mode 100644
index 0000000..a10a4aea
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border-expected.txt
@@ -0,0 +1,184 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1395
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1395 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1395
+    LayoutBlockFlow {BODY} at (8,8) size 769x1379 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x144
+        LayoutText {#text} at (0,0) size 272x144
+          text run at (0,0) width 272: ".one {border: medium black solid;}"
+          text run at (272,0) width 0: " "
+          text run at (0,16) width 264: ".two {border: thin maroon ridge;}"
+          text run at (264,16) width 0: " "
+          text run at (0,32) width 272: ".three {border: 10px teal outset;}"
+          text run at (272,32) width 0: " "
+          text run at (0,48) width 264: ".four {border: 10px olive inset;}"
+          text run at (264,48) width 0: " "
+          text run at (0,64) width 224: ".five {border: 10px maroon;}"
+          text run at (224,64) width 0: " "
+          text run at (0,80) width 232: ".six {border: maroon double;}"
+          text run at (232,80) width 0: " "
+          text run at (0,96) width 256: ".seven {border: left red solid;}"
+          text run at (256,96) width 0: " "
+          text run at (0,112) width 168: ".eight {border: 0px;}"
+          text run at (168,112) width 0: " "
+          text run at (0,128) width 232: "TD {border: 2px solid green;}"
+          text run at (232,128) width 0: " "
+      LayoutBlockFlow {P} at (0,211) size 769x40
+        LayoutText {#text} at (0,0) size 758x39
+          text run at (0,0) width 597: "Note that all table cells on this page should have a two-pixel solid green border along all four sides. "
+          text run at (597,0) width 161: "This border applies only to"
+          text run at (0,20) width 254: "the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (0,267) size 769x26 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 459x19
+          text run at (3,3) width 459: "This paragraph should have a medium black solid border all the way around."
+      LayoutBlockFlow {P} at (0,309) size 769x22 [border: (1px ridge #800000)]
+        LayoutText {#text} at (1,1) size 456x19
+          text run at (1,1) width 456: "This paragraph should have a thin maroon ridged border all the way around."
+      LayoutBlockFlow {P} at (0,347) size 769x40 [border: (10px outset #008080)]
+        LayoutText {#text} at (10,10) size 495x19
+          text run at (10,10) width 495: "This paragraph should have a ten-pixel-wide teal outset border all the way around."
+      LayoutBlockFlow {P} at (0,403) size 769x40 [border: (10px inset #808000)]
+        LayoutText {#text} at (10,10) size 493x19
+          text run at (10,10) width 493: "This paragraph should have a ten-pixel-wide olive inset border all the way around."
+      LayoutBlockFlow {P} at (0,459) size 769x20
+        LayoutText {#text} at (0,0) size 333x19
+          text run at (0,0) width 333: "This paragraph should have no border around it, as the "
+        LayoutInline {TT} at (0,0) size 96x16
+          LayoutText {#text} at (333,3) size 96x16
+            text run at (333,3) width 96: "border-style"
+        LayoutText {#text} at (429,0) size 306x19
+          text run at (429,0) width 306: " was not set, and it should not be offset in any way."
+      LayoutBlockFlow {P} at (0,495) size 769x26 [border: (3px double #800000)]
+        LayoutText {#text} at (3,3) size 508x19
+          text run at (3,3) width 508: "This paragraph should have a medium maroon double border around it, even though "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (511,6) size 96x16
+            text run at (511,6) width 96: "border-width"
+        LayoutText {#text} at (607,3) size 132x19
+          text run at (607,3) width 132: " was not explicitly set."
+      LayoutBlockFlow {P} at (0,537) size 769x20
+        LayoutText {#text} at (0,0) size 590x19
+          text run at (0,0) width 590: "This paragraph should have no border around it, as its declaration is invalid and should be ignored."
+      LayoutBlockFlow {P} at (0,573) size 769x20
+        LayoutInline {A} at (0,0) size 23x19
+          LayoutText {#text} at (0,0) size 23x19
+            text run at (0,0) width 23: "The"
+        LayoutText {#text} at (23,0) size 677x19
+          text run at (23,0) width 677: " following image is also an anchor which points to a target on this page, but it should not have a border around it: "
+        LayoutInline {A} at (0,0) size 16x19 [color=#0000FF]
+          LayoutImage {IMG} at (699.70,0) size 15x15
+        LayoutText {#text} at (714,0) size 5x19
+          text run at (714,0) width 5: "."
+      LayoutTable {TABLE} at (0,609) size 769x121 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x119
+          LayoutTableRow {TR} at (0,5) size 767x46
+            LayoutTableCell {TD} at (5,5) size 757x46 [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (3,3) size 746x39
+                text run at (3,3) width 384: "Every cell in this table should have a 2-pixel solid green border. "
+                text run at (386,3) width 363: "This is also true of the table-testing section in the second half"
+                text run at (3,23) width 96: "of the test page."
+          LayoutTableRow {TR} at (0,56) size 767x58
+            LayoutTableCell {TD} at (5,72) size 191x26 [border: (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (3,3) size 50x19
+                text run at (3,3) width 50: "Cell one"
+            LayoutTableCell {TD} at (201,56) size 561x58 [border: (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (3,3) size 555x20
+                LayoutText {#text} at (0,0) size 51x19
+                  text run at (0,0) width 51: "Cell two"
+              LayoutTable {TABLE} at (3,23) size 157x32 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 155x30
+                  LayoutTableRow {TR} at (0,2) size 155x26
+                    LayoutTableCell {TD} at (2,2) size 151x26 [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (3,3) size 145x19
+                        text run at (3,3) width 145: "Nested single-cell table!"
+      LayoutBlockFlow {P} at (0,746) size 769x20
+        LayoutText {#text} at (0,0) size 163x19
+          text run at (0,0) width 163: "This is an unstyled element."
+      LayoutTable {TABLE} at (0,782) size 769x597 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x595
+          LayoutTableRow {TR} at (0,0) size 767x30
+            LayoutTableCell {TD} at (0,0) size 767x30 [bgcolor=#C0C0C0] [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (5,5) size 157x19
+                  text run at (5,5) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,30) size 767x565
+            LayoutTableCell {TD} at (0,297) size 14x30 [bgcolor=#C0C0C0] [border: (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (5,5) size 4x19
+                text run at (5,5) width 4: " "
+            LayoutTableCell {TD} at (14,30) size 753x565 [border: (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (5,5) size 743x40
+                LayoutText {#text} at (0,0) size 742x39
+                  text run at (0,0) width 597: "Note that all table cells on this page should have a two-pixel solid green border along all four sides. "
+                  text run at (597,0) width 145: "This border applies only"
+                  text run at (0,20) width 270: "to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (5,61) size 743x26 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 459x19
+                  text run at (3,3) width 459: "This paragraph should have a medium black solid border all the way around."
+              LayoutBlockFlow {P} at (5,103) size 743x22 [border: (1px ridge #800000)]
+                LayoutText {#text} at (1,1) size 456x19
+                  text run at (1,1) width 456: "This paragraph should have a thin maroon ridged border all the way around."
+              LayoutBlockFlow {P} at (5,141) size 743x40 [border: (10px outset #008080)]
+                LayoutText {#text} at (10,10) size 495x19
+                  text run at (10,10) width 495: "This paragraph should have a ten-pixel-wide teal outset border all the way around."
+              LayoutBlockFlow {P} at (5,197) size 743x40 [border: (10px inset #808000)]
+                LayoutText {#text} at (10,10) size 493x19
+                  text run at (10,10) width 493: "This paragraph should have a ten-pixel-wide olive inset border all the way around."
+              LayoutBlockFlow {P} at (5,253) size 743x20
+                LayoutText {#text} at (0,0) size 333x19
+                  text run at (0,0) width 333: "This paragraph should have no border around it, as the "
+                LayoutInline {TT} at (0,0) size 96x16
+                  LayoutText {#text} at (333,3) size 96x16
+                    text run at (333,3) width 96: "border-style"
+                LayoutText {#text} at (429,0) size 306x19
+                  text run at (429,0) width 306: " was not set, and it should not be offset in any way."
+              LayoutBlockFlow {P} at (5,289) size 743x26 [border: (3px double #800000)]
+                LayoutText {#text} at (3,3) size 508x19
+                  text run at (3,3) width 508: "This paragraph should have a medium maroon double border around it, even though "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (511,6) size 96x16
+                    text run at (511,6) width 96: "border-width"
+                LayoutText {#text} at (607,3) size 132x19
+                  text run at (607,3) width 132: " was not explicitly set."
+              LayoutBlockFlow {P} at (5,331) size 743x20
+                LayoutText {#text} at (0,0) size 590x19
+                  text run at (0,0) width 590: "This paragraph should have no border around it, as its declaration is invalid and should be ignored."
+              LayoutBlockFlow {P} at (5,367) size 743x20
+                LayoutInline {A} at (0,0) size 23x19
+                  LayoutText {#text} at (0,0) size 23x19
+                    text run at (0,0) width 23: "The"
+                LayoutText {#text} at (23,0) size 677x19
+                  text run at (23,0) width 677: " following image is also an anchor which points to a target on this page, but it should not have a border around it: "
+                LayoutInline {A} at (0,0) size 16x19 [color=#0000FF]
+                  LayoutImage {IMG} at (699.70,0) size 15x15
+                LayoutText {#text} at (714,0) size 5x19
+                  text run at (714,0) width 5: "."
+              LayoutTable {TABLE} at (5,403) size 743x121 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 741x119
+                  LayoutTableRow {TR} at (0,5) size 741x46
+                    LayoutTableCell {TD} at (5,5) size 731x46 [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (3,3) size 721x39
+                        text run at (3,3) width 384: "Every cell in this table should have a 2-pixel solid green border. "
+                        text run at (386,3) width 338: "This is also true of the table-testing section in the second"
+                        text run at (3,23) width 121: "half of the test page."
+                  LayoutTableRow {TR} at (0,56) size 741x58
+                    LayoutTableCell {TD} at (5,72) size 185x26 [border: (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (3,3) size 50x19
+                        text run at (3,3) width 50: "Cell one"
+                    LayoutTableCell {TD} at (195,56) size 541x58 [border: (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (3,3) size 535x20
+                        LayoutText {#text} at (0,0) size 51x19
+                          text run at (0,0) width 51: "Cell two"
+                      LayoutTable {TABLE} at (3,23) size 157x32 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 155x30
+                          LayoutTableRow {TR} at (0,2) size 155x26
+                            LayoutTableCell {TD} at (2,2) size 151x26 [border: (2px solid #008000)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (3,3) size 145x19
+                                text run at (3,3) width 145: "Nested single-cell table!"
+              LayoutBlockFlow {P} at (5,540) size 743x20
+                LayoutText {#text} at (0,0) size 163x19
+                  text run at (0,0) width 163: "This is an unstyled element."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_bottom-expected.txt
new file mode 100644
index 0000000..a25c8da
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_bottom-expected.txt
@@ -0,0 +1,164 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1063
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1063 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1063
+    LayoutBlockFlow {BODY} at (8,8) size 769x1047 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 344x64
+          text run at (0,0) width 328: ".one {border-bottom: purple double 10px;}"
+          text run at (328,0) width 0: " "
+          text run at (0,16) width 320: ".two {border-bottom: purple thin solid;}"
+          text run at (320,16) width 0: " "
+          text run at (0,32) width 344: ".three {border-bottom: black medium solid;}"
+          text run at (344,32) width 0: " "
+          text run at (0,48) width 288: "TD {border-bottom: green 2px solid;}"
+          text run at (288,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 769x40
+        LayoutText {#text} at (0,0) size 745x39
+          text run at (0,0) width 629: "Note that all table cells on this page should have a two-pixel solid green border along their bottom sides. "
+          text run at (629,0) width 116: "This border applies"
+          text run at (0,20) width 299: "only to the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (0,187) size 769x30 [border: none (10px double #800080) none]
+        LayoutText {#text} at (0,0) size 421x19
+          text run at (0,0) width 421: "This paragraph should have a purple, double, 10-pixel bottom border."
+      LayoutBlockFlow {P} at (0,233) size 769x21 [border: none (1px solid #800080) none]
+        LayoutText {#text} at (0,0) size 339x19
+          text run at (0,0) width 339: "This paragraph should have a thin purple bottom border."
+      LayoutTable {TABLE} at (0,270) size 769x118 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x116
+          LayoutTableRow {TR} at (0,5) size 767x45
+            LayoutTableCell {TD} at (5,5) size 757x45 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (2,2) size 721x39
+                text run at (2,2) width 431: "Every cell in this table should have a 2-pixel solid green bottom border. "
+                text run at (432,2) width 291: "This is also true of the table-testing section in the"
+                text run at (2,22) width 168: "second half of the test page."
+          LayoutTableRow {TR} at (0,55) size 767x56
+            LayoutTableCell {TD} at (5,70) size 190x25 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (2,2) size 50x19
+                text run at (2,2) width 50: "Cell one"
+            LayoutTableCell {TD} at (200,55) size 562x56 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (2,2) size 558x20
+                LayoutText {#text} at (0,0) size 51x19
+                  text run at (0,0) width 51: "Cell two"
+              LayoutTable {TABLE} at (2,22) size 155x31 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 153x29
+                  LayoutTableRow {TR} at (0,2) size 153x25
+                    LayoutTableCell {TD} at (2,2) size 149x25 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,2) size 145x19
+                        text run at (2,2) width 145: "Nested single-cell table!"
+      LayoutBlockFlow {UL} at (0,404) size 769x149
+        LayoutListItem {LI} at (40,0) size 729x83 [border: none (3px solid #000000) none]
+          LayoutBlockFlow (anonymous) at (0,0) size 729x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 110x19
+              text run at (0,0) width 110: "This is a list item..."
+          LayoutBlockFlow {UL} at (0,20) size 729x60
+            LayoutListItem {LI} at (40,0) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 70x19
+                text run at (0,0) width 70: "...and this..."
+            LayoutListItem {LI} at (40,20) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 111x19
+                text run at (0,0) width 111: "...is a second list..."
+            LayoutListItem {LI} at (40,40) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 165x19
+                text run at (0,0) width 165: "...nested within the list item."
+        LayoutListItem {LI} at (40,83) size 729x23 [border: none (3px solid #000000) none]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 149x19
+            text run at (0,0) width 149: "This is a second list item."
+        LayoutListItem {LI} at (40,106) size 729x43 [border: none (3px solid #000000) none]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 694x39
+            text run at (0,0) width 694: "Each list item in this list should have a medium-width black border at its bottom, which for the first item means that it"
+            text run at (0,20) width 89: "should appear "
+          LayoutInline {EM} at (0,0) size 51x19
+            LayoutText {#text} at (89,20) size 51x19
+              text run at (89,20) width 51: "beneath"
+          LayoutText {#text} at (140,20) size 365x19
+            text run at (140,20) width 365: " the nested list (below the line \"...nested within the list item.\")."
+      LayoutTable {TABLE} at (0,569) size 769x478 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x476
+          LayoutTableRow {TR} at (0,0) size 767x29
+            LayoutTableCell {TD} at (0,0) size 767x29 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,29) size 767x447
+            LayoutTableCell {TD} at (0,238) size 12x29 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,29) size 755x447 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x40
+                LayoutText {#text} at (0,0) size 745x39
+                  text run at (0,0) width 629: "Note that all table cells on this page should have a two-pixel solid green border along their bottom sides. "
+                  text run at (629,0) width 116: "This border applies"
+                  text run at (0,20) width 299: "only to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (4,60) size 747x30 [border: none (10px double #800080) none]
+                LayoutText {#text} at (0,0) size 421x19
+                  text run at (0,0) width 421: "This paragraph should have a purple, double, 10-pixel bottom border."
+              LayoutBlockFlow {P} at (4,106) size 747x21 [border: none (1px solid #800080) none]
+                LayoutText {#text} at (0,0) size 339x19
+                  text run at (0,0) width 339: "This paragraph should have a thin purple bottom border."
+              LayoutTable {TABLE} at (4,143) size 747x118 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 745x116
+                  LayoutTableRow {TR} at (0,5) size 745x45
+                    LayoutTableCell {TD} at (5,5) size 735x45 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (2,2) size 721x39
+                        text run at (2,2) width 431: "Every cell in this table should have a 2-pixel solid green bottom border. "
+                        text run at (432,2) width 291: "This is also true of the table-testing section in the"
+                        text run at (2,22) width 168: "second half of the test page."
+                  LayoutTableRow {TR} at (0,55) size 745x56
+                    LayoutTableCell {TD} at (5,70) size 184x25 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,2) size 50x19
+                        text run at (2,2) width 50: "Cell one"
+                    LayoutTableCell {TD} at (194,55) size 546x56 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (2,2) size 542x20
+                        LayoutText {#text} at (0,0) size 51x19
+                          text run at (0,0) width 51: "Cell two"
+                      LayoutTable {TABLE} at (2,22) size 155x31 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 153x29
+                          LayoutTableRow {TR} at (0,2) size 153x25
+                            LayoutTableCell {TD} at (2,2) size 149x25 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (2,2) size 145x19
+                                text run at (2,2) width 145: "Nested single-cell table!"
+              LayoutBlockFlow {UL} at (4,277) size 747x149
+                LayoutListItem {LI} at (40,0) size 707x83 [border: none (3px solid #000000) none]
+                  LayoutBlockFlow (anonymous) at (0,0) size 707x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 110x19
+                      text run at (0,0) width 110: "This is a list item..."
+                  LayoutBlockFlow {UL} at (0,20) size 707x60
+                    LayoutListItem {LI} at (40,0) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 70x19
+                        text run at (0,0) width 70: "...and this..."
+                    LayoutListItem {LI} at (40,20) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 111x19
+                        text run at (0,0) width 111: "...is a second list..."
+                    LayoutListItem {LI} at (40,40) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 165x19
+                        text run at (0,0) width 165: "...nested within the list item."
+                LayoutListItem {LI} at (40,83) size 707x23 [border: none (3px solid #000000) none]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 149x19
+                    text run at (0,0) width 149: "This is a second list item."
+                LayoutListItem {LI} at (40,106) size 707x43 [border: none (3px solid #000000) none]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 694x39
+                    text run at (0,0) width 694: "Each list item in this list should have a medium-width black border at its bottom, which for the first item means that it"
+                    text run at (0,20) width 89: "should appear "
+                  LayoutInline {EM} at (0,0) size 51x19
+                    LayoutText {#text} at (89,20) size 51x19
+                      text run at (89,20) width 51: "beneath"
+                  LayoutText {#text} at (140,20) size 365x19
+                    text run at (140,20) width 365: " the nested list (below the line \"...nested within the list item.\")."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_bottom_inline-expected.txt
new file mode 100644
index 0000000..0e68cf7a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_bottom_inline-expected.txt
@@ -0,0 +1,61 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 328x48
+          text run at (0,0) width 328: ".one {border-bottom: purple double 10px;}"
+          text run at (328,0) width 0: " "
+          text run at (0,16) width 320: ".two {border-bottom: purple thin solid;}"
+          text run at (320,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 627x19
+          text run at (0,0) width 627: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
+        LayoutInline {SPAN} at (0,0) size 56x29 [border: none (10px double #800080) none]
+          LayoutText {#text} at (626,0) size 56x19
+            text run at (626,0) width 56: "class one"
+        LayoutText {#text} at (681,0) size 768x39
+          text run at (681,0) width 87: ", which should"
+          text run at (0,20) width 306: "have a 10-pixel purple double bottom border; and "
+        LayoutInline {SPAN} at (0,0) size 56x20 [border: none (1px solid #800080) none]
+          LayoutText {#text} at (306,20) size 56x19
+            text run at (306,20) width 56: "class two"
+        LayoutText {#text} at (362,20) size 778x39
+          text run at (362,20) width 328: ", which should have a thin solid purple bottom border. "
+          text run at (689,20) width 89: "The line-height"
+          text run at (0,40) width 310: "of the parent element should not change on any line."
+      LayoutTable {TABLE} at (0,191) size 784x98 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x96
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x68
+            LayoutTableCell {TD} at (0,48) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x68 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 627x19
+                  text run at (0,0) width 627: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
+                LayoutInline {SPAN} at (0,0) size 56x29 [border: none (10px double #800080) none]
+                  LayoutText {#text} at (626,0) size 56x19
+                    text run at (626,0) width 56: "class one"
+                LayoutText {#text} at (681,0) size 725x39
+                  text run at (681,0) width 44: ", which"
+                  text run at (0,20) width 349: "should have a 10-pixel purple double bottom border; and "
+                LayoutInline {SPAN} at (0,0) size 56x20 [border: none (1px solid #800080) none]
+                  LayoutText {#text} at (349,20) size 56x19
+                    text run at (349,20) width 56: "class two"
+                LayoutText {#text} at (405,20) size 756x39
+                  text run at (405,20) width 328: ", which should have a thin solid purple bottom border. "
+                  text run at (732,20) width 24: "The"
+                  text run at (0,40) width 375: "line-height of the parent element should not change on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_bottom_width-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_bottom_width-expected.txt
new file mode 100644
index 0000000..9eadb20
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_bottom_width-expected.txt
@@ -0,0 +1,104 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 919
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x919 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x919
+    LayoutBlockFlow {BODY} at (8,8) size 769x903 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 464x96
+          text run at (0,0) width 456: ".zero {background-color: silver; border-bottom-width: 0;}"
+          text run at (456,0) width 0: " "
+          text run at (0,16) width 432: ".one {border-bottom-width: 50px; border-style: solid;}"
+          text run at (432,16) width 0: " "
+          text run at (0,32) width 440: ".two {border-bottom-width: thick; border-style: solid;}"
+          text run at (440,32) width 0: " "
+          text run at (0,48) width 464: ".three {border-bottom-width: medium; border-style: solid;}"
+          text run at (464,48) width 0: " "
+          text run at (0,64) width 440: ".four {border-bottom-width: thin; border-style: solid;}"
+          text run at (440,64) width 0: " "
+          text run at (0,80) width 272: ".five {border-bottom-width: 25px;}"
+          text run at (272,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20
+        LayoutText {#text} at (0,0) size 145x19
+          text run at (0,0) width 145: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (145,3) size 96x16
+            text run at (145,3) width 96: "border-style"
+        LayoutText {#text} at (241,0) size 87x19
+          text run at (241,0) width 87: " is supported.)"
+      LayoutBlockFlow {P} at (0,199) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,235) size 769x73 [border: (3px solid #000000) (50px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 368x19
+          text run at (3,3) width 368: "This element should have a bottom border width of 50 pixels."
+      LayoutBlockFlow {P} at (0,324) size 769x28 [border: (3px solid #000000) (5px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 327x19
+          text run at (3,3) width 327: "This element should have a thick bottom border width."
+      LayoutBlockFlow {P} at (0,368) size 769x26 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 345x19
+          text run at (3,3) width 345: "This element should have a medium bottom border width."
+      LayoutBlockFlow {P} at (0,410) size 769x24 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 319x19
+          text run at (3,3) width 319: "This element should have a thin bottom border width."
+      LayoutBlockFlow {P} at (0,450) size 769x20
+        LayoutText {#text} at (0,0) size 510x19
+          text run at (0,0) width 510: "This element should have no border and no extra \"padding\" on its bottom side, as no "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (510,3) size 96x16
+            text run at (510,3) width 96: "border-style"
+        LayoutText {#text} at (606,0) size 53x19
+          text run at (606,0) width 53: " was set."
+      LayoutBlockFlow {P} at (0,486) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutTable {TABLE} at (0,522) size 681x381 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 679x379
+          LayoutTableRow {TR} at (0,0) size 679x28
+            LayoutTableCell {TD} at (0,0) size 679x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 679x351
+            LayoutTableCell {TD} at (0,189) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 667x351 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 659x20
+                LayoutText {#text} at (0,0) size 145x19
+                  text run at (0,0) width 145: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (145,3) size 96x16
+                    text run at (145,3) width 96: "border-style"
+                LayoutText {#text} at (241,0) size 87x19
+                  text run at (241,0) width 87: " is supported.)"
+              LayoutBlockFlow {P} at (4,40) size 659x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,76) size 659x73 [border: (3px solid #000000) (50px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 368x19
+                  text run at (3,3) width 368: "This element should have a bottom border width of 50 pixels."
+              LayoutBlockFlow {P} at (4,165) size 659x28 [border: (3px solid #000000) (5px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 327x19
+                  text run at (3,3) width 327: "This element should have a thick bottom border width."
+              LayoutBlockFlow {P} at (4,209) size 659x26 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 345x19
+                  text run at (3,3) width 345: "This element should have a medium bottom border width."
+              LayoutBlockFlow {P} at (4,251) size 659x24 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 319x19
+                  text run at (3,3) width 319: "This element should have a thin bottom border width."
+              LayoutBlockFlow {P} at (4,291) size 659x20
+                LayoutText {#text} at (0,0) size 510x19
+                  text run at (0,0) width 510: "This element should have no border and no extra \"padding\" on its bottom side, as no "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (510,3) size 96x16
+                    text run at (510,3) width 96: "border-style"
+                LayoutText {#text} at (606,0) size 53x19
+                  text run at (606,0) width 53: " was set."
+              LayoutBlockFlow {P} at (4,327) size 659x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_bottom_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_bottom_width_inline-expected.txt
new file mode 100644
index 0000000..65b10a03
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_bottom_width_inline-expected.txt
@@ -0,0 +1,85 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 432x48
+          text run at (0,0) width 432: ".one {border-bottom-width: 25px; border-style: solid;}"
+          text run at (432,0) width 0: " "
+          text run at (0,16) width 432: ".two {border-bottom-width: thin; border-style: solid;}"
+          text run at (432,16) width 0: " "
+          text run at (0,32) width 280: ".three {border-bottom-width: 25px;}"
+          text run at (280,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x88 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 163x19
+          text run at (3,3) width 163: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 24x16
+          LayoutText {#text} at (166,6) size 24x16
+            text run at (166,6) width 24: "one"
+        LayoutText {#text} at (190,3) size 154x19
+          text run at (190,3) width 8: ". "
+          text run at (198,3) width 146: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 164x23 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+          LayoutText {#text} at (346,3) size 134x19
+            text run at (346,3) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (479,6) size 25x16
+              text run at (479,6) width 25: "two"
+        LayoutText {#text} at (506,3) size 772x39
+          text run at (506,3) width 269: ", which should result in a thin solid border on"
+          text run at (3,23) width 622: "the bottom side of each box in the inline element (and the UA's default border on the other three sides). "
+          text run at (625,23) width 98: "There is also an "
+        LayoutInline {SPAN} at (0,0) size 750x39
+          LayoutText {#text} at (723,23) size 750x39
+            text run at (723,23) width 30: "inline"
+            text run at (3,43) width 99: "element of class "
+          LayoutInline {TT} at (0,0) size 40x16
+            LayoutText {#text} at (102,46) size 40x16
+              text run at (102,46) width 40: "three"
+        LayoutText {#text} at (142,43) size 570x19
+          text run at (142,43) width 570: ", which should have no bottom border width or visible border because no border style was set."
+      LayoutTable {TABLE} at (0,219) size 784x126 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x124
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x96
+            LayoutTableCell {TD} at (0,62) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x96 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x88 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 163x19
+                  text run at (3,3) width 163: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 24x16
+                  LayoutText {#text} at (166,6) size 24x16
+                    text run at (166,6) width 24: "one"
+                LayoutText {#text} at (190,3) size 154x19
+                  text run at (190,3) width 8: ". "
+                  text run at (198,3) width 146: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 164x23 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+                  LayoutText {#text} at (346,3) size 134x19
+                    text run at (346,3) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (479,6) size 25x16
+                      text run at (479,6) width 25: "two"
+                LayoutText {#text} at (506,3) size 753x39
+                  text run at (506,3) width 250: ", which should result in a thin solid border"
+                  text run at (3,23) width 641: "on the bottom side of each box in the inline element (and the UA's default border on the other three sides). "
+                  text run at (644,23) width 94: "There is also an"
+                LayoutInline {SPAN} at (0,0) size 173x19
+                  LayoutText {#text} at (3,43) size 133x19
+                    text run at (3,43) width 133: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 40x16
+                    LayoutText {#text} at (136,46) size 40x16
+                      text run at (136,46) width 40: "three"
+                LayoutText {#text} at (176,43) size 570x19
+                  text run at (176,43) width 570: ", which should have no bottom border width or visible border because no border style was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_color-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_color-expected.txt
new file mode 100644
index 0000000..c93704a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_color-expected.txt
@@ -0,0 +1,50 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 728x48
+          text run at (0,0) width 392: ".one {border-color: purple; border-style: solid;}"
+          text run at (392,0) width 0: " "
+          text run at (0,16) width 568: ".two {border-color: purple; border-width: medium; border-style: solid;}"
+          text run at (568,16) width 0: " "
+          text run at (0,32) width 728: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
+          text run at (728,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x26 [border: (3px solid #800080)]
+        LayoutText {#text} at (3,3) size 337x19
+          text run at (3,3) width 337: "This element should have a purple border surrounding it."
+      LayoutBlockFlow {P} at (0,157) size 784x26 [border: (3px solid #800080)]
+        LayoutText {#text} at (3,3) size 427x19
+          text run at (3,3) width 427: "This element should have a medium-width purple border surrounding it."
+      LayoutBlockFlow {P} at (0,199) size 784x46 [border: (3px solid #800080) (3px solid #008000) (3px solid #0000FF) (3px solid #FFFF00)]
+        LayoutText {#text} at (3,3) size 774x39
+          text run at (3,3) width 774: "This element should be surrounded by a medium width border which is purple on top, green on the right side, blue on the bottom,"
+          text run at (3,23) width 160: "and yellow on the left side."
+      LayoutTable {TABLE} at (0,261) size 784x168 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x166
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x138
+            LayoutTableCell {TD} at (0,83) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x138 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x26 [border: (3px solid #800080)]
+                LayoutText {#text} at (3,3) size 337x19
+                  text run at (3,3) width 337: "This element should have a purple border surrounding it."
+              LayoutBlockFlow {P} at (4,46) size 762x26 [border: (3px solid #800080)]
+                LayoutText {#text} at (3,3) size 427x19
+                  text run at (3,3) width 427: "This element should have a medium-width purple border surrounding it."
+              LayoutBlockFlow {P} at (4,88) size 762x46 [border: (3px solid #800080) (3px solid #008000) (3px solid #0000FF) (3px solid #FFFF00)]
+                LayoutText {#text} at (3,3) size 723x39
+                  text run at (3,3) width 723: "This element should be surrounded by a medium width border which is purple on top, green on the right side, blue on the"
+                  text run at (3,23) width 211: "bottom, and yellow on the left side."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_color_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_color_inline-expected.txt
new file mode 100644
index 0000000..fc1a040b9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_color_inline-expected.txt
@@ -0,0 +1,76 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 728x48
+          text run at (0,0) width 392: ".one {border-color: purple; border-style: solid;}"
+          text run at (392,0) width 0: " "
+          text run at (0,16) width 568: ".two {border-color: purple; border-width: medium; border-style: solid;}"
+          text run at (568,16) width 0: " "
+          text run at (0,32) width 728: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
+          text run at (728,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x80 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 638x19
+          text run at (0,0) width 638: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
+        LayoutInline {SPAN} at (0,0) size 62x25 [border: (3px solid #800080)]
+          LayoutText {#text} at (640,0) size 56x19
+            text run at (640,0) width 56: "class one"
+        LayoutText {#text} at (698,0) size 9x19
+          text run at (698,0) width 9: ", "
+        LayoutInline {SPAN} at (0,0) size 63x25 [border: (3px solid #800080)]
+          LayoutText {#text} at (709,0) size 57x19
+            text run at (709,0) width 57: "class two"
+        LayoutText {#text} at (768,0) size 773x39
+          text run at (768,0) width 5: ","
+          text run at (0,20) width 26: "and "
+        LayoutInline {SPAN} at (0,0) size 69x25 [border: (3px solid #800080) (3px solid #008000) (3px solid #0000FF) (3px solid #FFFF00)]
+          LayoutText {#text} at (29,20) size 63x19
+            text run at (29,20) width 63: "class three"
+        LayoutText {#text} at (95,20) size 765x59
+          text run at (95,20) width 8: ". "
+          text run at (103,20) width 662: "The effect for each inline element should be to have a purple medium-width solid border in the first and second"
+          text run at (0,40) width 473: "cases, and a purple-green-blue-yellow medium-width solid border in the third. "
+          text run at (473,40) width 284: "The line-height of the parent element should not"
+          text run at (0,60) width 150: "change at all, on any line."
+      LayoutTable {TABLE} at (0,211) size 784x118 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x116
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x88
+            LayoutTableCell {TD} at (0,58) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x88 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x80 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 638x19
+                  text run at (0,0) width 638: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
+                LayoutInline {SPAN} at (0,0) size 62x25 [border: (3px solid #800080)]
+                  LayoutText {#text} at (640,0) size 56x19
+                    text run at (640,0) width 56: "class one"
+                LayoutText {#text} at (698,0) size 9x19
+                  text run at (698,0) width 9: ", "
+                LayoutInline {SPAN} at (0,0) size 739x45 [border: (3px solid #800080)]
+                  LayoutText {#text} at (709,0) size 739x39
+                    text run at (709,0) width 30: "class"
+                    text run at (0,20) width 23: "two"
+                LayoutText {#text} at (26,20) size 34x19
+                  text run at (26,20) width 34: ", and "
+                LayoutInline {SPAN} at (0,0) size 69x25 [border: (3px solid #800080) (3px solid #008000) (3px solid #0000FF) (3px solid #FFFF00)]
+                  LayoutText {#text} at (63,20) size 63x19
+                    text run at (63,20) width 63: "class three"
+                LayoutText {#text} at (129,20) size 752x59
+                  text run at (129,20) width 8: ". "
+                  text run at (137,20) width 615: "The effect for each inline element should be to have a purple medium-width solid border in the first and"
+                  text run at (0,40) width 520: "second cases, and a purple-green-blue-yellow medium-width solid border in the third. "
+                  text run at (520,40) width 218: "The line-height of the parent element"
+                  text run at (0,60) width 216: "should not change at all, on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_inline-expected.txt
new file mode 100644
index 0000000..054adaa
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_inline-expected.txt
@@ -0,0 +1,61 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 256x48
+          text run at (0,0) width 256: ".one {border: 10px teal outset;}"
+          text run at (256,0) width 0: " "
+          text run at (0,16) width 256: ".two {border: 10px olive inset;}"
+          text run at (256,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 638x19
+          text run at (0,0) width 638: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
+        LayoutInline {SPAN} at (0,0) size 76x39 [border: (10px outset #008080)]
+          LayoutText {#text} at (647,0) size 56x19
+            text run at (647,0) width 56: "class one"
+        LayoutText {#text} at (712,0) size 756x39
+          text run at (712,0) width 44: ", which"
+          text run at (0,20) width 298: "should result in a 10-pixel outset teal border; and "
+        LayoutInline {SPAN} at (0,0) size 76x39 [border: (10px inset #808000)]
+          LayoutText {#text} at (308,20) size 56x19
+            text run at (308,20) width 56: "class two"
+        LayoutText {#text} at (374,20) size 779x39
+          text run at (374,20) width 317: ", which should result in a 10-pixel inset olive border. "
+          text run at (690,20) width 89: "The line-height"
+          text run at (0,40) width 310: "of the parent element should not change on any line."
+      LayoutTable {TABLE} at (0,191) size 784x98 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x96
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x68
+            LayoutTableCell {TD} at (0,48) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x68 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 638x19
+                  text run at (0,0) width 638: "This is an unstyled element, save for the background color, and containing inline elements with a classes of "
+                LayoutInline {SPAN} at (0,0) size 76x39 [border: (10px outset #008080)]
+                  LayoutText {#text} at (647,0) size 56x19
+                    text run at (647,0) width 56: "class one"
+                LayoutText {#text} at (712,0) size 756x39
+                  text run at (712,0) width 44: ", which"
+                  text run at (0,20) width 298: "should result in a 10-pixel outset teal border; and "
+                LayoutInline {SPAN} at (0,0) size 76x39 [border: (10px inset #808000)]
+                  LayoutText {#text} at (308,20) size 56x19
+                    text run at (308,20) width 56: "class two"
+                LayoutText {#text} at (374,20) size 744x39
+                  text run at (374,20) width 317: ", which should result in a 10-pixel inset olive border. "
+                  text run at (690,20) width 54: "The line-"
+                  text run at (0,40) width 349: "height of the parent element should not change on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_left-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_left-expected.txt
new file mode 100644
index 0000000..a1397d64
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_left-expected.txt
@@ -0,0 +1,164 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1103
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1103 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1103
+    LayoutBlockFlow {BODY} at (8,8) size 769x1087 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (20,0) size 749x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x112
+        LayoutText {#text} at (0,0) size 344x112
+          text run at (0,0) width 176: "P {margin-left: 20px;}"
+          text run at (176,0) width 0: " "
+          text run at (0,16) width 312: ".one {border-left: purple double 10px;}"
+          text run at (312,16) width 0: " "
+          text run at (0,32) width 304: ".two {border-left: purple thin solid;}"
+          text run at (304,32) width 0: " "
+          text run at (0,48) width 336: ".threea {border-left: black medium solid;}"
+          text run at (336,48) width 0: " "
+          text run at (0,64) width 344: ".threeb {border-left: purple medium solid;}"
+          text run at (344,64) width 0: " "
+          text run at (0,80) width 328: ".threec {border-left: blue medium solid;}"
+          text run at (328,80) width 0: " "
+          text run at (0,96) width 272: "TD {border-left: green 2px solid;}"
+          text run at (272,96) width 0: " "
+      LayoutBlockFlow {P} at (20,179) size 749x40
+        LayoutText {#text} at (0,0) size 749x39
+          text run at (0,0) width 604: "Note that all table cells on this page should have a two-pixel solid green border along their left sides. "
+          text run at (604,0) width 145: "This border applies only"
+          text run at (0,20) width 270: "to the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (20,235) size 749x20 [border: none (10px double #800080)]
+        LayoutText {#text} at (10,0) size 396x19
+          text run at (10,0) width 396: "This paragraph should have a purple, double, 10-pixel left border."
+      LayoutBlockFlow {P} at (20,271) size 749x20 [border: none (1px solid #800080)]
+        LayoutText {#text} at (1,0) size 314x19
+          text run at (1,0) width 314: "This paragraph should have a thin purple left border."
+      LayoutTable {TABLE} at (0,307) size 769x115 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x113
+          LayoutTableRow {TR} at (0,5) size 767x44
+            LayoutTableCell {TD} at (5,5) size 757x44 [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (3,2) size 743x39
+                text run at (3,2) width 406: "Every cell in this table should have a 2-pixel solid green left border. "
+                text run at (408,2) width 338: "This is also true of the table-testing section in the second"
+                text run at (3,22) width 121: "half of the test page."
+          LayoutTableRow {TR} at (0,54) size 767x54
+            LayoutTableCell {TD} at (5,69) size 191x24 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (3,2) size 50x19
+                text run at (3,2) width 50: "Cell one"
+            LayoutTableCell {TD} at (201,54) size 561x54 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (3,2) size 556x20
+                LayoutText {#text} at (0,0) size 51x19
+                  text run at (0,0) width 51: "Cell two"
+              LayoutTable {TABLE} at (3,22) size 156x30 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 154x28
+                  LayoutTableRow {TR} at (0,2) size 154x24
+                    LayoutTableCell {TD} at (2,2) size 150x24 [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (3,2) size 145x19
+                        text run at (3,2) width 145: "Nested single-cell table!"
+      LayoutBlockFlow {UL} at (0,438) size 769x160
+        LayoutListItem {LI} at (40,0) size 729x80 [border: none (3px solid #000000)]
+          LayoutBlockFlow (anonymous) at (3,0) size 726x20
+            LayoutListMarker (anonymous) at (-21,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 110x19
+              text run at (0,0) width 110: "This is a list item..."
+          LayoutBlockFlow {UL} at (3,20) size 726x60
+            LayoutListItem {LI} at (40,0) size 686x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 70x19
+                text run at (0,0) width 70: "...and this..."
+            LayoutListItem {LI} at (40,20) size 686x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 111x19
+                text run at (0,0) width 111: "...is a second list..."
+            LayoutListItem {LI} at (40,40) size 686x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 165x19
+                text run at (0,0) width 165: "...nested within the list item."
+        LayoutListItem {LI} at (40,80) size 729x20 [border: none (3px solid #800080)]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (3,0) size 149x19
+            text run at (3,0) width 149: "This is a second list item."
+        LayoutListItem {LI} at (40,100) size 729x60 [border: none (3px solid #0000FF)]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (3,0) size 707x59
+            text run at (3,0) width 658: "Each list item in this 'parent' list should have a medium-width border along its left side, in each of three colors. "
+            text run at (661,0) width 49: "The first"
+            text run at (3,20) width 696: "item's border should travel the entire height the nested list (to end near the baseline of the line \"...nested within the list"
+            text run at (3,40) width 424: "item.\"), even though the nested list does not have any border styles set."
+      LayoutTable {TABLE} at (0,614) size 769x473 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x471
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (5,4) size 157x19
+                  text run at (5,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x443
+            LayoutTableCell {TD} at (0,235) size 13x28 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (5,4) size 4x19
+                text run at (5,4) width 4: " "
+            LayoutTableCell {TD} at (13,28) size 754x443 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (25,4) size 725x40
+                LayoutText {#text} at (0,0) size 720x39
+                  text run at (0,0) width 604: "Note that all table cells on this page should have a two-pixel solid green border along their left sides. "
+                  text run at (604,0) width 116: "This border applies"
+                  text run at (0,20) width 299: "only to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (25,60) size 725x20 [border: none (10px double #800080)]
+                LayoutText {#text} at (10,0) size 396x19
+                  text run at (10,0) width 396: "This paragraph should have a purple, double, 10-pixel left border."
+              LayoutBlockFlow {P} at (25,96) size 725x20 [border: none (1px solid #800080)]
+                LayoutText {#text} at (1,0) size 314x19
+                  text run at (1,0) width 314: "This paragraph should have a thin purple left border."
+              LayoutTable {TABLE} at (5,132) size 745x115 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 743x113
+                  LayoutTableRow {TR} at (0,5) size 743x44
+                    LayoutTableCell {TD} at (5,5) size 733x44 [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (3,2) size 696x39
+                        text run at (3,2) width 406: "Every cell in this table should have a 2-pixel solid green left border. "
+                        text run at (408,2) width 291: "This is also true of the table-testing section in the"
+                        text run at (3,22) width 168: "second half of the test page."
+                  LayoutTableRow {TR} at (0,54) size 743x54
+                    LayoutTableCell {TD} at (5,69) size 185x24 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (3,2) size 50x19
+                        text run at (3,2) width 50: "Cell one"
+                    LayoutTableCell {TD} at (195,54) size 543x54 [border: (1px inset #808080) (2px solid #008000)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (3,2) size 538x20
+                        LayoutText {#text} at (0,0) size 51x19
+                          text run at (0,0) width 51: "Cell two"
+                      LayoutTable {TABLE} at (3,22) size 156x30 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 154x28
+                          LayoutTableRow {TR} at (0,2) size 154x24
+                            LayoutTableCell {TD} at (2,2) size 150x24 [border: (1px inset #808080) (2px solid #008000)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (3,2) size 145x19
+                                text run at (3,2) width 145: "Nested single-cell table!"
+              LayoutBlockFlow {UL} at (5,263) size 745x160
+                LayoutListItem {LI} at (40,0) size 705x80 [border: none (3px solid #000000)]
+                  LayoutBlockFlow (anonymous) at (3,0) size 702x20
+                    LayoutListMarker (anonymous) at (-21,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 110x19
+                      text run at (0,0) width 110: "This is a list item..."
+                  LayoutBlockFlow {UL} at (3,20) size 702x60
+                    LayoutListItem {LI} at (40,0) size 662x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 70x19
+                        text run at (0,0) width 70: "...and this..."
+                    LayoutListItem {LI} at (40,20) size 662x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 111x19
+                        text run at (0,0) width 111: "...is a second list..."
+                    LayoutListItem {LI} at (40,40) size 662x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 165x19
+                        text run at (0,0) width 165: "...nested within the list item."
+                LayoutListItem {LI} at (40,80) size 705x20 [border: none (3px solid #800080)]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (3,0) size 149x19
+                    text run at (3,0) width 149: "This is a second list item."
+                LayoutListItem {LI} at (40,100) size 705x60 [border: none (3px solid #0000FF)]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (3,0) size 702x59
+                    text run at (3,0) width 658: "Each list item in this 'parent' list should have a medium-width border along its left side, in each of three colors. "
+                    text run at (661,0) width 23: "The"
+                    text run at (3,20) width 702: "first item's border should travel the entire height the nested list (to end near the baseline of the line \"...nested within the"
+                    text run at (3,40) width 444: "list item.\"), even though the nested list does not have any border styles set."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_left_inline-expected.txt
new file mode 100644
index 0000000..b66f762
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_left_inline-expected.txt
@@ -0,0 +1,61 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (20,0) size 764x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 312x64
+          text run at (0,0) width 176: "P {margin-left: 20px;}"
+          text run at (176,0) width 0: " "
+          text run at (0,16) width 312: ".one {border-left: purple double 10px;}"
+          text run at (312,16) width 0: " "
+          text run at (0,32) width 304: ".two {border-left: purple thin solid;}"
+          text run at (304,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (20,131) size 764x60 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 723x19
+          text run at (0,0) width 723: "This paragraph has a background color of silver and a 20-pixel left margin, and it contains inline elements with classes of "
+        LayoutInline {SPAN} at (0,0) size 762x39 [border: none (10px double #800080)]
+          LayoutText {#text} at (732,0) size 762x39
+            text run at (732,0) width 30: "class"
+            text run at (0,20) width 22: "one"
+        LayoutText {#text} at (22,20) size 371x19
+          text run at (22,20) width 371: ", which should have a 10-pixel purple double left border; and "
+        LayoutInline {SPAN} at (0,0) size 57x19 [border: none (1px solid #800080)]
+          LayoutText {#text} at (394,20) size 56x19
+            text run at (394,20) width 56: "class two"
+        LayoutText {#text} at (450,20) size 749x39
+          text run at (450,20) width 299: ", which should have a thin solid purple left border."
+          text run at (0,40) width 402: "The line-height of the parent element should not change on any line."
+      LayoutTable {TABLE} at (0,207) size 784x98 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x96
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x68
+            LayoutTableCell {TD} at (0,48) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x68 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (24,4) size 742x60 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 719x19
+                  text run at (0,0) width 719: "This paragraph has a background color of silver and a 20-pixel left margin, and it contains inline elements with classes of"
+                LayoutInline {SPAN} at (0,0) size 65x19 [border: none (10px double #800080)]
+                  LayoutText {#text} at (10,20) size 55x19
+                    text run at (10,20) width 55: "class one"
+                LayoutText {#text} at (65,20) size 371x19
+                  text run at (65,20) width 371: ", which should have a 10-pixel purple double left border; and "
+                LayoutInline {SPAN} at (0,0) size 57x19 [border: none (1px solid #800080)]
+                  LayoutText {#text} at (437,20) size 56x19
+                    text run at (437,20) width 56: "class two"
+                LayoutText {#text} at (493,20) size 721x39
+                  text run at (493,20) width 228: ", which should have a thin solid purple"
+                  text run at (0,40) width 71: "left border. "
+                  text run at (70,40) width 403: "The line-height of the parent element should not change on any line."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_left_width-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_left_width-expected.txt
new file mode 100644
index 0000000..263ecab
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_left_width-expected.txt
@@ -0,0 +1,100 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 793
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x793 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x793
+    LayoutBlockFlow {BODY} at (8,8) size 769x777 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 448x96
+          text run at (0,0) width 440: ".zero {background-color: silver; border-left-width: 0;}"
+          text run at (440,0) width 0: " "
+          text run at (0,16) width 416: ".one {border-left-width: 50px; border-style: solid;}"
+          text run at (416,16) width 0: " "
+          text run at (0,32) width 424: ".two {border-left-width: thick; border-style: solid;}"
+          text run at (424,32) width 0: " "
+          text run at (0,48) width 448: ".three {border-left-width: medium; border-style: solid;}"
+          text run at (448,48) width 0: " "
+          text run at (0,64) width 424: ".four {border-left-width: thin; border-style: solid;}"
+          text run at (424,64) width 0: " "
+          text run at (0,80) width 256: ".five {border-left-width: 25px;}"
+          text run at (256,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20
+        LayoutText {#text} at (0,0) size 145x19
+          text run at (0,0) width 145: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (145,3) size 96x16
+            text run at (145,3) width 96: "border-style"
+        LayoutText {#text} at (241,0) size 87x19
+          text run at (241,0) width 87: " is supported.)"
+      LayoutBlockFlow {P} at (0,199) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,235) size 769x46 [border: (3px solid #000000) (50px solid #000000)]
+        LayoutText {#text} at (50,3) size 697x39
+          text run at (50,3) width 697: "This element should have a left border width of 50 pixels, which will be more obvious if the element is more than one"
+          text run at (50,23) width 53: "line long."
+      LayoutBlockFlow {P} at (0,297) size 769x26 [border: (3px solid #000000) (5px solid #000000)]
+        LayoutText {#text} at (5,3) size 713x19
+          text run at (5,3) width 713: "This element should have a thick left border width, which will be more obvious if the element is more than one line long."
+      LayoutBlockFlow {P} at (0,339) size 769x26 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 731x19
+          text run at (3,3) width 731: "This element should have a medium left border width, which will be more obvious if the element is more than one line long."
+      LayoutBlockFlow {P} at (0,381) size 769x26 [border: (3px solid #000000) (1px solid #000000)]
+        LayoutText {#text} at (1,3) size 705x19
+          text run at (1,3) width 705: "This element should have a thin left border width, which will be more obvious if the element is more than one line long."
+      LayoutBlockFlow {P} at (0,423) size 769x20
+        LayoutText {#text} at (0,0) size 485x19
+          text run at (0,0) width 485: "This element should have no border and no extra \"padding\" on its left side, as no "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (485,3) size 96x16
+            text run at (485,3) width 96: "border-style"
+        LayoutText {#text} at (581,0) size 53x19
+          text run at (581,0) width 53: " was set."
+      LayoutTable {TABLE} at (0,459) size 769x318 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x316
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x288
+            LayoutTableCell {TD} at (0,158) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x288 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 145x19
+                  text run at (0,0) width 145: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (145,3) size 96x16
+                    text run at (145,3) width 96: "border-style"
+                LayoutText {#text} at (241,0) size 87x19
+                  text run at (241,0) width 87: " is supported.)"
+              LayoutBlockFlow {P} at (4,40) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,76) size 747x46 [border: (3px solid #000000) (50px solid #000000)]
+                LayoutText {#text} at (50,3) size 671x39
+                  text run at (50,3) width 671: "This element should have a left border width of 50 pixels, which will be more obvious if the element is more than"
+                  text run at (50,23) width 79: "one line long."
+              LayoutBlockFlow {P} at (4,138) size 747x26 [border: (3px solid #000000) (5px solid #000000)]
+                LayoutText {#text} at (5,3) size 713x19
+                  text run at (5,3) width 713: "This element should have a thick left border width, which will be more obvious if the element is more than one line long."
+              LayoutBlockFlow {P} at (4,180) size 747x26 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 731x19
+                  text run at (3,3) width 731: "This element should have a medium left border width, which will be more obvious if the element is more than one line long."
+              LayoutBlockFlow {P} at (4,222) size 747x26 [border: (3px solid #000000) (1px solid #000000)]
+                LayoutText {#text} at (1,3) size 705x19
+                  text run at (1,3) width 705: "This element should have a thin left border width, which will be more obvious if the element is more than one line long."
+              LayoutBlockFlow {P} at (4,264) size 747x20
+                LayoutText {#text} at (0,0) size 485x19
+                  text run at (0,0) width 485: "This element should have no border and no extra \"padding\" on its left side, as no "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (485,3) size 96x16
+                    text run at (485,3) width 96: "border-style"
+                LayoutText {#text} at (581,0) size 53x19
+                  text run at (581,0) width 53: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_left_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_left_width_inline-expected.txt
new file mode 100644
index 0000000..2f3ebbd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_left_width_inline-expected.txt
@@ -0,0 +1,96 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 416x48
+          text run at (0,0) width 416: ".one {border-left-width: 25px; border-style: solid;}"
+          text run at (416,0) width 0: " "
+          text run at (0,16) width 416: ".two {border-left-width: thin; border-style: solid;}"
+          text run at (416,16) width 0: " "
+          text run at (0,32) width 264: ".three {border-left-width: 25px;}"
+          text run at (264,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x66 [border: (3px solid #000000) (25px solid #000000)]
+        LayoutText {#text} at (25,3) size 163x19
+          text run at (25,3) width 163: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 24x16
+          LayoutText {#text} at (188,6) size 24x16
+            text run at (188,6) width 24: "one"
+        LayoutText {#text} at (212,3) size 154x19
+          text run at (212,3) width 8: ". "
+          text run at (220,3) width 146: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 162x25 [border: (3px solid #000000) (1px solid #000000)]
+          LayoutText {#text} at (366,3) size 134x19
+            text run at (366,3) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (499,6) size 25x16
+              text run at (499,6) width 25: "two"
+        LayoutText {#text} at (526,3) size 751x39
+          text run at (526,3) width 250: ", which should result in a thin solid border"
+          text run at (25,23) width 129: "on the left side of the "
+        LayoutInline {STRONG} at (0,0) size 27x19
+          LayoutText {#text} at (154,23) size 27x19
+            text run at (154,23) width 27: "first"
+        LayoutText {#text} at (181,23) size 575x19
+          text run at (181,23) width 481: " box in the inline element (and the UA's default border on the other three sides). "
+          text run at (662,23) width 94: "There is also an"
+        LayoutInline {SPAN} at (0,0) size 173x19
+          LayoutText {#text} at (25,43) size 133x19
+            text run at (25,43) width 133: "inline element of class "
+          LayoutInline {TT} at (0,0) size 40x16
+            LayoutText {#text} at (158,46) size 40x16
+              text run at (158,46) width 40: "three"
+        LayoutText {#text} at (198,43) size 545x19
+          text run at (198,43) width 545: ", which should have no left border width or visible border because no border style was set."
+      LayoutTable {TABLE} at (0,197) size 784x124 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x122
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x94
+            LayoutTableCell {TD} at (0,61) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x94 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x86 [border: (3px solid #000000) (25px solid #000000)]
+                LayoutText {#text} at (25,3) size 163x19
+                  text run at (25,3) width 163: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 24x16
+                  LayoutText {#text} at (188,6) size 24x16
+                    text run at (188,6) width 24: "one"
+                LayoutText {#text} at (212,3) size 154x19
+                  text run at (212,3) width 8: ". "
+                  text run at (220,3) width 146: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 162x25 [border: (3px solid #000000) (1px solid #000000)]
+                  LayoutText {#text} at (366,3) size 134x19
+                    text run at (366,3) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (499,6) size 25x16
+                      text run at (499,6) width 25: "two"
+                LayoutText {#text} at (526,3) size 706x39
+                  text run at (526,3) width 205: ", which should result in a thin solid"
+                  text run at (25,23) width 174: "border on the left side of the "
+                LayoutInline {STRONG} at (0,0) size 27x19
+                  LayoutText {#text} at (199,23) size 27x19
+                    text run at (199,23) width 27: "first"
+                LayoutText {#text} at (226,23) size 730x39
+                  text run at (226,23) width 481: " box in the inline element (and the UA's default border on the other three sides). "
+                  text run at (707,23) width 48: "There is"
+                  text run at (25,43) width 46: "also an "
+                LayoutInline {SPAN} at (0,0) size 173x19
+                  LayoutText {#text} at (71,43) size 133x19
+                    text run at (71,43) width 133: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 40x16
+                    LayoutText {#text} at (204,46) size 40x16
+                      text run at (204,46) width 40: "three"
+                LayoutText {#text} at (244,43) size 711x39
+                  text run at (244,43) width 492: ", which should have no left border width or visible border because no border style"
+                  text run at (25,63) width 49: "was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_right-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_right-expected.txt
new file mode 100644
index 0000000..772d0de
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_right-expected.txt
@@ -0,0 +1,62 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 764x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 320x64
+          text run at (0,0) width 184: "P {margin-right: 20px;}"
+          text run at (184,0) width 0: " "
+          text run at (0,16) width 320: ".one {border-right: purple double 10px;}"
+          text run at (320,16) width 0: " "
+          text run at (0,32) width 312: ".two {border-right: purple thin solid;}"
+          text run at (312,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 764x60 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 731x19
+          text run at (0,0) width 731: "This paragraph has a background color of silver and a 20-pixel right margin, and it contains inline elements with classes of "
+        LayoutInline {SPAN} at (0,0) size 760x39 [border: none (10px double #800080) none]
+          LayoutText {#text} at (730,0) size 760x39
+            text run at (730,0) width 30: "class"
+            text run at (0,20) width 22: "one"
+        LayoutText {#text} at (32,20) size 379x19
+          text run at (32,20) width 379: ", which should have a 10-pixel purple double right border; and "
+        LayoutInline {SPAN} at (0,0) size 57x19 [border: none (1px solid #800080) none]
+          LayoutText {#text} at (411,20) size 56x19
+            text run at (411,20) width 56: "class two"
+        LayoutText {#text} at (468,20) size 726x39
+          text run at (468,20) width 258: ", which should have a thin solid purple right"
+          text run at (0,40) width 49: "border. "
+          text run at (48,40) width 403: "The line-height of the parent element should not change on any line."
+      LayoutTable {TABLE} at (0,207) size 784x98 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x96
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x68
+            LayoutTableCell {TD} at (0,48) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x68 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 742x60 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 727x19
+                  text run at (0,0) width 727: "This paragraph has a background color of silver and a 20-pixel right margin, and it contains inline elements with classes of"
+                LayoutInline {SPAN} at (0,0) size 65x19 [border: none (10px double #800080) none]
+                  LayoutText {#text} at (0,20) size 55x19
+                    text run at (0,20) width 55: "class one"
+                LayoutText {#text} at (65,20) size 379x19
+                  text run at (65,20) width 379: ", which should have a 10-pixel purple double right border; and "
+                LayoutInline {SPAN} at (0,0) size 57x19 [border: none (1px solid #800080) none]
+                  LayoutText {#text} at (444,20) size 56x19
+                    text run at (444,20) width 56: "class two"
+                LayoutText {#text} at (501,20) size 729x39
+                  text run at (501,20) width 228: ", which should have a thin solid purple"
+                  text run at (0,40) width 79: "right border. "
+                  text run at (78,40) width 403: "The line-height of the parent element should not change on any line."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_right_inline-expected.txt
new file mode 100644
index 0000000..e66e7f3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_right_inline-expected.txt
@@ -0,0 +1,168 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1143
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1143 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1143
+    LayoutBlockFlow {BODY} at (8,8) size 769x1127 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 749x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x112
+        LayoutText {#text} at (0,0) size 352x112
+          text run at (0,0) width 184: "P {margin-right: 20px;}"
+          text run at (184,0) width 0: " "
+          text run at (0,16) width 320: ".one {border-right: purple double 10px;}"
+          text run at (320,16) width 0: " "
+          text run at (0,32) width 312: ".two {border-right: purple thin solid;}"
+          text run at (312,32) width 0: " "
+          text run at (0,48) width 344: ".threea {border-right: black medium solid;}"
+          text run at (344,48) width 0: " "
+          text run at (0,64) width 352: ".threeb {border-right: purple medium solid;}"
+          text run at (352,64) width 0: " "
+          text run at (0,80) width 336: ".threec {border-right: blue medium solid;}"
+          text run at (336,80) width 0: " "
+          text run at (0,96) width 280: "TD {border-right: green 2px solid;}"
+          text run at (280,96) width 0: " "
+      LayoutBlockFlow {P} at (0,179) size 749x40
+        LayoutText {#text} at (0,0) size 728x39
+          text run at (0,0) width 612: "Note that all table cells on this page should have a two-pixel solid green border along their right sides. "
+          text run at (612,0) width 116: "This border applies"
+          text run at (0,20) width 299: "only to the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (0,235) size 749x20 [border: none (10px double #800080) none]
+        LayoutText {#text} at (0,0) size 404x19
+          text run at (0,0) width 404: "This paragraph should have a purple, double, 10-pixel right border."
+      LayoutBlockFlow {P} at (0,271) size 749x20 [border: none (1px solid #800080) none]
+        LayoutText {#text} at (0,0) size 322x19
+          text run at (0,0) width 322: "This paragraph should have a thin purple right border."
+      LayoutTable {TABLE} at (0,307) size 769x115 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x113
+          LayoutTableRow {TR} at (0,5) size 767x44
+            LayoutTableCell {TD} at (5,5) size 757x44 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (2,2) size 751x39
+                text run at (2,2) width 414: "Every cell in this table should have a 2-pixel solid green right border. "
+                text run at (415,2) width 338: "This is also true of the table-testing section in the second"
+                text run at (2,22) width 121: "half of the test page."
+          LayoutTableRow {TR} at (0,54) size 767x54
+            LayoutTableCell {TD} at (5,69) size 191x24 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (2,2) size 50x19
+                text run at (2,2) width 50: "Cell one"
+            LayoutTableCell {TD} at (201,54) size 561x54 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (2,2) size 556x20
+                LayoutText {#text} at (0,0) size 51x19
+                  text run at (0,0) width 51: "Cell two"
+              LayoutTable {TABLE} at (2,22) size 156x30 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 154x28
+                  LayoutTableRow {TR} at (0,2) size 154x24
+                    LayoutTableCell {TD} at (2,2) size 150x24 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,2) size 145x19
+                        text run at (2,2) width 145: "Nested single-cell table!"
+      LayoutBlockFlow {UL} at (0,438) size 769x180
+        LayoutListItem {LI} at (40,0) size 729x80 [border: none (3px solid #000000) none]
+          LayoutBlockFlow (anonymous) at (0,0) size 726x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 110x19
+              text run at (0,0) width 110: "This is a list item..."
+          LayoutBlockFlow {UL} at (0,20) size 726x60
+            LayoutListItem {LI} at (40,0) size 686x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 70x19
+                text run at (0,0) width 70: "...and this..."
+            LayoutListItem {LI} at (40,20) size 686x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 111x19
+                text run at (0,0) width 111: "...is a second list..."
+            LayoutListItem {LI} at (40,40) size 686x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 165x19
+                text run at (0,0) width 165: "...nested within the list item."
+        LayoutListItem {LI} at (40,80) size 729x20 [border: none (3px solid #800080) none]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 149x19
+            text run at (0,0) width 149: "This is a second list item."
+        LayoutListItem {LI} at (40,100) size 729x80 [border: none (3px solid #0000FF) none]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 715x79
+            text run at (0,0) width 666: "Each list item in this 'parent' list should have a medium-width border along its right side, in each of three colors. "
+            text run at (666,0) width 49: "The first"
+            text run at (0,20) width 696: "item's border should travel the entire height the nested list (to end near the baseline of the line \"...nested within the list"
+            text run at (0,40) width 428: "item.\"), even though the nested list does not have any border styles set. "
+            text run at (428,40) width 280: "The borders should line up together at the right"
+            text run at (0,60) width 473: "edge of the document's body, as each list element has a default width of 100%."
+      LayoutTable {TABLE} at (0,634) size 769x493 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x491
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x463
+            LayoutTableCell {TD} at (0,245) size 13x28 [bgcolor=#C0C0C0] [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (13,28) size 754x463 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 725x40
+                LayoutText {#text} at (0,0) size 682x39
+                  text run at (0,0) width 612: "Note that all table cells on this page should have a two-pixel solid green border along their right sides. "
+                  text run at (612,0) width 70: "This border"
+                  text run at (0,20) width 345: "applies only to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (4,60) size 725x20 [border: none (10px double #800080) none]
+                LayoutText {#text} at (0,0) size 404x19
+                  text run at (0,0) width 404: "This paragraph should have a purple, double, 10-pixel right border."
+              LayoutBlockFlow {P} at (4,96) size 725x20 [border: none (1px solid #800080) none]
+                LayoutText {#text} at (0,0) size 322x19
+                  text run at (0,0) width 322: "This paragraph should have a thin purple right border."
+              LayoutTable {TABLE} at (4,132) size 745x115 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 743x113
+                  LayoutTableRow {TR} at (0,5) size 743x44
+                    LayoutTableCell {TD} at (5,5) size 733x44 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (2,2) size 704x39
+                        text run at (2,2) width 414: "Every cell in this table should have a 2-pixel solid green right border. "
+                        text run at (415,2) width 291: "This is also true of the table-testing section in the"
+                        text run at (2,22) width 168: "second half of the test page."
+                  LayoutTableRow {TR} at (0,54) size 743x54
+                    LayoutTableCell {TD} at (5,69) size 185x24 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,2) size 50x19
+                        text run at (2,2) width 50: "Cell one"
+                    LayoutTableCell {TD} at (195,54) size 543x54 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (2,2) size 538x20
+                        LayoutText {#text} at (0,0) size 51x19
+                          text run at (0,0) width 51: "Cell two"
+                      LayoutTable {TABLE} at (2,22) size 156x30 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 154x28
+                          LayoutTableRow {TR} at (0,2) size 154x24
+                            LayoutTableCell {TD} at (2,2) size 150x24 [border: (1px inset #808080) (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (2,2) size 145x19
+                                text run at (2,2) width 145: "Nested single-cell table!"
+              LayoutBlockFlow {UL} at (4,263) size 745x180
+                LayoutListItem {LI} at (40,0) size 705x80 [border: none (3px solid #000000) none]
+                  LayoutBlockFlow (anonymous) at (0,0) size 702x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 110x19
+                      text run at (0,0) width 110: "This is a list item..."
+                  LayoutBlockFlow {UL} at (0,20) size 702x60
+                    LayoutListItem {LI} at (40,0) size 662x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 70x19
+                        text run at (0,0) width 70: "...and this..."
+                    LayoutListItem {LI} at (40,20) size 662x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 111x19
+                        text run at (0,0) width 111: "...is a second list..."
+                    LayoutListItem {LI} at (40,40) size 662x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 165x19
+                        text run at (0,0) width 165: "...nested within the list item."
+                LayoutListItem {LI} at (40,80) size 705x20 [border: none (3px solid #800080) none]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 149x19
+                    text run at (0,0) width 149: "This is a second list item."
+                LayoutListItem {LI} at (40,100) size 705x80 [border: none (3px solid #0000FF) none]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 702x79
+                    text run at (0,0) width 666: "Each list item in this 'parent' list should have a medium-width border along its right side, in each of three colors. "
+                    text run at (666,0) width 23: "The"
+                    text run at (0,20) width 702: "first item's border should travel the entire height the nested list (to end near the baseline of the line \"...nested within the"
+                    text run at (0,40) width 448: "list item.\"), even though the nested list does not have any border styles set. "
+                    text run at (448,40) width 250: "The borders should line up together at the"
+                    text run at (0,60) width 503: "right edge of the document's body, as each list element has a default width of 100%."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_right_width-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_right_width-expected.txt
new file mode 100644
index 0000000..975e79f4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_right_width-expected.txt
@@ -0,0 +1,100 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 793
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x793 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x793
+    LayoutBlockFlow {BODY} at (8,8) size 769x777 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 456x96
+          text run at (0,0) width 448: ".zero {background-color: silver; border-right-width: 0;}"
+          text run at (448,0) width 0: " "
+          text run at (0,16) width 424: ".one {border-right-width: 25px; border-style: solid;}"
+          text run at (424,16) width 0: " "
+          text run at (0,32) width 432: ".two {border-right-width: thick; border-style: solid;}"
+          text run at (432,32) width 0: " "
+          text run at (0,48) width 456: ".three {border-right-width: medium; border-style: solid;}"
+          text run at (456,48) width 0: " "
+          text run at (0,64) width 432: ".four {border-right-width: thin; border-style: solid;}"
+          text run at (432,64) width 0: " "
+          text run at (0,80) width 272: ".five {border-right-width: 100px;}"
+          text run at (272,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20
+        LayoutText {#text} at (0,0) size 145x19
+          text run at (0,0) width 145: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (145,3) size 96x16
+            text run at (145,3) width 96: "border-style"
+        LayoutText {#text} at (241,0) size 87x19
+          text run at (241,0) width 87: " is supported.)"
+      LayoutBlockFlow {P} at (0,199) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,235) size 769x46 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 729x39
+          text run at (3,3) width 729: "This element should have a right border width of 25 pixels, which will be more obvious if the element is more than one line"
+          text run at (3,23) width 29: "long."
+      LayoutBlockFlow {P} at (0,297) size 769x26 [border: (3px solid #000000) (5px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 721x19
+          text run at (3,3) width 721: "This element should have a thick right border width, which will be more obvious if the element is more than one line long."
+      LayoutBlockFlow {P} at (0,339) size 769x26 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 739x19
+          text run at (3,3) width 739: "This element should have a medium right border width, which will be more obvious if the element is more than one line long."
+      LayoutBlockFlow {P} at (0,381) size 769x26 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 713x19
+          text run at (3,3) width 713: "This element should have a thin right border width, which will be more obvious if the element is more than one line long."
+      LayoutBlockFlow {P} at (0,423) size 769x20
+        LayoutText {#text} at (0,0) size 493x19
+          text run at (0,0) width 493: "This element should have no border and no extra \"padding\" on its right side, as no "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (493,3) size 96x16
+            text run at (493,3) width 96: "border-style"
+        LayoutText {#text} at (589,0) size 53x19
+          text run at (589,0) width 53: " was set."
+      LayoutTable {TABLE} at (0,459) size 769x318 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x316
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x288
+            LayoutTableCell {TD} at (0,158) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x288 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 145x19
+                  text run at (0,0) width 145: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (145,3) size 96x16
+                    text run at (145,3) width 96: "border-style"
+                LayoutText {#text} at (241,0) size 87x19
+                  text run at (241,0) width 87: " is supported.)"
+              LayoutBlockFlow {P} at (4,40) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,76) size 747x46 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 705x39
+                  text run at (3,3) width 705: "This element should have a right border width of 25 pixels, which will be more obvious if the element is more than one"
+                  text run at (3,23) width 53: "line long."
+              LayoutBlockFlow {P} at (4,138) size 747x26 [border: (3px solid #000000) (5px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 721x19
+                  text run at (3,3) width 721: "This element should have a thick right border width, which will be more obvious if the element is more than one line long."
+              LayoutBlockFlow {P} at (4,180) size 747x26 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 739x19
+                  text run at (3,3) width 739: "This element should have a medium right border width, which will be more obvious if the element is more than one line long."
+              LayoutBlockFlow {P} at (4,222) size 747x26 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 713x19
+                  text run at (3,3) width 713: "This element should have a thin right border width, which will be more obvious if the element is more than one line long."
+              LayoutBlockFlow {P} at (4,264) size 747x20
+                LayoutText {#text} at (0,0) size 493x19
+                  text run at (0,0) width 493: "This element should have no border and no extra \"padding\" on its right side, as no "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (493,3) size 96x16
+                    text run at (493,3) width 96: "border-style"
+                LayoutText {#text} at (589,0) size 53x19
+                  text run at (589,0) width 53: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_right_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_right_width_inline-expected.txt
new file mode 100644
index 0000000..400c80bf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_right_width_inline-expected.txt
@@ -0,0 +1,96 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 424x48
+          text run at (0,0) width 424: ".one {border-right-width: 25px; border-style: solid;}"
+          text run at (424,0) width 0: " "
+          text run at (0,16) width 424: ".two {border-right-width: thin; border-style: solid;}"
+          text run at (424,16) width 0: " "
+          text run at (0,32) width 272: ".three {border-right-width: 25px;}"
+          text run at (272,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x66 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 163x19
+          text run at (3,3) width 163: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 24x16
+          LayoutText {#text} at (166,6) size 24x16
+            text run at (166,6) width 24: "one"
+        LayoutText {#text} at (190,3) size 154x19
+          text run at (190,3) width 8: ". "
+          text run at (198,3) width 146: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 162x25 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+          LayoutText {#text} at (346,3) size 134x19
+            text run at (346,3) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (479,6) size 25x16
+              text run at (479,6) width 25: "two"
+        LayoutText {#text} at (504,3) size 751x39
+          text run at (504,3) width 250: ", which should result in a thin solid border"
+          text run at (3,23) width 137: "on the right side of the "
+        LayoutInline {STRONG} at (0,0) size 24x19
+          LayoutText {#text} at (140,23) size 24x19
+            text run at (140,23) width 24: "last"
+        LayoutText {#text} at (164,23) size 577x19
+          text run at (164,23) width 483: " box of the inline element (and the UA's default border on the other three sides). "
+          text run at (647,23) width 94: "There is also an"
+        LayoutInline {SPAN} at (0,0) size 173x19
+          LayoutText {#text} at (3,43) size 133x19
+            text run at (3,43) width 133: "inline element of class "
+          LayoutInline {TT} at (0,0) size 40x16
+            LayoutText {#text} at (136,46) size 40x16
+              text run at (136,46) width 40: "three"
+        LayoutText {#text} at (176,43) size 553x19
+          text run at (176,43) width 553: ", which should have no right border width or visible border because no border style was set."
+      LayoutTable {TABLE} at (0,197) size 784x124 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x122
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x94
+            LayoutTableCell {TD} at (0,61) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x94 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x86 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 163x19
+                  text run at (3,3) width 163: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 24x16
+                  LayoutText {#text} at (166,6) size 24x16
+                    text run at (166,6) width 24: "one"
+                LayoutText {#text} at (190,3) size 154x19
+                  text run at (190,3) width 8: ". "
+                  text run at (198,3) width 146: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 162x25 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+                  LayoutText {#text} at (346,3) size 134x19
+                    text run at (346,3) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (479,6) size 25x16
+                      text run at (479,6) width 25: "two"
+                LayoutText {#text} at (504,3) size 706x39
+                  text run at (504,3) width 205: ", which should result in a thin solid"
+                  text run at (3,23) width 182: "border on the right side of the "
+                LayoutInline {STRONG} at (0,0) size 24x19
+                  LayoutText {#text} at (185,23) size 24x19
+                    text run at (185,23) width 24: "last"
+                LayoutText {#text} at (209,23) size 724x39
+                  text run at (209,23) width 483: " box of the inline element (and the UA's default border on the other three sides). "
+                  text run at (692,23) width 35: "There"
+                  text run at (3,43) width 59: "is also an "
+                LayoutInline {SPAN} at (0,0) size 173x19
+                  LayoutText {#text} at (62,43) size 133x19
+                    text run at (62,43) width 133: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 40x16
+                    LayoutText {#text} at (195,46) size 40x16
+                      text run at (195,46) width 40: "three"
+                LayoutText {#text} at (235,43) size 732x39
+                  text run at (235,43) width 500: ", which should have no right border width or visible border because no border style"
+                  text run at (3,63) width 49: "was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_style-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_style-expected.txt
new file mode 100644
index 0000000..ee8fe41
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_style-expected.txt
@@ -0,0 +1,122 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1369
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1369 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1369
+    LayoutBlockFlow {BODY} at (8,8) size 769x1353 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x192
+        LayoutText {#text} at (0,0) size 632x192
+          text run at (0,0) width 560: ".one {border-style: dotted; border-color: black; border-width: thick;}"
+          text run at (560,0) width 0: " "
+          text run at (0,16) width 560: ".two {border-style: dashed; border-color: black; border-width: thick;}"
+          text run at (560,16) width 0: " "
+          text run at (0,32) width 568: ".three {border-style: solid; border-color: black; border-width: thick;}"
+          text run at (568,32) width 0: " "
+          text run at (0,48) width 568: ".four {border-style: double; border-color: black; border-width: thick;}"
+          text run at (568,48) width 0: " "
+          text run at (0,64) width 568: ".five {border-style: groove; border-color: olive; border-width: thick;}"
+          text run at (568,64) width 0: " "
+          text run at (0,80) width 552: ".six {border-style: ridge; border-color: olive; border-width: thick;}"
+          text run at (552,80) width 0: " "
+          text run at (0,96) width 568: ".seven {border-style: inset; border-color: olive; border-width: thick;}"
+          text run at (568,96) width 0: " "
+          text run at (0,112) width 576: ".eight {border-style: outset; border-color: olive; border-width: thick;}"
+          text run at (576,112) width 0: " "
+          text run at (0,128) width 632: ".nine {border-style: double groove; border-color: purple; border-width: thick;}"
+          text run at (632,128) width 0: " "
+          text run at (0,144) width 368: ".ten {border-style: double groove ridge inset;"
+          text run at (368,144) width 0: " "
+          text run at (0,160) width 368: "   border-color: purple; border-width: thick;}"
+          text run at (368,160) width 0: " "
+          text run at (0,176) width 552: ".eleven {border-style: none; border-color: red; border-width: thick;}"
+          text run at (552,176) width 0: " "
+      LayoutBlockFlow {P} at (0,259) size 769x30 [border: (5px dotted #000000)]
+        LayoutText {#text} at (5,5) size 452x19
+          text run at (5,5) width 452: "This paragraph should have a thick black dotted border all the way around."
+      LayoutBlockFlow {P} at (0,305) size 769x30 [border: (5px dashed #000000)]
+        LayoutText {#text} at (5,5) size 456x19
+          text run at (5,5) width 456: "This paragraph should have a thick black dashed border all the way around."
+      LayoutBlockFlow {P} at (0,351) size 769x30 [border: (5px solid #000000)]
+        LayoutText {#text} at (5,5) size 441x19
+          text run at (5,5) width 441: "This paragraph should have a thick black solid border all the way around."
+      LayoutBlockFlow {P} at (0,397) size 769x30 [border: (5px double #000000)]
+        LayoutText {#text} at (5,5) size 454x19
+          text run at (5,5) width 454: "This paragraph should have a thick black double border all the way around."
+      LayoutBlockFlow {P} at (0,443) size 769x30 [border: (5px groove #808000)]
+        LayoutText {#text} at (5,5) size 450x19
+          text run at (5,5) width 450: "This paragraph should have a thick olive groove border all the way around."
+      LayoutBlockFlow {P} at (0,489) size 769x30 [border: (5px ridge #808000)]
+        LayoutText {#text} at (5,5) size 438x19
+          text run at (5,5) width 438: "This paragraph should have a thick olive ridge border all the way around."
+      LayoutBlockFlow {P} at (0,535) size 769x30 [border: (5px inset #808000)]
+        LayoutText {#text} at (5,5) size 435x19
+          text run at (5,5) width 435: "This paragraph should have a thick olive inset border all the way around."
+      LayoutBlockFlow {P} at (0,581) size 769x30 [border: (5px outset #808000)]
+        LayoutText {#text} at (5,5) size 444x19
+          text run at (5,5) width 444: "This paragraph should have a thick olive outset border all the way around."
+      LayoutBlockFlow {P} at (0,627) size 769x50 [border: (5px double #800080) (5px groove #800080) (5px double #800080) (5px groove #800080)]
+        LayoutText {#text} at (5,5) size 748x39
+          text run at (5,5) width 595: "This paragraph should have thick double top and bottom borders, and thick grooved side borders. "
+          text run at (600,5) width 153: "The color of all four sides"
+          text run at (5,25) width 163: "should be based on purple."
+      LayoutBlockFlow {P} at (0,693) size 769x50 [border: (5px double #800080) (5px groove #800080) (5px ridge #800080) (5px inset #800080)]
+        LayoutText {#text} at (5,5) size 747x39
+          text run at (5,5) width 673: "This paragraph should have, in clockwise order from the top, a double, grooved, ridged, and inset thick border. "
+          text run at (677,5) width 75: "The color of"
+          text run at (5,25) width 242: "all four sides should be based on purple."
+      LayoutBlockFlow {P} at (0,759) size 769x20
+        LayoutText {#text} at (0,0) size 265x19
+          text run at (0,0) width 265: "This paragraph should have no border at all."
+      LayoutTable {TABLE} at (0,795) size 769x558 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x556
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x528
+            LayoutTableCell {TD} at (0,278) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x528 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x30 [border: (5px dotted #000000)]
+                LayoutText {#text} at (5,5) size 452x19
+                  text run at (5,5) width 452: "This paragraph should have a thick black dotted border all the way around."
+              LayoutBlockFlow {P} at (4,50) size 747x30 [border: (5px dashed #000000)]
+                LayoutText {#text} at (5,5) size 456x19
+                  text run at (5,5) width 456: "This paragraph should have a thick black dashed border all the way around."
+              LayoutBlockFlow {P} at (4,96) size 747x30 [border: (5px solid #000000)]
+                LayoutText {#text} at (5,5) size 441x19
+                  text run at (5,5) width 441: "This paragraph should have a thick black solid border all the way around."
+              LayoutBlockFlow {P} at (4,142) size 747x30 [border: (5px double #000000)]
+                LayoutText {#text} at (5,5) size 454x19
+                  text run at (5,5) width 454: "This paragraph should have a thick black double border all the way around."
+              LayoutBlockFlow {P} at (4,188) size 747x30 [border: (5px groove #808000)]
+                LayoutText {#text} at (5,5) size 450x19
+                  text run at (5,5) width 450: "This paragraph should have a thick olive groove border all the way around."
+              LayoutBlockFlow {P} at (4,234) size 747x30 [border: (5px ridge #808000)]
+                LayoutText {#text} at (5,5) size 438x19
+                  text run at (5,5) width 438: "This paragraph should have a thick olive ridge border all the way around."
+              LayoutBlockFlow {P} at (4,280) size 747x30 [border: (5px inset #808000)]
+                LayoutText {#text} at (5,5) size 435x19
+                  text run at (5,5) width 435: "This paragraph should have a thick olive inset border all the way around."
+              LayoutBlockFlow {P} at (4,326) size 747x30 [border: (5px outset #808000)]
+                LayoutText {#text} at (5,5) size 444x19
+                  text run at (5,5) width 444: "This paragraph should have a thick olive outset border all the way around."
+              LayoutBlockFlow {P} at (4,372) size 747x50 [border: (5px double #800080) (5px groove #800080) (5px double #800080) (5px groove #800080)]
+                LayoutText {#text} at (5,5) size 714x39
+                  text run at (5,5) width 595: "This paragraph should have thick double top and bottom borders, and thick grooved side borders. "
+                  text run at (600,5) width 119: "The color of all four"
+                  text run at (5,25) width 197: "sides should be based on purple."
+              LayoutBlockFlow {P} at (4,438) size 747x50 [border: (5px double #800080) (5px groove #800080) (5px ridge #800080) (5px inset #800080)]
+                LayoutText {#text} at (5,5) size 731x39
+                  text run at (5,5) width 673: "This paragraph should have, in clockwise order from the top, a double, grooved, ridged, and inset thick border. "
+                  text run at (677,5) width 59: "The color"
+                  text run at (5,25) width 258: "of all four sides should be based on purple."
+              LayoutBlockFlow {P} at (4,504) size 747x20
+                LayoutText {#text} at (0,0) size 265x19
+                  text run at (0,0) width 265: "This paragraph should have no border at all."
+layer at (8,249) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,241) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_style_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_style_inline-expected.txt
new file mode 100644
index 0000000..1edbe6a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_style_inline-expected.txt
@@ -0,0 +1,72 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 568x48
+          text run at (0,0) width 560: ".one {border-style: dashed; border-color: black; border-width: thick;}"
+          text run at (560,0) width 0: " "
+          text run at (0,16) width 544: ".two {border-style: groove; border-color: red; border-width: thick;}"
+          text run at (544,16) width 0: " "
+          text run at (0,32) width 568: ".three {border-style: none; border-color: purple; border-width: thick;}"
+          text run at (568,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 627x19
+          text run at (0,0) width 627: "This is an unstyled element, save for the background color, and it contains inline elements with classes of "
+        LayoutInline {SPAN} at (0,0) size 66x29 [border: (5px dashed #000000)]
+          LayoutText {#text} at (631,0) size 56x19
+            text run at (631,0) width 56: "class one"
+        LayoutText {#text} at (691,0) size 759x39
+          text run at (691,0) width 68: ", which will"
+          text run at (0,20) width 227: "result in a dashed thick black border; "
+        LayoutInline {SPAN} at (0,0) size 66x29 [border: (5px groove #FF0000)]
+          LayoutText {#text} at (232,20) size 56x19
+            text run at (232,20) width 56: "class two"
+        LayoutText {#text} at (293,20) size 355x19
+          text run at (293,20) width 355: ", which should result in a grooved thick purple border, and "
+        LayoutInline {SPAN} at (0,0) size 64x19
+          LayoutText {#text} at (647,20) size 64x19
+            text run at (647,20) width 64: "class three"
+        LayoutText {#text} at (710,20) size 754x39
+          text run at (710,20) width 44: ", which"
+          text run at (0,40) width 193: "should result in no border at all. "
+          text run at (193,40) width 406: "The line-height of the parent element should not change, on any line."
+      LayoutTable {TABLE} at (0,191) size 784x98 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x96
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x68
+            LayoutTableCell {TD} at (0,48) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x68 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 627x19
+                  text run at (0,0) width 627: "This is an unstyled element, save for the background color, and it contains inline elements with classes of "
+                LayoutInline {SPAN} at (0,0) size 66x29 [border: (5px dashed #000000)]
+                  LayoutText {#text} at (631,0) size 56x19
+                    text run at (631,0) width 56: "class one"
+                LayoutText {#text} at (691,0) size 759x39
+                  text run at (691,0) width 68: ", which will"
+                  text run at (0,20) width 227: "result in a dashed thick black border; "
+                LayoutInline {SPAN} at (0,0) size 66x29 [border: (5px groove #FF0000)]
+                  LayoutText {#text} at (232,20) size 56x19
+                    text run at (232,20) width 56: "class two"
+                LayoutText {#text} at (293,20) size 355x19
+                  text run at (293,20) width 355: ", which should result in a grooved thick purple border, and "
+                LayoutInline {SPAN} at (0,0) size 64x19
+                  LayoutText {#text} at (647,20) size 64x19
+                    text run at (647,20) width 64: "class three"
+                LayoutText {#text} at (710,20) size 754x39
+                  text run at (710,20) width 44: ", which"
+                  text run at (0,40) width 193: "should result in no border at all. "
+                  text run at (193,40) width 406: "The line-height of the parent element should not change, on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_top-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_top-expected.txt
new file mode 100644
index 0000000..14b69b4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_top-expected.txt
@@ -0,0 +1,152 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1023
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1023 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1023
+    LayoutBlockFlow {BODY} at (8,8) size 769x1007 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 320x64
+          text run at (0,0) width 304: ".one {border-top: purple double 10px;}"
+          text run at (304,0) width 0: " "
+          text run at (0,16) width 296: ".two {border-top: purple thin solid;}"
+          text run at (296,16) width 0: " "
+          text run at (0,32) width 320: ".three {border-top: black medium solid;}"
+          text run at (320,32) width 0: " "
+          text run at (0,48) width 264: "TD {border-top: green 2px solid;}"
+          text run at (264,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 769x40
+        LayoutText {#text} at (0,0) size 767x39
+          text run at (0,0) width 606: "Note that all table cells on this page should have a two-pixel solid green border along their top sides. "
+          text run at (606,0) width 161: "This border applies only to"
+          text run at (0,20) width 254: "the cells, not the rows which contain them."
+      LayoutBlockFlow {P} at (0,187) size 769x30 [border: (10px double #800080) none]
+        LayoutText {#text} at (0,10) size 398x19
+          text run at (0,10) width 398: "This paragraph should have a purple, double, 10-pixel top border."
+      LayoutBlockFlow {P} at (0,233) size 769x21 [border: (1px solid #800080) none]
+        LayoutText {#text} at (0,1) size 316x19
+          text run at (0,1) width 316: "This paragraph should have a thin purple top border."
+      LayoutTable {TABLE} at (0,270) size 769x118 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x116
+          LayoutTableRow {TR} at (0,5) size 767x45
+            LayoutTableCell {TD} at (5,5) size 757x45 [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutText {#text} at (2,3) size 745x39
+                text run at (2,3) width 408: "Every cell in this table should have a 2-pixel solid green top border. "
+                text run at (409,3) width 338: "This is also true of the table-testing section in the second"
+                text run at (2,23) width 121: "half of the test page."
+          LayoutTableRow {TR} at (0,55) size 767x56
+            LayoutTableCell {TD} at (5,70) size 190x25 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (2,3) size 50x19
+                text run at (2,3) width 50: "Cell one"
+            LayoutTableCell {TD} at (200,55) size 562x56 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (2,3) size 558x20
+                LayoutText {#text} at (0,0) size 51x19
+                  text run at (0,0) width 51: "Cell two"
+              LayoutTable {TABLE} at (2,23) size 155x31 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 153x29
+                  LayoutTableRow {TR} at (0,2) size 153x25
+                    LayoutTableCell {TD} at (2,2) size 149x25 [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,3) size 145x19
+                        text run at (2,3) width 145: "Nested single-cell table!"
+      LayoutBlockFlow {UL} at (0,404) size 769x129
+        LayoutListItem {LI} at (40,0) size 729x83 [border: (3px solid #000000) none]
+          LayoutBlockFlow (anonymous) at (0,3) size 729x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 110x19
+              text run at (0,0) width 110: "This is a list item..."
+          LayoutBlockFlow {UL} at (0,23) size 729x60
+            LayoutListItem {LI} at (40,0) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 70x19
+                text run at (0,0) width 70: "...and this..."
+            LayoutListItem {LI} at (40,20) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 111x19
+                text run at (0,0) width 111: "...is a second list..."
+            LayoutListItem {LI} at (40,40) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 165x19
+                text run at (0,0) width 165: "...nested within the list item."
+        LayoutListItem {LI} at (40,83) size 729x23 [border: (3px solid #000000) none]
+          LayoutListMarker (anonymous) at (-18,3) size 7x19: bullet
+          LayoutText {#text} at (0,3) size 149x19
+            text run at (0,3) width 149: "This is a second list item."
+        LayoutListItem {LI} at (40,106) size 729x23 [border: (3px solid #000000) none]
+          LayoutListMarker (anonymous) at (-18,3) size 7x19: bullet
+          LayoutText {#text} at (0,3) size 455x19
+            text run at (0,3) width 455: "Each list item in this list should have a medium-width black border at its top."
+      LayoutTable {TABLE} at (0,549) size 769x458 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x456
+          LayoutTableRow {TR} at (0,0) size 767x29
+            LayoutTableCell {TD} at (0,0) size 767x29 [bgcolor=#C0C0C0] [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,5) size 157x19
+                  text run at (4,5) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,29) size 767x427
+            LayoutTableCell {TD} at (0,228) size 12x29 [bgcolor=#C0C0C0] [border: (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,5) size 4x19
+                text run at (4,5) width 4: " "
+            LayoutTableCell {TD} at (12,29) size 755x427 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,5) size 747x40
+                LayoutText {#text} at (0,0) size 722x39
+                  text run at (0,0) width 606: "Note that all table cells on this page should have a two-pixel solid green border along their top sides. "
+                  text run at (606,0) width 116: "This border applies"
+                  text run at (0,20) width 299: "only to the cells, not the rows which contain them."
+              LayoutBlockFlow {P} at (4,61) size 747x30 [border: (10px double #800080) none]
+                LayoutText {#text} at (0,10) size 398x19
+                  text run at (0,10) width 398: "This paragraph should have a purple, double, 10-pixel top border."
+              LayoutBlockFlow {P} at (4,107) size 747x21 [border: (1px solid #800080) none]
+                LayoutText {#text} at (0,1) size 316x19
+                  text run at (0,1) width 316: "This paragraph should have a thin purple top border."
+              LayoutTable {TABLE} at (4,144) size 747x118 [border: (1px outset #808080)]
+                LayoutTableSection {TBODY} at (1,1) size 745x116
+                  LayoutTableRow {TR} at (0,5) size 745x45
+                    LayoutTableCell {TD} at (5,5) size 735x45 [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+                      LayoutText {#text} at (2,3) size 698x39
+                        text run at (2,3) width 408: "Every cell in this table should have a 2-pixel solid green top border. "
+                        text run at (409,3) width 291: "This is also true of the table-testing section in the"
+                        text run at (2,23) width 168: "second half of the test page."
+                  LayoutTableRow {TR} at (0,55) size 745x56
+                    LayoutTableCell {TD} at (5,70) size 184x25 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+                      LayoutText {#text} at (2,3) size 50x19
+                        text run at (2,3) width 50: "Cell one"
+                    LayoutTableCell {TD} at (194,55) size 546x56 [border: (2px solid #008000) (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+                      LayoutBlockFlow (anonymous) at (2,3) size 542x20
+                        LayoutText {#text} at (0,0) size 51x19
+                          text run at (0,0) width 51: "Cell two"
+                      LayoutTable {TABLE} at (2,23) size 155x31 [border: (1px outset #808080)]
+                        LayoutTableSection {TBODY} at (1,1) size 153x29
+                          LayoutTableRow {TR} at (0,2) size 153x25
+                            LayoutTableCell {TD} at (2,2) size 149x25 [border: (2px solid #008000) (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
+                              LayoutText {#text} at (2,3) size 145x19
+                                text run at (2,3) width 145: "Nested single-cell table!"
+              LayoutBlockFlow {UL} at (4,278) size 747x129
+                LayoutListItem {LI} at (40,0) size 707x83 [border: (3px solid #000000) none]
+                  LayoutBlockFlow (anonymous) at (0,3) size 707x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 110x19
+                      text run at (0,0) width 110: "This is a list item..."
+                  LayoutBlockFlow {UL} at (0,23) size 707x60
+                    LayoutListItem {LI} at (40,0) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 70x19
+                        text run at (0,0) width 70: "...and this..."
+                    LayoutListItem {LI} at (40,20) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 111x19
+                        text run at (0,0) width 111: "...is a second list..."
+                    LayoutListItem {LI} at (40,40) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 165x19
+                        text run at (0,0) width 165: "...nested within the list item."
+                LayoutListItem {LI} at (40,83) size 707x23 [border: (3px solid #000000) none]
+                  LayoutListMarker (anonymous) at (-18,3) size 7x19: bullet
+                  LayoutText {#text} at (0,3) size 149x19
+                    text run at (0,3) width 149: "This is a second list item."
+                LayoutListItem {LI} at (40,106) size 707x23 [border: (3px solid #000000) none]
+                  LayoutListMarker (anonymous) at (-18,3) size 7x19: bullet
+                  LayoutText {#text} at (0,3) size 455x19
+                    text run at (0,3) width 455: "Each list item in this list should have a medium-width black border at its top."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_top_inline-expected.txt
new file mode 100644
index 0000000..c4cf7b2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_top_inline-expected.txt
@@ -0,0 +1,61 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 304x48
+          text run at (0,0) width 304: ".one {border-top: purple double 10px;}"
+          text run at (304,0) width 0: " "
+          text run at (0,16) width 296: ".two {border-top: purple thin solid;}"
+          text run at (296,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x60 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 627x19
+          text run at (0,0) width 627: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
+        LayoutInline {SPAN} at (0,0) size 56x29 [border: (10px double #800080) none]
+          LayoutText {#text} at (626,0) size 56x19
+            text run at (626,0) width 56: "class one"
+        LayoutText {#text} at (681,0) size 768x39
+          text run at (681,0) width 87: ", which should"
+          text run at (0,20) width 283: "have a 10-pixel purple double top border; and "
+        LayoutInline {SPAN} at (0,0) size 56x20 [border: (1px solid #800080) none]
+          LayoutText {#text} at (283,20) size 56x19
+            text run at (283,20) width 56: "class two"
+        LayoutText {#text} at (339,20) size 770x39
+          text run at (339,20) width 305: ", which should have a thin solid purple top border. "
+          text run at (643,20) width 127: "The line-height of the"
+          text run at (0,40) width 272: "parent element should not change on any line."
+      LayoutTable {TABLE} at (0,191) size 784x98 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x96
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x68
+            LayoutTableCell {TD} at (0,48) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x68 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 627x19
+                  text run at (0,0) width 627: "This is an unstyled element, save for the background color, and containing inline elements with classes of "
+                LayoutInline {SPAN} at (0,0) size 56x29 [border: (10px double #800080) none]
+                  LayoutText {#text} at (626,0) size 56x19
+                    text run at (626,0) width 56: "class one"
+                LayoutText {#text} at (681,0) size 725x39
+                  text run at (681,0) width 44: ", which"
+                  text run at (0,20) width 326: "should have a 10-pixel purple double top border; and "
+                LayoutInline {SPAN} at (0,0) size 56x20 [border: (1px solid #800080) none]
+                  LayoutText {#text} at (326,20) size 56x19
+                    text run at (326,20) width 56: "class two"
+                LayoutText {#text} at (382,20) size 740x39
+                  text run at (382,20) width 305: ", which should have a thin solid purple top border. "
+                  text run at (686,20) width 54: "The line-"
+                  text run at (0,40) width 349: "height of the parent element should not change on any line."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_top_width-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_top_width-expected.txt
new file mode 100644
index 0000000..9ee9b57
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_top_width-expected.txt
@@ -0,0 +1,98 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 797
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x797 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x797
+    LayoutBlockFlow {BODY} at (8,8) size 769x781 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 440x96
+          text run at (0,0) width 432: ".zero {background-color: silver; border-top-width: 0;}"
+          text run at (432,0) width 0: " "
+          text run at (0,16) width 408: ".one {border-top-width: 25px; border-style: solid;}"
+          text run at (408,16) width 0: " "
+          text run at (0,32) width 416: ".two {border-top-width: thick; border-style: solid;}"
+          text run at (416,32) width 0: " "
+          text run at (0,48) width 440: ".three {border-top-width: medium; border-style: solid;}"
+          text run at (440,48) width 0: " "
+          text run at (0,64) width 416: ".four {border-top-width: thin; border-style: solid;}"
+          text run at (416,64) width 0: " "
+          text run at (0,80) width 248: ".five {border-top-width: 25px;}"
+          text run at (248,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20
+        LayoutText {#text} at (0,0) size 145x19
+          text run at (0,0) width 145: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (145,3) size 96x16
+            text run at (145,3) width 96: "border-style"
+        LayoutText {#text} at (241,0) size 87x19
+          text run at (241,0) width 87: " is supported.)"
+      LayoutBlockFlow {P} at (0,199) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,235) size 769x48 [border: (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,25) size 360x19
+          text run at (3,25) width 360: "This paragraph should have a top border width of 25 pixels."
+      LayoutBlockFlow {P} at (0,299) size 769x28 [border: (5px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,5) size 319x19
+          text run at (3,5) width 319: "This paragraph should have a thick top border width."
+      LayoutBlockFlow {P} at (0,343) size 769x26 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 337x19
+          text run at (3,3) width 337: "This paragraph should have a medium top border width."
+      LayoutBlockFlow {P} at (0,385) size 769x24 [border: (1px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,1) size 311x19
+          text run at (3,1) width 311: "This paragraph should have a thin top border width."
+      LayoutBlockFlow {P} at (0,425) size 769x20
+        LayoutText {#text} at (0,0) size 502x19
+          text run at (0,0) width 502: "This paragraph should have no border and no extra \"padding\" on its top side, as no "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (502,3) size 96x16
+            text run at (502,3) width 96: "border-style"
+        LayoutText {#text} at (598,0) size 53x19
+          text run at (598,0) width 53: " was set."
+      LayoutTable {TABLE} at (0,461) size 673x320 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 671x318
+          LayoutTableRow {TR} at (0,0) size 671x28
+            LayoutTableCell {TD} at (0,0) size 671x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 671x290
+            LayoutTableCell {TD} at (0,159) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 659x290 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 651x20
+                LayoutText {#text} at (0,0) size 145x19
+                  text run at (0,0) width 145: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (145,3) size 96x16
+                    text run at (145,3) width 96: "border-style"
+                LayoutText {#text} at (241,0) size 87x19
+                  text run at (241,0) width 87: " is supported.)"
+              LayoutBlockFlow {P} at (4,40) size 651x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,76) size 651x48 [border: (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,25) size 360x19
+                  text run at (3,25) width 360: "This paragraph should have a top border width of 25 pixels."
+              LayoutBlockFlow {P} at (4,140) size 651x28 [border: (5px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,5) size 319x19
+                  text run at (3,5) width 319: "This paragraph should have a thick top border width."
+              LayoutBlockFlow {P} at (4,184) size 651x26 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 337x19
+                  text run at (3,3) width 337: "This paragraph should have a medium top border width."
+              LayoutBlockFlow {P} at (4,226) size 651x24 [border: (1px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,1) size 311x19
+                  text run at (3,1) width 311: "This paragraph should have a thin top border width."
+              LayoutBlockFlow {P} at (4,266) size 651x20
+                LayoutText {#text} at (0,0) size 502x19
+                  text run at (0,0) width 502: "This paragraph should have no border and no extra \"padding\" on its top side, as no "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (502,3) size 96x16
+                    text run at (502,3) width 96: "border-style"
+                LayoutText {#text} at (598,0) size 53x19
+                  text run at (598,0) width 53: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_top_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_top_width_inline-expected.txt
new file mode 100644
index 0000000..beb54d6f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_top_width_inline-expected.txt
@@ -0,0 +1,86 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 408x48
+          text run at (0,0) width 408: ".one {border-top-width: 25px; border-style: solid;}"
+          text run at (408,0) width 0: " "
+          text run at (0,16) width 408: ".two {border-top-width: thin; border-style: solid;}"
+          text run at (408,16) width 0: " "
+          text run at (0,32) width 256: ".three {border-top-width: 25px;}"
+          text run at (256,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x88 [border: (25px solid #000000) (3px solid #000000)]
+        LayoutText {#text} at (3,25) size 163x19
+          text run at (3,25) width 163: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 24x16
+          LayoutText {#text} at (166,28) size 24x16
+            text run at (166,28) width 24: "one"
+        LayoutText {#text} at (190,25) size 154x19
+          text run at (190,25) width 8: ". "
+          text run at (198,25) width 146: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 164x23 [border: (1px solid #000000) (3px solid #000000)]
+          LayoutText {#text} at (346,25) size 134x19
+            text run at (346,25) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (479,28) size 25x16
+              text run at (479,28) width 25: "two"
+        LayoutText {#text} at (506,25) size 772x39
+          text run at (506,25) width 269: ", which should result in a thin solid border on"
+          text run at (3,45) width 599: "the top side of each box in the inline element (and the UA's default border on the other three sides). "
+          text run at (602,45) width 98: "There is also an "
+        LayoutInline {SPAN} at (0,0) size 777x39
+          LayoutText {#text} at (700,45) size 777x39
+            text run at (700,45) width 80: "inline element"
+            text run at (3,65) width 49: "of class "
+          LayoutInline {TT} at (0,0) size 40x16
+            LayoutText {#text} at (52,68) size 40x16
+              text run at (52,68) width 40: "three"
+        LayoutText {#text} at (92,65) size 547x19
+          text run at (92,65) width 547: ", which should have no top border width or visible border because no border style was set."
+      LayoutTable {TABLE} at (0,219) size 784x126 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x124
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x96
+            LayoutTableCell {TD} at (0,62) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x96 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x88 [border: (25px solid #000000) (3px solid #000000)]
+                LayoutText {#text} at (3,25) size 163x19
+                  text run at (3,25) width 163: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 24x16
+                  LayoutText {#text} at (166,28) size 24x16
+                    text run at (166,28) width 24: "one"
+                LayoutText {#text} at (190,25) size 154x19
+                  text run at (190,25) width 8: ". "
+                  text run at (198,25) width 146: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 164x23 [border: (1px solid #000000) (3px solid #000000)]
+                  LayoutText {#text} at (346,25) size 134x19
+                    text run at (346,25) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (479,28) size 25x16
+                      text run at (479,28) width 25: "two"
+                LayoutText {#text} at (506,25) size 753x39
+                  text run at (506,25) width 250: ", which should result in a thin solid border"
+                  text run at (3,45) width 618: "on the top side of each box in the inline element (and the UA's default border on the other three sides). "
+                  text run at (621,45) width 98: "There is also an "
+                LayoutInline {SPAN} at (0,0) size 746x39
+                  LayoutText {#text} at (719,45) size 746x39
+                    text run at (719,45) width 30: "inline"
+                    text run at (3,65) width 99: "element of class "
+                  LayoutInline {TT} at (0,0) size 40x16
+                    LayoutText {#text} at (102,68) size 40x16
+                      text run at (102,68) width 40: "three"
+                LayoutText {#text} at (142,65) size 547x19
+                  text run at (142,65) width 547: ", which should have no top border width or visible border because no border style was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_width-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_width-expected.txt
new file mode 100644
index 0000000..bb0a020
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_width-expected.txt
@@ -0,0 +1,98 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 941
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x941 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x941
+    LayoutBlockFlow {BODY} at (8,8) size 769x925 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 408x96
+          text run at (0,0) width 400: ".zero {background-color: silver; border-width: 0;}"
+          text run at (400,0) width 0: " "
+          text run at (0,16) width 376: ".one {border-width: 50px; border-style: solid;}"
+          text run at (376,16) width 0: " "
+          text run at (0,32) width 384: ".two {border-width: thick; border-style: solid;}"
+          text run at (384,32) width 0: " "
+          text run at (0,48) width 408: ".three {border-width: medium; border-style: solid;}"
+          text run at (408,48) width 0: " "
+          text run at (0,64) width 384: ".four {border-width: thin; border-style: solid;}"
+          text run at (384,64) width 0: " "
+          text run at (0,80) width 216: ".five {border-width: 25px;}"
+          text run at (216,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20
+        LayoutText {#text} at (0,0) size 145x19
+          text run at (0,0) width 145: "(These will only work if "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (145,3) size 96x16
+            text run at (145,3) width 96: "border-style"
+        LayoutText {#text} at (241,0) size 87x19
+          text run at (241,0) width 87: " is supported.)"
+      LayoutBlockFlow {P} at (0,199) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,235) size 769x120 [border: (50px solid #000000)]
+        LayoutText {#text} at (50,50) size 372x19
+          text run at (50,50) width 372: "This element should have an overall border width of 50 pixels."
+      LayoutBlockFlow {P} at (0,371) size 769x30 [border: (5px solid #000000)]
+        LayoutText {#text} at (5,5) size 324x19
+          text run at (5,5) width 324: "This element should have a thick overall border width."
+      LayoutBlockFlow {P} at (0,417) size 769x26 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 342x19
+          text run at (3,3) width 342: "This element should have a medium overall border width."
+      LayoutBlockFlow {P} at (0,459) size 769x22 [border: (1px solid #000000)]
+        LayoutText {#text} at (1,1) size 316x19
+          text run at (1,1) width 316: "This element should have a thin overall border width."
+      LayoutBlockFlow {P} at (0,497) size 769x20
+        LayoutText {#text} at (0,0) size 471x19
+          text run at (0,0) width 471: "This element should have no border and no extra \"padding\" on any side, as no "
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (471,3) size 96x16
+            text run at (471,3) width 96: "border-style"
+        LayoutText {#text} at (567,0) size 53x19
+          text run at (567,0) width 53: " was set."
+      LayoutTable {TABLE} at (0,533) size 642x392 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 640x390
+          LayoutTableRow {TR} at (0,0) size 640x28
+            LayoutTableCell {TD} at (0,0) size 640x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 640x362
+            LayoutTableCell {TD} at (0,195) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 628x362 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 620x20
+                LayoutText {#text} at (0,0) size 145x19
+                  text run at (0,0) width 145: "(These will only work if "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (145,3) size 96x16
+                    text run at (145,3) width 96: "border-style"
+                LayoutText {#text} at (241,0) size 87x19
+                  text run at (241,0) width 87: " is supported.)"
+              LayoutBlockFlow {P} at (4,40) size 620x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,76) size 620x120 [border: (50px solid #000000)]
+                LayoutText {#text} at (50,50) size 372x19
+                  text run at (50,50) width 372: "This element should have an overall border width of 50 pixels."
+              LayoutBlockFlow {P} at (4,212) size 620x30 [border: (5px solid #000000)]
+                LayoutText {#text} at (5,5) size 324x19
+                  text run at (5,5) width 324: "This element should have a thick overall border width."
+              LayoutBlockFlow {P} at (4,258) size 620x26 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 342x19
+                  text run at (3,3) width 342: "This element should have a medium overall border width."
+              LayoutBlockFlow {P} at (4,300) size 620x22 [border: (1px solid #000000)]
+                LayoutText {#text} at (1,1) size 316x19
+                  text run at (1,1) width 316: "This element should have a thin overall border width."
+              LayoutBlockFlow {P} at (4,338) size 620x20
+                LayoutText {#text} at (0,0) size 471x19
+                  text run at (0,0) width 471: "This element should have no border and no extra \"padding\" on any side, as no "
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (471,3) size 96x16
+                    text run at (471,3) width 96: "border-style"
+                LayoutText {#text} at (567,0) size 53x19
+                  text run at (567,0) width 53: " was set."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_width_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_width_inline-expected.txt
new file mode 100644
index 0000000..5be22b3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/border_width_inline-expected.txt
@@ -0,0 +1,86 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 376x48
+          text run at (0,0) width 376: ".one {border-width: 25px; border-style: solid;}"
+          text run at (376,0) width 0: " "
+          text run at (0,16) width 376: ".two {border-width: thin; border-style: solid;}"
+          text run at (376,16) width 0: " "
+          text run at (0,32) width 224: ".three {border-width: 25px;}"
+          text run at (224,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x110 [border: (25px solid #000000)]
+        LayoutText {#text} at (25,25) size 163x19
+          text run at (25,25) width 163: "This element has a class of "
+        LayoutInline {TT} at (0,0) size 24x16
+          LayoutText {#text} at (188,28) size 24x16
+            text run at (188,28) width 24: "one"
+        LayoutText {#text} at (212,25) size 154x19
+          text run at (212,25) width 8: ". "
+          text run at (220,25) width 146: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 160x21 [border: (1px solid #000000)]
+          LayoutText {#text} at (366,25) size 134x19
+            text run at (366,25) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (499,28) size 25x16
+              text run at (499,28) width 25: "two"
+        LayoutText {#text} at (524,25) size 704x39
+          text run at (524,25) width 205: ", which should result in a thin solid"
+          text run at (25,45) width 323: "border on each side of each box in the inline element. "
+          text run at (348,45) width 98: "There is also an "
+        LayoutInline {SPAN} at (0,0) size 173x19
+          LayoutText {#text} at (446,45) size 133x19
+            text run at (446,45) width 133: "inline element of class "
+          LayoutInline {TT} at (0,0) size 40x16
+            LayoutText {#text} at (579,48) size 40x16
+              text run at (579,48) width 40: "three"
+        LayoutText {#text} at (619,45) size 731x39
+          text run at (619,45) width 137: ", which should have no"
+          text run at (25,65) width 279: "border width because no border style was set."
+      LayoutTable {TABLE} at (0,241) size 784x148 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x146
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x118
+            LayoutTableCell {TD} at (0,73) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x118 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x110 [border: (25px solid #000000)]
+                LayoutText {#text} at (25,25) size 163x19
+                  text run at (25,25) width 163: "This element has a class of "
+                LayoutInline {TT} at (0,0) size 24x16
+                  LayoutText {#text} at (188,28) size 24x16
+                    text run at (188,28) width 24: "one"
+                LayoutText {#text} at (212,25) size 154x19
+                  text run at (212,25) width 8: ". "
+                  text run at (220,25) width 146: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 160x21 [border: (1px solid #000000)]
+                  LayoutText {#text} at (366,25) size 134x19
+                    text run at (366,25) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (499,28) size 25x16
+                      text run at (499,28) width 25: "two"
+                LayoutText {#text} at (524,25) size 704x39
+                  text run at (524,25) width 205: ", which should result in a thin solid"
+                  text run at (25,45) width 323: "border on each side of each box in the inline element. "
+                  text run at (348,45) width 98: "There is also an "
+                LayoutInline {SPAN} at (0,0) size 173x19
+                  LayoutText {#text} at (446,45) size 133x19
+                    text run at (446,45) width 133: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 40x16
+                    LayoutText {#text} at (579,48) size 40x16
+                      text run at (579,48) width 40: "three"
+                LayoutText {#text} at (619,45) size 712x39
+                  text run at (619,45) width 118: ", which should have"
+                  text run at (25,65) width 298: "no border width because no border style was set."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/clear-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/clear-expected.txt
new file mode 100644
index 0000000..e20d83b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/clear-expected.txt
@@ -0,0 +1,92 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1005
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1005 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1005
+    LayoutBlockFlow {BODY} at (8,8) size 769x989 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 168x64
+          text run at (0,0) width 152: ".one {clear: left;}"
+          text run at (152,0) width 0: " "
+          text run at (0,16) width 160: ".two {clear: right;}"
+          text run at (160,16) width 0: " "
+          text run at (0,32) width 168: ".three {clear: both;}"
+          text run at (168,32) width 0: " "
+          text run at (0,48) width 160: ".four {clear: none;}"
+          text run at (160,48) width 0: " "
+      LayoutImage (floating) {IMG} at (0,123) size 15x50
+      LayoutBlockFlow {P} at (0,131) size 769x20
+        LayoutText {#text} at (18,0) size 562x19
+          text run at (18,0) width 562: "This text should be flowing past a tall orange rectangle on the left side of the browser window."
+      LayoutBlockFlow (anonymous) at (0,167) size 769x20
+        LayoutBR {BR} at (18,0) size 0x19
+        LayoutImage (floating) {IMG} at (0,20) size 15x50
+      LayoutBlockFlow {P} at (0,237) size 769x20
+        LayoutText {#text} at (0,0) size 620x19
+          text run at (0,0) width 620: "This paragraph should appear below the tall orange rectangle above and to the left, and not flow past it."
+      LayoutBlockFlow (anonymous) at (0,273) size 769x20
+        LayoutBR {BR} at (0,0) size 0x19
+        LayoutImage (floating) {IMG} at (754,20) size 15x50
+      LayoutBlockFlow {P} at (0,343) size 769x20
+        LayoutText {#text} at (0,0) size 628x19
+          text run at (0,0) width 628: "This paragraph should appear below the tall orange rectangle above and to the right, and not flow past it."
+      LayoutBlockFlow (anonymous) at (0,379) size 769x20
+        LayoutBR {BR} at (0,0) size 0x19
+        LayoutImage (floating) {IMG} at (0,20) size 15x50
+        LayoutImage (floating) {IMG} at (754,20) size 15x50
+      LayoutBlockFlow {P} at (0,449) size 769x20
+        LayoutText {#text} at (0,0) size 574x19
+          text run at (0,0) width 574: "This paragraph should appear below the two tall orange rectangles, and not flow between them."
+      LayoutImage (floating) {IMG} at (0,485) size 15x50
+      LayoutImage (floating) {IMG} at (754,485) size 15x50
+      LayoutBlockFlow {P} at (0,485) size 769x20
+        LayoutText {#text} at (18,0) size 372x19
+          text run at (18,0) width 372: "This paragraph should be between both tall orange rectangles."
+      LayoutBlockFlow (anonymous) at (0,521) size 769x20
+        LayoutBR {BR} at (18,0) size 0x19
+      LayoutTable {TABLE} at (0,541) size 650x448 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 648x446
+          LayoutTableRow {TR} at (0,0) size 648x28
+            LayoutTableCell {TD} at (0,0) size 648x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 648x418
+            LayoutTableCell {TD} at (0,223) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 636x418 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutImage (floating) {IMG} at (4,4) size 15x50
+              LayoutBlockFlow {P} at (4,4) size 628x20
+                LayoutText {#text} at (18,0) size 562x19
+                  text run at (18,0) width 562: "This text should be flowing past a tall orange rectangle on the left side of the browser window."
+              LayoutBlockFlow (anonymous) at (4,40) size 628x20
+                LayoutBR {BR} at (18,0) size 0x19
+                LayoutImage (floating) {IMG} at (0,20) size 15x50
+              LayoutBlockFlow {P} at (4,110) size 628x20
+                LayoutText {#text} at (0,0) size 620x19
+                  text run at (0,0) width 620: "This paragraph should appear below the tall orange rectangle above and to the left, and not flow past it."
+              LayoutBlockFlow (anonymous) at (4,146) size 628x20
+                LayoutBR {BR} at (0,0) size 0x19
+                LayoutImage (floating) {IMG} at (613,20) size 15x50
+              LayoutBlockFlow {P} at (4,216) size 628x20
+                LayoutText {#text} at (0,0) size 628x19
+                  text run at (0,0) width 628: "This paragraph should appear below the tall orange rectangle above and to the right, and not flow past it."
+              LayoutBlockFlow (anonymous) at (4,252) size 628x20
+                LayoutBR {BR} at (0,0) size 0x19
+                LayoutImage (floating) {IMG} at (0,20) size 15x50
+                LayoutImage (floating) {IMG} at (613,20) size 15x50
+              LayoutBlockFlow {P} at (4,322) size 628x20
+                LayoutText {#text} at (0,0) size 574x19
+                  text run at (0,0) width 574: "This paragraph should appear below the two tall orange rectangles, and not flow between them."
+              LayoutImage (floating) {IMG} at (4,358) size 15x50
+              LayoutImage (floating) {IMG} at (617,358) size 15x50
+              LayoutBlockFlow {P} at (4,358) size 628x20
+                LayoutText {#text} at (18,0) size 372x19
+                  text run at (18,0) width 372: "This paragraph should be between both tall orange rectangles."
+              LayoutBlockFlow (anonymous) at (4,394) size 628x20
+                LayoutBR {BR} at (18,0) size 0x19
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/clear_float-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/clear_float-expected.txt
new file mode 100644
index 0000000..44659029
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/clear_float-expected.txt
@@ -0,0 +1,160 @@
+layer at (0,0) size 800x600 scrollHeight 806
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x806 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x805.88
+    LayoutBlockFlow {BODY} at (8,8) size 784x789.88 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,33) size 784x144
+        LayoutText {#text} at (0,0) size 616x144
+          text run at (0,0) width 392: "P { margin: 0; padding: 0; text-align:  justify;}"
+          text run at (392,0) width 0: " "
+          text run at (0,16) width 0: " "
+          text run at (0,32) width 384: "DIV.menu {float: left; clear: left; width: 11em;"
+          text run at (384,32) width 0: " "
+          text run at (0,48) width 464: "          margin: 0; margin-bottom: 10px; padding: 0.5em;}"
+          text run at (464,48) width 0: " "
+          text run at (0,64) width 432: "DIV.menu H1 {font-size: 1.2em; margin: 0; padding: 0;}"
+          text run at (432,64) width 0: " "
+          text run at (0,80) width 448: "DIV.menu UL {margin: 0.2em 0.3em 0.2em 1em; padding: 0;}"
+          text run at (448,80) width 0: " "
+          text run at (0,96) width 616: "DIV.article {padding: 0.5em; margin: 0; margin-left: 14em; margin-right: 2em;"
+          text run at (616,96) width 0: " "
+          text run at (0,112) width 480: "             color: black; background: yellow; clear: none;}"
+          text run at (480,112) width 0: " "
+          text run at (0,128) width 0: " "
+      LayoutBlockFlow (floating) {DIV} at (0,200) size 192x125.38 [color=#FFFFFF] [bgcolor=#008000]
+        LayoutBlockFlow {H1} at (8,8) size 176x23
+          LayoutText {#text} at (0,0) size 81x22
+            text run at (0,0) width 81: "Top menu"
+        LayoutBlockFlow {UL} at (24,34.19) size 155.20x80
+          LayoutListItem {LI} at (0,0) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 33x19
+              text run at (0,0) width 33: "green"
+          LayoutListItem {LI} at (0,20) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 58x19
+              text run at (0,0) width 58: "white text"
+          LayoutListItem {LI} at (0,40) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 90x19
+              text run at (0,0) width 90: "0.5em padding"
+          LayoutListItem {LI} at (0,60) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 82x19
+              text run at (0,0) width 82: "0.5em margin"
+      LayoutBlockFlow (floating) {DIV} at (0,335.38) size 192x125.38 [color=#FFFFFF] [bgcolor=#0000FF]
+        LayoutBlockFlow {H1} at (8,8) size 176x23
+          LayoutText {#text} at (0,0) size 109x22
+            text run at (0,0) width 109: "Bottom menu"
+        LayoutBlockFlow {UL} at (24,34.19) size 155.20x80
+          LayoutListItem {LI} at (0,0) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 101x19
+              text run at (0,0) width 101: "blue background"
+          LayoutListItem {LI} at (0,20) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 58x19
+              text run at (0,0) width 58: "white text"
+          LayoutListItem {LI} at (0,40) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 90x19
+              text run at (0,0) width 90: "0.5em padding"
+          LayoutListItem {LI} at (0,60) size 155.20x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 82x19
+              text run at (0,0) width 82: "0.5em margin"
+      LayoutBlockFlow {DIV} at (224,200) size 528x235.88 [bgcolor=#FFFF00]
+        LayoutBlockFlow {H1} at (8,29.44) size 512x37
+          LayoutText {#text} at (0,0) size 274x36
+            text run at (0,0) width 274: "The 'clear' property"
+        LayoutBlockFlow {P} at (8,87.88) size 512x100
+          LayoutText {#text} at (0,0) size 512x99
+            text run at (0,0) width 512: "This page has two floating \"menus\" on the side; one has a green background, and the"
+            text run at (0,20) width 157: "other a blue background. "
+            text run at (157,20) width 355: "Due to settings on the 'float' and 'clear' properties, the two"
+            text run at (0,40) width 512: "menus should appear on the left side of the page, the blue below the green. There"
+            text run at (0,60) width 512: "should be a 10px gap between the two menus. There should also be a 10px gap"
+            text run at (0,80) width 280: "between the top menu and the top of the page."
+        LayoutBlockFlow {P} at (8,187.88) size 512x40
+          LayoutText {#text} at (0,0) size 512x39
+            text run at (0,0) width 512: "The top of the yellow rectangle (to which this paragraph belongs) should be vertically"
+            text run at (0,20) width 254: "aligned with the top of the green rectangle."
+      LayoutTable {TABLE} at (192,435.88) size 592x354 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 590x352
+          LayoutTableRow {TR} at (0,0) size 590x28
+            LayoutTableCell {TD} at (0,0) size 590x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 590x324
+            LayoutTableCell {TD} at (0,176) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 578x323.88 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (floating) {DIV} at (4,4) size 192x125.38 [color=#FFFFFF] [bgcolor=#008000]
+                LayoutBlockFlow {H1} at (8,8) size 176x23
+                  LayoutText {#text} at (0,0) size 81x22
+                    text run at (0,0) width 81: "Top menu"
+                LayoutBlockFlow {UL} at (24,34.19) size 155.20x80
+                  LayoutListItem {LI} at (0,0) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 33x19
+                      text run at (0,0) width 33: "green"
+                  LayoutListItem {LI} at (0,20) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 58x19
+                      text run at (0,0) width 58: "white text"
+                  LayoutListItem {LI} at (0,40) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 90x19
+                      text run at (0,0) width 90: "0.5em padding"
+                  LayoutListItem {LI} at (0,60) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 82x19
+                      text run at (0,0) width 82: "0.5em margin"
+              LayoutBlockFlow (floating) {DIV} at (4,139.38) size 192x125.38 [color=#FFFFFF] [bgcolor=#0000FF]
+                LayoutBlockFlow {H1} at (8,8) size 176x23
+                  LayoutText {#text} at (0,0) size 109x22
+                    text run at (0,0) width 109: "Bottom menu"
+                LayoutBlockFlow {UL} at (24,34.19) size 155.20x80
+                  LayoutListItem {LI} at (0,0) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 101x19
+                      text run at (0,0) width 101: "blue background"
+                  LayoutListItem {LI} at (0,20) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 58x19
+                      text run at (0,0) width 58: "white text"
+                  LayoutListItem {LI} at (0,40) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 90x19
+                      text run at (0,0) width 90: "0.5em padding"
+                  LayoutListItem {LI} at (0,60) size 155.20x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 82x19
+                      text run at (0,0) width 82: "0.5em margin"
+              LayoutBlockFlow {DIV} at (228,4) size 314x315.88 [bgcolor=#FFFF00]
+                LayoutBlockFlow {H1} at (8,29.44) size 298x37
+                  LayoutText {#text} at (0,0) size 274x36
+                    text run at (0,0) width 274: "The 'clear' property"
+                LayoutBlockFlow {P} at (8,87.88) size 298x160
+                  LayoutText {#text} at (0,0) size 298x159
+                    text run at (0,0) width 298: "This page has two floating \"menus\" on the side;"
+                    text run at (0,20) width 298: "one has a green background, and the other a blue"
+                    text run at (0,40) width 83: "background. "
+                    text run at (83,40) width 215: "Due to settings on the 'float' and"
+                    text run at (0,60) width 298: "'clear' properties, the two menus should appear"
+                    text run at (0,80) width 298: "on the left side of the page, the blue below the"
+                    text run at (0,100) width 298: "green. There should be a 10px gap between the"
+                    text run at (0,120) width 298: "two menus. There should also be a 10px gap"
+                    text run at (0,140) width 280: "between the top menu and the top of the page."
+                LayoutBlockFlow {P} at (8,247.88) size 298x60
+                  LayoutText {#text} at (0,0) size 298x59
+                    text run at (0,0) width 298: "The top of the yellow rectangle (to which this"
+                    text run at (0,20) width 298: "paragraph belongs) should be vertically aligned"
+                    text run at (0,40) width 208: "with the top of the green rectangle."
+layer at (8,198) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,190) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/float-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/float-expected.txt
new file mode 100644
index 0000000..84cd1d5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/float-expected.txt
@@ -0,0 +1,61 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 160x48
+          text run at (0,0) width 152: ".one {float: left;}"
+          text run at (152,0) width 0: " "
+          text run at (0,16) width 160: ".two {float: right;}"
+          text run at (160,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutImage (floating) {IMG} at (0,107) size 15x50
+      LayoutBlockFlow {P} at (0,115) size 784x40
+        LayoutText {#text} at (15,0) size 761x39
+          text run at (15,0) width 566: "This text should be flowing past a tall orange rectangle on the left side of the browser window. "
+          text run at (580,0) width 196: "In this case, it is the image which"
+          text run at (15,20) width 162: "has been floated to the left."
+      LayoutBlockFlow (anonymous) at (0,171) size 784x20
+        LayoutBR {BR} at (0,0) size 0x19
+      LayoutImage (floating) {IMG} at (769,209) size 15x50
+      LayoutBlockFlow {P} at (0,217) size 784x40
+        LayoutText {#text} at (0,0) size 769x39
+          text run at (0,0) width 574: "This text should be flowing past a tall orange rectangle on the right side of the browser window. "
+          text run at (573,0) width 196: "In this case, it is the image which"
+          text run at (0,20) width 170: "has been floated to the right."
+      LayoutTable {TABLE} at (0,273) size 784x182 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x180
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x152
+            LayoutTableCell {TD} at (0,90) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x152 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutImage (floating) {IMG} at (4,4) size 15x50
+              LayoutBlockFlow {P} at (4,4) size 762x40
+                LayoutText {#text} at (15,0) size 722x39
+                  text run at (15,0) width 566: "This text should be flowing past a tall orange rectangle on the left side of the browser window. "
+                  text run at (580,0) width 157: "In this case, it is the image"
+                  text run at (15,20) width 201: "which has been floated to the left."
+              LayoutBlockFlow (anonymous) at (4,60) size 762x20
+                LayoutBR {BR} at (0,0) size 0x19
+              LayoutImage (floating) {IMG} at (751,98) size 15x50
+              LayoutBlockFlow {P} at (4,106) size 762x40
+                LayoutText {#text} at (0,0) size 730x39
+                  text run at (0,0) width 574: "This text should be flowing past a tall orange rectangle on the right side of the browser window. "
+                  text run at (573,0) width 157: "In this case, it is the image"
+                  text run at (0,20) width 209: "which has been floated to the right."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,207) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,199) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (25,398) size 762x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,88) size 762x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/float_elements_in_series-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/float_elements_in_series-expected.txt
index c1291c6..c0dfb24 100644
--- a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/float_elements_in_series-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/float_elements_in_series-expected.txt
@@ -32,7 +32,6 @@
           text run at (0,176) width 200: "TABLE {margin: 20px 0px;}"
           text run at (200,176) width 0: " "
           text run at (0,192) width 0: " "
-      LayoutBlockFlow {HR} at (0,254) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,264) size 769x40
         LayoutText {#text} at (0,0) size 769x39
           text run at (0,0) width 769: "The four floating DIV elements below should appear next to each other horizontally. The table at the bottom of this page"
@@ -157,6 +156,8 @@
                         LayoutBlockFlow {IMG} at (0,0) size 100x1
                       LayoutTableCell {TD} at (600,10) size 20x1 [bgcolor=#000000] [r=0 c=14 rs=1 cs=1]
                         LayoutBlockFlow {IMG} at (0,0) size 20x1
+layer at (8,262) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,254) size 769x2 [border: (1px inset #EEEEEE)]
 layer at (8,442) size 20x1
   LayoutBlockFlow {SPAN} at (0,0) size 20x1
     LayoutInline {SPAN} at (0,0) size 0x0
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/float_margin-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/float_margin-expected.txt
new file mode 100644
index 0000000..1f25473c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/float_margin-expected.txt
@@ -0,0 +1,163 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1915
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1915 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1915
+    LayoutBlockFlow {BODY} at (8,8) size 769x1899 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x144
+        LayoutText {#text} at (0,0) size 560x144
+          text run at (0,0) width 344: "P.test {background: white; font-size: 20px;"
+          text run at (344,0) width 0: " "
+          text run at (0,16) width 560: "        margin-left: 30px; margin-right: 10px; padding: 0; border: 0;}"
+          text run at (560,16) width 0: " "
+          text run at (0,32) width 312: "IMG {padding: 0; border: 0; margin: 0;}"
+          text run at (312,32) width 0: " "
+          text run at (0,48) width 200: "P.test IMG {float: left;}"
+          text run at (200,48) width 0: " "
+          text run at (0,64) width 352: "#img2 {margin-top: 30px; margin-left: 30px;}"
+          text run at (352,64) width 0: " "
+          text run at (0,80) width 368: "#img3 {margin-top: -30px; margin-left: -30px;}"
+          text run at (368,80) width 0: " "
+          text run at (0,96) width 384: "#img4 {margin-right: 30px; margin-bottom: 30px;}"
+          text run at (384,96) width 0: " "
+          text run at (0,112) width 400: "#img5 {margin-right: -30px; margin-bottom: -30px;}"
+          text run at (400,112) width 0: " "
+          text run at (0,128) width 0: " "
+      LayoutBlockFlow {P} at (30,215) size 729x92 [bgcolor=#FFFFFF]
+        LayoutText {#text} at (0,0) size 719x91
+          text run at (0,0) width 719: "This paragraph should have a white background which extends to the edges of the element's"
+          text run at (0,23) width 39: "box. "
+          text run at (39,23) width 430: "There is no padding set on this paragraph whatsoever. "
+          text run at (468,23) width 236: "If the background of the entire"
+          text run at (0,46) width 696: "box is not white, this may cause problems with the following tests; at any rate, it must be"
+          text run at (0,69) width 146: "taken into account."
+      LayoutBlockFlow {P} at (30,327) size 729x115 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (0,0) size 60x60
+        LayoutText {#text} at (60,0) size 724x114
+          text run at (60,0) width 615: "The image in the upper left corner of this paragraph should be floated left, and"
+          text run at (60,23) width 112: "nothing more. "
+          text run at (172,23) width 552: "The edges of the white background should line up with the top and left"
+          text run at (60,46) width 156: "edges of the image. "
+          text run at (216,46) width 471: "This paragraph should have a white background, first of all,"
+          text run at (0,69) width 381: "which extends to the edges of the element's box. "
+          text run at (381,69) width 325: "There is no padding set on this paragraph"
+          text run at (0,92) width 95: "whatsoever."
+      LayoutBlockFlow {P} at (30,462) size 729x115 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (30,30) size 60x60
+        LayoutText {#text} at (90,0) size 726x114
+          text run at (90,0) width 628: "The image in the upper left corner of this paragraph should be pushed down and"
+          text run at (90,23) width 627: "to the right 30 pixels each from the upper left corner of the paragraph's box, and"
+          text run at (90,46) width 319: "displace the paragraph text accordingly. "
+          text run at (408,46) width 282: "This paragraph should have a white"
+          text run at (90,69) width 571: "background, first of all, which extends to the edges of the element's box. "
+          text run at (661,69) width 65: "There is"
+          text run at (0,92) width 355: "no padding set on this paragraph whatsoever."
+      LayoutBlockFlow {P} at (30,597) size 729x115 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (-30,-30) size 60x60
+        LayoutText {#text} at (30,0) size 728x114
+          text run at (30,0) width 682: "The image in the upper left corner of this paragraph should be pushed up and to the left"
+          text run at (30,23) width 683: "30 pixels each from the upper left corner of the paragraph's box, thus causing the edges"
+          text run at (0,46) width 556: "of the white background to align with the thick gray lines in the image. "
+          text run at (556,46) width 119: "This paragraph"
+          text run at (0,69) width 728: "should have a white background, first of all, which extends to the edges of the element's box."
+          text run at (0,92) width 425: "There is no padding set on this paragraph whatsoever."
+      LayoutBlockFlow {P} at (30,732) size 729x138 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (0,0) size 60x60
+        LayoutText {#text} at (90,0) size 728x137
+          text run at (90,0) width 615: "The image in the upper left corner of this paragraph should be floated left, and"
+          text run at (90,23) width 616: "the edges of the white background should line up with the top and left edges of"
+          text run at (90,46) width 85: "the image. "
+          text run at (175,46) width 526: "However, there should be 30 pixels of space between the right and"
+          text run at (90,69) width 468: "bottom edges of the image and the paragraph text around it. "
+          text run at (558,69) width 119: "This paragraph"
+          text run at (0,92) width 728: "should have a white background, first of all, which extends to the edges of the element's box."
+          text run at (0,115) width 425: "There is no padding set on this paragraph whatsoever."
+      LayoutBlockFlow {P} at (30,890) size 729x138 [bgcolor=#FFFFFF]
+        LayoutImage (floating) {IMG} at (0,0) size 60x60
+        LayoutText {#text} at (30,0) size 724x137
+          text run at (30,0) width 693: "The image in the upper left corner of this paragraph should be floated left, and the edges"
+          text run at (30,23) width 623: "of the white background should line up with the top and left edges of the image."
+          text run at (0,46) width 724: "However, the text should overlap the image's right and bottom sides, lining up with the thick"
+          text run at (0,69) width 187: "gray lines in the image. "
+          text run at (187,69) width 524: "This paragraph should have a white background, first of all, which"
+          text run at (0,92) width 328: "extends to the edges of the element's box. "
+          text run at (328,92) width 325: "There is no padding set on this paragraph"
+          text run at (0,115) width 95: "whatsoever."
+      LayoutTable {TABLE} at (0,1048) size 769x851 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x849
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x821
+            LayoutTableCell {TD} at (0,424) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x821 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (34,4) size 707x92 [bgcolor=#FFFFFF]
+                LayoutText {#text} at (0,0) size 704x91
+                  text run at (0,0) width 641: "This paragraph should have a white background which extends to the edges of the"
+                  text run at (0,23) width 117: "element's box. "
+                  text run at (117,23) width 430: "There is no padding set on this paragraph whatsoever. "
+                  text run at (546,23) width 158: "If the background of"
+                  text run at (0,46) width 693: "the entire box is not white, this may cause problems with the following tests; at any rate,"
+                  text run at (0,69) width 227: "it must be taken into account."
+              LayoutBlockFlow {P} at (34,116) size 707x115 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (0,0) size 60x60
+                LayoutText {#text} at (60,0) size 693x114
+                  text run at (60,0) width 615: "The image in the upper left corner of this paragraph should be floated left, and"
+                  text run at (60,23) width 112: "nothing more. "
+                  text run at (172,23) width 521: "The edges of the white background should line up with the top and"
+                  text run at (60,46) width 187: "left edges of the image. "
+                  text run at (247,46) width 440: "This paragraph should have a white background, first of"
+                  text run at (0,69) width 412: "all, which extends to the edges of the element's box. "
+                  text run at (412,69) width 241: "There is no padding set on this"
+                  text run at (0,92) width 179: "paragraph whatsoever."
+              LayoutBlockFlow {P} at (34,251) size 707x115 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (30,30) size 60x60
+                LayoutText {#text} at (90,0) size 699x114
+                  text run at (90,0) width 595: "The image in the upper left corner of this paragraph should be pushed down"
+                  text run at (90,23) width 588: "and to the right 30 pixels each from the upper left corner of the paragraph's"
+                  text run at (90,46) width 391: "box, and displace the paragraph text accordingly. "
+                  text run at (480,46) width 219: "This paragraph should have"
+                  text run at (90,69) width 590: "a white background, first of all, which extends to the edges of the element's"
+                  text run at (0,92) width 39: "box. "
+                  text run at (39,92) width 425: "There is no padding set on this paragraph whatsoever."
+              LayoutBlockFlow {P} at (34,386) size 707x115 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (-30,-30) size 60x60
+                LayoutText {#text} at (30,0) size 695x114
+                  text run at (30,0) width 651: "The image in the upper left corner of this paragraph should be pushed up and to the"
+                  text run at (30,23) width 664: "left 30 pixels each from the upper left corner of the paragraph's box, thus causing the"
+                  text run at (0,46) width 606: "edges of the white background to align with the thick gray lines in the image. "
+                  text run at (606,46) width 35: "This"
+                  text run at (0,69) width 695: "paragraph should have a white background, first of all, which extends to the edges of the"
+                  text run at (0,92) width 117: "element's box. "
+                  text run at (117,92) width 425: "There is no padding set on this paragraph whatsoever."
+              LayoutBlockFlow {P} at (34,521) size 707x138 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (0,0) size 60x60
+                LayoutText {#text} at (90,0) size 706x137
+                  text run at (90,0) width 615: "The image in the upper left corner of this paragraph should be floated left, and"
+                  text run at (90,23) width 616: "the edges of the white background should line up with the top and left edges of"
+                  text run at (90,46) width 85: "the image. "
+                  text run at (175,46) width 526: "However, there should be 30 pixels of space between the right and"
+                  text run at (90,69) width 468: "bottom edges of the image and the paragraph text around it. "
+                  text run at (558,69) width 119: "This paragraph"
+                  text run at (0,92) width 689: "should have a white background, first of all, which extends to the edges of the element's"
+                  text run at (0,115) width 39: "box. "
+                  text run at (39,115) width 425: "There is no padding set on this paragraph whatsoever."
+              LayoutBlockFlow {P} at (34,679) size 707x138 [bgcolor=#FFFFFF]
+                LayoutImage (floating) {IMG} at (0,0) size 60x60
+                LayoutText {#text} at (30,0) size 706x137
+                  text run at (30,0) width 643: "The image in the upper left corner of this paragraph should be floated left, and the"
+                  text run at (30,23) width 673: "edges of the white background should line up with the top and left edges of the image."
+                  text run at (0,46) width 681: "However, the text should overlap the image's right and bottom sides, lining up with the"
+                  text run at (0,69) width 230: "thick gray lines in the image. "
+                  text run at (230,69) width 471: "This paragraph should have a white background, first of all,"
+                  text run at (0,92) width 381: "which extends to the edges of the element's box. "
+                  text run at (381,92) width 325: "There is no padding set on this paragraph"
+                  text run at (0,115) width 95: "whatsoever."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/float_on_text_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/float_on_text_elements-expected.txt
new file mode 100644
index 0000000..75d8b39
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/float_on_text_elements-expected.txt
@@ -0,0 +1,366 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2846
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2846 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2846
+    LayoutBlockFlow {BODY} at (8,8) size 769x2830 [bgcolor=#CCCCCC]
+      LayoutBlockFlow (floating) {P} at (0,0) size 384.50x40 [bgcolor=#FFFF00]
+        LayoutText {#text} at (0,0) size 384x39
+          text run at (0,0) width 384: "This paragraph is of class \"one\". It has a width of 50% and is"
+          text run at (0,20) width 105: "floated to the left."
+      LayoutBlockFlow {P} at (0,0) size 769x80
+        LayoutText {#text} at (384,0) size 769x79
+          text run at (384,0) width 385: "This paragraph should start on the right side of a yellow box"
+          text run at (384,20) width 385: "which contains the previous paragraph. Since the text of this"
+          text run at (0,40) width 769: "element is much longer than the text in the previous element, the text will wrap around the yellow box. There is no padding,"
+          text run at (0,60) width 708: "border or margins on this and the previous element, so the text of the two elements should be very close to each other."
+      LayoutBlockFlow (anonymous) at (0,80) size 769x20
+        LayoutBR {BR} at (0,0) size 0x19
+      LayoutBlockFlow (anonymous) at (0,118) size 769x100
+        LayoutBlockFlow (floating) {P} at (0,0) size 769x80 [bgcolor=#FFFF00]
+          LayoutText {#text} at (0,0) size 769x79
+            text run at (0,0) width 769: "This paragraph is of class \"two\". Since the width has been set to 100%, it should automatically be as wide as its parent element"
+            text run at (0,20) width 769: "allows it to be. Therefore, even though the element is floated, there is no room for other content on the sides and a orange"
+            text run at (0,40) width 769: "square image should be seen AFTER the paragraph, not next to it. A yellow background has been added to this paragraph for"
+            text run at (0,60) width 123: "diagnostic purposes."
+        LayoutImage {IMG} at (0,80) size 15x15
+        LayoutText {#text} at (15,80) size 4x19
+          text run at (15,80) width 4: " "
+        LayoutBR {BR} at (19,95) size 0x0
+      LayoutBlockFlow (anonymous) at (0,236) size 769x100
+        LayoutBlockFlow (floating) {P} at (0,0) size 384.50x100 [bgcolor=#FFFF00]
+          LayoutText {#text} at (0,0) size 384x99
+            text run at (0,0) width 384: "This paragraph is floated to the left and the orange square image"
+            text run at (0,20) width 384: "should appear to the right of the paragraph. This paragraph has"
+            text run at (0,40) width 384: "a yellow background and no padding, margin or border. The"
+            text run at (0,60) width 384: "right edge of this yellow box should be horizontally aligned with"
+            text run at (0,80) width 260: "the left edge of the yellow box undernearth."
+        LayoutImage {IMG} at (384.50,0) size 15x15
+        LayoutText {#text} at (399,0) size 5x19
+          text run at (399,0) width 5: " "
+        LayoutBR {BR} at (403,15) size 1x0
+      LayoutBlockFlow (anonymous) at (0,354) size 769x120
+        LayoutBlockFlow (floating) {P} at (384.50,0) size 384.50x120 [bgcolor=#FFFF00]
+          LayoutText {#text} at (0,0) size 384x119
+            text run at (0,0) width 384: "This paragraph is floated to the right (using a STYLE attribute)"
+            text run at (0,20) width 384: "and the orange square image should appear to the left of the"
+            text run at (0,40) width 384: "paragraph. This paragraph has a yellow background and no"
+            text run at (0,60) width 384: "padding, margin or border. The left edge of this yellow box"
+            text run at (0,80) width 384: "should be horizonally aligned with the right edge of the yellow"
+            text run at (0,100) width 68: "box above."
+        LayoutImage {IMG} at (0,0) size 15x15
+        LayoutText {#text} at (15,0) size 4x19
+          text run at (15,0) width 4: " "
+        LayoutBR {BR} at (19,15) size 0x0
+      LayoutBlockFlow {P} at (0,492) size 769x60
+        LayoutBlockFlow (floating) {SPAN} at (0,0) size 48x37 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,0) size 21x36
+            text run at (0,0) width 21: "T"
+        LayoutText {#text} at (48,0) size 769x59
+          text run at (48,0) width 721: "he first letter (a \"T\") of this paragraph should float left and be twice the font-size of the rest of the paragraph, as well as"
+          text run at (48,20) width 432: "bold, with a content width of 1.5em and a background-color of silver. "
+          text run at (479,20) width 290: "The top of the big letter \"T\" should be vertically"
+          text run at (0,40) width 559: "aligned with the top of the first line of this paragraph. This is commonly known as \"drop-cap\"."
+      LayoutBlockFlow (anonymous) at (0,552) size 769x20
+        LayoutBR {BR} at (0,0) size 0x19
+      LayoutBlockFlow (floating) {P} at (423,600) size 336x216 [bgcolor=#FFFF00] [border: (3px solid #FF0000)]
+        LayoutText {#text} at (8,8) size 320x199
+          text run at (8,8) width 320: "This paragraph should be floated to the right, sort of"
+          text run at (8,28) width 320: "like a 'sidebar' in a magazine article. Its width is"
+          text run at (8,48) width 320: "20em so the box should not be reformatted when the"
+          text run at (8,68) width 320: "size of the viewport is changed (e.g. when the"
+          text run at (8,88) width 320: "window is resized). The background color of the"
+          text run at (8,108) width 320: "element is yellow, and there should be a 3px solid"
+          text run at (8,128) width 320: "red border outside a 5px wide padding. Also, the"
+          text run at (8,148) width 320: "element has a 10px wide margin around it where the"
+          text run at (8,168) width 320: "blue background of the paragraph in the normal flow"
+          text run at (8,188) width 126: "should shine through."
+      LayoutBlockFlow {P} at (0,590) size 769x220 [bgcolor=#66CCFF]
+        LayoutText {#text} at (0,0) size 413x219
+          text run at (0,0) width 413: "This paragraph is not floating. If there is enough room, the textual"
+          text run at (0,20) width 413: "content of the paragraph should appear on the left side of the yellow"
+          text run at (0,40) width 133: "\"sidebar\" on the right. "
+          text run at (133,40) width 280: "The content of this element should flow around"
+          text run at (0,60) width 126: "the floated element. "
+          text run at (126,60) width 287: "However, the floated element may or may not"
+          text run at (0,80) width 413: "be obscured by the blue background of this element, as the"
+          text run at (0,100) width 342: "specification does not say which is drawn \"on top.\" "
+          text run at (342,100) width 71: "Even if the"
+          text run at (0,120) width 413: "floated element is obscured, it still forces the content of this element"
+          text run at (0,140) width 107: "to flow around it. "
+          text run at (107,140) width 306: "If the floated element is not obscured, then the blue"
+          text run at (0,160) width 413: "rectangle of this paragraph should extend 10px above and to the"
+          text run at (0,180) width 413: "right of the sidebar's red border, due to the margin styles set for the"
+          text run at (0,200) width 95: "floated element."
+      LayoutBlockFlow (anonymous) at (0,810) size 769x20
+        LayoutBR {BR} at (0,0) size 0x19
+      LayoutBlockFlow {DIV} at (0,848) size 769x28 [bgcolor=#66CCFF] [border: (4px solid #FF0000)]
+        LayoutBlockFlow (floating) {DIV} at (425,14) size 330x250 [bgcolor=#FFFF00]
+          LayoutBlockFlow {P} at (5,5) size 320x240
+            LayoutText {#text} at (0,0) size 320x239
+              text run at (0,0) width 320: "This paragraph is placed inside a DIV element which"
+              text run at (0,20) width 320: "is floated to the right. The width of the DIV element"
+              text run at (0,40) width 320: "is 20em. The background is yellow and there is a"
+              text run at (0,60) width 320: "5px padding, a 10px margin and no border. Since it"
+              text run at (0,80) width 320: "is floated, the yellow box should be rendered on top"
+              text run at (0,100) width 320: "of the background and borders of adjacent non-"
+              text run at (0,120) width 320: "floated elements. To the left of this yellow box there"
+              text run at (0,140) width 320: "should be a short paragraph with a blue background"
+              text run at (0,160) width 320: "and a red border. The yellow box should be"
+              text run at (0,180) width 320: "rendered on top of the bottom red border. I.e., the"
+              text run at (0,200) width 320: "bottom red border will appear broken where it's"
+              text run at (0,220) width 194: "overlaid by the yellow rectangle."
+        LayoutBlockFlow {P} at (4,4) size 761x20
+          LayoutText {#text} at (0,0) size 255x19
+            text run at (0,0) width 255: "See description in the box on the right side"
+      LayoutBlockFlow (anonymous) at (0,876) size 769x246
+        LayoutBR {BR} at (0,0) size 0x19
+      LayoutBlockFlow (floating) {DIV} at (0,1140) size 192.25x80 [bgcolor=#66CCFF]
+        LayoutBlockFlow {P} at (0,0) size 192.25x80
+          LayoutText {#text} at (0,0) size 192x79
+            text run at (0,0) width 192: "This paragraph is inside a DIV"
+            text run at (0,20) width 192: "which is floated left. Its"
+            text run at (0,40) width 192: "background is blue and the"
+            text run at (0,60) width 83: "width is 25%."
+      LayoutBlockFlow (floating) {DIV} at (576.75,1140) size 192.25x80 [bgcolor=#FFFF00]
+        LayoutBlockFlow {P} at (0,0) size 192.25x80
+          LayoutText {#text} at (0,0) size 192x79
+            text run at (0,0) width 192: "This paragraph is inside a DIV"
+            text run at (0,20) width 192: "which is floated right. Its"
+            text run at (0,40) width 192: "background is yellow and the"
+            text run at (0,60) width 83: "width is 25%."
+      LayoutBlockFlow {P} at (0,1140) size 769x40
+        LayoutText {#text} at (192,0) size 385x39
+          text run at (192,0) width 385: "This paragraph should appear between a blue box (on the left)"
+          text run at (192,20) width 189: "and a yellow box (on the right)."
+      LayoutBlockFlow (anonymous) at (0,1180) size 769x40
+        LayoutBR {BR} at (192,0) size 1x19
+      LayoutBlockFlow (anonymous) at (0,1238) size 769x120
+        LayoutBlockFlow (floating) {DIV} at (0,0) size 576.75x120 [bgcolor=#66CCFF]
+          LayoutBlockFlow (floating) {DIV} at (422.56,0) size 144.19x40 [bgcolor=#FFFF00]
+            LayoutBlockFlow {P} at (0,0) size 144.19x40
+              LayoutText {#text} at (0,0) size 144x39
+                text run at (0,0) width 144: "See description in the"
+                text run at (0,20) width 118: "box on the left side."
+          LayoutBlockFlow {P} at (0,0) size 576.75x120
+            LayoutText {#text} at (0,0) size 576x119
+              text run at (0,0) width 350: "This paragraph is inside a DIV which is floated left. The "
+              text run at (350,0) width 72: "background"
+              text run at (0,20) width 321: "of the DIV element is blue and its width is 75%. This "
+              text run at (321,20) width 101: "text should all be"
+              text run at (0,40) width 249: "inside the blue rectangle. The blue DIV "
+              text run at (249,40) width 327: "element has another DIV element as a child. It has a"
+              text run at (0,60) width 43: "yellow "
+              text run at (43,60) width 340: "background color and is floated to the right. Since it is a "
+              text run at (383,60) width 193: "child of the blue DIV, the yellow"
+              text run at (0,80) width 187: "DIV should appear inside the "
+              text run at (187,80) width 382: "blue rectangle. Due to it being floated to the right and having "
+              text run at (569,80) width 7: "a"
+              text run at (0,100) width 383: "10px right margin, the yellow rectange should have a 10px blue "
+              text run at (382,100) width 132: "stripe on its right side."
+        LayoutBR {BR} at (576,0) size 1x19
+      LayoutTable {TABLE} at (0,1376) size 769x1454 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1452
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x1424
+            LayoutTableCell {TD} at (0,726) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x1424 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (floating) {P} at (4,4) size 373.50x40 [bgcolor=#FFFF00]
+                LayoutText {#text} at (0,0) size 373x39
+                  text run at (0,0) width 373: "This paragraph is of class \"one\". It has a width of 50% and is"
+                  text run at (0,20) width 105: "floated to the left."
+              LayoutBlockFlow {P} at (4,4) size 747x80
+                LayoutText {#text} at (373,0) size 747x79
+                  text run at (373,0) width 374: "This paragraph should start on the right side of a yellow box"
+                  text run at (373,20) width 374: "which contains the previous paragraph. Since the text of this"
+                  text run at (0,40) width 747: "element is much longer than the text in the previous element, the text will wrap around the yellow box. There is no padding,"
+                  text run at (0,60) width 708: "border or margins on this and the previous element, so the text of the two elements should be very close to each other."
+              LayoutBlockFlow (anonymous) at (4,84) size 747x20
+                LayoutBR {BR} at (0,0) size 0x19
+              LayoutBlockFlow (anonymous) at (4,122) size 747x100
+                LayoutBlockFlow (floating) {P} at (0,0) size 747x80 [bgcolor=#FFFF00]
+                  LayoutText {#text} at (0,0) size 747x79
+                    text run at (0,0) width 747: "This paragraph is of class \"two\". Since the width has been set to 100%, it should automatically be as wide as its parent"
+                    text run at (0,20) width 747: "element allows it to be. Therefore, even though the element is floated, there is no room for other content on the sides and a"
+                    text run at (0,40) width 747: "orange square image should be seen AFTER the paragraph, not next to it. A yellow background has been added to this"
+                    text run at (0,60) width 209: "paragraph for diagnostic purposes."
+                LayoutImage {IMG} at (0,80) size 15x15
+                LayoutText {#text} at (15,80) size 4x19
+                  text run at (15,80) width 4: " "
+                LayoutBR {BR} at (19,95) size 0x0
+              LayoutBlockFlow (anonymous) at (4,240) size 747x120
+                LayoutBlockFlow (floating) {P} at (0,0) size 373.50x120 [bgcolor=#FFFF00]
+                  LayoutText {#text} at (0,0) size 374x119
+                    text run at (0,0) width 373: "This paragraph is floated to the left and the orange square"
+                    text run at (0,20) width 373: "image should appear to the right of the paragraph. This"
+                    text run at (0,40) width 373: "paragraph has a yellow background and no padding, margin"
+                    text run at (0,60) width 374: "or border. The right edge of this yellow box should be"
+                    text run at (0,80) width 373: "horizontally aligned with the left edge of the yellow box"
+                    text run at (0,100) width 75: "undernearth."
+                LayoutImage {IMG} at (373.50,0) size 15x15
+                LayoutText {#text} at (388,0) size 5x19
+                  text run at (388,0) width 5: " "
+                LayoutBR {BR} at (392,15) size 1x0
+              LayoutBlockFlow (anonymous) at (4,378) size 747x120
+                LayoutBlockFlow (floating) {P} at (373.50,0) size 373.50x120 [bgcolor=#FFFF00]
+                  LayoutText {#text} at (0,0) size 373x119
+                    text run at (0,0) width 373: "This paragraph is floated to the right (using a STYLE"
+                    text run at (0,20) width 373: "attribute) and the orange square image should appear to the"
+                    text run at (0,40) width 373: "left of the paragraph. This paragraph has a yellow background"
+                    text run at (0,60) width 373: "and no padding, margin or border. The left edge of this yellow"
+                    text run at (0,80) width 373: "box should be horizonally aligned with the right edge of the"
+                    text run at (0,100) width 111: "yellow box above."
+                LayoutImage {IMG} at (0,0) size 15x15
+                LayoutText {#text} at (15,0) size 4x19
+                  text run at (15,0) width 4: " "
+                LayoutBR {BR} at (19,15) size 0x0
+              LayoutBlockFlow {P} at (4,516) size 747x60
+                LayoutBlockFlow (floating) {SPAN} at (0,0) size 48x37 [bgcolor=#C0C0C0]
+                  LayoutText {#text} at (0,0) size 21x36
+                    text run at (0,0) width 21: "T"
+                LayoutText {#text} at (48,0) size 747x59
+                  text run at (48,0) width 699: "he first letter (a \"T\") of this paragraph should float left and be twice the font-size of the rest of the paragraph, as well"
+                  text run at (48,20) width 460: "as bold, with a content width of 1.5em and a background-color of silver. "
+                  text run at (507,20) width 240: "The top of the big letter \"T\" should be"
+                  text run at (0,40) width 616: "vertically aligned with the top of the first line of this paragraph. This is commonly known as \"drop-cap\"."
+              LayoutBlockFlow (anonymous) at (4,576) size 747x20
+                LayoutBR {BR} at (0,0) size 0x19
+              LayoutBlockFlow (floating) {P} at (405,624) size 336x216 [bgcolor=#FFFF00] [border: (3px solid #FF0000)]
+                LayoutText {#text} at (8,8) size 320x199
+                  text run at (8,8) width 320: "This paragraph should be floated to the right, sort of"
+                  text run at (8,28) width 320: "like a 'sidebar' in a magazine article. Its width is"
+                  text run at (8,48) width 320: "20em so the box should not be reformatted when the"
+                  text run at (8,68) width 320: "size of the viewport is changed (e.g. when the"
+                  text run at (8,88) width 320: "window is resized). The background color of the"
+                  text run at (8,108) width 320: "element is yellow, and there should be a 3px solid"
+                  text run at (8,128) width 320: "red border outside a 5px wide padding. Also, the"
+                  text run at (8,148) width 320: "element has a 10px wide margin around it where the"
+                  text run at (8,168) width 320: "blue background of the paragraph in the normal flow"
+                  text run at (8,188) width 126: "should shine through."
+              LayoutBlockFlow {P} at (4,614) size 747x220 [bgcolor=#66CCFF]
+                LayoutText {#text} at (0,0) size 391x219
+                  text run at (0,0) width 391: "This paragraph is not floating. If there is enough room, the textual"
+                  text run at (0,20) width 391: "content of the paragraph should appear on the left side of the"
+                  text run at (0,40) width 181: "yellow \"sidebar\" on the right. "
+                  text run at (181,40) width 210: "The content of this element should"
+                  text run at (0,60) width 208: "flow around the floated element. "
+                  text run at (208,60) width 183: "However, the floated element"
+                  text run at (0,80) width 391: "may or may not be obscured by the blue background of this"
+                  text run at (0,100) width 391: "element, as the specification does not say which is drawn \"on"
+                  text run at (0,120) width 35: "top.\" "
+                  text run at (35,120) width 356: "Even if the floated element is obscured, it still forces the"
+                  text run at (0,140) width 249: "content of this element to flow around it. "
+                  text run at (249,140) width 142: "If the floated element is"
+                  text run at (0,160) width 391: "not obscured, then the blue rectangle of this paragraph should"
+                  text run at (0,180) width 391: "extend 10px above and to the right of the sidebar's red border,"
+                  text run at (0,200) width 304: "due to the margin styles set for the floated element."
+              LayoutBlockFlow (anonymous) at (4,834) size 747x20
+                LayoutBR {BR} at (0,0) size 0x19
+              LayoutBlockFlow {DIV} at (4,872) size 747x28 [bgcolor=#66CCFF] [border: (4px solid #FF0000)]
+                LayoutBlockFlow (floating) {DIV} at (403,14) size 330x250 [bgcolor=#FFFF00]
+                  LayoutBlockFlow {P} at (5,5) size 320x240
+                    LayoutText {#text} at (0,0) size 320x239
+                      text run at (0,0) width 320: "This paragraph is placed inside a DIV element which"
+                      text run at (0,20) width 320: "is floated to the right. The width of the DIV element"
+                      text run at (0,40) width 320: "is 20em. The background is yellow and there is a"
+                      text run at (0,60) width 320: "5px padding, a 10px margin and no border. Since it"
+                      text run at (0,80) width 320: "is floated, the yellow box should be rendered on top"
+                      text run at (0,100) width 320: "of the background and borders of adjacent non-"
+                      text run at (0,120) width 320: "floated elements. To the left of this yellow box there"
+                      text run at (0,140) width 320: "should be a short paragraph with a blue background"
+                      text run at (0,160) width 320: "and a red border. The yellow box should be"
+                      text run at (0,180) width 320: "rendered on top of the bottom red border. I.e., the"
+                      text run at (0,200) width 320: "bottom red border will appear broken where it's"
+                      text run at (0,220) width 194: "overlaid by the yellow rectangle."
+                LayoutBlockFlow {P} at (4,4) size 739x20
+                  LayoutText {#text} at (0,0) size 255x19
+                    text run at (0,0) width 255: "See description in the box on the right side"
+              LayoutBlockFlow (anonymous) at (4,900) size 747x246
+                LayoutBR {BR} at (0,0) size 0x19
+              LayoutBlockFlow (floating) {DIV} at (4,1164) size 186.75x80 [bgcolor=#66CCFF]
+                LayoutBlockFlow {P} at (0,0) size 186.75x80
+                  LayoutText {#text} at (0,0) size 186x79
+                    text run at (0,0) width 186: "This paragraph is inside a DIV"
+                    text run at (0,20) width 186: "which is floated left. Its"
+                    text run at (0,40) width 186: "background is blue and the"
+                    text run at (0,60) width 83: "width is 25%."
+              LayoutBlockFlow (floating) {DIV} at (564.25,1164) size 186.75x80 [bgcolor=#FFFF00]
+                LayoutBlockFlow {P} at (0,0) size 186.75x80
+                  LayoutText {#text} at (0,0) size 186x79
+                    text run at (0,0) width 186: "This paragraph is inside a DIV"
+                    text run at (0,20) width 186: "which is floated right. Its"
+                    text run at (0,40) width 186: "background is yellow and the"
+                    text run at (0,60) width 83: "width is 25%."
+              LayoutBlockFlow {P} at (4,1164) size 747x40
+                LayoutText {#text} at (186,0) size 374x39
+                  text run at (186,0) width 374: "This paragraph should appear between a blue box (on the"
+                  text run at (186,20) width 28: "left) "
+                  text run at (213,20) width 189: "and a yellow box (on the right)."
+              LayoutBlockFlow (anonymous) at (4,1204) size 747x40
+                LayoutBR {BR} at (186,0) size 1x19
+              LayoutBlockFlow (anonymous) at (4,1262) size 747x140
+                LayoutBlockFlow (floating) {DIV} at (0,0) size 560.25x140 [bgcolor=#66CCFF]
+                  LayoutBlockFlow (floating) {DIV} at (410.19,0) size 140.06x40 [bgcolor=#FFFF00]
+                    LayoutBlockFlow {P} at (0,0) size 140.06x40
+                      LayoutText {#text} at (0,0) size 140x39
+                        text run at (0,0) width 140: "See description in the"
+                        text run at (0,20) width 118: "box on the left side."
+                  LayoutBlockFlow {P} at (0,0) size 560.25x140
+                    LayoutText {#text} at (0,0) size 560x139
+                      text run at (0,0) width 338: "This paragraph is inside a DIV which is floated left. The "
+                      text run at (338,0) width 72: "background"
+                      text run at (0,20) width 327: "of the DIV element is blue and its width is 75%. This "
+                      text run at (327,20) width 83: "text should all"
+                      text run at (0,40) width 258: "be inside the blue rectangle. The blue DIV "
+                      text run at (258,40) width 302: "element has another DIV element as a child. It has"
+                      text run at (0,60) width 55: "a yellow "
+                      text run at (55,60) width 350: "background color and is floated to the right. Since it is a "
+                      text run at (405,60) width 155: "child of the blue DIV, the"
+                      text run at (0,80) width 230: "yellow DIV should appear inside the "
+                      text run at (230,80) width 330: "blue rectangle. Due to it being floated to the right and"
+                      text run at (0,100) width 43: "having "
+                      text run at (43,100) width 413: "a 10px right margin, the yellow rectange should have a 10px blue "
+                      text run at (455,100) width 105: "stripe on its right"
+                      text run at (0,120) width 28: "side."
+                LayoutBR {BR} at (560,0) size 1x19
+layer at (8,116) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,108) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,234) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,226) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,352) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,344) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,490) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,482) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,588) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,580) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,846) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,838) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1138) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1130) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1236) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1228) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,1374) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,1366) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (25,1525) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,112) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1643) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,230) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1781) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,368) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1919) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,506) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2017) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,604) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2275) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,862) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2567) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1154) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2665) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1252) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,2823) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,1410) size 747x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/height-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/height-expected.txt
new file mode 100644
index 0000000..f58c5ead
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/height-expected.txt
@@ -0,0 +1,77 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 997
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x997 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x997
+    LayoutBlockFlow {BODY} at (8,8) size 769x981 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x48
+        LayoutText {#text} at (0,0) size 168x48
+          text run at (0,0) width 160: ".one {height: 50px;}"
+          text run at (160,0) width 0: " "
+          text run at (0,16) width 168: ".two {height: 100px;}"
+          text run at (168,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow (anonymous) at (0,107) size 769x50
+        LayoutImage {IMG} at (0,0) size 50x50
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,173) size 769x20
+        LayoutText {#text} at (0,0) size 259x19
+          text run at (0,0) width 259: "The square above should be fifty pixels tall."
+      LayoutBlockFlow (anonymous) at (0,209) size 769x100
+        LayoutImage {IMG} at (0,0) size 100x100
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,325) size 769x20
+        LayoutText {#text} at (0,0) size 320x19
+          text run at (0,0) width 320: "The square above should be 100 pixels tall and wide."
+      LayoutBlockFlow (anonymous) at (0,361) size 769x100
+        LayoutImage {IMG} at (0,0) size 30x100
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,477) size 769x40
+        LayoutText {#text} at (0,0) size 743x39
+          text run at (0,0) width 743: "The rectangular image above should be 100 pixels tall and 30 pixels wide (the original image is 50x15, and the size has been"
+          text run at (0,20) width 109: "doubled using the "
+        LayoutInline {CODE} at (0,0) size 48x16
+          LayoutText {#text} at (109,23) size 48x16
+            text run at (109,23) width 48: "height"
+        LayoutText {#text} at (157,20) size 65x19
+          text run at (157,20) width 65: " property)."
+      LayoutTable {TABLE} at (0,533) size 769x448 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x446
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x418
+            LayoutTableCell {TD} at (0,223) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x418 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (4,4) size 747x50
+                LayoutImage {IMG} at (0,0) size 50x50
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,70) size 747x20
+                LayoutText {#text} at (0,0) size 259x19
+                  text run at (0,0) width 259: "The square above should be fifty pixels tall."
+              LayoutBlockFlow (anonymous) at (4,106) size 747x100
+                LayoutImage {IMG} at (0,0) size 100x100
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,222) size 747x20
+                LayoutText {#text} at (0,0) size 320x19
+                  text run at (0,0) width 320: "The square above should be 100 pixels tall and wide."
+              LayoutBlockFlow (anonymous) at (4,258) size 747x100
+                LayoutImage {IMG} at (0,0) size 30x100
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,374) size 747x40
+                LayoutText {#text} at (0,0) size 743x39
+                  text run at (0,0) width 743: "The rectangular image above should be 100 pixels tall and 30 pixels wide (the original image is 50x15, and the size has been"
+                  text run at (0,20) width 109: "doubled using the "
+                LayoutInline {CODE} at (0,0) size 48x16
+                  LayoutText {#text} at (109,23) size 48x16
+                    text run at (109,23) width 48: "height"
+                LayoutText {#text} at (157,20) size 65x19
+                  text run at (157,20) width 65: " property)."
+layer at (8,105) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin-expected.txt
new file mode 100644
index 0000000..4d18d48
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin-expected.txt
@@ -0,0 +1,166 @@
+layer at (0,0) size 800x600 scrollWidth 802 scrollHeight 2690
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x2690 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x2690
+    LayoutBlockFlow {BODY} at (8,8) size 784x2674 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x112
+        LayoutText {#text} at (0,0) size 360x112
+          text run at (0,0) width 352: ".zero {background-color: silver; margin: 0;}"
+          text run at (352,0) width 0: " "
+          text run at (0,16) width 360: ".one {margin: 0.5in; background-color: aqua;}"
+          text run at (360,16) width 0: " "
+          text run at (0,32) width 352: ".two {margin: 25px; background-color: aqua;}"
+          text run at (352,32) width 0: " "
+          text run at (0,48) width 360: ".three {margin: 5em; background-color: aqua;}"
+          text run at (360,48) width 0: " "
+          text run at (0,64) width 352: ".four {margin: 25%; background-color: aqua;}"
+          text run at (352,64) width 0: " "
+          text run at (0,80) width 168: ".five {margin: 25px;}"
+          text run at (168,80) width 0: " "
+          text run at (0,96) width 360: ".six {margin: -10px; background-color: aqua;}"
+          text run at (360,96) width 0: " "
+      LayoutBlockFlow {P} at (0,179) size 784x40
+        LayoutText {#text} at (0,0) size 755x39
+          text run at (0,0) width 755: "NOTE: The following tests are separated by class-zero paragraphs, so as to prevent margin-collapsing as described in section"
+          text run at (0,20) width 193: "4.1.1 of the CSS1 specification."
+      LayoutBlockFlow {P} at (0,235) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (48,303) size 688x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 618x19
+          text run at (0,0) width 618: "This sentence should have an overall margin of half an inch, which will require extra text in order to test."
+      LayoutBlockFlow {P} at (0,371) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (25,416) size 734x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 605x19
+          text run at (0,0) width 605: "This sentence should have an overall margin of 25 pixels, which will require extra text in order to test."
+      LayoutBlockFlow {P} at (0,461) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (80,561) size 624x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 581x19
+          text run at (0,0) width 581: "This sentence should have an overall margin of 5 em, which will require extra text in order to test."
+      LayoutBlockFlow {P} at (0,661) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (196,877) size 392x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 375x59
+          text run at (0,0) width 367: "This sentence should have an overall margin of 25%, which is"
+          text run at (0,20) width 350: "calculated with respect to the width of the parent element. "
+          text run at (350,20) width 25: "This"
+          text run at (0,40) width 222: "will require extra text in order to test."
+      LayoutBlockFlow {P} at (0,1133) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {UL} at (25,1178) size 734x130 [bgcolor=#00FFFF]
+        LayoutListItem {LI} at (40,0) size 694x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 353x19
+            text run at (0,0) width 353: "This list has a margin of 25px, and a light blue background."
+        LayoutListItem {LI} at (40,20) size 694x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 249x19
+            text run at (0,0) width 249: "Therefore, it ought to have such a margin."
+        LayoutListItem {LI} at (65,65) size 644x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 511x19
+            text run at (0,0) width 511: "This list item has a margin of 25px, which should cause it to be offset in some fashion."
+        LayoutListItem {LI} at (40,110) size 694x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 278x19
+            text run at (0,0) width 278: "This list item has no special styles applied to it."
+      LayoutBlockFlow {P} at (0,1333) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (-10,1343) size 804x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 785x59
+          text run at (0,0) width 785: "This paragraph has an overall margin of -10px, which should make it wider than usual as well as shift it upward and pull subsequent"
+          text run at (0,20) width 281: "text up toward it, and a light blue background. "
+          text run at (281,20) width 369: "In all other respects, however, the element should be normal. "
+          text run at (649,20) width 123: "No styles have been"
+          text run at (0,40) width 401: "applied to it besides the negative margin and the background color."
+      LayoutBlockFlow {P} at (0,1393) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutTable {TABLE} at (0,1413) size 784x1261 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x1259
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x1231
+            LayoutTableCell {TD} at (0,629) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x1231 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x40
+                LayoutText {#text} at (0,0) size 755x39
+                  text run at (0,0) width 755: "NOTE: The following tests are separated by class-zero paragraphs, so as to prevent margin-collapsing as described in section"
+                  text run at (0,20) width 193: "4.1.1 of the CSS1 specification."
+              LayoutBlockFlow {P} at (4,60) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (52,128) size 666x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 618x19
+                  text run at (0,0) width 618: "This sentence should have an overall margin of half an inch, which will require extra text in order to test."
+              LayoutBlockFlow {P} at (4,196) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (29,241) size 712x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 605x19
+                  text run at (0,0) width 605: "This sentence should have an overall margin of 25 pixels, which will require extra text in order to test."
+              LayoutBlockFlow {P} at (4,286) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (84,386) size 602x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 581x19
+                  text run at (0,0) width 581: "This sentence should have an overall margin of 5 em, which will require extra text in order to test."
+              LayoutBlockFlow {P} at (4,486) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (194.50,696.50) size 381x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 375x59
+                  text run at (0,0) width 367: "This sentence should have an overall margin of 25%, which is"
+                  text run at (0,20) width 350: "calculated with respect to the width of the parent element. "
+                  text run at (350,20) width 25: "This"
+                  text run at (0,40) width 222: "will require extra text in order to test."
+              LayoutBlockFlow {P} at (4,947) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {UL} at (29,992) size 712x130 [bgcolor=#00FFFF]
+                LayoutListItem {LI} at (40,0) size 672x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 353x19
+                    text run at (0,0) width 353: "This list has a margin of 25px, and a light blue background."
+                LayoutListItem {LI} at (40,20) size 672x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 249x19
+                    text run at (0,0) width 249: "Therefore, it ought to have such a margin."
+                LayoutListItem {LI} at (65,65) size 622x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 511x19
+                    text run at (0,0) width 511: "This list item has a margin of 25px, which should cause it to be offset in some fashion."
+                LayoutListItem {LI} at (40,110) size 672x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 278x19
+                    text run at (0,0) width 278: "This list item has no special styles applied to it."
+              LayoutBlockFlow {P} at (4,1147) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (-6,1157) size 782x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 778x59
+                  text run at (0,0) width 714: "This paragraph has an overall margin of -10px, which should make it wider than usual as well as shift it upward and pull"
+                  text run at (0,20) width 352: "subsequent text up toward it, and a light blue background. "
+                  text run at (352,20) width 369: "In all other respects, however, the element should be normal. "
+                  text run at (720,20) width 58: "No styles"
+                  text run at (0,40) width 466: "have been applied to it besides the negative margin and the background color."
+              LayoutBlockFlow {P} at (4,1207) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+layer at (8,169) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_bottom-expected.txt
new file mode 100644
index 0000000..69a6090
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_bottom-expected.txt
@@ -0,0 +1,151 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1822
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1822 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1822.25
+    LayoutBlockFlow {BODY} at (8,8) size 769x1806.25 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x144
+        LayoutText {#text} at (0,0) size 416x144
+          text run at (0,0) width 408: ".zero {background-color: silver; margin-bottom: 0;}"
+          text run at (408,0) width 0: " "
+          text run at (0,16) width 416: ".one {margin-bottom: 0.5in; background-color: aqua;}"
+          text run at (416,16) width 0: " "
+          text run at (0,32) width 408: ".two {margin-bottom: 25px; background-color: aqua;}"
+          text run at (408,32) width 0: " "
+          text run at (0,48) width 416: ".three {margin-bottom: 5em; background-color: aqua;}"
+          text run at (416,48) width 0: " "
+          text run at (0,64) width 408: ".four {margin-bottom: 25%; background-color: aqua;}"
+          text run at (408,64) width 0: " "
+          text run at (0,80) width 224: ".five {margin-bottom: 25px;}"
+          text run at (224,80) width 0: " "
+          text run at (0,96) width 416: ".six {margin-bottom: -10px; background-color: aqua;}"
+          text run at (416,96) width 0: " "
+          text run at (0,112) width 176: "P, UL {margin-top: 0;}"
+          text run at (176,112) width 0: " "
+          text run at (0,128) width 0: " "
+      LayoutBlockFlow {P} at (0,203) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,223) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 743x39
+          text run at (0,0) width 743: "This sentence should have a bottom margin of half an inch, which will require extra text in order to make sure that the margin"
+          text run at (0,20) width 147: "isn't applied to each line."
+      LayoutBlockFlow {P} at (0,311) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 757x39
+          text run at (0,0) width 757: "This sentence should have a bottom margin of 25 pixels, which will require extra text in order to make sure that the margin isn't"
+          text run at (0,20) width 120: "applied to each line."
+      LayoutBlockFlow {P} at (0,376) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 733x39
+          text run at (0,0) width 733: "This sentence should have a bottom margin of 5 em, which will require extra text in order to make sure that the margin isn't"
+          text run at (0,20) width 120: "applied to each line."
+      LayoutBlockFlow {P} at (0,496) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 726x39
+          text run at (0,0) width 726: "This element should have a bottom margin of 25%, which will require extra text in order to make sure that the margin isn't"
+          text run at (0,20) width 120: "applied to each line."
+      LayoutBlockFlow {P} at (0,728.25) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,748.25) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 221x19
+          text run at (0,0) width 221: "This element also has a class of zero."
+      LayoutBlockFlow {UL} at (0,768.25) size 769x105 [bgcolor=#00FFFF]
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 402x19
+            text run at (0,0) width 402: "This list has a margin-bottom of 25px, and a light blue background."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 249x19
+            text run at (0,0) width 249: "Therefore, it ought to have such a margin."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 558x19
+            text run at (0,0) width 558: "This list item has a bottom margin of 25px, which should cause it to be offset in some fashion."
+        LayoutListItem {LI} at (40,85) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 278x19
+            text run at (0,0) width 278: "This list item has no special styles applied to it."
+      LayoutBlockFlow {P} at (0,898.25) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 756x59
+          text run at (0,0) width 756: "This paragraph has a bottom margin of -10px, which should cause elements after it to be shifted \"upward\" on the page, and no"
+          text run at (0,20) width 72: "top margin. "
+          text run at (71,20) width 468: "No other styles have been applied to it besides a light blue background color. "
+          text run at (538,20) width 195: "In all other respects, the element"
+          text run at (0,40) width 107: "should be normal."
+      LayoutBlockFlow {P} at (0,948.25) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,968.25) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 221x19
+          text run at (0,0) width 221: "This element also has a class of zero."
+      LayoutTable {TABLE} at (0,988.25) size 769x818 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x816
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x788
+            LayoutTableCell {TD} at (0,408) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x787.75 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,24) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 743x39
+                  text run at (0,0) width 743: "This sentence should have a bottom margin of half an inch, which will require extra text in order to make sure that the margin"
+                  text run at (0,20) width 147: "isn't applied to each line."
+              LayoutBlockFlow {P} at (4,112) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 730x39
+                  text run at (0,0) width 730: "This sentence should have a bottom margin of 25 pixels, which will require extra text in order to make sure that the margin"
+                  text run at (0,20) width 147: "isn't applied to each line."
+              LayoutBlockFlow {P} at (4,177) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 733x39
+                  text run at (0,0) width 733: "This sentence should have a bottom margin of 5 em, which will require extra text in order to make sure that the margin isn't"
+                  text run at (0,20) width 120: "applied to each line."
+              LayoutBlockFlow {P} at (4,297) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 726x39
+                  text run at (0,0) width 726: "This element should have a bottom margin of 25%, which will require extra text in order to make sure that the margin isn't"
+                  text run at (0,20) width 120: "applied to each line."
+              LayoutBlockFlow {P} at (4,523.75) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,543.75) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 221x19
+                  text run at (0,0) width 221: "This element also has a class of zero."
+              LayoutBlockFlow {UL} at (4,563.75) size 747x105 [bgcolor=#00FFFF]
+                LayoutListItem {LI} at (40,0) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 402x19
+                    text run at (0,0) width 402: "This list has a margin-bottom of 25px, and a light blue background."
+                LayoutListItem {LI} at (40,20) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 249x19
+                    text run at (0,0) width 249: "Therefore, it ought to have such a margin."
+                LayoutListItem {LI} at (40,40) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 558x19
+                    text run at (0,0) width 558: "This list item has a bottom margin of 25px, which should cause it to be offset in some fashion."
+                LayoutListItem {LI} at (40,85) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 278x19
+                    text run at (0,0) width 278: "This list item has no special styles applied to it."
+              LayoutBlockFlow {P} at (4,693.75) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 737x59
+                  text run at (0,0) width 737: "This paragraph has a bottom margin of -10px, which should cause elements after it to be shifted \"upward\" on the page, and"
+                  text run at (0,20) width 91: "no top margin. "
+                  text run at (90,20) width 468: "No other styles have been applied to it besides a light blue background color. "
+                  text run at (557,20) width 145: "In all other respects, the"
+                  text run at (0,40) width 157: "element should be normal."
+              LayoutBlockFlow {P} at (4,743.75) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,763.75) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 221x19
+                  text run at (0,0) width 221: "This element also has a class of zero."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_bottom_inline-expected.txt
new file mode 100644
index 0000000..d817719
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_bottom_inline-expected.txt
@@ -0,0 +1,96 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x32
+        LayoutText {#text} at (0,0) size 416x32
+          text run at (0,0) width 408: ".one {margin-bottom: 25px; background-color: aqua;}"
+          text run at (408,0) width 0: " "
+          text run at (0,16) width 416: ".two {margin-bottom: -10px; background-color: aqua;}"
+          text run at (416,16) width 0: " "
+      LayoutBlockFlow {P} at (0,99) size 784x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 456x19
+          text run at (0,0) width 372: "This element is unstyled save for a background color of gray.. "
+          text run at (371,0) width 85: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 717x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (455,0) size 134x19
+            text run at (455,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (588,3) size 25x16
+              text run at (588,3) width 25: "one"
+          LayoutText {#text} at (612,0) size 717x39
+            text run at (612,0) width 105: ", giving it an aqua"
+            text run at (0,20) width 235: "background and a 25px bottom margin"
+        LayoutText {#text} at (234,20) size 739x39
+          text run at (234,20) width 9: ". "
+          text run at (242,20) width 497: "Margins on inline elements does not affect line-height calculations, so all lines in this"
+          text run at (0,40) width 247: "element should have the same line-height."
+      LayoutBlockFlow {P} at (0,175) size 784x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 456x19
+          text run at (0,0) width 372: "This element is unstyled save for a background color of gray.. "
+          text run at (371,0) width 85: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 717x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (455,0) size 134x19
+            text run at (455,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (588,3) size 25x16
+              text run at (588,3) width 25: "two"
+          LayoutText {#text} at (612,0) size 717x39
+            text run at (612,0) width 105: ", giving it an aqua"
+            text run at (0,20) width 241: "background and a -10px bottom margin"
+        LayoutText {#text} at (240,20) size 745x39
+          text run at (240,20) width 9: ". "
+          text run at (248,20) width 497: "Margins on inline elements does not affect line-height calculations, so all lines in this"
+          text run at (0,40) width 247: "element should have the same line-height."
+      LayoutTable {TABLE} at (0,251) size 784x174 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x172
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x144
+            LayoutTableCell {TD} at (0,86) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x144 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 456x19
+                  text run at (0,0) width 372: "This element is unstyled save for a background color of gray.. "
+                  text run at (371,0) width 85: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 717x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (455,0) size 134x19
+                    text run at (455,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (588,3) size 25x16
+                      text run at (588,3) width 25: "one"
+                  LayoutText {#text} at (612,0) size 717x39
+                    text run at (612,0) width 105: ", giving it an aqua"
+                    text run at (0,20) width 235: "background and a 25px bottom margin"
+                LayoutText {#text} at (234,20) size 739x39
+                  text run at (234,20) width 9: ". "
+                  text run at (242,20) width 497: "Margins on inline elements does not affect line-height calculations, so all lines in this"
+                  text run at (0,40) width 247: "element should have the same line-height."
+              LayoutBlockFlow {P} at (4,80) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 456x19
+                  text run at (0,0) width 372: "This element is unstyled save for a background color of gray.. "
+                  text run at (371,0) width 85: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 717x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (455,0) size 134x19
+                    text run at (455,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (588,3) size 25x16
+                      text run at (588,3) width 25: "two"
+                  LayoutText {#text} at (612,0) size 717x39
+                    text run at (612,0) width 105: ", giving it an aqua"
+                    text run at (0,20) width 241: "background and a -10px bottom margin"
+                LayoutText {#text} at (240,20) size 745x39
+                  text run at (240,20) width 9: ". "
+                  text run at (248,20) width 497: "Margins on inline elements does not affect line-height calculations, so all lines in this"
+                  text run at (0,40) width 247: "element should have the same line-height."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_inline-expected.txt
new file mode 100644
index 0000000..6ab4520bf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_inline-expected.txt
@@ -0,0 +1,124 @@
+layer at (0,0) size 800x600 scrollHeight 729
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x729 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x729
+    LayoutBlockFlow {BODY} at (8,8) size 784x713 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 360x48
+          text run at (0,0) width 352: ".zero {background-color: silver; margin: 0;}"
+          text run at (352,0) width 0: " "
+          text run at (0,16) width 352: ".one {margin: 25px; background-color: aqua;}"
+          text run at (352,16) width 0: " "
+          text run at (0,32) width 360: ".two {margin: -10px; background-color: aqua;}"
+          text run at (360,32) width 0: " "
+      LayoutBlockFlow {P} at (0,107) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,143) size 784x80 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 456x19
+          text run at (0,0) width 372: "This element is unstyled save for a background color of gray.. "
+          text run at (371,0) width 85: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 742x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (480,0) size 134x19
+            text run at (480,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (613,3) size 25x16
+              text run at (613,3) width 25: "one"
+          LayoutText {#text} at (637,0) size 742x39
+            text run at (637,0) width 105: ", giving it an aqua"
+            text run at (0,20) width 188: "background and a 25px margin"
+        LayoutText {#text} at (212,20) size 767x59
+          text run at (212,20) width 9: ". "
+          text run at (220,20) width 547: "Margins on inline elements does not affect line-height calculations, so all lines in this element"
+          text run at (0,40) width 201: "should have the same line-height. "
+          text run at (201,40) width 530: "However, there should be a 25px margin to the left side of the inline box in the first line it"
+          text run at (0,60) width 605: "appears, and a 25px margin to the right side of the inline element box in the last line where it appears."
+      LayoutBlockFlow {P} at (0,239) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,275) size 784x80 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 456x19
+          text run at (0,0) width 372: "This element is unstyled save for a background color of gray.. "
+          text run at (371,0) width 85: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 783x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (445,0) size 134x19
+            text run at (445,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (578,3) size 25x16
+              text run at (578,3) width 25: "two"
+          LayoutText {#text} at (602,0) size 783x39
+            text run at (602,0) width 181: ", giving it an aqua background"
+            text run at (0,20) width 118: "and a -10px margin"
+        LayoutText {#text} at (107,20) size 774x59
+          text run at (107,20) width 9: ". "
+          text run at (115,20) width 644: "Margins on inline elements does not affect line-height calculations, so all lines in this element should have the"
+          text run at (0,40) width 104: "same line-height. "
+          text run at (104,40) width 670: "However, there should be a -10px margin to the left side of the inline box in the first line it appears, and a -10px"
+          text run at (0,60) width 477: "margin to the right side of the inline element box in the last line where it appears."
+      LayoutBlockFlow {P} at (0,371) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutTable {TABLE} at (0,391) size 784x322 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x320
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x292
+            LayoutTableCell {TD} at (0,160) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x292 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 762x80 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 456x19
+                  text run at (0,0) width 372: "This element is unstyled save for a background color of gray.. "
+                  text run at (371,0) width 85: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 742x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (480,0) size 134x19
+                    text run at (480,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (613,3) size 25x16
+                      text run at (613,3) width 25: "one"
+                  LayoutText {#text} at (637,0) size 742x39
+                    text run at (637,0) width 105: ", giving it an aqua"
+                    text run at (0,20) width 188: "background and a 25px margin"
+                LayoutText {#text} at (212,20) size 746x59
+                  text run at (212,20) width 9: ". "
+                  text run at (220,20) width 497: "Margins on inline elements does not affect line-height calculations, so all lines in this"
+                  text run at (0,40) width 251: "element should have the same line-height. "
+                  text run at (251,40) width 495: "However, there should be a 25px margin to the left side of the inline box in the first"
+                  text run at (0,60) width 640: "line it appears, and a 25px margin to the right side of the inline element box in the last line where it appears."
+              LayoutBlockFlow {P} at (4,136) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,172) size 762x80 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 456x19
+                  text run at (0,0) width 372: "This element is unstyled save for a background color of gray.. "
+                  text run at (371,0) width 85: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 707x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (445,0) size 134x19
+                    text run at (445,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (578,3) size 25x16
+                      text run at (578,3) width 25: "two"
+                  LayoutText {#text} at (602,0) size 707x39
+                    text run at (602,0) width 105: ", giving it an aqua"
+                    text run at (0,20) width 194: "background and a -10px margin"
+                LayoutText {#text} at (183,20) size 738x59
+                  text run at (183,20) width 9: ". "
+                  text run at (191,20) width 547: "Margins on inline elements does not affect line-height calculations, so all lines in this element"
+                  text run at (0,40) width 201: "should have the same line-height. "
+                  text run at (201,40) width 536: "However, there should be a -10px margin to the left side of the inline box in the first line it"
+                  text run at (0,60) width 611: "appears, and a -10px margin to the right side of the inline element box in the last line where it appears."
+              LayoutBlockFlow {P} at (4,268) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_left-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_left-expected.txt
new file mode 100644
index 0000000..a371e1b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_left-expected.txt
@@ -0,0 +1,120 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1057
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1057 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1057
+    LayoutBlockFlow {BODY} at (8,8) size 769x1041 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 408x96
+          text run at (0,0) width 392: ".zero {background-color: silver; margin-left: 0;}"
+          text run at (392,0) width 0: " "
+          text run at (0,16) width 400: ".one {margin-left: 0.5in; background-color: aqua;}"
+          text run at (400,16) width 0: " "
+          text run at (0,32) width 392: ".two {margin-left: 25px; background-color: aqua;}"
+          text run at (392,32) width 0: " "
+          text run at (0,48) width 400: ".three {margin-left: 5em; background-color: aqua;}"
+          text run at (400,48) width 0: " "
+          text run at (0,64) width 392: ".four {margin-left: 25%; background-color: aqua;}"
+          text run at (392,64) width 0: " "
+          text run at (0,80) width 408: ".five {margin-left: -10px; background-color: aqua;}"
+          text run at (408,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (48,199) size 721x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 324x19
+          text run at (0,0) width 324: "This sentence should have a left margin of half an inch."
+      LayoutBlockFlow {P} at (25,235) size 744x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 311x19
+          text run at (0,0) width 311: "This sentence should have a left margin of 25 pixels."
+      LayoutBlockFlow {P} at (80,271) size 689x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 287x19
+          text run at (0,0) width 287: "This sentence should have a left margin of 5 em."
+      LayoutBlockFlow {P} at (192.25,307) size 576.75x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 570x39
+          text run at (0,0) width 570: "This sentence should have a left margin of 25%, which is calculated with respect to the width of"
+          text run at (0,20) width 114: "the parent element."
+      LayoutBlockFlow {UL} at (25,363) size 744x100 [bgcolor=#808080]
+        LayoutListItem {LI} at (40,0) size 704x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 655x19
+            text run at (0,0) width 655: "The left margin on this unordered list has been set to 25 pixels, and its background color has been set to gray."
+        LayoutListItem {LI} at (65,20) size 679x60 [bgcolor=#FFFFFF]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 644x59
+            text run at (0,0) width 625: "Another list item might not be such a bad idea, either, considering that such things do need to be double-"
+            text run at (0,20) width 59: "checked. "
+            text run at (59,20) width 585: "This list item has its left margin also set to 25 pixels, which should combine with the list's margin to"
+            text run at (0,40) width 443: "make 50 pixels of margin, and its background color has been set to white."
+        LayoutListItem {LI} at (40,80) size 704x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 167x19
+            text run at (0,0) width 167: "This is an unclassed list item"
+      LayoutBlockFlow {P} at (0,479) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (-10,515) size 779x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 770x59
+          text run at (0,0) width 746: "This paragraph has a left margin of -10px, which should cause it to be wider than it might otherwise be, and it has a light blue"
+          text run at (0,20) width 80: "background. "
+          text run at (80,20) width 369: "In all other respects, however, the element should be normal. "
+          text run at (448,20) width 322: "No styles have been applied to it besides the negative"
+          text run at (0,40) width 224: "left margin and the background color."
+      LayoutTable {TABLE} at (0,591) size 769x450 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x448
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x420
+            LayoutTableCell {TD} at (0,224) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x420 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (52,40) size 699x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 324x19
+                  text run at (0,0) width 324: "This sentence should have a left margin of half an inch."
+              LayoutBlockFlow {P} at (29,76) size 722x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 311x19
+                  text run at (0,0) width 311: "This sentence should have a left margin of 25 pixels."
+              LayoutBlockFlow {P} at (84,112) size 667x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 287x19
+                  text run at (0,0) width 287: "This sentence should have a left margin of 5 em."
+              LayoutBlockFlow {P} at (190.75,148) size 560.25x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 554x39
+                  text run at (0,0) width 554: "This sentence should have a left margin of 25%, which is calculated with respect to the width"
+                  text run at (0,20) width 130: "of the parent element."
+              LayoutBlockFlow {UL} at (29,204) size 722x100 [bgcolor=#808080]
+                LayoutListItem {LI} at (40,0) size 682x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 655x19
+                    text run at (0,0) width 655: "The left margin on this unordered list has been set to 25 pixels, and its background color has been set to gray."
+                LayoutListItem {LI} at (65,20) size 657x60 [bgcolor=#FFFFFF]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 644x59
+                    text run at (0,0) width 625: "Another list item might not be such a bad idea, either, considering that such things do need to be double-"
+                    text run at (0,20) width 59: "checked. "
+                    text run at (59,20) width 585: "This list item has its left margin also set to 25 pixels, which should combine with the list's margin to"
+                    text run at (0,40) width 443: "make 50 pixels of margin, and its background color has been set to white."
+                LayoutListItem {LI} at (40,80) size 682x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 167x19
+                    text run at (0,0) width 167: "This is an unclassed list item"
+              LayoutBlockFlow {P} at (4,320) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (-6,356) size 757x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 746x59
+                  text run at (0,0) width 746: "This paragraph has a left margin of -10px, which should cause it to be wider than it might otherwise be, and it has a light blue"
+                  text run at (0,20) width 80: "background. "
+                  text run at (80,20) width 369: "In all other respects, however, the element should be normal. "
+                  text run at (448,20) width 269: "No styles have been applied to it besides the"
+                  text run at (0,40) width 277: "negative left margin and the background color."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_left_inline-expected.txt
new file mode 100644
index 0000000..4e11b88c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_left_inline-expected.txt
@@ -0,0 +1,100 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x32
+        LayoutText {#text} at (0,0) size 400x32
+          text run at (0,0) width 392: ".one {margin-left: 25px; background-color: aqua;}"
+          text run at (392,0) width 0: " "
+          text run at (0,16) width 400: ".two {margin-left: -10px; background-color: aqua;}"
+          text run at (400,16) width 0: " "
+      LayoutBlockFlow {P} at (0,99) size 784x40 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 514x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 147: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 158x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (538,0) size 134x19
+            text run at (538,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (671,3) size 25x16
+              text run at (671,3) width 25: "one"
+        LayoutText {#text} at (695,0) size 782x39
+          text run at (695,0) width 87: ", which should"
+          text run at (0,20) width 235: "result in 25-pixel left margin only in the "
+        LayoutInline {STRONG} at (0,0) size 28x19
+          LayoutText {#text} at (234,20) size 28x19
+            text run at (234,20) width 28: "first"
+        LayoutText {#text} at (261,20) size 217x19
+          text run at (261,20) width 217: " line in which the inline box appears."
+      LayoutBlockFlow {P} at (0,155) size 784x40 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 514x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 147: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 158x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (503,0) size 134x19
+            text run at (503,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (636,3) size 25x16
+              text run at (636,3) width 25: "two"
+        LayoutText {#text} at (660,0) size 783x39
+          text run at (660,0) width 123: ", which should result"
+          text run at (0,20) width 186: "in -10px left margin only in the "
+        LayoutInline {STRONG} at (0,0) size 28x19
+          LayoutText {#text} at (185,20) size 28x19
+            text run at (185,20) width 28: "first"
+        LayoutText {#text} at (212,20) size 217x19
+          text run at (212,20) width 217: " line in which the inline box appears."
+      LayoutTable {TABLE} at (0,211) size 784x134 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x132
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x104
+            LayoutTableCell {TD} at (0,66) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x104 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x40 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 514x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 147: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 158x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (538,0) size 134x19
+                    text run at (538,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (671,3) size 25x16
+                      text run at (671,3) width 25: "one"
+                LayoutText {#text} at (695,0) size 739x39
+                  text run at (695,0) width 44: ", which"
+                  text run at (0,20) width 278: "should result in 25-pixel left margin only in the "
+                LayoutInline {STRONG} at (0,0) size 28x19
+                  LayoutText {#text} at (277,20) size 28x19
+                    text run at (277,20) width 28: "first"
+                LayoutText {#text} at (304,20) size 217x19
+                  text run at (304,20) width 217: " line in which the inline box appears."
+              LayoutBlockFlow {P} at (4,60) size 762x40 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 514x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 147: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 158x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (503,0) size 134x19
+                    text run at (503,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (636,3) size 25x16
+                      text run at (636,3) width 25: "two"
+                LayoutText {#text} at (660,0) size 747x39
+                  text run at (660,0) width 87: ", which should"
+                  text run at (0,20) width 222: "result in -10px left margin only in the "
+                LayoutInline {STRONG} at (0,0) size 28x19
+                  LayoutText {#text} at (221,20) size 28x19
+                    text run at (221,20) width 28: "first"
+                LayoutText {#text} at (248,20) size 217x19
+                  text run at (248,20) width 217: " line in which the inline box appears."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_right-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_right-expected.txt
new file mode 100644
index 0000000..a98c349
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_right-expected.txt
@@ -0,0 +1,119 @@
+layer at (0,0) size 800x600 scrollWidth 802 scrollHeight 1057
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x1057 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x1057
+    LayoutBlockFlow {BODY} at (8,8) size 784x1041 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x96
+        LayoutText {#text} at (0,0) size 560x96
+          text run at (0,0) width 552: ".zero {background-color: silver; margin-right: 0; text-align: right;}"
+          text run at (552,0) width 0: " "
+          text run at (0,16) width 560: ".one {margin-right: 0.5in; text-align: right; background-color: aqua;}"
+          text run at (560,16) width 0: " "
+          text run at (0,32) width 552: ".two {margin-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (552,32) width 0: " "
+          text run at (0,48) width 560: ".three {margin-right: 5em; text-align: right; background-color: aqua;}"
+          text run at (560,48) width 0: " "
+          text run at (0,64) width 552: ".four {margin-right: 25%; text-align: right; background-color: aqua;}"
+          text run at (552,64) width 0: " "
+          text run at (0,80) width 416: ".five {margin-right: -10px; background-color: aqua;}"
+          text run at (416,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (591,0) size 193x19
+          text run at (591,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,199) size 736x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (404,0) size 332x19
+          text run at (404,0) width 332: "This sentence should have a right margin of half an inch."
+      LayoutBlockFlow {P} at (0,235) size 759x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (440,0) size 319x19
+          text run at (440,0) width 319: "This sentence should have a right margin of 25 pixels."
+      LayoutBlockFlow {P} at (0,271) size 704x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (409,0) size 295x19
+          text run at (409,0) width 295: "This sentence should have a right margin of 5 em."
+      LayoutBlockFlow {P} at (0,307) size 588x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (10,0) size 578x39
+          text run at (10,0) width 578: "This sentence should have a right margin of 25%, which is calculated with respect to the width of"
+          text run at (474,20) width 114: "the parent element."
+      LayoutBlockFlow {UL} at (0,363) size 759x100 [bgcolor=#808080]
+        LayoutListItem {LI} at (40,0) size 719x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (51,0) size 668x19
+            text run at (51,0) width 668: "The right margin on this unordered list has been set to 25 pixels, and the background color has been set to gray."
+        LayoutListItem {LI} at (40,20) size 694x60 [bgcolor=#FFFFFF]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (14,0) size 688x59
+            text run at (14,0) width 680: "Another list item might not be such a bad idea, either, considering that such things do need to be double-checked."
+            text run at (6,20) width 688: "This list item has its right margin also set to 25 pixels, which should combine with the list's margin to make 50 pixels"
+            text run at (344,40) width 350: "of margin, and its background-color has been set to white."
+        LayoutListItem {LI} at (40,80) size 719x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (552,0) size 167x19
+            text run at (552,0) width 167: "This is an unclassed list item"
+      LayoutBlockFlow {P} at (0,479) size 784x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (591,0) size 193x19
+          text run at (591,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,515) size 794x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 770x59
+          text run at (0,0) width 754: "This paragraph has a right margin of -10px, which should cause it to be wider than it might otherwise be, and it has a light blue"
+          text run at (0,20) width 80: "background. "
+          text run at (80,20) width 369: "In all other respects, however, the element should be normal. "
+          text run at (448,20) width 322: "No styles have been applied to it besides the negative"
+          text run at (0,40) width 232: "right margin and the background color."
+      LayoutTable {TABLE} at (0,591) size 784x450 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x448
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x420
+            LayoutTableCell {TD} at (0,224) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x420 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (569,0) size 193x19
+                  text run at (569,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 714x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (382,0) size 332x19
+                  text run at (382,0) width 332: "This sentence should have a right margin of half an inch."
+              LayoutBlockFlow {P} at (4,76) size 737x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (418,0) size 319x19
+                  text run at (418,0) width 319: "This sentence should have a right margin of 25 pixels."
+              LayoutBlockFlow {P} at (4,112) size 682x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (387,0) size 295x19
+                  text run at (387,0) width 295: "This sentence should have a right margin of 5 em."
+              LayoutBlockFlow {P} at (4,148) size 571.50x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (9,0) size 563x39
+                  text run at (9,0) width 563: "This sentence should have a right margin of 25%, which is calculated with respect to the width"
+                  text run at (441,20) width 131: "of the parent element."
+              LayoutBlockFlow {UL} at (4,204) size 737x100 [bgcolor=#808080]
+                LayoutListItem {LI} at (40,0) size 697x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (29,0) size 668x19
+                    text run at (29,0) width 668: "The right margin on this unordered list has been set to 25 pixels, and the background color has been set to gray."
+                LayoutListItem {LI} at (40,20) size 672x60 [bgcolor=#FFFFFF]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (47,0) size 652x59
+                    text run at (47,0) width 625: "Another list item might not be such a bad idea, either, considering that such things do need to be double-"
+                    text run at (20,20) width 60: "checked. "
+                    text run at (79,20) width 593: "This list item has its right margin also set to 25 pixels, which should combine with the list's margin to"
+                    text run at (227,40) width 445: "make 50 pixels of margin, and its background-color has been set to white."
+                LayoutListItem {LI} at (40,80) size 697x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (530,0) size 167x19
+                    text run at (530,0) width 167: "This is an unclassed list item"
+              LayoutBlockFlow {P} at (4,320) size 762x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (569,0) size 193x19
+                  text run at (569,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,356) size 772x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 770x59
+                  text run at (0,0) width 754: "This paragraph has a right margin of -10px, which should cause it to be wider than it might otherwise be, and it has a light blue"
+                  text run at (0,20) width 80: "background. "
+                  text run at (80,20) width 369: "In all other respects, however, the element should be normal. "
+                  text run at (448,20) width 322: "No styles have been applied to it besides the negative"
+                  text run at (0,40) width 232: "right margin and the background color."
+layer at (8,153) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_right_inline-expected.txt
new file mode 100644
index 0000000..ccfdadd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_right_inline-expected.txt
@@ -0,0 +1,100 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x32
+        LayoutText {#text} at (0,0) size 552x32
+          text run at (0,0) width 552: ".one {margin-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (552,0) width 0: " "
+          text run at (0,16) width 408: ".two {margin-right: -10px; background-color: aqua;}"
+          text run at (408,16) width 0: " "
+      LayoutBlockFlow {P} at (0,99) size 784x40 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 514x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 147: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 158x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (513,0) size 134x19
+            text run at (513,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (646,3) size 25x16
+              text run at (646,3) width 25: "one"
+        LayoutText {#text} at (695,0) size 782x39
+          text run at (695,0) width 87: ", which should"
+          text run at (0,20) width 243: "result in 25-pixel right margin only in the "
+        LayoutInline {STRONG} at (0,0) size 25x19
+          LayoutText {#text} at (242,20) size 25x19
+            text run at (242,20) width 25: "last"
+        LayoutText {#text} at (266,20) size 217x19
+          text run at (266,20) width 217: " line in which the inline box appears."
+      LayoutBlockFlow {P} at (0,155) size 784x40 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 514x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 147: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 158x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (513,0) size 134x19
+            text run at (513,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (646,3) size 25x16
+              text run at (646,3) width 25: "two"
+        LayoutText {#text} at (660,0) size 783x39
+          text run at (660,0) width 123: ", which should result"
+          text run at (0,20) width 194: "in -10px right margin only in the "
+        LayoutInline {STRONG} at (0,0) size 25x19
+          LayoutText {#text} at (193,20) size 25x19
+            text run at (193,20) width 25: "last"
+        LayoutText {#text} at (217,20) size 217x19
+          text run at (217,20) width 217: " line in which the inline box appears."
+      LayoutTable {TABLE} at (0,211) size 784x134 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x132
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x104
+            LayoutTableCell {TD} at (0,66) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x104 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x40 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 514x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 147: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 158x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (513,0) size 134x19
+                    text run at (513,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (646,3) size 25x16
+                      text run at (646,3) width 25: "one"
+                LayoutText {#text} at (695,0) size 739x39
+                  text run at (695,0) width 44: ", which"
+                  text run at (0,20) width 286: "should result in 25-pixel right margin only in the "
+                LayoutInline {STRONG} at (0,0) size 25x19
+                  LayoutText {#text} at (285,20) size 25x19
+                    text run at (285,20) width 25: "last"
+                LayoutText {#text} at (309,20) size 217x19
+                  text run at (309,20) width 217: " line in which the inline box appears."
+              LayoutBlockFlow {P} at (4,60) size 762x40 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 514x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 147: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 158x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (513,0) size 134x19
+                    text run at (513,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (646,3) size 25x16
+                      text run at (646,3) width 25: "two"
+                LayoutText {#text} at (660,0) size 747x39
+                  text run at (660,0) width 87: ", which should"
+                  text run at (0,20) width 230: "result in -10px right margin only in the "
+                LayoutInline {STRONG} at (0,0) size 25x19
+                  LayoutText {#text} at (229,20) size 25x19
+                    text run at (229,20) width 25: "last"
+                LayoutText {#text} at (253,20) size 217x19
+                  text run at (253,20) width 217: " line in which the inline box appears."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_top-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_top-expected.txt
new file mode 100644
index 0000000..5c659a8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_top-expected.txt
@@ -0,0 +1,138 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1703
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1703 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1703.25
+    LayoutBlockFlow {BODY} at (8,8) size 769x1687.25 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,33) size 769x128
+        LayoutText {#text} at (0,0) size 392x128
+          text run at (0,0) width 384: ".zero {background-color: silver; margin-top: 0;}"
+          text run at (384,0) width 0: " "
+          text run at (0,16) width 392: ".one {margin-top: 0.5in; background-color: aqua;}"
+          text run at (392,16) width 0: " "
+          text run at (0,32) width 384: ".two {margin-top: 25px; background-color: aqua;}"
+          text run at (384,32) width 0: " "
+          text run at (0,48) width 392: ".three {margin-top: 5em; background-color: aqua;}"
+          text run at (392,48) width 0: " "
+          text run at (0,64) width 384: ".four {margin-top: 25%; background-color: aqua;}"
+          text run at (384,64) width 0: " "
+          text run at (0,80) width 200: ".five {margin-top: 25px;}"
+          text run at (200,80) width 0: " "
+          text run at (0,96) width 392: ".six {margin-top: -10px; background-color: aqua;}"
+          text run at (392,96) width 0: " "
+          text run at (0,112) width 200: "P, UL {margin-bottom: 0;}"
+          text run at (200,112) width 0: " "
+      LayoutBlockFlow {P} at (0,184) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,204) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 221x19
+          text run at (0,0) width 221: "This element also has a class of zero."
+      LayoutBlockFlow {P} at (0,272) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 741x39
+          text run at (0,0) width 741: "This element should have a top margin of half an inch, which will require extra text in order to make sure that the margin isn't"
+          text run at (0,20) width 120: "applied to each line."
+      LayoutBlockFlow {P} at (0,337) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 728x39
+          text run at (0,0) width 728: "This element should have a top margin of 25 pixels, which will require extra text in order to make sure that the margin isn't"
+          text run at (0,20) width 120: "applied to each line."
+      LayoutBlockFlow {P} at (0,457) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 768x39
+          text run at (0,0) width 768: "This element should have a top margin of 5 em, which will require extra text in order to make sure that the margin isn't applied to"
+          text run at (0,20) width 56: "each line."
+      LayoutBlockFlow {P} at (0,689.25) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 737x39
+          text run at (0,0) width 688: "This element should have a top margin of 25%, which is calculated with respect to the width of the parent element. "
+          text run at (687,0) width 50: "This will"
+          text run at (0,20) width 198: "require extra text in order to test."
+      LayoutBlockFlow {UL} at (0,754.25) size 769x105 [bgcolor=#00FFFF]
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 379x19
+            text run at (0,0) width 379: "This list has a margin-top of 25px, and a light blue background."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 249x19
+            text run at (0,0) width 249: "Therefore, it ought to have such a margin."
+        LayoutListItem {LI} at (40,65) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 535x19
+            text run at (0,0) width 535: "This list item has a top margin of 25px, which should cause it to be offset in some fashion."
+        LayoutListItem {LI} at (40,85) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 278x19
+            text run at (0,0) width 278: "This list item has no special styles applied to it."
+      LayoutBlockFlow {P} at (0,859.25) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,869.25) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 750x39
+          text run at (0,0) width 730: "This element has a top margin of -10px, which should cause it to be shifted \"upward\" on the page, and no bottom margin. "
+          text run at (729,0) width 21: "No"
+          text run at (0,20) width 444: "other styles have been applied to it besides a light blue background color. "
+          text run at (443,20) width 306: "In all other respects, the element should be normal."
+      LayoutTable {TABLE} at (0,909.25) size 769x778 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x776
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x748
+            LayoutTableCell {TD} at (0,388) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x747.75 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,24) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 221x19
+                  text run at (0,0) width 221: "This element also has a class of zero."
+              LayoutBlockFlow {P} at (4,92) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 741x39
+                  text run at (0,0) width 741: "This element should have a top margin of half an inch, which will require extra text in order to make sure that the margin isn't"
+                  text run at (0,20) width 120: "applied to each line."
+              LayoutBlockFlow {P} at (4,157) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 728x39
+                  text run at (0,0) width 728: "This element should have a top margin of 25 pixels, which will require extra text in order to make sure that the margin isn't"
+                  text run at (0,20) width 120: "applied to each line."
+              LayoutBlockFlow {P} at (4,277) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 704x39
+                  text run at (0,0) width 704: "This element should have a top margin of 5 em, which will require extra text in order to make sure that the margin isn't"
+                  text run at (0,20) width 120: "applied to each line."
+              LayoutBlockFlow {P} at (4,503.75) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 737x39
+                  text run at (0,0) width 688: "This element should have a top margin of 25%, which is calculated with respect to the width of the parent element. "
+                  text run at (687,0) width 50: "This will"
+                  text run at (0,20) width 198: "require extra text in order to test."
+              LayoutBlockFlow {UL} at (4,568.75) size 747x105 [bgcolor=#00FFFF]
+                LayoutListItem {LI} at (40,0) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 379x19
+                    text run at (0,0) width 379: "This list has a margin-top of 25px, and a light blue background."
+                LayoutListItem {LI} at (40,20) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 249x19
+                    text run at (0,0) width 249: "Therefore, it ought to have such a margin."
+                LayoutListItem {LI} at (40,65) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 535x19
+                    text run at (0,0) width 535: "This list item has a top margin of 25px, which should cause it to be offset in some fashion."
+                LayoutListItem {LI} at (40,85) size 707x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 278x19
+                    text run at (0,0) width 278: "This list item has no special styles applied to it."
+              LayoutBlockFlow {P} at (4,673.75) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,683.75) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 726x59
+                  text run at (0,0) width 726: "This element has a top margin of -10px, which should cause it to be shifted \"upward\" on the page, and no bottom margin."
+                  text run at (0,20) width 468: "No other styles have been applied to it besides a light blue background color. "
+                  text run at (467,20) width 257: "In all other respects, the element should be"
+                  text run at (0,40) width 45: "normal."
+layer at (8,182) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,174) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_top_inline-expected.txt
new file mode 100644
index 0000000..d4edea4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/margin_top_inline-expected.txt
@@ -0,0 +1,99 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 392x64
+          text run at (0,0) width 384: ".zero {background-color: silver; margin-top: 0;}"
+          text run at (384,0) width 0: " "
+          text run at (0,16) width 384: ".one {margin-top: 25px; background-color: aqua;}"
+          text run at (384,16) width 0: " "
+          text run at (0,32) width 392: ".two {margin-top: -10px; background-color: aqua;}"
+          text run at (392,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 784x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 452x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 85: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 713x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (451,0) size 134x19
+            text run at (451,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (584,3) size 25x16
+              text run at (584,3) width 25: "one"
+          LayoutText {#text} at (608,0) size 713x39
+            text run at (608,0) width 105: ", giving it an aqua"
+            text run at (0,20) width 212: "background and a 25px top margin"
+        LayoutText {#text} at (211,20) size 753x39
+          text run at (211,20) width 9: ". "
+          text run at (219,20) width 534: "Margins on inline elements do not affect line-height calculations, so all lines in this element"
+          text run at (0,40) width 197: "should have the same line-height."
+      LayoutBlockFlow {P} at (0,207) size 784x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 452x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 85: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 775x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (451,0) size 134x19
+            text run at (451,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (584,3) size 25x16
+              text run at (584,3) width 25: "two"
+          LayoutText {#text} at (608,0) size 775x39
+            text run at (608,0) width 167: ", giving the inline element an"
+            text run at (0,20) width 251: "aqua background and a -10px top margin"
+        LayoutText {#text} at (250,20) size 742x39
+          text run at (250,20) width 9: ". "
+          text run at (258,20) width 484: "Margins on inline elements do not affect line-height calculations, so all lines in this"
+          text run at (0,40) width 247: "element should have the same line-height."
+      LayoutTable {TABLE} at (0,283) size 784x174 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x172
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x144
+            LayoutTableCell {TD} at (0,86) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x144 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 452x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 85: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 713x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (451,0) size 134x19
+                    text run at (451,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (584,3) size 25x16
+                      text run at (584,3) width 25: "one"
+                  LayoutText {#text} at (608,0) size 713x39
+                    text run at (608,0) width 105: ", giving it an aqua"
+                    text run at (0,20) width 212: "background and a 25px top margin"
+                LayoutText {#text} at (211,20) size 753x39
+                  text run at (211,20) width 9: ". "
+                  text run at (219,20) width 534: "Margins on inline elements do not affect line-height calculations, so all lines in this element"
+                  text run at (0,40) width 197: "should have the same line-height."
+              LayoutBlockFlow {P} at (4,80) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 452x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 85: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 757x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (451,0) size 134x19
+                    text run at (451,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (584,3) size 25x16
+                      text run at (584,3) width 25: "two"
+                  LayoutText {#text} at (608,0) size 757x39
+                    text run at (608,0) width 149: ", giving the inline element"
+                    text run at (0,20) width 269: "an aqua background and a -10px top margin"
+                LayoutText {#text} at (268,20) size 760x39
+                  text run at (268,20) width 9: ". "
+                  text run at (276,20) width 484: "Margins on inline elements do not affect line-height calculations, so all lines in this"
+                  text run at (0,40) width 247: "element should have the same line-height."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding-expected.txt
new file mode 100644
index 0000000..346335b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding-expected.txt
@@ -0,0 +1,92 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2284
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2284 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2283.50
+    LayoutBlockFlow {BODY} at (8,8) size 769x2267.50 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 376x96
+          text run at (0,0) width 360: ".zero {background-color: silver; padding: 0;}"
+          text run at (360,0) width 0: " "
+          text run at (0,16) width 368: ".one {padding: 0.5in; background-color: aqua;}"
+          text run at (368,16) width 0: " "
+          text run at (0,32) width 360: ".two {padding: 25px; background-color: aqua;}"
+          text run at (360,32) width 0: " "
+          text run at (0,48) width 368: ".three {padding: 5em; background-color: aqua;}"
+          text run at (368,48) width 0: " "
+          text run at (0,64) width 360: ".four {padding: 25%; background-color: aqua;}"
+          text run at (360,64) width 0: " "
+          text run at (0,80) width 376: ".five {padding: -20px; background-color: aqua;}"
+          text run at (376,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,199) size 769x136 [bgcolor=#00FFFF]
+        LayoutText {#text} at (48,48) size 653x39
+          text run at (48,48) width 624: "This element should have an overall padding of half an inch, which will require extra text in order to test. "
+          text run at (672,48) width 29: "Both"
+          text run at (48,68) width 408: "the content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,351) size 769x90 [bgcolor=#00FFFF]
+        LayoutText {#text} at (25,25) size 710x39
+          text run at (25,25) width 611: "This element should have an overall padding of 25 pixels, which will require extra text in order to test. "
+          text run at (636,25) width 99: "Both the content"
+          text run at (25,45) width 338: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,457) size 769x200 [bgcolor=#00FFFF]
+        LayoutText {#text} at (80,80) size 583x39
+          text run at (80,80) width 583: "This element should have an overall padding of 5 em, which will require extra text in order to test."
+          text run at (80,100) width 441: "Both the content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,673) size 769x464.50 [bgcolor=#00FFFF]
+        LayoutText {#text} at (192,192) size 380x79
+          text run at (192,192) width 370: "This element should have an overall padding of 25%, which is"
+          text run at (192,212) width 351: "calculated with respect to the width of the parent element. "
+          text run at (542,212) width 30: "Both"
+          text run at (192,232) width 371: "the content background and the padding should be aqua (light"
+          text run at (192,252) width 35: "blue)."
+      LayoutBlockFlow {P} at (0,1153.50) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 733x39
+          text run at (0,0) width 510: "This element should have no padding, since negative padding values are not allowed. "
+          text run at (510,0) width 223: "Both the content background and the"
+          text run at (0,20) width 259: "normal padding should be aqua (light blue)."
+      LayoutTable {TABLE} at (0,1209.50) size 769x1058 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1056
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x1028
+            LayoutTableCell {TD} at (0,528) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x1027.50 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 747x136 [bgcolor=#00FFFF]
+                LayoutText {#text} at (48,48) size 620x39
+                  text run at (48,48) width 620: "This element should have an overall padding of half an inch, which will require extra text in order to test."
+                  text run at (48,68) width 441: "Both the content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,192) size 747x90 [bgcolor=#00FFFF]
+                LayoutText {#text} at (25,25) size 662x39
+                  text run at (25,25) width 611: "This element should have an overall padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (636,25) width 51: "Both the"
+                  text run at (25,45) width 386: "content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,298) size 747x200 [bgcolor=#00FFFF]
+                LayoutText {#text} at (80,80) size 583x39
+                  text run at (80,80) width 583: "This element should have an overall padding of 5 em, which will require extra text in order to test."
+                  text run at (80,100) width 441: "Both the content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,514) size 747x453.50 [bgcolor=#00FFFF]
+                LayoutText {#text} at (186,187) size 371x79
+                  text run at (186,187) width 370: "This element should have an overall padding of 25%, which is"
+                  text run at (186,207) width 347: "calculated with respect to the width of the parent element."
+                  text run at (186,227) width 371: "Both the content background and the padding should be aqua"
+                  text run at (186,247) width 68: "(light blue)."
+              LayoutBlockFlow {P} at (4,983.50) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 733x39
+                  text run at (0,0) width 510: "This element should have no padding, since negative padding values are not allowed. "
+                  text run at (510,0) width 223: "Both the content background and the"
+                  text run at (0,20) width 259: "normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_bottom-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_bottom-expected.txt
new file mode 100644
index 0000000..8c24c1b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_bottom-expected.txt
@@ -0,0 +1,100 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1590
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1590 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1590.25
+    LayoutBlockFlow {BODY} at (8,8) size 769x1574.25 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 432x96
+          text run at (0,0) width 416: ".zero {background-color: silver; padding-bottom: 0;}"
+          text run at (416,0) width 0: " "
+          text run at (0,16) width 424: ".one {padding-bottom: 0.5in; background-color: aqua;}"
+          text run at (424,16) width 0: " "
+          text run at (0,32) width 416: ".two {padding-bottom: 25px; background-color: aqua;}"
+          text run at (416,32) width 0: " "
+          text run at (0,48) width 424: ".three {padding-bottom: 5em; background-color: aqua;}"
+          text run at (424,48) width 0: " "
+          text run at (0,64) width 416: ".four {padding-bottom: 25%; background-color: aqua;}"
+          text run at (416,64) width 0: " "
+          text run at (0,80) width 432: ".five {padding-bottom: -20px; background-color: aqua;}"
+          text run at (432,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,199) size 769x88 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 719x39
+          text run at (0,0) width 620: "This element should have a bottom padding of half an inch, which will require extra text in order to test. "
+          text run at (620,0) width 99: "Both the content"
+          text run at (0,20) width 338: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,303) size 769x65 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 706x39
+          text run at (0,0) width 607: "This element should have a bottom padding of 25 pixels, which will require extra text in order to test. "
+          text run at (607,0) width 99: "Both the content"
+          text run at (0,20) width 338: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,384) size 769x120 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 758x39
+          text run at (0,0) width 583: "This element should have a bottom padding of 5 em, which will require extra text in order to test. "
+          text run at (583,0) width 175: "Both the content background"
+          text run at (0,20) width 262: "and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,520) size 769x232.25 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 768x39
+          text run at (0,0) width 719: "This element should have a bottom padding of 25%, which is calculated with respect to the width of the parent element. "
+          text run at (719,0) width 49: "This will"
+          text run at (0,20) width 202: "require extra text in order to test. "
+          text run at (202,20) width 441: "Both the content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,768.25) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,804.25) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 758x39
+          text run at (0,0) width 557: "This element should have no bottom padding, since negative padding values are not allowed. "
+          text run at (557,0) width 201: "Both the content background and"
+          text run at (0,20) width 281: "the normal padding should be aqua (light blue)."
+      LayoutTable {TABLE} at (0,860.25) size 769x714 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x712
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x684
+            LayoutTableCell {TD} at (0,356) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x683.75 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 747x88 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 719x39
+                  text run at (0,0) width 620: "This element should have a bottom padding of half an inch, which will require extra text in order to test. "
+                  text run at (620,0) width 99: "Both the content"
+                  text run at (0,20) width 338: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,144) size 747x65 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 706x39
+                  text run at (0,0) width 607: "This element should have a bottom padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (607,0) width 99: "Both the content"
+                  text run at (0,20) width 338: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,225) size 747x120 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 682x39
+                  text run at (0,0) width 583: "This element should have a bottom padding of 5 em, which will require extra text in order to test. "
+                  text run at (583,0) width 99: "Both the content"
+                  text run at (0,20) width 338: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,361) size 747x226.75 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 744x39
+                  text run at (0,0) width 719: "This element should have a bottom padding of 25%, which is calculated with respect to the width of the parent element. "
+                  text run at (719,0) width 25: "This"
+                  text run at (0,20) width 226: "will require extra text in order to test. "
+                  text run at (226,20) width 441: "Both the content background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,603.75) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,639.75) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 732x39
+                  text run at (0,0) width 557: "This element should have no bottom padding, since negative padding values are not allowed. "
+                  text run at (557,0) width 175: "Both the content background"
+                  text run at (0,20) width 307: "and the normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_bottom_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_bottom_inline-expected.txt
new file mode 100644
index 0000000..363091c5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_bottom_inline-expected.txt
@@ -0,0 +1,101 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 424x48
+          text run at (0,0) width 416: ".one {padding-bottom: 25px; background-color: aqua;}"
+          text run at (416,0) width 0: " "
+          text run at (0,16) width 424: ".two {padding-bottom: -10px; background-color: aqua;}"
+          text run at (424,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x80 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 452x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 85: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 713x64 [bgcolor=#00FFFF]
+          LayoutText {#text} at (451,0) size 134x19
+            text run at (451,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (584,3) size 25x16
+              text run at (584,3) width 25: "one"
+          LayoutText {#text} at (608,0) size 713x39
+            text run at (608,0) width 105: ", giving it an aqua"
+            text run at (0,20) width 243: "background and a 25px bottom padding"
+        LayoutText {#text} at (243,20) size 775x59
+          text run at (243,20) width 8: ". "
+          text run at (251,20) width 496: "Padding on inline elements does not affect line-height calculations, so all lines in this"
+          text run at (0,40) width 251: "element should have the same line-height. "
+          text run at (251,40) width 524: "There may be implementation-specific limits on how much of the padding the user agent"
+          text run at (0,60) width 103: "is able to display."
+      LayoutBlockFlow {P} at (0,211) size 784x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 452x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 85: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 713x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (451,0) size 134x19
+            text run at (451,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (584,3) size 25x16
+              text run at (584,3) width 25: "two"
+          LayoutText {#text} at (608,0) size 713x39
+            text run at (608,0) width 105: ", giving it an aqua"
+            text run at (0,20) width 497: "background and no bottom padding, since negative padding values are not allowed"
+        LayoutText {#text} at (497,20) size 756x39
+          text run at (497,20) width 8: ". "
+          text run at (505,20) width 251: "Padding on inline elements does not affect"
+          text run at (0,40) width 492: "line-height calculations, so all lines in this element should have the same line-height."
+      LayoutTable {TABLE} at (0,287) size 784x194 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x192
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x164
+            LayoutTableCell {TD} at (0,96) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x164 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x80 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 452x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 85: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 713x64 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (451,0) size 134x19
+                    text run at (451,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (584,3) size 25x16
+                      text run at (584,3) width 25: "one"
+                  LayoutText {#text} at (608,0) size 713x39
+                    text run at (608,0) width 105: ", giving it an aqua"
+                    text run at (0,20) width 243: "background and a 25px bottom padding"
+                LayoutText {#text} at (243,20) size 747x59
+                  text run at (243,20) width 8: ". "
+                  text run at (251,20) width 496: "Padding on inline elements does not affect line-height calculations, so all lines in this"
+                  text run at (0,40) width 251: "element should have the same line-height. "
+                  text run at (251,40) width 488: "There may be implementation-specific limits on how much of the padding the user"
+                  text run at (0,60) width 139: "agent is able to display."
+              LayoutBlockFlow {P} at (4,100) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 452x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 85: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 713x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (451,0) size 134x19
+                    text run at (451,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (584,3) size 25x16
+                      text run at (584,3) width 25: "two"
+                  LayoutText {#text} at (608,0) size 713x39
+                    text run at (608,0) width 105: ", giving it an aqua"
+                    text run at (0,20) width 497: "background and no bottom padding, since negative padding values are not allowed"
+                LayoutText {#text} at (497,20) size 756x39
+                  text run at (497,20) width 8: ". "
+                  text run at (505,20) width 251: "Padding on inline elements does not affect"
+                  text run at (0,40) width 492: "line-height calculations, so all lines in this element should have the same line-height."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_inline-expected.txt
new file mode 100644
index 0000000..f673b082
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_inline-expected.txt
@@ -0,0 +1,127 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 809
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x809 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x809
+    LayoutBlockFlow {BODY} at (8,8) size 769x793 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 368x64
+          text run at (0,0) width 360: ".zero {background-color: silver; padding: 0;}"
+          text run at (360,0) width 0: " "
+          text run at (0,16) width 360: ".one {padding: 25px; background-color: aqua;}"
+          text run at (360,16) width 0: " "
+          text run at (0,32) width 368: ".two {padding: -10px; background-color: aqua;}"
+          text run at (368,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,167) size 769x120 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 452x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 85: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 738x89 [bgcolor=#00FFFF]
+          LayoutText {#text} at (476,0) size 134x19
+            text run at (476,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (609,3) size 25x16
+              text run at (609,3) width 25: "one"
+          LayoutText {#text} at (633,0) size 738x39
+            text run at (633,0) width 105: ", giving it an aqua"
+            text run at (0,20) width 196: "background and a 25px padding"
+        LayoutText {#text} at (221,20) size 739x99
+          text run at (221,20) width 8: ". "
+          text run at (229,20) width 496: "Padding on inline elements does not affect line-height calculations, so all lines in this"
+          text run at (0,40) width 251: "element should have the same line-height. "
+          text run at (251,40) width 488: "There may be implementation-specific limits on how much of the padding the user"
+          text run at (0,60) width 308: "agent is able to display above and below each line. "
+          text run at (308,60) width 431: "However, there should be at least 25px of padding to the left side of the"
+          text run at (0,80) width 720: "inline box in the first line it appears, and 25px of padding to the right side of the inline element box in the last line where it"
+          text run at (0,100) width 52: "appears."
+      LayoutBlockFlow {P} at (0,303) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,339) size 769x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 452x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 85: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 713x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (451,0) size 134x19
+            text run at (451,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (584,3) size 25x16
+              text run at (584,3) width 25: "two"
+          LayoutText {#text} at (608,0) size 713x39
+            text run at (608,0) width 105: ", giving it an aqua"
+            text run at (0,20) width 450: "background and no padding, since negative padding values are not allowed"
+        LayoutText {#text} at (450,20) size 739x39
+          text run at (450,20) width 8: ". "
+          text run at (458,20) width 281: "Padding on inline elements does not affect line-"
+          text run at (0,40) width 466: "height calculations, so all lines in this element should have the same line-height."
+      LayoutBlockFlow {P} at (0,415) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutTable {TABLE} at (0,451) size 769x342 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x340
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x312
+            LayoutTableCell {TD} at (0,170) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x312 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 747x120 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 452x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 85: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 738x89 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (476,0) size 134x19
+                    text run at (476,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (609,3) size 25x16
+                      text run at (609,3) width 25: "one"
+                  LayoutText {#text} at (633,0) size 738x39
+                    text run at (633,0) width 105: ", giving it an aqua"
+                    text run at (0,20) width 196: "background and a 25px padding"
+                LayoutText {#text} at (221,20) size 739x99
+                  text run at (221,20) width 8: ". "
+                  text run at (229,20) width 496: "Padding on inline elements does not affect line-height calculations, so all lines in this"
+                  text run at (0,40) width 251: "element should have the same line-height. "
+                  text run at (251,40) width 488: "There may be implementation-specific limits on how much of the padding the user"
+                  text run at (0,60) width 308: "agent is able to display above and below each line. "
+                  text run at (308,60) width 431: "However, there should be at least 25px of padding to the left side of the"
+                  text run at (0,80) width 720: "inline box in the first line it appears, and 25px of padding to the right side of the inline element box in the last line where it"
+                  text run at (0,100) width 52: "appears."
+              LayoutBlockFlow {P} at (4,176) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,212) size 747x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 452x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 85: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 713x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (451,0) size 134x19
+                    text run at (451,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (584,3) size 25x16
+                      text run at (584,3) width 25: "two"
+                  LayoutText {#text} at (608,0) size 713x39
+                    text run at (608,0) width 105: ", giving it an aqua"
+                    text run at (0,20) width 450: "background and no padding, since negative padding values are not allowed"
+                LayoutText {#text} at (450,20) size 739x39
+                  text run at (450,20) width 8: ". "
+                  text run at (458,20) width 281: "Padding on inline elements does not affect line-"
+                  text run at (0,40) width 466: "height calculations, so all lines in this element should have the same line-height."
+              LayoutBlockFlow {P} at (4,288) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_left-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_left-expected.txt
new file mode 100644
index 0000000..968c6e9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_left-expected.txt
@@ -0,0 +1,116 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1045
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1045 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1045
+    LayoutBlockFlow {BODY} at (8,8) size 769x1029 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 416x96
+          text run at (0,0) width 400: ".zero {background-color: silver; padding-left: 0;}"
+          text run at (400,0) width 0: " "
+          text run at (0,16) width 408: ".one {padding-left: 0.5in; background-color: aqua;}"
+          text run at (408,16) width 0: " "
+          text run at (0,32) width 400: ".two {padding-left: 25px; background-color: aqua;}"
+          text run at (400,32) width 0: " "
+          text run at (0,48) width 408: ".three {padding-left: 5em; background-color: aqua;}"
+          text run at (408,48) width 0: " "
+          text run at (0,64) width 400: ".four {padding-left: 25%; background-color: aqua;}"
+          text run at (400,64) width 0: " "
+          text run at (0,80) width 416: ".five {padding-left: -20px; background-color: aqua;}"
+          text run at (416,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,199) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (48,0) size 694x39
+          text run at (48,0) width 595: "This element should have a left padding of half an inch, which will require extra text in order to test. "
+          text run at (643,0) width 99: "Both the content"
+          text run at (48,20) width 338: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,255) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (25,0) size 681x39
+          text run at (25,0) width 582: "This element should have a left padding of 25 pixels, which will require extra text in order to test. "
+          text run at (607,0) width 99: "Both the content"
+          text run at (25,20) width 338: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,311) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (80,0) size 653x39
+          text run at (80,0) width 554: "This element should have a left padding of 5em, which will require extra text in order to test. "
+          text run at (634,0) width 99: "Both the content"
+          text run at (80,20) width 338: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,367) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (192,0) size 573x39
+          text run at (192,0) width 573: "This element should have a left padding of 25%, which is calculated with respect to the width of"
+          text run at (192,20) width 119: "the parent element. "
+          text run at (310,20) width 442: "Both the content background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {UL} at (0,423) size 769x80 [bgcolor=#808080]
+        LayoutListItem {LI} at (25,0) size 744x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 682x19
+            text run at (0,0) width 682: "The left padding on this unordered list has been set to 25 pixels, which will require some extra test in order to test."
+        LayoutListItem {LI} at (25,20) size 744x60 [bgcolor=#FFFFFF]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (25,0) size 709x59
+            text run at (25,0) width 684: "Another list item might not be such a bad idea, either, considering that such things do need to be double-checked. "
+            text run at (708,0) width 26: "This"
+            text run at (25,20) width 683: "list item has its left padding also set to 25 pixels, which should combine with the list's padding to make 50 pixels of"
+            text run at (25,40) width 44: "margin."
+      LayoutBlockFlow {P} at (0,519) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 755x39
+          text run at (0,0) width 532: "This element should have no left padding, since negative padding values are not allowed. "
+          text run at (532,0) width 223: "Both the content background and the"
+          text run at (0,20) width 259: "normal padding should be aqua (light blue)."
+      LayoutTable {TABLE} at (0,575) size 769x454 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x452
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x424
+            LayoutTableCell {TD} at (0,226) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x424 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (48,0) size 694x39
+                  text run at (48,0) width 595: "This element should have a left padding of half an inch, which will require extra text in order to test. "
+                  text run at (643,0) width 99: "Both the content"
+                  text run at (48,20) width 338: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,96) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (25,0) size 681x39
+                  text run at (25,0) width 582: "This element should have a left padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (607,0) width 99: "Both the content"
+                  text run at (25,20) width 338: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,152) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (80,0) size 653x39
+                  text run at (80,0) width 554: "This element should have a left padding of 5em, which will require extra text in order to test. "
+                  text run at (634,0) width 99: "Both the content"
+                  text run at (80,20) width 338: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,208) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (186,0) size 557x59
+                  text run at (186,0) width 557: "This element should have a left padding of 25%, which is calculated with respect to the width"
+                  text run at (186,20) width 135: "of the parent element. "
+                  text run at (320,20) width 404: "Both the content background and the padding should be aqua (light"
+                  text run at (186,40) width 35: "blue)."
+              LayoutBlockFlow {UL} at (4,284) size 747x80 [bgcolor=#808080]
+                LayoutListItem {LI} at (25,0) size 722x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 682x19
+                    text run at (0,0) width 682: "The left padding on this unordered list has been set to 25 pixels, which will require some extra test in order to test."
+                LayoutListItem {LI} at (25,20) size 722x60 [bgcolor=#FFFFFF]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (25,0) size 696x59
+                    text run at (25,0) width 680: "Another list item might not be such a bad idea, either, considering that such things do need to be double-checked."
+                    text run at (25,20) width 696: "This list item has its left padding also set to 25 pixels, which should combine with the list's padding to make 50 pixels"
+                    text run at (25,40) width 60: "of margin."
+              LayoutBlockFlow {P} at (4,380) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 733x39
+                  text run at (0,0) width 532: "This element should have no left padding, since negative padding values are not allowed. "
+                  text run at (532,0) width 201: "Both the content background and"
+                  text run at (0,20) width 281: "the normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_left_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_left_inline-expected.txt
new file mode 100644
index 0000000..6af1111
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_left_inline-expected.txt
@@ -0,0 +1,101 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 408x48
+          text run at (0,0) width 400: ".one {padding-left: 25px; background-color: aqua;}"
+          text run at (400,0) width 0: " "
+          text run at (0,16) width 408: ".two {padding-left: -10px; background-color: aqua;}"
+          text run at (408,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x40 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 514x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 147: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 183x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (538,0) size 134x19
+            text run at (538,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (671,3) size 25x16
+              text run at (671,3) width 25: "one"
+        LayoutText {#text} at (695,0) size 778x39
+          text run at (695,0) width 83: " which should"
+          text run at (0,20) width 450: "result in 25-pixel left padding (which should also be a light blue) only in the "
+        LayoutInline {STRONG} at (0,0) size 27x19
+          LayoutText {#text} at (450,20) size 27x19
+            text run at (450,20) width 27: "first"
+        LayoutText {#text} at (477,20) size 216x19
+          text run at (477,20) width 216: " line in which the inline box appears."
+      LayoutBlockFlow {P} at (0,171) size 784x40 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 514x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 147: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 158x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (513,0) size 134x19
+            text run at (513,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (646,3) size 25x16
+              text run at (646,3) width 25: "two"
+        LayoutText {#text} at (670,0) size 753x39
+          text run at (670,0) width 83: " which should"
+          text run at (0,20) width 437: "result in -10px left padding (which should also be a light blue) only in the "
+        LayoutInline {STRONG} at (0,0) size 27x19
+          LayoutText {#text} at (437,20) size 27x19
+            text run at (437,20) width 27: "first"
+        LayoutText {#text} at (464,20) size 216x19
+          text run at (464,20) width 216: " line in which the inline box appears."
+      LayoutTable {TABLE} at (0,227) size 784x134 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x132
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x104
+            LayoutTableCell {TD} at (0,66) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x104 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x40 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 514x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 147: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 183x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (538,0) size 134x19
+                    text run at (538,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (671,3) size 25x16
+                      text run at (671,3) width 25: "one"
+                LayoutText {#text} at (695,0) size 735x39
+                  text run at (695,0) width 40: " which"
+                  text run at (0,20) width 493: "should result in 25-pixel left padding (which should also be a light blue) only in the "
+                LayoutInline {STRONG} at (0,0) size 27x19
+                  LayoutText {#text} at (493,20) size 27x19
+                    text run at (493,20) width 27: "first"
+                LayoutText {#text} at (520,20) size 216x19
+                  text run at (520,20) width 216: " line in which the inline box appears."
+              LayoutBlockFlow {P} at (4,60) size 762x40 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 514x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 147: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 158x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (513,0) size 134x19
+                    text run at (513,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (646,3) size 25x16
+                      text run at (646,3) width 25: "two"
+                LayoutText {#text} at (670,0) size 753x39
+                  text run at (670,0) width 83: " which should"
+                  text run at (0,20) width 437: "result in -10px left padding (which should also be a light blue) only in the "
+                LayoutInline {STRONG} at (0,0) size 27x19
+                  LayoutText {#text} at (437,20) size 27x19
+                    text run at (437,20) width 27: "first"
+                LayoutText {#text} at (464,20) size 216x19
+                  text run at (464,20) width 216: " line in which the inline box appears."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_right-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_right-expected.txt
new file mode 100644
index 0000000..a7445fe0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_right-expected.txt
@@ -0,0 +1,131 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1185
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1185 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1185
+    LayoutBlockFlow {BODY} at (8,8) size 769x1169 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 576x96
+          text run at (0,0) width 408: ".zero {background-color: silver; padding-right: 0;}"
+          text run at (408,0) width 0: " "
+          text run at (0,16) width 568: ".one {padding-right: 0.5in; text-align: right; background-color: aqua;}"
+          text run at (568,16) width 0: " "
+          text run at (0,32) width 560: ".two {padding-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (560,32) width 0: " "
+          text run at (0,48) width 568: ".three {padding-right: 5em; text-align: right; background-color: aqua;}"
+          text run at (568,48) width 0: " "
+          text run at (0,64) width 560: ".four {padding-right: 25%; text-align: right; background-color: aqua;}"
+          text run at (560,64) width 0: " "
+          text run at (0,80) width 576: ".five {padding-right: -20px; text-align: right; background-color: aqua;}"
+          text run at (576,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,199) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (19,0) size 702x59
+          text run at (19,0) width 603: "This element should have a right padding of half an inch, which will require extra text in order to test. "
+          text run at (622,0) width 99: "Both the content"
+          text run at (39,20) width 342: "background and the padding should be aqua (light blue). "
+          text run at (381,20) width 340: "The text has been right-aligned in order to make the right"
+          text run at (590,40) width 131: "padding easier to see."
+      LayoutBlockFlow {P} at (0,275) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (55,0) size 734x59
+          text run at (55,0) width 590: "This element should have a right padding of 25 pixels, which will require extra text in order to test. "
+          text run at (645,0) width 99: "Both the content"
+          text run at (10,20) width 342: "background and the padding should be aqua (light blue). "
+          text run at (352,20) width 392: "The text has been right-aligned in order to make the right padding"
+          text run at (665,40) width 79: "easier to see."
+      LayoutBlockFlow {P} at (0,351) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (24,0) size 682x59
+          text run at (24,0) width 566: "This element should have a right padding of 5 em, which will require extra text in order to test. "
+          text run at (590,0) width 99: "Both the content"
+          text run at (7,20) width 342: "background and the padding should be aqua (light blue). "
+          text run at (349,20) width 340: "The text has been right-aligned in order to make the right"
+          text run at (558,40) width 131: "padding easier to see."
+      LayoutBlockFlow {P} at (0,427) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (12,0) size 576x59
+          text run at (12,0) width 565: "This element should have a right padding of 25%, which is calculated with respect to the width"
+          text run at (1,20) width 135: "of the parent element. "
+          text run at (135,20) width 442: "Both the content background and the padding should be aqua (light blue)."
+          text run at (101,40) width 476: "The text has been right-aligned in order to make the right padding easier to see."
+      LayoutBlockFlow {UL} at (0,503) size 769x40 [bgcolor=#808080]
+        LayoutListItem {LI} at (40,0) size 704x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (13,0) size 691x19
+            text run at (13,0) width 691: "The right padding on this unordered list has been set to 25 pixels, which will require some extra text in order to test."
+        LayoutListItem {LI} at (40,20) size 704x20 [bgcolor=#FFFFFF]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (5,0) size 674x19
+            text run at (5,0) width 674: "This list item has a right padding of 25 pixels, which will appear to the left of the gray padding of the UL element."
+      LayoutBlockFlow {P} at (0,559) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (6,0) size 763x59
+          text run at (6,0) width 540: "This element should have no right padding, since negative padding values are not allowed. "
+          text run at (546,0) width 223: "Both the content background and the"
+          text run at (14,20) width 263: "normal padding should be aqua (light blue). "
+          text run at (277,20) width 492: "The text has been right-aligned in order to make the lack of right padding easier to"
+          text run at (745,40) width 24: "see."
+      LayoutTable {TABLE} at (0,635) size 769x534 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x532
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x504
+            LayoutTableCell {TD} at (0,266) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x504 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (45,0) size 678x59
+                  text run at (45,0) width 603: "This element should have a right padding of half an inch, which will require extra text in order to test. "
+                  text run at (648,0) width 51: "Both the"
+                  text run at (21,20) width 390: "content background and the padding should be aqua (light blue). "
+                  text run at (411,20) width 288: "The text has been right-aligned in order to make"
+                  text run at (516,40) width 183: "the right padding easier to see."
+              LayoutBlockFlow {P} at (4,116) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (33,0) size 689x59
+                  text run at (33,0) width 590: "This element should have a right padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (623,0) width 99: "Both the content"
+                  text run at (40,20) width 342: "background and the padding should be aqua (light blue). "
+                  text run at (382,20) width 340: "The text has been right-aligned in order to make the right"
+                  text run at (591,40) width 131: "padding easier to see."
+              LayoutBlockFlow {P} at (4,192) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (2,0) size 665x59
+                  text run at (2,0) width 566: "This element should have a right padding of 5 em, which will require extra text in order to test. "
+                  text run at (568,0) width 99: "Both the content"
+                  text run at (15,20) width 342: "background and the padding should be aqua (light blue). "
+                  text run at (357,20) width 310: "The text has been right-aligned in order to make the"
+                  text run at (506,40) width 161: "right padding easier to see."
+              LayoutBlockFlow {P} at (4,268) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (33,0) size 547x59
+                  text run at (33,0) width 528: "This element should have a right padding of 25%, which is calculated with respect to the"
+                  text run at (19,20) width 172: "width of the parent element. "
+                  text run at (190,20) width 371: "Both the content background and the padding should be aqua"
+                  text run at (14,40) width 72: "(light blue). "
+                  text run at (85,40) width 476: "The text has been right-aligned in order to make the right padding easier to see."
+              LayoutBlockFlow {UL} at (4,344) size 747x80 [bgcolor=#808080]
+                LayoutListItem {LI} at (40,0) size 682x40
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (20,0) size 662x39
+                    text run at (20,0) width 662: "The right padding on this unordered list has been set to 25 pixels, which will require some extra text in order to"
+                    text run at (657,20) width 25: "test."
+                LayoutListItem {LI} at (40,40) size 682x40 [bgcolor=#FFFFFF]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (37,0) size 620x39
+                    text run at (37,0) width 620: "This list item has a right padding of 25 pixels, which will appear to the left of the gray padding of the UL"
+                    text run at (607,20) width 50: "element."
+              LayoutBlockFlow {P} at (4,440) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (6,0) size 741x59
+                  text run at (6,0) width 540: "This element should have no right padding, since negative padding values are not allowed. "
+                  text run at (546,0) width 201: "Both the content background and"
+                  text run at (25,20) width 285: "the normal padding should be aqua (light blue). "
+                  text run at (310,20) width 437: "The text has been right-aligned in order to make the lack of right padding"
+                  text run at (668,40) width 79: "easier to see."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_right_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_right_inline-expected.txt
new file mode 100644
index 0000000..028b1b0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_right_inline-expected.txt
@@ -0,0 +1,101 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 568x48
+          text run at (0,0) width 560: ".one {padding-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (560,0) width 0: " "
+          text run at (0,16) width 568: ".two {padding-right: -10px; text-align: right; background-color: aqua;}"
+          text run at (568,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x40 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 514x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 147: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 183x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (513,0) size 134x19
+            text run at (513,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (646,3) size 25x16
+              text run at (646,3) width 25: "one"
+        LayoutText {#text} at (695,0) size 782x39
+          text run at (695,0) width 87: ", which should"
+          text run at (0,20) width 447: "result in 25-pixel right padding (which should also be light blue) only in the "
+        LayoutInline {STRONG} at (0,0) size 24x19
+          LayoutText {#text} at (447,20) size 24x19
+            text run at (447,20) width 24: "last"
+        LayoutText {#text} at (471,20) size 216x19
+          text run at (471,20) width 216: " line in which the inline box appears."
+      LayoutBlockFlow {P} at (0,171) size 784x40 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 514x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 147: "However, it contains an "
+        LayoutInline {SPAN} at (0,0) size 158x19 [bgcolor=#00FFFF]
+          LayoutText {#text} at (513,0) size 134x19
+            text run at (513,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (646,3) size 25x16
+              text run at (646,3) width 25: "two"
+        LayoutText {#text} at (670,0) size 757x39
+          text run at (670,0) width 87: ", which should"
+          text run at (0,20) width 472: "result in no right padding, since negative padding values are not allowed, in the "
+        LayoutInline {STRONG} at (0,0) size 24x19
+          LayoutText {#text} at (472,20) size 24x19
+            text run at (472,20) width 24: "last"
+        LayoutText {#text} at (496,20) size 216x19
+          text run at (496,20) width 216: " line in which the inline box appears."
+      LayoutTable {TABLE} at (0,227) size 784x134 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x132
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x104
+            LayoutTableCell {TD} at (0,66) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x104 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x40 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 514x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 147: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 183x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (513,0) size 134x19
+                    text run at (513,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (646,3) size 25x16
+                      text run at (646,3) width 25: "one"
+                LayoutText {#text} at (695,0) size 739x39
+                  text run at (695,0) width 44: ", which"
+                  text run at (0,20) width 490: "should result in 25-pixel right padding (which should also be light blue) only in the "
+                LayoutInline {STRONG} at (0,0) size 24x19
+                  LayoutText {#text} at (490,20) size 24x19
+                    text run at (490,20) width 24: "last"
+                LayoutText {#text} at (514,20) size 216x19
+                  text run at (514,20) width 216: " line in which the inline box appears."
+              LayoutBlockFlow {P} at (4,60) size 762x40 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 514x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 147: "However, it contains an "
+                LayoutInline {SPAN} at (0,0) size 158x19 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (513,0) size 134x19
+                    text run at (513,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (646,3) size 25x16
+                      text run at (646,3) width 25: "two"
+                LayoutText {#text} at (670,0) size 757x39
+                  text run at (670,0) width 87: ", which should"
+                  text run at (0,20) width 472: "result in no right padding, since negative padding values are not allowed, in the "
+                LayoutInline {STRONG} at (0,0) size 24x19
+                  LayoutText {#text} at (472,20) size 24x19
+                    text run at (472,20) width 24: "last"
+                LayoutText {#text} at (496,20) size 216x19
+                  text run at (496,20) width 216: " line in which the inline box appears."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_top-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_top-expected.txt
new file mode 100644
index 0000000..b546a90
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_top-expected.txt
@@ -0,0 +1,94 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1518
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1518 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1518.25
+    LayoutBlockFlow {BODY} at (8,8) size 769x1502.25 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 408x96
+          text run at (0,0) width 392: ".zero {background-color: silver; padding-top: 0;}"
+          text run at (392,0) width 0: " "
+          text run at (0,16) width 400: ".one {padding-top: 0.5in; background-color: aqua;}"
+          text run at (400,16) width 0: " "
+          text run at (0,32) width 392: ".two {padding-top: 25px; background-color: aqua;}"
+          text run at (392,32) width 0: " "
+          text run at (0,48) width 400: ".three {padding-top: 5em; background-color: aqua;}"
+          text run at (400,48) width 0: " "
+          text run at (0,64) width 392: ".four {padding-top: 25%; background-color: aqua;}"
+          text run at (392,64) width 0: " "
+          text run at (0,80) width 408: ".five {padding-top: -20px; background-color: aqua;}"
+          text run at (408,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20 [bgcolor=#C0C0C0]
+        LayoutText {#text} at (0,0) size 193x19
+          text run at (0,0) width 193: "This element has a class of zero."
+      LayoutBlockFlow {P} at (0,199) size 769x88 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,48) size 696x39
+          text run at (0,48) width 597: "This element should have a top padding of half an inch, which will require extra text in order to test. "
+          text run at (597,48) width 99: "Both the content"
+          text run at (0,68) width 338: "background and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,303) size 769x65 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,25) size 759x39
+          text run at (0,25) width 584: "This element should have a top padding of 25 pixels, which will require extra text in order to test. "
+          text run at (584,25) width 175: "Both the content background"
+          text run at (0,45) width 262: "and the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,384) size 769x120 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,80) size 761x39
+          text run at (0,80) width 560: "This element should have a top padding of 5 em, which will require extra text in order to test. "
+          text run at (560,80) width 201: "Both the content background and"
+          text run at (0,100) width 236: "the padding should be aqua (light blue)."
+      LayoutBlockFlow {P} at (0,520) size 769x232.25 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,192) size 747x39
+          text run at (0,192) width 696: "This element should have a top padding of 25%, which is calculated with respect to the width of the parent element. "
+          text run at (696,192) width 51: "Both the"
+          text run at (0,212) width 390: "content background and the padding should be aqua (light blue). "
+          text run at (390,212) width 251: "This will require extra text in order to test."
+      LayoutBlockFlow {P} at (0,768.25) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 757x39
+          text run at (0,0) width 534: "This element should have no top padding, since negative padding values are not allowed. "
+          text run at (534,0) width 223: "Both the content background and the"
+          text run at (0,20) width 259: "normal padding should be aqua (light blue)."
+      LayoutTable {TABLE} at (0,824.25) size 769x678 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x676
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x648
+            LayoutTableCell {TD} at (0,338) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x647.75 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#C0C0C0]
+                LayoutText {#text} at (0,0) size 193x19
+                  text run at (0,0) width 193: "This element has a class of zero."
+              LayoutBlockFlow {P} at (4,40) size 747x88 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,48) size 696x39
+                  text run at (0,48) width 597: "This element should have a top padding of half an inch, which will require extra text in order to test. "
+                  text run at (597,48) width 99: "Both the content"
+                  text run at (0,68) width 338: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,144) size 747x65 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,25) size 683x39
+                  text run at (0,25) width 584: "This element should have a top padding of 25 pixels, which will require extra text in order to test. "
+                  text run at (584,25) width 99: "Both the content"
+                  text run at (0,45) width 338: "background and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,225) size 747x120 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,80) size 735x39
+                  text run at (0,80) width 560: "This element should have a top padding of 5 em, which will require extra text in order to test. "
+                  text run at (560,80) width 175: "Both the content background"
+                  text run at (0,100) width 262: "and the padding should be aqua (light blue)."
+              LayoutBlockFlow {P} at (4,361) size 747x226.75 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,187) size 747x39
+                  text run at (0,187) width 696: "This element should have a top padding of 25%, which is calculated with respect to the width of the parent element. "
+                  text run at (696,187) width 51: "Both the"
+                  text run at (0,207) width 390: "content background and the padding should be aqua (light blue). "
+                  text run at (390,207) width 251: "This will require extra text in order to test."
+              LayoutBlockFlow {P} at (4,603.75) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 735x39
+                  text run at (0,0) width 534: "This element should have no top padding, since negative padding values are not allowed. "
+                  text run at (534,0) width 201: "Both the content background and"
+                  text run at (0,20) width 281: "the normal padding should be aqua (light blue)."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_top_inline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_top_inline-expected.txt
new file mode 100644
index 0000000..c488791
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/padding_top_inline-expected.txt
@@ -0,0 +1,101 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 400x48
+          text run at (0,0) width 392: ".one {padding-top: 25px; background-color: aqua;}"
+          text run at (392,0) width 0: " "
+          text run at (0,16) width 400: ".two {padding-top: -10px; background-color: aqua;}"
+          text run at (400,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x80 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 452x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 85: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 713x64 [bgcolor=#00FFFF]
+          LayoutText {#text} at (451,0) size 134x19
+            text run at (451,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (584,3) size 25x16
+              text run at (584,3) width 25: "one"
+          LayoutText {#text} at (608,0) size 713x39
+            text run at (608,0) width 105: ", giving it an aqua"
+            text run at (0,20) width 220: "background and a 25px top padding"
+        LayoutText {#text} at (220,20) size 783x59
+          text run at (220,20) width 8: ". "
+          text run at (228,20) width 546: "Padding on inline elements does not affect line-height calculations, so all lines in this element"
+          text run at (0,40) width 201: "should have the same line-height. "
+          text run at (201,40) width 582: "There may be implementation-specific limits on how much of the padding the user agent is able to"
+          text run at (0,60) width 45: "display."
+      LayoutBlockFlow {P} at (0,211) size 784x60 [bgcolor=#808080]
+        LayoutText {#text} at (0,0) size 452x19
+          text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+          text run at (367,0) width 85: "It contains an "
+        LayoutInline {SPAN} at (0,0) size 713x39 [bgcolor=#00FFFF]
+          LayoutText {#text} at (451,0) size 134x19
+            text run at (451,0) width 134: "inline element of class "
+          LayoutInline {TT} at (0,0) size 25x16
+            LayoutText {#text} at (584,3) size 25x16
+              text run at (584,3) width 25: "two"
+          LayoutText {#text} at (608,0) size 713x39
+            text run at (608,0) width 105: ", giving it an aqua"
+            text run at (0,20) width 474: "background and no top padding, since negative padding values are not allowed"
+        LayoutText {#text} at (474,20) size 763x39
+          text run at (474,20) width 8: ". "
+          text run at (482,20) width 281: "Padding on inline elements does not affect line-"
+          text run at (0,40) width 466: "height calculations, so all lines in this element should have the same line-height."
+      LayoutTable {TABLE} at (0,287) size 784x194 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x192
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x164
+            LayoutTableCell {TD} at (0,96) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x164 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x80 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 452x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 85: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 713x64 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (451,0) size 134x19
+                    text run at (451,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (584,3) size 25x16
+                      text run at (584,3) width 25: "one"
+                  LayoutText {#text} at (608,0) size 713x39
+                    text run at (608,0) width 105: ", giving it an aqua"
+                    text run at (0,20) width 220: "background and a 25px top padding"
+                LayoutText {#text} at (220,20) size 739x59
+                  text run at (220,20) width 8: ". "
+                  text run at (228,20) width 496: "Padding on inline elements does not affect line-height calculations, so all lines in this"
+                  text run at (0,40) width 251: "element should have the same line-height. "
+                  text run at (251,40) width 488: "There may be implementation-specific limits on how much of the padding the user"
+                  text run at (0,60) width 139: "agent is able to display."
+              LayoutBlockFlow {P} at (4,100) size 762x60 [bgcolor=#808080]
+                LayoutText {#text} at (0,0) size 452x19
+                  text run at (0,0) width 368: "This element is unstyled save for a background color of gray. "
+                  text run at (367,0) width 85: "It contains an "
+                LayoutInline {SPAN} at (0,0) size 713x39 [bgcolor=#00FFFF]
+                  LayoutText {#text} at (451,0) size 134x19
+                    text run at (451,0) width 134: "inline element of class "
+                  LayoutInline {TT} at (0,0) size 25x16
+                    LayoutText {#text} at (584,3) size 25x16
+                      text run at (584,3) width 25: "two"
+                  LayoutText {#text} at (608,0) size 713x39
+                    text run at (608,0) width 105: ", giving it an aqua"
+                    text run at (0,20) width 474: "background and no top padding, since negative padding values are not allowed"
+                LayoutText {#text} at (474,20) size 733x39
+                  text run at (474,20) width 8: ". "
+                  text run at (482,20) width 251: "Padding on inline elements does not affect"
+                  text run at (0,40) width 492: "line-height calculations, so all lines in this element should have the same line-height."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/width-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/width-expected.txt
new file mode 100644
index 0000000..40613e8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/box_properties/width-expected.txt
@@ -0,0 +1,86 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1391
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1391 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1391
+    LayoutBlockFlow {BODY} at (8,8) size 769x1375 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x48
+        LayoutText {#text} at (0,0) size 152x48
+          text run at (0,0) width 152: ".one {width: 50px;}"
+          text run at (152,0) width 0: " "
+          text run at (0,16) width 144: ".two {width: 50%;}"
+          text run at (144,16) width 0: " "
+          text run at (0,32) width 152: "TABLE {width: 50%;}"
+          text run at (152,32) width 0: " "
+      LayoutBlockFlow (anonymous) at (0,107) size 769x50
+        LayoutImage {IMG} at (0,0) size 50x50
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,173) size 769x20
+        LayoutText {#text} at (0,0) size 271x19
+          text run at (0,0) width 271: "The square above should be fifty pixels wide."
+      LayoutBlockFlow (anonymous) at (0,209) size 769x385
+        LayoutImage {IMG} at (0,0) size 384.50x384.50
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,610) size 769x20
+        LayoutText {#text} at (0,0) size 641x19
+          text run at (0,0) width 641: "The square above should be half as wide as the image's parent element (either the BODY or the table cell)."
+      LayoutBlockFlow {P} at (0,646) size 384.50x100
+        LayoutText {#text} at (0,0) size 361x79
+          text run at (0,0) width 361: "This paragraph should be half the width of its parent element"
+          text run at (0,20) width 358: "(either the BODY or the table, which should itself be half as"
+          text run at (0,40) width 179: "wide as the BODY element). "
+          text run at (179,40) width 168: "This is extra text included to"
+          text run at (0,60) width 233: "ensure that this will be a fair test of the "
+        LayoutInline {CODE} at (0,0) size 40x16
+          LayoutText {#text} at (233,63) size 40x16
+            text run at (233,63) width 40: "width"
+        LayoutText {#text} at (273,60) size 377x39
+          text run at (273,60) width 104: " property without"
+          text run at (0,80) width 303: "the need for the user to resize the viewing window."
+      LayoutTable {TABLE} at (0,762) size 384x613 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 382x611
+          LayoutTableRow {TR} at (0,0) size 382x28
+            LayoutTableCell {TD} at (0,0) size 382x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 382x583
+            LayoutTableCell {TD} at (0,305) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 370x583 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow (anonymous) at (4,4) size 362x50
+                LayoutImage {IMG} at (0,0) size 50x50
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,70) size 362x20
+                LayoutText {#text} at (0,0) size 271x19
+                  text run at (0,0) width 271: "The square above should be fifty pixels wide."
+              LayoutBlockFlow (anonymous) at (4,106) size 362x181
+                LayoutImage {IMG} at (0,0) size 181x181
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,303) size 362x40
+                LayoutText {#text} at (0,0) size 332x39
+                  text run at (0,0) width 332: "The square above should be half as wide as the image's"
+                  text run at (0,20) width 305: "parent element (either the BODY or the table cell)."
+              LayoutBlockFlow {P} at (4,359) size 181x220
+                LayoutText {#text} at (0,0) size 180x159
+                  text run at (0,0) width 177: "This paragraph should be half"
+                  text run at (0,20) width 180: "the width of its parent element"
+                  text run at (0,40) width 147: "(either the BODY or the"
+                  text run at (0,60) width 165: "table, which should itself be"
+                  text run at (0,80) width 158: "half as wide as the BODY"
+                  text run at (0,100) width 59: "element). "
+                  text run at (59,100) width 98: "This is extra text"
+                  text run at (0,120) width 159: "included to ensure that this"
+                  text run at (0,140) width 140: "will be a fair test of the "
+                LayoutInline {CODE} at (0,0) size 40x16
+                  LayoutText {#text} at (140,143) size 40x16
+                    text run at (140,143) width 40: "width"
+                LayoutText {#text} at (0,160) size 176x59
+                  text run at (0,160) width 176: "property without the need for"
+                  text run at (0,180) width 172: "the user to resize the viewing"
+                  text run at (0,200) width 51: "window."
+layer at (8,105) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/cascade/cascade_order-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/cascade/cascade_order-expected.txt
new file mode 100644
index 0000000..28833e3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/cascade/cascade_order-expected.txt
@@ -0,0 +1,143 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 849
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x849 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x849
+    LayoutBlockFlow {BODY} at (8,8) size 769x833 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x176
+        LayoutText {#text} at (0,0) size 576x176
+          text run at (0,0) width 576: "<LINK rel=\"stylesheet\" type=\"text/css\" HREF=\"../resources/linktest.css\">"
+          text run at (576,0) width 0: " "
+          text run at (0,16) width 152: "LI {color: purple;}"
+          text run at (152,16) width 0: " "
+          text run at (0,32) width 160: "UL LI {color: blue;}"
+          text run at (160,32) width 0: " "
+          text run at (0,48) width 184: "UL LI LI {color: gray;}"
+          text run at (184,48) width 0: " "
+          text run at (0,64) width 176: "LI.red {color: green;}"
+          text run at (176,64) width 0: " "
+          text run at (0,80) width 216: "UL LI.mar {color: #660000;}"
+          text run at (216,80) width 0: " "
+          text run at (0,96) width 200: "UL LI#gre {color: green;}"
+          text run at (200,96) width 0: " "
+          text run at (0,112) width 160: ".test {color: blue;}"
+          text run at (160,112) width 0: " "
+          text run at (0,128) width 176: ".test {color: purple;}"
+          text run at (176,128) width 0: " "
+          text run at (0,144) width 296: ".one {text-decoration: line-through;}"
+          text run at (296,144) width 0: " "
+          text run at (0,160) width 0: " "
+      LayoutBlockFlow {UL} at (0,243) size 769x160
+        LayoutListItem {LI} at (40,0) size 729x20 [color=#0000FF]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 177x19
+            text run at (0,0) width 177: "This list item should be blue..."
+        LayoutListItem {LI} at (40,20) size 729x80 [color=#0000FF]
+          LayoutBlockFlow (anonymous) at (0,0) size 729x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 275x19
+              text run at (0,0) width 275: "...and so should this; neither should be purple."
+          LayoutBlockFlow {UL} at (0,20) size 729x60
+            LayoutListItem {LI} at (40,0) size 689x20 [color=#808080]
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 177x19
+                text run at (0,0) width 177: "This list item should be gray..."
+            LayoutListItem {LI} at (40,20) size 689x20 [color=#808080]
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 108x19
+                text run at (0,0) width 108: "...as should this...."
+            LayoutListItem {LI} at (40,40) size 689x20 [color=#008000]
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutText {#text} at (0,0) size 184x19
+                text run at (0,0) width 184: "...but this one should be green."
+        LayoutListItem {LI} at (40,100) size 729x20 [color=#660000]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 165x19
+            text run at (0,0) width 165: "This ought to be dark red..."
+        LayoutListItem {LI} at (40,120) size 729x20 [color=#008000]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 81x19
+            text run at (0,0) width 81: "...this green..."
+        LayoutListItem {LI} at (40,140) size 729x20 [color=#0000FF]
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 91x19
+            text run at (0,0) width 91: "...and this blue."
+      LayoutBlockFlow {P} at (0,419) size 769x20 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 265x19
+          text run at (0,0) width 265: "This sentence should be blue (STYLE attr.)."
+      LayoutBlockFlow {P} at (0,455) size 769x20 [color=#800080]
+        LayoutText {#text} at (0,0) size 194x19
+          text run at (0,0) width 194: "This sentence should be purple ["
+        LayoutInline {CODE} at (0,0) size 96x16
+          LayoutText {#text} at (194,3) size 96x16
+            text run at (194,3) width 96: "class=\"test\""
+        LayoutText {#text} at (290,0) size 9x19
+          text run at (290,0) width 9: "]."
+      LayoutBlockFlow {P} at (0,491) size 769x20
+        LayoutText {#text} at (0,0) size 652x19
+          text run at (0,0) width 652: "This text should be stricken (overriding the imported underline; only works if LINKed sheets are supported)."
+      LayoutTable {TABLE} at (0,527) size 674x306 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 672x304
+          LayoutTableRow {TR} at (0,0) size 672x28
+            LayoutTableCell {TD} at (0,0) size 672x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 672x276
+            LayoutTableCell {TD} at (0,152) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 660x276 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {UL} at (4,4) size 652x160
+                LayoutListItem {LI} at (40,0) size 612x20 [color=#0000FF]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 177x19
+                    text run at (0,0) width 177: "This list item should be blue..."
+                LayoutListItem {LI} at (40,20) size 612x80 [color=#0000FF]
+                  LayoutBlockFlow (anonymous) at (0,0) size 612x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 275x19
+                      text run at (0,0) width 275: "...and so should this; neither should be purple."
+                  LayoutBlockFlow {UL} at (0,20) size 612x60
+                    LayoutListItem {LI} at (40,0) size 572x20 [color=#808080]
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 177x19
+                        text run at (0,0) width 177: "This list item should be gray..."
+                    LayoutListItem {LI} at (40,20) size 572x20 [color=#808080]
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 108x19
+                        text run at (0,0) width 108: "...as should this...."
+                    LayoutListItem {LI} at (40,40) size 572x20 [color=#008000]
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutText {#text} at (0,0) size 184x19
+                        text run at (0,0) width 184: "...but this one should be green."
+                LayoutListItem {LI} at (40,100) size 612x20 [color=#660000]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 165x19
+                    text run at (0,0) width 165: "This ought to be dark red..."
+                LayoutListItem {LI} at (40,120) size 612x20 [color=#008000]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 81x19
+                    text run at (0,0) width 81: "...this green..."
+                LayoutListItem {LI} at (40,140) size 612x20 [color=#0000FF]
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 91x19
+                    text run at (0,0) width 91: "...and this blue."
+              LayoutBlockFlow {P} at (4,180) size 652x20 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 265x19
+                  text run at (0,0) width 265: "This sentence should be blue (STYLE attr.)."
+              LayoutBlockFlow {P} at (4,216) size 652x20 [color=#800080]
+                LayoutText {#text} at (0,0) size 194x19
+                  text run at (0,0) width 194: "This sentence should be purple ["
+                LayoutInline {CODE} at (0,0) size 96x16
+                  LayoutText {#text} at (194,3) size 96x16
+                    text run at (194,3) width 96: "class=\"test\""
+                LayoutText {#text} at (290,0) size 9x19
+                  text run at (290,0) width 9: "]."
+              LayoutBlockFlow {P} at (4,252) size 652x20
+                LayoutText {#text} at (0,0) size 652x19
+                  text run at (0,0) width 652: "This text should be stricken (overriding the imported underline; only works if LINKed sheets are supported)."
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/cascade/important-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/cascade/important-expected.txt
new file mode 100644
index 0000000..af35e590
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/cascade/important-expected.txt
@@ -0,0 +1,69 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 232x64
+          text run at (0,0) width 232: "P {color: green ! important;}"
+          text run at (232,0) width 0: " "
+          text run at (0,16) width 120: "P {color: red;}"
+          text run at (120,16) width 0: " "
+          text run at (0,32) width 176: "P#id1 {color: purple;}"
+          text run at (176,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 784x40 [color=#008000]
+        LayoutText {#text} at (0,0) size 755x39
+          text run at (0,0) width 755: "This sentence should be green, because the declaration marked important should override any other normal declaration for the"
+          text run at (0,20) width 315: "same element, even if it occurs later in the stylesheet."
+      LayoutBlockFlow {P} at (0,187) size 784x40 [color=#008000]
+        LayoutText {#text} at (0,0) size 381x19
+          text run at (0,0) width 381: "This sentence should also be green, even though it has an ID of "
+        LayoutInline {TT} at (0,0) size 24x16
+          LayoutText {#text} at (381,3) size 24x16
+            text run at (381,3) width 24: "id1"
+        LayoutText {#text} at (405,0) size 738x39
+          text run at (405,0) width 242: ", which would ordinarily make it purple. "
+          text run at (647,0) width 91: "This is because"
+          text run at (0,20) width 611: "declarations marked important have more weight than normal declarations given in a STYLE attribute."
+      LayoutBlockFlow {P} at (0,243) size 784x40 [color=#008000]
+        LayoutText {#text} at (0,0) size 741x39
+          text run at (0,0) width 574: "This sentence should also be green, even though it has a STYLE attribute declaring it to be red. "
+          text run at (574,0) width 167: "This is because declarations"
+          text run at (0,20) width 535: "marked important have more weight than normal declarations given in a STYLE attribute."
+      LayoutTable {TABLE} at (0,299) size 784x190 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x188
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x160
+            LayoutTableCell {TD} at (0,94) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x160 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x40 [color=#008000]
+                LayoutText {#text} at (0,0) size 755x39
+                  text run at (0,0) width 755: "This sentence should be green, because the declaration marked important should override any other normal declaration for the"
+                  text run at (0,20) width 315: "same element, even if it occurs later in the stylesheet."
+              LayoutBlockFlow {P} at (4,60) size 762x40 [color=#008000]
+                LayoutText {#text} at (0,0) size 381x19
+                  text run at (0,0) width 381: "This sentence should also be green, even though it has an ID of "
+                LayoutInline {TT} at (0,0) size 24x16
+                  LayoutText {#text} at (381,3) size 24x16
+                    text run at (381,3) width 24: "id1"
+                LayoutText {#text} at (405,0) size 738x39
+                  text run at (405,0) width 242: ", which would ordinarily make it purple. "
+                  text run at (647,0) width 91: "This is because"
+                  text run at (0,20) width 611: "declarations marked important have more weight than normal declarations given in a STYLE attribute."
+              LayoutBlockFlow {P} at (4,116) size 762x40 [color=#008000]
+                LayoutText {#text} at (0,0) size 741x39
+                  text run at (0,0) width 574: "This sentence should also be green, even though it has a STYLE attribute declaring it to be red. "
+                  text run at (574,0) width 167: "This is because declarations"
+                  text run at (0,20) width 535: "marked important have more weight than normal declarations given in a STYLE attribute."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/display-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/display-expected.txt
new file mode 100644
index 0000000..de3e0b8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/display-expected.txt
@@ -0,0 +1,131 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 873
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x873 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x873
+    LayoutBlockFlow {BODY} at (8,8) size 769x857 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x80
+        LayoutText {#text} at (0,0) size 568x80
+          text run at (0,0) width 176: ".one {display: block;}"
+          text run at (176,0) width 0: " "
+          text run at (0,16) width 184: ".two {display: inline;}"
+          text run at (184,16) width 0: " "
+          text run at (0,32) width 568: ".three {display: list-item; list-style-type: square; margin-left: 3em;}"
+          text run at (568,32) width 0: " "
+          text run at (0,48) width 272: ".four {display: none; color: red;}"
+          text run at (272,48) width 0: " "
+          text run at (0,64) width 152: "I {display: block;}"
+          text run at (152,64) width 0: " "
+      LayoutBlockFlow {P} at (0,147) size 769x20
+        LayoutText {#text} at (0,0) size 279x19
+          text run at (0,0) width 279: "This sentence should be a block-level element."
+      LayoutBlockFlow (anonymous) at (0,183) size 769x60
+        LayoutInline {P} at (0,0) size 426x19
+          LayoutText {#text} at (0,0) size 426x19
+            text run at (0,0) width 426: "This sentence should be part of an inline element, as are the next three. "
+        LayoutInline {P} at (0,0) size 742x59
+          LayoutText {#text} at (426,0) size 742x59
+            text run at (426,0) width 310: "This sentence and the next two are part of a second"
+            text run at (0,20) width 88: "inline element. "
+            text run at (88,20) width 654: "They should therefore appear, along with the sentence above, to be all one paragraph which is four sentences"
+            text run at (0,40) width 33: "long. "
+            text run at (33,40) width 239: "If this is not the case, then the keyword "
+          LayoutInline {CODE} at (0,0) size 48x16
+            LayoutText {#text} at (272,43) size 48x16
+              text run at (272,43) width 48: "inline"
+          LayoutText {#text} at (320,40) size 102x19
+            text run at (320,40) width 102: " is being ignored."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutListItem {P} at (48,259) size 721x60
+        LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+        LayoutText {#text} at (0,0) size 701x19
+          text run at (0,0) width 701: "This sentence should be treated as a list-item, and therefore be rendered however this user agent displays list items (if"
+        LayoutInline {CODE} at (0,0) size 120x16
+          LayoutText {#text} at (0,23) size 120x16
+            text run at (0,23) width 120: "list-style-type"
+        LayoutText {#text} at (120,20) size 692x39
+          text run at (120,20) width 346: " is supported, there will be a square for the item marker). "
+          text run at (466,20) width 226: "A 3em left margin has been applied in"
+          text run at (0,40) width 349: "order to ensure that there is space for the list-item marker."
+      LayoutBlockFlow {P} at (0,335) size 769x20
+        LayoutText {#text} at (0,0) size 429x19
+          text run at (0,0) width 429: "The next paragraph should be invisible (if it's visible, you'll see red text)."
+      LayoutBlockFlow {P} at (0,371) size 769x20
+        LayoutText {#text} at (0,0) size 235x19
+          text run at (0,0) width 235: "There should be no text after the colon:"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,407) size 769x60
+        LayoutBlockFlow (anonymous) at (0,0) size 769x20
+          LayoutText {#text} at (0,0) size 104x19
+            text run at (0,0) width 104: "The italicized text"
+        LayoutBlockFlow {I} at (0,20) size 769x20
+          LayoutText {#text} at (0,0) size 111x19
+            text run at (0,0) width 111: "in this paragraph"
+        LayoutBlockFlow (anonymous) at (0,40) size 769x20
+          LayoutText {#text} at (0,0) size 194x19
+            text run at (0,0) width 194: "should be a block-level element."
+      LayoutTable {TABLE} at (0,483) size 769x374 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x372
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x344
+            LayoutTableCell {TD} at (0,186) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x344 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 279x19
+                  text run at (0,0) width 279: "This sentence should be a block-level element."
+              LayoutBlockFlow (anonymous) at (4,40) size 747x60
+                LayoutInline {P} at (0,0) size 426x19
+                  LayoutText {#text} at (0,0) size 426x19
+                    text run at (0,0) width 426: "This sentence should be part of an inline element, as are the next three. "
+                LayoutInline {P} at (0,0) size 742x59
+                  LayoutText {#text} at (426,0) size 742x59
+                    text run at (426,0) width 310: "This sentence and the next two are part of a second"
+                    text run at (0,20) width 88: "inline element. "
+                    text run at (88,20) width 654: "They should therefore appear, along with the sentence above, to be all one paragraph which is four sentences"
+                    text run at (0,40) width 33: "long. "
+                    text run at (33,40) width 239: "If this is not the case, then the keyword "
+                  LayoutInline {CODE} at (0,0) size 48x16
+                    LayoutText {#text} at (272,43) size 48x16
+                      text run at (272,43) width 48: "inline"
+                  LayoutText {#text} at (320,40) size 102x19
+                    text run at (320,40) width 102: " is being ignored."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutListItem {P} at (52,116) size 699x60
+                LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+                LayoutText {#text} at (0,0) size 685x39
+                  text run at (0,0) width 685: "This sentence should be treated as a list-item, and therefore be rendered however this user agent displays list items"
+                  text run at (0,20) width 16: "(if "
+                LayoutInline {CODE} at (0,0) size 120x16
+                  LayoutText {#text} at (16,23) size 120x16
+                    text run at (16,23) width 120: "list-style-type"
+                LayoutText {#text} at (136,20) size 694x39
+                  text run at (136,20) width 346: " is supported, there will be a square for the item marker). "
+                  text run at (482,20) width 212: "A 3em left margin has been applied"
+                  text run at (0,40) width 363: "in order to ensure that there is space for the list-item marker."
+              LayoutBlockFlow {P} at (4,192) size 747x20
+                LayoutText {#text} at (0,0) size 429x19
+                  text run at (0,0) width 429: "The next paragraph should be invisible (if it's visible, you'll see red text)."
+              LayoutBlockFlow {P} at (4,228) size 747x20
+                LayoutText {#text} at (0,0) size 235x19
+                  text run at (0,0) width 235: "There should be no text after the colon:"
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,264) size 747x60
+                LayoutBlockFlow (anonymous) at (0,0) size 747x20
+                  LayoutText {#text} at (0,0) size 104x19
+                    text run at (0,0) width 104: "The italicized text"
+                LayoutBlockFlow {I} at (0,20) size 747x20
+                  LayoutText {#text} at (0,0) size 111x19
+                    text run at (0,0) width 111: "in this paragraph"
+                LayoutBlockFlow (anonymous) at (0,40) size 747x20
+                  LayoutText {#text} at (0,0) size 194x19
+                    text run at (0,0) width 194: "should be a block-level element."
+layer at (8,137) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,129) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/list_style-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/list_style-expected.txt
new file mode 100644
index 0000000..4a70661
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/list_style-expected.txt
@@ -0,0 +1,54 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x32
+        LayoutText {#text} at (0,0) size 496x32
+          text run at (0,0) width 304: ".one {list-style: upper-alpha inside;}"
+          text run at (304,0) width 0: " "
+          text run at (0,16) width 496: ".two {list-style: url(../resources/oransqr.gif) disc outside;}"
+          text run at (496,16) width 0: " "
+      LayoutBlockFlow {UL} at (0,99) size 784x40
+        LayoutListItem {LI} at (40,0) size 744x40
+          LayoutListMarker (anonymous) at (0,0) size 19x19: "A"
+          LayoutText {#text} at (19,0) size 735x39
+            text run at (19,0) width 716: "The text in this item should not behave as expected; that is, it should line up with the capital-A on the left margin, leaving"
+            text run at (0,20) width 228: "no blank space beneath the capital-A."
+      LayoutBlockFlow {UL} at (0,155) size 784x40
+        LayoutListItem {LI} at (40,0) size 744x40
+          LayoutListMarker (anonymous) at (-22,0) size 15x15
+          LayoutText {#text} at (0,0) size 737x39
+            text run at (0,0) width 448: "The text in this item have an orange square for its bullet; failing that, a disc. "
+            text run at (448,0) width 289: "Also, the bullet should be outside the text block,"
+            text run at (0,20) width 206: "as the list has been set to 'outside'."
+      LayoutTable {TABLE} at (0,211) size 784x150 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x148
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x120
+            LayoutTableCell {TD} at (0,74) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x120 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {UL} at (4,4) size 762x40
+                LayoutListItem {LI} at (40,0) size 722x40
+                  LayoutListMarker (anonymous) at (0,0) size 19x19: "A"
+                  LayoutText {#text} at (19,0) size 690x39
+                    text run at (19,0) width 671: "The text in this item should not behave as expected; that is, it should line up with the capital-A on the left margin,"
+                    text run at (0,20) width 273: "leaving no blank space beneath the capital-A."
+              LayoutBlockFlow {UL} at (4,60) size 762x40
+                LayoutListItem {LI} at (40,0) size 722x40
+                  LayoutListMarker (anonymous) at (-22,0) size 15x15
+                  LayoutText {#text} at (0,0) size 695x39
+                    text run at (0,0) width 448: "The text in this item have an orange square for its bullet; failing that, a disc. "
+                    text run at (448,0) width 247: "Also, the bullet should be outside the text"
+                    text run at (0,20) width 248: "block, as the list has been set to 'outside'."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/list_style_image-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/list_style_image-expected.txt
new file mode 100644
index 0000000..4ef4e03
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/list_style_image-expected.txt
@@ -0,0 +1,81 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 440x48
+          text run at (0,0) width 440: ".one {list-style-image: url(../resources/oransqr.gif);}"
+          text run at (440,0) width 0: " "
+          text run at (0,16) width 240: ".two {list-style-image: none;}"
+          text run at (240,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {UL} at (0,115) size 784x60
+        LayoutListItem {LI} at (40,0) size 744x20
+          LayoutListMarker (anonymous) at (-22,0) size 15x15
+          LayoutText {#text} at (0,0) size 57x19
+            text run at (0,0) width 57: "This list..."
+        LayoutListItem {LI} at (40,20) size 744x20
+          LayoutListMarker (anonymous) at (-22,0) size 15x15
+          LayoutText {#text} at (0,0) size 108x19
+            text run at (0,0) width 108: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 744x20
+          LayoutListMarker (anonymous) at (-22,0) size 15x15
+          LayoutText {#text} at (0,0) size 139x19
+            text run at (0,0) width 139: "...images for each item."
+      LayoutBlockFlow {UL} at (0,191) size 784x60
+        LayoutListItem {LI} at (40,0) size 744x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 57x19
+            text run at (0,0) width 57: "This list..."
+        LayoutListItem {LI} at (40,20) size 744x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 108x19
+            text run at (0,0) width 108: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 744x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 223x19
+            text run at (0,0) width 223: "...standard list markers for each item."
+      LayoutTable {TABLE} at (0,267) size 285x190 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 283x188
+          LayoutTableRow {TR} at (0,0) size 283x28
+            LayoutTableCell {TD} at (0,0) size 283x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 283x160
+            LayoutTableCell {TD} at (0,94) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 271x160 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {UL} at (4,4) size 263x60
+                LayoutListItem {LI} at (40,0) size 223x20
+                  LayoutListMarker (anonymous) at (-22,0) size 15x15
+                  LayoutText {#text} at (0,0) size 57x19
+                    text run at (0,0) width 57: "This list..."
+                LayoutListItem {LI} at (40,20) size 223x20
+                  LayoutListMarker (anonymous) at (-22,0) size 15x15
+                  LayoutText {#text} at (0,0) size 108x19
+                    text run at (0,0) width 108: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 223x20
+                  LayoutListMarker (anonymous) at (-22,0) size 15x15
+                  LayoutText {#text} at (0,0) size 139x19
+                    text run at (0,0) width 139: "...images for each item."
+              LayoutBlockFlow {UL} at (4,80) size 263x60
+                LayoutListItem {LI} at (40,0) size 223x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 57x19
+                    text run at (0,0) width 57: "This list..."
+                LayoutListItem {LI} at (40,20) size 223x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 108x19
+                    text run at (0,0) width 108: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 223x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 223x19
+                    text run at (0,0) width 223: "...standard list markers for each item."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/list_style_position-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/list_style_position-expected.txt
index 44c0aa43..2518c2d8 100644
--- a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/list_style_position-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/list_style_position-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 280: ".two {list-style-position: inside;}"
           text run at (280,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {UL} at (0,115) size 784x40
         LayoutListItem {LI} at (40,0) size 744x40
           LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
@@ -50,3 +49,5 @@
                   LayoutText {#text} at (22,0) size 714x39
                     text run at (22,0) width 692: "The text in this item should not behave as expected; that is, it should line up with the bullet on the left margin, leaving"
                     text run at (0,20) width 204: "no blank space beneath the bullet."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/list_style_type-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/list_style_type-expected.txt
new file mode 100644
index 0000000..0c74994
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/list_style_type-expected.txt
@@ -0,0 +1,271 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1649
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1649 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1649
+    LayoutBlockFlow {BODY} at (8,8) size 769x1633 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x160
+        LayoutText {#text} at (0,0) size 304x160
+          text run at (0,0) width 232: ".one {list-style-type: disc;}"
+          text run at (232,0) width 0: " "
+          text run at (0,16) width 248: ".two {list-style-type: circle;}"
+          text run at (248,16) width 0: " "
+          text run at (0,32) width 264: ".three {list-style-type: square;}"
+          text run at (264,32) width 0: " "
+          text run at (0,48) width 296: ".four {list-style-type: lower-roman;}"
+          text run at (296,48) width 0: " "
+          text run at (0,64) width 296: ".five {list-style-type: upper-roman;}"
+          text run at (296,64) width 0: " "
+          text run at (0,80) width 288: ".six {list-style-type: lower-alpha;}"
+          text run at (288,80) width 0: " "
+          text run at (0,96) width 304: ".seven {list-style-type: upper-alpha;}"
+          text run at (304,96) width 0: " "
+          text run at (0,112) width 272: ".eight {list-style-type: decimal;}"
+          text run at (272,112) width 0: " "
+          text run at (0,128) width 240: ".nine {list-style-type: none;}"
+          text run at (240,128) width 0: " "
+          text run at (0,144) width 0: " "
+      LayoutBlockFlow {UL} at (0,227) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 57x19
+            text run at (0,0) width 57: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 108x19
+            text run at (0,0) width 108: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 128x19
+            text run at (0,0) width 128: "...discs for each item."
+      LayoutBlockFlow {UL} at (0,303) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+          LayoutText {#text} at (0,0) size 57x19
+            text run at (0,0) width 57: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+          LayoutText {#text} at (0,0) size 108x19
+            text run at (0,0) width 108: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+          LayoutText {#text} at (0,0) size 136x19
+            text run at (0,0) width 136: "...circles for each item."
+      LayoutBlockFlow {UL} at (0,379) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+          LayoutText {#text} at (0,0) size 57x19
+            text run at (0,0) width 57: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+          LayoutText {#text} at (0,0) size 108x19
+            text run at (0,0) width 108: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+          LayoutText {#text} at (0,0) size 144x19
+            text run at (0,0) width 144: "...squares for each item."
+      LayoutBlockFlow {OL} at (0,455) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-11,0) size 11x19: "i"
+          LayoutText {#text} at (0,0) size 57x19
+            text run at (0,0) width 57: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-14,0) size 14x19: "ii"
+          LayoutText {#text} at (0,0) size 108x19
+            text run at (0,0) width 108: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-17,0) size 17x19: "iii"
+          LayoutText {#text} at (0,0) size 263x19
+            text run at (0,0) width 263: "...lowercase Roman numerals for each item."
+      LayoutBlockFlow {OL} at (0,531) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-13,0) size 13x19: "I"
+          LayoutText {#text} at (0,0) size 57x19
+            text run at (0,0) width 57: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 18x19: "II"
+          LayoutText {#text} at (0,0) size 108x19
+            text run at (0,0) width 108: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-23,0) size 23x19: "III"
+          LayoutText {#text} at (0,0) size 264x19
+            text run at (0,0) width 264: "...uppercase Roman numerals for each item."
+      LayoutBlockFlow {OL} at (0,607) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-15,0) size 15x19: "a"
+          LayoutText {#text} at (0,0) size 57x19
+            text run at (0,0) width 57: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-16,0) size 16x19: "b"
+          LayoutText {#text} at (0,0) size 108x19
+            text run at (0,0) width 108: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-15,0) size 15x19: "c"
+          LayoutText {#text} at (0,0) size 199x19
+            text run at (0,0) width 199: "...lowercase letters for each item."
+      LayoutBlockFlow {OL} at (0,683) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-19,0) size 19x19: "A"
+          LayoutText {#text} at (0,0) size 57x19
+            text run at (0,0) width 57: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 18x19: "B"
+          LayoutText {#text} at (0,0) size 108x19
+            text run at (0,0) width 108: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-19,0) size 19x19: "C"
+          LayoutText {#text} at (0,0) size 200x19
+            text run at (0,0) width 200: "...uppercase letters for each item."
+      LayoutBlockFlow {OL} at (0,759) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-19,0) size 19x19: "A"
+          LayoutText {#text} at (0,0) size 145x19
+            text run at (0,0) width 145: "This list should feature..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutListMarker (anonymous) at (-18,0) size 18x19: "B"
+          LayoutText {#text} at (0,0) size 142x19
+            text run at (0,0) width 142: "...letters for each item..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutListMarker (anonymous) at (-16,0) size 16x19: "3"
+          LayoutText {#text} at (0,0) size 106x19
+            text run at (0,0) width 106: "...except this one."
+      LayoutBlockFlow {UL} at (0,835) size 769x60
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutText {#text} at (0,0) size 57x19
+            text run at (0,0) width 57: "This list..."
+        LayoutListItem {LI} at (40,20) size 729x20
+          LayoutText {#text} at (0,0) size 108x19
+            text run at (0,0) width 108: "...should feature..."
+        LayoutListItem {LI} at (40,40) size 729x20
+          LayoutText {#text} at (0,0) size 141x19
+            text run at (0,0) width 141: "...nothing for each item."
+      LayoutTable {TABLE} at (0,911) size 326x722 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 324x720
+          LayoutTableRow {TR} at (0,0) size 324x28
+            LayoutTableCell {TD} at (0,0) size 324x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 324x692
+            LayoutTableCell {TD} at (0,360) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 312x692 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {UL} at (4,4) size 304x60
+                LayoutListItem {LI} at (40,0) size 264x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 57x19
+                    text run at (0,0) width 57: "This list..."
+                LayoutListItem {LI} at (40,20) size 264x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 108x19
+                    text run at (0,0) width 108: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 264x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 128x19
+                    text run at (0,0) width 128: "...discs for each item."
+              LayoutBlockFlow {UL} at (4,80) size 304x60
+                LayoutListItem {LI} at (40,0) size 264x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                  LayoutText {#text} at (0,0) size 57x19
+                    text run at (0,0) width 57: "This list..."
+                LayoutListItem {LI} at (40,20) size 264x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                  LayoutText {#text} at (0,0) size 108x19
+                    text run at (0,0) width 108: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 264x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                  LayoutText {#text} at (0,0) size 136x19
+                    text run at (0,0) width 136: "...circles for each item."
+              LayoutBlockFlow {UL} at (4,156) size 304x60
+                LayoutListItem {LI} at (40,0) size 264x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+                  LayoutText {#text} at (0,0) size 57x19
+                    text run at (0,0) width 57: "This list..."
+                LayoutListItem {LI} at (40,20) size 264x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+                  LayoutText {#text} at (0,0) size 108x19
+                    text run at (0,0) width 108: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 264x20
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: black square
+                  LayoutText {#text} at (0,0) size 144x19
+                    text run at (0,0) width 144: "...squares for each item."
+              LayoutBlockFlow {OL} at (4,232) size 304x60
+                LayoutListItem {LI} at (40,0) size 264x20
+                  LayoutListMarker (anonymous) at (-11,0) size 11x19: "i"
+                  LayoutText {#text} at (0,0) size 57x19
+                    text run at (0,0) width 57: "This list..."
+                LayoutListItem {LI} at (40,20) size 264x20
+                  LayoutListMarker (anonymous) at (-14,0) size 14x19: "ii"
+                  LayoutText {#text} at (0,0) size 108x19
+                    text run at (0,0) width 108: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 264x20
+                  LayoutListMarker (anonymous) at (-17,0) size 17x19: "iii"
+                  LayoutText {#text} at (0,0) size 263x19
+                    text run at (0,0) width 263: "...lowercase Roman numerals for each item."
+              LayoutBlockFlow {OL} at (4,308) size 304x60
+                LayoutListItem {LI} at (40,0) size 264x20
+                  LayoutListMarker (anonymous) at (-13,0) size 13x19: "I"
+                  LayoutText {#text} at (0,0) size 57x19
+                    text run at (0,0) width 57: "This list..."
+                LayoutListItem {LI} at (40,20) size 264x20
+                  LayoutListMarker (anonymous) at (-18,0) size 18x19: "II"
+                  LayoutText {#text} at (0,0) size 108x19
+                    text run at (0,0) width 108: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 264x20
+                  LayoutListMarker (anonymous) at (-23,0) size 23x19: "III"
+                  LayoutText {#text} at (0,0) size 264x19
+                    text run at (0,0) width 264: "...uppercase Roman numerals for each item."
+              LayoutBlockFlow {OL} at (4,384) size 304x60
+                LayoutListItem {LI} at (40,0) size 264x20
+                  LayoutListMarker (anonymous) at (-15,0) size 15x19: "a"
+                  LayoutText {#text} at (0,0) size 57x19
+                    text run at (0,0) width 57: "This list..."
+                LayoutListItem {LI} at (40,20) size 264x20
+                  LayoutListMarker (anonymous) at (-16,0) size 16x19: "b"
+                  LayoutText {#text} at (0,0) size 108x19
+                    text run at (0,0) width 108: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 264x20
+                  LayoutListMarker (anonymous) at (-15,0) size 15x19: "c"
+                  LayoutText {#text} at (0,0) size 199x19
+                    text run at (0,0) width 199: "...lowercase letters for each item."
+              LayoutBlockFlow {OL} at (4,460) size 304x60
+                LayoutListItem {LI} at (40,0) size 264x20
+                  LayoutListMarker (anonymous) at (-19,0) size 19x19: "A"
+                  LayoutText {#text} at (0,0) size 57x19
+                    text run at (0,0) width 57: "This list..."
+                LayoutListItem {LI} at (40,20) size 264x20
+                  LayoutListMarker (anonymous) at (-18,0) size 18x19: "B"
+                  LayoutText {#text} at (0,0) size 108x19
+                    text run at (0,0) width 108: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 264x20
+                  LayoutListMarker (anonymous) at (-19,0) size 19x19: "C"
+                  LayoutText {#text} at (0,0) size 200x19
+                    text run at (0,0) width 200: "...uppercase letters for each item."
+              LayoutBlockFlow {OL} at (4,536) size 304x60
+                LayoutListItem {LI} at (40,0) size 264x20
+                  LayoutListMarker (anonymous) at (-19,0) size 19x19: "A"
+                  LayoutText {#text} at (0,0) size 145x19
+                    text run at (0,0) width 145: "This list should feature..."
+                LayoutListItem {LI} at (40,20) size 264x20
+                  LayoutListMarker (anonymous) at (-18,0) size 18x19: "B"
+                  LayoutText {#text} at (0,0) size 142x19
+                    text run at (0,0) width 142: "...letters for each item..."
+                LayoutListItem {LI} at (40,40) size 264x20
+                  LayoutListMarker (anonymous) at (-16,0) size 16x19: "3"
+                  LayoutText {#text} at (0,0) size 106x19
+                    text run at (0,0) width 106: "...except this one."
+              LayoutBlockFlow {UL} at (4,612) size 304x60
+                LayoutListItem {LI} at (40,0) size 264x20
+                  LayoutText {#text} at (0,0) size 57x19
+                    text run at (0,0) width 57: "This list..."
+                LayoutListItem {LI} at (40,20) size 264x20
+                  LayoutText {#text} at (0,0) size 108x19
+                    text run at (0,0) width 108: "...should feature..."
+                LayoutListItem {LI} at (40,40) size 264x20
+                  LayoutText {#text} at (0,0) size 141x19
+                    text run at (0,0) width 141: "...nothing for each item."
+layer at (8,217) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,209) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/white_space-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/white_space-expected.txt
new file mode 100644
index 0000000..a224d45
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/classification/white_space-expected.txt
@@ -0,0 +1,81 @@
+layer at (0,0) size 800x600 scrollWidth 882
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 232x64
+          text run at (0,0) width 192: ".one {white-space: pre;}"
+          text run at (192,0) width 0: " "
+          text run at (0,16) width 216: ".two {white-space: nowrap;}"
+          text run at (216,16) width 0: " "
+          text run at (0,32) width 232: ".three {white-space: normal;}"
+          text run at (232,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 784x100
+        LayoutText {#text} at (0,0) size 543x99
+          text run at (0,0) width 0: " "
+          text run at (0,20) width 543: "This sentence should     show extra space  where there    would ordinarily         not be any."
+          text run at (542,20) width 1: " "
+          text run at (0,40) width 284: "     There should also be preservation of returns"
+          text run at (284,40) width 0: " "
+          text run at (0,60) width 93: "as this sentence"
+          text run at (93,60) width 0: " "
+          text run at (0,80) width 177: "     very clearly demonstrates."
+          text run at (177,80) width 0: " "
+      LayoutBlockFlow {P} at (0,247) size 784x20
+        LayoutText {#text} at (0,0) size 852x19
+          text run at (0,0) width 852: "This sentence should not word-wrap, no matter how long the sentence is, as it has been set to nowrap and that should have the obvious effect."
+      LayoutBlockFlow {P} at (0,283) size 784x40
+        LayoutText {#text} at (0,0) size 285x39
+          text run at (0,0) width 0: " "
+          text run at (0,20) width 285: "This sentence      should     show extra   space, "
+        LayoutInline {SPAN} at (0,0) size 148x19
+          LayoutText {#text} at (285,20) size 148x19
+            text run at (285,20) width 80: "except in the "
+            text run at (365,20) width 68: "second half"
+        LayoutText {#text} at (433,20) size 4x19
+          text run at (433,20) width 4: "."
+          text run at (437,20) width 0: " "
+      LayoutTable {TABLE} at (0,339) size 874x230 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 872x228
+          LayoutTableRow {TR} at (0,0) size 872x28
+            LayoutTableCell {TD} at (0,0) size 872x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 872x200
+            LayoutTableCell {TD} at (0,114) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 860x200 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 852x100
+                LayoutText {#text} at (0,0) size 543x99
+                  text run at (0,0) width 0: " "
+                  text run at (0,20) width 543: "This sentence should     show extra space  where there    would ordinarily         not be any."
+                  text run at (542,20) width 1: " "
+                  text run at (0,40) width 284: "     There should also be preservation of returns"
+                  text run at (284,40) width 0: " "
+                  text run at (0,60) width 93: "as this sentence"
+                  text run at (93,60) width 0: " "
+                  text run at (0,80) width 177: "     very clearly demonstrates."
+                  text run at (177,80) width 0: " "
+              LayoutBlockFlow {P} at (4,120) size 852x20
+                LayoutText {#text} at (0,0) size 852x19
+                  text run at (0,0) width 852: "This sentence should not word-wrap, no matter how long the sentence is, as it has been set to nowrap and that should have the obvious effect."
+              LayoutBlockFlow {P} at (4,156) size 852x40
+                LayoutText {#text} at (0,0) size 285x39
+                  text run at (0,0) width 0: " "
+                  text run at (0,20) width 285: "This sentence      should     show extra   space, "
+                LayoutInline {SPAN} at (0,0) size 148x19
+                  LayoutText {#text} at (285,20) size 148x19
+                    text run at (285,20) width 80: "except in the "
+                    text run at (365,20) width 68: "second half"
+                LayoutText {#text} at (433,20) size 4x19
+                  text run at (433,20) width 4: "."
+                  text run at (437,20) width 0: " "
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background-expected.txt
new file mode 100644
index 0000000..97dca62
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background-expected.txt
@@ -0,0 +1,90 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 777
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x777 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x777
+    LayoutBlockFlow {BODY} at (8,8) size 769x761 [bgcolor=#008000]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 648x64
+          text run at (0,0) width 648: "BODY {background: green url(../resources/oransqr.gif) repeat-x center top fixed;}"
+          text run at (648,0) width 0: " "
+          text run at (0,16) width 568: ".one {background: lime url(../resources/oransqr.gif) repeat-y 100% 0%;}"
+          text run at (568,16) width 0: " "
+          text run at (0,32) width 592: ".two {background: lime url(../resources/oransqr.gif) repeat-y center top;}"
+          text run at (592,32) width 0: " "
+          text run at (0,48) width 592: ".three {background: lime url(../resources/oransqr.gif) repeat-x left top;}"
+          text run at (592,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 769x60
+        LayoutText {#text} at (0,0) size 695x19
+          text run at (0,0) width 695: "This document should have a green background with an orange strip running across the entire top of the page, since "
+        LayoutInline {CODE} at (0,0) size 64x16
+          LayoutText {#text} at (695,3) size 64x16
+            text run at (695,3) width 64: "repeat-x"
+        LayoutText {#text} at (0,20) size 746x39
+          text run at (0,20) width 276: "indicates tiling in both directions of the x-axis. "
+          text run at (276,20) width 284: "Furthermore, the strip should be fixed in place. "
+          text run at (560,20) width 186: "I'll have to add extra text at the"
+          text run at (0,40) width 368: "end of this page to make it long enough to scroll conveniently."
+      LayoutBlockFlow {P} at (0,207) size 769x60 [bgcolor=#00FF00]
+        LayoutText {#text} at (0,0) size 756x59
+          text run at (0,0) width 709: "This paragraph should have a lime background and an orange strip which starts at the top right and runs to the bottom."
+          text run at (0,20) width 756: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in handling these"
+          text run at (0,40) width 80: "declarations. "
+          text run at (80,40) width 294: "Hey, I didn't say the page would be pretty, did I?"
+      LayoutBlockFlow {P} at (0,283) size 769x60 [bgcolor=#00FF00]
+        LayoutText {#text} at (0,0) size 756x59
+          text run at (0,0) width 720: "This paragraph should have a lime background and an orange strip which starts at the center top and runs to the bottom."
+          text run at (0,20) width 756: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in handling these"
+          text run at (0,40) width 80: "declarations. "
+          text run at (80,40) width 294: "Hey, I didn't say the page would be pretty, did I?"
+      LayoutBlockFlow {P} at (0,359) size 769x60 [bgcolor=#00FF00]
+        LayoutText {#text} at (0,0) size 756x59
+          text run at (0,0) width 708: "This paragraph should have a lime background and an orange strip which starts at the top left and runs to the top right."
+          text run at (0,20) width 756: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in handling these"
+          text run at (0,40) width 80: "declarations. "
+          text run at (80,40) width 294: "Hey, I didn't say the page would be pretty, did I?"
+      LayoutTable {TABLE} at (0,435) size 769x326 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x324
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x296
+            LayoutTableCell {TD} at (0,162) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x296 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x60
+                LayoutText {#text} at (0,0) size 691x19
+                  text run at (0,0) width 691: "This document should have a green background with an orange strip running across the entire top of the page, since"
+                LayoutInline {CODE} at (0,0) size 64x16
+                  LayoutText {#text} at (0,23) size 64x16
+                    text run at (0,23) width 64: "repeat-x"
+                LayoutText {#text} at (64,20) size 717x39
+                  text run at (64,20) width 280: " indicates tiling in both directions of the x-axis. "
+                  text run at (344,20) width 284: "Furthermore, the strip should be fixed in place. "
+                  text run at (628,20) width 89: "I'll have to add"
+                  text run at (0,40) width 465: "extra text at the end of this page to make it long enough to scroll conveniently."
+              LayoutBlockFlow {P} at (4,80) size 747x60 [bgcolor=#00FF00]
+                LayoutText {#text} at (0,0) size 721x59
+                  text run at (0,0) width 709: "This paragraph should have a lime background and an orange strip which starts at the top right and runs to the bottom."
+                  text run at (0,20) width 721: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in handling"
+                  text run at (0,40) width 115: "these declarations. "
+                  text run at (115,40) width 294: "Hey, I didn't say the page would be pretty, did I?"
+              LayoutBlockFlow {P} at (4,156) size 747x60 [bgcolor=#00FF00]
+                LayoutText {#text} at (0,0) size 721x59
+                  text run at (0,0) width 720: "This paragraph should have a lime background and an orange strip which starts at the center top and runs to the bottom."
+                  text run at (0,20) width 721: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in handling"
+                  text run at (0,40) width 115: "these declarations. "
+                  text run at (115,40) width 294: "Hey, I didn't say the page would be pretty, did I?"
+              LayoutBlockFlow {P} at (4,232) size 747x60 [bgcolor=#00FF00]
+                LayoutText {#text} at (0,0) size 721x59
+                  text run at (0,0) width 708: "This paragraph should have a lime background and an orange strip which starts at the top left and runs to the top right."
+                  text run at (0,20) width 721: "Therefore, extra text would be in order, so that we can intelligently evaluate the performance of your browser in handling"
+                  text run at (0,40) width 115: "these declarations. "
+                  text run at (115,40) width 294: "Hey, I didn't say the page would be pretty, did I?"
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_attachment-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_attachment-expected.txt
new file mode 100644
index 0000000..3faed43
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_attachment-expected.txt
@@ -0,0 +1,182 @@
+layer at (0,0) size 800x600 scrollWidth 880 scrollHeight 1239
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x1239 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x1238.53
+    LayoutBlockFlow {BODY} at (8,8) size 784x1222.53 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x32
+        LayoutText {#text} at (0,0) size 872x32
+          text run at (0,0) width 872: "BODY {background-image: url(../resources/bg.gif); background-repeat: repeat-x; background-attachment: fixed;}"
+          text run at (872,0) width 0: " "
+          text run at (0,16) width 0: " "
+      LayoutBlockFlow {P} at (0,99) size 784x100
+        LayoutText {#text} at (0,0) size 769x99
+          text run at (0,0) width 768: "This document should have a green grid-pattern line across the top of the page (or at least a tiled background) which does NOT"
+          text run at (0,20) width 154: "scroll with the document. "
+          text run at (154,20) width 615: "It should, instead, appear to be a fixed pattern past which the content scrolls, even when the end of the"
+          text run at (0,40) width 102: "page is reached. "
+          text run at (102,40) width 663: "In addition, the default Test Suite background should NOT appear, as it's been overridden by the styles shown"
+          text run at (0,60) width 45: "above. "
+          text run at (45,60) width 619: "I'll have to add a lot of extra text to the page in order to make all this something we can actually check. "
+          text run at (664,60) width 94: "Don't worry, I'll"
+          text run at (0,80) width 113: "think of something."
+      LayoutBlockFlow {P} at (0,215) size 784x20
+        LayoutText {#text} at (0,0) size 484x19
+          text run at (0,0) width 397: "In fact, why not the relevant section from the CSS1 specification? "
+          text run at (397,0) width 87: "A capital idea."
+      LayoutBlockFlow {H4} at (0,284.27) size 784x20
+        LayoutInline {A} at (0,0) size 213x19
+          LayoutText {#text} at (0,0) size 213x19
+            text run at (0,0) width 213: "5.3.5    'background-attachment'"
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,325.53) size 784x100
+        LayoutInline {EM} at (0,0) size 41x19
+          LayoutText {#text} at (0,0) size 41x19
+            text run at (0,0) width 41: "Value:"
+        LayoutText {#text} at (40,0) size 77x19
+          text run at (40,0) width 77: " scroll | fixed"
+        LayoutBR {BR} at (116,15) size 1x0
+        LayoutInline {EM} at (0,0) size 43x19
+          LayoutText {#text} at (0,20) size 43x19
+            text run at (0,20) width 43: "Initial:"
+        LayoutText {#text} at (43,20) size 36x19
+          text run at (43,20) width 36: " scroll"
+        LayoutBR {BR} at (79,35) size 0x0
+        LayoutInline {EM} at (0,0) size 69x19
+          LayoutText {#text} at (0,40) size 69x19
+            text run at (0,40) width 69: "Applies to:"
+        LayoutText {#text} at (69,40) size 73x19
+          text run at (69,40) width 73: " all elements"
+        LayoutBR {BR} at (142,55) size 0x0
+        LayoutInline {EM} at (0,0) size 63x19
+          LayoutText {#text} at (0,60) size 63x19
+            text run at (0,60) width 63: "Inherited:"
+        LayoutText {#text} at (63,60) size 19x19
+          text run at (63,60) width 19: " no"
+        LayoutBR {BR} at (82,75) size 0x0
+        LayoutInline {EM} at (0,0) size 123x19
+          LayoutText {#text} at (0,80) size 123x19
+            text run at (0,80) width 123: "Percentage values:"
+        LayoutText {#text} at (122,80) size 32x19
+          text run at (122,80) width 32: " N/A"
+        LayoutBR {BR} at (153,95) size 1x0
+      LayoutBlockFlow {P} at (0,441.53) size 784x40
+        LayoutText {#text} at (0,0) size 766x39
+          text run at (0,0) width 766: "If a background image is specified, the value of 'background-attachment' determines if it is fixed with regard to the canvas or if it"
+          text run at (0,20) width 177: "scrolls along with the content."
+      LayoutBlockFlow {PRE} at (0,497.53) size 784x80
+        LayoutText {#text} at (0,0) size 296x80
+          text run at (0,0) width 72: "  BODY { "
+          text run at (72,0) width 0: " "
+          text run at (0,16) width 296: "    background: red url(pendant.gif);"
+          text run at (296,16) width 0: " "
+          text run at (0,32) width 256: "    background-repeat: repeat-y;"
+          text run at (256,32) width 0: " "
+          text run at (0,48) width 264: "    background-attachment: fixed;"
+          text run at (264,48) width 0: " "
+          text run at (0,64) width 24: "  }"
+          text run at (24,64) width 0: " "
+      LayoutBlockFlow {P} at (0,593.53) size 784x40
+        LayoutInline {EM} at (0,0) size 72x19
+          LayoutText {#text} at (0,0) size 72x19
+            text run at (0,0) width 72: "CSS1 core:"
+        LayoutText {#text} at (71,0) size 759x39
+          text run at (71,0) width 688: " UAs may treat 'fixed' as 'scroll'. However, it is recommended they interpret 'fixed' correctly, at least on the HTML"
+          text run at (0,20) width 728: "and BODY elements, since there is no way for an author to provide an image only for those browsers that support 'fixed'."
+      LayoutTable {TABLE} at (0,649.53) size 784x573 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x571
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x543
+            LayoutTableCell {TD} at (0,285) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x542.53 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x100
+                LayoutText {#text} at (0,0) size 749x99
+                  text run at (0,0) width 731: "This document should have a green grid-pattern line across the top of the page (or at least a tiled background) which does"
+                  text run at (0,20) width 191: "NOT scroll with the document. "
+                  text run at (191,20) width 551: "It should, instead, appear to be a fixed pattern past which the content scrolls, even when the"
+                  text run at (0,40) width 166: "end of the page is reached. "
+                  text run at (166,40) width 583: "In addition, the default Test Suite background should NOT appear, as it's been overridden by the"
+                  text run at (0,60) width 125: "styles shown above. "
+                  text run at (125,60) width 615: "I'll have to add a lot of extra text to the page in order to make all this something we can actually check."
+                  text run at (0,80) width 211: "Don't worry, I'll think of something."
+              LayoutBlockFlow {P} at (4,120) size 762x20
+                LayoutText {#text} at (0,0) size 484x19
+                  text run at (0,0) width 397: "In fact, why not the relevant section from the CSS1 specification? "
+                  text run at (397,0) width 87: "A capital idea."
+              LayoutBlockFlow {H4} at (4,189.27) size 762x20
+                LayoutInline {A} at (0,0) size 213x19
+                  LayoutText {#text} at (0,0) size 213x19
+                    text run at (0,0) width 213: "5.3.5    'background-attachment'"
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,230.53) size 762x100
+                LayoutInline {EM} at (0,0) size 41x19
+                  LayoutText {#text} at (0,0) size 41x19
+                    text run at (0,0) width 41: "Value:"
+                LayoutText {#text} at (40,0) size 77x19
+                  text run at (40,0) width 77: " scroll | fixed"
+                LayoutBR {BR} at (116,15) size 1x0
+                LayoutInline {EM} at (0,0) size 43x19
+                  LayoutText {#text} at (0,20) size 43x19
+                    text run at (0,20) width 43: "Initial:"
+                LayoutText {#text} at (43,20) size 36x19
+                  text run at (43,20) width 36: " scroll"
+                LayoutBR {BR} at (79,35) size 0x0
+                LayoutInline {EM} at (0,0) size 69x19
+                  LayoutText {#text} at (0,40) size 69x19
+                    text run at (0,40) width 69: "Applies to:"
+                LayoutText {#text} at (69,40) size 73x19
+                  text run at (69,40) width 73: " all elements"
+                LayoutBR {BR} at (142,55) size 0x0
+                LayoutInline {EM} at (0,0) size 63x19
+                  LayoutText {#text} at (0,60) size 63x19
+                    text run at (0,60) width 63: "Inherited:"
+                LayoutText {#text} at (63,60) size 19x19
+                  text run at (63,60) width 19: " no"
+                LayoutBR {BR} at (82,75) size 0x0
+                LayoutInline {EM} at (0,0) size 123x19
+                  LayoutText {#text} at (0,80) size 123x19
+                    text run at (0,80) width 123: "Percentage values:"
+                LayoutText {#text} at (122,80) size 32x19
+                  text run at (122,80) width 32: " N/A"
+                LayoutBR {BR} at (153,95) size 1x0
+              LayoutBlockFlow {P} at (4,346.53) size 762x40
+                LayoutText {#text} at (0,0) size 755x39
+                  text run at (0,0) width 755: "If a background image is specified, the value of 'background-attachment' determines if it is fixed with regard to the canvas or if"
+                  text run at (0,20) width 188: "it scrolls along with the content."
+              LayoutBlockFlow {PRE} at (4,402.53) size 762x80
+                LayoutText {#text} at (0,0) size 296x80
+                  text run at (0,0) width 72: "  BODY { "
+                  text run at (72,0) width 0: " "
+                  text run at (0,16) width 296: "    background: red url(pendant.gif);"
+                  text run at (296,16) width 0: " "
+                  text run at (0,32) width 256: "    background-repeat: repeat-y;"
+                  text run at (256,32) width 0: " "
+                  text run at (0,48) width 264: "    background-attachment: fixed;"
+                  text run at (264,48) width 0: " "
+                  text run at (0,64) width 24: "  }"
+                  text run at (24,64) width 0: " "
+              LayoutBlockFlow {P} at (4,498.53) size 762x40
+                LayoutInline {EM} at (0,0) size 72x19
+                  LayoutText {#text} at (0,0) size 72x19
+                    text run at (0,0) width 72: "CSS1 core:"
+                LayoutText {#text} at (71,0) size 759x39
+                  text run at (71,0) width 688: " UAs may treat 'fixed' as 'scroll'. However, it is recommended they interpret 'fixed' correctly, at least on the HTML"
+                  text run at (0,20) width 728: "and BODY elements, since there is no way for an author to provide an image only for those browsers that support 'fixed'."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,259) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,251) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (8,269) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,261) size 784x2 [border: (1px inset #EEEEEE)]
+layer at (25,843) size 762x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,156) size 762x2 [border: (1px inset #EEEEEE)]
+layer at (25,853) size 762x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,166) size 762x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_color-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_color-expected.txt
new file mode 100644
index 0000000..f088b188
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_color-expected.txt
@@ -0,0 +1,85 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20 [bgcolor=#008000]
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 296x64
+          text run at (0,0) width 224: "P {background-color: green;}"
+          text run at (224,0) width 0: " "
+          text run at (0,16) width 240: ".one {background-color: lime;}"
+          text run at (240,16) width 0: " "
+          text run at (0,32) width 296: ".two {background-color: transparent;}"
+          text run at (296,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 784x20 [bgcolor=#008000]
+        LayoutText {#text} at (0,0) size 263x19
+          text run at (0,0) width 263: "This element's background should be green."
+      LayoutBlockFlow {P} at (0,167) size 784x20 [bgcolor=#00FF00]
+        LayoutText {#text} at (0,0) size 329x19
+          text run at (0,0) width 329: "This element's background should be lime (light green)."
+      LayoutBlockFlow {P} at (0,203) size 784x60 [bgcolor=#008000]
+        LayoutText {#text} at (0,0) size 620x19
+          text run at (0,0) width 620: "This element's background should be green, and the last word in this sentence should also have a green "
+        LayoutInline {SPAN} at (0,0) size 72x19
+          LayoutText {#text} at (620,0) size 72x19
+            text run at (620,0) width 72: "background"
+        LayoutText {#text} at (692,0) size 778x59
+          text run at (692,0) width 8: ". "
+          text run at (700,0) width 38: "This is"
+          text run at (0,20) width 778: "because the background color of the parent element (the paragraph) should \"shine through\" the SPANned word \"sentence,\" which"
+          text run at (0,40) width 65: "was set to "
+        LayoutInline {CODE} at (0,0) size 88x16
+          LayoutText {#text} at (65,43) size 88x16
+            text run at (65,43) width 88: "transparent"
+        LayoutText {#text} at (153,40) size 377x19
+          text run at (153,40) width 8: ". "
+          text run at (161,40) width 369: "If the document background is visible, the browser is in error."
+      LayoutBlockFlow {P} at (0,279) size 784x20
+        LayoutText {#text} at (0,0) size 702x19
+          text run at (0,0) width 432: "This element should allow the document background to \"shine through.\" "
+          text run at (432,0) width 270: "There should be no green backgrounds here!"
+      LayoutTable {TABLE} at (0,315) size 784x206 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x204
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x176
+            LayoutTableCell {TD} at (0,102) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x176 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x20 [bgcolor=#008000]
+                LayoutText {#text} at (0,0) size 263x19
+                  text run at (0,0) width 263: "This element's background should be green."
+              LayoutBlockFlow {P} at (4,40) size 762x20 [bgcolor=#00FF00]
+                LayoutText {#text} at (0,0) size 329x19
+                  text run at (0,0) width 329: "This element's background should be lime (light green)."
+              LayoutBlockFlow {P} at (4,76) size 762x60 [bgcolor=#008000]
+                LayoutText {#text} at (0,0) size 620x19
+                  text run at (0,0) width 620: "This element's background should be green, and the last word in this sentence should also have a green "
+                LayoutInline {SPAN} at (0,0) size 72x19
+                  LayoutText {#text} at (620,0) size 72x19
+                    text run at (620,0) width 72: "background"
+                LayoutText {#text} at (692,0) size 739x59
+                  text run at (692,0) width 8: ". "
+                  text run at (700,0) width 38: "This is"
+                  text run at (0,20) width 739: "because the background color of the parent element (the paragraph) should \"shine through\" the SPANned word \"sentence,\""
+                  text run at (0,40) width 104: "which was set to "
+                LayoutInline {CODE} at (0,0) size 88x16
+                  LayoutText {#text} at (104,43) size 88x16
+                    text run at (104,43) width 88: "transparent"
+                LayoutText {#text} at (192,40) size 377x19
+                  text run at (192,40) width 8: ". "
+                  text run at (200,40) width 369: "If the document background is visible, the browser is in error."
+              LayoutBlockFlow {P} at (4,152) size 762x20
+                LayoutText {#text} at (0,0) size 702x19
+                  text run at (0,0) width 432: "This element should allow the document background to \"shine through.\" "
+                  text run at (432,0) width 270: "There should be no green backgrounds here!"
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_image-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_image-expected.txt
new file mode 100644
index 0000000..47586509
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_image-expected.txt
@@ -0,0 +1,92 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 376x48
+          text run at (0,0) width 376: "P {background-image: url(../resources/bg.gif);}"
+          text run at (376,0) width 0: " "
+          text run at (0,16) width 240: ".one {background-image: none;}"
+          text run at (240,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x40
+        LayoutText {#text} at (0,0) size 779x39
+          text run at (0,0) width 482: "This sentence should be backed by an image-- a green grid pattern, in this case. "
+          text run at (482,0) width 297: "The background image should also tile along both"
+          text run at (0,20) width 570: "axes, because no repeat direction is specified (specific tests for repeating are found elsewhere)."
+      LayoutBlockFlow {P} at (0,171) size 784x60
+        LayoutText {#text} at (0,0) size 574x19
+          text run at (0,0) width 574: "This sentence should be backed by a repeated green-grid image, as should the last three words "
+        LayoutInline {STRONG} at (0,0) size 103x19
+          LayoutInline {SPAN} at (0,0) size 103x19
+            LayoutText {#text} at (574,0) size 103x19
+              text run at (574,0) width 103: "in this sentence"
+        LayoutText {#text} at (677,0) size 97x19
+          text run at (677,0) width 8: ". "
+          text run at (685,0) width 89: "If it is not, then"
+        LayoutInline {CODE} at (0,0) size 32x16
+          LayoutText {#text} at (0,23) size 32x16
+            text run at (0,23) width 32: "none"
+        LayoutText {#text} at (32,20) size 161x19
+          text run at (32,20) width 156: " is interpreted incorrectly. "
+          text run at (187,20) width 6: "("
+        LayoutInline {CODE} at (0,0) size 33x16
+          LayoutText {#text} at (192,23) size 33x16
+            text run at (192,23) width 33: "none"
+        LayoutText {#text} at (224,20) size 772x39
+          text run at (224,20) width 548: " means that the element has no background image, allowing the parent to \"shine through\" by"
+          text run at (0,40) width 706: "default; since the parent of the words \"in this sentence\" is the paragraph, then the paragraph's image should be visible.)"
+      LayoutBlockFlow {P} at (0,247) size 784x20
+        LayoutText {#text} at (0,0) size 777x19
+          text run at (0,0) width 777: "This sentence should NOT be backed by a repeated green-grid image, allowing the page's background to \"shine through\" instead."
+      LayoutTable {TABLE} at (0,283) size 784x230 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x228
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x200
+            LayoutTableCell {TD} at (0,114) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x200 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x40
+                LayoutText {#text} at (0,0) size 748x39
+                  text run at (0,0) width 482: "This sentence should be backed by an image-- a green grid pattern, in this case. "
+                  text run at (482,0) width 266: "The background image should also tile along"
+                  text run at (0,20) width 601: "both axes, because no repeat direction is specified (specific tests for repeating are found elsewhere)."
+              LayoutBlockFlow {P} at (4,60) size 762x80
+                LayoutText {#text} at (0,0) size 574x19
+                  text run at (0,0) width 574: "This sentence should be backed by a repeated green-grid image, as should the last three words "
+                LayoutInline {STRONG} at (0,0) size 103x19
+                  LayoutInline {SPAN} at (0,0) size 103x19
+                    LayoutText {#text} at (574,0) size 103x19
+                      text run at (574,0) width 103: "in this sentence"
+                LayoutText {#text} at (677,0) size 745x39
+                  text run at (677,0) width 8: ". "
+                  text run at (685,0) width 60: "If it is not,"
+                  text run at (0,20) width 29: "then "
+                LayoutInline {CODE} at (0,0) size 32x16
+                  LayoutText {#text} at (29,23) size 32x16
+                    text run at (29,23) width 32: "none"
+                LayoutText {#text} at (61,20) size 161x19
+                  text run at (61,20) width 156: " is interpreted incorrectly. "
+                  text run at (216,20) width 6: "("
+                LayoutInline {CODE} at (0,0) size 33x16
+                  LayoutText {#text} at (221,23) size 33x16
+                    text run at (221,23) width 33: "none"
+                LayoutText {#text} at (253,20) size 729x59
+                  text run at (253,20) width 475: " means that the element has no background image, allowing the parent to \"shine"
+                  text run at (0,40) width 729: "through\" by default; since the parent of the words \"in this sentence\" is the paragraph, then the paragraph's image should be"
+                  text run at (0,60) width 46: "visible.)"
+              LayoutBlockFlow {P} at (4,156) size 762x40
+                LayoutText {#text} at (0,0) size 727x39
+                  text run at (0,0) width 727: "This sentence should NOT be backed by a repeated green-grid image, allowing the page's background to \"shine through\""
+                  text run at (0,20) width 46: "instead."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_position-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_position-expected.txt
new file mode 100644
index 0000000..f927518
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_position-expected.txt
@@ -0,0 +1,147 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1533
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1533 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1533
+    LayoutBlockFlow {BODY} at (8,8) size 769x1517 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x272
+        LayoutText {#text} at (0,0) size 688x272
+          text run at (0,0) width 648: "BODY {background-image: url(../resources/bg.gif); background-position: right top;"
+          text run at (648,0) width 0: " "
+          text run at (0,16) width 288: "      background-repeat: no-repeat;}"
+          text run at (288,16) width 0: " "
+          text run at (0,32) width 624: ".one {background-image: url(../resources/bg.gif); background-position: center;"
+          text run at (624,32) width 0: " "
+          text run at (0,48) width 480: "      background-repeat: no-repeat; background-color: aqua;}"
+          text run at (480,48) width 0: " "
+          text run at (0,64) width 632: ".two {background-image: url(../resources/bg.gif); background-position: 50% 50%;"
+          text run at (632,64) width 0: " "
+          text run at (0,80) width 480: "      background-repeat: no-repeat; background-color: aqua;}"
+          text run at (480,80) width 0: " "
+          text run at (0,96) width 688: ".three {background-image: url(../resources/bg.gif); background-position: bottom right;"
+          text run at (688,96) width 0: " "
+          text run at (0,112) width 496: "        background-repeat: no-repeat; background-color: aqua;}"
+          text run at (496,112) width 0: " "
+          text run at (0,128) width 656: ".four {background-image: url(../resources/bg.gif); background-position: 100% 100%;"
+          text run at (656,128) width 0: " "
+          text run at (0,144) width 488: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (488,144) width 0: " "
+          text run at (0,160) width 632: ".five {background-image: url(../resources/bg.gif); background-position: 0% 50%;"
+          text run at (632,160) width 0: " "
+          text run at (0,176) width 488: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (488,176) width 0: " "
+          text run at (0,192) width 632: ".six {background-image: url(../resources/bg.gif); background-position: 75% 25%;"
+          text run at (632,192) width 0: " "
+          text run at (0,208) width 488: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (488,208) width 0: " "
+          text run at (0,224) width 664: ".seven {background-image: url(../resources/bg.gif); background-position: 20px 20px;"
+          text run at (664,224) width 0: " "
+          text run at (0,240) width 488: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (488,240) width 0: " "
+          text run at (0,256) width 0: " "
+      LayoutBlockFlow {P} at (0,339) size 769x20
+        LayoutText {#text} at (0,0) size 472x19
+          text run at (0,0) width 472: "This document should have a single, small green image in its upper right corner."
+      LayoutBlockFlow {P} at (0,375) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 764x59
+          text run at (0,0) width 764: "This paragraph should have a single, small green image exactly in its center; that is, the center of the image should be fixed at the"
+          text run at (0,20) width 148: "center of the paragraph. "
+          text run at (148,20) width 612: "The background color will make it easier to determine the edges of the paragraph, and therefore allow"
+          text run at (0,40) width 156: "you to calculate its center."
+      LayoutBlockFlow {P} at (0,451) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 764x59
+          text run at (0,0) width 764: "This paragraph should have a single, small green image exactly in its center; that is, the center of the image should be fixed at the"
+          text run at (0,20) width 148: "center of the paragraph. "
+          text run at (148,20) width 612: "The background color will make it easier to determine the edges of the paragraph, and therefore allow"
+          text run at (0,40) width 156: "you to calculate its center."
+      LayoutBlockFlow {P} at (0,527) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 751x59
+          text run at (0,0) width 728: "This paragraph should have a single, small green image in its lower-right corner; that is, the lower right corner of the image"
+          text run at (0,20) width 350: "should be fixed at the lower right corner of the paragraph. "
+          text run at (350,20) width 401: "The background color will make it easier to determine the edges of"
+          text run at (0,40) width 343: "the paragraph, and therefore allow you to see its corners."
+      LayoutBlockFlow {P} at (0,603) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 751x59
+          text run at (0,0) width 728: "This paragraph should have a single, small green image in its lower-right corner; that is, the lower right corner of the image"
+          text run at (0,20) width 350: "should be fixed at the lower right corner of the paragraph. "
+          text run at (350,20) width 401: "The background color will make it easier to determine the edges of"
+          text run at (0,40) width 343: "the paragraph, and therefore allow you to see its corners."
+      LayoutBlockFlow {P} at (0,679) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 758x59
+          text run at (0,0) width 744: "This paragraph should have a single, small green image exactly at the left center; that is, the left center of the image should be"
+          text run at (0,20) width 240: "fixed at the left center of the paragraph. "
+          text run at (240,20) width 518: "The background color will make it easier to determine the edges of the paragraph, and"
+          text run at (0,40) width 250: "therefore allow you to calculate its center."
+      LayoutBlockFlow {P} at (0,755) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 750x59
+          text run at (0,0) width 717: "This paragraph should have a single, small green image positioned 75% of the way across the element, and 25% down. "
+          text run at (717,0) width 23: "The"
+          text run at (0,20) width 750: "background color will make it easier to determine the edges of the paragraph, which should help in determining if all this is so,"
+          text run at (0,40) width 557: "and the extra text should make the element long enough for this test to be simpler to evaluate."
+      LayoutBlockFlow {P} at (0,831) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (0,0) size 757x59
+          text run at (0,0) width 756: "This paragraph should have a single, small green image positioned 20 pixels down and to the left of the upper left-hand corner;"
+          text run at (0,20) width 757: "that is, the upper left-hand corner of the image should be 20 pixels down and to the left of the upper-left corner of the element."
+          text run at (0,40) width 740: "The background color will make it easier to determine the edges of the paragraph, which should assist in evaluating this test."
+      LayoutTable {TABLE} at (0,907) size 769x610 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x608
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x580
+            LayoutTableCell {TD} at (0,304) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x580 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 472x19
+                  text run at (0,0) width 472: "This document should have a single, small green image in its upper right corner."
+              LayoutBlockFlow {P} at (4,40) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 746x59
+                  text run at (0,0) width 742: "This paragraph should have a single, small green image exactly in its center; that is, the center of the image should be fixed at"
+                  text run at (0,20) width 170: "the center of the paragraph. "
+                  text run at (170,20) width 576: "The background color will make it easier to determine the edges of the paragraph, and therefore"
+                  text run at (0,40) width 192: "allow you to calculate its center."
+              LayoutBlockFlow {P} at (4,116) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 746x59
+                  text run at (0,0) width 742: "This paragraph should have a single, small green image exactly in its center; that is, the center of the image should be fixed at"
+                  text run at (0,20) width 170: "the center of the paragraph. "
+                  text run at (170,20) width 576: "The background color will make it easier to determine the edges of the paragraph, and therefore"
+                  text run at (0,40) width 192: "allow you to calculate its center."
+              LayoutBlockFlow {P} at (4,192) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 735x59
+                  text run at (0,0) width 728: "This paragraph should have a single, small green image in its lower-right corner; that is, the lower right corner of the image"
+                  text run at (0,20) width 350: "should be fixed at the lower right corner of the paragraph. "
+                  text run at (350,20) width 385: "The background color will make it easier to determine the edges"
+                  text run at (0,40) width 359: "of the paragraph, and therefore allow you to see its corners."
+              LayoutBlockFlow {P} at (4,268) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 735x59
+                  text run at (0,0) width 728: "This paragraph should have a single, small green image in its lower-right corner; that is, the lower right corner of the image"
+                  text run at (0,20) width 350: "should be fixed at the lower right corner of the paragraph. "
+                  text run at (350,20) width 385: "The background color will make it easier to determine the edges"
+                  text run at (0,40) width 359: "of the paragraph, and therefore allow you to see its corners."
+              LayoutBlockFlow {P} at (4,344) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 744x59
+                  text run at (0,0) width 744: "This paragraph should have a single, small green image exactly at the left center; that is, the left center of the image should be"
+                  text run at (0,20) width 240: "fixed at the left center of the paragraph. "
+                  text run at (240,20) width 492: "The background color will make it easier to determine the edges of the paragraph,"
+                  text run at (0,40) width 276: "and therefore allow you to calculate its center."
+              LayoutBlockFlow {P} at (4,420) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 740x59
+                  text run at (0,0) width 717: "This paragraph should have a single, small green image positioned 75% of the way across the element, and 25% down. "
+                  text run at (717,0) width 23: "The"
+                  text run at (0,20) width 728: "background color will make it easier to determine the edges of the paragraph, which should help in determining if all this is"
+                  text run at (0,40) width 579: "so, and the extra text should make the element long enough for this test to be simpler to evaluate."
+              LayoutBlockFlow {P} at (4,496) size 747x80 [bgcolor=#00FFFF]
+                LayoutText {#text} at (0,0) size 728x79
+                  text run at (0,0) width 709: "This paragraph should have a single, small green image positioned 20 pixels down and to the left of the upper left-hand"
+                  text run at (0,20) width 728: "corner; that is, the upper left-hand corner of the image should be 20 pixels down and to the left of the upper-left corner of"
+                  text run at (0,40) width 76: "the element. "
+                  text run at (76,40) width 624: "The background color will make it easier to determine the edges of the paragraph, which should assist in"
+                  text run at (0,60) width 112: "evaluating this test."
+layer at (8,329) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,321) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_repeat-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_repeat-expected.txt
new file mode 100644
index 0000000..9b3402d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/background_repeat-expected.txt
@@ -0,0 +1,308 @@
+layer at (0,0) size 800x600 scrollWidth 888 scrollHeight 1973
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x1973 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x1973
+    LayoutBlockFlow {BODY} at (8,8) size 784x1957 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x240
+        LayoutText {#text} at (0,0) size 880x240
+          text run at (0,0) width 672: ".one {background-image: url(../resources/oransqr.gif); background-repeat: repeat-y;}"
+          text run at (672,0) width 0: " "
+          text run at (0,16) width 672: ".two {background-image: url(../resources/oransqr.gif); background-repeat: repeat-x;}"
+          text run at (672,16) width 0: " "
+          text run at (0,32) width 696: ".three {background-image: url(../resources/oransqr.gif); background-repeat: no-repeat;}"
+          text run at (696,32) width 0: " "
+          text run at (0,48) width 880: ".four {background-image: url(../resources/bg.gif); background-position: 50% 50%; background-repeat: repeat-y;}"
+          text run at (880,48) width 0: " "
+          text run at (0,64) width 704: ".five {background-image: url(../resources/crosshair2.gif); background-position: 50% 50%;"
+          text run at (704,64) width 0: " "
+          text run at (0,80) width 240: "       background-color: red;}"
+          text run at (240,80) width 0: " "
+          text run at (0,96) width 720: ".six {background-image: url(../resources/crosshair2.gif); background-position: center top;"
+          text run at (720,96) width 0: " "
+          text run at (0,112) width 232: "      background-color: red;}"
+          text run at (232,112) width 0: " "
+          text run at (0,128) width 720: ".seven {background-image: url(../resources/crosshair2.gif); background-position: top left;"
+          text run at (720,128) width 0: " "
+          text run at (0,144) width 248: "        background-color: red;}"
+          text run at (248,144) width 0: " "
+          text run at (0,160) width 752: ".eight {background-image: url(../resources/crosshair2.gif); background-position: bottom right;"
+          text run at (752,160) width 0: " "
+          text run at (0,176) width 248: "        background-color: red;}"
+          text run at (248,176) width 0: " "
+          text run at (0,192) width 704: ".nine {background-image: url(../resources/crosshair2.gif); background-position: 50% 50%;"
+          text run at (704,192) width 0: " "
+          text run at (0,208) width 240: "       background-color: red;}"
+          text run at (240,208) width 0: " "
+          text run at (0,224) width 0: " "
+      LayoutBlockFlow {P} at (0,307) size 784x60
+        LayoutText {#text} at (0,0) size 744x19
+          text run at (0,0) width 744: "This sentence should have an orange stripe repeated in the \"y\" direction, starting at the upper left corner (since the default for"
+        LayoutInline {CODE} at (0,0) size 152x16
+          LayoutText {#text} at (0,23) size 152x16
+            text run at (0,23) width 152: "background-position"
+        LayoutText {#text} at (152,20) size 756x39
+          text run at (152,20) width 312: " is '0% 0%' and that property is not declared here). "
+          text run at (464,20) width 292: "This is extra text included for the sole purpose of"
+          text run at (0,40) width 179: "making the paragraph longer. "
+          text run at (178,40) width 208: "Thank you for your understanding."
+      LayoutBlockFlow {P} at (0,383) size 784x60
+        LayoutText {#text} at (0,0) size 744x19
+          text run at (0,0) width 744: "This sentence should have an orange stripe repeated in the \"x\" direction, starting at the upper left corner (since the default for"
+        LayoutInline {CODE} at (0,0) size 152x16
+          LayoutText {#text} at (0,23) size 152x16
+            text run at (0,23) width 152: "background-position"
+        LayoutText {#text} at (152,20) size 756x39
+          text run at (152,20) width 312: " is '0% 0%' and that property is not declared here). "
+          text run at (464,20) width 292: "This is extra text included for the sole purpose of"
+          text run at (0,40) width 179: "making the paragraph longer. "
+          text run at (178,40) width 208: "Thank you for your understanding."
+      LayoutBlockFlow {P} at (0,459) size 784x60
+        LayoutText {#text} at (0,0) size 667x19
+          text run at (0,0) width 667: "This sentence should have a single orange square behind it, placed at the upper left corner (since the default for "
+        LayoutInline {CODE} at (0,0) size 755x36
+          LayoutText {#text} at (667,3) size 755x36
+            text run at (667,3) width 88: "background-"
+            text run at (0,23) width 64: "position"
+        LayoutText {#text} at (64,20) size 737x39
+          text run at (64,20) width 312: " is '0% 0%' and that property is not declared here). "
+          text run at (376,20) width 361: "This is extra text included for the sole purpose of making the"
+          text run at (0,40) width 110: "paragraph longer. "
+          text run at (109,40) width 208: "Thank you for your understanding."
+      LayoutBlockFlow {P} at (0,535) size 784x80
+        LayoutText {#text} at (0,0) size 764x39
+          text run at (0,0) width 764: "This sentence should have a green-hatch stripe running vertically down the center of the paragraph, with the origin image exactly"
+          text run at (0,20) width 161: "centered in the paragraph. "
+          text run at (161,20) width 95: "This is because "
+        LayoutInline {CODE} at (0,0) size 64x16
+          LayoutText {#text} at (256,23) size 64x16
+            text run at (256,23) width 64: "repeat-y"
+        LayoutText {#text} at (320,20) size 104x19
+          text run at (320,20) width 104: " specifies tiling in "
+        LayoutInline {EM} at (0,0) size 29x19
+          LayoutText {#text} at (424,20) size 29x19
+            text run at (424,20) width 29: "both"
+        LayoutText {#text} at (453,20) size 784x39
+          text run at (453,20) width 151: " directions on the y-axis. "
+          text run at (604,20) width 180: "Note that this test is only valid"
+          text run at (0,40) width 154: "if the user agent supports "
+        LayoutInline {CODE} at (0,0) size 152x16
+          LayoutText {#text} at (154,43) size 152x16
+            text run at (154,43) width 152: "background-position"
+        LayoutText {#text} at (306,40) size 33x19
+          text run at (306,40) width 33: " (see "
+        LayoutInline {A} at (0,0) size 57x19 [color=#0000FF]
+          LayoutText {#text} at (339,40) size 57x19
+            text run at (339,40) width 57: "test 5.3.6"
+        LayoutText {#text} at (396,40) size 773x39
+          text run at (396,40) width 13: "). "
+          text run at (409,40) width 364: "I'll fill the paragraph with extra text to make the conformance"
+          text run at (0,60) width 188: "(or lack thereof) more obvious."
+      LayoutBlockFlow {P} at (0,631) size 784x80 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 714x19
+          text run at (0,0) width 623: "This paragraph should have a tiled background, with the origin image exactly centered in the paragraph. "
+          text run at (623,0) width 91: "This is because"
+        LayoutInline {CODE} at (0,0) size 136x16
+          LayoutText {#text} at (0,23) size 136x16
+            text run at (0,23) width 136: "background-repeat"
+        LayoutText {#text} at (136,20) size 104x19
+          text run at (136,20) width 104: " specifies tiling in "
+        LayoutInline {EM} at (0,0) size 16x19
+          LayoutText {#text} at (240,20) size 16x19
+            text run at (240,20) width 16: "all"
+        LayoutText {#text} at (256,20) size 778x39
+          text run at (256,20) width 342: " directions, regardless of the position of the origin image. "
+          text run at (598,20) width 180: "Note that this test is only valid"
+          text run at (0,40) width 154: "if the user agent supports "
+        LayoutInline {CODE} at (0,0) size 152x16
+          LayoutText {#text} at (154,43) size 152x16
+            text run at (154,43) width 152: "background-position"
+        LayoutText {#text} at (306,40) size 33x19
+          text run at (306,40) width 33: " (see "
+        LayoutInline {A} at (0,0) size 57x19 [color=#0000FF]
+          LayoutText {#text} at (339,40) size 57x19
+            text run at (339,40) width 57: "test 5.3.6"
+        LayoutText {#text} at (396,40) size 773x39
+          text run at (396,40) width 13: "). "
+          text run at (409,40) width 364: "I'll fill the paragraph with extra text to make the conformance"
+          text run at (0,60) width 192: "(or lack thereof) more obvious. "
+          text run at (192,60) width 570: "A background color is present, although if it is visible then the image has not bee correctly tiled."
+      LayoutBlockFlow {P} at (0,727) size 784x60 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 783x59
+          text run at (0,0) width 783: "This sentence should have a fully tiled background which starts at its center top; that is, the background's origin should be the exact"
+          text run at (0,20) width 210: "center of the top of the paragraph. "
+          text run at (210,20) width 484: "I'll fill it with extra text to make the conformance (or lack thereof) more obvious. "
+          text run at (694,20) width 87: "A background"
+          text run at (0,40) width 526: "color is present, although if it is visible, then the image may not have been tiled correctly."
+      LayoutBlockFlow {P} at (0,803) size 784x60 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 771x59
+          text run at (0,0) width 461: "This sentence should have a fully tiled background which starts at its top left. "
+          text run at (461,0) width 310: "I'll fill it with extra text to make the conformance (or"
+          text run at (0,20) width 170: "lack thereof) more obvious. "
+          text run at (170,20) width 557: "A background color is present, although if it is visible, then the image may not have been tiled"
+          text run at (0,40) width 56: "correctly."
+      LayoutBlockFlow {P} at (0,879) size 784x80 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 782x79
+          text run at (0,0) width 782: "This sentence should have a fully tiled background which starts at its bottom right; in other words, a complete instance of the image"
+          text run at (0,20) width 592: "should be anchored in the bottom right corner, with the tiled background extending out from there. "
+          text run at (591,20) width 185: "I'll fill it with extra text to make"
+          text run at (0,40) width 296: "the conformance (or lack thereof) more obvious. "
+          text run at (296,40) width 463: "A background color is present, although if it is visible, then the image may not"
+          text run at (0,60) width 150: "have been tiled correctly."
+      LayoutBlockFlow {P} at (0,975) size 784x120 [bgcolor=#FF0000]
+        LayoutText {#text} at (0,0) size 769x119
+          text run at (0,0) width 763: "This sentence should have a fully tiled background which starts at its center and is tiled in all directions; that is, the background's"
+          text run at (0,20) width 305: "origin should be the exact center of the paragraph. "
+          text run at (305,20) width 425: "I'll fill it with extra text to make the conformance (or lack thereof) more"
+          text run at (0,40) width 55: "obvious. "
+          text run at (55,40) width 422: "In fact, a lot of extra text will be necessary to make this at all obvious. "
+          text run at (477,40) width 292: "This is true because I am not able to increase the"
+          text run at (0,60) width 724: "text size without resorting to either headings or other CSS properties, neither of which I want to use in this circumstance. "
+          text run at (724,60) width 25: "This"
+          text run at (0,80) width 197: "ought to be enough text, though. "
+          text run at (197,80) width 557: "A background color is present, although if it is visible, then the image may not have been tiled"
+          text run at (0,100) width 56: "correctly."
+      LayoutTable {TABLE} at (0,1111) size 784x846 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x844
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x816
+            LayoutTableCell {TD} at (0,422) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x816 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x60
+                LayoutText {#text} at (0,0) size 744x19
+                  text run at (0,0) width 744: "This sentence should have an orange stripe repeated in the \"y\" direction, starting at the upper left corner (since the default for"
+                LayoutInline {CODE} at (0,0) size 152x16
+                  LayoutText {#text} at (0,23) size 152x16
+                    text run at (0,23) width 152: "background-position"
+                LayoutText {#text} at (152,20) size 756x39
+                  text run at (152,20) width 312: " is '0% 0%' and that property is not declared here). "
+                  text run at (464,20) width 292: "This is extra text included for the sole purpose of"
+                  text run at (0,40) width 179: "making the paragraph longer. "
+                  text run at (178,40) width 208: "Thank you for your understanding."
+              LayoutBlockFlow {P} at (4,80) size 762x60
+                LayoutText {#text} at (0,0) size 744x19
+                  text run at (0,0) width 744: "This sentence should have an orange stripe repeated in the \"x\" direction, starting at the upper left corner (since the default for"
+                LayoutInline {CODE} at (0,0) size 152x16
+                  LayoutText {#text} at (0,23) size 152x16
+                    text run at (0,23) width 152: "background-position"
+                LayoutText {#text} at (152,20) size 756x39
+                  text run at (152,20) width 312: " is '0% 0%' and that property is not declared here). "
+                  text run at (464,20) width 292: "This is extra text included for the sole purpose of"
+                  text run at (0,40) width 179: "making the paragraph longer. "
+                  text run at (178,40) width 208: "Thank you for your understanding."
+              LayoutBlockFlow {P} at (4,156) size 762x60
+                LayoutText {#text} at (0,0) size 667x19
+                  text run at (0,0) width 667: "This sentence should have a single orange square behind it, placed at the upper left corner (since the default for "
+                LayoutInline {CODE} at (0,0) size 755x36
+                  LayoutText {#text} at (667,3) size 755x36
+                    text run at (667,3) width 88: "background-"
+                    text run at (0,23) width 64: "position"
+                LayoutText {#text} at (64,20) size 737x39
+                  text run at (64,20) width 312: " is '0% 0%' and that property is not declared here). "
+                  text run at (376,20) width 361: "This is extra text included for the sole purpose of making the"
+                  text run at (0,40) width 110: "paragraph longer. "
+                  text run at (109,40) width 208: "Thank you for your understanding."
+              LayoutBlockFlow {P} at (4,232) size 762x80
+                LayoutText {#text} at (0,0) size 718x39
+                  text run at (0,0) width 718: "This sentence should have a green-hatch stripe running vertically down the center of the paragraph, with the origin image"
+                  text run at (0,20) width 207: "exactly centered in the paragraph. "
+                  text run at (207,20) width 95: "This is because "
+                LayoutInline {CODE} at (0,0) size 64x16
+                  LayoutText {#text} at (302,23) size 64x16
+                    text run at (302,23) width 64: "repeat-y"
+                LayoutText {#text} at (366,20) size 104x19
+                  text run at (366,20) width 104: " specifies tiling in "
+                LayoutInline {EM} at (0,0) size 29x19
+                  LayoutText {#text} at (470,20) size 29x19
+                    text run at (470,20) width 29: "both"
+                LayoutText {#text} at (499,20) size 756x39
+                  text run at (499,20) width 151: " directions on the y-axis. "
+                  text run at (650,20) width 106: "Note that this test"
+                  text run at (0,40) width 228: "is only valid if the user agent supports "
+                LayoutInline {CODE} at (0,0) size 152x16
+                  LayoutText {#text} at (228,43) size 152x16
+                    text run at (228,43) width 152: "background-position"
+                LayoutText {#text} at (380,40) size 33x19
+                  text run at (380,40) width 33: " (see "
+                LayoutInline {A} at (0,0) size 57x19 [color=#0000FF]
+                  LayoutText {#text} at (413,40) size 57x19
+                    text run at (413,40) width 57: "test 5.3.6"
+                LayoutText {#text} at (470,40) size 743x39
+                  text run at (470,40) width 13: "). "
+                  text run at (483,40) width 260: "I'll fill the paragraph with extra text to make"
+                  text run at (0,60) width 292: "the conformance (or lack thereof) more obvious."
+              LayoutBlockFlow {P} at (4,328) size 762x100 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 714x19
+                  text run at (0,0) width 623: "This paragraph should have a tiled background, with the origin image exactly centered in the paragraph. "
+                  text run at (623,0) width 91: "This is because"
+                LayoutInline {CODE} at (0,0) size 136x16
+                  LayoutText {#text} at (0,23) size 136x16
+                    text run at (0,23) width 136: "background-repeat"
+                LayoutText {#text} at (136,20) size 104x19
+                  text run at (136,20) width 104: " specifies tiling in "
+                LayoutInline {EM} at (0,0) size 16x19
+                  LayoutText {#text} at (240,20) size 16x19
+                    text run at (240,20) width 16: "all"
+                LayoutText {#text} at (256,20) size 746x39
+                  text run at (256,20) width 342: " directions, regardless of the position of the origin image. "
+                  text run at (598,20) width 148: "Note that this test is only"
+                  text run at (0,40) width 186: "valid if the user agent supports "
+                LayoutInline {CODE} at (0,0) size 152x16
+                  LayoutText {#text} at (186,43) size 152x16
+                    text run at (186,43) width 152: "background-position"
+                LayoutText {#text} at (338,40) size 33x19
+                  text run at (338,40) width 33: " (see "
+                LayoutInline {A} at (0,0) size 57x19 [color=#0000FF]
+                  LayoutText {#text} at (371,40) size 57x19
+                    text run at (371,40) width 57: "test 5.3.6"
+                LayoutText {#text} at (428,40) size 754x59
+                  text run at (428,40) width 13: "). "
+                  text run at (441,40) width 282: "I'll fill the paragraph with extra text to make the"
+                  text run at (0,60) width 274: "conformance (or lack thereof) more obvious. "
+                  text run at (274,60) width 480: "A background color is present, although if it is visible then the image has not bee"
+                  text run at (0,80) width 86: "correctly tiled."
+              LayoutBlockFlow {P} at (4,444) size 762x60 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 747x59
+                  text run at (0,0) width 747: "This sentence should have a fully tiled background which starts at its center top; that is, the background's origin should be the"
+                  text run at (0,20) width 246: "exact center of the top of the paragraph. "
+                  text run at (246,20) width 484: "I'll fill it with extra text to make the conformance (or lack thereof) more obvious. "
+                  text run at (730,20) width 11: "A"
+                  text run at (0,40) width 602: "background color is present, although if it is visible, then the image may not have been tiled correctly."
+              LayoutBlockFlow {P} at (4,520) size 762x60 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 749x59
+                  text run at (0,0) width 461: "This sentence should have a fully tiled background which starts at its top left. "
+                  text run at (461,0) width 288: "I'll fill it with extra text to make the conformance"
+                  text run at (0,20) width 192: "(or lack thereof) more obvious. "
+                  text run at (192,20) width 557: "A background color is present, although if it is visible, then the image may not have been tiled"
+                  text run at (0,40) width 56: "correctly."
+              LayoutBlockFlow {P} at (4,596) size 762x80 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 762x79
+                  text run at (0,0) width 743: "This sentence should have a fully tiled background which starts at its bottom right; in other words, a complete instance of the"
+                  text run at (0,20) width 631: "image should be anchored in the bottom right corner, with the tiled background extending out from there. "
+                  text run at (630,20) width 132: "I'll fill it with extra text"
+                  text run at (0,40) width 349: "to make the conformance (or lack thereof) more obvious. "
+                  text run at (349,40) width 411: "A background color is present, although if it is visible, then the image"
+                  text run at (0,60) width 202: "may not have been tiled correctly."
+              LayoutBlockFlow {P} at (4,692) size 762x120 [bgcolor=#FF0000]
+                LayoutText {#text} at (0,0) size 754x119
+                  text run at (0,0) width 678: "This sentence should have a fully tiled background which starts at its center and is tiled in all directions; that is, the"
+                  text run at (0,20) width 390: "background's origin should be the exact center of the paragraph. "
+                  text run at (390,20) width 339: "I'll fill it with extra text to make the conformance (or lack"
+                  text run at (0,40) width 141: "thereof) more obvious. "
+                  text run at (141,40) width 422: "In fact, a lot of extra text will be necessary to make this at all obvious. "
+                  text run at (563,40) width 172: "This is true because I am not"
+                  text run at (0,60) width 754: "able to increase the text size without resorting to either headings or other CSS properties, neither of which I want to use in this"
+                  text run at (0,80) width 86: "circumstance. "
+                  text run at (86,80) width 226: "This ought to be enough text, though. "
+                  text run at (312,80) width 440: "A background color is present, although if it is visible, then the image may"
+                  text run at (0,100) width 173: "not have been tiled correctly."
+layer at (8,297) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,289) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/color-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/color-expected.txt
new file mode 100644
index 0000000..897ec93
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/color_and_background/color-expected.txt
@@ -0,0 +1,39 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x32
+        LayoutText {#text} at (0,0) size 160x32
+          text run at (0,0) width 160: ".one {color: green;}"
+          text run at (160,0) width 0: " "
+          text run at (0,16) width 0: " "
+      LayoutBlockFlow {P} at (0,99) size 784x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,135) size 784x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutTable {TABLE} at (0,171) size 206x94 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 204x92
+          LayoutTableRow {TR} at (0,0) size 204x28
+            LayoutTableCell {TD} at (0,0) size 204x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 204x64
+            LayoutTableCell {TD} at (0,46) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 192x64 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 184x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,40) size 184x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+layer at (8,89) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/conformance/forward_compatible_parsing-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/conformance/forward_compatible_parsing-expected.txt
new file mode 100644
index 0000000..ec5ffd6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/conformance/forward_compatible_parsing-expected.txt
@@ -0,0 +1,543 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 4321
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x4321 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x4321
+    LayoutBlockFlow {BODY} at (8,8) size 769x4305 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x864
+        LayoutText {#text} at (0,0) size 568x864
+          text run at (0,0) width 304: "P.one {color: green; rotation: 70deg;}"
+          text run at (304,0) width 0: " "
+          text run at (0,16) width 176: "P.oneb {color: green;}"
+          text run at (176,16) width 0: " "
+          text run at (0,32) width 232: "P.oneb {color: invalidValue;}"
+          text run at (232,32) width 0: " "
+          text run at (0,48) width 272: "P.two {background-color: inherit;}"
+          text run at (272,48) width 0: " "
+          text run at (0,64) width 216: "H1 + P.three {color: blue;}"
+          text run at (216,64) width 0: " "
+          text run at (0,80) width 200: "P.four + H1 {color: red;}"
+          text run at (200,80) width 0: " "
+          text run at (0,96) width 264: "P.five {background-color: \"red\";}"
+          text run at (264,96) width 0: " "
+          text run at (0,112) width 408: "P.sixa {border-width: medium; border-style: solid;}"
+          text run at (408,112) width 0: " "
+          text run at (0,128) width 400: "P.sixb {border-width: funny; border-style: solid;}"
+          text run at (400,128) width 0: " "
+          text run at (0,144) width 392: "P.sixc {border-width: 50zu; border-style: solid;}"
+          text run at (392,144) width 0: " "
+          text run at (0,160) width 376: "P.sixd {border-width: px; border-style: solid;}"
+          text run at (376,160) width 0: " "
+          text run at (0,176) width 96: "@three-dee {"
+          text run at (96,176) width 0: " "
+          text run at (0,192) width 184: " @background-lighting {"
+          text run at (184,192) width 0: " "
+          text run at (0,208) width 136: "  azimuth: 30deg;"
+          text run at (136,208) width 0: " "
+          text run at (0,224) width 160: "  elevation: 190deg;"
+          text run at (160,224) width 0: " "
+          text run at (0,240) width 24: "  }"
+          text run at (24,240) width 0: " "
+          text run at (0,256) width 184: " P.seven { color: red }"
+          text run at (184,256) width 0: " "
+          text run at (0,272) width 16: " }"
+          text run at (16,272) width 0: " "
+          text run at (0,288) width 184: "P.eight {COLOR: GREEN;}"
+          text run at (184,288) width 0: " "
+          text run at (0,304) width 192: "OL:wait {color: maroon;}"
+          text run at (192,304) width 0: " "
+          text run at (0,320) width 272: "P.ten:first-child {color: maroon;}"
+          text run at (272,320) width 0: " "
+          text run at (0,336) width 208: "UL:lang(fr) {color: gray;}"
+          text run at (208,336) width 0: " "
+          text run at (0,352) width 248: "BLOCKQUOTE[href] {color: navy;}"
+          text run at (248,352) width 0: " "
+          text run at (0,368) width 288: "ACRONYM[href=\"foo\"] {color: purple;}"
+          text run at (288,368) width 0: " "
+          text run at (0,384) width 296: "ADDRESS[href~=\"foo\"] {color: purple;}"
+          text run at (296,384) width 0: " "
+          text run at (0,400) width 248: "SPAN[lang|=\"fr\"] {color: #c37;}"
+          text run at (248,400) width 0: " "
+          text run at (0,416) width 96: "@media tty {"
+          text run at (96,416) width 0: " "
+          text run at (0,432) width 136: " H1 {color: red;}"
+          text run at (136,432) width 0: " "
+          text run at (0,448) width 192: " P.sixteen {color: red;}"
+          text run at (192,448) width 0: " "
+          text run at (0,464) width 16: " }"
+          text run at (16,464) width 0: " "
+          text run at (0,480) width 96: "@three-dee {"
+          text run at (96,480) width 0: " "
+          text run at (0,496) width 208: " P.seventeen {color: red }"
+          text run at (208,496) width 0: " "
+          text run at (0,512) width 16: " }"
+          text run at (16,512) width 0: " "
+          text run at (0,528) width 568: "P.eighteena {text-decoration: underline overline line-through diagonal;"
+          text run at (568,528) width 0: " "
+          text run at (0,544) width 416: "            font: bold highlighted 100% sans-serif;}"
+          text run at (416,544) width 0: " "
+          text run at (0,560) width 568: "P.eighteenb {text-decoration: underline overline line-through diagonal;"
+          text run at (568,560) width 0: " "
+          text run at (0,576) width 376: "            font: bold highlighted 100% serif;}"
+          text run at (376,576) width 0: " "
+          text run at (0,592) width 384: "EM, P.nineteena ! EM, STRONG {font-size: 200%; }"
+          text run at (384,592) width 0: " "
+          text run at (0,608) width 0: " "
+          text run at (0,624) width 128: "// UL.nineteenb,"
+          text run at (128,624) width 0: " "
+          text run at (0,640) width 200: "P.nineteenb {color: red;}"
+          text run at (200,640) width 0: " "
+          text run at (0,656) width 0: " "
+          text run at (0,672) width 360: "P.twentya {rotation-code: \"}\"; color: blue;} "
+          text run at (360,672) width 0: " "
+          text run at (0,688) width 392: "P.twentyb {rotation-code: \"\\\"}\\\"\"; color: green;}"
+          text run at (392,688) width 0: " "
+          text run at (0,704) width 400: "P.twentyonea {rotation-code: '}'; color: purple;} "
+          text run at (400,704) width 0: " "
+          text run at (0,720) width 416: "P.twentyoneb {rotation-code: '\\'}\\''; color: green;}"
+          text run at (416,720) width 0: " "
+          text run at (0,736) width 104: "P.twentytwo {"
+          text run at (104,736) width 0: " "
+          text run at (0,752) width 376: " type-display: @threedee {rotation-code: '}';};"
+          text run at (376,752) width 0: " "
+          text run at (0,768) width 112: " color: green;"
+          text run at (112,768) width 0: " "
+          text run at (0,784) width 16: " }"
+          text run at (16,784) width 0: " "
+          text run at (0,800) width 280: "P.twentythree {text-indent: 0.5in;}"
+          text run at (280,800) width 0: " "
+          text run at (0,816) width 112: " color: maroon"
+          text run at (112,816) width 0: " "
+          text run at (0,832) width 208: "P.twentyfour {color: red;}"
+          text run at (208,832) width 0: " "
+          text run at (0,848) width 0: " "
+      LayoutBlockFlow {P} at (0,931) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 462x19
+          text run at (0,0) width 462: "This paragraph should be green, because only the rotation should be ignored."
+      LayoutBlockFlow {P} at (0,967) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 591x19
+          text run at (0,0) width 591: "This paragraph should be green, since error-checking should be done before calculating specificity."
+      LayoutBlockFlow {P} at (0,1003) size 769x40
+        LayoutText {#text} at (0,0) size 535x19
+          text run at (0,0) width 535: "This paragraph should have a solid gray background (or a white grid), because in CSS1, "
+        LayoutInline {CODE} at (0,0) size 56x16
+          LayoutText {#text} at (535,3) size 56x16
+            text run at (535,3) width 56: "inherit"
+        LayoutText {#text} at (591,0) size 766x39
+          text run at (591,0) width 175: " is an invalid keyword, and in"
+          text run at (0,20) width 454: "CSS2, it will cause the gray background (not the white grid) to be inherited."
+      LayoutBlockFlow {P} at (0,1059) size 769x20
+        LayoutText {#text} at (0,0) size 610x19
+          text run at (0,0) width 610: "This paragraph should be black, since in CSS1, the selector is invalid, and in CSS2, it does not apply."
+      LayoutBlockFlow {P} at (0,1095) size 769x20
+        LayoutText {#text} at (0,0) size 610x19
+          text run at (0,0) width 610: "This paragraph should be black, since in CSS1, the selector is invalid, and in CSS2, it does not apply."
+      LayoutBlockFlow {P} at (0,1131) size 769x20
+        LayoutText {#text} at (0,0) size 503x19
+          text run at (0,0) width 503: "This paragraph should have a white background, since keywords cannot be quoted."
+      LayoutBlockFlow {P} at (0,1167) size 769x46 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 744x39
+          text run at (3,3) width 616: "This paragraph should have a medium-width border around it (the same as the next three paragraphs). "
+          text run at (619,3) width 128: "This should cause the"
+          text run at (3,23) width 279: "user agent to use the default value of 'medium'."
+      LayoutBlockFlow {P} at (0,1229) size 769x46 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 761x39
+          text run at (3,3) width 761: "This paragraph should have a medium-width border around it (the same as the previous and the next two paragraphs), because"
+          text run at (3,23) width 165: "the border-width is invalid. "
+          text run at (167,23) width 412: "This should cause the user agent to use the default value of 'medium'."
+      LayoutBlockFlow {P} at (0,1291) size 769x66 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 761x59
+          text run at (3,3) width 761: "This paragraph should have a medium-width border around it (the same as the next and the previous two paragraphs), because"
+          text run at (3,23) width 511: "the border-width units are invalid, and therefore the border-width should be ignored. "
+          text run at (513,23) width 234: "This should cause the user agent to use"
+          text run at (3,43) width 174: "the default value of 'medium'."
+      LayoutBlockFlow {P} at (0,1373) size 769x66 [border: (3px solid #000000)]
+        LayoutText {#text} at (3,3) size 750x59
+          text run at (3,3) width 713: "This paragraph should have a medium-width border around it (the same as the previous three paragraphs), because the"
+          text run at (3,23) width 517: "border-width does not have any value to go with its pixel unit, and is therefore invalid. "
+          text run at (519,23) width 234: "This should cause the user agent to use"
+          text run at (3,43) width 174: "the default value of 'medium'."
+      LayoutBlockFlow {P} at (0,1455) size 769x20
+        LayoutText {#text} at (0,0) size 627x19
+          text run at (0,0) width 627: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule."
+      LayoutBlockFlow {P} at (0,1491) size 769x40 [color=#008000]
+        LayoutText {#text} at (0,0) size 726x39
+          text run at (0,0) width 197: "This paragraph should be green. "
+          text run at (197,0) width 529: "CSS is case-insensitive, unless required to be case sensitive due to interaction with other"
+          text run at (0,20) width 228: "standards (e.g., font names or URLs.)"
+      LayoutBlockFlow {OL} at (0,1547) size 769x20
+        LayoutListItem {LI} at (40,0) size 729x20
+          LayoutListMarker (anonymous) at (-16,0) size 16x19: "1"
+          LayoutText {#text} at (0,0) size 596x19
+            text run at (0,0) width 596: "This ordered list item should be black, because the declaration has an invalid pseudo-class selector."
+      LayoutBlockFlow {P} at (0,1583) size 769x40
+        LayoutText {#text} at (0,0) size 764x39
+          text run at (0,0) width 764: "This paragraph should be black, because, in CSS1, :first-child is an invalid pseudo-class, and in CSS2, this paragraph is not the"
+          text run at (0,20) width 58: "first child."
+      LayoutBlockFlow {UL} at (0,1639) size 769x40
+        LayoutListItem {LI} at (40,0) size 729x40
+          LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+          LayoutText {#text} at (0,0) size 728x39
+            text run at (0,0) width 728: "This unordered list item should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the"
+            text run at (0,20) width 153: "selector should not apply."
+      LayoutBlockFlow {BLOCKQUOTE} at (40,1695) size 689x40
+        LayoutText {#text} at (0,0) size 685x39
+          text run at (0,0) width 685: "This blockquote should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the"
+          text run at (0,20) width 153: "selector should not apply."
+      LayoutBlockFlow {P} at (0,1751) size 769x40
+        LayoutInline {ACRONYM} at (0,0) size 763x39
+          LayoutText {#text} at (0,0) size 763x39
+            text run at (0,0) width 763: "This acronym should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the selector should"
+            text run at (0,20) width 59: "not apply."
+      LayoutBlockFlow {ADDRESS} at (0,1807) size 769x40
+        LayoutText {#text} at (0,0) size 752x39
+          text run at (0,0) width 752: "This address should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the selector"
+          text run at (0,20) width 110: "should not apply."
+      LayoutBlockFlow {P} at (0,1863) size 769x40
+        LayoutInline {SPAN} at (0,0) size 762x39
+          LayoutText {#text} at (0,0) size 762x39
+            text run at (0,0) width 762: "This span should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the selector should not"
+            text run at (0,20) width 36: "apply."
+      LayoutBlockFlow {P} at (0,1919) size 769x40
+        LayoutText {#text} at (0,0) size 761x39
+          text run at (0,0) width 631: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule. "
+          text run at (631,0) width 130: "However, it is valid in"
+          text run at (0,20) width 521: "CSS2, so if this is being viewed on a tty browser that supports CSS2, it should be red."
+      LayoutBlockFlow {P} at (0,1975) size 769x20
+        LayoutText {#text} at (0,0) size 627x19
+          text run at (0,0) width 627: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule."
+      LayoutBlockFlow {P} at (0,2011) size 769x80
+        LayoutText {#text} at (0,0) size 703x19
+          text run at (0,0) width 703: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold), because"
+        LayoutInline {CODE} at (0,0) size 64x16
+          LayoutText {#text} at (0,23) size 64x16
+            text run at (0,23) width 64: "diagonal"
+        LayoutText {#text} at (64,20) size 214x19
+          text run at (64,20) width 214: " is not a valid keyword, making the "
+        LayoutInline {CODE} at (0,0) size 120x16
+          LayoutText {#text} at (278,23) size 120x16
+            text run at (278,23) width 120: "text-decoration"
+        LayoutText {#text} at (398,20) size 122x19
+          text run at (398,20) width 50: " invalid. "
+          text run at (448,20) width 72: "In addition, "
+        LayoutInline {CODE} at (0,0) size 88x16
+          LayoutText {#text} at (520,23) size 88x16
+            text run at (520,23) width 88: "highlighted"
+        LayoutText {#text} at (608,20) size 145x19
+          text run at (608,20) width 145: " is not a valid part of the"
+        LayoutInline {CODE} at (0,0) size 32x16
+          LayoutText {#text} at (0,43) size 32x16
+            text run at (0,43) width 32: "font"
+        LayoutText {#text} at (32,40) size 768x39
+          text run at (32,40) width 167: " property, making it invalid. "
+          text run at (198,40) width 537: "Therefore, this paragraph's font should be the UA default, and match the next paragraph. "
+          text run at (734,40) width 34: "If this"
+          text run at (0,60) width 144: "is not the case, then the "
+        LayoutInline {CODE} at (0,0) size 32x16
+          LayoutText {#text} at (144,63) size 32x16
+            text run at (144,63) width 32: "font"
+        LayoutText {#text} at (176,60) size 237x19
+          text run at (176,60) width 237: " declaration is being improperly parsed."
+      LayoutBlockFlow {P} at (0,2107) size 769x80
+        LayoutText {#text} at (0,0) size 703x19
+          text run at (0,0) width 703: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold), because"
+        LayoutInline {CODE} at (0,0) size 64x16
+          LayoutText {#text} at (0,23) size 64x16
+            text run at (0,23) width 64: "diagonal"
+        LayoutText {#text} at (64,20) size 214x19
+          text run at (64,20) width 214: " is not a valid keyword, making the "
+        LayoutInline {CODE} at (0,0) size 120x16
+          LayoutText {#text} at (278,23) size 120x16
+            text run at (278,23) width 120: "text-decoration"
+        LayoutText {#text} at (398,20) size 122x19
+          text run at (398,20) width 50: " invalid. "
+          text run at (448,20) width 72: "In addition, "
+        LayoutInline {CODE} at (0,0) size 88x16
+          LayoutText {#text} at (520,23) size 88x16
+            text run at (520,23) width 88: "highlighted"
+        LayoutText {#text} at (608,20) size 145x19
+          text run at (608,20) width 145: " is not a valid part of the"
+        LayoutInline {CODE} at (0,0) size 32x16
+          LayoutText {#text} at (0,43) size 32x16
+            text run at (0,43) width 32: "font"
+        LayoutText {#text} at (32,40) size 757x39
+          text run at (32,40) width 167: " property, making it invalid. "
+          text run at (198,40) width 559: "Therefore, this paragraph's font should be the UA default, and match the previous paragraph."
+          text run at (0,60) width 181: "If this is not the case, then the "
+        LayoutInline {CODE} at (0,0) size 32x16
+          LayoutText {#text} at (181,63) size 32x16
+            text run at (181,63) width 32: "font"
+        LayoutText {#text} at (213,60) size 237x19
+          text run at (213,60) width 237: " declaration is being improperly parsed."
+      LayoutBlockFlow {P} at (0,2203) size 769x60
+        LayoutText {#text} at (0,0) size 503x19
+          text run at (0,0) width 476: "The text of this paragraph should be normal size because the selector is invalid. "
+          text run at (476,0) width 27: "The "
+        LayoutInline {EM} at (0,0) size 103x19
+          LayoutText {#text} at (503,0) size 103x19
+            text run at (503,0) width 103: "emphasized text"
+        LayoutText {#text} at (606,0) size 52x19
+          text run at (606,0) width 52: " and the "
+        LayoutInline {STRONG} at (0,0) size 72x19
+          LayoutText {#text} at (658,0) size 72x19
+            text run at (658,0) width 72: "strong text"
+        LayoutText {#text} at (729,0) size 769x59
+          text run at (729,0) width 40: " within"
+          text run at (0,20) width 757: "it should also be normal size, since the entire ruleset should be skipped (since in some future version of CSS, there could be an"
+          text run at (0,40) width 425: "operator within the selector that has higher precedence than a comma)."
+      LayoutBlockFlow {P} at (0,2279) size 769x40
+        LayoutText {#text} at (0,0) size 444x19
+          text run at (0,0) width 444: "This paragraph should be black, because the line before the declaration is "
+        LayoutInline {STRONG} at (0,0) size 21x19
+          LayoutText {#text} at (444,0) size 21x19
+            text run at (444,0) width 21: "not"
+        LayoutText {#text} at (465,0) size 713x39
+          text run at (465,0) width 248: " a comment and therefore the selector for"
+          text run at (0,20) width 128: "P.nineteenb is invalid."
+      LayoutBlockFlow {P} at (0,2335) size 769x20 [color=#0000FF]
+        LayoutText {#text} at (0,0) size 444x19
+          text run at (0,0) width 444: "This paragraph should be blue, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2371) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 452x19
+          text run at (0,0) width 452: "This paragraph should be green, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2407) size 769x20 [color=#800080]
+        LayoutText {#text} at (0,0) size 457x19
+          text run at (0,0) width 457: "This paragraph should be purple, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2443) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 452x19
+          text run at (0,0) width 452: "This paragraph should be green, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2479) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 452x19
+          text run at (0,0) width 452: "This paragraph should be green, because only the first declaration is invalid."
+      LayoutBlockFlow {P} at (0,2515) size 769x20
+        LayoutText {#text} at (48,0) size 571x19
+          text run at (48,0) width 459: "This paragraph should be indented half an inch, but it should not be maroon. "
+          text run at (507,0) width 112: "It should be black."
+      LayoutBlockFlow {P} at (0,2551) size 769x40
+        LayoutText {#text} at (0,0) size 722x39
+          text run at (0,0) width 722: "This paragraph should be black, because the color declaration after the previous ruleset should be considered part of the"
+          text run at (0,20) width 588: "selector for this ruleset, and this ruleset therefore has an invalid selector and should not be applied."
+      LayoutTable {TABLE} at (0,2607) size 769x1698 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1696
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x1668
+            LayoutTableCell {TD} at (0,848) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x1668 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 462x19
+                  text run at (0,0) width 462: "This paragraph should be green, because only the rotation should be ignored."
+              LayoutBlockFlow {P} at (4,40) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 591x19
+                  text run at (0,0) width 591: "This paragraph should be green, since error-checking should be done before calculating specificity."
+              LayoutBlockFlow {P} at (4,76) size 747x40
+                LayoutText {#text} at (0,0) size 535x19
+                  text run at (0,0) width 535: "This paragraph should have a solid gray background (or a white grid), because in CSS1, "
+                LayoutInline {CODE} at (0,0) size 56x16
+                  LayoutText {#text} at (535,3) size 56x16
+                    text run at (535,3) width 56: "inherit"
+                LayoutText {#text} at (591,0) size 726x39
+                  text run at (591,0) width 135: " is an invalid keyword,"
+                  text run at (0,20) width 494: "and in CSS2, it will cause the gray background (not the white grid) to be inherited."
+              LayoutBlockFlow {P} at (4,132) size 747x20
+                LayoutText {#text} at (0,0) size 610x19
+                  text run at (0,0) width 610: "This paragraph should be black, since in CSS1, the selector is invalid, and in CSS2, it does not apply."
+              LayoutBlockFlow {P} at (4,168) size 747x20
+                LayoutText {#text} at (0,0) size 610x19
+                  text run at (0,0) width 610: "This paragraph should be black, since in CSS1, the selector is invalid, and in CSS2, it does not apply."
+              LayoutBlockFlow {P} at (4,204) size 747x20
+                LayoutText {#text} at (0,0) size 503x19
+                  text run at (0,0) width 503: "This paragraph should have a white background, since keywords cannot be quoted."
+              LayoutBlockFlow {P} at (4,240) size 747x46 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 722x39
+                  text run at (3,3) width 616: "This paragraph should have a medium-width border around it (the same as the next three paragraphs). "
+                  text run at (619,3) width 106: "This should cause"
+                  text run at (3,23) width 301: "the user agent to use the default value of 'medium'."
+              LayoutBlockFlow {P} at (4,302) size 747x46 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 708x39
+                  text run at (3,3) width 708: "This paragraph should have a medium-width border around it (the same as the previous and the next two paragraphs),"
+                  text run at (3,23) width 218: "because the border-width is invalid. "
+                  text run at (220,23) width 412: "This should cause the user agent to use the default value of 'medium'."
+              LayoutBlockFlow {P} at (4,364) size 747x66 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 721x59
+                  text run at (3,3) width 708: "This paragraph should have a medium-width border around it (the same as the next and the previous two paragraphs),"
+                  text run at (3,23) width 564: "because the border-width units are invalid, and therefore the border-width should be ignored. "
+                  text run at (566,23) width 158: "This should cause the user"
+                  text run at (3,43) width 250: "agent to use the default value of 'medium'."
+              LayoutBlockFlow {P} at (4,446) size 747x66 [border: (3px solid #000000)]
+                LayoutText {#text} at (3,3) size 726x59
+                  text run at (3,3) width 713: "This paragraph should have a medium-width border around it (the same as the previous three paragraphs), because the"
+                  text run at (3,23) width 517: "border-width does not have any value to go with its pixel unit, and is therefore invalid. "
+                  text run at (519,23) width 210: "This should cause the user agent to"
+                  text run at (3,43) width 198: "use the default value of 'medium'."
+              LayoutBlockFlow {P} at (4,528) size 747x20
+                LayoutText {#text} at (0,0) size 627x19
+                  text run at (0,0) width 627: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule."
+              LayoutBlockFlow {P} at (4,564) size 747x40 [color=#008000]
+                LayoutText {#text} at (0,0) size 726x39
+                  text run at (0,0) width 197: "This paragraph should be green. "
+                  text run at (197,0) width 529: "CSS is case-insensitive, unless required to be case sensitive due to interaction with other"
+                  text run at (0,20) width 228: "standards (e.g., font names or URLs.)"
+              LayoutBlockFlow {OL} at (4,620) size 747x20
+                LayoutListItem {LI} at (40,0) size 707x20
+                  LayoutListMarker (anonymous) at (-16,0) size 16x19: "1"
+                  LayoutText {#text} at (0,0) size 596x19
+                    text run at (0,0) width 596: "This ordered list item should be black, because the declaration has an invalid pseudo-class selector."
+              LayoutBlockFlow {P} at (4,656) size 747x40
+                LayoutText {#text} at (0,0) size 742x39
+                  text run at (0,0) width 742: "This paragraph should be black, because, in CSS1, :first-child is an invalid pseudo-class, and in CSS2, this paragraph is not"
+                  text run at (0,20) width 80: "the first child."
+              LayoutBlockFlow {UL} at (4,712) size 747x40
+                LayoutListItem {LI} at (40,0) size 707x40
+                  LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                  LayoutText {#text} at (0,0) size 706x39
+                    text run at (0,0) width 706: "This unordered list item should be black, because, according to CSS1, the selector is invalid, and according to CSS2,"
+                    text run at (0,20) width 175: "the selector should not apply."
+              LayoutBlockFlow {BLOCKQUOTE} at (44,768) size 667x40
+                LayoutText {#text} at (0,0) size 663x39
+                  text run at (0,0) width 663: "This blockquote should be black, because, according to CSS1, the selector is invalid, and according to CSS2,"
+                  text run at (0,20) width 175: "the selector should not apply."
+              LayoutBlockFlow {P} at (4,824) size 747x40
+                LayoutInline {ACRONYM} at (0,0) size 720x39
+                  LayoutText {#text} at (0,0) size 720x39
+                    text run at (0,0) width 720: "This acronym should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the selector"
+                    text run at (0,20) width 102: "should not apply."
+              LayoutBlockFlow {ADDRESS} at (4,880) size 747x40
+                LayoutText {#text} at (0,0) size 698x39
+                  text run at (0,0) width 698: "This address should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the"
+                  text run at (0,20) width 164: "selector should not apply."
+              LayoutBlockFlow {P} at (4,936) size 747x40
+                LayoutInline {SPAN} at (0,0) size 739x39
+                  LayoutText {#text} at (0,0) size 739x39
+                    text run at (0,0) width 739: "This span should be black, because, according to CSS1, the selector is invalid, and according to CSS2, the selector should"
+                    text run at (0,20) width 59: "not apply."
+              LayoutBlockFlow {P} at (4,992) size 747x40
+                LayoutText {#text} at (0,0) size 747x39
+                  text run at (0,0) width 631: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule. "
+                  text run at (631,0) width 116: "However, it is valid"
+                  text run at (0,20) width 535: "in CSS2, so if this is being viewed on a tty browser that supports CSS2, it should be red."
+              LayoutBlockFlow {P} at (4,1048) size 747x20
+                LayoutText {#text} at (0,0) size 627x19
+                  text run at (0,0) width 627: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule."
+              LayoutBlockFlow {P} at (4,1084) size 747x80
+                LayoutText {#text} at (0,0) size 703x19
+                  text run at (0,0) width 703: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold), because"
+                LayoutInline {CODE} at (0,0) size 64x16
+                  LayoutText {#text} at (0,23) size 64x16
+                    text run at (0,23) width 64: "diagonal"
+                LayoutText {#text} at (64,20) size 214x19
+                  text run at (64,20) width 214: " is not a valid keyword, making the "
+                LayoutInline {CODE} at (0,0) size 120x16
+                  LayoutText {#text} at (278,23) size 120x16
+                    text run at (278,23) width 120: "text-decoration"
+                LayoutText {#text} at (398,20) size 122x19
+                  text run at (398,20) width 50: " invalid. "
+                  text run at (448,20) width 72: "In addition, "
+                LayoutInline {CODE} at (0,0) size 88x16
+                  LayoutText {#text} at (520,23) size 88x16
+                    text run at (520,23) width 88: "highlighted"
+                LayoutText {#text} at (608,20) size 731x39
+                  text run at (608,20) width 123: " is not a valid part of"
+                  text run at (0,40) width 22: "the "
+                LayoutInline {CODE} at (0,0) size 32x16
+                  LayoutText {#text} at (22,43) size 32x16
+                    text run at (22,43) width 32: "font"
+                LayoutText {#text} at (54,40) size 684x39
+                  text run at (54,40) width 167: " property, making it invalid. "
+                  text run at (220,40) width 464: "Therefore, this paragraph's font should be the UA default, and match the next"
+                  text run at (0,60) width 69: "paragraph. "
+                  text run at (69,60) width 181: "If this is not the case, then the "
+                LayoutInline {CODE} at (0,0) size 32x16
+                  LayoutText {#text} at (250,63) size 32x16
+                    text run at (250,63) width 32: "font"
+                LayoutText {#text} at (282,60) size 237x19
+                  text run at (282,60) width 237: " declaration is being improperly parsed."
+              LayoutBlockFlow {P} at (4,1180) size 747x80
+                LayoutText {#text} at (0,0) size 703x19
+                  text run at (0,0) width 703: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold), because"
+                LayoutInline {CODE} at (0,0) size 64x16
+                  LayoutText {#text} at (0,23) size 64x16
+                    text run at (0,23) width 64: "diagonal"
+                LayoutText {#text} at (64,20) size 214x19
+                  text run at (64,20) width 214: " is not a valid keyword, making the "
+                LayoutInline {CODE} at (0,0) size 120x16
+                  LayoutText {#text} at (278,23) size 120x16
+                    text run at (278,23) width 120: "text-decoration"
+                LayoutText {#text} at (398,20) size 122x19
+                  text run at (398,20) width 50: " invalid. "
+                  text run at (448,20) width 72: "In addition, "
+                LayoutInline {CODE} at (0,0) size 88x16
+                  LayoutText {#text} at (520,23) size 88x16
+                    text run at (520,23) width 88: "highlighted"
+                LayoutText {#text} at (608,20) size 731x39
+                  text run at (608,20) width 123: " is not a valid part of"
+                  text run at (0,40) width 22: "the "
+                LayoutInline {CODE} at (0,0) size 32x16
+                  LayoutText {#text} at (22,43) size 32x16
+                    text run at (22,43) width 32: "font"
+                LayoutText {#text} at (54,40) size 710x39
+                  text run at (54,40) width 167: " property, making it invalid. "
+                  text run at (220,40) width 490: "Therefore, this paragraph's font should be the UA default, and match the previous"
+                  text run at (0,60) width 69: "paragraph. "
+                  text run at (69,60) width 181: "If this is not the case, then the "
+                LayoutInline {CODE} at (0,0) size 32x16
+                  LayoutText {#text} at (250,63) size 32x16
+                    text run at (250,63) width 32: "font"
+                LayoutText {#text} at (282,60) size 237x19
+                  text run at (282,60) width 237: " declaration is being improperly parsed."
+              LayoutBlockFlow {P} at (4,1276) size 747x60
+                LayoutText {#text} at (0,0) size 503x19
+                  text run at (0,0) width 476: "The text of this paragraph should be normal size because the selector is invalid. "
+                  text run at (476,0) width 27: "The "
+                LayoutInline {EM} at (0,0) size 103x19
+                  LayoutText {#text} at (503,0) size 103x19
+                    text run at (503,0) width 103: "emphasized text"
+                LayoutText {#text} at (606,0) size 52x19
+                  text run at (606,0) width 52: " and the "
+                LayoutInline {STRONG} at (0,0) size 72x19
+                  LayoutText {#text} at (658,0) size 72x19
+                    text run at (658,0) width 72: "strong text"
+                LayoutText {#text} at (0,20) size 722x39
+                  text run at (0,20) width 722: "within it should also be normal size, since the entire ruleset should be skipped (since in some future version of CSS, there"
+                  text run at (0,40) width 499: "could be an operator within the selector that has higher precedence than a comma)."
+              LayoutBlockFlow {P} at (4,1352) size 747x40
+                LayoutText {#text} at (0,0) size 444x19
+                  text run at (0,0) width 444: "This paragraph should be black, because the line before the declaration is "
+                LayoutInline {STRONG} at (0,0) size 21x19
+                  LayoutText {#text} at (444,0) size 21x19
+                    text run at (444,0) width 21: "not"
+                LayoutText {#text} at (465,0) size 713x39
+                  text run at (465,0) width 248: " a comment and therefore the selector for"
+                  text run at (0,20) width 128: "P.nineteenb is invalid."
+              LayoutBlockFlow {P} at (4,1408) size 747x20 [color=#0000FF]
+                LayoutText {#text} at (0,0) size 444x19
+                  text run at (0,0) width 444: "This paragraph should be blue, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1444) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 452x19
+                  text run at (0,0) width 452: "This paragraph should be green, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1480) size 747x20 [color=#800080]
+                LayoutText {#text} at (0,0) size 457x19
+                  text run at (0,0) width 457: "This paragraph should be purple, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1516) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 452x19
+                  text run at (0,0) width 452: "This paragraph should be green, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1552) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 452x19
+                  text run at (0,0) width 452: "This paragraph should be green, because only the first declaration is invalid."
+              LayoutBlockFlow {P} at (4,1588) size 747x20
+                LayoutText {#text} at (48,0) size 571x19
+                  text run at (48,0) width 459: "This paragraph should be indented half an inch, but it should not be maroon. "
+                  text run at (507,0) width 112: "It should be black."
+              LayoutBlockFlow {P} at (4,1624) size 747x40
+                LayoutText {#text} at (0,0) size 722x39
+                  text run at (0,0) width 722: "This paragraph should be black, because the color declaration after the previous ruleset should be considered part of the"
+                  text run at (0,20) width 588: "selector for this ruleset, and this ruleset therefore has an invalid selector and should not be applied."
+layer at (8,921) size 769x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,913) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font-expected.txt
new file mode 100644
index 0000000..ae55213
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font-expected.txt
@@ -0,0 +1,235 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 4723
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x4723 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x4723.33
+    LayoutBlockFlow {BODY} at (8,8) size 769x4707.33 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x16
+        LayoutText {#text} at (0,0) size 274x15
+          text run at (0,0) width 274: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,28) size 769x180
+        LayoutText {#text} at (0,0) size 399x180
+          text run at (0,0) width 161: "BODY {font-size: 12px;}"
+          text run at (161,0) width 0: " "
+          text run at (0,15) width 322: ".one {font: italic small-caps 13pt Helvetica;}"
+          text run at (322,15) width 0: " "
+          text run at (0,30) width 203: ".two {font: 150%/150% serif;}"
+          text run at (203,30) width 0: " "
+          text run at (0,45) width 252: ".three {font: 150%/150% sans-serif;}"
+          text run at (252,45) width 0: " "
+          text run at (0,60) width 231: ".four {font: small/200% cursive;}"
+          text run at (231,60) width 0: " "
+          text run at (0,75) width 399: ".five {font: italic small-caps 900 150%/150% sans-serif;}"
+          text run at (399,75) width 0: " "
+          text run at (0,90) width 392: ".six {font: italic small-caps 100 150%/300% sans-serif;}"
+          text run at (392,90) width 0: " "
+          text run at (0,105) width 392: ".seven {font: italic small-caps 900 150%/2em monospace;}"
+          text run at (392,105) width 0: " "
+          text run at (0,120) width 399: ".eight {font: italic small-caps 500 150%/1in sans-serif;}"
+          text run at (399,120) width 0: " "
+          text run at (0,135) width 378: ".nine {font: oblique normal 700 18px/200% sans-serif;}"
+          text run at (378,135) width 0: " "
+          text run at (0,150) width 301: ".ten {font: normal 400 80%/2.5 sans-serif;}"
+          text run at (301,150) width 0: " "
+          text run at (0,165) width 266: "SPAN.color {background-color: silver;}"
+          text run at (266,165) width 0: " "
+      LayoutBlockFlow {P} at (0,234) size 769x16
+        LayoutText {#text} at (0,0) size 721x15
+          text run at (0,0) width 431: "This element is unstyled, and should inherit a font-size of 12px from the BODY element. "
+          text run at (431,0) width 290: "This is the \"base font size\" referred to in the following tests."
+      LayoutBlockFlow {P} at (0,267.33) size 769x21
+        LayoutText {#text} at (0,0) size 559x20
+          text run at (0,0) width 559: "This element should be 13pt. Helvetica which is in small-cap italics."
+      LayoutBlockFlow {P} at (0,306.33) size 769x81
+        LayoutText {#text} at (0,3) size 760x74
+          text run at (0,3) width 278: "This element should be in a serif font. "
+          text run at (278,3) width 472: "Its font-size should be 150% the base font size, and its line-height"
+          text run at (0,30) width 417: "should 150% of that value (18px and 27px, respectively). "
+          text run at (417,30) width 343: "Extra text is included for the purposes of testing"
+          text run at (0,57) width 151: "this more effectively."
+      LayoutBlockFlow {P} at (0,405.33) size 769x81
+        LayoutText {#text} at (0,3) size 757x75
+          text run at (0,3) width 348: "This element should be in a sans-serif font. "
+          text run at (348,3) width 409: "Its font-size should be 150% the base font size, and"
+          text run at (0,30) width 566: "its line-height should 150% of that value (18px and 27px, respectively). "
+          text run at (566,30) width 190: "Extra text is included for"
+          text run at (0,57) width 349: "the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,504.33) size 769x80
+        LayoutText {#text} at (0,4) size 726x44
+          text run at (0,4) width 705: "This element should be in a cursive font, 'small' in size, with a line-height 200% the height of the text's actual size. "
+          text run at (705,4) width 21: "For"
+          text run at (0,30) width 189: "example, if the font-size value "
+        LayoutInline {CODE} at (0,0) size 30x12
+          LayoutText {#text} at (189,35) size 30x12
+            text run at (189,35) width 30: "small"
+        LayoutText {#text} at (219,30) size 753x46
+          text run at (219,30) width 359: " is calculated at 10px, then the line-height should be 20px. "
+          text run at (578,30) width 175: "The actual value of the font-"
+          text run at (0,58) width 136: "size is UA-dependent. "
+          text run at (136,58) width 434: "Extra text is included for the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,602.33) size 769x135
+        LayoutText {#text} at (0,0) size 755x134
+          text run at (0,0) width 720: "This element should be in a sans-serif font, italicized and small caps,"
+          text run at (0,27) width 221: "with a weight of 900. "
+          text run at (221,27) width 534: "Its font-size should be 150% the base font size, and"
+          text run at (0,54) width 623: "its line-height should be 150% of that value (18px and 27px,"
+          text run at (0,81) width 149: "respectively). "
+          text run at (148,81) width 570: "Extra text is included for the purposes of testing this"
+          text run at (0,108) width 177: "more effectively."
+      LayoutBlockFlow {P} at (0,755.33) size 769x216
+        LayoutText {#text} at (0,16) size 760x184
+          text run at (0,16) width 760: "This element should be in a sans-serif font, italicized and small caps, with a weight of"
+          text run at (0,70) width 40: "100. "
+          text run at (40,70) width 681: "Its font-size should be 150% the base font size, and its line-height should be"
+          text run at (0,124) width 439: "300% of that value (18px and 54px, respectively). "
+          text run at (438,124) width 269: "Extra text is included for the"
+          text run at (0,178) width 377: "purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,989.33) size 769x144
+        LayoutText {#text} at (0,8) size 750x128
+          text run at (0,8) width 750: "This element should be in a monospace font, italicized and small caps, with a weight of"
+          text run at (0,44) width 55: "900. "
+          text run at (55,44) width 687: "Its font-size should be 150% the base font size, and its line-height should be"
+          text run at (0,80) width 618: "2em, or twice the element's font size (18px and 36px, respectively). "
+          text run at (618,80) width 113: "Extra text is"
+          text run at (0,116) width 499: "included for the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,1151.33) size 769x384
+        LayoutText {#text} at (0,37) size 760x310
+          text run at (0,37) width 760: "This element should be in a sans-serif font, italicized and small caps, with a weight of"
+          text run at (0,133) width 40: "500. "
+          text run at (40,133) width 666: "Its font-size should be 150% the base font size, or 18px, and its line-height"
+          text run at (0,229) width 128: "should be 1in. "
+          text run at (128,229) width 543: "Extra text is included for the purposes of testing this more"
+          text run at (0,325) width 102: "effectively."
+      LayoutBlockFlow {P} at (0,1553.33) size 769x144
+        LayoutText {#text} at (0,7) size 763x129
+          text run at (0,7) width 763: "This element should be in a sans-serif font, oblique and not small-caps, with a weight of"
+          text run at (0,43) width 40: "700. "
+          text run at (40,43) width 674: "Its font-size should be 18 pixels, and its line-height should be 36px (200% this"
+          text run at (0,79) width 181: "element's font size). "
+          text run at (181,79) width 509: "Extra text is included for the purposes of testing this more"
+          text run at (0,115) width 97: "effectively."
+      LayoutBlockFlow {P} at (0,1715.33) size 769x46
+        LayoutText {#text} at (0,5) size 760x36
+          text run at (0,5) width 305: "This element should be in a sans-serif font, with a weight of 400. "
+          text run at (305,5) width 455: "Its font-size should be 80% of 12px, or 9.6px, and its line-height shoud be 2.5 times that, or 24px."
+          text run at (0,28) width 321: "Extra text is included for the purposes of testing this more effectively."
+      LayoutBlockFlow {P} at (0,1779.33) size 769x270
+        LayoutInline {SPAN} at (0,0) size 760x238 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,16) size 760x238
+            text run at (0,16) width 760: "This element should be in a sans-serif font, italicized and small caps, with a weight of"
+            text run at (0,70) width 40: "100. "
+            text run at (40,70) width 681: "Its font-size should be 150% the base font size, and its line-height should be"
+            text run at (0,124) width 699: "300% of that value (18px and 54px, respectively). The text should have a silver"
+            text run at (0,178) width 728: "background. The background color has been set on an inline element and should"
+            text run at (0,232) width 510: "therefore only cover the text, not the interline spacing."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutTable {TABLE} at (0,2067.33) size 769x2640 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x2638
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x2610
+            LayoutTableCell {TD} at (0,1319) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x2610.33 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x40
+                LayoutText {#text} at (0,0) size 738x39
+                  text run at (0,0) width 531: "This element is unstyled, and should inherit a font-size of 12px from the BODY element. "
+                  text run at (531,0) width 207: "This is the \"base font size\" referred"
+                  text run at (0,20) width 141: "to in the following tests."
+              LayoutBlockFlow {P} at (4,61.33) size 747x21
+                LayoutText {#text} at (0,0) size 559x20
+                  text run at (0,0) width 559: "This element should be 13pt. Helvetica which is in small-cap italics."
+              LayoutBlockFlow {P} at (4,106.33) size 747x144
+                LayoutText {#text} at (0,4) size 725x135
+                  text run at (0,4) width 367: "This element should be in a serif font. "
+                  text run at (367,4) width 358: "Its font-size should be 150% the base"
+                  text run at (0,40) width 685: "font size, and its line-height should 150% of that value (18px and 27px,"
+                  text run at (0,76) width 136: "respectively). "
+                  text run at (136,76) width 556: "Extra text is included for the purposes of testing this more"
+                  text run at (0,112) width 107: "effectively."
+              LayoutBlockFlow {P} at (4,274.33) size 747x144
+                LayoutText {#text} at (0,4) size 708x135
+                  text run at (0,4) width 471: "This element should be in a sans-serif font. "
+                  text run at (471,4) width 237: "Its font-size should be"
+                  text run at (0,40) width 685: "150% the base font size, and its line-height should 150% of that"
+                  text run at (0,76) width 391: "value (18px and 27px, respectively). "
+                  text run at (391,76) width 299: "Extra text is included for the"
+                  text run at (0,112) width 430: "purposes of testing this more effectively."
+              LayoutBlockFlow {P} at (4,442.33) size 747x80
+                LayoutText {#text} at (0,4) size 726x44
+                  text run at (0,4) width 705: "This element should be in a cursive font, 'small' in size, with a line-height 200% the height of the text's actual size. "
+                  text run at (705,4) width 21: "For"
+                  text run at (0,30) width 189: "example, if the font-size value "
+                LayoutInline {CODE} at (0,0) size 30x12
+                  LayoutText {#text} at (189,35) size 30x12
+                    text run at (189,35) width 30: "small"
+                LayoutText {#text} at (219,30) size 718x46
+                  text run at (219,30) width 359: " is calculated at 10px, then the line-height should be 20px. "
+                  text run at (578,30) width 140: "The actual value of the"
+                  text run at (0,58) width 167: "font-size is UA-dependent. "
+                  text run at (167,58) width 434: "Extra text is included for the purposes of testing this more effectively."
+              LayoutBlockFlow {P} at (4,546.33) size 747x216
+                LayoutText {#text} at (0,1) size 744x213
+                  text run at (0,1) width 738: "This element should be in a sans-serif font, italicized"
+                  text run at (0,37) width 516: "and small caps, with a weight of 900. "
+                  text run at (515,37) width 169: "Its font-size"
+                  text run at (0,73) width 744: "should be 150% the base font size, and its line-height"
+                  text run at (0,109) width 622: "should be 150% of that value (18px and 27px,"
+                  text run at (0,145) width 198: "respectively). "
+                  text run at (197,145) width 547: "Extra text is included for the purposes"
+                  text run at (0,181) width 446: "of testing this more effectively."
+              LayoutBlockFlow {P} at (4,786.33) size 747x360
+                LayoutText {#text} at (0,22) size 736x316
+                  text run at (0,22) width 683: "This element should be in a sans-serif font, italicized and"
+                  text run at (0,94) width 394: "small caps, with a weight of 100. "
+                  text run at (394,94) width 338: "Its font-size should be 150%"
+                  text run at (0,166) width 731: "the base font size, and its line-height should be 300% of that"
+                  text run at (0,238) width 423: "value (18px and 54px, respectively). "
+                  text run at (422,238) width 314: "Extra text is included for"
+                  text run at (0,310) width 550: "the purposes of testing this more effectively."
+              LayoutBlockFlow {P} at (4,1170.33) size 747x156
+                LayoutText {#text} at (0,8) size 740x140
+                  text run at (0,8) width 740: "This element should be in a monospace font, italicized and small caps, with a weight"
+                  text run at (0,47) width 88: "of 900. "
+                  text run at (88,47) width 620: "Its font-size should be 150% the base font size, and its line-height"
+                  text run at (0,86) width 716: "should be 2em, or twice the element's font size (18px and 36px, respectively)."
+                  text run at (0,125) width 636: "Extra text is included for the purposes of testing this more effectively."
+              LayoutBlockFlow {P} at (4,1350.33) size 747x480
+                LayoutText {#text} at (0,34) size 732x412
+                  text run at (0,34) width 683: "This element should be in a sans-serif font, italicized and"
+                  text run at (0,130) width 394: "small caps, with a weight of 500. "
+                  text run at (394,130) width 338: "Its font-size should be 150%"
+                  text run at (0,226) width 723: "the base font size, or 18px, and its line-height should be 1in."
+                  text run at (0,322) width 728: "Extra text is included for the purposes of testing this more"
+                  text run at (0,418) width 135: "effectively."
+              LayoutBlockFlow {P} at (4,1854.33) size 747x144
+                LayoutText {#text} at (0,7) size 741x129
+                  text run at (0,7) width 741: "This element should be in a sans-serif font, oblique and not small-caps, with a weight"
+                  text run at (0,43) width 62: "of 700. "
+                  text run at (62,43) width 674: "Its font-size should be 18 pixels, and its line-height should be 36px (200% this"
+                  text run at (0,79) width 181: "element's font size). "
+                  text run at (181,79) width 509: "Extra text is included for the purposes of testing this more"
+                  text run at (0,115) width 97: "effectively."
+              LayoutBlockFlow {P} at (4,2016.33) size 747x62
+                LayoutText {#text} at (0,7) size 742x47
+                  text run at (0,7) width 374: "This element should be in a sans-serif font, with a weight of 400. "
+                  text run at (374,7) width 368: "Its font-size should be 80% of 12px, or 9.6px, and its line-height"
+                  text run at (0,38) width 196: "shoud be 2.5 times that, or 24px. "
+                  text run at (196,38) width 398: "Extra text is included for the purposes of testing this more effectively."
+              LayoutBlockFlow {P} at (4,2102.33) size 747x504
+                LayoutInline {SPAN} at (0,0) size 742x460 [bgcolor=#C0C0C0]
+                  LayoutText {#text} at (0,22) size 742x460
+                    text run at (0,22) width 683: "This element should be in a sans-serif font, italicized and"
+                    text run at (0,94) width 394: "small caps, with a weight of 100. "
+                    text run at (394,94) width 338: "Its font-size should be 150%"
+                    text run at (0,166) width 731: "the base font size, and its line-height should be 300% of that"
+                    text run at (0,238) width 695: "value (18px and 54px, respectively). The text should have a"
+                    text run at (0,310) width 742: "silver background. The background color has been set on an"
+                    text run at (0,382) width 737: "inline element and should therefore only cover the text, not"
+                    text run at (0,454) width 256: "the interline spacing."
+                LayoutText {#text} at (0,0) size 0x0
+layer at (8,228) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,220) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_family-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_family-expected.txt
new file mode 100644
index 0000000..8a4db8e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_family-expected.txt
@@ -0,0 +1,140 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1324
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1324 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1324
+    LayoutBlockFlow {BODY} at (8,8) size 769x1308 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x144
+        LayoutText {#text} at (0,0) size 312x144
+          text run at (0,0) width 216: "DIV.a {font-family: serif;}"
+          text run at (216,0) width 0: " "
+          text run at (0,16) width 248: "DIV.b {font-family: monospace;}"
+          text run at (248,16) width 0: " "
+          text run at (0,32) width 208: ".one {font-family: serif;}"
+          text run at (208,32) width 0: " "
+          text run at (0,48) width 248: ".two {font-family: sans-serif;}"
+          text run at (248,48) width 0: " "
+          text run at (0,64) width 240: ".three {font-family: cursive;}"
+          text run at (240,64) width 0: " "
+          text run at (0,80) width 232: ".four {font-family: fantasy;}"
+          text run at (232,80) width 0: " "
+          text run at (0,96) width 248: ".five {font-family: monospace;}"
+          text run at (248,96) width 0: " "
+          text run at (0,112) width 312: ".six {font-family: sans-serif,cursive;}"
+          text run at (312,112) width 0: " "
+          text run at (0,128) width 304: ".seven {font-family: monospace,serif;}"
+          text run at (304,128) width 0: " "
+      LayoutBlockFlow {DIV} at (0,211) size 769x198
+        LayoutBlockFlow {P} at (0,0) size 769x20
+          LayoutText {#text} at (0,0) size 599x19
+            text run at (0,0) width 599: "This sentence is normal for the first division, which is the next five sentences; it should be a serif font."
+        LayoutBlockFlow {P} at (0,36) size 769x20
+          LayoutText {#text} at (0,0) size 228x19
+            text run at (0,0) width 228: "This sentence should be in a serif font."
+        LayoutBlockFlow {P} at (0,72) size 769x19
+          LayoutText {#text} at (0,0) size 301x18
+            text run at (0,0) width 301: "This sentence should be in a sans-serif font."
+        LayoutBlockFlow {P} at (0,107) size 769x23
+          LayoutText {#text} at (0,0) size 299x23
+            text run at (0,0) width 299: "This sentence should be in a cursive font."
+        LayoutBlockFlow {P} at (0,146) size 769x20
+          LayoutText {#text} at (0,0) size 268x20
+            text run at (0,0) width 268: "This sentence should be in a fantasy font."
+        LayoutBlockFlow {P} at (0,182) size 769x16
+          LayoutText {#text} at (0,0) size 352x16
+            text run at (0,0) width 352: "This sentence should be in a monospace font."
+      LayoutBlockFlow {P} at (0,440) size 769x19
+        LayoutText {#text} at (0,0) size 383x18
+          text run at (0,0) width 383: "This sentence should be in a sans-serif font, not cursive."
+      LayoutBlockFlow {P} at (0,475) size 769x18
+        LayoutText {#text} at (0,0) size 550x18
+          text run at (0,0) width 550: "This sentence should be in a monospace font, not serif."
+      LayoutBlockFlow {DIV} at (0,524) size 769x210
+        LayoutBlockFlow {P} at (0,0) size 769x32
+          LayoutText {#text} at (0,0) size 768x32
+            text run at (0,0) width 768: "This sentence is normal for the first division, which is the next five sentences; it should be a"
+            text run at (0,16) width 120: "monospace font."
+        LayoutBlockFlow {P} at (0,48) size 769x20
+          LayoutText {#text} at (0,0) size 228x19
+            text run at (0,0) width 228: "This sentence should be in a serif font."
+        LayoutBlockFlow {P} at (0,84) size 769x19
+          LayoutText {#text} at (0,0) size 301x18
+            text run at (0,0) width 301: "This sentence should be in a sans-serif font."
+        LayoutBlockFlow {P} at (0,119) size 769x23
+          LayoutText {#text} at (0,0) size 299x23
+            text run at (0,0) width 299: "This sentence should be in a cursive font."
+        LayoutBlockFlow {P} at (0,158) size 769x20
+          LayoutText {#text} at (0,0) size 268x20
+            text run at (0,0) width 268: "This sentence should be in a fantasy font."
+        LayoutBlockFlow {P} at (0,194) size 769x16
+          LayoutText {#text} at (0,0) size 352x16
+            text run at (0,0) width 352: "This sentence should be in a monospace font."
+      LayoutTable {TABLE} at (0,747) size 769x561 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x559
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x531
+            LayoutTableCell {TD} at (0,279) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x531 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {DIV} at (4,4) size 747x198
+                LayoutBlockFlow {P} at (0,0) size 747x20
+                  LayoutText {#text} at (0,0) size 599x19
+                    text run at (0,0) width 599: "This sentence is normal for the first division, which is the next five sentences; it should be a serif font."
+                LayoutBlockFlow {P} at (0,36) size 747x20
+                  LayoutText {#text} at (0,0) size 228x19
+                    text run at (0,0) width 228: "This sentence should be in a serif font."
+                LayoutBlockFlow {P} at (0,72) size 747x19
+                  LayoutText {#text} at (0,0) size 301x18
+                    text run at (0,0) width 301: "This sentence should be in a sans-serif font."
+                LayoutBlockFlow {P} at (0,107) size 747x23
+                  LayoutText {#text} at (0,0) size 299x23
+                    text run at (0,0) width 299: "This sentence should be in a cursive font."
+                LayoutBlockFlow {P} at (0,146) size 747x20
+                  LayoutText {#text} at (0,0) size 268x20
+                    text run at (0,0) width 268: "This sentence should be in a fantasy font."
+                LayoutBlockFlow {P} at (0,182) size 747x16
+                  LayoutText {#text} at (0,0) size 352x16
+                    text run at (0,0) width 352: "This sentence should be in a monospace font."
+              LayoutBlockFlow {P} at (4,233) size 747x19
+                LayoutText {#text} at (0,0) size 383x18
+                  text run at (0,0) width 383: "This sentence should be in a sans-serif font, not cursive."
+              LayoutBlockFlow {P} at (4,268) size 747x18
+                LayoutText {#text} at (0,0) size 550x18
+                  text run at (0,0) width 550: "This sentence should be in a monospace font, not serif."
+              LayoutBlockFlow {DIV} at (4,317) size 747x210
+                LayoutBlockFlow {P} at (0,0) size 747x32
+                  LayoutText {#text} at (0,0) size 728x32
+                    text run at (0,0) width 728: "This sentence is normal for the first division, which is the next five sentences; it should"
+                    text run at (0,16) width 160: "be a monospace font."
+                LayoutBlockFlow {P} at (0,48) size 747x20
+                  LayoutText {#text} at (0,0) size 228x19
+                    text run at (0,0) width 228: "This sentence should be in a serif font."
+                LayoutBlockFlow {P} at (0,84) size 747x19
+                  LayoutText {#text} at (0,0) size 301x18
+                    text run at (0,0) width 301: "This sentence should be in a sans-serif font."
+                LayoutBlockFlow {P} at (0,119) size 747x23
+                  LayoutText {#text} at (0,0) size 299x23
+                    text run at (0,0) width 299: "This sentence should be in a cursive font."
+                LayoutBlockFlow {P} at (0,158) size 747x20
+                  LayoutText {#text} at (0,0) size 268x20
+                    text run at (0,0) width 268: "This sentence should be in a fantasy font."
+                LayoutBlockFlow {P} at (0,194) size 747x16
+                  LayoutText {#text} at (0,0) size 352x16
+                    text run at (0,0) width 352: "This sentence should be in a monospace font."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,430) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,422) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,517) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,509) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (25,999) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,215) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1086) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,302) size 747x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_size-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_size-expected.txt
new file mode 100644
index 0000000..3b027f6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_size-expected.txt
@@ -0,0 +1,257 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2820
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2820 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2820.27
+    LayoutBlockFlow {BODY} at (8,8) size 769x2804.27 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x320
+        LayoutText {#text} at (0,0) size 224x320
+          text run at (0,0) width 200: ".one {font-size: medium;}"
+          text run at (200,0) width 0: " "
+          text run at (0,16) width 200: ".two {font-size: larger;}"
+          text run at (200,16) width 0: " "
+          text run at (0,32) width 224: ".three {font-size: smaller;}"
+          text run at (224,32) width 0: " "
+          text run at (0,48) width 224: ".four {font-size: xx-small;}"
+          text run at (224,48) width 0: " "
+          text run at (0,64) width 216: ".five {font-size: x-small;}"
+          text run at (216,64) width 0: " "
+          text run at (0,80) width 192: ".six {font-size: small;}"
+          text run at (192,80) width 0: " "
+          text run at (0,96) width 208: ".seven {font-size: large;}"
+          text run at (208,96) width 0: " "
+          text run at (0,112) width 224: ".eight {font-size: x-large;}"
+          text run at (224,112) width 0: " "
+          text run at (0,128) width 224: ".nine {font-size: xx-large;}"
+          text run at (224,128) width 0: " "
+          text run at (0,144) width 176: ".a {font-size: 0.5in;}"
+          text run at (176,144) width 0: " "
+          text run at (0,160) width 160: ".b {font-size: 1cm;}"
+          text run at (160,160) width 0: " "
+          text run at (0,176) width 168: ".c {font-size: 10mm;}"
+          text run at (168,176) width 0: " "
+          text run at (0,192) width 168: ".d {font-size: 18pt;}"
+          text run at (168,192) width 0: " "
+          text run at (0,208) width 176: ".e {font-size: 1.5pc;}"
+          text run at (176,208) width 0: " "
+          text run at (0,224) width 160: ".f {font-size: 2em;}"
+          text run at (160,224) width 0: " "
+          text run at (0,240) width 160: ".g {font-size: 3ex;}"
+          text run at (160,240) width 0: " "
+          text run at (0,256) width 168: ".h {font-size: 25px;}"
+          text run at (168,256) width 0: " "
+          text run at (0,272) width 168: ".i {font-size: 200%;}"
+          text run at (168,272) width 0: " "
+          text run at (0,288) width 184: ".j {font-size: -0.5in;}"
+          text run at (184,288) width 0: " "
+          text run at (0,304) width 0: " "
+      LayoutBlockFlow {P} at (0,387) size 769x20
+        LayoutText {#text} at (0,0) size 648x19
+          text run at (0,0) width 648: "This paragraph element is unstyled, so the size of the font in this element is the default size for this user agent."
+      LayoutBlockFlow {P} at (0,423) size 769x20
+        LayoutText {#text} at (0,0) size 179x19
+          text run at (0,0) width 179: "This sentence has been set to "
+        LayoutInline {CODE} at (0,0) size 48x16
+          LayoutText {#text} at (179,3) size 48x16
+            text run at (179,3) width 48: "medium"
+        LayoutText {#text} at (227,0) size 343x19
+          text run at (227,0) width 343: ", which may or may not be the same size as unstyled text."
+      LayoutBlockFlow {P} at (0,462.19) size 769x22
+        LayoutText {#text} at (0,0) size 366x21
+          text run at (0,0) width 366: "This sentence should be larger than unstyled text."
+      LayoutBlockFlow {P} at (0,503.38) size 769x16
+        LayoutText {#text} at (0,0) size 273x15
+          text run at (0,0) width 273: "This sentence should be smaller than unstyled text."
+      LayoutBlockFlow {P} at (0,532.70) size 769x20
+        LayoutText {#text} at (0,5) size 303x12
+          text run at (0,5) width 303: "This sentence should be very small, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 47x19
+          LayoutText {#text} at (303,0) size 47x19
+            text run at (303,0) width 47: "medium"
+        LayoutText {#text} at (350,5) size 2x12
+          text run at (350,5) width 2: "."
+      LayoutBlockFlow {P} at (0,562.70) size 769x20
+        LayoutText {#text} at (0,5) size 328x12
+          text run at (0,5) width 328: "This sentence should be rather small, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 47x19
+          LayoutText {#text} at (328,0) size 47x19
+            text run at (328,0) width 47: "medium"
+        LayoutText {#text} at (375,5) size 3x12
+          text run at (375,5) width 3: "."
+      LayoutBlockFlow {P} at (0,595.70) size 769x20
+        LayoutText {#text} at (0,3) size 400x15
+          text run at (0,3) width 400: "This sentence should be small, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 47x19
+          LayoutText {#text} at (400,0) size 47x19
+            text run at (400,0) width 47: "medium"
+        LayoutText {#text} at (447,3) size 3x15
+          text run at (447,3) width 3: "."
+      LayoutBlockFlow {P} at (0,633.70) size 769x21
+        LayoutText {#text} at (0,0) size 534x20
+          text run at (0,0) width 534: "This sentence should be large, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 48x19
+          LayoutText {#text} at (533,1) size 48x19
+            text run at (533,1) width 48: "medium"
+        LayoutText {#text} at (580,0) size 6x20
+          text run at (580,0) width 6: "."
+      LayoutBlockFlow {P} at (0,678.70) size 769x56
+        LayoutText {#text} at (0,0) size 766x27
+          text run at (0,0) width 766: "This sentence should be rather large, but the last word in the sentence should be"
+        LayoutInline {SPAN} at (0,0) size 47x19
+          LayoutText {#text} at (0,34) size 47x19
+            text run at (0,34) width 47: "medium"
+        LayoutText {#text} at (47,28) size 6x27
+          text run at (47,28) width 6: "."
+      LayoutBlockFlow {P} at (0,766.70) size 769x74
+        LayoutText {#text} at (0,0) size 735x73
+          text run at (0,0) width 735: "This sentence should be very large, but the last word in the"
+          text run at (0,37) width 242: "sentence should be "
+        LayoutInline {SPAN} at (0,0) size 47x19
+          LayoutText {#text} at (242,50) size 47x19
+            text run at (242,50) width 47: "medium"
+        LayoutText {#text} at (289,37) size 8x36
+          text run at (289,37) width 8: "."
+      LayoutBlockFlow {P} at (0,888.70) size 769x57
+        LayoutText {#text} at (0,1) size 763x55
+          text run at (0,1) width 763: "This sentence should be half an inch tall."
+      LayoutBlockFlow {P} at (0,993.70) size 769x45
+        LayoutText {#text} at (0,1) size 671x43
+          text run at (0,1) width 671: "This sentence should be one centimeter tall."
+      LayoutBlockFlow {P} at (0,1076.48) size 769x45
+        LayoutText {#text} at (0,1) size 678x43
+          text run at (0,1) width 678: "This sentence should be ten millimeters tall."
+      LayoutBlockFlow {P} at (0,1159.27) size 769x28
+        LayoutText {#text} at (0,0) size 422x27
+          text run at (0,0) width 422: "This sentence should be eighteen points tall."
+      LayoutBlockFlow {P} at (0,1211.27) size 769x28
+        LayoutText {#text} at (0,0) size 492x27
+          text run at (0,0) width 492: "This sentence should be one and one half picas tall."
+      LayoutBlockFlow {P} at (0,1271.27) size 769x37
+        LayoutText {#text} at (0,0) size 454x36
+          text run at (0,0) width 454: "This sentence should be two em tall."
+      LayoutBlockFlow {P} at (0,1340.27) size 769x24
+        LayoutText {#text} at (0,0) size 303x23
+          text run at (0,0) width 303: "This sentence should be three ex tall."
+      LayoutBlockFlow {P} at (0,1389.27) size 769x30
+        LayoutText {#text} at (0,0) size 467x29
+          text run at (0,0) width 467: "This sentence should be twenty-five pixels tall."
+      LayoutBlockFlow {P} at (0,1451.27) size 769x37
+        LayoutText {#text} at (0,0) size 533x36
+          text run at (0,0) width 533: "This sentence should be twice normal size."
+      LayoutBlockFlow {P} at (0,1520.27) size 769x20
+        LayoutText {#text} at (0,0) size 638x19
+          text run at (0,0) width 638: "This sentence should be normal size, since no negative values are allowed and therefore should be ignored."
+      LayoutTable {TABLE} at (0,1556.27) size 769x1248 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1246
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x1218
+            LayoutTableCell {TD} at (0,623) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x1218.27 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 648x19
+                  text run at (0,0) width 648: "This paragraph element is unstyled, so the size of the font in this element is the default size for this user agent."
+              LayoutBlockFlow {P} at (4,40) size 747x20
+                LayoutText {#text} at (0,0) size 179x19
+                  text run at (0,0) width 179: "This sentence has been set to "
+                LayoutInline {CODE} at (0,0) size 48x16
+                  LayoutText {#text} at (179,3) size 48x16
+                    text run at (179,3) width 48: "medium"
+                LayoutText {#text} at (227,0) size 343x19
+                  text run at (227,0) width 343: ", which may or may not be the same size as unstyled text."
+              LayoutBlockFlow {P} at (4,79.19) size 747x22
+                LayoutText {#text} at (0,0) size 366x21
+                  text run at (0,0) width 366: "This sentence should be larger than unstyled text."
+              LayoutBlockFlow {P} at (4,120.38) size 747x16
+                LayoutText {#text} at (0,0) size 273x15
+                  text run at (0,0) width 273: "This sentence should be smaller than unstyled text."
+              LayoutBlockFlow {P} at (4,149.70) size 747x20
+                LayoutText {#text} at (0,5) size 303x12
+                  text run at (0,5) width 303: "This sentence should be very small, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 47x19
+                  LayoutText {#text} at (303,0) size 47x19
+                    text run at (303,0) width 47: "medium"
+                LayoutText {#text} at (350,5) size 2x12
+                  text run at (350,5) width 2: "."
+              LayoutBlockFlow {P} at (4,179.70) size 747x20
+                LayoutText {#text} at (0,5) size 328x12
+                  text run at (0,5) width 328: "This sentence should be rather small, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 47x19
+                  LayoutText {#text} at (328,0) size 47x19
+                    text run at (328,0) width 47: "medium"
+                LayoutText {#text} at (375,5) size 3x12
+                  text run at (375,5) width 3: "."
+              LayoutBlockFlow {P} at (4,212.70) size 747x20
+                LayoutText {#text} at (0,3) size 400x15
+                  text run at (0,3) width 400: "This sentence should be small, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 47x19
+                  LayoutText {#text} at (400,0) size 47x19
+                    text run at (400,0) width 47: "medium"
+                LayoutText {#text} at (447,3) size 3x15
+                  text run at (447,3) width 3: "."
+              LayoutBlockFlow {P} at (4,250.70) size 747x21
+                LayoutText {#text} at (0,0) size 534x20
+                  text run at (0,0) width 534: "This sentence should be large, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 48x19
+                  LayoutText {#text} at (533,1) size 48x19
+                    text run at (533,1) width 48: "medium"
+                LayoutText {#text} at (580,0) size 6x20
+                  text run at (580,0) width 6: "."
+              LayoutBlockFlow {P} at (4,295.70) size 747x56
+                LayoutText {#text} at (0,0) size 737x55
+                  text run at (0,0) width 737: "This sentence should be rather large, but the last word in the sentence should"
+                  text run at (0,28) width 29: "be "
+                LayoutInline {SPAN} at (0,0) size 47x19
+                  LayoutText {#text} at (29,34) size 47x19
+                    text run at (29,34) width 47: "medium"
+                LayoutText {#text} at (76,28) size 6x27
+                  text run at (76,28) width 6: "."
+              LayoutBlockFlow {P} at (4,383.70) size 747x74
+                LayoutText {#text} at (0,0) size 735x73
+                  text run at (0,0) width 735: "This sentence should be very large, but the last word in the"
+                  text run at (0,37) width 242: "sentence should be "
+                LayoutInline {SPAN} at (0,0) size 47x19
+                  LayoutText {#text} at (242,50) size 47x19
+                    text run at (242,50) width 47: "medium"
+                LayoutText {#text} at (289,37) size 8x36
+                  text run at (289,37) width 8: "."
+              LayoutBlockFlow {P} at (4,505.70) size 747x114
+                LayoutText {#text} at (0,1) size 681x112
+                  text run at (0,1) width 681: "This sentence should be half an inch"
+                  text run at (0,58) width 70: "tall."
+              LayoutBlockFlow {P} at (4,667.70) size 747x45
+                LayoutText {#text} at (0,1) size 671x43
+                  text run at (0,1) width 671: "This sentence should be one centimeter tall."
+              LayoutBlockFlow {P} at (4,750.48) size 747x45
+                LayoutText {#text} at (0,1) size 678x43
+                  text run at (0,1) width 678: "This sentence should be ten millimeters tall."
+              LayoutBlockFlow {P} at (4,833.27) size 747x28
+                LayoutText {#text} at (0,0) size 422x27
+                  text run at (0,0) width 422: "This sentence should be eighteen points tall."
+              LayoutBlockFlow {P} at (4,885.27) size 747x28
+                LayoutText {#text} at (0,0) size 492x27
+                  text run at (0,0) width 492: "This sentence should be one and one half picas tall."
+              LayoutBlockFlow {P} at (4,945.27) size 747x37
+                LayoutText {#text} at (0,0) size 454x36
+                  text run at (0,0) width 454: "This sentence should be two em tall."
+              LayoutBlockFlow {P} at (4,1014.27) size 747x24
+                LayoutText {#text} at (0,0) size 303x23
+                  text run at (0,0) width 303: "This sentence should be three ex tall."
+              LayoutBlockFlow {P} at (4,1063.27) size 747x30
+                LayoutText {#text} at (0,0) size 467x29
+                  text run at (0,0) width 467: "This sentence should be twenty-five pixels tall."
+              LayoutBlockFlow {P} at (4,1125.27) size 747x37
+                LayoutText {#text} at (0,0) size 533x36
+                  text run at (0,0) width 533: "This sentence should be twice normal size."
+              LayoutBlockFlow {P} at (4,1194.27) size 747x20
+                LayoutText {#text} at (0,0) size 638x19
+                  text run at (0,0) width 638: "This sentence should be normal size, since no negative values are allowed and therefore should be ignored."
+layer at (8,377) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,369) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_style-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_style-expected.txt
new file mode 100644
index 0000000..d4776c9a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_style-expected.txt
@@ -0,0 +1,63 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 248x64
+          text run at (0,0) width 208: ".one {font-style: italic;}"
+          text run at (208,0) width 0: " "
+          text run at (0,16) width 216: ".two {font-style: oblique;}"
+          text run at (216,16) width 0: " "
+          text run at (0,32) width 248: ".three, I {font-style: normal;}"
+          text run at (248,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 784x20
+        LayoutText {#text} at (0,0) size 508x19
+          text run at (0,0) width 508: "This paragraph should be in italics, but the last word of the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 42x19
+          LayoutText {#text} at (507,0) size 42x19
+            text run at (507,0) width 42: "normal"
+        LayoutText {#text} at (548,0) size 5x19
+          text run at (548,0) width 5: "."
+      LayoutBlockFlow {P} at (0,167) size 784x20
+        LayoutText {#text} at (0,0) size 204x19
+          text run at (0,0) width 204: "This paragraph should be oblique."
+      LayoutBlockFlow {P} at (0,203) size 784x20
+        LayoutInline {I} at (0,0) size 201x19
+          LayoutText {#text} at (0,0) size 201x19
+            text run at (0,0) width 201: "This paragraph should be normal."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutTable {TABLE} at (0,239) size 575x130 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 573x128
+          LayoutTableRow {TR} at (0,0) size 573x28
+            LayoutTableCell {TD} at (0,0) size 573x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 573x100
+            LayoutTableCell {TD} at (0,64) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 561x100 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 553x20
+                LayoutText {#text} at (0,0) size 508x19
+                  text run at (0,0) width 508: "This paragraph should be in italics, but the last word of the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 42x19
+                  LayoutText {#text} at (507,0) size 42x19
+                    text run at (507,0) width 42: "normal"
+                LayoutText {#text} at (548,0) size 5x19
+                  text run at (548,0) width 5: "."
+              LayoutBlockFlow {P} at (4,40) size 553x20
+                LayoutText {#text} at (0,0) size 204x19
+                  text run at (0,0) width 204: "This paragraph should be oblique."
+              LayoutBlockFlow {P} at (4,76) size 553x20
+                LayoutInline {I} at (0,0) size 201x19
+                  LayoutText {#text} at (0,0) size 201x19
+                    text run at (0,0) width 201: "This paragraph should be normal."
+                LayoutText {#text} at (0,0) size 0x0
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_variant-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_variant-expected.txt
new file mode 100644
index 0000000..41cec6e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_variant-expected.txt
@@ -0,0 +1,51 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x48
+        LayoutText {#text} at (0,0) size 256x48
+          text run at (0,0) width 256: ".one {font-variant: small-caps;}"
+          text run at (256,0) width 0: " "
+          text run at (0,16) width 224: ".two {font-variant: normal;}"
+          text run at (224,16) width 0: " "
+          text run at (0,32) width 0: " "
+      LayoutBlockFlow {P} at (0,115) size 784x20
+        LayoutText {#text} at (0,0) size 282x19
+          text run at (0,0) width 282: "This Paragraph should be in Small Caps."
+      LayoutBlockFlow {P} at (0,151) size 784x20
+        LayoutText {#text} at (0,0) size 610x19
+          text run at (0,0) width 610: "This Paragraph should be in Small Caps, but the Last Word in the Sentence should be "
+        LayoutInline {SPAN} at (0,0) size 47x19
+          LayoutText {#text} at (609,0) size 47x19
+            text run at (609,0) width 47: "Normal"
+        LayoutText {#text} at (655,0) size 5x19
+          text run at (655,0) width 5: "."
+      LayoutTable {TABLE} at (0,187) size 682x94 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 680x92
+          LayoutTableRow {TR} at (0,0) size 680x28
+            LayoutTableCell {TD} at (0,0) size 680x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 680x64
+            LayoutTableCell {TD} at (0,46) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 668x64 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 660x20
+                LayoutText {#text} at (0,0) size 282x19
+                  text run at (0,0) width 282: "This Paragraph should be in Small Caps."
+              LayoutBlockFlow {P} at (4,40) size 660x20
+                LayoutText {#text} at (0,0) size 610x19
+                  text run at (0,0) width 610: "This Paragraph should be in Small Caps, but the Last Word in the Sentence should be "
+                LayoutInline {SPAN} at (0,0) size 47x19
+                  LayoutText {#text} at (609,0) size 47x19
+                    text run at (609,0) width 47: "Normal"
+                LayoutText {#text} at (655,0) size 5x19
+                  text run at (655,0) width 5: "."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_weight-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_weight-expected.txt
new file mode 100644
index 0000000..e939c4d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/font_properties/font_weight-expected.txt
@@ -0,0 +1,125 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1105
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1105 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1104.80
+    LayoutBlockFlow {BODY} at (8,8) size 769x1088.80 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x176
+        LayoutText {#text} at (0,0) size 240x176
+          text run at (0,0) width 200: ".one {font-weight: bold;}"
+          text run at (200,0) width 0: " "
+          text run at (0,16) width 216: ".two {font-weight: bolder;}"
+          text run at (216,16) width 0: " "
+          text run at (0,32) width 240: ".three {font-weight: lighter;}"
+          text run at (240,32) width 0: " "
+          text run at (0,48) width 200: ".four {font-weight: 100;}"
+          text run at (200,48) width 0: " "
+          text run at (0,64) width 200: ".five {font-weight: 300;}"
+          text run at (200,64) width 0: " "
+          text run at (0,80) width 192: ".six {font-weight: 500;}"
+          text run at (192,80) width 0: " "
+          text run at (0,96) width 208: ".seven {font-weight: 700;}"
+          text run at (208,96) width 0: " "
+          text run at (0,112) width 208: ".eight {font-weight: 900;}"
+          text run at (208,112) width 0: " "
+          text run at (0,128) width 224: ".nine {font-weight: normal;}"
+          text run at (224,128) width 0: " "
+          text run at (0,144) width 200: "B {font-weight: lighter;}"
+          text run at (200,144) width 0: " "
+          text run at (0,160) width 0: " "
+      LayoutBlockFlow {P} at (0,243) size 769x20
+        LayoutText {#text} at (0,0) size 195x19
+          text run at (0,0) width 195: "This sentence should be bold."
+      LayoutBlockFlow {P} at (0,279) size 769x20
+        LayoutText {#text} at (0,0) size 292x19
+          text run at (0,0) width 292: "This sentence should be bolder than normal."
+      LayoutBlockFlow {H4} at (0,320.27) size 769x20
+        LayoutText {#text} at (0,0) size 129x19
+          text run at (0,0) width 129: "This is a heading-4."
+      LayoutBlockFlow {H4} at (0,361.53) size 769x20
+        LayoutText {#text} at (0,0) size 175x19
+          text run at (0,0) width 175: "This is a bolder heading-4."
+      LayoutBlockFlow {P} at (0,402.80) size 769x20
+        LayoutInline {B} at (0,0) size 335x19
+          LayoutText {#text} at (0,0) size 335x19
+            text run at (0,0) width 335: "This sentence should be normal (boldface made lighter)."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,438.80) size 769x20
+        LayoutText {#text} at (0,0) size 218x19
+          text run at (0,0) width 218: "This sentence should be weight 100."
+      LayoutBlockFlow {P} at (0,474.80) size 769x20
+        LayoutText {#text} at (0,0) size 218x19
+          text run at (0,0) width 218: "This sentence should be weight 300."
+      LayoutBlockFlow {P} at (0,510.80) size 769x20
+        LayoutText {#text} at (0,0) size 218x19
+          text run at (0,0) width 218: "This sentence should be weight 500."
+      LayoutBlockFlow {P} at (0,546.80) size 769x20
+        LayoutText {#text} at (0,0) size 238x19
+          text run at (0,0) width 238: "This sentence should be weight 700."
+      LayoutBlockFlow {P} at (0,582.80) size 769x20
+        LayoutText {#text} at (0,0) size 238x19
+          text run at (0,0) width 238: "This sentence should be weight 900."
+      LayoutBlockFlow {P} at (0,618.80) size 769x20
+        LayoutText {#text} at (0,0) size 484x19
+          text run at (0,0) width 484: "This sentence should be bold, but the last word in the sentence should be "
+        LayoutInline {SPAN} at (0,0) size 41x19
+          LayoutText {#text} at (484,0) size 41x19
+            text run at (484,0) width 41: "normal"
+        LayoutText {#text} at (525,0) size 4x19
+          text run at (525,0) width 4: "."
+      LayoutTable {TABLE} at (0,654.80) size 551x434 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 549x432
+          LayoutTableRow {TR} at (0,0) size 549x28
+            LayoutTableCell {TD} at (0,0) size 549x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 549x404
+            LayoutTableCell {TD} at (0,216) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 537x403.80 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 529x20
+                LayoutText {#text} at (0,0) size 195x19
+                  text run at (0,0) width 195: "This sentence should be bold."
+              LayoutBlockFlow {P} at (4,40) size 529x20
+                LayoutText {#text} at (0,0) size 292x19
+                  text run at (0,0) width 292: "This sentence should be bolder than normal."
+              LayoutBlockFlow {H4} at (4,81.27) size 529x20
+                LayoutText {#text} at (0,0) size 129x19
+                  text run at (0,0) width 129: "This is a heading-4."
+              LayoutBlockFlow {H4} at (4,122.53) size 529x20
+                LayoutText {#text} at (0,0) size 175x19
+                  text run at (0,0) width 175: "This is a bolder heading-4."
+              LayoutBlockFlow {P} at (4,163.80) size 529x20
+                LayoutInline {B} at (0,0) size 335x19
+                  LayoutText {#text} at (0,0) size 335x19
+                    text run at (0,0) width 335: "This sentence should be normal (boldface made lighter)."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,199.80) size 529x20
+                LayoutText {#text} at (0,0) size 218x19
+                  text run at (0,0) width 218: "This sentence should be weight 100."
+              LayoutBlockFlow {P} at (4,235.80) size 529x20
+                LayoutText {#text} at (0,0) size 218x19
+                  text run at (0,0) width 218: "This sentence should be weight 300."
+              LayoutBlockFlow {P} at (4,271.80) size 529x20
+                LayoutText {#text} at (0,0) size 218x19
+                  text run at (0,0) width 218: "This sentence should be weight 500."
+              LayoutBlockFlow {P} at (4,307.80) size 529x20
+                LayoutText {#text} at (0,0) size 238x19
+                  text run at (0,0) width 238: "This sentence should be weight 700."
+              LayoutBlockFlow {P} at (4,343.80) size 529x20
+                LayoutText {#text} at (0,0) size 238x19
+                  text run at (0,0) width 238: "This sentence should be weight 900."
+              LayoutBlockFlow {P} at (4,379.80) size 529x20
+                LayoutText {#text} at (0,0) size 484x19
+                  text run at (0,0) width 484: "This sentence should be bold, but the last word in the sentence should be "
+                LayoutInline {SPAN} at (0,0) size 41x19
+                  LayoutText {#text} at (484,0) size 41x19
+                    text run at (484,0) width 41: "normal"
+                LayoutText {#text} at (525,0) size 4x19
+                  text run at (525,0) width 4: "."
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/canvas-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/canvas-expected.txt
new file mode 100644
index 0000000..56881719
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/canvas-expected.txt
@@ -0,0 +1,42 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (25,25) size 750x550 [bgcolor=#008000]
+      LayoutBlockFlow {P} at (0,0) size 750x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 750x32
+        LayoutText {#text} at (0,0) size 552x32
+          text run at (0,0) width 240: "HTML {background-color: aqua;}"
+          text run at (240,0) width 0: " "
+          text run at (0,16) width 552: "BODY {background-color: green; background-image: none; margin: 25px;}"
+          text run at (552,16) width 0: " "
+      LayoutBlockFlow {P} at (0,99) size 750x60
+        LayoutText {#text} at (0,0) size 735x59
+          text run at (0,0) width 368: "The body of this document should have a green background. "
+          text run at (368,0) width 367: "It also has a margin of 25 pixels, so the light blue background"
+          text run at (0,20) width 333: "set for the HTML element should surround the BODY. "
+          text run at (332,20) width 373: "If the BODY content is significantly shorter than the browser's"
+          text run at (0,40) width 411: "window height, then the bottom border may be larger than 25 pixels."
+      LayoutTable {TABLE} at (0,175) size 750x98 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 748x96
+          LayoutTableRow {TR} at (0,0) size 748x28
+            LayoutTableCell {TD} at (0,0) size 748x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 748x68
+            LayoutTableCell {TD} at (0,48) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 736x68 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 728x60
+                LayoutText {#text} at (0,0) size 718x59
+                  text run at (0,0) width 368: "The body of this document should have a green background. "
+                  text run at (368,0) width 291: "It also has a margin of 25 pixels, so the light blue"
+                  text run at (0,20) width 409: "background set for the HTML element should surround the BODY. "
+                  text run at (408,20) width 310: "If the BODY content is significantly shorter than the"
+                  text run at (0,40) width 474: "browser's window height, then the bottom border may be larger than 25 pixels."
+layer at (25,106) size 750x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,81) size 750x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/floating_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/floating_elements-expected.txt
new file mode 100644
index 0000000..56157fac
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/floating_elements-expected.txt
@@ -0,0 +1,725 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 6461
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x6461 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x6461
+    LayoutBlockFlow {BODY} at (8,8) size 769x6445 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x144
+        LayoutText {#text} at (0,0) size 480x144
+          text run at (0,0) width 272: "HR.minor {clear: both; width: 5%;}"
+          text run at (272,0) width 0: " "
+          text run at (0,16) width 400: "HR.major {clear: both; width: 75%; margin: 1.5em;}"
+          text run at (400,16) width 0: " "
+          text run at (0,32) width 480: "DIV {border: 5px solid purple; padding: 0; margin: 0.125em;}"
+          text run at (480,32) width 0: " "
+          text run at (0,48) width 432: "P.left, P.right {width: 10em; padding: 1em; margin: 0;"
+          text run at (432,48) width 0: " "
+          text run at (0,64) width 424: "   border: 1px solid lime; background-color: silver;}"
+          text run at (424,64) width 0: " "
+          text run at (0,80) width 456: "IMG.left, IMG.right {margin: 0; border: 3px solid black;}"
+          text run at (456,80) width 0: " "
+          text run at (0,96) width 160: ".left {float: left;}"
+          text run at (160,96) width 0: " "
+          text run at (0,112) width 176: ".right {float: right;}"
+          text run at (176,112) width 0: " "
+          text run at (0,128) width 0: " "
+      LayoutBlockFlow {P} at (0,211) size 769x40
+        LayoutText {#text} at (0,0) size 731x39
+          text run at (0,0) width 645: "On this test page, each test is performed once with floating paragraphs, and then again with floating images. "
+          text run at (645,0) width 86: "Other than the"
+          text run at (0,20) width 690: "substitution of images for pargraphs, the structure of the test is exactly the same, including the direction of the floats."
+      LayoutBlockFlow {DIV} at (2,301) size 765x90 [border: (5px solid #800080)]
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 159x39
+            text run at (17,17) width 120: "This is a left-floating"
+            text run at (17,37) width 159: "paragraph (first in source)."
+        LayoutBlockFlow (floating) {P} at (566,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 128x59
+            text run at (17,17) width 128: "This is a right-floating"
+            text run at (17,37) width 127: "paragraph (second in"
+            text run at (17,57) width 49: "source)."
+        LayoutText {#text} at (199,5) size 358x79
+          text run at (199,5) width 162: "This is text within the DIV. "
+          text run at (360,5) width 190: "The floating elements within this"
+          text run at (199,25) width 358: "DIV should not go beyond the left or right inner edge of this"
+          text run at (199,45) width 350: "DIV, which means that the borders of the floating elements"
+          text run at (199,65) width 324: "should not overlap the top or side borders of the DIV."
+      LayoutBlockFlow {DIV} at (2,410) size 765x50 [border: (5px solid #800080)]
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (745,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (20,5) size 702x39
+          text run at (20,5) width 162: "This is text within the DIV. "
+          text run at (181,5) width 541: "The floating images within this DIV should not go beyond the left or right inner edge of this"
+          text run at (20,25) width 667: "DIV, which means that the borders of the floating images should not overlap the top or side borders of the DIV."
+      LayoutBlockFlow {DIV} at (2,510) size 442x230 [border: (5px solid #800080)]
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 157x39
+            text run at (17,17) width 157: "This is the first left-floating"
+            text run at (17,37) width 65: "paragraph."
+        LayoutBlockFlow (floating) {P} at (199,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 135x39
+            text run at (17,17) width 135: "This is the second left-"
+            text run at (17,37) width 112: "floating paragraph."
+        LayoutBlockFlow (floating) {P} at (5,79) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 119x39
+            text run at (17,17) width 119: "This is the third left-"
+            text run at (17,37) width 112: "floating paragraph."
+        LayoutText {#text} at (393,5) size 426x219
+          text run at (393,5) width 38: "This is"
+          text run at (393,25) width 22: "text"
+          text run at (393,45) width 35: "within"
+          text run at (393,65) width 18: "the"
+          text run at (199,85) width 33: "DIV. "
+          text run at (231,85) width 190: "The floating elements within this"
+          text run at (199,105) width 222: "DIV should not go beyond the left or"
+          text run at (199,125) width 204: "right inner edge of this DIV, which"
+          text run at (199,145) width 222: "means that the borders of the floating"
+          text run at (5,165) width 417: "elements should not overlap the top or side borders of the DIV in any"
+          text run at (5,185) width 32: "way. "
+          text run at (36,185) width 288: "In addition, they should not overlap each other. "
+          text run at (323,185) width 77: "The first two"
+          text run at (5,205) width 414: "should be side by side, whereas the third should be on the next \"line.\""
+      LayoutBlockFlow {DIV} at (2,758) size 360x210 [border: (5px solid #800080)]
+        LayoutImage (floating) {IMG} at (5,5) size 156x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (161,5) size 156x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (5,41) size 156x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (317,5) size 350x199
+          text run at (317,5) width 38: "This is"
+          text run at (317,25) width 22: "text"
+          text run at (161,45) width 94: "within the DIV. "
+          text run at (254,45) width 71: "The floating"
+          text run at (161,65) width 178: "images within this DIV should"
+          text run at (5,85) width 317: "not go beyond the left or right inner edge of this DIV,"
+          text run at (5,105) width 349: "which means that the borders of the floating images should"
+          text run at (5,125) width 350: "not overlap the top or side borders of the DIV in any way."
+          text run at (5,145) width 287: "In addition, they should not overlap each other. "
+          text run at (291,145) width 50: "The first"
+          text run at (5,165) width 333: "two should be side by side, whereas the third should be"
+          text run at (5,185) width 104: "on the next \"line.\""
+      LayoutBlockFlow {DIV} at (2,1018) size 314x364 [border: (5px solid #800080)]
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 159x39
+            text run at (17,17) width 120: "This is a left-floating"
+            text run at (17,37) width 159: "paragraph (first in source)."
+        LayoutBlockFlow (floating) {P} at (115,79) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 128x59
+            text run at (17,17) width 128: "This is a right-floating"
+            text run at (17,37) width 127: "paragraph (second in"
+            text run at (17,57) width 49: "source)."
+        LayoutText {#text} at (199,5) size 303x353
+          text run at (199,5) width 103: "This is text within"
+          text run at (199,25) width 55: "the DIV. "
+          text run at (253,25) width 24: "The"
+          text run at (199,45) width 99: "floating elements"
+          text run at (5,79) width 90: "within this DIV"
+          text run at (5,99) width 81: "should not go"
+          text run at (5,119) width 106: "beyond the left or"
+          text run at (5,139) width 108: "right inner edge of"
+          text run at (5,159) width 92: "this DIV, which"
+          text run at (5,179) width 278: "means that the borders of the floating elements"
+          text run at (5,199) width 291: "should not overlap the top or side borders of the"
+          text run at (5,219) width 102: "DIV in any way. "
+          text run at (106,219) width 164: "In addition, they should not"
+          text run at (5,239) width 272: "overlap each other in any way, nor should the"
+          text run at (5,259) width 290: "floated elements be overwritten by the DIV text."
+          text run at (5,279) width 276: "In addition, the floated elements should not be"
+          text run at (5,299) width 303: "side-by-side, but instead the first should be floated"
+          text run at (5,319) width 293: "left, and the second floated to the right below the"
+          text run at (5,339) width 26: "first."
+      LayoutBlockFlow {DIV} at (2,1400) size 410x226 [border: (5px solid #800080)]
+        LayoutImage (floating) {IMG} at (5,5) size 256x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (149,41) size 256x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (261,5) size 399x215
+          text run at (261,5) width 125: "This is text within the"
+          text run at (5,41) width 33: "DIV. "
+          text run at (37,41) width 71: "The floating"
+          text run at (5,61) width 135: "images within this DIV"
+          text run at (5,81) width 399: "should not go beyond the left or right inner edge of this DIV, which"
+          text run at (5,101) width 382: "means that the borders of the floating images should not overlap"
+          text run at (5,121) width 282: "the top or side borders of the DIV in any way. "
+          text run at (286,121) width 98: "In addition, they"
+          text run at (5,141) width 383: "should not overlap each other in any way, nor should the floated"
+          text run at (5,161) width 249: "elements be overwritten by the DIV text. "
+          text run at (254,161) width 135: "In addition, the floated"
+          text run at (5,181) width 388: "images should not be side-by-side, but instead the first should be"
+          text run at (5,201) width 368: "floated left, and the second floated to the right below the first."
+      LayoutBlockFlow {DIV} at (2,1676) size 765x130 [border: (5px solid #800080)]
+        LayoutBlockFlow (floating) {P} at (566,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 159x39
+            text run at (17,17) width 128: "This is a right-floating"
+            text run at (17,37) width 159: "paragraph (first in source)."
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 127x59
+            text run at (17,17) width 120: "This is a left-floating"
+            text run at (17,37) width 127: "paragraph (second in"
+            text run at (17,57) width 49: "source)."
+        LayoutText {#text} at (199,5) size 745x119
+          text run at (199,5) width 162: "This is text within the DIV. "
+          text run at (360,5) width 190: "The floating elements within this"
+          text run at (199,25) width 347: "DIV should not go beyond the top side of this DIV, which"
+          text run at (199,45) width 344: "means that the borders of the floating elements should not"
+          text run at (199,65) width 331: "overlap the top or side borders of the DIV in any way. "
+          text run at (529,65) width 13: "In"
+          text run at (199,85) width 551: "addition, the top of the left-floating box should not be higher than the top of the right-floating"
+          text run at (5,105) width 27: "box."
+      LayoutBlockFlow {DIV} at (2,1824) size 765x70 [border: (5px solid #800080)]
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutImage (floating) {IMG} at (745,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (20,5) size 706x59
+          text run at (20,5) width 162: "This is text within the DIV. "
+          text run at (181,5) width 530: "The floating images within this DIV should not go beyond the top side of this DIV, which"
+          text run at (20,25) width 668: "means that the borders of the floating images should not overlap the top or side borders of the DIV in any way. "
+          text run at (687,25) width 13: "In"
+          text run at (5,45) width 606: "addition, the top of the left-floating image should not be higher than the top of the right-floating image."
+      LayoutBlockFlow {DIV} at (2,1944) size 765x130 [border: (5px solid #800080)]
+        LayoutText {#text} at (199,5) size 170x19
+          text run at (199,5) width 162: "This is text within the DIV. "
+          text run at (360,5) width 9: "*"
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 159x39
+            text run at (17,17) width 120: "This is a left-floating"
+            text run at (17,37) width 159: "paragraph (first in source)."
+        LayoutText {#text} at (368,5) size 544x39
+          text run at (368,5) width 375: " The floating elements within this DIV should not go any higher"
+          text run at (199,25) width 407: "than the line-box containing the inline content which precedes them. "
+          text run at (606,25) width 12: "* "
+        LayoutBlockFlow (floating) {P} at (566,45) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 128x59
+            text run at (17,17) width 128: "This is a right-floating"
+            text run at (17,37) width 127: "paragraph (second in"
+            text run at (17,57) width 49: "source)."
+        LayoutText {#text} at (618,25) size 752x99
+          text run at (618,25) width 139: "This means that the top"
+          text run at (199,45) width 359: "side of each float can be, at most, as high as the top edge of"
+          text run at (199,65) width 326: "the inline element containing the content just before the"
+          text run at (5,85) width 225: "floating elements occur in the source. "
+          text run at (230,85) width 313: "In order to mark these points clearly, an asterisk has"
+          text run at (5,105) width 279: "been inserted just before each floated element."
+      LayoutBlockFlow {DIV} at (2,2093) size 765x90 [border: (5px solid #800080)]
+        LayoutText {#text} at (20,5) size 170x19
+          text run at (20,5) width 162: "This is text within the DIV. "
+          text run at (181,5) width 9: "*"
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (189,5) size 723x39
+          text run at (189,5) width 554: " The floating images within this DIV should not go any higher than the line-box containing the"
+          text run at (20,25) width 217: "inline content which precedes them. "
+          text run at (237,25) width 12: "* "
+        LayoutImage (floating) {IMG} at (745,25) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (249,25) size 735x59
+          text run at (249,25) width 486: "This means that the top side of each float can be, at most, as high as the top edge"
+          text run at (5,45) width 560: "of the inline element containing the content just before the floating images occur in the source. "
+          text run at (565,45) width 175: "In order to mark these points"
+          text run at (5,65) width 406: "clearly, an asterisk has been inserted just before each floated image."
+      LayoutBlockFlow {DIV} at (2,2233) size 765x230 [border: (5px solid #800080)]
+        LayoutText {#text} at (199,5) size 170x19
+          text run at (199,5) width 162: "This is text within the DIV. "
+          text run at (360,5) width 9: "*"
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 159x39
+            text run at (17,17) width 120: "This is a left-floating"
+            text run at (17,37) width 159: "paragraph (first in source)."
+        LayoutText {#text} at (368,5) size 544x39
+          text run at (368,5) width 375: " The floating elements within this DIV should not go any higher"
+          text run at (199,25) width 407: "than the line-box containing the inline content which precedes them. "
+          text run at (606,25) width 12: "* "
+        LayoutBlockFlow (floating) {P} at (566,45) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 128x59
+            text run at (17,17) width 128: "This is a right-floating"
+            text run at (17,37) width 127: "paragraph (second in"
+            text run at (17,57) width 49: "source)."
+        LayoutText {#text} at (618,25) size 364x39
+          text run at (618,25) width 139: "This means that the top"
+          text run at (393,45) width 158: "side of each float can be,*"
+        LayoutBlockFlow (floating) {P} at (199,45) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 120x59
+            text run at (17,17) width 120: "This is a left-floating"
+            text run at (17,37) width 111: "paragraph (third in"
+            text run at (17,57) width 49: "source)."
+        LayoutText {#text} at (551,45) size 367x119
+          text run at (551,45) width 15: " at"
+          text run at (393,65) width 141: "most, as high as the top"
+          text run at (393,85) width 151: "edge of the inline element"
+          text run at (393,105) width 155: "containing the content just"
+          text run at (393,125) width 164: "before the floating elements"
+          text run at (199,145) width 122: "occur in the source. "
+          text run at (321,145) width 8: "*"
+        LayoutBlockFlow (floating) {P} at (5,145) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 120x59
+            text run at (17,17) width 120: "This is a left-floating"
+            text run at (17,37) width 119: "paragraph (fourth in"
+            text run at (17,57) width 49: "source)."
+        LayoutText {#text} at (329,145) size 556x79
+          text run at (329,145) width 426: " In order to mark these points clearly, an asterisk has been inserted just"
+          text run at (199,165) width 174: "before each floated element. "
+          text run at (373,165) width 379: "If a line has room for a floated element, then the element should"
+          text run at (199,185) width 517: "float so that its top is aligned with the top of the line-box in which the asterisk appears."
+          text run at (199,205) width 380: "Otherwise, its top should align with the top of the next line-box."
+      LayoutBlockFlow {DIV} at (2,2482) size 765x130 [border: (5px solid #800080)]
+        LayoutText {#text} at (20,5) size 170x19
+          text run at (20,5) width 162: "This is text within the DIV. "
+          text run at (181,5) width 9: "*"
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (189,5) size 708x39
+          text run at (189,5) width 554: " The floating images within this DIV should not go any higher than the line-box containing the"
+          text run at (35,25) width 217: "inline content which precedes them. "
+          text run at (252,25) width 12: "* "
+        LayoutImage (floating) {IMG} at (745,25) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (264,25) size 305x19
+          text run at (264,25) width 297: "This means that the top side of each float can be, "
+          text run at (561,25) width 8: "*"
+        LayoutImage (floating) {IMG} at (20,25) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (569,25) size 679x39
+          text run at (569,25) width 160: " at most, as high as the top"
+          text run at (50,45) width 593: "edge of the inline element containing the content just before the floating images occur in the source. "
+          text run at (643,45) width 8: "*"
+        LayoutImage (floating) {IMG} at (35,45) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (651,45) size 746x79
+          text run at (651,45) width 69: " In order to"
+          text run at (50,65) width 520: "mark these points clearly, an asterisk has been inserted just before each floated image. "
+          text run at (569,65) width 182: "If a line has room for a floated"
+          text run at (5,85) width 693: "image, then the image should float so that its top is aligned with the top of the line-box in which the asterisk appears."
+          text run at (5,105) width 380: "Otherwise, its top should align with the top of the next line-box."
+      LayoutBlockFlow {DIV} at (2,2662) size 490x310 [border: (5px solid #800080)]
+        LayoutText {#text} at (199,5) size 50x19
+          text run at (199,5) width 50: "This is *"
+        LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 159x39
+            text run at (17,17) width 120: "This is a left-floating"
+            text run at (17,37) width 159: "paragraph (first in source)."
+        LayoutText {#text} at (249,5) size 12x19
+          text run at (249,5) width 12: " *"
+        LayoutBlockFlow (floating) {P} at (291,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+          LayoutText {#text} at (17,17) size 128x59
+            text run at (17,17) width 128: "This is a right-floating"
+            text run at (17,37) width 127: "paragraph (second in"
+            text run at (17,57) width 49: "source)."
+        LayoutText {#text} at (261,5) size 478x299
+          text run at (261,5) width 26: " text"
+          text run at (199,25) width 90: "within the DIV."
+          text run at (199,45) width 83: "Under CSS1,"
+          text run at (199,65) width 87: "the left floating"
+          text run at (5,85) width 249: "element should be placed in the upper left"
+          text run at (5,105) width 446: "corner of the DIV, and the purple border of the DIV should abut the green"
+          text run at (5,125) width 184: "border of the floating element. "
+          text run at (189,125) width 265: "Similarly, the right floating element should be"
+          text run at (5,145) width 463: "placed in the upper right corner of the DIV, and the purple border of the DIV"
+          text run at (5,165) width 434: "should abut the green border of the floating element. The text of the DIV"
+          text run at (5,185) width 448: "element should flow between and under the two floating elements. The two"
+          text run at (5,205) width 434: "asterisk characters mark the insertion points of the floating elements. It is"
+          text run at (5,225) width 460: "expected that, under future specifications, it may be acceptable for the top of"
+          text run at (5,245) width 478: "floated elements to align with the top of the line-box following the insertion point"
+          text run at (5,265) width 456: "of the floated element to avoid floating elements appearing before text which"
+          text run at (5,285) width 213: "precedes it in the source document."
+      LayoutBlockFlow {DIV} at (2,2990) size 490x230 [border: (5px solid #800080)]
+        LayoutText {#text} at (20,5) size 50x19
+          text run at (20,5) width 50: "This is *"
+        LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (70,5) size 12x19
+          text run at (70,5) width 12: " *"
+        LayoutImage (floating) {IMG} at (470,5) size 15x36 [border: (3px solid #000000)]
+        LayoutText {#text} at (82,5) size 479x219
+          text run at (82,5) width 124: " text within the DIV. "
+          text run at (205,5) width 257: "Under CSS1, the left floating image should"
+          text run at (20,25) width 443: "be placed in the upper left corner of the DIV, and the purple border of the"
+          text run at (5,45) width 336: "DIV should abut the green border of the floating image. "
+          text run at (341,45) width 106: "Similarly, the right"
+          text run at (5,65) width 455: "floating image should be placed in the upper right corner of the DIV, and the"
+          text run at (5,85) width 457: "purple border of the DIV should abut the green border of the floating image."
+          text run at (5,105) width 456: "The text of the DIV element should flow between and under the two floating"
+          text run at (5,125) width 445: "image. The two asterisk characters mark the insertion points of the floating"
+          text run at (5,145) width 43: "image. "
+          text run at (48,145) width 424: "It is expected that, under future specifications, it may be acceptable for"
+          text run at (5,165) width 452: "the top of floated elements to align with the top of the line-box following the"
+          text run at (5,185) width 479: "insertion point of the floated element to avoid floating elements appearing before"
+          text run at (5,205) width 278: "text which precedes it in the source document."
+      LayoutTable {TABLE} at (0,3270) size 769x3175 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x3173
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x3145
+            LayoutTableCell {TD} at (0,1586) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x3145 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x40
+                LayoutText {#text} at (0,0) size 731x39
+                  text run at (0,0) width 645: "On this test page, each test is performed once with floating paragraphs, and then again with floating images. "
+                  text run at (645,0) width 86: "Other than the"
+                  text run at (0,20) width 690: "substitution of images for pargraphs, the structure of the test is exactly the same, including the direction of the floats."
+              LayoutBlockFlow {DIV} at (6,94) size 743x110 [border: (5px solid #800080)]
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 159x39
+                    text run at (17,17) width 120: "This is a left-floating"
+                    text run at (17,37) width 159: "paragraph (first in source)."
+                LayoutBlockFlow (floating) {P} at (544,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 128x59
+                    text run at (17,17) width 128: "This is a right-floating"
+                    text run at (17,37) width 127: "paragraph (second in"
+                    text run at (17,57) width 49: "source)."
+                LayoutText {#text} at (199,5) size 536x99
+                  text run at (199,5) width 162: "This is text within the DIV. "
+                  text run at (360,5) width 166: "The floating elements within"
+                  text run at (199,25) width 342: "this DIV should not go beyond the left or right inner edge"
+                  text run at (199,45) width 334: "of this DIV, which means that the borders of the floating"
+                  text run at (199,65) width 325: "elements should not overlap the top or side borders of"
+                  text run at (5,85) width 51: "the DIV."
+              LayoutBlockFlow {DIV} at (6,222) size 743x50 [border: (5px solid #800080)]
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (723,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (20,5) size 702x39
+                  text run at (20,5) width 162: "This is text within the DIV. "
+                  text run at (181,5) width 541: "The floating images within this DIV should not go beyond the left or right inner edge of this"
+                  text run at (20,25) width 667: "DIV, which means that the borders of the floating images should not overlap the top or side borders of the DIV."
+              LayoutBlockFlow {DIV} at (6,322) size 442x230 [border: (5px solid #800080)]
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 157x39
+                    text run at (17,17) width 157: "This is the first left-floating"
+                    text run at (17,37) width 65: "paragraph."
+                LayoutBlockFlow (floating) {P} at (199,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 135x39
+                    text run at (17,17) width 135: "This is the second left-"
+                    text run at (17,37) width 112: "floating paragraph."
+                LayoutBlockFlow (floating) {P} at (5,79) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 119x39
+                    text run at (17,17) width 119: "This is the third left-"
+                    text run at (17,37) width 112: "floating paragraph."
+                LayoutText {#text} at (393,5) size 426x219
+                  text run at (393,5) width 38: "This is"
+                  text run at (393,25) width 22: "text"
+                  text run at (393,45) width 35: "within"
+                  text run at (393,65) width 18: "the"
+                  text run at (199,85) width 33: "DIV. "
+                  text run at (231,85) width 190: "The floating elements within this"
+                  text run at (199,105) width 222: "DIV should not go beyond the left or"
+                  text run at (199,125) width 204: "right inner edge of this DIV, which"
+                  text run at (199,145) width 222: "means that the borders of the floating"
+                  text run at (5,165) width 417: "elements should not overlap the top or side borders of the DIV in any"
+                  text run at (5,185) width 32: "way. "
+                  text run at (36,185) width 288: "In addition, they should not overlap each other. "
+                  text run at (323,185) width 77: "The first two"
+                  text run at (5,205) width 414: "should be side by side, whereas the third should be on the next \"line.\""
+              LayoutBlockFlow {DIV} at (6,570) size 360x210 [border: (5px solid #800080)]
+                LayoutImage (floating) {IMG} at (5,5) size 156x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (161,5) size 156x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (5,41) size 156x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (317,5) size 350x199
+                  text run at (317,5) width 38: "This is"
+                  text run at (317,25) width 22: "text"
+                  text run at (161,45) width 94: "within the DIV. "
+                  text run at (254,45) width 71: "The floating"
+                  text run at (161,65) width 178: "images within this DIV should"
+                  text run at (5,85) width 317: "not go beyond the left or right inner edge of this DIV,"
+                  text run at (5,105) width 349: "which means that the borders of the floating images should"
+                  text run at (5,125) width 350: "not overlap the top or side borders of the DIV in any way."
+                  text run at (5,145) width 287: "In addition, they should not overlap each other. "
+                  text run at (291,145) width 50: "The first"
+                  text run at (5,165) width 333: "two should be side by side, whereas the third should be"
+                  text run at (5,185) width 104: "on the next \"line.\""
+              LayoutBlockFlow {DIV} at (6,830) size 314x364 [border: (5px solid #800080)]
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 159x39
+                    text run at (17,17) width 120: "This is a left-floating"
+                    text run at (17,37) width 159: "paragraph (first in source)."
+                LayoutBlockFlow (floating) {P} at (115,79) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 128x59
+                    text run at (17,17) width 128: "This is a right-floating"
+                    text run at (17,37) width 127: "paragraph (second in"
+                    text run at (17,57) width 49: "source)."
+                LayoutText {#text} at (199,5) size 303x353
+                  text run at (199,5) width 103: "This is text within"
+                  text run at (199,25) width 55: "the DIV. "
+                  text run at (253,25) width 24: "The"
+                  text run at (199,45) width 99: "floating elements"
+                  text run at (5,79) width 90: "within this DIV"
+                  text run at (5,99) width 81: "should not go"
+                  text run at (5,119) width 106: "beyond the left or"
+                  text run at (5,139) width 108: "right inner edge of"
+                  text run at (5,159) width 92: "this DIV, which"
+                  text run at (5,179) width 278: "means that the borders of the floating elements"
+                  text run at (5,199) width 291: "should not overlap the top or side borders of the"
+                  text run at (5,219) width 102: "DIV in any way. "
+                  text run at (106,219) width 164: "In addition, they should not"
+                  text run at (5,239) width 272: "overlap each other in any way, nor should the"
+                  text run at (5,259) width 290: "floated elements be overwritten by the DIV text."
+                  text run at (5,279) width 276: "In addition, the floated elements should not be"
+                  text run at (5,299) width 303: "side-by-side, but instead the first should be floated"
+                  text run at (5,319) width 293: "left, and the second floated to the right below the"
+                  text run at (5,339) width 26: "first."
+              LayoutBlockFlow {DIV} at (6,1212) size 410x226 [border: (5px solid #800080)]
+                LayoutImage (floating) {IMG} at (5,5) size 256x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (149,41) size 256x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (261,5) size 399x215
+                  text run at (261,5) width 125: "This is text within the"
+                  text run at (5,41) width 33: "DIV. "
+                  text run at (37,41) width 71: "The floating"
+                  text run at (5,61) width 135: "images within this DIV"
+                  text run at (5,81) width 399: "should not go beyond the left or right inner edge of this DIV, which"
+                  text run at (5,101) width 382: "means that the borders of the floating images should not overlap"
+                  text run at (5,121) width 282: "the top or side borders of the DIV in any way. "
+                  text run at (286,121) width 98: "In addition, they"
+                  text run at (5,141) width 383: "should not overlap each other in any way, nor should the floated"
+                  text run at (5,161) width 249: "elements be overwritten by the DIV text. "
+                  text run at (254,161) width 135: "In addition, the floated"
+                  text run at (5,181) width 388: "images should not be side-by-side, but instead the first should be"
+                  text run at (5,201) width 368: "floated left, and the second floated to the right below the first."
+              LayoutBlockFlow {DIV} at (6,1488) size 743x130 [border: (5px solid #800080)]
+                LayoutBlockFlow (floating) {P} at (544,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 159x39
+                    text run at (17,17) width 128: "This is a right-floating"
+                    text run at (17,37) width 159: "paragraph (first in source)."
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 127x59
+                    text run at (17,17) width 120: "This is a left-floating"
+                    text run at (17,37) width 127: "paragraph (second in"
+                    text run at (17,57) width 49: "source)."
+                LayoutText {#text} at (199,5) size 717x119
+                  text run at (199,5) width 162: "This is text within the DIV. "
+                  text run at (360,5) width 166: "The floating elements within"
+                  text run at (199,25) width 332: "this DIV should not go beyond the top side of this DIV,"
+                  text run at (199,45) width 317: "which means that the borders of the floating elements"
+                  text run at (199,65) width 336: "should not overlap the top or side borders of the DIV in"
+                  text run at (199,85) width 57: "any way. "
+                  text run at (255,85) width 467: "In addition, the top of the left-floating box should not be higher than the top of"
+                  text run at (5,105) width 128: "the right-floating box."
+              LayoutBlockFlow {DIV} at (6,1636) size 743x70 [border: (5px solid #800080)]
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutImage (floating) {IMG} at (723,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (20,5) size 706x59
+                  text run at (20,5) width 162: "This is text within the DIV. "
+                  text run at (181,5) width 530: "The floating images within this DIV should not go beyond the top side of this DIV, which"
+                  text run at (20,25) width 668: "means that the borders of the floating images should not overlap the top or side borders of the DIV in any way. "
+                  text run at (687,25) width 13: "In"
+                  text run at (5,45) width 606: "addition, the top of the left-floating image should not be higher than the top of the right-floating image."
+              LayoutBlockFlow {DIV} at (6,1756) size 743x130 [border: (5px solid #800080)]
+                LayoutText {#text} at (199,5) size 170x19
+                  text run at (199,5) width 162: "This is text within the DIV. "
+                  text run at (360,5) width 9: "*"
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 159x39
+                    text run at (17,17) width 120: "This is a left-floating"
+                    text run at (17,37) width 159: "paragraph (first in source)."
+                LayoutText {#text} at (368,5) size 504x39
+                  text run at (368,5) width 335: " The floating elements within this DIV should not go any"
+                  text run at (199,25) width 447: "higher than the line-box containing the inline content which precedes them. "
+                  text run at (646,25) width 12: "* "
+                LayoutBlockFlow (floating) {P} at (544,45) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 128x59
+                    text run at (17,17) width 128: "This is a right-floating"
+                    text run at (17,37) width 127: "paragraph (second in"
+                    text run at (17,57) width 49: "source)."
+                LayoutText {#text} at (658,25) size 720x99
+                  text run at (658,25) width 67: "This means"
+                  text run at (199,45) width 336: "that the top side of each float can be, at most, as high as"
+                  text run at (199,65) width 331: "the top edge of the inline element containing the content"
+                  text run at (5,85) width 315: "just before the floating elements occur in the source. "
+                  text run at (320,85) width 221: "In order to mark these points clearly,"
+                  text run at (5,105) width 371: "an asterisk has been inserted just before each floated element."
+              LayoutBlockFlow {DIV} at (6,1905) size 743x90 [border: (5px solid #800080)]
+                LayoutText {#text} at (20,5) size 170x19
+                  text run at (20,5) width 162: "This is text within the DIV. "
+                  text run at (181,5) width 9: "*"
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (189,5) size 701x39
+                  text run at (189,5) width 532: " The floating images within this DIV should not go any higher than the line-box containing"
+                  text run at (20,25) width 239: "the inline content which precedes them. "
+                  text run at (259,25) width 12: "* "
+                LayoutImage (floating) {IMG} at (723,25) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (271,25) size 717x59
+                  text run at (271,25) width 429: "This means that the top side of each float can be, at most, as high as the"
+                  text run at (5,45) width 617: "top edge of the inline element containing the content just before the floating images occur in the source. "
+                  text run at (622,45) width 100: "In order to mark"
+                  text run at (5,65) width 481: "these points clearly, an asterisk has been inserted just before each floated image."
+              LayoutBlockFlow {DIV} at (6,2045) size 743x290 [border: (5px solid #800080)]
+                LayoutText {#text} at (199,5) size 170x19
+                  text run at (199,5) width 162: "This is text within the DIV. "
+                  text run at (360,5) width 9: "*"
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 159x39
+                    text run at (17,17) width 120: "This is a left-floating"
+                    text run at (17,37) width 159: "paragraph (first in source)."
+                LayoutText {#text} at (368,5) size 504x39
+                  text run at (368,5) width 335: " The floating elements within this DIV should not go any"
+                  text run at (199,25) width 447: "higher than the line-box containing the inline content which precedes them. "
+                  text run at (646,25) width 12: "* "
+                LayoutBlockFlow (floating) {P} at (544,45) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 128x59
+                    text run at (17,17) width 128: "This is a right-floating"
+                    text run at (17,37) width 127: "paragraph (second in"
+                    text run at (17,57) width 49: "source)."
+                LayoutText {#text} at (658,25) size 526x39
+                  text run at (658,25) width 67: "This means"
+                  text run at (199,45) width 230: "that the top side of each float can be,*"
+                LayoutBlockFlow (floating) {P} at (199,65) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 120x59
+                    text run at (17,17) width 120: "This is a left-floating"
+                    text run at (17,37) width 111: "paragraph (third in"
+                    text run at (17,57) width 49: "source)."
+                LayoutText {#text} at (429,45) size 272x119
+                  text run at (429,45) width 114: " at most, as high as"
+                  text run at (393,65) width 147: "the top edge of the inline"
+                  text run at (393,85) width 132: "element containing the"
+                  text run at (393,105) width 134: "content just before the"
+                  text run at (393,125) width 151: "floating elements occur in"
+                  text run at (587,145) width 70: "the source. "
+                  text run at (657,145) width 8: "*"
+                LayoutBlockFlow (floating) {P} at (393,145) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 120x59
+                    text run at (17,17) width 120: "This is a left-floating"
+                    text run at (17,37) width 119: "paragraph (fourth in"
+                    text run at (17,57) width 49: "source)."
+                LayoutText {#text} at (665,145) size 733x139
+                  text run at (665,145) width 69: " In order to"
+                  text run at (587,165) width 106: "mark these points"
+                  text run at (587,185) width 134: "clearly, an asterisk has"
+                  text run at (587,205) width 148: "been inserted just before"
+                  text run at (587,225) width 131: "each floated element. "
+                  text run at (718,225) width 20: "If a"
+                  text run at (5,245) width 709: "line has room for a floated element, then the element should float so that its top is aligned with the top of the line-box in"
+                  text run at (5,265) width 167: "which the asterisk appears. "
+                  text run at (172,265) width 380: "Otherwise, its top should align with the top of the next line-box."
+              LayoutBlockFlow {DIV} at (6,2353) size 743x130 [border: (5px solid #800080)]
+                LayoutText {#text} at (20,5) size 170x19
+                  text run at (20,5) width 162: "This is text within the DIV. "
+                  text run at (181,5) width 9: "*"
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (189,5) size 686x39
+                  text run at (189,5) width 532: " The floating images within this DIV should not go any higher than the line-box containing"
+                  text run at (35,25) width 239: "the inline content which precedes them. "
+                  text run at (274,25) width 12: "* "
+                LayoutImage (floating) {IMG} at (723,25) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (286,25) size 305x19
+                  text run at (286,25) width 297: "This means that the top side of each float can be, "
+                  text run at (583,25) width 8: "*"
+                LayoutImage (floating) {IMG} at (20,25) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (591,25) size 655x39
+                  text run at (591,25) width 114: " at most, as high as"
+                  text run at (50,45) width 639: "the top edge of the inline element containing the content just before the floating images occur in the source. "
+                  text run at (689,45) width 8: "*"
+                LayoutImage (floating) {IMG} at (35,45) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (697,45) size 722x79
+                  text run at (697,45) width 16: " In"
+                  text run at (50,65) width 573: "order to mark these points clearly, an asterisk has been inserted just before each floated image. "
+                  text run at (622,65) width 105: "If a line has room"
+                  text run at (5,85) width 714: "for a floated image, then the image should float so that its top is aligned with the top of the line-box in which the asterisk"
+                  text run at (5,105) width 56: "appears. "
+                  text run at (61,105) width 380: "Otherwise, its top should align with the top of the next line-box."
+              LayoutBlockFlow {DIV} at (6,2533) size 490x310 [border: (5px solid #800080)]
+                LayoutText {#text} at (199,5) size 50x19
+                  text run at (199,5) width 50: "This is *"
+                LayoutBlockFlow (floating) {P} at (5,5) size 194x74 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 159x39
+                    text run at (17,17) width 120: "This is a left-floating"
+                    text run at (17,37) width 159: "paragraph (first in source)."
+                LayoutText {#text} at (249,5) size 12x19
+                  text run at (249,5) width 12: " *"
+                LayoutBlockFlow (floating) {P} at (291,5) size 194x94 [bgcolor=#C0C0C0] [border: (1px solid #00FF00)]
+                  LayoutText {#text} at (17,17) size 128x59
+                    text run at (17,17) width 128: "This is a right-floating"
+                    text run at (17,37) width 127: "paragraph (second in"
+                    text run at (17,57) width 49: "source)."
+                LayoutText {#text} at (261,5) size 478x299
+                  text run at (261,5) width 26: " text"
+                  text run at (199,25) width 90: "within the DIV."
+                  text run at (199,45) width 83: "Under CSS1,"
+                  text run at (199,65) width 87: "the left floating"
+                  text run at (5,85) width 249: "element should be placed in the upper left"
+                  text run at (5,105) width 446: "corner of the DIV, and the purple border of the DIV should abut the green"
+                  text run at (5,125) width 184: "border of the floating element. "
+                  text run at (189,125) width 265: "Similarly, the right floating element should be"
+                  text run at (5,145) width 463: "placed in the upper right corner of the DIV, and the purple border of the DIV"
+                  text run at (5,165) width 434: "should abut the green border of the floating element. The text of the DIV"
+                  text run at (5,185) width 448: "element should flow between and under the two floating elements. The two"
+                  text run at (5,205) width 434: "asterisk characters mark the insertion points of the floating elements. It is"
+                  text run at (5,225) width 460: "expected that, under future specifications, it may be acceptable for the top of"
+                  text run at (5,245) width 478: "floated elements to align with the top of the line-box following the insertion point"
+                  text run at (5,265) width 456: "of the floated element to avoid floating elements appearing before text which"
+                  text run at (5,285) width 213: "precedes it in the source document."
+              LayoutBlockFlow {DIV} at (6,2861) size 490x230 [border: (5px solid #800080)]
+                LayoutText {#text} at (20,5) size 50x19
+                  text run at (20,5) width 50: "This is *"
+                LayoutImage (floating) {IMG} at (5,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (70,5) size 12x19
+                  text run at (70,5) width 12: " *"
+                LayoutImage (floating) {IMG} at (470,5) size 15x36 [border: (3px solid #000000)]
+                LayoutText {#text} at (82,5) size 479x219
+                  text run at (82,5) width 124: " text within the DIV. "
+                  text run at (205,5) width 257: "Under CSS1, the left floating image should"
+                  text run at (20,25) width 443: "be placed in the upper left corner of the DIV, and the purple border of the"
+                  text run at (5,45) width 336: "DIV should abut the green border of the floating image. "
+                  text run at (341,45) width 106: "Similarly, the right"
+                  text run at (5,65) width 455: "floating image should be placed in the upper right corner of the DIV, and the"
+                  text run at (5,85) width 457: "purple border of the DIV should abut the green border of the floating image."
+                  text run at (5,105) width 456: "The text of the DIV element should flow between and under the two floating"
+                  text run at (5,125) width 445: "image. The two asterisk characters mark the insertion points of the floating"
+                  text run at (5,145) width 43: "image. "
+                  text run at (48,145) width 424: "It is expected that, under future specifications, it may be acceptable for"
+                  text run at (5,165) width 452: "the top of floated elements to align with the top of the line-box following the"
+                  text run at (5,185) width 479: "insertion point of the floated element to avoid floating elements appearing before"
+                  text run at (5,205) width 278: "text which precedes it in the source document."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (32,283) size 579x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,275) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,408) size 41x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,400) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,492) size 579x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,484) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,756) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,748) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1000) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,992) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,1398) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,1390) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1658) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,1650) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,1822) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,1814) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,1926) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,1918) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2091) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2083) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,2215) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,2207) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2480) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2472) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,2644) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,2636) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (372,2988) size 41x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (364.28,2980) size 40.44x2 [border: (1px inset #EEEEEE)]
+layer at (32,3252) size 579x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (24,3244) size 578.75x2 [border: (1px inset #EEEEEE)]
+layer at (49,3375) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,68) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,3519) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,212) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,3603) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,296) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,3867) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,560) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,4111) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,804) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,4509) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1202) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,4769) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,1462) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,4933) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1626) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5037) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,1730) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,5202) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,1895) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5326) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,2019) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,5650) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,2343) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,5814) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,2507) size 562.25x2 [border: (1px inset #EEEEEE)]
+layer at (379,6158) size 39x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (357.83,2851) size 39.34x2 [border: (1px inset #EEEEEE)]
+layer at (49,6422) size 562x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (28,3115) size 562.25x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/height_of_lines-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/height_of_lines-expected.txt
new file mode 100644
index 0000000..caae818
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/height_of_lines-expected.txt
@@ -0,0 +1,135 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2345
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2345 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2345
+    LayoutBlockFlow {BODY} at (8,8) size 769x2329 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x288
+        LayoutText {#text} at (0,0) size 536x288
+          text run at (0,0) width 344: "P.one {font-size: 14px; line-height: 20px;}"
+          text run at (344,0) width 0: " "
+          text run at (0,16) width 304: "IMG.onea {vertical-align: text-bottom;"
+          text run at (304,16) width 0: " "
+          text run at (0,32) width 272: "     width: 200px; height: 200px;}"
+          text run at (272,32) width 0: " "
+          text run at (0,48) width 520: "IMG.oneb {vertical-align: text-top; width: 200px; height: 200px;}"
+          text run at (520,48) width 0: " "
+          text run at (0,64) width 0: " "
+          text run at (0,80) width 344: "P.two {font-size: 14px; line-height: 20px;}"
+          text run at (344,80) width 0: " "
+          text run at (0,96) width 536: "IMG.twoa {vertical-align: text-bottom; width: 100px; height: 100px;"
+          text run at (536,96) width 0: " "
+          text run at (0,112) width 312: "     padding: 5px; border-style: solid;"
+          text run at (312,112) width 0: " "
+          text run at (0,128) width 312: "     border-width: 10px; margin: 15px;}"
+          text run at (312,128) width 0: " "
+          text run at (0,144) width 280: "IMG.twob {vertical-align: text-top;"
+          text run at (280,144) width 0: " "
+          text run at (0,160) width 304: "          width: 100px; height: 100px;"
+          text run at (304,160) width 0: " "
+          text run at (0,176) width 312: "     padding: 5px; border-style: solid;"
+          text run at (312,176) width 0: " "
+          text run at (0,192) width 312: "     border-width: 10px; margin: 15px;}"
+          text run at (312,192) width 0: " "
+          text run at (0,208) width 0: " "
+          text run at (0,224) width 480: "IMG.twoc {vertical-align: middle; width: 50px; height: 50px;"
+          text run at (480,224) width 0: " "
+          text run at (0,240) width 312: "     padding: 5px; border-style: solid;"
+          text run at (312,240) width 0: " "
+          text run at (0,256) width 320: "     border-width: 10px; margin: -10px;}"
+          text run at (320,256) width 0: " "
+          text run at (0,272) width 0: " "
+      LayoutBlockFlow {P} at (0,353) size 769x464
+        LayoutText {#text} at (0,2) size 763x238
+          text run at (0,2) width 417: "This paragraph should have a font size of 14px and a line height of 20px. "
+          text run at (417,2) width 346: "This means that the lines of text within it should be separated"
+          text run at (0,22) width 371: "by six pixels, three of which are part of the line-box of each line. "
+          text run at (371,22) width 373: "Any images within the paragraph should increase the height of the"
+          text run at (0,224) width 294: "line-box so that they fit within the line box, such as "
+        LayoutImage {IMG} at (294,40) size 200x200
+        LayoutText {#text} at (494,224) size 28x16
+          text run at (494,224) width 28: " and "
+        LayoutImage {IMG} at (522,224) size 200x200
+        LayoutText {#text} at (722,224) size 768x238
+          text run at (722,224) width 8: ". "
+          text run at (730,224) width 38: "This is"
+          text run at (0,426) width 725: "additional text to make sure that there is enough room left below the image so that this line does not hit the image that is text-top"
+          text run at (0,446) width 43: "aligned."
+      LayoutBlockFlow {P} at (0,831) size 769x484
+        LayoutText {#text} at (0,2) size 763x198
+          text run at (0,2) width 417: "This paragraph should have a font size of 14px and a line height of 20px. "
+          text run at (417,2) width 346: "This means that the lines of text within it should be separated"
+          text run at (0,22) width 78: "by six pixels. "
+          text run at (78,22) width 683: "Any images within the paragraph should increase the height of the line-box so that they fit, including their padding (5px),"
+          text run at (0,184) width 357: "border (10px) and margins (15px) within the line box, such as "
+        LayoutImage {IMG} at (371.73,55) size 130x130 [border: (10px solid #000000)]
+        LayoutText {#text} at (516,184) size 29x16
+          text run at (516,184) width 29: " and "
+        LayoutImage {IMG} at (559.73,199) size 130x130 [border: (10px solid #000000)]
+        LayoutText {#text} at (704,184) size 768x256
+          text run at (704,184) width 9: ". "
+          text run at (712,184) width 39: "This is"
+          text run at (0,346) width 725: "additional text to make sure that there is enough room left below the image so that this line does not hit the image that is text-top"
+          text run at (0,366) width 47: "aligned. "
+          text run at (47,366) width 700: "It is the outer edge of the margin that should be text-bottom and text-top aligned in this paragraph, so for the first image the"
+          text run at (0,386) width 768: "bottom border of the image should begin 15px above the bottom of the text, and for the second image the top border should begin 15px"
+          text run at (0,424) width 143: "below the top of the text "
+        LayoutImage {IMG} at (133,394) size 80x80 [border: (10px solid #000000)]
+        LayoutText {#text} at (203,424) size 764x58
+          text run at (203,424) width 8: ". "
+          text run at (211,424) width 553: "The last image in this paragraph has -10px margins set on it, so that should pull the text in toward"
+          text run at (0,466) width 392: "the image in the vertical direction, and also in the horizontal direction."
+      LayoutTable {TABLE} at (0,1329) size 769x1000 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x998
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x970
+            LayoutTableCell {TD} at (0,499) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x970 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x464
+                LayoutText {#text} at (0,2) size 726x238
+                  text run at (0,2) width 417: "This paragraph should have a font size of 14px and a line height of 20px. "
+                  text run at (417,2) width 289: "This means that the lines of text within it should be"
+                  text run at (0,22) width 428: "separated by six pixels, three of which are part of the line-box of each line. "
+                  text run at (428,22) width 298: "Any images within the paragraph should increase the"
+                  text run at (0,224) width 369: "height of the line-box so that they fit within the line box, such as "
+                LayoutImage {IMG} at (369,40) size 200x200
+                LayoutText {#text} at (569,224) size 28x16
+                  text run at (569,224) width 28: " and "
+                LayoutImage {IMG} at (0,244) size 200x200
+                LayoutText {#text} at (200,244) size 738x218
+                  text run at (200,244) width 8: ". "
+                  text run at (208,244) width 530: "This is additional text to make sure that there is enough room left below the image so that this"
+                  text run at (0,446) width 280: "line does not hit the image that is text-top aligned."
+              LayoutBlockFlow {P} at (4,482) size 747x484
+                LayoutText {#text} at (0,2) size 731x198
+                  text run at (0,2) width 417: "This paragraph should have a font size of 14px and a line height of 20px. "
+                  text run at (417,2) width 289: "This means that the lines of text within it should be"
+                  text run at (0,22) width 135: "separated by six pixels. "
+                  text run at (135,22) width 596: "Any images within the paragraph should increase the height of the line-box so that they fit, including their"
+                  text run at (0,184) width 444: "padding (5px), border (10px) and margins (15px) within the line box, such as "
+                LayoutImage {IMG} at (458.73,55) size 130x130 [border: (10px solid #000000)]
+                LayoutText {#text} at (603,184) size 29x16
+                  text run at (603,184) width 29: " and "
+                LayoutImage {IMG} at (15,219) size 130x130 [border: (10px solid #000000)]
+                LayoutText {#text} at (160,204) size 729x236
+                  text run at (160,204) width 8: ". "
+                  text run at (168,204) width 553: "This is additional text to make sure that there is enough room left below the image so that this line"
+                  text run at (0,366) width 261: "does not hit the image that is text-top aligned. "
+                  text run at (261,366) width 468: "It is the outer edge of the margin that should be text-bottom and text-top aligned in"
+                  text run at (0,386) width 728: "this paragraph, so for the first image the bottom border of the image should begin 15px above the bottom of the text, and for the"
+                  text run at (0,424) width 415: "second image the top border should begin 15px below the top of the text "
+                LayoutImage {IMG} at (405,394) size 80x80 [border: (10px solid #000000)]
+                LayoutText {#text} at (475,424) size 723x58
+                  text run at (475,424) width 8: ". "
+                  text run at (483,424) width 240: "The last image in this paragraph has -10px"
+                  text run at (0,466) width 705: "margins set on it, so that should pull the text in toward the image in the vertical direction, and also in the horizontal direction."
+layer at (8,345) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,337) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/inline_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/inline_elements-expected.txt
new file mode 100644
index 0000000..ef1ee75
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/inline_elements-expected.txt
@@ -0,0 +1,97 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 791
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x790 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x790.33
+    LayoutBlockFlow {BODY} at (8,8) size 769x774.33 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x112
+        LayoutText {#text} at (0,0) size 560x112
+          text run at (0,0) width 208: "P.one {line-height: 200%;}"
+          text run at (208,0) width 0: " "
+          text run at (0,16) width 552: "SPAN.two {border-style: solid; border-width: 10px; border-color: red;"
+          text run at (552,16) width 0: " "
+          text run at (0,32) width 304: "          padding: 2pt; margin: 30pt;}"
+          text run at (304,32) width 0: " "
+          text run at (0,48) width 360: "P.three {font-size: 10pt; line-height: 12pt;}"
+          text run at (360,48) width 0: " "
+          text run at (0,64) width 560: "SPAN.four {border-style: solid; border-width: 12px; border-color: red;"
+          text run at (560,64) width 0: " "
+          text run at (0,80) width 192: "          padding: 2pt;}"
+          text run at (192,80) width 0: " "
+          text run at (0,96) width 0: " "
+      LayoutBlockFlow {P} at (0,179) size 769x192
+        LayoutText {#text} at (0,6) size 179x19
+          text run at (0,6) width 179: "This is a paragraph that has a "
+        LayoutInline {SPAN} at (0,0) size 763x173 [border: (10px solid #FF0000)]
+          LayoutText {#text} at (231,6) size 763x147
+            text run at (231,6) width 531: "very long span in it, and the span has a 10px red border separated from the span by 2pt,"
+            text run at (0,38) width 133: "and a margin of 30pt. "
+            text run at (132,38) width 622: "The padding and border should be present on all sides of the span (although vertical lines should appear"
+            text run at (0,70) width 421: "only at the beginning and the end of the whole span, not on each line). "
+            text run at (421,70) width 342: "The padding, border, and margin should all be noticeable"
+            text run at (0,102) width 223: "at the beginning and end of the span. "
+            text run at (223,102) width 527: "However, the line height should not be changed by any of them, so the margin should be"
+            text run at (0,134) width 374: "unnoticeable and the border should overlap text on other lines."
+        LayoutText {#text} at (426,134) size 729x51
+          text run at (426,134) width 4: " "
+          text run at (430,134) width 299: "The line spacing in the whole paragraph should be"
+          text run at (0,166) width 132: "200% of the font size."
+      LayoutBlockFlow {P} at (0,387) size 769x64
+        LayoutText {#text} at (0,0) size 160x15
+          text run at (0,0) width 160: "This is a paragraph that has a "
+        LayoutInline {SPAN} at (0,0) size 757x93 [border: (12px solid #FF0000)]
+          LayoutText {#text} at (174,0) size 757x63
+            text run at (174,0) width 547: "very long span in it, and the span has a 12px red border separated from the span by 2pt of padding (the"
+            text run at (0,16) width 752: "difference between the line-height and the font-size), which should overlap with the lines of text above and below the span, since the padding"
+            text run at (0,32) width 237: "and border should not effect the line height. "
+            text run at (236,32) width 521: "The span's border should have vertical lines only at the beginning and end of the whole span, not"
+            text run at (0,48) width 67: "on each line."
+        LayoutText {#text} at (81,48) size 405x15
+          text run at (81,48) width 3: " "
+          text run at (84,48) width 402: "The line spacing in the whole paragraph should be 12pt, with font-size 10pt."
+      LayoutTable {TABLE} at (0,464.33) size 769x310 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x308
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x280
+            LayoutTableCell {TD} at (0,154) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x280 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x192
+                LayoutText {#text} at (0,6) size 179x19
+                  text run at (0,6) width 179: "This is a paragraph that has a "
+                LayoutInline {SPAN} at (0,0) size 744x173 [border: (10px solid #FF0000)]
+                  LayoutText {#text} at (231,6) size 744x147
+                    text run at (231,6) width 503: "very long span in it, and the span has a 10px red border separated from the span by"
+                    text run at (0,38) width 161: "2pt, and a margin of 30pt. "
+                    text run at (160,38) width 576: "The padding and border should be present on all sides of the span (although vertical lines should"
+                    text run at (0,70) width 467: "appear only at the beginning and the end of the whole span, not on each line). "
+                    text run at (467,70) width 277: "The padding, border, and margin should all be"
+                    text run at (0,102) width 288: "noticeable at the beginning and end of the span. "
+                    text run at (288,102) width 421: "However, the line height should not be changed by any of them, so the"
+                    text run at (0,134) width 480: "margin should be unnoticeable and the border should overlap text on other lines."
+                LayoutText {#text} at (531,134) size 708x51
+                  text run at (531,134) width 5: " "
+                  text run at (535,134) width 173: "The line spacing in the whole"
+                  text run at (0,166) width 259: "paragraph should be 200% of the font size."
+              LayoutBlockFlow {P} at (4,212) size 747x64
+                LayoutText {#text} at (0,0) size 160x15
+                  text run at (0,0) width 160: "This is a paragraph that has a "
+                LayoutInline {SPAN} at (0,0) size 721x93 [border: (12px solid #FF0000)]
+                  LayoutText {#text} at (174,0) size 721x63
+                    text run at (174,0) width 547: "very long span in it, and the span has a 12px red border separated from the span by 2pt of padding (the"
+                    text run at (0,16) width 705: "difference between the line-height and the font-size), which should overlap with the lines of text above and below the span, since the"
+                    text run at (0,32) width 284: "padding and border should not effect the line height. "
+                    text run at (283,32) width 433: "The span's border should have vertical lines only at the beginning and end of the"
+                    text run at (0,48) width 155: "whole span, not on each line."
+                LayoutText {#text} at (169,48) size 405x15
+                  text run at (169,48) width 3: " "
+                  text run at (172,48) width 402: "The line spacing in the whole paragraph should be 12pt, with font-size 10pt."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/replaced_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/replaced_elements-expected.txt
new file mode 100644
index 0000000..c30297f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/replaced_elements-expected.txt
@@ -0,0 +1,88 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2377
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2377 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2377
+    LayoutBlockFlow {BODY} at (8,8) size 769x2361 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x128
+        LayoutText {#text} at (0,0) size 504x128
+          text run at (0,0) width 208: "IMG.one {display: inline;}"
+          text run at (208,0) width 0: " "
+          text run at (0,16) width 200: "IMG.two {display: block;}"
+          text run at (200,16) width 0: " "
+          text run at (0,32) width 208: "IMG.three {display: block;"
+          text run at (208,32) width 0: " "
+          text run at (0,48) width 504: "           margin-right: auto; margin-left: auto; width: auto;}"
+          text run at (504,48) width 0: " "
+          text run at (0,64) width 200: "IMG.four {display: block;"
+          text run at (200,64) width 0: " "
+          text run at (0,80) width 488: "          margin-right: auto; margin-left: auto; width: 50%;}"
+          text run at (488,80) width 0: " "
+          text run at (0,96) width 200: "IMG.five {display: block;"
+          text run at (200,96) width 0: " "
+          text run at (0,112) width 464: "          margin-right: 0; margin-left: auto; width: 50%;}"
+          text run at (464,112) width 0: " "
+      LayoutBlockFlow {P} at (0,195) size 769x20
+        LayoutImage {IMG} at (0,0) size 15x15
+        LayoutText {#text} at (15,0) size 411x19
+          text run at (15,0) width 411: "The image at the beginning of this sentence should be a 15px square."
+      LayoutImage {IMG} at (0,231) size 15x15
+      LayoutBlockFlow {P} at (0,262) size 769x20
+        LayoutText {#text} at (0,0) size 467x19
+          text run at (0,0) width 467: "The above image should be a 15px square with the same left edge as this text."
+      LayoutImage {IMG} at (377,298) size 15x15
+      LayoutBlockFlow {P} at (0,329) size 769x20
+        LayoutText {#text} at (0,0) size 383x19
+          text run at (0,0) width 383: "The above image should be a 15px square aligned at the center."
+      LayoutImage {IMG} at (192.25,365) size 384.50x384.50
+      LayoutBlockFlow {P} at (0,765.50) size 769x40
+        LayoutText {#text} at (0,0) size 750x39
+          text run at (0,0) width 750: "The above image should be a square resized so its width is 50% of the its parent element, and centered horizontally within the"
+          text run at (0,20) width 95: "parent element: "
+          text run at (95,20) width 375: "the document body in the first half, and the table in the second."
+      LayoutImage {IMG} at (384.50,821.50) size 384.50x384.50
+      LayoutBlockFlow {P} at (0,1222) size 769x40
+        LayoutText {#text} at (0,0) size 765x39
+          text run at (0,0) width 765: "The above image should be a square resized so its width is 50% of its parent element, and aligned at the right edge of the parent"
+          text run at (0,20) width 53: "element: "
+          text run at (53,20) width 375: "the document body in the first half, and the table in the second."
+      LayoutTable {TABLE} at (0,1278) size 769x1083 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1081
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x1053
+            LayoutTableCell {TD} at (0,540) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x1053 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutImage {IMG} at (0,0) size 15x15
+                LayoutText {#text} at (15,0) size 411x19
+                  text run at (15,0) width 411: "The image at the beginning of this sentence should be a 15px square."
+              LayoutImage {IMG} at (4,40) size 15x15
+              LayoutBlockFlow {P} at (4,71) size 747x20
+                LayoutText {#text} at (0,0) size 467x19
+                  text run at (0,0) width 467: "The above image should be a 15px square with the same left edge as this text."
+              LayoutImage {IMG} at (370,107) size 15x15
+              LayoutBlockFlow {P} at (4,138) size 747x20
+                LayoutText {#text} at (0,0) size 383x19
+                  text run at (0,0) width 383: "The above image should be a 15px square aligned at the center."
+              LayoutImage {IMG} at (190.75,174) size 373.50x373.50
+              LayoutBlockFlow {P} at (4,563.50) size 747x40
+                LayoutText {#text} at (0,0) size 728x39
+                  text run at (0,0) width 728: "The above image should be a square resized so its width is 50% of the its parent element, and centered horizontally within"
+                  text run at (0,20) width 117: "the parent element: "
+                  text run at (117,20) width 375: "the document body in the first half, and the table in the second."
+              LayoutImage {IMG} at (377.50,619.50) size 373.50x373.50
+              LayoutBlockFlow {P} at (4,1009) size 747x40
+                LayoutText {#text} at (0,0) size 723x39
+                  text run at (0,0) width 723: "The above image should be a square resized so its width is 50% of its parent element, and aligned at the right edge of the"
+                  text run at (0,20) width 95: "parent element: "
+                  text run at (95,20) width 375: "the document body in the first half, and the table in the second."
+layer at (8,185) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,177) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/vertical_formatting-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/vertical_formatting-expected.txt
new file mode 100644
index 0000000..c7b80db3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/formatting_model/vertical_formatting-expected.txt
@@ -0,0 +1,172 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2579
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2579 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2578.78
+    LayoutBlockFlow {BODY} at (8,8) size 769x2562.78 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x320
+        LayoutText {#text} at (0,0) size 496x320
+          text run at (0,0) width 368: "P.one {margin-bottom: 2cm; padding-bottom: 0;}"
+          text run at (368,0) width 0: " "
+          text run at (0,16) width 320: "P.two {margin-top: 2cm; padding-top: 0;}"
+          text run at (320,16) width 0: " "
+          text run at (0,32) width 320: "P.three {margin-top: 0; padding-top: 0;}"
+          text run at (320,32) width 0: " "
+          text run at (0,48) width 344: "P.four {margin-top: -1cm; margin-bottom: 0;"
+          text run at (344,48) width 0: " "
+          text run at (0,64) width 344: "        padding-top: 0; padding-bottom: 0;}"
+          text run at (344,64) width 0: " "
+          text run at (0,80) width 368: "DIV.five {margin-top: 1cm; margin-bottom: 1cm;"
+          text run at (368,80) width 0: " "
+          text run at (0,96) width 376: "          padding-top: 1cm; padding-bottom: 0;}"
+          text run at (376,96) width 0: " "
+          text run at (0,112) width 344: "P.six {margin-top: 1cm; margin-bottom: 1cm;"
+          text run at (344,112) width 0: " "
+          text run at (0,128) width 336: "       padding-top: 0; padding-bottom: 0;}"
+          text run at (336,128) width 0: " "
+          text run at (0,144) width 336: "P.seven {margin-top: 1cm; padding-top: 0;}"
+          text run at (336,144) width 0: " "
+          text run at (0,160) width 408: "P.eight {margin-bottom: -1cm; padding-bottom: 2cm;}"
+          text run at (408,160) width 0: " "
+          text run at (0,176) width 344: "P.nine {margin-top: -1cm; padding-top: 1cm;"
+          text run at (344,176) width 0: " "
+          text run at (0,192) width 376: "        padding-bottom: 0; margin-bottom: 1cm;}"
+          text run at (376,192) width 0: " "
+          text run at (0,208) width 304: "P.ten {margin-top: 1cm;padding-top: 0;"
+          text run at (304,208) width 0: " "
+          text run at (0,224) width 248: "       float: left;width: 50%;}"
+          text run at (248,224) width 0: " "
+          text run at (0,240) width 448: "P.eleven {margin-top: 1cm; padding-top: 0; clear: none;}"
+          text run at (448,240) width 0: " "
+          text run at (0,256) width 496: "P.twelve {margin-bottom: 0; padding-bottom: 1cm; clear: both;}"
+          text run at (496,256) width 0: " "
+          text run at (0,272) width 360: "P.thirteen {margin-top: 0; padding-top: 1cm;}"
+          text run at (360,272) width 0: " "
+          text run at (0,288) width 160: "TABLE {clear: both;}"
+          text run at (160,288) width 0: " "
+          text run at (0,304) width 0: " "
+      LayoutBlockFlow {P} at (0,387) size 769x40
+        LayoutText {#text} at (0,0) size 720x39
+          text run at (0,0) width 720: "There should be a two-centimeter margin between this paragraph and the next, because adjacent vertical margins should"
+          text run at (0,20) width 240: "collapse to the maximum of the margins."
+      LayoutBlockFlow {P} at (0,502.58) size 769x20
+        LayoutText {#text} at (0,0) size 156x19
+          text run at (0,0) width 156: "This is another paragraph."
+      LayoutBlockFlow {P} at (0,538.58) size 769x20
+        LayoutText {#text} at (0,0) size 472x19
+          text run at (0,0) width 472: "There should be a two-centimeter margin between this paragraph and the next."
+      LayoutBlockFlow {P} at (0,634.16) size 769x20
+        LayoutText {#text} at (0,0) size 156x19
+          text run at (0,0) width 156: "This is another paragraph."
+      LayoutBlockFlow {P} at (0,670.16) size 769x40
+        LayoutText {#text} at (0,0) size 756x39
+          text run at (0,0) width 756: "There should be a one-centimeter margin between this paragraph and the next, because when there is one negative margin, the"
+          text run at (0,20) width 371: "two margins should be added (the minus sign should be kept)."
+      LayoutBlockFlow {P} at (0,747.95) size 769x20
+        LayoutText {#text} at (0,0) size 156x19
+          text run at (0,0) width 156: "This is another paragraph."
+      LayoutBlockFlow {DIV} at (0,805.73) size 769x115.56
+        LayoutBlockFlow {P} at (0,75.56) size 769x40
+          LayoutText {#text} at (0,0) size 752x39
+            text run at (0,0) width 750: "There should be three centimeters between this text and the text above, but only one centimeter between this text and the text"
+            text run at (0,20) width 752: "below, because vertical margins of nested elements should collapse only if there is no border or padding between the margins."
+      LayoutBlockFlow {P} at (0,959.08) size 769x20
+        LayoutText {#text} at (0,0) size 103x19
+          text run at (0,0) width 103: "This is more text."
+      LayoutBlockFlow {P} at (0,995.08) size 769x115.58
+        LayoutText {#text} at (0,0) size 747x39
+          text run at (0,0) width 747: "There should be two centimeters between this paragraph and the one below, because negative margins collapse to a negative"
+          text run at (0,20) width 376: "margin with the largest absolute value of the margins collapsed."
+      LayoutBlockFlow {P} at (0,1072.88) size 769x77.78
+        LayoutText {#text} at (0,38) size 753x39
+          text run at (0,38) width 753: "This is a paragraph, which I should make very long so that you can easily see how much space there is between it and the one"
+          text run at (0,58) width 146: "below it and to the right."
+      LayoutBlockFlow (floating) {P} at (0,1226.22) size 384.50x60
+        LayoutText {#text} at (0,0) size 366x59
+          text run at (0,0) width 366: "There should be two centimeters between this paragraph and"
+          text run at (0,20) width 346: "the one above it, since margins do not collapse on floating"
+          text run at (0,40) width 56: "elements."
+      LayoutBlockFlow {P} at (0,1188.44) size 769x60
+        LayoutText {#text} at (384,0) size 382x59
+          text run at (384,0) width 382: "There should be one centimeter between this paragraph and the"
+          text run at (384,20) width 375: "(non-floating) one above it, since the float should not effect the"
+          text run at (384,40) width 115: "paragraph spacing."
+      LayoutBlockFlow {P} at (0,1302.22) size 769x77.78
+        LayoutText {#text} at (0,0) size 765x39
+          text run at (0,0) width 530: "There should be two centimeters of padding between this paragraph and the one below. "
+          text run at (529,0) width 236: "Padding does not collapse, and there is"
+          text run at (0,20) width 177: "1cm of padding on each side."
+      LayoutBlockFlow {P} at (0,1380) size 769x57.78
+        LayoutText {#text} at (0,38) size 158x19
+          text run at (0,38) width 158: "This is the next paragraph."
+      LayoutTable {TABLE} at (0,1453.78) size 769x1109 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1107
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x1079
+            LayoutTableCell {TD} at (0,553) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x1078.78 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x40
+                LayoutText {#text} at (0,0) size 720x39
+                  text run at (0,0) width 720: "There should be a two-centimeter margin between this paragraph and the next, because adjacent vertical margins should"
+                  text run at (0,20) width 240: "collapse to the maximum of the margins."
+              LayoutBlockFlow {P} at (4,119.58) size 747x20
+                LayoutText {#text} at (0,0) size 156x19
+                  text run at (0,0) width 156: "This is another paragraph."
+              LayoutBlockFlow {P} at (4,155.58) size 747x20
+                LayoutText {#text} at (0,0) size 472x19
+                  text run at (0,0) width 472: "There should be a two-centimeter margin between this paragraph and the next."
+              LayoutBlockFlow {P} at (4,251.16) size 747x20
+                LayoutText {#text} at (0,0) size 156x19
+                  text run at (0,0) width 156: "This is another paragraph."
+              LayoutBlockFlow {P} at (4,287.16) size 747x40
+                LayoutText {#text} at (0,0) size 734x39
+                  text run at (0,0) width 734: "There should be a one-centimeter margin between this paragraph and the next, because when there is one negative margin,"
+                  text run at (0,20) width 393: "the two margins should be added (the minus sign should be kept)."
+              LayoutBlockFlow {P} at (4,364.95) size 747x20
+                LayoutText {#text} at (0,0) size 156x19
+                  text run at (0,0) width 156: "This is another paragraph."
+              LayoutBlockFlow {DIV} at (4,422.73) size 747x135.56
+                LayoutBlockFlow {P} at (0,75.56) size 747x60
+                  LayoutText {#text} at (0,0) size 724x59
+                    text run at (0,0) width 724: "There should be three centimeters between this text and the text above, but only one centimeter between this text and the"
+                    text run at (0,20) width 724: "text below, because vertical margins of nested elements should collapse only if there is no border or padding between the"
+                    text run at (0,40) width 50: "margins."
+              LayoutBlockFlow {P} at (4,596.08) size 747x20
+                LayoutText {#text} at (0,0) size 103x19
+                  text run at (0,0) width 103: "This is more text."
+              LayoutBlockFlow {P} at (4,632.08) size 747x115.58
+                LayoutText {#text} at (0,0) size 747x39
+                  text run at (0,0) width 747: "There should be two centimeters between this paragraph and the one below, because negative margins collapse to a negative"
+                  text run at (0,20) width 376: "margin with the largest absolute value of the margins collapsed."
+              LayoutBlockFlow {P} at (4,709.88) size 747x77.78
+                LayoutText {#text} at (0,38) size 727x39
+                  text run at (0,38) width 727: "This is a paragraph, which I should make very long so that you can easily see how much space there is between it and the"
+                  text run at (0,58) width 172: "one below it and to the right."
+              LayoutBlockFlow (floating) {P} at (4,863.22) size 373.50x60
+                LayoutText {#text} at (0,0) size 366x59
+                  text run at (0,0) width 366: "There should be two centimeters between this paragraph and"
+                  text run at (0,20) width 346: "the one above it, since margins do not collapse on floating"
+                  text run at (0,40) width 56: "elements."
+              LayoutBlockFlow {P} at (4,825.44) size 747x60
+                LayoutText {#text} at (373,0) size 360x59
+                  text run at (373,0) width 360: "There should be one centimeter between this paragraph and"
+                  text run at (373,20) width 338: "the (non-floating) one above it, since the float should not"
+                  text run at (373,40) width 174: "effect the paragraph spacing."
+              LayoutBlockFlow {P} at (4,939.22) size 747x77.78
+                LayoutText {#text} at (0,0) size 718x39
+                  text run at (0,0) width 530: "There should be two centimeters of padding between this paragraph and the one below. "
+                  text run at (529,0) width 189: "Padding does not collapse, and"
+                  text run at (0,20) width 224: "there is 1cm of padding on each side."
+              LayoutBlockFlow {P} at (4,1017) size 747x57.78
+                LayoutText {#text} at (0,38) size 158x19
+                  text run at (0,38) width 158: "This is the next paragraph."
+layer at (8,377) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,369) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/anchor-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/anchor-expected.txt
new file mode 100644
index 0000000..623f025
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/anchor-expected.txt
@@ -0,0 +1,163 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 737
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x737 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x737
+    LayoutBlockFlow {BODY} at (8,8) size 769x721 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x96
+        LayoutText {#text} at (0,0) size 200x96
+          text run at (0,0) width 136: "A {color: green;}"
+          text run at (136,0) width 0: " "
+          text run at (0,16) width 184: "A:link {color: purple;}"
+          text run at (184,16) width 0: " "
+          text run at (0,32) width 192: "A:visited {color: lime;}"
+          text run at (192,32) width 0: " "
+          text run at (0,48) width 200: "A:active {color: maroon;}"
+          text run at (200,48) width 0: " "
+          text run at (0,64) width 176: "#one {color: #006600;}"
+          text run at (176,64) width 0: " "
+          text run at (0,80) width 0: " "
+      LayoutBlockFlow {P} at (0,163) size 769x20
+        LayoutText {#text} at (0,0) size 477x19
+          text run at (0,0) width 477: "The following anchors should appear as described; none of them should be red."
+      LayoutBlockFlow {UL} at (0,199) size 769x160
+        LayoutListItem {LI} at (40,0) size 729x120
+          LayoutBlockFlow (anonymous) at (0,0) size 729x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 534x19
+              text run at (0,0) width 534: "Purple unvisited, lime (light green) visited, maroon (dark red) while active (being clicked):"
+          LayoutBlockFlow {UL} at (0,20) size 729x100
+            LayoutListItem {LI} at (40,0) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutInline {A} at (0,0) size 108x19 [color=#800080]
+                LayoutText {#text} at (0,0) size 108x19
+                  text run at (0,0) width 108: "W3C Web server"
+              LayoutText {#text} at (0,0) size 0x0
+            LayoutListItem {LI} at (40,20) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutInline {A} at (0,0) size 109x19 [color=#800080]
+                LayoutText {#text} at (0,0) size 109x19
+                  text run at (0,0) width 109: "NIST Web server"
+              LayoutText {#text} at (0,0) size 0x0
+            LayoutListItem {LI} at (40,40) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutInline {A} at (0,0) size 121x19 [color=#800080]
+                LayoutText {#text} at (0,0) size 121x19
+                  text run at (0,0) width 121: "CWRU Web server"
+              LayoutText {#text} at (0,0) size 0x0
+            LayoutListItem {LI} at (40,60) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutInline {A} at (0,0) size 45x19 [color=#800080]
+                LayoutText {#text} at (0,0) size 45x19
+                  text run at (0,0) width 45: "Yahoo!"
+              LayoutText {#text} at (0,0) size 0x0
+            LayoutListItem {LI} at (40,80) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutInline {A} at (0,0) size 54x19 [color=#800080]
+                LayoutText {#text} at (0,0) size 54x19
+                  text run at (0,0) width 54: "Erewhon"
+              LayoutText {#text} at (54,0) size 209x19
+                text run at (54,0) width 209: " (don't click on it, it goes nowhere)"
+        LayoutListItem {LI} at (40,120) size 729x40
+          LayoutBlockFlow (anonymous) at (0,0) size 729x20
+            LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+            LayoutText {#text} at (0,0) size 192x19
+              text run at (0,0) width 192: "Dark green in any circumstance:"
+          LayoutBlockFlow {UL} at (0,20) size 729x20
+            LayoutListItem {LI} at (40,0) size 689x20
+              LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+              LayoutInline {A} at (0,0) size 121x19 [color=#006600]
+                LayoutText {#text} at (0,0) size 121x19
+                  text run at (0,0) width 121: "CWRU Web server"
+              LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,375) size 769x40
+        LayoutText {#text} at (0,0) size 114x19
+          text run at (0,0) width 114: "The quoted word \""
+        LayoutInline {A} at (0,0) size 41x19 [color=#008000]
+          LayoutText {#text} at (114,0) size 41x19
+            text run at (114,0) width 41: "anchor"
+        LayoutText {#text} at (155,0) size 755x39
+          text run at (155,0) width 360: "\" should be green, NOT purple, since it's part of an anchor. "
+          text run at (514,0) width 241: "It's a named anchor, and styles declared"
+          text run at (0,20) width 283: "for the A tag are applied to them under CSS1. "
+          text run at (283,20) width 310: "It also should NOT turn orange when clicked upon."
+      LayoutTable {TABLE} at (0,431) size 769x290 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x288
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x260
+            LayoutTableCell {TD} at (0,144) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x260 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 477x19
+                  text run at (0,0) width 477: "The following anchors should appear as described; none of them should be red."
+              LayoutBlockFlow {UL} at (4,40) size 747x160
+                LayoutListItem {LI} at (40,0) size 707x120
+                  LayoutBlockFlow (anonymous) at (0,0) size 707x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 534x19
+                      text run at (0,0) width 534: "Purple unvisited, lime (light green) visited, maroon (dark red) while active (being clicked):"
+                  LayoutBlockFlow {UL} at (0,20) size 707x100
+                    LayoutListItem {LI} at (40,0) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutInline {A} at (0,0) size 108x19 [color=#800080]
+                        LayoutText {#text} at (0,0) size 108x19
+                          text run at (0,0) width 108: "W3C Web server"
+                      LayoutText {#text} at (0,0) size 0x0
+                    LayoutListItem {LI} at (40,20) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutInline {A} at (0,0) size 109x19 [color=#800080]
+                        LayoutText {#text} at (0,0) size 109x19
+                          text run at (0,0) width 109: "NIST Web server"
+                      LayoutText {#text} at (0,0) size 0x0
+                    LayoutListItem {LI} at (40,40) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutInline {A} at (0,0) size 121x19 [color=#800080]
+                        LayoutText {#text} at (0,0) size 121x19
+                          text run at (0,0) width 121: "CWRU Web server"
+                      LayoutText {#text} at (0,0) size 0x0
+                    LayoutListItem {LI} at (40,60) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutInline {A} at (0,0) size 45x19 [color=#800080]
+                        LayoutText {#text} at (0,0) size 45x19
+                          text run at (0,0) width 45: "Yahoo!"
+                      LayoutText {#text} at (0,0) size 0x0
+                    LayoutListItem {LI} at (40,80) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutInline {A} at (0,0) size 54x19 [color=#800080]
+                        LayoutText {#text} at (0,0) size 54x19
+                          text run at (0,0) width 54: "Erewhon"
+                      LayoutText {#text} at (54,0) size 209x19
+                        text run at (54,0) width 209: " (don't click on it, it goes nowhere)"
+                LayoutListItem {LI} at (40,120) size 707x40
+                  LayoutBlockFlow (anonymous) at (0,0) size 707x20
+                    LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
+                    LayoutText {#text} at (0,0) size 192x19
+                      text run at (0,0) width 192: "Dark green in any circumstance:"
+                  LayoutBlockFlow {UL} at (0,20) size 707x20
+                    LayoutListItem {LI} at (40,0) size 667x20
+                      LayoutListMarker (anonymous) at (-18,0) size 7x19: white bullet
+                      LayoutInline {A} at (0,0) size 121x19 [color=#006600]
+                        LayoutText {#text} at (0,0) size 121x19
+                          text run at (0,0) width 121: "CWRU Web server"
+                      LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,216) size 747x40
+                LayoutText {#text} at (0,0) size 114x19
+                  text run at (0,0) width 114: "The quoted word \""
+                LayoutInline {A} at (0,0) size 41x19 [color=#008000]
+                  LayoutText {#text} at (114,0) size 41x19
+                    text run at (114,0) width 41: "anchor"
+                LayoutText {#text} at (155,0) size 699x39
+                  text run at (155,0) width 360: "\" should be green, NOT purple, since it's part of an anchor. "
+                  text run at (514,0) width 185: "It's a named anchor, and styles"
+                  text run at (0,20) width 339: "declared for the A tag are applied to them under CSS1. "
+                  text run at (339,20) width 310: "It also should NOT turn orange when clicked upon."
+layer at (8,153) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,145) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/firstletter-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/firstletter-expected.txt
new file mode 100644
index 0000000..8b383a45
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/firstletter-expected.txt
@@ -0,0 +1,94 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 751
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x751 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x751
+    LayoutBlockFlow {BODY} at (8,8) size 769x735 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 9x19 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 9x19
+            text run at (0,0) width 9: "T"
+        LayoutTextFragment {#text} at (9,0) size 328x19
+          text run at (9,0) width 328: "he style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 312x64
+          text run at (0,0) width 248: "P:first-letter {color: maroon;}"
+          text run at (248,0) width 0: " "
+          text run at (0,16) width 288: ".two:first-letter {font-size: 200%;}"
+          text run at (288,16) width 0: " "
+          text run at (0,32) width 312: "P.three:first-letter {font-size: 350%;}"
+          text run at (312,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 769x60
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 9x19 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 9x19
+            text run at (0,0) width 9: "T"
+        LayoutTextFragment {#text} at (9,0) size 758x59
+          text run at (9,0) width 414: "he first letter of this paragraph, and only that one, should be maroon. "
+          text run at (423,0) width 335: "If this precise combination does not occur, then the user"
+          text run at (0,20) width 149: "agent has failed this test. "
+          text run at (149,20) width 609: "Remember that in order to ensure a complete test, the paragraph must be displayed on more than one"
+          text run at (0,40) width 24: "line."
+      LayoutBlockFlow {P} at (0,207) size 769x77
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 19x36 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 19x36
+            text run at (0,0) width 19: "T"
+        LayoutTextFragment {#text} at (19,13) size 766x63
+          text run at (19,13) width 582: "he first letter of this paragraph, and only that one, should be a larger font size, as well as maroon. "
+          text run at (600,13) width 158: "If this precise combination"
+          text run at (0,37) width 327: "does not occur, then the user agent has failed this test. "
+          text run at (326,37) width 440: "Remember that in order to ensure a complete test, the paragraph must be"
+          text run at (0,57) width 194: "displayed on more than one line."
+      LayoutBlockFlow {P} at (0,300) size 769x106
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 75x64 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,1) size 75x64
+            text run at (0,1) width 75: "\"W"
+        LayoutTextFragment {#text} at (75,36) size 768x69
+          text run at (75,36) width 305: "e should check for quotation support,\" it was said. "
+          text run at (380,36) width 388: "The first two characters in this paragraph-- a double-quote mark"
+          text run at (0,66) width 525: "and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon. "
+          text run at (525,66) width 209: "Note that this is not required under"
+          text run at (0,86) width 182: "CSS1, but it is recommended."
+      LayoutTable {TABLE} at (0,422) size 769x313 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x311
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x283
+            LayoutTableCell {TD} at (0,155) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x283 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x60
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 9x19 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,0) size 9x19
+                    text run at (0,0) width 9: "T"
+                LayoutTextFragment {#text} at (9,0) size 732x59
+                  text run at (9,0) width 414: "he first letter of this paragraph, and only that one, should be maroon. "
+                  text run at (423,0) width 306: "If this precise combination does not occur, then the"
+                  text run at (0,20) width 178: "user agent has failed this test. "
+                  text run at (178,20) width 554: "Remember that in order to ensure a complete test, the paragraph must be displayed on more"
+                  text run at (0,40) width 79: "than one line."
+              LayoutBlockFlow {P} at (4,80) size 747x77
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 19x36 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,0) size 19x36
+                    text run at (0,0) width 19: "T"
+                LayoutTextFragment {#text} at (19,13) size 727x63
+                  text run at (19,13) width 582: "he first letter of this paragraph, and only that one, should be a larger font size, as well as maroon. "
+                  text run at (600,13) width 81: "If this precise"
+                  text run at (0,37) width 404: "combination does not occur, then the user agent has failed this test. "
+                  text run at (403,37) width 324: "Remember that in order to ensure a complete test, the"
+                  text run at (0,57) width 310: "paragraph must be displayed on more than one line."
+              LayoutBlockFlow {P} at (4,173) size 747x106
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 75x64 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,1) size 75x64
+                    text run at (0,1) width 75: "\"W"
+                LayoutTextFragment {#text} at (75,36) size 733x69
+                  text run at (75,36) width 305: "e should check for quotation support,\" it was said. "
+                  text run at (380,36) width 353: "The first two characters in this paragraph-- a double-quote"
+                  text run at (0,66) width 560: "mark and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon. "
+                  text run at (560,66) width 171: "Note that this is not required"
+                  text run at (0,86) width 220: "under CSS1, but it is recommended."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/firstline-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/firstline-expected.txt
new file mode 100644
index 0000000..8600fd1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/firstline-expected.txt
@@ -0,0 +1,84 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 699
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x699 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x699
+    LayoutBlockFlow {BODY} at (8,8) size 769x683 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 360x64
+          text run at (0,0) width 224: "P:first-line {color: green;}"
+          text run at (224,0) width 0: " "
+          text run at (0,16) width 272: ".two:first-line {font-size: 200%;}"
+          text run at (272,16) width 0: " "
+          text run at (0,32) width 360: ".three:first-line {font-variant: small-caps;}"
+          text run at (360,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 769x60
+        LayoutText {#text} at (0,0) size 758x59
+          text run at (0,0) width 400: "The first line of this paragraph, and only that one, should be green. "
+          text run at (400,0) width 335: "If this precise combination does not occur, then the user"
+          text run at (0,20) width 149: "agent has failed this test. "
+          text run at (149,20) width 609: "Remember that in order to ensure a complete test, the paragraph must be displayed on more than one"
+          text run at (0,40) width 24: "line."
+      LayoutBlockFlow {P} at (0,207) size 769x77
+        LayoutText {#text} at (0,0) size 759x76
+          text run at (0,0) width 749: "The first line of this paragraph, and only that one, should be"
+          text run at (0,37) width 205: "a larger font size as well as green. "
+          text run at (204,37) width 489: "If this precise combination does not occur, then the user agent has failed this test. "
+          text run at (692,37) width 67: "Remember"
+          text run at (0,57) width 567: "that in order to ensure a complete test, the paragraph must be displayed on more than one line."
+      LayoutBlockFlow {P} at (0,300) size 769x80
+        LayoutText {#text} at (0,0) size 763x59
+          text run at (0,0) width 646: "The first line of this paragraph, and only that one, should be displayed in small-caps style. "
+          text run at (645,0) width 118: "Thus, if the first"
+          text run at (0,20) width 760: "line is not in small-caps style, OR if the entire paragraph turns out in small-caps, then the user agent has failed this test (although"
+          text run at (0,40) width 157: "the problem might be that "
+        LayoutInline {CODE} at (0,0) size 80x16
+          LayoutText {#text} at (157,43) size 80x16
+            text run at (157,43) width 80: "small-caps"
+        LayoutText {#text} at (237,40) size 725x39
+          text run at (237,40) width 218: " is not supported by your browser). "
+          text run at (455,40) width 270: "This is extra text included for the purposes of"
+          text run at (0,60) width 372: "making the paragraph long enough to have more than one line."
+      LayoutTable {TABLE} at (0,396) size 769x287 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x285
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x257
+            LayoutTableCell {TD} at (0,142) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x257 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x60
+                LayoutText {#text} at (0,0) size 735x59
+                  text run at (0,0) width 400: "The first line of this paragraph, and only that one, should be green. "
+                  text run at (400,0) width 335: "If this precise combination does not occur, then the user"
+                  text run at (0,20) width 149: "agent has failed this test. "
+                  text run at (149,20) width 583: "Remember that in order to ensure a complete test, the paragraph must be displayed on more than"
+                  text run at (0,40) width 50: "one line."
+              LayoutBlockFlow {P} at (4,80) size 747x77
+                LayoutText {#text} at (0,0) size 711x76
+                  text run at (0,0) width 711: "The first line of this paragraph, and only that one, should"
+                  text run at (0,37) width 224: "be a larger font size as well as green. "
+                  text run at (223,37) width 485: "If this precise combination does not occur, then the user agent has failed this test."
+                  text run at (0,57) width 637: "Remember that in order to ensure a complete test, the paragraph must be displayed on more than one line."
+              LayoutBlockFlow {P} at (4,173) size 747x80
+                LayoutText {#text} at (0,0) size 727x59
+                  text run at (0,0) width 646: "The first line of this paragraph, and only that one, should be displayed in small-caps style. "
+                  text run at (645,0) width 81: "Thus, if the"
+                  text run at (0,20) width 727: "first line is not in small-caps style, OR if the entire paragraph turns out in small-caps, then the user agent has failed this test"
+                  text run at (0,40) width 216: "(although the problem might be that "
+                LayoutInline {CODE} at (0,0) size 80x16
+                  LayoutText {#text} at (216,43) size 80x16
+                    text run at (216,43) width 80: "small-caps"
+                LayoutText {#text} at (296,40) size 709x39
+                  text run at (296,40) width 218: " is not supported by your browser). "
+                  text run at (514,40) width 195: "This is extra text included for the"
+                  text run at (0,60) width 447: "purposes of making the paragraph long enough to have more than one line."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/multiple_pseudo_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/multiple_pseudo_elements-expected.txt
new file mode 100644
index 0000000..dd895dd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/multiple_pseudo_elements-expected.txt
@@ -0,0 +1,103 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1069
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1069 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1069
+    LayoutBlockFlow {BODY} at (8,8) size 769x1053 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 9x19 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 9x19
+            text run at (0,0) width 9: "T"
+        LayoutTextFragment {#text} at (9,0) size 328x19
+          text run at (9,0) width 328: "he style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x112
+        LayoutText {#text} at (0,0) size 368x112
+          text run at (0,0) width 224: "P:first-line {color: green;}"
+          text run at (224,0) width 0: " "
+          text run at (0,16) width 248: "P:first-letter {color: maroon;}"
+          text run at (248,16) width 0: " "
+          text run at (0,32) width 272: ".two:first-line {font-size: 200%;}"
+          text run at (272,32) width 0: " "
+          text run at (0,48) width 288: ".two:first-letter {font-size: 350%;}"
+          text run at (288,48) width 0: " "
+          text run at (0,64) width 312: "P.three:first-letter {font-size: 350%;}"
+          text run at (312,64) width 0: " "
+          text run at (0,80) width 368: "P.three:first-line {font-variant: small-caps;}"
+          text run at (368,80) width 0: " "
+          text run at (0,96) width 0: " "
+      LayoutBlockFlow {P} at (0,179) size 769x60
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 9x19 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,0) size 9x19
+            text run at (0,0) width 9: "T"
+        LayoutTextFragment {#text} at (9,0) size 769x59
+          text run at (9,0) width 727: "he first letter of this paragraph, and only that one, should be maroon (dark red), while the entire first line should be green. "
+          text run at (736,0) width 33: "If this"
+          text run at (0,20) width 451: "precise combination does not occur, then the user agent has failed this test. "
+          text run at (450,20) width 302: "Remember that in order to ensure a complete test,"
+          text run at (0,40) width 332: "the paragraph must be displayed on more than one line."
+      LayoutBlockFlow {P} at (0,255) size 769x192
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 68x127 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,2) size 68x127
+            text run at (0,2) width 68: "T"
+        LayoutTextFragment {#text} at (68,74) size 762x117
+          text run at (68,74) width 621: "he first letter of this paragraph, and only that one,"
+          text run at (0,132) width 762: "should be 350% bigger than the rest of the first line of this paragraph and maroon (dark red), while the entire first line should be"
+          text run at (0,152) width 223: "200% bigger than normal and green. "
+          text run at (223,152) width 484: "If this precise combination does not occur, then the user agent has failed this test."
+          text run at (0,172) width 637: "Remember that in order to ensure a complete test, the paragraph must be displayed on more than one line."
+      LayoutBlockFlow {P} at (0,463) size 769x126
+        LayoutInline {<pseudo:first-letter>} at (0,0) size 75x64 [color=#800000]
+          LayoutTextFragment (anonymous) at (0,1) size 75x64
+            text run at (0,1) width 75: "\"W"
+        LayoutTextFragment {#text} at (75,36) size 769x89
+          text run at (75,36) width 359: "e should check for quotation support,\" it was said. "
+          text run at (433,36) width 327: "The first two characters in this paragraph-- a"
+          text run at (0,66) width 711: "double-quote mark and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon (dark red). "
+          text run at (711,66) width 57: "Note that"
+          text run at (0,86) width 757: "the inclusion of both the quotation mark and the 'W' in the first-letter style is not required under CSS1, but it is recommended. "
+          text run at (757,86) width 12: "In"
+          text run at (0,106) width 410: "addition, the entire first line should be in a small-caps font and green."
+      LayoutTable {TABLE} at (0,605) size 769x448 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x446
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x418
+            LayoutTableCell {TD} at (0,223) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x418 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x60
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 9x19 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,0) size 9x19
+                    text run at (0,0) width 9: "T"
+                LayoutTextFragment {#text} at (9,0) size 747x59
+                  text run at (9,0) width 727: "he first letter of this paragraph, and only that one, should be maroon (dark red), while the entire first line should be green. "
+                  text run at (736,0) width 9: "If"
+                  text run at (0,20) width 475: "this precise combination does not occur, then the user agent has failed this test. "
+                  text run at (474,20) width 273: "Remember that in order to ensure a complete"
+                  text run at (0,40) width 361: "test, the paragraph must be displayed on more than one line."
+              LayoutBlockFlow {P} at (4,80) size 747x192
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 68x127 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,2) size 68x127
+                    text run at (0,2) width 68: "T"
+                LayoutTextFragment {#text} at (68,74) size 743x117
+                  text run at (68,74) width 621: "he first letter of this paragraph, and only that one,"
+                  text run at (0,132) width 743: "should be 350% bigger than the rest of the first line of this paragraph and maroon (dark red), while the entire first line should"
+                  text run at (0,152) width 242: "be 200% bigger than normal and green. "
+                  text run at (242,152) width 484: "If this precise combination does not occur, then the user agent has failed this test."
+                  text run at (0,172) width 637: "Remember that in order to ensure a complete test, the paragraph must be displayed on more than one line."
+              LayoutBlockFlow {P} at (4,288) size 747x126
+                LayoutInline {<pseudo:first-letter>} at (0,0) size 75x64 [color=#800000]
+                  LayoutTextFragment (anonymous) at (0,1) size 75x64
+                    text run at (0,1) width 75: "\"W"
+                LayoutTextFragment {#text} at (75,36) size 742x89
+                  text run at (75,36) width 359: "e should check for quotation support,\" it was said. "
+                  text run at (433,36) width 309: "The first two characters in this paragraph-"
+                  text run at (0,66) width 728: "- a double-quote mark and a capital 'W'-- should be 350% bigger than the rest of the paragraph, and maroon (dark red)."
+                  text run at (0,86) width 720: "Note that the inclusion of both the quotation mark and the 'W' in the first-letter style is not required under CSS1, but it is"
+                  text run at (0,106) width 94: "recommended. "
+                  text run at (94,106) width 426: "In addition, the entire first line should be in a small-caps font and green."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/pseudo_elements_in_selectors-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/pseudo_elements_in_selectors-expected.txt
new file mode 100644
index 0000000..3db0314
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/pseudo/pseudo_elements_in_selectors-expected.txt
@@ -0,0 +1,78 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 605
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x605 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x605
+    LayoutBlockFlow {BODY} at (8,8) size 769x589 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 373x19
+          text run at (0,0) width 373: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x64
+        LayoutText {#text} at (0,0) size 264x64
+          text run at (0,0) width 264: "P:first-line {font-weight: bold;}"
+          text run at (264,0) width 0: " "
+          text run at (0,16) width 256: "P.two:first-line {color: green;}"
+          text run at (256,16) width 0: " "
+          text run at (0,32) width 256: "P:first-line.three {color: red;}"
+          text run at (256,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 769x40
+        LayoutText {#text} at (0,0) size 714x39
+          text run at (0,0) width 336: "The first line of this sentence should be boldfaced. "
+          text run at (336,0) width 378: "This test is included simply to establish a baseline for the"
+          text run at (0,20) width 604: "following tests, since if this test fails, then the rest of the tests on this page are expected to fail as well."
+      LayoutBlockFlow {P} at (0,187) size 769x40
+        LayoutText {#text} at (0,0) size 752x39
+          text run at (0,0) width 552: "The first line of this sentence should be boldfaced and green, thanks to its selector. "
+          text run at (551,0) width 201: "If this is not the case, then the"
+          text run at (0,20) width 541: "user agent may have failed to properly parse the selector, or it may simply not support the "
+        LayoutInline {TT} at (0,0) size 89x16
+          LayoutText {#text} at (540,23) size 89x16
+            text run at (540,23) width 89: ":first-line"
+        LayoutText {#text} at (628,20) size 105x19
+          text run at (628,20) width 105: " pseudo-element."
+      LayoutBlockFlow {P} at (0,243) size 769x80
+        LayoutText {#text} at (0,0) size 757x79
+          text run at (0,0) width 336: "The first line of this sentence should be boldfaced. "
+          text run at (336,0) width 413: "If it is red, then the user agent has violated the specification in"
+          text run at (0,20) width 413: "allowing pseudo-elements at a point other than the end of a selector. "
+          text run at (412,20) width 321: "If neither is the case, then the user agent has correctly"
+          text run at (0,40) width 757: "ignored the incorrect selector, but has suppressed other styles which are valid, and therefore must be considered to have failed"
+          text run at (0,60) width 47: "the test."
+      LayoutTable {TABLE} at (0,339) size 769x250 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x248
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x220
+            LayoutTableCell {TD} at (0,124) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x220 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x40
+                LayoutText {#text} at (0,0) size 714x39
+                  text run at (0,0) width 336: "The first line of this sentence should be boldfaced. "
+                  text run at (336,0) width 378: "This test is included simply to establish a baseline for the"
+                  text run at (0,20) width 604: "following tests, since if this test fails, then the rest of the tests on this page are expected to fail as well."
+              LayoutBlockFlow {P} at (4,60) size 747x60
+                LayoutText {#text} at (0,0) size 727x39
+                  text run at (0,0) width 552: "The first line of this sentence should be boldfaced and green, thanks to its selector. "
+                  text run at (551,0) width 176: "If this is not the case, then"
+                  text run at (0,20) width 563: "the user agent may have failed to properly parse the selector, or it may simply not support the "
+                LayoutInline {TT} at (0,0) size 89x16
+                  LayoutText {#text} at (562,23) size 89x16
+                    text run at (562,23) width 89: ":first-line"
+                LayoutText {#text} at (650,20) size 705x39
+                  text run at (650,20) width 55: " pseudo-"
+                  text run at (0,40) width 50: "element."
+              LayoutBlockFlow {P} at (4,136) size 747x80
+                LayoutText {#text} at (0,0) size 747x79
+                  text run at (0,0) width 336: "The first line of this sentence should be boldfaced. "
+                  text run at (336,0) width 397: "If it is red, then the user agent has violated the specification"
+                  text run at (0,20) width 427: "in allowing pseudo-elements at a point other than the end of a selector. "
+                  text run at (426,20) width 321: "If neither is the case, then the user agent has correctly"
+                  text run at (0,40) width 721: "ignored the incorrect selector, but has suppressed other styles which are valid, and therefore must be considered to have"
+                  text run at (0,60) width 83: "failed the test."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/letter_spacing-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/letter_spacing-expected.txt
new file mode 100644
index 0000000..28a3cd6e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/letter_spacing-expected.txt
@@ -0,0 +1,139 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1461
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1461 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1461
+    LayoutBlockFlow {BODY} at (8,8) size 769x1445 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x176
+        LayoutText {#text} at (0,0) size 264x176
+          text run at (0,0) width 232: ".one {letter-spacing: 0.3in;}"
+          text run at (232,0) width 0: " "
+          text run at (0,16) width 232: ".two {letter-spacing: 0.5cm;}"
+          text run at (232,16) width 0: " "
+          text run at (0,32) width 232: ".three {letter-spacing: 5mm;}"
+          text run at (232,32) width 0: " "
+          text run at (0,48) width 224: ".four {letter-spacing: 3pt;}"
+          text run at (224,48) width 0: " "
+          text run at (0,64) width 248: ".five {letter-spacing: 0.25pc;}"
+          text run at (248,64) width 0: " "
+          text run at (0,80) width 216: ".six {letter-spacing: 1em;}"
+          text run at (216,80) width 0: " "
+          text run at (0,96) width 232: ".seven {letter-spacing: 1ex;}"
+          text run at (232,96) width 0: " "
+          text run at (0,112) width 232: ".eight {letter-spacing: 5px;}"
+          text run at (232,112) width 0: " "
+          text run at (0,128) width 248: ".nine {letter-spacing: normal;}"
+          text run at (248,128) width 0: " "
+          text run at (0,144) width 224: ".ten {letter-spacing: 300%;}"
+          text run at (224,144) width 0: " "
+          text run at (0,160) width 264: ".eleven {letter-spacing: -0.1em;}"
+          text run at (264,160) width 0: " "
+      LayoutBlockFlow {P} at (0,243) size 769x80
+        LayoutText {#text} at (0,0) size 703x79
+          text run at (0,0) width 679: "This letters in this"
+          text run at (0,20) width 703: "sentence should have"
+          text run at (0,40) width 672: "extra space between"
+          text run at (0,60) width 177: "them."
+      LayoutBlockFlow {P} at (0,339) size 769x60
+        LayoutText {#text} at (0,0) size 708x59
+          text run at (0,0) width 708: "This letters in this sentence"
+          text run at (0,20) width 579: "should have extra space"
+          text run at (0,40) width 334: "between them."
+      LayoutBlockFlow {P} at (0,415) size 769x60
+        LayoutText {#text} at (0,0) size 708x59
+          text run at (0,0) width 708: "This letters in this sentence"
+          text run at (0,20) width 579: "should have extra space"
+          text run at (0,40) width 334: "between them."
+      LayoutBlockFlow {P} at (0,491) size 769x20
+        LayoutText {#text} at (0,0) size 667x19
+          text run at (0,0) width 667: "This letters in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,527) size 769x20
+        LayoutText {#text} at (0,0) size 667x19
+          text run at (0,0) width 667: "This letters in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,563) size 769x60
+        LayoutText {#text} at (0,0) size 695x59
+          text run at (0,0) width 623: "This letters in this sentence"
+          text run at (0,20) width 695: "should have extra space between"
+          text run at (0,40) width 113: "them."
+      LayoutBlockFlow {P} at (0,639) size 769x40
+        LayoutText {#text} at (0,0) size 678x39
+          text run at (0,0) width 678: "This letters in this sentence should have extra space"
+          text run at (0,20) width 179: "between them."
+      LayoutBlockFlow {P} at (0,695) size 769x40
+        LayoutText {#text} at (0,0) size 734x39
+          text run at (0,0) width 734: "This letters in this sentence should have extra space between them,"
+          text run at (0,20) width 424: "but the last few words in the sentence "
+        LayoutInline {SPAN} at (0,0) size 169x19
+          LayoutText {#text} at (424,20) size 169x19
+            text run at (424,20) width 169: "should show normal spacing"
+        LayoutText {#text} at (593,20) size 9x19
+          text run at (593,20) width 9: "."
+      LayoutBlockFlow {P} at (0,751) size 769x20
+        LayoutText {#text} at (0,0) size 754x19
+          text run at (0,0) width 754: "This letters in this sentence should have normal space between them, since percentage values are not allowed on this property."
+      LayoutBlockFlow {P} at (0,787) size 769x20
+        LayoutText {#text} at (0,0) size 529x19
+          text run at (0,0) width 529: "This letters in this sentence should have reduced space between them, since negative values are allowed on this property."
+      LayoutTable {TABLE} at (0,823) size 769x622 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x620
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x592
+            LayoutTableCell {TD} at (0,310) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x592 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x80
+                LayoutText {#text} at (0,0) size 703x79
+                  text run at (0,0) width 679: "This letters in this"
+                  text run at (0,20) width 703: "sentence should have"
+                  text run at (0,40) width 672: "extra space between"
+                  text run at (0,60) width 177: "them."
+              LayoutBlockFlow {P} at (4,100) size 747x60
+                LayoutText {#text} at (0,0) size 708x59
+                  text run at (0,0) width 708: "This letters in this sentence"
+                  text run at (0,20) width 579: "should have extra space"
+                  text run at (0,40) width 334: "between them."
+              LayoutBlockFlow {P} at (4,176) size 747x60
+                LayoutText {#text} at (0,0) size 708x59
+                  text run at (0,0) width 708: "This letters in this sentence"
+                  text run at (0,20) width 579: "should have extra space"
+                  text run at (0,40) width 334: "between them."
+              LayoutBlockFlow {P} at (4,252) size 747x20
+                LayoutText {#text} at (0,0) size 667x19
+                  text run at (0,0) width 667: "This letters in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,288) size 747x20
+                LayoutText {#text} at (0,0) size 667x19
+                  text run at (0,0) width 667: "This letters in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,324) size 747x60
+                LayoutText {#text} at (0,0) size 695x59
+                  text run at (0,0) width 623: "This letters in this sentence"
+                  text run at (0,20) width 695: "should have extra space between"
+                  text run at (0,40) width 113: "them."
+              LayoutBlockFlow {P} at (4,400) size 747x40
+                LayoutText {#text} at (0,0) size 678x39
+                  text run at (0,0) width 678: "This letters in this sentence should have extra space"
+                  text run at (0,20) width 179: "between them."
+              LayoutBlockFlow {P} at (4,456) size 747x40
+                LayoutText {#text} at (0,0) size 734x39
+                  text run at (0,0) width 734: "This letters in this sentence should have extra space between them,"
+                  text run at (0,20) width 424: "but the last few words in the sentence "
+                LayoutInline {SPAN} at (0,0) size 169x19
+                  LayoutText {#text} at (424,20) size 169x19
+                    text run at (424,20) width 169: "should show normal spacing"
+                LayoutText {#text} at (593,20) size 9x19
+                  text run at (593,20) width 9: "."
+              LayoutBlockFlow {P} at (4,512) size 747x40
+                LayoutText {#text} at (0,0) size 695x39
+                  text run at (0,0) width 695: "This letters in this sentence should have normal space between them, since percentage values are not allowed on this"
+                  text run at (0,20) width 55: "property."
+              LayoutBlockFlow {P} at (4,568) size 747x20
+                LayoutText {#text} at (0,0) size 529x19
+                  text run at (0,0) width 529: "This letters in this sentence should have reduced space between them, since negative values are allowed on this property."
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/line_height-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/line_height-expected.txt
new file mode 100644
index 0000000..db9bcba
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/line_height-expected.txt
@@ -0,0 +1,182 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2641
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x2641 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x2641
+    LayoutBlockFlow {BODY} at (8,8) size 769x2625 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x224
+        LayoutText {#text} at (0,0) size 400x224
+          text run at (0,0) width 344: ".one {line-height: 0.5in; font-size: 12px;}"
+          text run at (344,0) width 0: " "
+          text run at (0,16) width 328: ".two {line-height: 2cm; font-size: 12px;}"
+          text run at (328,16) width 0: " "
+          text run at (0,32) width 352: ".three {line-height: 20mm; font-size: 12px;}"
+          text run at (352,32) width 0: " "
+          text run at (0,48) width 344: ".four {line-height: 24pt; font-size: 12px;}"
+          text run at (344,48) width 0: " "
+          text run at (0,64) width 336: ".five {line-height: 2pc; font-size: 12px;}"
+          text run at (336,64) width 0: " "
+          text run at (0,80) width 328: ".six {line-height: 2em; font-size: 12px;}"
+          text run at (328,80) width 0: " "
+          text run at (0,96) width 344: ".seven {line-height: 3ex; font-size: 12px;}"
+          text run at (344,96) width 0: " "
+          text run at (0,112) width 352: ".eight {line-height: 200%; font-size: 12px;}"
+          text run at (352,112) width 0: " "
+          text run at (0,128) width 320: ".nine {line-height: 2; font-size: 12px;}"
+          text run at (320,128) width 0: " "
+          text run at (0,144) width 336: ".ten {line-height: 50px; font-size: 12px;}"
+          text run at (336,144) width 0: " "
+          text run at (0,160) width 360: ".eleven {line-height: -1em; font-size: 12px;}"
+          text run at (360,160) width 0: " "
+          text run at (0,176) width 400: "TABLE .ten {line-height: normal; font-size: 12px;}"
+          text run at (400,176) width 0: " "
+          text run at (0,192) width 248: "DIV {background-color: silver;}"
+          text run at (248,192) width 0: " "
+          text run at (0,208) width 304: "SPAN.color {background-color: silver;}"
+          text run at (304,208) width 0: " "
+      LayoutBlockFlow {P} at (0,287) size 769x48
+        LayoutText {#text} at (0,16) size 511x15
+          text run at (0,16) width 511: "This sentence should have a line-height of half an inch, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,347) size 769x75
+        LayoutText {#text} at (0,30) size 533x15
+          text run at (0,30) width 533: "This sentence should have a line-height of two centimeters, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,434) size 769x75
+        LayoutText {#text} at (0,30) size 547x15
+          text run at (0,30) width 547: "This sentence should have a line-height of twenty millimeters, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,521) size 769x32
+        LayoutText {#text} at (0,8) size 549x15
+          text run at (0,8) width 549: "This sentence should have a line-height of twenty-four points, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,565) size 769x32
+        LayoutText {#text} at (0,8) size 503x15
+          text run at (0,8) width 503: "This sentence should have a line-height of two picas, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,609) size 769x24
+        LayoutText {#text} at (0,4) size 492x15
+          text run at (0,4) width 492: "This sentence should have a line-height of two em, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,645) size 769x14
+        LayoutText {#text} at (0,-1) size 493x15
+          text run at (0,-1) width 493: "This sentence should have a line-height of three ex, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,671) size 769x24
+        LayoutText {#text} at (0,4) size 545x15
+          text run at (0,4) width 545: "This sentence should have a line-height of twice the font size, which should cause extra spacing between the lines."
+      LayoutBlockFlow {DIV} at (0,707) size 769x168 [bgcolor=#C0C0C0]
+        LayoutBlockFlow (anonymous) at (0,0) size 769x24
+          LayoutText {#text} at (0,4) size 602x15
+            text run at (0,4) width 602: "This first part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+        LayoutBlockFlow {P} at (0,48) size 769x72
+          LayoutText {#text} at (0,-2) size 752x75
+            text run at (0,-2) width 737: "This sentence should have a line-height of twice the DIV's font size, or 28px;"
+            text run at (0,22) width 752: "this should not cause extra spacing between the lines, since the line-height and"
+            text run at (0,46) width 359: "font-size should have the same value."
+        LayoutBlockFlow (anonymous) at (0,144) size 769x24
+          LayoutText {#text} at (0,4) size 615x15
+            text run at (0,4) width 615: "This second part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,887) size 769x24
+        LayoutText {#text} at (0,4) size 545x15
+          text run at (0,4) width 545: "This sentence should have a line-height of twice the font size, which should cause extra spacing between the lines."
+      LayoutBlockFlow {DIV} at (0,923) size 769x240 [bgcolor=#C0C0C0]
+        LayoutBlockFlow (anonymous) at (0,0) size 769x24
+          LayoutText {#text} at (0,4) size 602x15
+            text run at (0,4) width 602: "This first part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+        LayoutBlockFlow {P} at (0,48) size 769x144
+          LayoutText {#text} at (0,10) size 737x123
+            text run at (0,10) width 737: "This sentence should have a line-height of twice the font size, which is 200%"
+            text run at (0,58) width 732: "normal thanks to an inline style; this should cause extra spacing between the"
+            text run at (0,106) width 640: "lines, as the font-size will be 28px and the line-height will be 56px."
+        LayoutBlockFlow (anonymous) at (0,216) size 769x24
+          LayoutText {#text} at (0,4) size 615x15
+            text run at (0,4) width 615: "This second part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+      LayoutBlockFlow {P} at (0,1175) size 769x100
+        LayoutText {#text} at (0,17) size 756x65
+          text run at (0,17) width 599: "This paragraph should have a line-height of 50 pixels in the first section, which should cause extra spacing between the lines. "
+          text run at (599,17) width 157: "In the second section (within the"
+          text run at (0,67) width 183: "table) its line-height should be normal."
+      LayoutBlockFlow {P} at (0,1287) size 769x16
+        LayoutText {#text} at (0,0) size 515x15
+          text run at (0,0) width 515: "This sentence should have a normal line-height, because negative values are not permitted for this property."
+      LayoutBlockFlow {P} at (0,1315) size 769x150
+        LayoutInline {SPAN} at (0,0) size 767x90 [bgcolor=#C0C0C0]
+          LayoutText {#text} at (0,30) size 767x90
+            text run at (0,30) width 767: "This sentence should have a line-height of two centimeters, which should cause extra spacing between the lines. The text has a background color of silver, but no"
+            text run at (0,105) width 672: "padding or border. The background color has been set on an inline element and should therefore only cover the text, not the interline spacing."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutTable {TABLE} at (0,1477) size 769x1148 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x1146
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x1118
+            LayoutTableCell {TD} at (0,573) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x1118 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x48
+                LayoutText {#text} at (0,16) size 511x15
+                  text run at (0,16) width 511: "This sentence should have a line-height of half an inch, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,64) size 747x75
+                LayoutText {#text} at (0,30) size 533x15
+                  text run at (0,30) width 533: "This sentence should have a line-height of two centimeters, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,151) size 747x75
+                LayoutText {#text} at (0,30) size 547x15
+                  text run at (0,30) width 547: "This sentence should have a line-height of twenty millimeters, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,238) size 747x32
+                LayoutText {#text} at (0,8) size 549x15
+                  text run at (0,8) width 549: "This sentence should have a line-height of twenty-four points, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,282) size 747x32
+                LayoutText {#text} at (0,8) size 503x15
+                  text run at (0,8) width 503: "This sentence should have a line-height of two picas, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,326) size 747x24
+                LayoutText {#text} at (0,4) size 492x15
+                  text run at (0,4) width 492: "This sentence should have a line-height of two em, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,362) size 747x14
+                LayoutText {#text} at (0,-1) size 493x15
+                  text run at (0,-1) width 493: "This sentence should have a line-height of three ex, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,388) size 747x24
+                LayoutText {#text} at (0,4) size 545x15
+                  text run at (0,4) width 545: "This sentence should have a line-height of twice the font size, which should cause extra spacing between the lines."
+              LayoutBlockFlow {DIV} at (4,424) size 747x168 [bgcolor=#C0C0C0]
+                LayoutBlockFlow (anonymous) at (0,0) size 747x24
+                  LayoutText {#text} at (0,4) size 602x15
+                    text run at (0,4) width 602: "This first part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+                LayoutBlockFlow {P} at (0,48) size 747x72
+                  LayoutText {#text} at (0,-2) size 737x75
+                    text run at (0,-2) width 737: "This sentence should have a line-height of twice the DIV's font size, or 28px;"
+                    text run at (0,22) width 711: "this should not cause extra spacing between the lines, since the line-height"
+                    text run at (0,46) width 400: "and font-size should have the same value."
+                LayoutBlockFlow (anonymous) at (0,144) size 747x24
+                  LayoutText {#text} at (0,4) size 615x15
+                    text run at (0,4) width 615: "This second part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,604) size 747x24
+                LayoutText {#text} at (0,4) size 545x15
+                  text run at (0,4) width 545: "This sentence should have a line-height of twice the font size, which should cause extra spacing between the lines."
+              LayoutBlockFlow {DIV} at (4,640) size 747x240 [bgcolor=#C0C0C0]
+                LayoutBlockFlow (anonymous) at (0,0) size 747x24
+                  LayoutText {#text} at (0,4) size 602x15
+                    text run at (0,4) width 602: "This first part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+                LayoutBlockFlow {P} at (0,48) size 747x144
+                  LayoutText {#text} at (0,10) size 737x123
+                    text run at (0,10) width 737: "This sentence should have a line-height of twice the font size, which is 200%"
+                    text run at (0,58) width 732: "normal thanks to an inline style; this should cause extra spacing between the"
+                    text run at (0,106) width 640: "lines, as the font-size will be 28px and the line-height will be 56px."
+                LayoutBlockFlow (anonymous) at (0,216) size 747x24
+                  LayoutText {#text} at (0,4) size 615x15
+                    text run at (0,4) width 615: "This second part of the DIV should have a line-height of twice the font size, which should cause extra spacing between the lines."
+              LayoutBlockFlow {P} at (4,892) size 747x32
+                LayoutText {#text} at (0,0) size 738x31
+                  text run at (0,0) width 599: "This paragraph should have a line-height of 50 pixels in the first section, which should cause extra spacing between the lines. "
+                  text run at (599,0) width 139: "In the second section (within"
+                  text run at (0,16) width 201: "the table) its line-height should be normal."
+              LayoutBlockFlow {P} at (4,936) size 747x16
+                LayoutText {#text} at (0,0) size 515x15
+                  text run at (0,0) width 515: "This sentence should have a normal line-height, because negative values are not permitted for this property."
+              LayoutBlockFlow {P} at (4,964) size 747x150
+                LayoutInline {SPAN} at (0,0) size 733x90 [bgcolor=#C0C0C0]
+                  LayoutText {#text} at (0,30) size 733x90
+                    text run at (0,30) width 733: "This sentence should have a line-height of two centimeters, which should cause extra spacing between the lines. The text has a background color of silver,"
+                    text run at (0,105) width 706: "but no padding or border. The background color has been set on an inline element and should therefore only cover the text, not the interline spacing."
+                LayoutText {#text} at (0,0) size 0x0
+layer at (8,281) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,273) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/text_align-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/text_align-expected.txt
new file mode 100644
index 0000000..6943d4b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/text_align-expected.txt
@@ -0,0 +1,59 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x80
+        LayoutText {#text} at (0,0) size 224x80
+          text run at (0,0) width 192: ".one {text-align: left;}"
+          text run at (192,0) width 0: " "
+          text run at (0,16) width 200: ".two {text-align: right;}"
+          text run at (200,16) width 0: " "
+          text run at (0,32) width 224: ".three {text-align: center;}"
+          text run at (224,32) width 0: " "
+          text run at (0,48) width 224: ".four {text-align: justify;}"
+          text run at (224,48) width 0: " "
+          text run at (0,64) width 0: " "
+      LayoutBlockFlow {P} at (0,147) size 784x20
+        LayoutText {#text} at (0,0) size 221x19
+          text run at (0,0) width 221: "This sentence should be left-justified."
+      LayoutBlockFlow {P} at (0,183) size 784x20
+        LayoutText {#text} at (555,0) size 229x19
+          text run at (555,0) width 229: "This sentence should be right-justified."
+      LayoutBlockFlow {P} at (0,219) size 784x20
+        LayoutText {#text} at (290,0) size 204x19
+          text run at (290,0) width 204: "This sentence should be centered."
+      LayoutBlockFlow {P} at (0,255) size 784x40
+        LayoutText {#text} at (0,0) size 784x39
+          text run at (0,0) width 784: "This sentence should be fully justified, which means that the right and left margins of this paragraph should line up, no matter how"
+          text run at (0,20) width 722: "long the paragraph becomes; the exception, of course, is the last line, which should be left-justified in Western languages."
+      LayoutTable {TABLE} at (0,311) size 784x186 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x184
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x156
+            LayoutTableCell {TD} at (0,92) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x156 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x20
+                LayoutText {#text} at (0,0) size 221x19
+                  text run at (0,0) width 221: "This sentence should be left-justified."
+              LayoutBlockFlow {P} at (4,40) size 762x20
+                LayoutText {#text} at (533,0) size 229x19
+                  text run at (533,0) width 229: "This sentence should be right-justified."
+              LayoutBlockFlow {P} at (4,76) size 762x20
+                LayoutText {#text} at (279,0) size 204x19
+                  text run at (279,0) width 204: "This sentence should be centered."
+              LayoutBlockFlow {P} at (4,112) size 762x40
+                LayoutText {#text} at (0,0) size 762x39
+                  text run at (0,0) width 762: "This sentence should be fully justified, which means that the right and left margins of this paragraph should line up, no matter"
+                  text run at (0,20) width 752: "how long the paragraph becomes; the exception, of course, is the last line, which should be left-justified in Western languages."
+layer at (8,137) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,129) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/text_decoration-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/text_decoration-expected.txt
new file mode 100644
index 0000000..48475740
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/text_decoration-expected.txt
@@ -0,0 +1,199 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1205
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1205 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1205
+    LayoutBlockFlow {BODY} at (8,8) size 769x1189 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x128
+        LayoutText {#text} at (0,0) size 464x128
+          text run at (0,0) width 272: ".one {text-decoration: underline;}"
+          text run at (272,0) width 0: " "
+          text run at (0,16) width 264: ".two {text-decoration: overline;}"
+          text run at (264,16) width 0: " "
+          text run at (0,32) width 312: ".three {text-decoration: line-through;}"
+          text run at (312,32) width 0: " "
+          text run at (0,48) width 248: ".four {text-decoration: blink;}"
+          text run at (248,48) width 0: " "
+          text run at (0,64) width 248: "B.five {text-decoration: none;}"
+          text run at (248,64) width 0: " "
+          text run at (0,80) width 344: ".six {text-decoration: underline overline;}"
+          text run at (344,80) width 0: " "
+          text run at (0,96) width 464: ".seven {text-decoration: underline overline line-through;}"
+          text run at (464,96) width 0: " "
+          text run at (0,112) width 0: " "
+      LayoutBlockFlow {P} at (0,195) size 769x20
+        LayoutText {#text} at (0,0) size 213x19
+          text run at (0,0) width 213: "This sentence should be underlined."
+      LayoutBlockFlow {P} at (0,231) size 769x20
+        LayoutText {#text} at (0,0) size 206x19
+          text run at (0,0) width 206: "This sentence should be overlined."
+      LayoutBlockFlow {P} at (0,267) size 769x20
+        LayoutText {#text} at (0,0) size 316x19
+          text run at (0,0) width 316: "This sentence should have stricken text (linethrough)."
+      LayoutBlockFlow {P} at (0,303) size 769x20
+        LayoutText {#text} at (0,0) size 559x19
+          text run at (0,0) width 195: "This element should be blinking. "
+          text run at (195,0) width 364: "(It is not required, however, that UAs support this behavior.)"
+      LayoutBlockFlow {P} at (0,339) size 769x40
+        LayoutText {#text} at (0,0) size 478x19
+          text run at (0,0) width 273: "The text in this element should be underlined. "
+          text run at (273,0) width 205: "The boldfaced text in this element "
+        LayoutInline {B} at (0,0) size 168x19
+          LayoutText {#text} at (478,0) size 168x19
+            text run at (478,0) width 168: "should also be underlined"
+        LayoutText {#text} at (646,0) size 767x39
+          text run at (646,0) width 8: ". "
+          text run at (654,0) width 113: "This is because the"
+          text run at (0,20) width 600: "parent's underline will 'span' the boldfaced text, even if the inline element has no underline of its own."
+      LayoutBlockFlow {P} at (0,395) size 769x20
+        LayoutText {#text} at (0,0) size 298x19
+          text run at (0,0) width 298: "This sentence should be underlined and overlined."
+      LayoutBlockFlow {P} at (0,431) size 769x20
+        LayoutText {#text} at (0,0) size 357x19
+          text run at (0,0) width 357: "This sentence should be underlined, overlined, and stricken."
+      LayoutBlockFlow {P} at (0,467) size 769x0
+      LayoutBlockFlow {P} at (0,467) size 769x40
+        LayoutText {#text} at (0,0) size 739x39
+          text run at (0,0) width 739: "There should be nothing visible between this sentence and the one above (there is an empty paragraph element with class of"
+          text run at (0,20) width 43: "seven)."
+      LayoutBlockFlow {P} at (0,523) size 769x40
+        LayoutText {#text} at (0,0) size 603x19
+          text run at (0,0) width 603: "Text decorations only apply to the text of an element, so the image at the end of this sentence should "
+        LayoutInline {EM} at (0,0) size 22x19
+          LayoutText {#text} at (602,0) size 22x19
+            text run at (602,0) width 22: "not"
+        LayoutText {#text} at (623,0) size 86x19
+          text run at (623,0) width 86: " be overlined: "
+        LayoutImage {IMG} at (708.88,0) size 15x15
+        LayoutText {#text} at (723,0) size 755x39
+          text run at (723,0) width 9: ". "
+          text run at (731,0) width 24: "The"
+          text run at (0,20) width 726: "underline of the parent element should hold true beneath the image, however, since text-decoration 'spans' child elements."
+      LayoutBlockFlow {P} at (0,579) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 95x19
+          text run at (0,0) width 95: "The underlining "
+        LayoutInline {SPAN} at (0,0) size 90x19 [color=#0000FF]
+          LayoutText {#text} at (95,0) size 90x19
+            text run at (95,0) width 90: "in this sentence"
+        LayoutText {#text} at (185,0) size 223x19
+          text run at (185,0) width 223: " should be green, no matter what the "
+        LayoutInline {SPAN} at (0,0) size 105x19 [color=#000000]
+          LayoutText {#text} at (408,0) size 105x19
+            text run at (408,0) width 105: "text color may be"
+        LayoutText {#text} at (513,0) size 4x19
+          text run at (513,0) width 4: "."
+      LayoutBlockFlow {P} at (0,615) size 769x40
+        LayoutText {#text} at (0,0) size 106x19
+          text run at (0,0) width 106: "The colors of the "
+        LayoutInline {SPAN} at (0,0) size 64x19 [color=#800080]
+          LayoutText {#text} at (106,0) size 64x19
+            text run at (106,0) width 64: "underlining"
+        LayoutText {#text} at (170,0) size 18x19
+          text run at (170,0) width 18: " in "
+        LayoutInline {SPAN} at (0,0) size 76x19 [color=#0000FF]
+          LayoutText {#text} at (188,0) size 76x19
+            text run at (188,0) width 76: "this sentence"
+        LayoutText {#text} at (264,0) size 66x19
+          text run at (264,0) width 66: " should be "
+        LayoutInline {SPAN} at (0,0) size 202x19 [color=#808080]
+          LayoutText {#text} at (330,0) size 202x19
+            text run at (330,0) width 202: "the same as that of the parent text"
+        LayoutText {#text} at (532,0) size 760x39
+          text run at (532,0) width 228: " (that is, the first word in the sentence,"
+          text run at (0,20) width 143: "which should be black)."
+      LayoutTable {TABLE} at (0,671) size 769x518 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x516
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x488
+            LayoutTableCell {TD} at (0,258) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x488 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 213x19
+                  text run at (0,0) width 213: "This sentence should be underlined."
+              LayoutBlockFlow {P} at (4,40) size 747x20
+                LayoutText {#text} at (0,0) size 206x19
+                  text run at (0,0) width 206: "This sentence should be overlined."
+              LayoutBlockFlow {P} at (4,76) size 747x20
+                LayoutText {#text} at (0,0) size 316x19
+                  text run at (0,0) width 316: "This sentence should have stricken text (linethrough)."
+              LayoutBlockFlow {P} at (4,112) size 747x20
+                LayoutText {#text} at (0,0) size 559x19
+                  text run at (0,0) width 195: "This element should be blinking. "
+                  text run at (195,0) width 364: "(It is not required, however, that UAs support this behavior.)"
+              LayoutBlockFlow {P} at (4,148) size 747x40
+                LayoutText {#text} at (0,0) size 478x19
+                  text run at (0,0) width 273: "The text in this element should be underlined. "
+                  text run at (273,0) width 205: "The boldfaced text in this element "
+                LayoutInline {B} at (0,0) size 168x19
+                  LayoutText {#text} at (478,0) size 168x19
+                    text run at (478,0) width 168: "should also be underlined"
+                LayoutText {#text} at (646,0) size 745x39
+                  text run at (646,0) width 8: ". "
+                  text run at (654,0) width 91: "This is because"
+                  text run at (0,20) width 622: "the parent's underline will 'span' the boldfaced text, even if the inline element has no underline of its own."
+              LayoutBlockFlow {P} at (4,204) size 747x20
+                LayoutText {#text} at (0,0) size 298x19
+                  text run at (0,0) width 298: "This sentence should be underlined and overlined."
+              LayoutBlockFlow {P} at (4,240) size 747x20
+                LayoutText {#text} at (0,0) size 357x19
+                  text run at (0,0) width 357: "This sentence should be underlined, overlined, and stricken."
+              LayoutBlockFlow {P} at (4,276) size 747x0
+              LayoutBlockFlow {P} at (4,276) size 747x40
+                LayoutText {#text} at (0,0) size 739x39
+                  text run at (0,0) width 739: "There should be nothing visible between this sentence and the one above (there is an empty paragraph element with class of"
+                  text run at (0,20) width 43: "seven)."
+              LayoutBlockFlow {P} at (4,332) size 747x60
+                LayoutText {#text} at (0,0) size 603x19
+                  text run at (0,0) width 603: "Text decorations only apply to the text of an element, so the image at the end of this sentence should "
+                LayoutInline {EM} at (0,0) size 22x19
+                  LayoutText {#text} at (602,0) size 22x19
+                    text run at (602,0) width 22: "not"
+                LayoutText {#text} at (623,0) size 86x19
+                  text run at (623,0) width 86: " be overlined: "
+                LayoutImage {IMG} at (708.88,0) size 15x15
+                LayoutText {#text} at (723,0) size 728x59
+                  text run at (723,0) width 5: "."
+                  text run at (0,20) width 693: "The underline of the parent element should hold true beneath the image, however, since text-decoration 'spans' child"
+                  text run at (0,40) width 56: "elements."
+              LayoutBlockFlow {P} at (4,408) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 95x19
+                  text run at (0,0) width 95: "The underlining "
+                LayoutInline {SPAN} at (0,0) size 90x19 [color=#0000FF]
+                  LayoutText {#text} at (95,0) size 90x19
+                    text run at (95,0) width 90: "in this sentence"
+                LayoutText {#text} at (185,0) size 223x19
+                  text run at (185,0) width 223: " should be green, no matter what the "
+                LayoutInline {SPAN} at (0,0) size 105x19 [color=#000000]
+                  LayoutText {#text} at (408,0) size 105x19
+                    text run at (408,0) width 105: "text color may be"
+                LayoutText {#text} at (513,0) size 4x19
+                  text run at (513,0) width 4: "."
+              LayoutBlockFlow {P} at (4,444) size 747x40
+                LayoutText {#text} at (0,0) size 106x19
+                  text run at (0,0) width 106: "The colors of the "
+                LayoutInline {SPAN} at (0,0) size 64x19 [color=#800080]
+                  LayoutText {#text} at (106,0) size 64x19
+                    text run at (106,0) width 64: "underlining"
+                LayoutText {#text} at (170,0) size 18x19
+                  text run at (170,0) width 18: " in "
+                LayoutInline {SPAN} at (0,0) size 76x19 [color=#0000FF]
+                  LayoutText {#text} at (188,0) size 76x19
+                    text run at (188,0) width 76: "this sentence"
+                LayoutText {#text} at (264,0) size 66x19
+                  text run at (264,0) width 66: " should be "
+                LayoutInline {SPAN} at (0,0) size 202x19 [color=#808080]
+                  LayoutText {#text} at (330,0) size 202x19
+                    text run at (330,0) width 202: "the same as that of the parent text"
+                LayoutText {#text} at (532,0) size 700x39
+                  text run at (532,0) width 168: " (that is, the first word in the"
+                  text run at (0,20) width 203: "sentence, which should be black)."
+layer at (8,185) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,177) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/text_indent-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/text_indent-expected.txt
new file mode 100644
index 0000000..0a5fff13
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/text_indent-expected.txt
@@ -0,0 +1,137 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1329
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1329 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1329
+    LayoutBlockFlow {BODY} at (8,8) size 769x1313 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x176
+        LayoutText {#text} at (0,0) size 384x176
+          text run at (0,0) width 352: ".one {text-indent: 0.5in; background: aqua;}"
+          text run at (352,0) width 0: " "
+          text run at (0,16) width 336: ".two {text-indent: 2cm; background: aqua;}"
+          text run at (336,16) width 0: " "
+          text run at (0,32) width 360: ".three {text-indent: 20mm; background: aqua;}"
+          text run at (360,32) width 0: " "
+          text run at (0,48) width 352: ".four {text-indent: 24pt; background: aqua;}"
+          text run at (352,48) width 0: " "
+          text run at (0,64) width 344: ".five {text-indent: 2pc; background: aqua;}"
+          text run at (344,64) width 0: " "
+          text run at (0,80) width 336: ".six {text-indent: 2em; background: aqua;}"
+          text run at (336,80) width 0: " "
+          text run at (0,96) width 352: ".seven {text-indent: 2ex; background: aqua;}"
+          text run at (352,96) width 0: " "
+          text run at (0,112) width 352: ".eight {text-indent: 50%; background: aqua;}"
+          text run at (352,112) width 0: " "
+          text run at (0,128) width 352: ".nine {text-indent: 25px; background: aqua;}"
+          text run at (352,128) width 0: " "
+          text run at (0,144) width 384: "blockquote {text-indent: 50%; background: aqua;}"
+          text run at (384,144) width 0: " "
+          text run at (0,160) width 0: " "
+      LayoutBlockFlow {P} at (0,243) size 769x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (48,0) size 361x19
+          text run at (48,0) width 361: "The first line of this sentence should be indented half an inch."
+      LayoutBlockFlow {P} at (0,279) size 769x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (75,0) size 390x19
+          text run at (75,0) width 390: "The first line of this sentence should be indented two centimeters."
+      LayoutBlockFlow {P} at (0,315) size 769x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (75,0) size 402x19
+          text run at (75,0) width 402: "The first line of this sentence should be indented twenty millimeters."
+      LayoutBlockFlow {P} at (0,351) size 769x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (32,0) size 404x19
+          text run at (32,0) width 404: "The first line of this sentence should be indented twenty-four points."
+      LayoutBlockFlow {P} at (0,387) size 769x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (32,0) size 352x19
+          text run at (32,0) width 352: "The first line of this sentence should be indented two picas."
+      LayoutBlockFlow {P} at (0,423) size 769x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (32,0) size 339x19
+          text run at (32,0) width 339: "The first line of this sentence should be indented two em."
+      LayoutBlockFlow {P} at (0,459) size 769x20 [bgcolor=#00FFFF]
+        LayoutText {#text} at (14,0) size 335x19
+          text run at (14,0) width 335: "The first line of this sentence should be indented two ex."
+      LayoutBlockFlow {P} at (0,495) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (384,0) size 764x39
+          text run at (384,0) width 380: "The first line of this sentence should be indented halfway across"
+          text run at (0,20) width 483: "the page, but the rest of it should be flush with the normal left margin of the page."
+      LayoutBlockFlow {P} at (0,551) size 769x40 [bgcolor=#00FFFF]
+        LayoutText {#text} at (25,0) size 764x39
+          text run at (25,0) width 739: "The first line of this sentence should be indented 25 pixels, but the rest of it should be flush with the normal left margin of the"
+          text run at (0,20) width 33: "page."
+      LayoutBlockFlow {P} at (0,607) size 769x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (48,0) size 389x19
+          text run at (48,0) width 389: "Only the first line of this sentence should be indented half an inch,"
+        LayoutBR {BR} at (437,15) size 0x0
+        LayoutText {#text} at (0,20) size 246x19
+          text run at (0,20) width 246: "no matter where the lines might start, and"
+        LayoutBR {BR} at (246,35) size 0x0
+        LayoutInline {EM} at (0,0) size 201x19
+          LayoutText {#text} at (0,40) size 201x19
+            text run at (0,40) width 201: "regardless of any other markup"
+        LayoutText {#text} at (200,40) size 140x19
+          text run at (200,40) width 140: " which may be present."
+      LayoutBlockFlow {BLOCKQUOTE} at (40,683) size 689x60 [bgcolor=#00FFFF]
+        LayoutText {#text} at (384,0) size 614x59
+          text run at (384,0) width 210: "In the first half of the test page, this"
+          text run at (0,20) width 614: "BLOCKQUOTE element should have a text indent equal to 50% of the BODY element's width, since"
+          text run at (0,40) width 480: "BLOCKQUOTE is a child of BODY; in the second half, it is a child of TABLE."
+      LayoutTable {TABLE} at (0,759) size 769x554 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x552
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x524
+            LayoutTableCell {TD} at (0,276) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x524 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (48,0) size 361x19
+                  text run at (48,0) width 361: "The first line of this sentence should be indented half an inch."
+              LayoutBlockFlow {P} at (4,40) size 747x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (75,0) size 390x19
+                  text run at (75,0) width 390: "The first line of this sentence should be indented two centimeters."
+              LayoutBlockFlow {P} at (4,76) size 747x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (75,0) size 402x19
+                  text run at (75,0) width 402: "The first line of this sentence should be indented twenty millimeters."
+              LayoutBlockFlow {P} at (4,112) size 747x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (32,0) size 404x19
+                  text run at (32,0) width 404: "The first line of this sentence should be indented twenty-four points."
+              LayoutBlockFlow {P} at (4,148) size 747x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (32,0) size 352x19
+                  text run at (32,0) width 352: "The first line of this sentence should be indented two picas."
+              LayoutBlockFlow {P} at (4,184) size 747x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (32,0) size 339x19
+                  text run at (32,0) width 339: "The first line of this sentence should be indented two em."
+              LayoutBlockFlow {P} at (4,220) size 747x20 [bgcolor=#00FFFF]
+                LayoutText {#text} at (14,0) size 335x19
+                  text run at (14,0) width 335: "The first line of this sentence should be indented two ex."
+              LayoutBlockFlow {P} at (4,256) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (373,0) size 710x39
+                  text run at (373,0) width 337: "The first line of this sentence should be indented halfway"
+                  text run at (0,20) width 526: "across the page, but the rest of it should be flush with the normal left margin of the page."
+              LayoutBlockFlow {P} at (4,312) size 747x40 [bgcolor=#00FFFF]
+                LayoutText {#text} at (25,0) size 742x39
+                  text run at (25,0) width 717: "The first line of this sentence should be indented 25 pixels, but the rest of it should be flush with the normal left margin of"
+                  text run at (0,20) width 55: "the page."
+              LayoutBlockFlow {P} at (4,368) size 747x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (48,0) size 389x19
+                  text run at (48,0) width 389: "Only the first line of this sentence should be indented half an inch,"
+                LayoutBR {BR} at (437,15) size 0x0
+                LayoutText {#text} at (0,20) size 246x19
+                  text run at (0,20) width 246: "no matter where the lines might start, and"
+                LayoutBR {BR} at (246,35) size 0x0
+                LayoutInline {EM} at (0,0) size 201x19
+                  LayoutText {#text} at (0,40) size 201x19
+                    text run at (0,40) width 201: "regardless of any other markup"
+                LayoutText {#text} at (200,40) size 140x19
+                  text run at (200,40) width 140: " which may be present."
+              LayoutBlockFlow {BLOCKQUOTE} at (44,444) size 667x60 [bgcolor=#00FFFF]
+                LayoutText {#text} at (373,0) size 614x59
+                  text run at (373,0) width 210: "In the first half of the test page, this"
+                  text run at (0,20) width 614: "BLOCKQUOTE element should have a text indent equal to 50% of the BODY element's width, since"
+                  text run at (0,40) width 480: "BLOCKQUOTE is a child of BODY; in the second half, it is a child of TABLE."
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/text_transform-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/text_transform-expected.txt
new file mode 100644
index 0000000..a074378b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/text_transform-expected.txt
@@ -0,0 +1,105 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 745
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x745 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x745
+    LayoutBlockFlow {BODY} at (8,8) size 769x729 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x80
+        LayoutText {#text} at (0,0) size 272x80
+          text run at (0,0) width 224: ".ttn {text-transform: none;}"
+          text run at (224,0) width 0: " "
+          text run at (0,16) width 272: ".cap {text-transform: capitalize;}"
+          text run at (272,16) width 0: " "
+          text run at (0,32) width 264: ".upp {text-transform: uppercase;}"
+          text run at (264,32) width 0: " "
+          text run at (0,48) width 264: ".low {text-transform: lowercase;}"
+          text run at (264,48) width 0: " "
+          text run at (0,64) width 0: " "
+      LayoutBlockFlow {P} at (0,147) size 769x20
+        LayoutText {#text} at (0,0) size 740x19
+          text run at (0,0) width 740: "This page tests the 'text-transform' property of CSS1. This paragraph has no text transformation and should appear normal."
+      LayoutBlockFlow {P} at (0,183) size 769x60
+        LayoutText {#text} at (0,0) size 762x59
+          text run at (0,0) width 762: "This Paragraph Is Capitalized And The First Letter In Each Word Should Therefore Appear In Uppercase. Words That Are In"
+          text run at (0,20) width 744: "Uppercase In The Source (E.G. USA) Should Remain So. There Should Be A Capital Letter After A Non-Breaking Space"
+          text run at (0,40) width 420: "(&Nbsp;). Both Those Characters Appear In The Previous Sentence."
+      LayoutBlockFlow {P} at (0,259) size 769x40
+        LayoutText {#text} at (0,0) size 765x39
+          text run at (0,0) width 765: "Words with inline elements inside them should only capitalize the first letter of the word. Therefore, the last word in this sentence"
+          text run at (0,20) width 233: "should have one, and only one, capital "
+        LayoutInline {SPAN} at (0,0) size 36x19
+          LayoutText {#text} at (233,20) size 16x19
+            text run at (233,20) width 16: "Le"
+          LayoutInline {SPAN} at (0,0) size 8x19
+            LayoutText {#text} at (249,20) size 8x19
+              text run at (249,20) width 8: "tt"
+          LayoutText {#text} at (257,20) size 12x19
+            text run at (257,20) width 12: "er"
+        LayoutText {#text} at (269,20) size 4x19
+          text run at (269,20) width 4: "."
+      LayoutBlockFlow {P} at (0,315) size 769x60
+        LayoutText {#text} at (0,0) size 748x39
+          text run at (0,0) width 748: "THIS PARAGRAPH IS UPPERCASED AND SMALL CHARACTERS IN THE SOURCE (E.G. A AND \x{C5}) SHOULD"
+          text run at (0,20) width 272: "THEREFORE APPEAR IN UPPERCASE. "
+          text run at (272,20) width 269: "IN THE LAST SENTENCE, HOWEVER, "
+        LayoutInline {SPAN} at (0,0) size 742x39
+          LayoutText {#text} at (541,20) size 742x39
+            text run at (541,20) width 201: "the last eight words should not be"
+            text run at (0,40) width 62: "uppercase"
+        LayoutText {#text} at (62,40) size 4x19
+          text run at (62,40) width 4: "."
+      LayoutBlockFlow {P} at (0,391) size 769x20
+        LayoutText {#text} at (0,0) size 700x19
+          text run at (0,0) width 700: "this paragraph is lowercased and capital characters in the source (e.g. a and \x{E5}) should therefore appear in lowercase."
+      LayoutTable {TABLE} at (0,427) size 769x302 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x300
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x272
+            LayoutTableCell {TD} at (0,150) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x272 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 740x19
+                  text run at (0,0) width 740: "This page tests the 'text-transform' property of CSS1. This paragraph has no text transformation and should appear normal."
+              LayoutBlockFlow {P} at (4,40) size 747x60
+                LayoutText {#text} at (0,0) size 746x59
+                  text run at (0,0) width 746: "This Paragraph Is Capitalized And The First Letter In Each Word Should Therefore Appear In Uppercase. Words That Are"
+                  text run at (0,20) width 664: "In Uppercase In The Source (E.G. USA) Should Remain So. There Should Be A Capital Letter After A Non-"
+                  text run at (0,40) width 520: "Breaking Space (&Nbsp;). Both Those Characters Appear In The Previous Sentence."
+              LayoutBlockFlow {P} at (4,116) size 747x40
+                LayoutText {#text} at (0,0) size 709x39
+                  text run at (0,0) width 709: "Words with inline elements inside them should only capitalize the first letter of the word. Therefore, the last word in this"
+                  text run at (0,20) width 289: "sentence should have one, and only one, capital "
+                LayoutInline {SPAN} at (0,0) size 36x19
+                  LayoutText {#text} at (289,20) size 16x19
+                    text run at (289,20) width 16: "Le"
+                  LayoutInline {SPAN} at (0,0) size 8x19
+                    LayoutText {#text} at (305,20) size 8x19
+                      text run at (305,20) width 8: "tt"
+                  LayoutText {#text} at (313,20) size 12x19
+                    text run at (313,20) width 12: "er"
+                LayoutText {#text} at (325,20) size 4x19
+                  text run at (325,20) width 4: "."
+              LayoutBlockFlow {P} at (4,172) size 747x60
+                LayoutText {#text} at (0,0) size 681x39
+                  text run at (0,0) width 681: "THIS PARAGRAPH IS UPPERCASED AND SMALL CHARACTERS IN THE SOURCE (E.G. A AND \x{C5})"
+                  text run at (0,20) width 339: "SHOULD THEREFORE APPEAR IN UPPERCASE. "
+                  text run at (339,20) width 269: "IN THE LAST SENTENCE, HOWEVER, "
+                LayoutInline {SPAN} at (0,0) size 724x39
+                  LayoutText {#text} at (608,20) size 724x39
+                    text run at (608,20) width 116: "the last eight words"
+                    text run at (0,40) width 147: "should not be uppercase"
+                LayoutText {#text} at (147,40) size 4x19
+                  text run at (147,40) width 4: "."
+              LayoutBlockFlow {P} at (4,248) size 747x20
+                LayoutText {#text} at (0,0) size 700x19
+                  text run at (0,0) width 700: "this paragraph is lowercased and capital characters in the source (e.g. a and \x{E5}) should therefore appear in lowercase."
+layer at (8,137) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,129) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/vertical_align-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/vertical_align-expected.txt
new file mode 100644
index 0000000..8722c3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/vertical_align-expected.txt
@@ -0,0 +1,717 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 4501
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x4501 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x4501.31
+    LayoutBlockFlow {BODY} at (8,8) size 769x4485.31 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x288
+        LayoutText {#text} at (0,0) size 512x288
+          text run at (0,0) width 160: "P {font-size: 12pt;}"
+          text run at (160,0) width 0: " "
+          text run at (0,16) width 216: ".one {vertical-align: sub;}"
+          text run at (216,16) width 0: " "
+          text run at (0,32) width 232: ".two {vertical-align: super;}"
+          text run at (232,32) width 0: " "
+          text run at (0,48) width 368: ".three {vertical-align: top; font-size: 12pt;}"
+          text run at (368,48) width 0: " "
+          text run at (0,64) width 400: ".four {vertical-align: text-top; font-size: 12pt;}"
+          text run at (400,64) width 0: " "
+          text run at (0,80) width 384: ".five {vertical-align: middle; font-size: 12pt;}"
+          text run at (384,80) width 0: " "
+          text run at (0,96) width 376: ".six {vertical-align: bottom; font-size: 12pt;}"
+          text run at (376,96) width 0: " "
+          text run at (0,112) width 432: ".seven {vertical-align: text-bottom; font-size: 12pt;}"
+          text run at (432,112) width 0: " "
+          text run at (0,128) width 408: ".eight {vertical-align: baseline; font-size: 12pt;}"
+          text run at (408,128) width 0: " "
+          text run at (0,144) width 512: ".nine {vertical-align: 50%; font-size: 12px; line-height: 16px;}"
+          text run at (512,144) width 0: " "
+          text run at (0,160) width 0: " "
+          text run at (0,176) width 224: "P.example {font-size: 14pt;}"
+          text run at (224,176) width 0: " "
+          text run at (0,192) width 176: "BIG {font-size: 16pt;}"
+          text run at (176,192) width 0: " "
+          text run at (0,208) width 192: "SMALL {font-size: 12pt;}"
+          text run at (192,208) width 0: " "
+          text run at (0,224) width 304: ".ttopalign {vertical-align: text-top;}"
+          text run at (304,224) width 0: " "
+          text run at (0,240) width 256: ".topalign {vertical-align: top;}"
+          text run at (256,240) width 0: " "
+          text run at (0,256) width 280: ".midalign {vertical-align: middle;}"
+          text run at (280,256) width 0: " "
+          text run at (0,272) width 0: " "
+      LayoutBlockFlow {P} at (0,355) size 769x79
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutInline {SPAN} at (0,0) size 119x19
+          LayoutText {#text} at (15,39) size 119x19
+            text run at (15,39) width 119: "The first four words"
+        LayoutText {#text} at (134,35) size 767x43
+          text run at (134,35) width 270: " in this sentence should be subscript-aligned. "
+          text run at (404,35) width 363: "The font size of the superscripted text should not be different"
+          text run at (0,59) width 188: "from that of the parent element."
+      LayoutBlockFlow {P} at (0,450) size 769x75
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutInline {SPAN} at (0,0) size 119x19
+          LayoutText {#text} at (15,29) size 119x19
+            text run at (15,29) width 119: "The first four words"
+        LayoutText {#text} at (134,35) size 767x39
+          text run at (134,35) width 282: " in this sentence should be superscript-aligned. "
+          text run at (416,35) width 351: "The font size of the subscripted text should not be different"
+          text run at (0,55) width 188: "from that of the parent element."
+      LayoutBlockFlow {P} at (0,541) size 769x75
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutInline {SPAN} at (0,0) size 119x19
+          LayoutText {#text} at (15,0) size 119x19
+            text run at (15,0) width 119: "The first four words"
+        LayoutText {#text} at (134,35) size 757x39
+          text run at (134,35) width 623: " in this sentence should be top-aligned, which will align their tops with the top of the tallest element in the"
+          text run at (0,55) width 217: "line (probably the orange rectangle)."
+      LayoutBlockFlow {P} at (0,632) size 769x133
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,35) size 4x19
+          text run at (15,35) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 764x110
+          LayoutText {#text} at (0,0) size 0x0
+          LayoutInline {SPAN} at (0,0) size 119x19
+            LayoutText {#text} at (19,22) size 119x19
+              text run at (19,22) width 119: "The first four words"
+          LayoutText {#text} at (138,22) size 764x110
+            text run at (138,22) width 626: " in this sentence should be text-top-aligned, which"
+            text run at (0,59) width 733: "should align their tops with the top of the tallest text in the"
+            text run at (0,96) width 55: "line."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,781) size 769x70
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,13) size 756x56
+          text run at (15,13) width 741: " The image at the beginning of this sentence should be middle-aligned, which should align its middle with the point defined as"
+          text run at (0,50) width 227: "the text baseline plus half the x-height."
+      LayoutBlockFlow {P} at (0,867) size 769x124
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,13) size 4x19
+          text run at (15,13) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 716x123
+          LayoutText {#text} at (0,0) size 0x0
+          LayoutInline {SPAN} at (0,0) size 119x19
+            LayoutText {#text} at (19,30) size 119x19
+              text run at (19,30) width 119: "The first four words"
+          LayoutText {#text} at (138,0) size 716x123
+            text run at (138,0) width 532: " in this sentence should be 12pt in size and"
+            text run at (0,50) width 716: "bottom-aligned, which should align their bottom with the"
+            text run at (0,87) width 506: "bottom of the lowest element in the line."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,1007) size 769x161
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,13) size 4x19
+          text run at (15,13) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 718x160
+          LayoutText {#text} at (0,0) size 0x0
+          LayoutInline {SPAN} at (0,0) size 276x19
+            LayoutText {#text} at (19,16) size 276x19
+              text run at (19,16) width 276: "The first eight words (\"eight\" has a descender)"
+          LayoutText {#text} at (295,0) size 718x160
+            text run at (295,0) width 423: " in this sentence should be 12pt in"
+            text run at (0,50) width 675: "size and text-bottom-aligned, which should align their"
+            text run at (0,87) width 657: "bottom with the bottom of the lowest text (including"
+            text run at (0,124) width 288: "descenders) in the line."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,1184) size 769x133
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutText {#text} at (15,35) size 4x19
+          text run at (15,35) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 742x110
+          LayoutText {#text} at (0,0) size 0x0
+          LayoutInline {SPAN} at (0,0) size 119x19
+            LayoutText {#text} at (19,35) size 119x19
+              text run at (19,35) width 119: "The first four words"
+          LayoutText {#text} at (138,22) size 742x110
+            text run at (138,22) width 532: " in this sentence should be 12pt in size and"
+            text run at (0,59) width 742: "baseline-aligned, which should align their baseline with the"
+            text run at (0,96) width 511: "baseline of the rest of the text in the line."
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,1333) size 769x75
+        LayoutImage {IMG} at (0,0) size 15x50
+        LayoutInline {SPAN} at (0,0) size 98x15
+          LayoutText {#text} at (15,30) size 98x15
+            text run at (15,30) width 98: "The first four words"
+        LayoutText {#text} at (113,35) size 760x39
+          text run at (113,35) width 647: " in this sentence should have a font-size of 12px and a line-height of 16px; they are also 50%-aligned, which"
+          text run at (0,55) width 316: "should raise them 8px relative to the natural baseline."
+      LayoutBlockFlow {P} at (0,1424) size 769x40
+        LayoutText {#text} at (0,0) size 761x39
+          text run at (0,0) width 761: "In the following paragraph, all images should be aligned with the top of the 14-point text, which is identical to the first section of"
+          text run at (0,20) width 561: "text, whereas any size text should be aligned with the text baseline (which is the default value)."
+      LayoutBlockFlow {P} at (0,1482.66) size 769x328
+        LayoutText {#text} at (0,27) size 117x21
+          text run at (0,27) width 117: "This paragraph "
+        LayoutImage {IMG} at (117,27) size 9x30
+        LayoutText {#text} at (126,27) size 5x21
+          text run at (126,27) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 413x53
+          LayoutText {#text} at (131,1) size 413x53
+            text run at (131,1) width 413: "contains many images"
+        LayoutText {#text} at (544,27) size 5x21
+          text run at (544,27) width 5: " "
+        LayoutImage {IMG} at (549,27) size 15x50
+        LayoutText {#text} at (564,27) size 5x21
+          text run at (564,27) width 5: " "
+        LayoutInline {BIG} at (0,0) size 148x23
+          LayoutText {#text} at (569,25) size 148x23
+            text run at (569,25) width 148: "of varying heights"
+        LayoutText {#text} at (717,27) size 5x21
+          text run at (717,27) width 5: " "
+        LayoutImage {IMG} at (722,27) size 3x10
+        LayoutText {#text} at (725,27) size 5x21
+          text run at (725,27) width 5: " "
+        LayoutInline {SMALL} at (0,0) size 752x117
+          LayoutText {#text} at (730,28) size 752x117
+            text run at (730,28) width 22: "and"
+            text run at (0,126) width 39: "widths"
+        LayoutText {#text} at (39,125) size 5x21
+          text run at (39,125) width 5: " "
+        LayoutImage {IMG} at (44,125) size 6x20
+        LayoutText {#text} at (50,125) size 96x21
+          text run at (50,125) width 96: " all of which "
+        LayoutImage {IMG} at (146,125) size 19.50x65
+        LayoutText {#text} at (165,125) size 6x21
+          text run at (165,125) width 6: " "
+        LayoutInline {SPAN} at (0,0) size 255x42
+          LayoutText {#text} at (170,108) size 255x42
+            text run at (170,108) width 255: "should be aligned"
+        LayoutText {#text} at (424,125) size 6x21
+          text run at (424,125) width 6: " "
+        LayoutImage {IMG} at (429.50,125) size 10.50x35
+        LayoutText {#text} at (440,125) size 119x21
+          text run at (440,125) width 119: " with the top of "
+        LayoutImage {IMG} at (559,125) size 9x30
+        LayoutText {#text} at (568,125) size 5x21
+          text run at (568,125) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 685x146
+          LayoutText {#text} at (573,115) size 19x33
+            text run at (573,115) width 19: "a "
+          LayoutInline {SPAN} at (0,0) size 685x193
+            LayoutText {#text} at (592,78) size 685x193
+              text run at (592,78) width 93: "14-"
+              text run at (0,191) width 142: "point"
+          LayoutText {#text} at (142,228) size 142x33
+            text run at (142,228) width 142: " text element"
+        LayoutText {#text} at (284,238) size 5x21
+          text run at (284,238) width 5: " "
+        LayoutImage {IMG} at (289,238) size 15x50
+        LayoutText {#text} at (304,238) size 5x21
+          text run at (304,238) width 5: " "
+        LayoutInline {SMALL} at (0,0) size 176x19
+          LayoutText {#text} at (309,239) size 176x19
+            text run at (309,239) width 176: "regardless of the line in which"
+        LayoutText {#text} at (485,238) size 5x21
+          text run at (485,238) width 5: " "
+        LayoutImage {IMG} at (490,238) size 4.50x15
+        LayoutText {#text} at (494,238) size 6x21
+          text run at (494,238) width 6: " "
+        LayoutInline {BIG} at (0,0) size 152x23
+          LayoutText {#text} at (499,236) size 152x23
+            text run at (499,236) width 152: "the images appear."
+        LayoutText {#text} at (650,238) size 6x21
+          text run at (650,238) width 6: " "
+        LayoutImage {IMG} at (655.31,238) size 27x90
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,1829.31) size 769x40
+        LayoutText {#text} at (0,0) size 751x39
+          text run at (0,0) width 751: "In the following paragraph, all images should be aligned with the middle of the default text, whereas any text should be aligned"
+          text run at (0,20) width 292: "with the text baseline (which is the default value)."
+      LayoutBlockFlow {P} at (0,1885.31) size 769x233
+        LayoutText {#text} at (0,22) size 94x19
+          text run at (0,22) width 94: "This paragraph "
+        LayoutImage {IMG} at (94,19) size 9x30
+        LayoutText {#text} at (103,22) size 4x19
+          text run at (103,22) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 352x46
+          LayoutText {#text} at (107,1) size 352x46
+            text run at (107,1) width 352: "contains many images"
+        LayoutText {#text} at (459,22) size 4x19
+          text run at (459,22) width 4: " "
+        LayoutImage {IMG} at (463,9) size 15x50
+        LayoutText {#text} at (478,22) size 112x19
+          text run at (478,22) width 112: " of varying heights "
+        LayoutImage {IMG} at (590,29) size 3x10
+        LayoutText {#text} at (593,22) size 4x19
+          text run at (593,22) width 4: " "
+        LayoutInline {SMALL} at (0,0) size 65x19
+          LayoutText {#text} at (597,22) size 65x19
+            text run at (597,22) width 65: "and widths"
+        LayoutText {#text} at (662,22) size 4x19
+          text run at (662,22) width 4: " "
+        LayoutImage {IMG} at (666,24) size 6x20
+        LayoutText {#text} at (672,22) size 76x19
+          text run at (672,22) width 76: " all of which "
+        LayoutImage {IMG} at (748,1) size 19.50x65
+        LayoutText {#text} at (0,106) size 108x19
+          text run at (0,106) width 108: "should be aligned "
+        LayoutImage {IMG} at (108,100) size 10.50x35
+        LayoutText {#text} at (118,106) size 5x19
+          text run at (118,106) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 232x36
+          LayoutText {#text} at (122,93) size 232x36
+            text run at (122,93) width 232: "with the middle of"
+        LayoutText {#text} at (353,106) size 5x19
+          text run at (353,106) width 5: " "
+        LayoutImage {IMG} at (357.50,93) size 15x50
+        LayoutText {#text} at (372,106) size 5x19
+          text run at (372,106) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 346x27
+          LayoutText {#text} at (376,100) size 18x27
+            text run at (376,100) width 18: "a "
+          LayoutInline {SPAN} at (0,0) size 204x68
+            LayoutText {#text} at (393,67) size 204x68
+              text run at (393,67) width 204: "14-point"
+          LayoutText {#text} at (596,100) size 126x27
+            text run at (596,100) width 126: " text element"
+        LayoutText {#text} at (721,106) size 5x19
+          text run at (721,106) width 5: " "
+        LayoutImage {IMG} at (725.50,93) size 15x50
+        LayoutText {#text} at (0,0) size 0x0
+        LayoutInline {SMALL} at (0,0) size 176x19
+          LayoutText {#text} at (0,176) size 176x19
+            text run at (0,176) width 176: "regardless of the line in which"
+        LayoutText {#text} at (176,176) size 4x19
+          text run at (176,176) width 4: " "
+        LayoutImage {IMG} at (180,180) size 4.50x15
+        LayoutText {#text} at (184,176) size 5x19
+          text run at (184,176) width 5: " "
+        LayoutInline {BIG} at (0,0) size 152x23
+          LayoutText {#text} at (188,173) size 152x23
+            text run at (188,173) width 152: "the images appear."
+        LayoutText {#text} at (339,176) size 5x19
+          text run at (339,176) width 5: " "
+        LayoutImage {IMG} at (343.31,143) size 27x90
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutBlockFlow {P} at (0,2134.31) size 769x40
+        LayoutText {#text} at (0,0) size 753x39
+          text run at (0,0) width 753: "In the following paragraph, all elements should be aligned with the top of the tallest element on the line, whether that element is"
+          text run at (0,20) width 101: "an image or not. "
+          text run at (101,20) width 532: "Each fragment of text has been SPANned appropriately in order to cause this to happen."
+      LayoutBlockFlow {P} at (0,2190.31) size 769x203
+        LayoutInline {SPAN} at (0,0) size 90x19
+          LayoutText {#text} at (0,0) size 90x19
+            text run at (0,0) width 90: "This paragraph"
+        LayoutText {#text} at (90,0) size 4x19
+          text run at (90,0) width 4: " "
+        LayoutImage {IMG} at (94,0) size 3x10
+        LayoutText {#text} at (97,0) size 4x19
+          text run at (97,0) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 352x46
+          LayoutText {#text} at (101,1) size 352x46
+            text run at (101,1) width 352: "contains many images"
+        LayoutText {#text} at (453,0) size 4x19
+          text run at (453,0) width 4: " "
+        LayoutImage {IMG} at (457,0) size 3x10
+        LayoutText {#text} at (460,0) size 4x19
+          text run at (460,0) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 84x19
+          LayoutText {#text} at (464,0) size 84x19
+            text run at (464,0) width 84: "and some text"
+        LayoutText {#text} at (548,0) size 4x19
+          text run at (548,0) width 4: " "
+        LayoutImage {IMG} at (552,0) size 3x10
+        LayoutText {#text} at (555,0) size 4x19
+          text run at (555,0) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 104x19
+          LayoutText {#text} at (559,0) size 104x19
+            text run at (559,0) width 104: "of varying heights"
+        LayoutText {#text} at (663,0) size 4x19
+          text run at (663,0) width 4: " "
+        LayoutImage {IMG} at (667,0) size 3x10
+        LayoutText {#text} at (670,0) size 4x19
+          text run at (670,0) width 4: " "
+        LayoutInline {BIG} at (0,0) size 89x23
+          LayoutText {#text} at (674,0) size 89x23
+            text run at (674,0) width 89: "and widths"
+        LayoutText {#text} at (763,0) size 4x19
+          text run at (763,0) width 4: " "
+        LayoutImage {IMG} at (0,48) size 6x20
+        LayoutText {#text} at (6,48) size 4x19
+          text run at (6,48) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 68x19
+          LayoutText {#text} at (10,48) size 68x19
+            text run at (10,48) width 68: "all of which"
+        LayoutText {#text} at (78,48) size 4x19
+          text run at (78,48) width 4: " "
+        LayoutImage {IMG} at (82,48) size 19.50x65
+        LayoutText {#text} at (101,48) size 5x19
+          text run at (101,48) width 5: " "
+        LayoutInline {SPAN} at (0,0) size 105x19
+          LayoutText {#text} at (105,48) size 105x19
+            text run at (105,48) width 105: "should be aligned"
+        LayoutText {#text} at (209,48) size 5x19
+          text run at (209,48) width 5: " "
+        LayoutImage {IMG} at (213.50,48) size 10.50x35
+        LayoutText {#text} at (224,48) size 4x19
+          text run at (224,48) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 185x36
+          LayoutText {#text} at (228,48) size 185x36
+            text run at (228,48) width 185: "with the top of"
+        LayoutText {#text} at (413,48) size 4x19
+          text run at (413,48) width 4: " "
+        LayoutImage {IMG} at (417,48) size 15x50
+        LayoutText {#text} at (432,48) size 4x19
+          text run at (432,48) width 4: " "
+        LayoutInline {SPAN} at (0,0) size 120x19
+          LayoutText {#text} at (436,48) size 120x19
+            text run at (436,48) width 120: "the tallest element in"
+        LayoutText {#text} at (556,48) size 4x19
+          text run at (556,48) width 4: " "
+        LayoutImage {IMG} at (560,48) size 4.50x15
+        LayoutText {#text} at (564,48) size 5x19
+          text run at (564,48) width 5: " "
+        LayoutInline {BIG} at (0,0) size 720x88
+          LayoutText {#text} at (568,48) size 720x88
+            text run at (568,48) width 152: "whichever line the"
+            text run at (0,113) width 136: "elements appear."
+        LayoutText {#text} at (135,113) size 5x19
+          text run at (135,113) width 5: " "
+        LayoutImage {IMG} at (139.81,113) size 27x90
+        LayoutText {#text} at (0,0) size 0x0
+      LayoutTable {TABLE} at (0,2409.31) size 769x2076 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x2074
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x2046
+            LayoutTableCell {TD} at (0,1037) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x2046.31 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x79
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutInline {SPAN} at (0,0) size 119x19
+                  LayoutText {#text} at (15,39) size 119x19
+                    text run at (15,39) width 119: "The first four words"
+                LayoutText {#text} at (134,35) size 714x43
+                  text run at (134,35) width 270: " in this sentence should be subscript-aligned. "
+                  text run at (404,35) width 310: "The font size of the superscripted text should not be"
+                  text run at (0,59) width 241: "different from that of the parent element."
+              LayoutBlockFlow {P} at (4,99) size 747x75
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutInline {SPAN} at (0,0) size 119x19
+                  LayoutText {#text} at (15,29) size 119x19
+                    text run at (15,29) width 119: "The first four words"
+                LayoutText {#text} at (134,35) size 714x39
+                  text run at (134,35) width 282: " in this sentence should be superscript-aligned. "
+                  text run at (416,35) width 298: "The font size of the subscripted text should not be"
+                  text run at (0,55) width 241: "different from that of the parent element."
+              LayoutBlockFlow {P} at (4,190) size 747x75
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutInline {SPAN} at (0,0) size 119x19
+                  LayoutText {#text} at (15,0) size 119x19
+                    text run at (15,0) width 119: "The first four words"
+                LayoutText {#text} at (134,35) size 735x39
+                  text run at (134,35) width 601: " in this sentence should be top-aligned, which will align their tops with the top of the tallest element in"
+                  text run at (0,55) width 239: "the line (probably the orange rectangle)."
+              LayoutBlockFlow {P} at (4,281) size 747x133
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,35) size 4x19
+                  text run at (15,35) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 739x110
+                  LayoutText {#text} at (0,0) size 0x0
+                  LayoutInline {SPAN} at (0,0) size 119x19
+                    LayoutText {#text} at (19,22) size 119x19
+                      text run at (19,22) width 119: "The first four words"
+                  LayoutText {#text} at (138,22) size 739x110
+                    text run at (138,22) width 542: " in this sentence should be text-top-aligned,"
+                    text run at (0,59) width 739: "which should align their tops with the top of the tallest text"
+                    text run at (0,96) width 133: "in the line."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,430) size 747x70
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,13) size 739x56
+                  text run at (15,13) width 724: " The image at the beginning of this sentence should be middle-aligned, which should align its middle with the point defined"
+                  text run at (0,50) width 244: "as the text baseline plus half the x-height."
+              LayoutBlockFlow {P} at (4,516) size 747x124
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,13) size 4x19
+                  text run at (15,13) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 716x123
+                  LayoutText {#text} at (0,0) size 0x0
+                  LayoutInline {SPAN} at (0,0) size 119x19
+                    LayoutText {#text} at (19,30) size 119x19
+                      text run at (19,30) width 119: "The first four words"
+                  LayoutText {#text} at (138,0) size 716x123
+                    text run at (138,0) width 532: " in this sentence should be 12pt in size and"
+                    text run at (0,50) width 716: "bottom-aligned, which should align their bottom with the"
+                    text run at (0,87) width 506: "bottom of the lowest element in the line."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,656) size 747x161
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,13) size 4x19
+                  text run at (15,13) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 718x160
+                  LayoutText {#text} at (0,0) size 0x0
+                  LayoutInline {SPAN} at (0,0) size 276x19
+                    LayoutText {#text} at (19,16) size 276x19
+                      text run at (19,16) width 276: "The first eight words (\"eight\" has a descender)"
+                  LayoutText {#text} at (295,0) size 718x160
+                    text run at (295,0) width 423: " in this sentence should be 12pt in"
+                    text run at (0,50) width 675: "size and text-bottom-aligned, which should align their"
+                    text run at (0,87) width 657: "bottom with the bottom of the lowest text (including"
+                    text run at (0,124) width 288: "descenders) in the line."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,833) size 747x133
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutText {#text} at (15,35) size 4x19
+                  text run at (15,35) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 742x110
+                  LayoutText {#text} at (0,0) size 0x0
+                  LayoutInline {SPAN} at (0,0) size 119x19
+                    LayoutText {#text} at (19,35) size 119x19
+                      text run at (19,35) width 119: "The first four words"
+                  LayoutText {#text} at (138,22) size 742x110
+                    text run at (138,22) width 532: " in this sentence should be 12pt in size and"
+                    text run at (0,59) width 742: "baseline-aligned, which should align their baseline with the"
+                    text run at (0,96) width 511: "baseline of the rest of the text in the line."
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,982) size 747x75
+                LayoutImage {IMG} at (0,0) size 15x50
+                LayoutInline {SPAN} at (0,0) size 98x15
+                  LayoutText {#text} at (15,30) size 98x15
+                    text run at (15,30) width 98: "The first four words"
+                LayoutText {#text} at (113,35) size 721x39
+                  text run at (113,35) width 608: " in this sentence should have a font-size of 12px and a line-height of 16px; they are also 50%-aligned,"
+                  text run at (0,55) width 355: "which should raise them 8px relative to the natural baseline."
+              LayoutBlockFlow {P} at (4,1073) size 747x40
+                LayoutText {#text} at (0,0) size 745x39
+                  text run at (0,0) width 745: "In the following paragraph, all images should be aligned with the top of the 14-point text, which is identical to the first section"
+                  text run at (0,20) width 577: "of text, whereas any size text should be aligned with the text baseline (which is the default value)."
+              LayoutBlockFlow {P} at (4,1131.66) size 747x328
+                LayoutText {#text} at (0,27) size 117x21
+                  text run at (0,27) width 117: "This paragraph "
+                LayoutImage {IMG} at (117,27) size 9x30
+                LayoutText {#text} at (126,27) size 5x21
+                  text run at (126,27) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 413x53
+                  LayoutText {#text} at (131,1) size 413x53
+                    text run at (131,1) width 413: "contains many images"
+                LayoutText {#text} at (544,27) size 5x21
+                  text run at (544,27) width 5: " "
+                LayoutImage {IMG} at (549,27) size 15x50
+                LayoutText {#text} at (564,27) size 5x21
+                  text run at (564,27) width 5: " "
+                LayoutInline {BIG} at (0,0) size 148x23
+                  LayoutText {#text} at (569,25) size 148x23
+                    text run at (569,25) width 148: "of varying heights"
+                LayoutText {#text} at (717,27) size 5x21
+                  text run at (717,27) width 5: " "
+                LayoutImage {IMG} at (722,27) size 3x10
+                LayoutText {#text} at (0,0) size 0x0
+                LayoutInline {SMALL} at (0,0) size 65x19
+                  LayoutText {#text} at (0,126) size 65x19
+                    text run at (0,126) width 65: "and widths"
+                LayoutText {#text} at (65,125) size 5x21
+                  text run at (65,125) width 5: " "
+                LayoutImage {IMG} at (70,125) size 6x20
+                LayoutText {#text} at (76,125) size 96x21
+                  text run at (76,125) width 96: " all of which "
+                LayoutImage {IMG} at (172,125) size 19.50x65
+                LayoutText {#text} at (191,125) size 6x21
+                  text run at (191,125) width 6: " "
+                LayoutInline {SPAN} at (0,0) size 255x42
+                  LayoutText {#text} at (196,108) size 255x42
+                    text run at (196,108) width 255: "should be aligned"
+                LayoutText {#text} at (450,125) size 6x21
+                  text run at (450,125) width 6: " "
+                LayoutImage {IMG} at (455.50,125) size 10.50x35
+                LayoutText {#text} at (466,125) size 119x21
+                  text run at (466,125) width 119: " with the top of "
+                LayoutImage {IMG} at (585,125) size 9x30
+                LayoutText {#text} at (594,125) size 5x21
+                  text run at (594,125) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 711x146
+                  LayoutText {#text} at (599,115) size 19x33
+                    text run at (599,115) width 19: "a "
+                  LayoutInline {SPAN} at (0,0) size 711x193
+                    LayoutText {#text} at (618,78) size 711x193
+                      text run at (618,78) width 93: "14-"
+                      text run at (0,191) width 142: "point"
+                  LayoutText {#text} at (142,228) size 142x33
+                    text run at (142,228) width 142: " text element"
+                LayoutText {#text} at (284,238) size 5x21
+                  text run at (284,238) width 5: " "
+                LayoutImage {IMG} at (289,238) size 15x50
+                LayoutText {#text} at (304,238) size 5x21
+                  text run at (304,238) width 5: " "
+                LayoutInline {SMALL} at (0,0) size 176x19
+                  LayoutText {#text} at (309,239) size 176x19
+                    text run at (309,239) width 176: "regardless of the line in which"
+                LayoutText {#text} at (485,238) size 5x21
+                  text run at (485,238) width 5: " "
+                LayoutImage {IMG} at (490,238) size 4.50x15
+                LayoutText {#text} at (494,238) size 6x21
+                  text run at (494,238) width 6: " "
+                LayoutInline {BIG} at (0,0) size 152x23
+                  LayoutText {#text} at (499,236) size 152x23
+                    text run at (499,236) width 152: "the images appear."
+                LayoutText {#text} at (650,238) size 6x21
+                  text run at (650,238) width 6: " "
+                LayoutImage {IMG} at (655.31,238) size 27x90
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,1478.31) size 747x40
+                LayoutText {#text} at (0,0) size 705x39
+                  text run at (0,0) width 705: "In the following paragraph, all images should be aligned with the middle of the default text, whereas any text should be"
+                  text run at (0,20) width 338: "aligned with the text baseline (which is the default value)."
+              LayoutBlockFlow {P} at (4,1534.31) size 747x233
+                LayoutText {#text} at (0,22) size 94x19
+                  text run at (0,22) width 94: "This paragraph "
+                LayoutImage {IMG} at (94,19) size 9x30
+                LayoutText {#text} at (103,22) size 4x19
+                  text run at (103,22) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 352x46
+                  LayoutText {#text} at (107,1) size 352x46
+                    text run at (107,1) width 352: "contains many images"
+                LayoutText {#text} at (459,22) size 4x19
+                  text run at (459,22) width 4: " "
+                LayoutImage {IMG} at (463,9) size 15x50
+                LayoutText {#text} at (478,22) size 112x19
+                  text run at (478,22) width 112: " of varying heights "
+                LayoutImage {IMG} at (590,29) size 3x10
+                LayoutText {#text} at (593,22) size 4x19
+                  text run at (593,22) width 4: " "
+                LayoutInline {SMALL} at (0,0) size 65x19
+                  LayoutText {#text} at (597,22) size 65x19
+                    text run at (597,22) width 65: "and widths"
+                LayoutText {#text} at (662,22) size 4x19
+                  text run at (662,22) width 4: " "
+                LayoutImage {IMG} at (666,24) size 6x20
+                LayoutText {#text} at (672,22) size 72x19
+                  text run at (672,22) width 72: " all of which"
+                LayoutImage {IMG} at (0,78) size 19.50x65
+                LayoutText {#text} at (19,99) size 113x19
+                  text run at (19,99) width 113: " should be aligned "
+                LayoutImage {IMG} at (131.50,93) size 10.50x35
+                LayoutText {#text} at (142,99) size 4x19
+                  text run at (142,99) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 231x36
+                  LayoutText {#text} at (146,86) size 231x36
+                    text run at (146,86) width 231: "with the middle of"
+                LayoutText {#text} at (377,99) size 4x19
+                  text run at (377,99) width 4: " "
+                LayoutImage {IMG} at (381,86) size 15x50
+                LayoutText {#text} at (396,99) size 4x19
+                  text run at (396,99) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 345x27
+                  LayoutText {#text} at (400,93) size 17x27
+                    text run at (400,93) width 17: "a "
+                  LayoutInline {SPAN} at (0,0) size 203x68
+                    LayoutText {#text} at (417,60) size 203x68
+                      text run at (417,60) width 203: "14-point"
+                  LayoutText {#text} at (620,93) size 125x27
+                    text run at (620,93) width 125: " text element"
+                LayoutText {#text} at (0,0) size 0x0
+                LayoutImage {IMG} at (0,163) size 15x50
+                LayoutText {#text} at (15,176) size 4x19
+                  text run at (15,176) width 4: " "
+                LayoutInline {SMALL} at (0,0) size 176x19
+                  LayoutText {#text} at (19,176) size 176x19
+                    text run at (19,176) width 176: "regardless of the line in which"
+                LayoutText {#text} at (195,176) size 4x19
+                  text run at (195,176) width 4: " "
+                LayoutImage {IMG} at (199,180) size 4.50x15
+                LayoutText {#text} at (203,176) size 5x19
+                  text run at (203,176) width 5: " "
+                LayoutInline {BIG} at (0,0) size 152x23
+                  LayoutText {#text} at (207,173) size 152x23
+                    text run at (207,173) width 152: "the images appear."
+                LayoutText {#text} at (358,176) size 5x19
+                  text run at (358,176) width 5: " "
+                LayoutImage {IMG} at (362.31,143) size 27x90
+                LayoutText {#text} at (0,0) size 0x0
+              LayoutBlockFlow {P} at (4,1783.31) size 747x40
+                LayoutText {#text} at (0,0) size 740x39
+                  text run at (0,0) width 740: "In the following paragraph, all elements should be aligned with the top of the tallest element on the line, whether that element"
+                  text run at (0,20) width 114: "is an image or not. "
+                  text run at (114,20) width 532: "Each fragment of text has been SPANned appropriately in order to cause this to happen."
+              LayoutBlockFlow {P} at (4,1839.31) size 747x203
+                LayoutInline {SPAN} at (0,0) size 90x19
+                  LayoutText {#text} at (0,0) size 90x19
+                    text run at (0,0) width 90: "This paragraph"
+                LayoutText {#text} at (90,0) size 4x19
+                  text run at (90,0) width 4: " "
+                LayoutImage {IMG} at (94,0) size 3x10
+                LayoutText {#text} at (97,0) size 4x19
+                  text run at (97,0) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 352x46
+                  LayoutText {#text} at (101,1) size 352x46
+                    text run at (101,1) width 352: "contains many images"
+                LayoutText {#text} at (453,0) size 4x19
+                  text run at (453,0) width 4: " "
+                LayoutImage {IMG} at (457,0) size 3x10
+                LayoutText {#text} at (460,0) size 4x19
+                  text run at (460,0) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 84x19
+                  LayoutText {#text} at (464,0) size 84x19
+                    text run at (464,0) width 84: "and some text"
+                LayoutText {#text} at (548,0) size 4x19
+                  text run at (548,0) width 4: " "
+                LayoutImage {IMG} at (552,0) size 3x10
+                LayoutText {#text} at (555,0) size 4x19
+                  text run at (555,0) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 104x19
+                  LayoutText {#text} at (559,0) size 104x19
+                    text run at (559,0) width 104: "of varying heights"
+                LayoutText {#text} at (663,0) size 4x19
+                  text run at (663,0) width 4: " "
+                LayoutImage {IMG} at (667,0) size 3x10
+                LayoutText {#text} at (670,0) size 4x19
+                  text run at (670,0) width 4: " "
+                LayoutInline {BIG} at (0,0) size 703x71
+                  LayoutText {#text} at (674,0) size 703x71
+                    text run at (674,0) width 29: "and"
+                    text run at (0,48) width 55: "widths"
+                LayoutText {#text} at (55,48) size 4x19
+                  text run at (55,48) width 4: " "
+                LayoutImage {IMG} at (59,48) size 6x20
+                LayoutText {#text} at (65,48) size 4x19
+                  text run at (65,48) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 68x19
+                  LayoutText {#text} at (69,48) size 68x19
+                    text run at (69,48) width 68: "all of which"
+                LayoutText {#text} at (137,48) size 4x19
+                  text run at (137,48) width 4: " "
+                LayoutImage {IMG} at (141,48) size 19.50x65
+                LayoutText {#text} at (160,48) size 5x19
+                  text run at (160,48) width 5: " "
+                LayoutInline {SPAN} at (0,0) size 105x19
+                  LayoutText {#text} at (164,48) size 105x19
+                    text run at (164,48) width 105: "should be aligned"
+                LayoutText {#text} at (268,48) size 5x19
+                  text run at (268,48) width 5: " "
+                LayoutImage {IMG} at (272.50,48) size 10.50x35
+                LayoutText {#text} at (283,48) size 4x19
+                  text run at (283,48) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 185x36
+                  LayoutText {#text} at (287,48) size 185x36
+                    text run at (287,48) width 185: "with the top of"
+                LayoutText {#text} at (472,48) size 4x19
+                  text run at (472,48) width 4: " "
+                LayoutImage {IMG} at (476,48) size 15x50
+                LayoutText {#text} at (491,48) size 4x19
+                  text run at (491,48) width 4: " "
+                LayoutInline {SPAN} at (0,0) size 120x19
+                  LayoutText {#text} at (495,48) size 120x19
+                    text run at (495,48) width 120: "the tallest element in"
+                LayoutText {#text} at (615,48) size 4x19
+                  text run at (615,48) width 4: " "
+                LayoutImage {IMG} at (619,48) size 4.50x15
+                LayoutText {#text} at (623,48) size 5x19
+                  text run at (623,48) width 5: " "
+                LayoutInline {BIG} at (0,0) size 713x88
+                  LayoutText {#text} at (627,48) size 713x88
+                    text run at (627,48) width 86: "whichever"
+                    text run at (0,113) width 202: "line the elements appear."
+                LayoutText {#text} at (201,113) size 5x19
+                  text run at (201,113) width 5: " "
+                LayoutImage {IMG} at (205.81,113) size 27x90
+                LayoutText {#text} at (0,0) size 0x0
+layer at (8,345) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,337) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/word_spacing-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/word_spacing-expected.txt
new file mode 100644
index 0000000..de9319d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/text_properties/word_spacing-expected.txt
@@ -0,0 +1,118 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1057
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1057 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1057
+    LayoutBlockFlow {BODY} at (8,8) size 769x1041 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x192
+        LayoutText {#text} at (0,0) size 248x192
+          text run at (0,0) width 216: ".one {word-spacing: 0.3in;}"
+          text run at (216,0) width 0: " "
+          text run at (0,16) width 216: ".two {word-spacing: 0.5cm;}"
+          text run at (216,16) width 0: " "
+          text run at (0,32) width 216: ".three {word-spacing: 5mm;}"
+          text run at (216,32) width 0: " "
+          text run at (0,48) width 208: ".four {word-spacing: 3pt;}"
+          text run at (208,48) width 0: " "
+          text run at (0,64) width 232: ".five {word-spacing: 0.25pc;}"
+          text run at (232,64) width 0: " "
+          text run at (0,80) width 200: ".six {word-spacing: 1em;}"
+          text run at (200,80) width 0: " "
+          text run at (0,96) width 216: ".seven {word-spacing: 1ex;}"
+          text run at (216,96) width 0: " "
+          text run at (0,112) width 216: ".eight {word-spacing: 5px;}"
+          text run at (216,112) width 0: " "
+          text run at (0,128) width 232: ".nine {word-spacing: normal;}"
+          text run at (232,128) width 0: " "
+          text run at (0,144) width 208: ".ten {word-spacing: 300%;}"
+          text run at (208,144) width 0: " "
+          text run at (0,160) width 248: ".eleven {word-spacing: -0.2em;}"
+          text run at (248,160) width 0: " "
+          text run at (0,176) width 0: " "
+      LayoutBlockFlow {P} at (0,259) size 769x20
+        LayoutText {#text} at (0,0) size 689x19
+          text run at (0,0) width 689: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,295) size 769x20
+        LayoutText {#text} at (0,0) size 590x19
+          text run at (0,0) width 590: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,331) size 769x20
+        LayoutText {#text} at (0,0) size 590x19
+          text run at (0,0) width 590: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,367) size 769x20
+        LayoutText {#text} at (0,0) size 441x19
+          text run at (0,0) width 441: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,403) size 769x20
+        LayoutText {#text} at (0,0) size 441x19
+          text run at (0,0) width 441: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,439) size 769x20
+        LayoutText {#text} at (0,0) size 561x19
+          text run at (0,0) width 561: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,475) size 769x20
+        LayoutText {#text} at (0,0) size 471x19
+          text run at (0,0) width 471: "This words in this sentence should have extra space between them."
+      LayoutBlockFlow {P} at (0,511) size 769x40
+        LayoutText {#text} at (0,0) size 729x19
+          text run at (0,0) width 729: "This words in this sentence should have extra space between them, but the last few words in the sentence "
+        LayoutInline {SPAN} at (0,0) size 768x39
+          LayoutText {#text} at (729,0) size 768x39
+            text run at (729,0) width 39: "should"
+            text run at (0,20) width 122: "have normal spacing"
+        LayoutText {#text} at (122,20) size 4x19
+          text run at (122,20) width 4: "."
+      LayoutBlockFlow {P} at (0,567) size 769x20
+        LayoutText {#text} at (0,0) size 636x19
+          text run at (0,0) width 636: "This sentence should have normal word-spacing, since percentage values are not allowed on this property."
+      LayoutBlockFlow {P} at (0,603) size 769x20
+        LayoutText {#text} at (0,0) size 667x19
+          text run at (0,0) width 667: "This words in this sentence should have reduced space between them, since negative values are allowed on this property."
+      LayoutTable {TABLE} at (0,639) size 769x402 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x400
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x372
+            LayoutTableCell {TD} at (0,200) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x372 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 689x19
+                  text run at (0,0) width 689: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,40) size 747x20
+                LayoutText {#text} at (0,0) size 590x19
+                  text run at (0,0) width 590: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,76) size 747x20
+                LayoutText {#text} at (0,0) size 590x19
+                  text run at (0,0) width 590: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,112) size 747x20
+                LayoutText {#text} at (0,0) size 441x19
+                  text run at (0,0) width 441: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,148) size 747x20
+                LayoutText {#text} at (0,0) size 441x19
+                  text run at (0,0) width 441: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,184) size 747x20
+                LayoutText {#text} at (0,0) size 561x19
+                  text run at (0,0) width 561: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,220) size 747x20
+                LayoutText {#text} at (0,0) size 471x19
+                  text run at (0,0) width 471: "This words in this sentence should have extra space between them."
+              LayoutBlockFlow {P} at (4,256) size 747x40
+                LayoutText {#text} at (0,0) size 720x19
+                  text run at (0,0) width 720: "This words in this sentence should have extra space between them, but the last few words in the sentence"
+                LayoutInline {SPAN} at (0,0) size 165x19
+                  LayoutText {#text} at (0,20) size 165x19
+                    text run at (0,20) width 165: "should have normal spacing"
+                LayoutText {#text} at (165,20) size 4x19
+                  text run at (165,20) width 4: "."
+              LayoutBlockFlow {P} at (4,312) size 747x20
+                LayoutText {#text} at (0,0) size 636x19
+                  text run at (0,0) width 636: "This sentence should have normal word-spacing, since percentage values are not allowed on this property."
+              LayoutBlockFlow {P} at (4,348) size 747x20
+                LayoutText {#text} at (0,0) size 667x19
+                  text run at (0,0) width 667: "This words in this sentence should have reduced space between them, since negative values are allowed on this property."
+layer at (8,249) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,241) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/units/color_units-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/units/color_units-expected.txt
new file mode 100644
index 0000000..6d7f0f2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/units/color_units-expected.txt
@@ -0,0 +1,236 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1745
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1745 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1745
+    LayoutBlockFlow {BODY} at (8,8) size 769x1729 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x192
+        LayoutText {#text} at (0,0) size 288x192
+          text run at (0,0) width 160: "BODY {color: black;}"
+          text run at (160,0) width 0: " "
+          text run at (0,16) width 152: ".one {color: #080;}"
+          text run at (152,16) width 0: " "
+          text run at (0,32) width 176: ".two {color: #008000;}"
+          text run at (176,32) width 0: " "
+          text run at (0,48) width 232: ".three {color: rgb(0,128,0);}"
+          text run at (232,48) width 0: " "
+          text run at (0,64) width 240: ".four {color: rgb(0%,50%,0%);}"
+          text run at (240,64) width 0: " "
+          text run at (0,80) width 288: ".five {color: rgb(0.0%,50.0%,0.0%);}"
+          text run at (288,80) width 0: " "
+          text run at (0,96) width 160: ".six {color: green;}"
+          text run at (160,96) width 0: " "
+          text run at (0,112) width 232: ".seven {color: invalidValue;}"
+          text run at (232,112) width 0: " "
+          text run at (0,128) width 256: ".eight {color: rgb(0,128,1280);}"
+          text run at (256,128) width 0: " "
+          text run at (0,144) width 240: ".nine {color: rgb(0,128,255);}"
+          text run at (240,144) width 0: " "
+          text run at (0,160) width 264: ".ten {color: rgb(50%,-500%,60%);}"
+          text run at (264,160) width 0: " "
+          text run at (0,176) width 264: ".eleven {color: rgb(50%,0%,60%);}"
+          text run at (264,176) width 0: " "
+      LayoutBlockFlow {P} at (0,259) size 769x20
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be black."
+      LayoutBlockFlow {P} at (0,295) size 769x20 [color=#008800]
+        LayoutText {#text} at (0,0) size 473x19
+          text run at (0,0) width 473: "This sentence should be green, although slightly different from those that follow."
+      LayoutBlockFlow {P} at (0,331) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,367) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,403) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,439) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,475) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be green."
+      LayoutBlockFlow {P} at (0,511) size 769x20
+        LayoutText {#text} at (0,0) size 387x19
+          text run at (0,0) width 387: "This sentence should be black, because the value given for class "
+        LayoutInline {CODE} at (0,0) size 48x16
+          LayoutText {#text} at (387,3) size 48x16
+            text run at (387,3) width 48: ".seven"
+        LayoutText {#text} at (435,0) size 59x19
+          text run at (435,0) width 59: " is invalid."
+      LayoutBlockFlow {P} at (0,547) size 769x20 [color=#0080FF]
+        LayoutText {#text} at (0,0) size 757x19
+          text run at (0,0) width 757: "This sentence should be a shade of blue-green which, on a typical RGB computer display, exactly matches the next paragraph."
+      LayoutBlockFlow {P} at (0,583) size 769x40 [color=#0080FF]
+        LayoutText {#text} at (0,0) size 714x39
+          text run at (0,0) width 714: "This sentence should be a shade of blue-green which, on a typical RGB computer display, exactly matches the previous"
+          text run at (0,20) width 65: "paragraph."
+      LayoutBlockFlow {P} at (0,639) size 769x20 [color=#800099]
+        LayoutText {#text} at (0,0) size 731x19
+          text run at (0,0) width 731: "This sentence should be a shade of purple which, on a typical RGB computer display, exactly matches the next paragraph."
+      LayoutBlockFlow {P} at (0,675) size 769x20 [color=#800099]
+        LayoutText {#text} at (0,0) size 757x19
+          text run at (0,0) width 757: "This sentence should be a shade of purple which, on a typical RGB computer display, exactly matches the previous paragraph."
+      LayoutBlockFlow {P} at (0,711) size 769x20
+        LayoutText {#text} at (0,0) size 184x19
+          text run at (0,0) width 184: "This sentence should be black."
+      LayoutBlockFlow {P} at (0,747) size 769x20 [color=#008800]
+        LayoutText {#text} at (0,0) size 376x19
+          text run at (0,0) width 376: "This sentence should be a slightly different green, and used the "
+        LayoutInline {TT} at (0,0) size 41x16
+          LayoutText {#text} at (375,3) size 41x16
+            text run at (375,3) width 41: "style"
+        LayoutText {#text} at (415,0) size 58x19
+          text run at (415,0) width 58: " attribute."
+      LayoutBlockFlow {P} at (0,783) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 268x19
+          text run at (0,0) width 268: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x16
+          LayoutText {#text} at (268,3) size 40x16
+            text run at (268,3) width 40: "style"
+        LayoutText {#text} at (308,0) size 57x19
+          text run at (308,0) width 57: " attribute."
+      LayoutBlockFlow {P} at (0,819) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 268x19
+          text run at (0,0) width 268: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x16
+          LayoutText {#text} at (268,3) size 40x16
+            text run at (268,3) width 40: "style"
+        LayoutText {#text} at (308,0) size 57x19
+          text run at (308,0) width 57: " attribute."
+      LayoutBlockFlow {P} at (0,855) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 268x19
+          text run at (0,0) width 268: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x16
+          LayoutText {#text} at (268,3) size 40x16
+            text run at (268,3) width 40: "style"
+        LayoutText {#text} at (308,0) size 57x19
+          text run at (308,0) width 57: " attribute."
+      LayoutBlockFlow {P} at (0,891) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 268x19
+          text run at (0,0) width 268: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x16
+          LayoutText {#text} at (268,3) size 40x16
+            text run at (268,3) width 40: "style"
+        LayoutText {#text} at (308,0) size 57x19
+          text run at (308,0) width 57: " attribute."
+      LayoutBlockFlow {P} at (0,927) size 769x20 [color=#008000]
+        LayoutText {#text} at (0,0) size 268x19
+          text run at (0,0) width 268: "This sentence should be green, and used the "
+        LayoutInline {TT} at (0,0) size 40x16
+          LayoutText {#text} at (268,3) size 40x16
+            text run at (268,3) width 40: "style"
+        LayoutText {#text} at (308,0) size 57x19
+          text run at (308,0) width 57: " attribute."
+      LayoutTable {TABLE} at (0,963) size 769x766 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x764
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x736
+            LayoutTableCell {TD} at (0,382) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x736 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x20
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be black."
+              LayoutBlockFlow {P} at (4,40) size 747x20 [color=#008800]
+                LayoutText {#text} at (0,0) size 473x19
+                  text run at (0,0) width 473: "This sentence should be green, although slightly different from those that follow."
+              LayoutBlockFlow {P} at (4,76) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,112) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,148) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,184) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,220) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be green."
+              LayoutBlockFlow {P} at (4,256) size 747x20
+                LayoutText {#text} at (0,0) size 387x19
+                  text run at (0,0) width 387: "This sentence should be black, because the value given for class "
+                LayoutInline {CODE} at (0,0) size 48x16
+                  LayoutText {#text} at (387,3) size 48x16
+                    text run at (387,3) width 48: ".seven"
+                LayoutText {#text} at (435,0) size 59x19
+                  text run at (435,0) width 59: " is invalid."
+              LayoutBlockFlow {P} at (4,292) size 747x40 [color=#0080FF]
+                LayoutText {#text} at (0,0) size 688x39
+                  text run at (0,0) width 688: "This sentence should be a shade of blue-green which, on a typical RGB computer display, exactly matches the next"
+                  text run at (0,20) width 65: "paragraph."
+              LayoutBlockFlow {P} at (4,348) size 747x40 [color=#0080FF]
+                LayoutText {#text} at (0,0) size 714x39
+                  text run at (0,0) width 714: "This sentence should be a shade of blue-green which, on a typical RGB computer display, exactly matches the previous"
+                  text run at (0,20) width 65: "paragraph."
+              LayoutBlockFlow {P} at (4,404) size 747x20 [color=#800099]
+                LayoutText {#text} at (0,0) size 731x19
+                  text run at (0,0) width 731: "This sentence should be a shade of purple which, on a typical RGB computer display, exactly matches the next paragraph."
+              LayoutBlockFlow {P} at (4,440) size 747x40 [color=#800099]
+                LayoutText {#text} at (0,0) size 688x39
+                  text run at (0,0) width 688: "This sentence should be a shade of purple which, on a typical RGB computer display, exactly matches the previous"
+                  text run at (0,20) width 65: "paragraph."
+              LayoutBlockFlow {P} at (4,496) size 747x20
+                LayoutText {#text} at (0,0) size 184x19
+                  text run at (0,0) width 184: "This sentence should be black."
+              LayoutBlockFlow {P} at (4,532) size 747x20 [color=#008800]
+                LayoutText {#text} at (0,0) size 376x19
+                  text run at (0,0) width 376: "This sentence should be a slightly different green, and used the "
+                LayoutInline {TT} at (0,0) size 41x16
+                  LayoutText {#text} at (375,3) size 41x16
+                    text run at (375,3) width 41: "style"
+                LayoutText {#text} at (415,0) size 58x19
+                  text run at (415,0) width 58: " attribute."
+              LayoutBlockFlow {P} at (4,568) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 268x19
+                  text run at (0,0) width 268: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x16
+                  LayoutText {#text} at (268,3) size 40x16
+                    text run at (268,3) width 40: "style"
+                LayoutText {#text} at (308,0) size 57x19
+                  text run at (308,0) width 57: " attribute."
+              LayoutBlockFlow {P} at (4,604) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 268x19
+                  text run at (0,0) width 268: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x16
+                  LayoutText {#text} at (268,3) size 40x16
+                    text run at (268,3) width 40: "style"
+                LayoutText {#text} at (308,0) size 57x19
+                  text run at (308,0) width 57: " attribute."
+              LayoutBlockFlow {P} at (4,640) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 268x19
+                  text run at (0,0) width 268: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x16
+                  LayoutText {#text} at (268,3) size 40x16
+                    text run at (268,3) width 40: "style"
+                LayoutText {#text} at (308,0) size 57x19
+                  text run at (308,0) width 57: " attribute."
+              LayoutBlockFlow {P} at (4,676) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 268x19
+                  text run at (0,0) width 268: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x16
+                  LayoutText {#text} at (268,3) size 40x16
+                    text run at (268,3) width 40: "style"
+                LayoutText {#text} at (308,0) size 57x19
+                  text run at (308,0) width 57: " attribute."
+              LayoutBlockFlow {P} at (4,712) size 747x20 [color=#008000]
+                LayoutText {#text} at (0,0) size 268x19
+                  text run at (0,0) width 268: "This sentence should be green, and used the "
+                LayoutInline {TT} at (0,0) size 40x16
+                  LayoutText {#text} at (268,3) size 40x16
+                    text run at (268,3) width 40: "style"
+                LayoutText {#text} at (308,0) size 57x19
+                  text run at (308,0) width 57: " attribute."
+layer at (8,249) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,241) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/units/length_units-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/units/length_units-expected.txt
new file mode 100644
index 0000000..9aa43b4f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/units/length_units-expected.txt
@@ -0,0 +1,173 @@
+layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 1673
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 785x1673 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
+  LayoutBlockFlow {HTML} at (0,0) size 785x1673
+    LayoutBlockFlow {BODY} at (8,8) size 769x1657 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 769x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 769x176
+        LayoutText {#text} at (0,0) size 624x176
+          text run at (0,0) width 184: ".zero {margin-left: 0;}"
+          text run at (184,0) width 0: " "
+          text run at (0,16) width 192: ".one {margin-left: 3em;}"
+          text run at (192,16) width 0: " "
+          text run at (0,32) width 192: ".two {margin-left: 3ex;}"
+          text run at (192,32) width 0: " "
+          text run at (0,48) width 216: ".three {margin-left: 36px;}"
+          text run at (216,48) width 0: " "
+          text run at (0,64) width 216: ".four {margin-left: 0.5in;}"
+          text run at (216,64) width 0: " "
+          text run at (0,80) width 224: ".five {margin-left: 1.27cm;}"
+          text run at (224,80) width 0: " "
+          text run at (0,96) width 216: ".six {margin-left: 12.7mm;}"
+          text run at (216,96) width 0: " "
+          text run at (0,112) width 216: ".seven {margin-left: 36pt;}"
+          text run at (216,112) width 0: " "
+          text run at (0,128) width 208: ".eight {margin-left: 3pc;}"
+          text run at (208,128) width 0: " "
+          text run at (0,144) width 208: ".nine {margin-left: +3pc;}"
+          text run at (208,144) width 0: " "
+          text run at (0,160) width 624: ".ten {font-size: 40px; border-left: 1ex solid purple; background-color: aqua;}"
+          text run at (624,160) width 0: " "
+      LayoutBlockFlow {P} at (0,243) size 769x40
+        LayoutText {#text} at (0,0) size 758x39
+          text run at (0,0) width 758: "This paragraph has no left margin. The following paragraphs have all been given a left margin and their left (outer) edges should"
+          text run at (0,20) width 288: "therefore be appropriately shifted to the right of "
+        LayoutInline {EM} at (0,0) size 23x19
+          LayoutText {#text} at (288,20) size 23x19
+            text run at (288,20) width 23: "this"
+        LayoutText {#text} at (311,20) size 133x19
+          text run at (311,20) width 133: " paragraph's left edge."
+      LayoutBlockFlow {P} at (48,299) size 721x20
+        LayoutText {#text} at (0,0) size 292x19
+          text run at (0,0) width 292: "This paragraph should have a left margin of 3em."
+      LayoutBlockFlow {P} at (21,335) size 748x20
+        LayoutText {#text} at (0,0) size 288x19
+          text run at (0,0) width 288: "This paragraph should have a left margin of 3ex."
+      LayoutBlockFlow {P} at (36,371) size 733x20
+        LayoutText {#text} at (0,0) size 320x19
+          text run at (0,0) width 320: "This paragraph should have a left margin of 36 pixels."
+      LayoutBlockFlow {P} at (48,407) size 721x20
+        LayoutText {#text} at (0,0) size 333x19
+          text run at (0,0) width 333: "This paragraph should have a left margin of half an inch."
+      LayoutBlockFlow {P} at (48,443) size 721x20
+        LayoutText {#text} at (0,0) size 312x19
+          text run at (0,0) width 312: "This paragraph should have a left margin of 1.27cm."
+      LayoutBlockFlow {P} at (48,479) size 721x20
+        LayoutText {#text} at (0,0) size 316x19
+          text run at (0,0) width 316: "This paragraph should have a left margin of 12.7mm."
+      LayoutBlockFlow {P} at (48,515) size 721x20
+        LayoutText {#text} at (0,0) size 322x19
+          text run at (0,0) width 322: "This paragraph should have a left margin of 36 points."
+      LayoutBlockFlow {P} at (48,551) size 721x20
+        LayoutText {#text} at (0,0) size 309x19
+          text run at (0,0) width 309: "This paragraph should have a left margin of 3 picas."
+      LayoutBlockFlow {P} at (48,587) size 721x20
+        LayoutText {#text} at (0,0) size 558x19
+          text run at (0,0) width 558: "This paragraph should have a left margin of 3 picas (the plus sign should make no difference)."
+      LayoutBlockFlow {P} at (0,647) size 769x240 [bgcolor=#00FFFF] [border: none (18px solid #800080)]
+        LayoutText {#text} at (18,1) size 306x46
+          text run at (18,1) width 306: "This element has a "
+        LayoutInline {CODE} at (0,0) size 216x42
+          LayoutText {#text} at (324,6) size 216x42
+            text run at (324,6) width 216: "font-size"
+        LayoutText {#text} at (540,1) size 51x46
+          text run at (540,1) width 51: " of "
+        LayoutInline {CODE} at (0,0) size 96x42
+          LayoutText {#text} at (591,6) size 96x42
+            text run at (591,6) width 96: "40px"
+        LayoutText {#text} at (687,1) size 737x94
+          text run at (687,1) width 68: " and"
+          text run at (18,49) width 28: "a "
+        LayoutInline {CODE} at (0,0) size 264x42
+          LayoutText {#text} at (46,54) size 264x42
+            text run at (46,54) width 264: "border-left"
+        LayoutText {#text} at (310,49) size 51x46
+          text run at (310,49) width 51: " of "
+        LayoutInline {CODE} at (0,0) size 384x42
+          LayoutText {#text} at (361,54) size 384x42
+            text run at (361,54) width 384: "1ex solid purple"
+        LayoutText {#text} at (745,49) size 737x190
+          text run at (745,49) width 10: "."
+          text run at (18,97) width 663: "This should make the left border the same"
+          text run at (18,145) width 700: "number of pixels as the lower-case 'x' in this"
+          text run at (18,193) width 603: "element's font, as well as solid purple."
+      LayoutTable {TABLE} at (0,927) size 769x730 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 767x728
+          LayoutTableRow {TR} at (0,0) size 767x28
+            LayoutTableCell {TD} at (0,0) size 767x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 767x700
+            LayoutTableCell {TD} at (0,364) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 755x700 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 747x40
+                LayoutText {#text} at (0,0) size 715x39
+                  text run at (0,0) width 715: "This paragraph has no left margin. The following paragraphs have all been given a left margin and their left (outer) edges"
+                  text run at (0,20) width 331: "should therefore be appropriately shifted to the right of "
+                LayoutInline {EM} at (0,0) size 23x19
+                  LayoutText {#text} at (331,20) size 23x19
+                    text run at (331,20) width 23: "this"
+                LayoutText {#text} at (354,20) size 133x19
+                  text run at (354,20) width 133: " paragraph's left edge."
+              LayoutBlockFlow {P} at (52,60) size 699x20
+                LayoutText {#text} at (0,0) size 292x19
+                  text run at (0,0) width 292: "This paragraph should have a left margin of 3em."
+              LayoutBlockFlow {P} at (25,96) size 726x20
+                LayoutText {#text} at (0,0) size 288x19
+                  text run at (0,0) width 288: "This paragraph should have a left margin of 3ex."
+              LayoutBlockFlow {P} at (40,132) size 711x20
+                LayoutText {#text} at (0,0) size 320x19
+                  text run at (0,0) width 320: "This paragraph should have a left margin of 36 pixels."
+              LayoutBlockFlow {P} at (52,168) size 699x20
+                LayoutText {#text} at (0,0) size 333x19
+                  text run at (0,0) width 333: "This paragraph should have a left margin of half an inch."
+              LayoutBlockFlow {P} at (52,204) size 699x20
+                LayoutText {#text} at (0,0) size 312x19
+                  text run at (0,0) width 312: "This paragraph should have a left margin of 1.27cm."
+              LayoutBlockFlow {P} at (52,240) size 699x20
+                LayoutText {#text} at (0,0) size 316x19
+                  text run at (0,0) width 316: "This paragraph should have a left margin of 12.7mm."
+              LayoutBlockFlow {P} at (52,276) size 699x20
+                LayoutText {#text} at (0,0) size 322x19
+                  text run at (0,0) width 322: "This paragraph should have a left margin of 36 points."
+              LayoutBlockFlow {P} at (52,312) size 699x20
+                LayoutText {#text} at (0,0) size 309x19
+                  text run at (0,0) width 309: "This paragraph should have a left margin of 3 picas."
+              LayoutBlockFlow {P} at (52,348) size 699x20
+                LayoutText {#text} at (0,0) size 558x19
+                  text run at (0,0) width 558: "This paragraph should have a left margin of 3 picas (the plus sign should make no difference)."
+              LayoutBlockFlow {P} at (4,408) size 747x288 [bgcolor=#00FFFF] [border: none (18px solid #800080)]
+                LayoutText {#text} at (18,1) size 306x46
+                  text run at (18,1) width 306: "This element has a "
+                LayoutInline {CODE} at (0,0) size 216x42
+                  LayoutText {#text} at (324,6) size 216x42
+                    text run at (324,6) width 216: "font-size"
+                LayoutText {#text} at (540,1) size 51x46
+                  text run at (540,1) width 51: " of "
+                LayoutInline {CODE} at (0,0) size 96x42
+                  LayoutText {#text} at (591,6) size 96x42
+                    text run at (591,6) width 96: "40px"
+                LayoutText {#text} at (18,49) size 96x46
+                  text run at (18,49) width 96: "and a "
+                LayoutInline {CODE} at (0,0) size 264x42
+                  LayoutText {#text} at (114,54) size 264x42
+                    text run at (114,54) width 264: "border-left"
+                LayoutText {#text} at (378,49) size 51x46
+                  text run at (378,49) width 51: " of "
+                LayoutInline {CODE} at (0,0) size 627x90
+                  LayoutText {#text} at (429,54) size 627x90
+                    text run at (429,54) width 216: "1ex solid"
+                    text run at (18,102) width 144: "purple"
+                LayoutText {#text} at (162,97) size 698x190
+                  text run at (162,97) width 20: ". "
+                  text run at (182,97) width 513: "This should make the left border"
+                  text run at (18,145) width 698: "the same number of pixels as the lower-case"
+                  text run at (18,193) width 634: "'x' in this element's font, as well as solid"
+                  text run at (18,241) width 111: "purple."
+layer at (8,233) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,225) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/units/percentage_units-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/units/percentage_units-expected.txt
new file mode 100644
index 0000000..fd94554
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/units/percentage_units-expected.txt
@@ -0,0 +1,65 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x80
+        LayoutText {#text} at (0,0) size 504x80
+          text run at (0,0) width 224: ".zero { background: yellow }"
+          text run at (224,0) width 0: " "
+          text run at (0,16) width 504: ".one { margin-left: 25%; margin-right: 25%; background: white }"
+          text run at (504,16) width 0: " "
+          text run at (0,32) width 496: ".two { margin-left: 50%; margin-right: 0%; background: white }"
+          text run at (496,32) width 0: " "
+          text run at (0,48) width 208: ".three {margin-left: 25%;}"
+          text run at (208,48) width 0: " "
+          text run at (0,64) width 0: " "
+      LayoutBlockFlow {DIV} at (0,147) size 784x116 [bgcolor=#FFFF00]
+        LayoutBlockFlow {DIV} at (196,0) size 392x40 [bgcolor=#FFFFFF]
+          LayoutBlockFlow {P} at (0,0) size 392x40
+            LayoutText {#text} at (0,0) size 371x39
+              text run at (0,0) width 371: "This paragraph should be centered within its yellow containing"
+              text run at (0,20) width 345: "block and its width should be half of the containing block."
+        LayoutBlockFlow {DIV} at (392,56) size 392x60 [bgcolor=#FFFFFF]
+          LayoutBlockFlow {P} at (0,0) size 392x60
+            LayoutText {#text} at (0,0) size 367x59
+              text run at (0,0) width 329: "This paragraph should be right-aligned within its yellow"
+              text run at (0,20) width 367: "containing block and its width should be half of the containing"
+              text run at (0,40) width 38: "block."
+      LayoutBlockFlow {P} at (196,279) size 588x40
+        LayoutText {#text} at (0,0) size 561x39
+          text run at (0,0) width 561: "This paragraph should have a left margin of 25% the width of its parent element, which should"
+          text run at (0,20) width 297: "require some extra text in order to test effectively."
+      LayoutTable {TABLE} at (0,335) size 784x210 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x208
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x180
+            LayoutTableCell {TD} at (0,104) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x180 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {DIV} at (4,4) size 762x116 [bgcolor=#FFFF00]
+                LayoutBlockFlow {DIV} at (190.50,0) size 381x40 [bgcolor=#FFFFFF]
+                  LayoutBlockFlow {P} at (0,0) size 381x40
+                    LayoutText {#text} at (0,0) size 371x39
+                      text run at (0,0) width 371: "This paragraph should be centered within its yellow containing"
+                      text run at (0,20) width 345: "block and its width should be half of the containing block."
+                LayoutBlockFlow {DIV} at (381,56) size 381x60 [bgcolor=#FFFFFF]
+                  LayoutBlockFlow {P} at (0,0) size 381x60
+                    LayoutText {#text} at (0,0) size 367x59
+                      text run at (0,0) width 329: "This paragraph should be right-aligned within its yellow"
+                      text run at (0,20) width 367: "containing block and its width should be half of the containing"
+                      text run at (0,40) width 38: "block."
+              LayoutBlockFlow {P} at (194.50,136) size 571.50x40
+                LayoutText {#text} at (0,0) size 561x39
+                  text run at (0,0) width 561: "This paragraph should have a left margin of 25% the width of its parent element, which should"
+                  text run at (0,20) width 297: "require some extra text in order to test effectively."
+layer at (8,137) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,129) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/units/urls-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/units/urls-expected.txt
new file mode 100644
index 0000000..be5b6ee
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/mojo-loading/css1/units/urls-expected.txt
@@ -0,0 +1,61 @@
+layer at (0,0) size 800x600
+  LayoutView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  LayoutBlockFlow {HTML} at (0,0) size 800x600
+    LayoutBlockFlow {BODY} at (8,8) size 784x584
+      LayoutBlockFlow {P} at (0,0) size 784x20
+        LayoutText {#text} at (0,0) size 337x19
+          text run at (0,0) width 337: "The style declarations which apply to the text below are:"
+      LayoutBlockFlow {PRE} at (0,36) size 784x64
+        LayoutText {#text} at (0,0) size 648x64
+          text run at (0,0) width 648: "<LINK rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"../resources/bg.gif\">"
+          text run at (648,0) width 0: " "
+          text run at (0,16) width 296: "@import url(../resources/sec642.css);"
+          text run at (296,16) width 0: " "
+          text run at (0,32) width 352: "BODY {background: url(../resources/bg.gif);}"
+          text run at (352,32) width 0: " "
+          text run at (0,48) width 0: " "
+      LayoutBlockFlow {P} at (0,131) size 784x20
+        LayoutText {#text} at (0,0) size 368x19
+          text run at (0,0) width 368: "This page should have a green grid pattern as its background."
+      LayoutBlockFlow {P} at (0,167) size 784x60 [bgcolor=#FFFFFF]
+        LayoutText {#text} at (0,0) size 778x59
+          text run at (0,0) width 591: "This paragraph should have a white background, but NO image should appear in the background. "
+          text run at (591,0) width 174: "If an image, in this case a red"
+          text run at (0,20) width 778: "square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in relation to the document's"
+          text run at (0,40) width 188: "URL, not the stylesheet's URL."
+      LayoutBlockFlow {P} at (0,243) size 784x60 [bgcolor=#FFFFFF]
+        LayoutText {#text} at (0,0) size 778x59
+          text run at (0,0) width 591: "This paragraph should have a white background, but NO image should appear in the background. "
+          text run at (591,0) width 174: "If an image, in this case a red"
+          text run at (0,20) width 778: "square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in relation to the document's"
+          text run at (0,40) width 188: "URL, not the stylesheet's URL."
+      LayoutTable {TABLE} at (0,319) size 784x210 [border: (1px outset #808080)]
+        LayoutTableSection {TBODY} at (1,1) size 782x208
+          LayoutTableRow {TR} at (0,0) size 782x28
+            LayoutTableCell {TD} at (0,0) size 782x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+              LayoutInline {STRONG} at (0,0) size 157x19
+                LayoutText {#text} at (4,4) size 157x19
+                  text run at (4,4) width 157: "TABLE Testing Section"
+          LayoutTableRow {TR} at (0,28) size 782x180
+            LayoutTableCell {TD} at (0,104) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+              LayoutText {#text} at (4,4) size 4x19
+                text run at (4,4) width 4: " "
+            LayoutTableCell {TD} at (12,28) size 770x180 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              LayoutBlockFlow {P} at (4,4) size 762x20
+                LayoutText {#text} at (0,0) size 368x19
+                  text run at (0,0) width 368: "This page should have a green grid pattern as its background."
+              LayoutBlockFlow {P} at (4,40) size 762x60 [bgcolor=#FFFFFF]
+                LayoutText {#text} at (0,0) size 741x59
+                  text run at (0,0) width 591: "This paragraph should have a white background, but NO image should appear in the background. "
+                  text run at (591,0) width 150: "If an image, in this case a"
+                  text run at (0,20) width 730: "red square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in relation to the"
+                  text run at (0,40) width 260: "document's URL, not the stylesheet's URL."
+              LayoutBlockFlow {P} at (4,116) size 762x60 [bgcolor=#FFFFFF]
+                LayoutText {#text} at (0,0) size 741x59
+                  text run at (0,0) width 591: "This paragraph should have a white background, but NO image should appear in the background. "
+                  text run at (591,0) width 150: "If an image, in this case a"
+                  text run at (0,20) width 730: "red square-- or, indeed, any red at all-- is seen there, then the browser has incorrectly interpreted a URL in relation to the"
+                  text run at (0,40) width 260: "document's URL, not the stylesheet's URL."
+layer at (8,121) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt
index df3d852..c2582fa6 100644
--- a/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt
@@ -1,241 +1,243 @@
-layer at (0,0) size 1046x799 scrollHeight 2567
+layer at (0,0) size 1046x799 scrollHeight 2685
   LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2567 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2567
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2535
-      LayoutBlockFlow {P} at (0,0) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,34) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,68) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,102) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,136) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,170) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,204) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,238) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,272) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,306) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,340) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,374) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,408) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,442) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,476) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,510) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,544) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,578) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,646) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,680) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,714) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,748) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,817) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,851) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,885) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,919) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,953) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,987) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1021) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1055) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1089) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1123) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1157) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1191) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1225) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1259) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1293) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1327) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1361) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1429) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1463) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1497) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1531) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1616) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1650) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1684) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1718) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1752) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1786) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1820) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1854) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1888) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1922) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1956) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1990) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2024) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2058) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2092) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2126) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2160) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2228) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2262) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2296) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2330) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2415) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2449) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2483) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2517) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-layer at (8,0) size 615x36
-  LayoutBlockFlow (positioned) {DIV} at (8,0) size 615.39x36
-    LayoutBlockFlow {DIV} at (0,0) size 615.39x28
-      LayoutBlockFlow (anonymous) at (0,0) size 615.39x18
-        LayoutText {#text} at (0,0) size 616x17
-          text run at (0,0) width 616: "crbug.com/303728: Header Line is absolute positioned so should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 615.39x2 [border: (1px inset #EEEEEE)]
-layer at (8,763) size 611x36
-  LayoutBlockFlow (positioned) {DIV} at (8,763) size 610.98x36
-    LayoutBlockFlow {DIV} at (0,8) size 610.98x28
-      LayoutBlockFlow {HR} at (0,0) size 610.98x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 610.98x18
-        LayoutText {#text} at (0,0) size 611x17
-          text run at (0,0) width 611: "crbug.com/303728: Footer Line is absolute positioned so should not be repeated on every page."
+layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
+    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
+      LayoutBlockFlow {P} at (0,0) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,36) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,72) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,108) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,144) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,180) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,216) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,252) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,288) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,324) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,360) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,396) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,432) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,468) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,504) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,540) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,576) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,612) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,648) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,684) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,720) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,756) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,783) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,819) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,855) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,891) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,927) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,963) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,999) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1035) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1071) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1107) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1143) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1179) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1215) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1251) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1287) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1323) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1359) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1395) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1431) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1467) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1503) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1539) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1582) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1618) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1654) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1690) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1726) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1762) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1798) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1834) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1870) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1906) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1942) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1978) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2014) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2050) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2086) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2122) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2158) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2194) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2230) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2266) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2302) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2338) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2381) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2417) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2453) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2489) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2525) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2561) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2597) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2633) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+layer at (8,0) size 584x38
+  LayoutBlockFlow (positioned) {DIV} at (8,0) size 584x38
+    LayoutBlockFlow {DIV} at (0,0) size 584x30
+      LayoutBlockFlow (anonymous) at (0,0) size 584x20
+        LayoutText {#text} at (0,0) size 584x19
+          text run at (0,0) width 584: "crbug.com/303728: Header Line is absolute positioned so should not be repeated on every page."
+layer at (8,28) size 584x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 584x2 [border: (1px inset #EEEEEE)]
+layer at (8,761) size 580x38
+  LayoutBlockFlow (positioned) {DIV} at (8,761) size 580x38
+    LayoutBlockFlow {DIV} at (0,8) size 580x30
+      LayoutBlockFlow (anonymous) at (0,10) size 580x20
+        LayoutText {#text} at (0,0) size 580x19
+          text run at (0,0) width 580: "crbug.com/303728: Footer Line is absolute positioned so should not be repeated on every page."
+layer at (8,769) size 580x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 580x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
index bcd0a47..3b43ace 100644
--- a/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
@@ -1,241 +1,243 @@
-layer at (0,0) size 1046x799 scrollHeight 2567
+layer at (0,0) size 1046x799 scrollHeight 2685
   LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2567 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2567
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2535
-      LayoutBlockFlow {P} at (0,0) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,34) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,68) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,102) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,136) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,170) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,204) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,238) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,272) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,306) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,340) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,374) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,408) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,442) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,476) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,510) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,544) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,578) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,646) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,680) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,714) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,748) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,817) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,851) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,885) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,919) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,953) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,987) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1021) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1055) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1089) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1123) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1157) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1191) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1225) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1259) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1293) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1327) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1361) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1429) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1463) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1497) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1531) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1616) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1650) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1684) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1718) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1752) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1786) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1820) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1854) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1888) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1922) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1956) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1990) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2024) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2058) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2092) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2126) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2160) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2228) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2262) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2296) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2330) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2415) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2449) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2483) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2517) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-layer at (8,16) size 680x36
-  LayoutBlockFlow (positioned) {DIV} at (8,16) size 680.27x36
-    LayoutBlockFlow {DIV} at (0,0) size 680.27x28
-      LayoutBlockFlow (anonymous) at (0,0) size 680.27x18
-        LayoutText {#text} at (0,0) size 681x17
-          text run at (0,0) width 681: "crbug.com/303728: Fixed-position header Line is statically positioned and will be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 680.27x2 [border: (1px inset #EEEEEE)]
-layer at (8,2567) size 624x36 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (8,2567) size 624.30x36
-    LayoutBlockFlow {DIV} at (0,8) size 624.30x28
-      LayoutBlockFlow {HR} at (0,0) size 624.30x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 624.30x18
-        LayoutText {#text} at (0,0) size 625x17
-          text run at (0,0) width 625: "crbug.com/303728: Footer Line is statically positioned and should not be repeated on every page."
+layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
+    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
+      LayoutBlockFlow {P} at (0,0) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,36) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,72) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,108) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,144) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,180) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,216) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,252) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,288) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,324) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,360) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,396) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,432) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,468) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,504) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,540) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,576) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,612) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,648) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,684) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,720) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,756) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,783) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,819) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,855) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,891) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,927) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,963) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,999) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1035) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1071) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1107) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1143) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1179) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1215) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1251) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1287) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1323) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1359) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1395) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1431) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1467) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1503) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1539) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1582) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1618) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1654) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1690) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1726) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1762) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1798) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1834) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1870) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1906) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1942) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1978) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2014) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2050) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2086) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2122) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2158) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2194) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2230) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2266) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2302) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2338) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2381) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2417) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2453) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2489) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2525) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2561) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2597) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2633) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+layer at (8,16) size 638x38
+  LayoutBlockFlow (positioned) {DIV} at (8,16) size 638x38
+    LayoutBlockFlow {DIV} at (0,0) size 638x30
+      LayoutBlockFlow (anonymous) at (0,0) size 638x20
+        LayoutText {#text} at (0,0) size 638x19
+          text run at (0,0) width 638: "crbug.com/303728: Fixed-position header Line is statically positioned and will be repeated on every page."
+layer at (8,44) size 638x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 638x2 [border: (1px inset #EEEEEE)]
+layer at (8,2685) size 589x38 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow (positioned) {DIV} at (8,2685) size 589x38
+    LayoutBlockFlow {DIV} at (0,8) size 589x30
+      LayoutBlockFlow (anonymous) at (0,10) size 589x20
+        LayoutText {#text} at (0,0) size 589x19
+          text run at (0,0) width 589: "crbug.com/303728: Footer Line is statically positioned and should not be repeated on every page."
+layer at (8,2693) size 589x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 589x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
index c86a393..4ceb0d1 100644
--- a/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-absolute-covering-some-pages-expected.txt
@@ -11,7 +11,8 @@
         LayoutText {#text} at (0,0) size 491x39
           text run at (0,0) width 491: "crbug.com/303728: Header Line should be repeated on every page except where"
           text run at (0,20) width 321: "it's clipped by the absolute element on pages 3 and 4."
-      LayoutBlockFlow {HR} at (0,48) size 500x2 [border: (1px inset #EEEEEE)]
+layer at (5,53) size 500x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,48) size 500x2 [border: (1px inset #EEEEEE)]
 layer at (0,1000) size 600x2000 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
   LayoutBlockFlow (positioned) zI: 2 {DIV} at (0,1000) size 600x2000 [bgcolor=#000000]
     LayoutText zI: 2 {#text} at (0,0) size 54x19
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt
index 4829fd4..cfd751b 100644
--- a/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt
@@ -1,241 +1,243 @@
-layer at (0,0) size 1046x799 scrollHeight 2567
+layer at (0,0) size 1046x799 scrollHeight 2685
   LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2567 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2567
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2535
-      LayoutBlockFlow {P} at (0,0) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,34) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,68) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,102) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,136) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,170) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,204) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,238) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,272) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,306) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,340) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,374) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,408) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,442) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,476) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,510) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,544) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,578) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,646) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,680) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,714) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,748) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,817) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,851) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,885) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,919) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,953) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,987) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1021) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1055) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1089) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1123) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1157) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1191) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1225) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1259) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1293) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1327) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1361) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1429) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1463) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1497) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1531) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1616) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1650) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1684) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1718) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1752) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1786) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1820) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1854) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1888) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1922) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1956) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1990) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2024) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2058) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2092) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2126) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2160) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2228) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2262) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2296) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2330) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2415) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2449) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2483) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2517) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-layer at (8,0) size 524x36
-  LayoutBlockFlow (positioned) {DIV} at (8,0) size 523.84x36
-    LayoutBlockFlow {DIV} at (0,0) size 523.84x28
-      LayoutBlockFlow (anonymous) at (0,0) size 523.84x18
-        LayoutText {#text} at (0,0) size 524x17
-          text run at (0,0) width 524: "crbug.com/303728: Fixed-position header Line should be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 523.84x2 [border: (1px inset #EEEEEE)]
-layer at (8,763) size 426x36
-  LayoutBlockFlow (positioned) {DIV} at (8,763) size 425.66x36
-    LayoutBlockFlow {DIV} at (0,8) size 425.66x28
-      LayoutBlockFlow {HR} at (0,0) size 425.66x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 425.66x18
-        LayoutText {#text} at (0,0) size 426x17
-          text run at (0,0) width 426: "crbug.com/303728: Footer Line should be repeated on every page."
+layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
+    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
+      LayoutBlockFlow {P} at (0,0) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,36) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,72) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,108) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,144) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,180) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,216) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,252) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,288) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,324) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,360) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,396) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,432) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,468) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,504) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,540) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,576) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,612) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,648) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,684) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,720) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,756) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,783) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,819) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,855) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,891) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,927) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,963) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,999) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1035) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1071) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1107) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1143) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1179) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1215) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1251) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1287) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1323) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1359) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1395) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1431) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1467) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1503) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1539) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1582) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1618) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1654) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1690) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1726) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1762) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1798) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1834) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1870) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1906) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1942) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1978) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2014) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2050) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2086) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2122) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2158) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2194) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2230) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2266) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2302) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2338) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2381) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2417) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2453) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2489) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2525) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2561) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2597) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2633) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+layer at (8,0) size 497x38
+  LayoutBlockFlow (positioned) {DIV} at (8,0) size 497x38
+    LayoutBlockFlow {DIV} at (0,0) size 497x30
+      LayoutBlockFlow (anonymous) at (0,0) size 497x20
+        LayoutText {#text} at (0,0) size 497x19
+          text run at (0,0) width 497: "crbug.com/303728: Fixed-position header Line should be repeated on every page."
+layer at (8,28) size 497x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 497x2 [border: (1px inset #EEEEEE)]
+layer at (8,761) size 406x38
+  LayoutBlockFlow (positioned) {DIV} at (8,761) size 406x38
+    LayoutBlockFlow {DIV} at (0,8) size 406x30
+      LayoutBlockFlow (anonymous) at (0,10) size 406x20
+        LayoutText {#text} at (0,0) size 406x19
+          text run at (0,0) width 406: "crbug.com/303728: Footer Line should be repeated on every page."
+layer at (8,769) size 406x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 406x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
index 87eac940..756b9bc 100644
--- a/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
@@ -1,245 +1,247 @@
-layer at (0,0) size 1046x799 scrollHeight 2567
+layer at (0,0) size 1046x799 scrollHeight 2685
   LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2567 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2567
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2535
-      LayoutBlockFlow {P} at (0,0) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,34) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,68) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,102) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,136) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,170) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,204) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,238) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,272) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,306) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,340) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,374) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,408) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,442) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,476) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,510) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,544) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,578) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,646) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,680) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,714) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,748) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,817) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,851) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,885) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,919) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,953) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,987) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1021) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1055) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1089) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1123) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1157) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1191) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1225) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1259) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1293) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1327) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1361) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1429) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1463) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1497) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1531) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1616) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1650) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1684) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1718) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1752) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1786) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1820) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1854) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1888) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1922) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1956) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1990) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2024) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2058) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2092) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2126) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2160) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2228) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2262) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2296) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2330) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2415) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2449) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2483) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2517) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
+layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
+    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
+      LayoutBlockFlow {P} at (0,0) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,36) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,72) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,108) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,144) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,180) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,216) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,252) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,288) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,324) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,360) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,396) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,432) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,468) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,504) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,540) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,576) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,612) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,648) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,684) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,720) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,756) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,783) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,819) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,855) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,891) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,927) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,963) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,999) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1035) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1071) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1107) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1143) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1179) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1215) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1251) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1287) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1323) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1359) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1395) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1431) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1467) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1503) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1539) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1582) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1618) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1654) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1690) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1726) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1762) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1798) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1834) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1870) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1906) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1942) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1978) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2014) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2050) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2086) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2122) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2158) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2194) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2230) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2266) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2302) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2338) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2381) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2417) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2453) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2489) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2525) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2561) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2597) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2633) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
 layer at (8,16) size 1030x0
   LayoutBlockFlow {DIV} at (0,0) size 1030x0
-layer at (8,16) size 455x36
-  LayoutBlockFlow (positioned) {DIV} at (0,0) size 454.52x36
-    LayoutBlockFlow {DIV} at (0,0) size 454.52x28
-      LayoutBlockFlow (anonymous) at (0,0) size 454.52x18
-        LayoutText {#text} at (0,0) size 455x17
-          text run at (0,0) width 455: "crbug.com/303728: Header Line should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,26) size 454.52x2 [border: (1px inset #EEEEEE)]
-layer at (8,2567) size 1030x0
-  LayoutBlockFlow {DIV} at (0,2551) size 1030x0
-layer at (8,2531) size 450x36 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (0,-36) size 450.09x36
-    LayoutBlockFlow {DIV} at (0,8) size 450.09x28
-      LayoutBlockFlow {HR} at (0,0) size 450.09x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 450.09x18
-        LayoutText {#text} at (0,0) size 451x17
-          text run at (0,0) width 451: "crbug.com/303728: Footer Line should not be repeated on every page."
+layer at (8,16) size 433x38
+  LayoutBlockFlow (positioned) {DIV} at (0,0) size 433x38
+    LayoutBlockFlow {DIV} at (0,0) size 433x30
+      LayoutBlockFlow (anonymous) at (0,0) size 433x20
+        LayoutText {#text} at (0,0) size 433x19
+          text run at (0,0) width 433: "crbug.com/303728: Header Line should not be repeated on every page."
+layer at (8,44) size 433x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 433x2 [border: (1px inset #EEEEEE)]
+layer at (8,2685) size 1030x0
+  LayoutBlockFlow {DIV} at (0,2669) size 1030x0
+layer at (8,2647) size 429x38 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow (positioned) {DIV} at (0,-38) size 429x38
+    LayoutBlockFlow {DIV} at (0,8) size 429x30
+      LayoutBlockFlow (anonymous) at (0,10) size 429x20
+        LayoutText {#text} at (0,0) size 429x19
+          text run at (0,0) width 429: "crbug.com/303728: Footer Line should not be repeated on every page."
+layer at (8,2655) size 429x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 429x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt b/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
index 442a95a..d06aef6 100644
--- a/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
@@ -1,241 +1,243 @@
-layer at (0,0) size 1046x799 scrollHeight 2567
+layer at (0,0) size 1046x799 scrollHeight 2685
   LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2567 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2567
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2535
-      LayoutBlockFlow {P} at (0,0) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,34) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,68) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,102) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,136) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,170) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,204) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,238) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,272) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,306) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,340) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,374) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,408) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,442) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,476) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,510) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,544) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,578) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,646) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,680) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,714) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,748) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,817) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,851) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,885) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,919) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,953) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,987) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1021) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1055) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1089) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1123) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1157) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1191) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1225) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1259) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1293) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1327) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1361) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1429) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1463) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1497) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1531) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1616) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1650) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1684) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1718) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1752) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1786) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1820) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1854) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1888) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1922) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1956) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,1990) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2024) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2058) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2092) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2126) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2160) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2228) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2262) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2296) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2330) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2415) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2449) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2483) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-      LayoutBlockFlow {P} at (0,2517) size 1030x18
-        LayoutText {#text} at (0,0) size 69x17
-          text run at (0,0) width 69: "Filler lines"
-layer at (8,0) size 2010x46 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (8,0) size 2010x46 [border: (5px solid #000000)]
-    LayoutBlockFlow {DIV} at (5,5) size 2000x28
-      LayoutBlockFlow (anonymous) at (0,0) size 2000x18
-        LayoutText {#text} at (0,0) size 706x17
-          text run at (0,0) width 706: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
-      LayoutBlockFlow {HR} at (0,26) size 2000x2 [border: (1px inset #EEEEEE)]
-layer at (8,753) size 2010x46 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (8,753) size 2010x46 [border: (5px solid #000000)]
-    LayoutBlockFlow {DIV} at (5,13) size 2000x28
-      LayoutBlockFlow {HR} at (0,0) size 2000x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 2000x18
-        LayoutText {#text} at (0,0) size 706x17
-          text run at (0,0) width 706: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
+layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
+    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
+      LayoutBlockFlow {P} at (0,0) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,36) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,72) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,108) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,144) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,180) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,216) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,252) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,288) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,324) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,360) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,396) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,432) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,468) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,504) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,540) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,576) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,612) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,648) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,684) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,720) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,756) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,783) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,819) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,855) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,891) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,927) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,963) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,999) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1035) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1071) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1107) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1143) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1179) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1215) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1251) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1287) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1323) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1359) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1395) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1431) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1467) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1503) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1539) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1582) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1618) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1654) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1690) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1726) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1762) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1798) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1834) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1870) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1906) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1942) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,1978) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2014) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2050) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2086) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2122) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2158) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2194) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2230) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2266) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2302) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2338) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2381) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2417) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2453) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2489) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2525) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2561) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2597) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+      LayoutBlockFlow {P} at (0,2633) size 1030x20
+        LayoutText {#text} at (0,0) size 60x19
+          text run at (0,0) width 60: "Filler lines"
+layer at (8,0) size 2010x48 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow (positioned) {DIV} at (8,0) size 2010x48 [border: (5px solid #000000)]
+    LayoutBlockFlow {DIV} at (5,5) size 2000x30
+      LayoutBlockFlow (anonymous) at (0,0) size 2000x20
+        LayoutText {#text} at (0,0) size 672x19
+          text run at (0,0) width 672: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
+layer at (13,33) size 2000x2 backgroundClip at (13,33) size 1033x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,28) size 2000x2 [border: (1px inset #EEEEEE)]
+layer at (8,751) size 2010x48 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
+  LayoutBlockFlow (positioned) {DIV} at (8,751) size 2010x48 [border: (5px solid #000000)]
+    LayoutBlockFlow {DIV} at (5,13) size 2000x30
+      LayoutBlockFlow (anonymous) at (0,10) size 2000x20
+        LayoutText {#text} at (0,0) size 672x19
+          text run at (0,0) width 672: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
+layer at (13,764) size 2000x2 backgroundClip at (13,764) size 1033x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,0) size 2000x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win7/css1/pseudo/firstline-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/css1/pseudo/firstline-expected.txt
index 91b42a96..faf3ecca 100644
--- a/third_party/WebKit/LayoutTests/platform/win7/css1/pseudo/firstline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win7/css1/pseudo/firstline-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 360: ".three:first-line {font-variant: small-caps;}"
           text run at (360,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x60
         LayoutText {#text} at (0,0) size 758x59
           text run at (0,0) width 400: "The first line of this paragraph, and only that one, should be green. "
@@ -81,3 +80,5 @@
                   text run at (237,40) width 218: " is not supported by your browser). "
                   text run at (455,40) width 270: "This is extra text included for the purposes of"
                   text run at (0,60) width 372: "making the paragraph long enough to have more than one line."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win7/css1/pseudo/multiple_pseudo_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/css1/pseudo/multiple_pseudo_elements-expected.txt
index 1e6de73..cbd9e20 100644
--- a/third_party/WebKit/LayoutTests/platform/win7/css1/pseudo/multiple_pseudo_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win7/css1/pseudo/multiple_pseudo_elements-expected.txt
@@ -24,7 +24,6 @@
           text run at (0,80) width 368: "P.three:first-line {font-variant: small-caps;}"
           text run at (368,80) width 0: " "
           text run at (0,96) width 0: " "
-      LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,179) size 769x60
         LayoutInline {<pseudo:first-letter>} at (0,0) size 9x19 [color=#800000]
           LayoutTextFragment (anonymous) at (0,0) size 9x19
@@ -101,3 +100,5 @@
                   text run at (0,86) width 685: "that the inclusion of both the quotation mark and the 'W' in the first-letter style is not required under CSS1, but it is"
                   text run at (0,106) width 94: "recommended. "
                   text run at (94,106) width 426: "In addition, the entire first line should be in a small-caps font and green."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win7/fast/encoding/invalid-UTF-8-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/fast/encoding/invalid-UTF-8-expected.txt
index ed54beb..93bfa46 100644
--- a/third_party/WebKit/LayoutTests/platform/win7/fast/encoding/invalid-UTF-8-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win7/fast/encoding/invalid-UTF-8-expected.txt
@@ -9,7 +9,8 @@
       LayoutBlockFlow {P} at (0,36) size 784x20
         LayoutText {#text} at (0,0) size 475x19
           text run at (0,0) width 475: "The output should be: \"\x{442}??\x{442}\" (with black diamonds in place of question marks)."
-      LayoutBlockFlow {HR} at (0,72) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,90) size 784x21
         LayoutText {#text} at (0,1) size 46x19
           text run at (0,1) width 46: "\x{442}\x{FFFD}\x{FFFD}\x{442}"
+layer at (8,80) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,72) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win7/fast/forms/select/menulist-appearance-rtl-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/fast/forms/select/menulist-appearance-rtl-expected.txt
deleted file mode 100644
index 5a2e4ff..0000000
--- a/third_party/WebKit/LayoutTests/platform/win7/fast/forms/select/menulist-appearance-rtl-expected.txt
+++ /dev/null
@@ -1,168 +0,0 @@
-layer at (0,0) size 800x600
-  LayoutView at (0,0) size 800x600
-layer at (0,0) size 800x563
-  LayoutBlockFlow {HTML} at (0,0) size 800x563
-    LayoutBlockFlow {BODY} at (8,16) size 784x539
-      LayoutBlockFlow {P} at (0,0) size 784x40
-        LayoutText {#text} at (0,0) size 755x39
-          text run at (0,0) width 755: "This tests that bidirectional text is correctly rendered in popup controls. The order of the text below each popup button should"
-          text run at (0,20) width 520: "match the order of the select's option text, and the order of the text in the popup menu."
-      LayoutBlockFlow {DL} at (0,56) size 784x180
-        LayoutBlockFlow {DT} at (0,0) size 784x20
-          LayoutText {#text} at (0,0) size 262x19
-            text run at (0,0) width 262: "1) direction: rtl; -webkit-rtl-ordering: logical"
-        LayoutBlockFlow {DD} at (40,20) size 744x40
-          LayoutBlockFlow (anonymous) at (0,0) size 744x20
-            LayoutMenuList {SELECT} at (0,0) size 100x20 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-              LayoutBlockFlow (anonymous) at (1,1) size 98x18
-                LayoutText (anonymous) at (31,1) size 63x16
-                  text run at (31,1) width 42 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
-                  text run at (73,1) width 21: "abc"
-            LayoutText {#text} at (0,0) size 0x0
-          LayoutBlockFlow {DIV} at (0,20) size 100x20
-            LayoutText {#text} at (31,0) size 69x19
-              text run at (31,0) width 47 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
-              text run at (78,0) width 22: "abc"
-        LayoutBlockFlow {DT} at (0,60) size 784x20
-          LayoutText {#text} at (0,0) size 105x19
-            text run at (0,0) width 105: "2) text-align: right"
-        LayoutBlockFlow {DD} at (40,80) size 744x40
-          LayoutBlockFlow (anonymous) at (0,0) size 744x20
-            LayoutMenuList {SELECT} at (0,0) size 200x20 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-              LayoutBlockFlow (anonymous) at (1,1) size 198x18
-                LayoutText (anonymous) at (4,1) size 63x16
-                  text run at (4,1) width 21: "abc"
-                  text run at (25,1) width 42 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
-            LayoutText {#text} at (0,0) size 0x0
-          LayoutBlockFlow {DIV} at (0,20) size 200x20
-            LayoutText {#text} at (0,0) size 69x19
-              text run at (0,0) width 22: "abc"
-              text run at (22,0) width 47 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
-        LayoutBlockFlow {DT} at (0,120) size 784x20
-          LayoutText {#text} at (0,0) size 68x19
-            text run at (0,0) width 68: "3) No style"
-        LayoutBlockFlow {DD} at (40,140) size 744x40
-          LayoutBlockFlow (anonymous) at (0,0) size 744x20
-            LayoutMenuList {SELECT} at (0,0) size 100x20 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-              LayoutBlockFlow (anonymous) at (1,1) size 98x18
-                LayoutText (anonymous) at (4,1) size 63x16
-                  text run at (4,1) width 21: "abc"
-                  text run at (25,1) width 42 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
-            LayoutText {#text} at (0,0) size 0x0
-          LayoutBlockFlow {DIV} at (0,20) size 100x20
-            LayoutText {#text} at (0,0) size 69x19
-              text run at (0,0) width 22: "abc"
-              text run at (22,0) width 47 RTL: "\x{5D0}\x{5E4}\x{5E8}\x{5E1}\x{5DE}\x{5D5}\x{5DF}"
-      LayoutBlockFlow {HR} at (0,252) size 784x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow {DIV} at (0,262) size 784x55
-        LayoutBlockFlow (anonymous) at (0,0) size 784x20
-          LayoutText {#text} at (0,0) size 587x19
-            text run at (0,0) width 587: "The following line and the SELECT element should have same text, and no characters are lacking."
-        LayoutBlockFlow {DIV} at (0,20) size 784x15
-          LayoutText {#text} at (0,0) size 97x15
-            text run at (0,0) width 97 RTL: "\x{627}\x{644}\x{627}\x{642}\x{62A}\x{631}\x{627}\x{62D}\x{627}\x{62A} / \x{627}\x{644}\x{634}\x{643}\x{627}\x{648}\x{64A}"
-        LayoutBlockFlow (anonymous) at (0,35) size 784x20
-          LayoutMenuList {SELECT} at (0,0) size 113x20 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-            LayoutBlockFlow (anonymous) at (1,1) size 111x18
-              LayoutText (anonymous) at (4,1) size 91x16
-                text run at (4,1) width 91 RTL: "\x{627}\x{644}\x{627}\x{642}\x{62A}\x{631}\x{627}\x{62D}\x{627}\x{62A} / \x{627}\x{644}\x{634}\x{643}\x{627}\x{648}\x{64A}"
-          LayoutText {#text} at (0,0) size 0x0
-      LayoutBlockFlow {HR} at (0,325) size 784x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow {P} at (0,343) size 784x20
-        LayoutText {#text} at (0,0) size 659x19
-          text run at (0,0) width 659: "Verify that the alignment and writing direction of each selected item matches the one below the pop-up button."
-layer at (8,395) size 784x160
-  LayoutBlockFlow {DIV} at (0,379) size 784x160
-    LayoutMultiColumnSet (anonymous) at (0,0) size 784x160
-layer at (8,395) size 384x320 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
-  LayoutMultiColumnFlowThread (anonymous) at (0,0) size 384x320
-    LayoutBlockFlow {DIV} at (0,0) size 384x160
-      LayoutMenuList {SELECT} at (0,0) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x21
-          LayoutText (anonymous) at (4,1) size 170x18
-            text run at (4,1) width 35: "First "
-            text run at (39,1) width 50 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA}"
-            text run at (89,1) width 18: "03"
-            text run at (107,1) width 39 RTL: "\x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
-            text run at (146,1) width 28: " fifth"
-      LayoutBlockFlow {DIV} at (0,22) size 352x18
-        LayoutText {#text} at (1,1) size 130x15
-          text run at (1,1) width 27: "First "
-          text run at (28,1) width 38 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA}"
-          text run at (66,1) width 12: "03"
-          text run at (78,1) width 28 RTL: "\x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
-          text run at (106,1) width 25: " fifth"
-      LayoutMenuList {SELECT} at (0,40) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x21
-          LayoutText (anonymous) at (4,1) size 170x18
-            text run at (4,1) width 24: "fifth"
-            text run at (28,1) width 54 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} "
-            text run at (82,1) width 18: "03"
-            text run at (100,1) width 43 RTL: " \x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
-            text run at (143,1) width 31: "First"
-      LayoutBlockFlow {DIV} at (0,62) size 352x18
-        LayoutText {#text} at (1,1) size 130x15
-          text run at (1,1) width 22: "fifth"
-          text run at (23,1) width 41 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} "
-          text run at (64,1) width 12: "03"
-          text run at (76,1) width 31 RTL: " \x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
-          text run at (107,1) width 24: "First"
-      LayoutMenuList {SELECT} at (0,80) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x21
-          LayoutText (anonymous) at (4,1) size 170x18
-            text run at (4,1) width 170 LTR override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
-      LayoutBlockFlow {DIV} at (0,102) size 352x18
-        LayoutText {#text} at (1,1) size 130x15
-          text run at (1,1) width 130 LTR override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
-      LayoutMenuList {SELECT} at (0,120) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x21
-          LayoutText (anonymous) at (4,1) size 170x18
-            text run at (4,1) width 170 RTL override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
-      LayoutBlockFlow {DIV} at (0,142) size 352x18
-        LayoutText {#text} at (1,1) size 130x15
-          text run at (1,1) width 130 RTL override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
-    LayoutBlockFlow {DIV} at (0,160) size 384x160
-      LayoutMenuList {SELECT} at (0,0) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x21
-          LayoutText (anonymous) at (174,1) size 170x18
-            text run at (174,1) width 35: "First "
-            text run at (209,1) width 50 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA}"
-            text run at (259,1) width 18: "03"
-            text run at (277,1) width 39 RTL: "\x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
-            text run at (316,1) width 28: " fifth"
-      LayoutBlockFlow {DIV} at (0,22) size 352x18
-        LayoutText {#text} at (221,1) size 130x15
-          text run at (221,1) width 27: "First "
-          text run at (248,1) width 38 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA}"
-          text run at (286,1) width 12: "03"
-          text run at (298,1) width 28 RTL: "\x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
-          text run at (326,1) width 25: " fifth"
-      LayoutMenuList {SELECT} at (0,40) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x21
-          LayoutText (anonymous) at (174,1) size 170x18
-            text run at (174,1) width 24: "fifth"
-            text run at (198,1) width 54 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} "
-            text run at (252,1) width 18: "03"
-            text run at (270,1) width 43 RTL: " \x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
-            text run at (313,1) width 31: "First"
-      LayoutBlockFlow {DIV} at (0,62) size 352x18
-        LayoutText {#text} at (221,1) size 130x15
-          text run at (221,1) width 22: "fifth"
-          text run at (243,1) width 41 RTL: ") \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} "
-          text run at (284,1) width 12: "03"
-          text run at (296,1) width 31 RTL: " \x{5E9}\x{5E0}\x{5D9}\x{5D4} ("
-          text run at (327,1) width 24: "First"
-      LayoutMenuList {SELECT} at (0,80) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x21
-          LayoutText (anonymous) at (174,1) size 170x18
-            text run at (174,1) width 170 LTR override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
-      LayoutBlockFlow {DIV} at (0,102) size 352x18
-        LayoutText {#text} at (221,1) size 130x15
-          text run at (221,1) width 130 LTR override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
-      LayoutMenuList {SELECT} at (0,120) size 350x22 [bgcolor=#FFFFFF] [border: (1px solid #A9A9A9)]
-        LayoutBlockFlow (anonymous) at (1,1) size 348x21
-          LayoutText (anonymous) at (174,1) size 170x18
-            text run at (174,1) width 170 RTL override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
-      LayoutBlockFlow {DIV} at (0,142) size 352x18
-        LayoutText {#text} at (221,1) size 130x15
-          text run at (221,1) width 130 RTL override: "First \x{5E9}\x{5E0}\x{5D9}\x{5D4} (03) \x{5E8}\x{5D1}\x{5D9}\x{5E2}\x{5D9}\x{5EA} fifth"
diff --git a/third_party/WebKit/LayoutTests/platform/win7/printing/absolute-position-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/printing/absolute-position-headers-and-footers-expected.txt
deleted file mode 100644
index 39d1f589..0000000
--- a/third_party/WebKit/LayoutTests/platform/win7/printing/absolute-position-headers-and-footers-expected.txt
+++ /dev/null
@@ -1,241 +0,0 @@
-layer at (0,0) size 1046x799 scrollHeight 2685
-  LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
-      LayoutBlockFlow {P} at (0,0) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,36) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,72) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,108) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,144) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,180) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,216) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,252) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,288) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,324) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,360) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,396) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,432) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,468) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,504) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,540) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,576) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,648) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,684) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,720) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,756) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,819) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,855) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,891) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,927) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,963) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,999) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1035) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1071) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1107) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1143) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1179) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1215) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1251) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1287) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1323) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1359) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1431) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1467) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1503) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1539) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1618) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1654) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1690) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1726) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1762) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1798) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1834) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1870) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1906) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1942) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1978) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2014) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2050) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2086) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2122) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2158) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2230) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2266) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2302) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2338) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2417) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2453) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2489) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2525) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2561) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2597) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2633) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-layer at (8,0) size 584x38
-  LayoutBlockFlow (positioned) {DIV} at (8,0) size 584x38
-    LayoutBlockFlow {DIV} at (0,0) size 584x30
-      LayoutBlockFlow (anonymous) at (0,0) size 584x20
-        LayoutText {#text} at (0,0) size 584x19
-          text run at (0,0) width 584: "crbug.com/303728: Header Line is absolute positioned so should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 584x2 [border: (1px inset #EEEEEE)]
-layer at (8,761) size 580x38
-  LayoutBlockFlow (positioned) {DIV} at (8,761) size 580x38
-    LayoutBlockFlow {DIV} at (0,8) size 580x30
-      LayoutBlockFlow {HR} at (0,0) size 580x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 580x20
-        LayoutText {#text} at (0,0) size 580x19
-          text run at (0,0) width 580: "crbug.com/303728: Footer Line is absolute positioned so should not be repeated on every page."
diff --git a/third_party/WebKit/LayoutTests/platform/win7/printing/fixed-positioned-but-static-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
deleted file mode 100644
index 952bf3b..0000000
--- a/third_party/WebKit/LayoutTests/platform/win7/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
+++ /dev/null
@@ -1,241 +0,0 @@
-layer at (0,0) size 1046x799 scrollHeight 2685
-  LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
-      LayoutBlockFlow {P} at (0,0) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,36) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,72) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,108) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,144) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,180) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,216) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,252) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,288) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,324) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,360) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,396) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,432) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,468) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,504) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,540) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,576) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,648) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,684) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,720) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,756) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,819) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,855) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,891) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,927) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,963) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,999) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1035) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1071) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1107) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1143) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1179) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1215) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1251) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1287) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1323) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1359) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1431) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1467) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1503) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1539) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1618) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1654) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1690) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1726) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1762) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1798) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1834) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1870) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1906) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1942) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1978) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2014) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2050) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2086) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2122) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2158) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2230) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2266) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2302) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2338) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2417) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2453) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2489) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2525) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2561) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2597) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2633) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-layer at (8,16) size 638x38
-  LayoutBlockFlow (positioned) {DIV} at (8,16) size 638x38
-    LayoutBlockFlow {DIV} at (0,0) size 638x30
-      LayoutBlockFlow (anonymous) at (0,0) size 638x20
-        LayoutText {#text} at (0,0) size 638x19
-          text run at (0,0) width 638: "crbug.com/303728: Fixed-position header Line is statically positioned and will be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 638x2 [border: (1px inset #EEEEEE)]
-layer at (8,2685) size 589x38 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (8,2685) size 589x38
-    LayoutBlockFlow {DIV} at (0,8) size 589x30
-      LayoutBlockFlow {HR} at (0,0) size 589x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 589x20
-        LayoutText {#text} at (0,0) size 589x19
-          text run at (0,0) width 589: "crbug.com/303728: Footer Line is statically positioned and should not be repeated on every page."
diff --git a/third_party/WebKit/LayoutTests/platform/win7/printing/fixed-positioned-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/printing/fixed-positioned-headers-and-footers-expected.txt
deleted file mode 100644
index a8404c5a..0000000
--- a/third_party/WebKit/LayoutTests/platform/win7/printing/fixed-positioned-headers-and-footers-expected.txt
+++ /dev/null
@@ -1,241 +0,0 @@
-layer at (0,0) size 1046x799 scrollHeight 2685
-  LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
-      LayoutBlockFlow {P} at (0,0) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,36) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,72) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,108) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,144) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,180) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,216) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,252) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,288) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,324) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,360) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,396) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,432) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,468) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,504) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,540) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,576) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,648) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,684) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,720) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,756) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,819) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,855) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,891) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,927) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,963) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,999) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1035) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1071) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1107) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1143) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1179) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1215) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1251) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1287) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1323) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1359) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1431) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1467) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1503) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1539) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1618) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1654) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1690) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1726) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1762) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1798) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1834) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1870) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1906) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1942) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1978) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2014) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2050) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2086) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2122) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2158) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2230) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2266) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2302) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2338) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2417) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2453) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2489) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2525) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2561) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2597) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2633) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-layer at (8,0) size 497x38
-  LayoutBlockFlow (positioned) {DIV} at (8,0) size 497x38
-    LayoutBlockFlow {DIV} at (0,0) size 497x30
-      LayoutBlockFlow (anonymous) at (0,0) size 497x20
-        LayoutText {#text} at (0,0) size 497x19
-          text run at (0,0) width 497: "crbug.com/303728: Fixed-position header Line should be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 497x2 [border: (1px inset #EEEEEE)]
-layer at (8,761) size 406x38
-  LayoutBlockFlow (positioned) {DIV} at (8,761) size 406x38
-    LayoutBlockFlow {DIV} at (0,8) size 406x30
-      LayoutBlockFlow {HR} at (0,0) size 406x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 406x20
-        LayoutText {#text} at (0,0) size 406x19
-          text run at (0,0) width 406: "crbug.com/303728: Footer Line should be repeated on every page."
diff --git a/third_party/WebKit/LayoutTests/platform/win7/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
deleted file mode 100644
index 7b8805af..0000000
--- a/third_party/WebKit/LayoutTests/platform/win7/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
+++ /dev/null
@@ -1,245 +0,0 @@
-layer at (0,0) size 1046x799 scrollHeight 2685
-  LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
-      LayoutBlockFlow {P} at (0,0) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,36) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,72) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,108) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,144) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,180) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,216) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,252) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,288) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,324) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,360) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,396) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,432) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,468) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,504) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,540) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,576) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,648) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,684) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,720) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,756) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,819) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,855) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,891) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,927) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,963) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,999) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1035) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1071) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1107) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1143) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1179) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1215) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1251) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1287) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1323) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1359) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1431) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1467) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1503) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1539) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1618) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1654) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1690) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1726) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1762) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1798) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1834) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1870) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1906) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1942) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1978) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2014) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2050) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2086) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2122) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2158) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2230) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2266) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2302) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2338) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2417) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2453) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2489) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2525) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2561) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2597) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2633) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-layer at (8,16) size 1030x0
-  LayoutBlockFlow {DIV} at (0,0) size 1030x0
-layer at (8,16) size 433x38
-  LayoutBlockFlow (positioned) {DIV} at (0,0) size 433x38
-    LayoutBlockFlow {DIV} at (0,0) size 433x30
-      LayoutBlockFlow (anonymous) at (0,0) size 433x20
-        LayoutText {#text} at (0,0) size 433x19
-          text run at (0,0) width 433: "crbug.com/303728: Header Line should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 433x2 [border: (1px inset #EEEEEE)]
-layer at (8,2685) size 1030x0
-  LayoutBlockFlow {DIV} at (0,2669) size 1030x0
-layer at (8,2647) size 429x38 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (0,-38) size 429x38
-    LayoutBlockFlow {DIV} at (0,8) size 429x30
-      LayoutBlockFlow {HR} at (0,0) size 429x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 429x20
-        LayoutText {#text} at (0,0) size 429x19
-          text run at (0,0) width 429: "crbug.com/303728: Footer Line should not be repeated on every page."
diff --git a/third_party/WebKit/LayoutTests/platform/win7/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
deleted file mode 100644
index dfba2f27..0000000
--- a/third_party/WebKit/LayoutTests/platform/win7/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
+++ /dev/null
@@ -1,241 +0,0 @@
-layer at (0,0) size 1046x799 scrollHeight 2685
-  LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
-      LayoutBlockFlow {P} at (0,0) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,36) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,72) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,108) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,144) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,180) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,216) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,252) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,288) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,324) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,360) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,396) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,432) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,468) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,504) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,540) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,576) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,648) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,684) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,720) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,756) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,819) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,855) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,891) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,927) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,963) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,999) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1035) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1071) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1107) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1143) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1179) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1215) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1251) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1287) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1323) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1359) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1431) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1467) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1503) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1539) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1618) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1654) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1690) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1726) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1762) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1798) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1834) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1870) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1906) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1942) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1978) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2014) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2050) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2086) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2122) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2158) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2230) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2266) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2302) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2338) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2417) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2453) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2489) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2525) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2561) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2597) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2633) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-layer at (8,0) size 2010x48 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (8,0) size 2010x48 [border: (5px solid #000000)]
-    LayoutBlockFlow {DIV} at (5,5) size 2000x30
-      LayoutBlockFlow (anonymous) at (0,0) size 2000x20
-        LayoutText {#text} at (0,0) size 672x19
-          text run at (0,0) width 672: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
-      LayoutBlockFlow {HR} at (0,28) size 2000x2 [border: (1px inset #EEEEEE)]
-layer at (8,751) size 2010x48 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (8,751) size 2010x48 [border: (5px solid #000000)]
-    LayoutBlockFlow {DIV} at (5,13) size 2000x30
-      LayoutBlockFlow {HR} at (0,0) size 2000x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 2000x20
-        LayoutText {#text} at (0,0) size 672x19
-          text run at (0,0) width 672: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
diff --git a/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/font_properties/font-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/font_properties/font-expected.txt
index 8da4ee6..e61c2b3 100644
--- a/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/font_properties/font-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/font_properties/font-expected.txt
@@ -32,7 +32,6 @@
           text run at (301,150) width 0: " "
           text run at (0,165) width 266: "SPAN.color {background-color: silver;}"
           text run at (266,165) width 0: " "
-      LayoutBlockFlow {HR} at (0,220) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,234) size 769x16
         LayoutText {#text} at (0,0) size 721x15
           text run at (0,0) width 431: "This element is unstyled, and should inherit a font-size of 12px from the BODY element. "
@@ -228,3 +227,5 @@
                     text run at (0,310) width 743: "color has been set on an inline element and should therefore only cover"
                     text run at (0,382) width 353: "the text, not the interline spacing."
                 LayoutText {#text} at (0,0) size 0x0
+layer at (8,228) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,220) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/font_properties/font_family-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/font_properties/font_family-expected.txt
index 98da0f0e..49f9c24 100644
--- a/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/font_properties/font_family-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/font_properties/font_family-expected.txt
@@ -26,7 +26,6 @@
           text run at (312,112) width 0: " "
           text run at (0,128) width 304: ".seven {font-family: monospace,serif;}"
           text run at (304,128) width 0: " "
-      LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,211) size 769x198
         LayoutBlockFlow {P} at (0,0) size 769x20
           LayoutText {#text} at (0,0) size 599x19
@@ -46,14 +45,12 @@
         LayoutBlockFlow {P} at (0,182) size 769x16
           LayoutText {#text} at (0,0) size 352x16
             text run at (0,0) width 352: "This sentence should be in a monospace font."
-      LayoutBlockFlow {HR} at (0,422) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,440) size 769x19
         LayoutText {#text} at (0,0) size 383x18
           text run at (0,0) width 383: "This sentence should be in a sans-serif font, not cursive."
       LayoutBlockFlow {P} at (0,475) size 769x18
         LayoutText {#text} at (0,0) size 550x18
           text run at (0,0) width 550: "This sentence should be in a monospace font, not serif."
-      LayoutBlockFlow {HR} at (0,509) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {DIV} at (0,524) size 769x210
         LayoutBlockFlow {P} at (0,0) size 769x32
           LayoutText {#text} at (0,0) size 768x32
@@ -105,14 +102,12 @@
                 LayoutBlockFlow {P} at (0,182) size 747x16
                   LayoutText {#text} at (0,0) size 352x16
                     text run at (0,0) width 352: "This sentence should be in a monospace font."
-              LayoutBlockFlow {HR} at (4,215) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {P} at (4,233) size 747x19
                 LayoutText {#text} at (0,0) size 383x18
                   text run at (0,0) width 383: "This sentence should be in a sans-serif font, not cursive."
               LayoutBlockFlow {P} at (4,268) size 747x18
                 LayoutText {#text} at (0,0) size 550x18
                   text run at (0,0) width 550: "This sentence should be in a monospace font, not serif."
-              LayoutBlockFlow {HR} at (4,302) size 747x2 [border: (1px inset #EEEEEE)]
               LayoutBlockFlow {DIV} at (4,317) size 747x210
                 LayoutBlockFlow {P} at (0,0) size 747x32
                   LayoutText {#text} at (0,0) size 728x32
@@ -133,3 +128,13 @@
                 LayoutBlockFlow {P} at (0,194) size 747x16
                   LayoutText {#text} at (0,0) size 352x16
                     text run at (0,0) width 352: "This sentence should be in a monospace font."
+layer at (8,201) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,193) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,430) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,422) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (8,517) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,509) size 769x2 [border: (1px inset #EEEEEE)]
+layer at (25,999) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,215) size 747x2 [border: (1px inset #EEEEEE)]
+layer at (25,1086) size 747x2 backgroundClip at (0,0) size 0x0 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (4,302) size 747x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/font_properties/font_variant-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/font_properties/font_variant-expected.txt
index e28d2df..788c3da 100644
--- a/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/font_properties/font_variant-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/font_properties/font_variant-expected.txt
@@ -13,7 +13,6 @@
           text run at (0,16) width 224: ".two {font-variant: normal;}"
           text run at (224,16) width 0: " "
           text run at (0,32) width 0: " "
-      LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,115) size 784x20
         LayoutText {#text} at (0,0) size 265x19
           text run at (0,0) width 265: "This Paragraph should be in Small Caps."
@@ -48,3 +47,5 @@
                     text run at (573,0) width 46: "Normal"
                 LayoutText {#text} at (619,0) size 4x19
                   text run at (619,0) width 4: "."
+layer at (8,105) size 784x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,97) size 784x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/pseudo/firstline-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/pseudo/firstline-expected.txt
index 91b42a96..faf3ecca 100644
--- a/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/pseudo/firstline-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/pseudo/firstline-expected.txt
@@ -15,7 +15,6 @@
           text run at (0,32) width 360: ".three:first-line {font-variant: small-caps;}"
           text run at (360,32) width 0: " "
           text run at (0,48) width 0: " "
-      LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,131) size 769x60
         LayoutText {#text} at (0,0) size 758x59
           text run at (0,0) width 400: "The first line of this paragraph, and only that one, should be green. "
@@ -81,3 +80,5 @@
                   text run at (237,40) width 218: " is not supported by your browser). "
                   text run at (455,40) width 270: "This is extra text included for the purposes of"
                   text run at (0,60) width 372: "making the paragraph long enough to have more than one line."
+layer at (8,121) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,113) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/pseudo/multiple_pseudo_elements-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/pseudo/multiple_pseudo_elements-expected.txt
index 1e6de73..cbd9e20 100644
--- a/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/pseudo/multiple_pseudo_elements-expected.txt
+++ b/third_party/WebKit/LayoutTests/platform/win7/virtual/mojo-loading/css1/pseudo/multiple_pseudo_elements-expected.txt
@@ -24,7 +24,6 @@
           text run at (0,80) width 368: "P.three:first-line {font-variant: small-caps;}"
           text run at (368,80) width 0: " "
           text run at (0,96) width 0: " "
-      LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
       LayoutBlockFlow {P} at (0,179) size 769x60
         LayoutInline {<pseudo:first-letter>} at (0,0) size 9x19 [color=#800000]
           LayoutTextFragment (anonymous) at (0,0) size 9x19
@@ -101,3 +100,5 @@
                   text run at (0,86) width 685: "that the inclusion of both the quotation mark and the 'W' in the first-letter style is not required under CSS1, but it is"
                   text run at (0,106) width 94: "recommended. "
                   text run at (94,106) width 426: "In addition, the entire first line should be in a small-caps font and green."
+layer at (8,169) size 769x2 clip at (0,0) size 0x0
+  LayoutBlockFlow {HR} at (0,161) size 769x2 [border: (1px inset #EEEEEE)]
diff --git a/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt
deleted file mode 100644
index 39d1f589..0000000
--- a/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/absolute-position-headers-and-footers-expected.txt
+++ /dev/null
@@ -1,241 +0,0 @@
-layer at (0,0) size 1046x799 scrollHeight 2685
-  LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
-      LayoutBlockFlow {P} at (0,0) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,36) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,72) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,108) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,144) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,180) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,216) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,252) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,288) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,324) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,360) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,396) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,432) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,468) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,504) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,540) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,576) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,648) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,684) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,720) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,756) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,819) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,855) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,891) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,927) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,963) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,999) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1035) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1071) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1107) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1143) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1179) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1215) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1251) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1287) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1323) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1359) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1431) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1467) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1503) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1539) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1618) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1654) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1690) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1726) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1762) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1798) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1834) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1870) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1906) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1942) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1978) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2014) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2050) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2086) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2122) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2158) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2230) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2266) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2302) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2338) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2417) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2453) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2489) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2525) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2561) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2597) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2633) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-layer at (8,0) size 584x38
-  LayoutBlockFlow (positioned) {DIV} at (8,0) size 584x38
-    LayoutBlockFlow {DIV} at (0,0) size 584x30
-      LayoutBlockFlow (anonymous) at (0,0) size 584x20
-        LayoutText {#text} at (0,0) size 584x19
-          text run at (0,0) width 584: "crbug.com/303728: Header Line is absolute positioned so should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 584x2 [border: (1px inset #EEEEEE)]
-layer at (8,761) size 580x38
-  LayoutBlockFlow (positioned) {DIV} at (8,761) size 580x38
-    LayoutBlockFlow {DIV} at (0,8) size 580x30
-      LayoutBlockFlow {HR} at (0,0) size 580x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 580x20
-        LayoutText {#text} at (0,0) size 580x19
-          text run at (0,0) width 580: "crbug.com/303728: Footer Line is absolute positioned so should not be repeated on every page."
diff --git a/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
deleted file mode 100644
index 952bf3b..0000000
--- a/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/fixed-positioned-but-static-headers-and-footers-expected.txt
+++ /dev/null
@@ -1,241 +0,0 @@
-layer at (0,0) size 1046x799 scrollHeight 2685
-  LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
-      LayoutBlockFlow {P} at (0,0) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,36) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,72) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,108) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,144) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,180) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,216) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,252) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,288) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,324) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,360) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,396) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,432) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,468) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,504) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,540) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,576) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,648) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,684) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,720) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,756) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,819) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,855) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,891) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,927) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,963) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,999) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1035) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1071) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1107) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1143) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1179) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1215) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1251) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1287) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1323) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1359) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1431) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1467) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1503) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1539) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1618) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1654) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1690) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1726) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1762) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1798) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1834) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1870) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1906) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1942) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1978) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2014) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2050) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2086) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2122) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2158) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2230) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2266) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2302) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2338) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2417) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2453) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2489) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2525) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2561) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2597) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2633) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-layer at (8,16) size 638x38
-  LayoutBlockFlow (positioned) {DIV} at (8,16) size 638x38
-    LayoutBlockFlow {DIV} at (0,0) size 638x30
-      LayoutBlockFlow (anonymous) at (0,0) size 638x20
-        LayoutText {#text} at (0,0) size 638x19
-          text run at (0,0) width 638: "crbug.com/303728: Fixed-position header Line is statically positioned and will be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 638x2 [border: (1px inset #EEEEEE)]
-layer at (8,2685) size 589x38 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (8,2685) size 589x38
-    LayoutBlockFlow {DIV} at (0,8) size 589x30
-      LayoutBlockFlow {HR} at (0,0) size 589x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 589x20
-        LayoutText {#text} at (0,0) size 589x19
-          text run at (0,0) width 589: "crbug.com/303728: Footer Line is statically positioned and should not be repeated on every page."
diff --git a/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt
deleted file mode 100644
index a8404c5a..0000000
--- a/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/fixed-positioned-headers-and-footers-expected.txt
+++ /dev/null
@@ -1,241 +0,0 @@
-layer at (0,0) size 1046x799 scrollHeight 2685
-  LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
-      LayoutBlockFlow {P} at (0,0) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,36) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,72) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,108) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,144) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,180) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,216) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,252) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,288) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,324) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,360) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,396) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,432) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,468) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,504) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,540) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,576) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,648) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,684) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,720) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,756) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,819) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,855) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,891) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,927) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,963) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,999) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1035) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1071) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1107) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1143) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1179) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1215) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1251) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1287) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1323) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1359) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1431) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1467) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1503) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1539) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1618) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1654) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1690) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1726) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1762) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1798) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1834) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1870) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1906) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1942) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1978) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2014) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2050) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2086) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2122) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2158) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2230) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2266) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2302) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2338) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2417) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2453) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2489) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2525) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2561) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2597) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2633) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-layer at (8,0) size 497x38
-  LayoutBlockFlow (positioned) {DIV} at (8,0) size 497x38
-    LayoutBlockFlow {DIV} at (0,0) size 497x30
-      LayoutBlockFlow (anonymous) at (0,0) size 497x20
-        LayoutText {#text} at (0,0) size 497x19
-          text run at (0,0) width 497: "crbug.com/303728: Fixed-position header Line should be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 497x2 [border: (1px inset #EEEEEE)]
-layer at (8,761) size 406x38
-  LayoutBlockFlow (positioned) {DIV} at (8,761) size 406x38
-    LayoutBlockFlow {DIV} at (0,8) size 406x30
-      LayoutBlockFlow {HR} at (0,0) size 406x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 406x20
-        LayoutText {#text} at (0,0) size 406x19
-          text run at (0,0) width 406: "crbug.com/303728: Footer Line should be repeated on every page."
diff --git a/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
deleted file mode 100644
index 7b8805af..0000000
--- a/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/fixed-positioned-headers-and-footers-inside-transform-expected.txt
+++ /dev/null
@@ -1,245 +0,0 @@
-layer at (0,0) size 1046x799 scrollHeight 2685
-  LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
-      LayoutBlockFlow {P} at (0,0) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,36) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,72) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,108) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,144) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,180) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,216) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,252) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,288) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,324) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,360) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,396) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,432) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,468) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,504) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,540) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,576) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,648) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,684) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,720) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,756) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,819) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,855) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,891) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,927) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,963) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,999) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1035) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1071) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1107) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1143) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1179) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1215) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1251) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1287) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1323) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1359) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1431) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1467) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1503) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1539) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1618) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1654) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1690) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1726) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1762) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1798) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1834) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1870) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1906) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1942) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1978) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2014) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2050) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2086) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2122) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2158) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2230) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2266) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2302) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2338) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2417) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2453) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2489) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2525) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2561) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2597) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2633) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-layer at (8,16) size 1030x0
-  LayoutBlockFlow {DIV} at (0,0) size 1030x0
-layer at (8,16) size 433x38
-  LayoutBlockFlow (positioned) {DIV} at (0,0) size 433x38
-    LayoutBlockFlow {DIV} at (0,0) size 433x30
-      LayoutBlockFlow (anonymous) at (0,0) size 433x20
-        LayoutText {#text} at (0,0) size 433x19
-          text run at (0,0) width 433: "crbug.com/303728: Header Line should not be repeated on every page."
-      LayoutBlockFlow {HR} at (0,28) size 433x2 [border: (1px inset #EEEEEE)]
-layer at (8,2685) size 1030x0
-  LayoutBlockFlow {DIV} at (0,2669) size 1030x0
-layer at (8,2647) size 429x38 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (0,-38) size 429x38
-    LayoutBlockFlow {DIV} at (0,8) size 429x30
-      LayoutBlockFlow {HR} at (0,0) size 429x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 429x20
-        LayoutText {#text} at (0,0) size 429x19
-          text run at (0,0) width 429: "crbug.com/303728: Footer Line should not be repeated on every page."
diff --git a/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt b/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
deleted file mode 100644
index dfba2f27..0000000
--- a/third_party/WebKit/LayoutTests/platform/win7/virtual/threaded/printing/fixed-positioned-headers-and-footers-larger-than-page-expected.txt
+++ /dev/null
@@ -1,241 +0,0 @@
-layer at (0,0) size 1046x799 scrollHeight 2685
-  LayoutView at (0,0) size 1046x799
-layer at (0,0) size 1046x2685 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow {HTML} at (0,0) size 1046x2685
-    LayoutBlockFlow {BODY} at (8,16) size 1030x2653
-      LayoutBlockFlow {P} at (0,0) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,36) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,72) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,108) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,144) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,180) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,216) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,252) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,288) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,324) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,360) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,396) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,432) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,468) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,504) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,540) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,576) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,612) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,648) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,684) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,720) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,756) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,783) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,819) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,855) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,891) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,927) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,963) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,999) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1035) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1071) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1107) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1143) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1179) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1215) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1251) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1287) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1323) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1359) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1395) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1431) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1467) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1503) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1539) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1582) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1618) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1654) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1690) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1726) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1762) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1798) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1834) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1870) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1906) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1942) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,1978) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2014) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2050) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2086) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2122) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2158) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2194) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2230) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2266) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2302) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2338) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2381) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2417) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2453) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2489) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2525) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2561) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2597) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-      LayoutBlockFlow {P} at (0,2633) size 1030x20
-        LayoutText {#text} at (0,0) size 60x19
-          text run at (0,0) width 60: "Filler lines"
-layer at (8,0) size 2010x48 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (8,0) size 2010x48 [border: (5px solid #000000)]
-    LayoutBlockFlow {DIV} at (5,5) size 2000x30
-      LayoutBlockFlow (anonymous) at (0,0) size 2000x20
-        LayoutText {#text} at (0,0) size 672x19
-          text run at (0,0) width 672: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
-      LayoutBlockFlow {HR} at (0,28) size 2000x2 [border: (1px inset #EEEEEE)]
-layer at (8,751) size 2010x48 backgroundClip at (0,0) size 1046x799 clip at (0,0) size 1046x799
-  LayoutBlockFlow (positioned) {DIV} at (8,751) size 2010x48 [border: (5px solid #000000)]
-    LayoutBlockFlow {DIV} at (5,13) size 2000x30
-      LayoutBlockFlow {HR} at (0,0) size 2000x2 [border: (1px inset #EEEEEE)]
-      LayoutBlockFlow (anonymous) at (0,10) size 2000x20
-        LayoutText {#text} at (0,0) size 672x19
-          text run at (0,0) width 672: "crbug.com/303728: Footer Line should be repeated on every page and should be clipped because it's too wide."
diff --git a/third_party/WebKit/LayoutTests/resources/idlharness.js b/third_party/WebKit/LayoutTests/resources/idlharness.js
index 9dd8b4ad..b04e8b5 100644
--- a/third_party/WebKit/LayoutTests/resources/idlharness.js
+++ b/third_party/WebKit/LayoutTests/resources/idlharness.js
@@ -1137,6 +1137,83 @@
         }
     }.bind(this), this.name + " interface: existence and properties of interface prototype object");
 
+    if (this.is_global() && typeof Object.setPrototypeOf === "function") {
+        // These functions test WebIDL as of 2017-06-06.
+        // https://heycam.github.io/webidl/#platform-object-setprototypeof
+        test(function() {
+            var originalValue = Object.getPrototypeOf(self[this.name].prototype);
+            var newValue = Object.create(null);
+
+            assert_throws(new TypeError(), function() {
+                Object.setPrototypeOf(self[this.name].prototype, newValue);
+            });
+
+            assert_equals(
+                    Object.getPrototypeOf(self[this.name].prototype),
+                    originalValue,
+                    "original value not modified"
+                );
+        }.bind(this), this.name + " interface: internal [[SetPrototypeOf]] method " +
+            "of global platform object - setting to a new value via Object.setPrototypeOf " +
+            "should throw a TypeError");
+
+        test(function() {
+            var originalValue = Object.getPrototypeOf(self[this.name].prototype);
+            var newValue = Object.create(null);
+
+            assert_throws(new TypeError(), function() {
+                self[this.name].prototype.__proto__ = newValue;
+            });
+
+            assert_equals(
+                    Object.getPrototypeOf(self[this.name].prototype),
+                    originalValue,
+                    "original value not modified"
+                );
+        }.bind(this), this.name + " interface: internal [[SetPrototypeOf]] method " +
+            "of global platform object - setting to a new value via __proto__ " +
+            "should throw a TypeError");
+
+        test(function() {
+            var originalValue = Object.getPrototypeOf(self[this.name].prototype);
+            var newValue = Object.create(null);
+
+            assert_false(Reflect.setPrototypeOf(self[this.name].prototype.__proto__, newValue));
+
+            assert_equals(
+                    Object.getPrototypeOf(self[this.name].prototype),
+                    originalValue,
+                    "original value not modified"
+                );
+        }.bind(this), this.name + " interface: internal [[SetPrototypeOf]] method " +
+            "of global platform object - setting to a new value via Reflect.setPrototypeOf " +
+            "should return false");
+
+        test(function() {
+            var originalValue = Object.getPrototypeOf(self[this.name].prototype);
+
+            Object.setPrototypeOf(self[this.name].prototype, originalValue);
+        }.bind(this), this.name + " interface: internal [[SetPrototypeOf]] method " +
+            "of global platform object - setting to its original value via Object.setPrototypeOf " +
+            "should not throw");
+
+        test(function() {
+            var originalValue = Object.getPrototypeOf(self[this.name].prototype);
+
+            self[this.name].prototype.__proto__ = originalValue;
+        }.bind(this), this.name + " interface: internal [[SetPrototypeOf]] method " +
+            "of global platform object - setting to its original value via __proto__ " +
+            "should not throw");
+
+        test(function() {
+            var originalValue = Object.getPrototypeOf(self[this.name].prototype);
+
+            assert_true(Reflect.setPrototypeOf(self[this.name].prototype, originalValue));
+        }.bind(this), this.name + " interface: internal [[SetPrototypeOf]] method " +
+            "of global platform object - setting to its original value via Reflect.setPrototypeOf " +
+            "should return true");
+    }
+
     test(function()
     {
         if (this.is_callback() && !this.has_constants()) {
diff --git a/third_party/WebKit/LayoutTests/resources/testharness.js b/third_party/WebKit/LayoutTests/resources/testharness.js
index 0e6f760..39aa686c 100644
--- a/third_party/WebKit/LayoutTests/resources/testharness.js
+++ b/third_party/WebKit/LayoutTests/resources/testharness.js
@@ -1326,7 +1326,8 @@
         }
         this.name = name;
 
-        this.phase = this.phases.INITIAL;
+        this.phase = tests.phase === tests.phases.ABORTED ?
+            this.phases.COMPLETE : this.phases.INITIAL;
 
         this.status = this.NOTRUN;
         this.timeout_id = null;
@@ -1522,11 +1523,35 @@
         this.cleanup();
     };
 
+    /*
+     * Invoke all specified cleanup functions. If one or more produce an error,
+     * the context is in an unpredictable state, so all further testing should
+     * be cancelled.
+     */
     Test.prototype.cleanup = function() {
+        var error_count = 0;
+        var total;
+
         forEach(this.cleanup_callbacks,
                 function(cleanup_callback) {
-                    cleanup_callback();
+                    try {
+                        cleanup_callback();
+                    } catch (e) {
+                        // Set test phase immediately so that tests declared
+                        // within subsequent cleanup functions are not run.
+                        tests.phase = tests.phases.ABORTED;
+                        error_count += 1;
+                    }
                 });
+
+        if (error_count > 0) {
+            total = this.cleanup_callbacks.length;
+            tests.status.status = tests.status.ERROR;
+            tests.status.message = "Test named '" + this.name +
+                "' specified " + total + " 'cleanup' function" +
+                (total > 1 ? "s" : "") + ", and " + error_count + " failed.";
+            tests.status.stack = null;
+        }
     };
 
     /*
@@ -1710,7 +1735,8 @@
             SETUP:1,
             HAVE_TESTS:2,
             HAVE_RESULTS:3,
-            COMPLETE:4
+            COMPLETE:4,
+            ABORTED:5
         };
         this.phase = this.phases.INITIAL;
 
@@ -1844,7 +1870,8 @@
     };
 
     Tests.prototype.all_done = function() {
-        return (this.tests.length > 0 && test_environment.all_loaded &&
+        return this.phase === this.phases.ABORTED ||
+            (this.tests.length > 0 && test_environment.all_loaded &&
                 this.num_pending === 0 && !this.wait_for_finish &&
                 !this.processing_callbacks &&
                 !this.pending_remotes.some(function(w) { return w.running; }));
diff --git a/third_party/WebKit/LayoutTests/virtual/enable_wasm/external/wpt/wasm/wasm_service_worker_test-expected.txt b/third_party/WebKit/LayoutTests/virtual/enable_wasm/external/wpt/wasm/wasm_service_worker_test-expected.txt
new file mode 100644
index 0000000..157d422
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/virtual/enable_wasm/external/wpt/wasm/wasm_service_worker_test-expected.txt
@@ -0,0 +1,4 @@
+This is a testharness.js-based test.
+FAIL postMessaging wasm from a service worker should fail promise_test: Unhandled rejection with value: object "ReferenceError: service_worker_unregister_and_register is not defined"
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/Source/core/css/html.css b/third_party/WebKit/Source/core/css/html.css
index 854abfa4..9e38e56 100644
--- a/third_party/WebKit/Source/core/css/html.css
+++ b/third_party/WebKit/Source/core/css/html.css
@@ -132,6 +132,8 @@
 
 hr {
     display: block;
+    overflow: hidden;
+    unicode-bidi: isolate;
     -webkit-margin-before: 0.5em;
     -webkit-margin-after: 0.5em;
     -webkit-margin-start: auto;
diff --git a/third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp b/third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp
index cf737ea..da528e4 100644
--- a/third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp
+++ b/third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp
@@ -27,8 +27,7 @@
   void PostNonNestableIdleTask(const WebTraceLocation&,
                                WebThread::IdleTask*) override {}
   std::unique_ptr<WebViewScheduler> CreateWebViewScheduler(
-      InterventionReporter*,
-      WebViewScheduler::WebViewSchedulerSettings*) override {
+      InterventionReporter*) override {
     return nullptr;
   }
   WebTaskRunner* CompositorTaskRunner() override { return nullptr; }
diff --git a/third_party/WebKit/Source/core/dom/ModuleScript.cpp b/third_party/WebKit/Source/core/dom/ModuleScript.cpp
index 7758d41..1a0d1b1 100644
--- a/third_party/WebKit/Source/core/dom/ModuleScript.cpp
+++ b/third_party/WebKit/Source/core/dom/ModuleScript.cpp
@@ -11,6 +11,19 @@
 
 namespace blink {
 
+const char* ModuleInstantiationStateToString(ModuleInstantiationState state) {
+  switch (state) {
+    case ModuleInstantiationState::kUninstantiated:
+      return "uninstantiated";
+    case ModuleInstantiationState::kInstantiated:
+      return "instantiated";
+    case ModuleInstantiationState::kErrored:
+      return "errored";
+  }
+  NOTREACHED();
+  return "";
+}
+
 ModuleScript* ModuleScript::Create(
     const String& source_text,
     Modulator* modulator,
@@ -144,7 +157,13 @@
   return ScriptModule(isolate, record_.NewLocal(isolate));
 }
 
+bool ModuleScript::HasEmptyRecord() const {
+  return record_.IsEmpty();
+}
+
 void ModuleScript::SetErrorAndClearRecord(ScriptValue error) {
+  DVLOG(1) << "ModuleScript[" << this << "]::SetErrorAndClearRecord()";
+
   // https://html.spec.whatwg.org/multipage/webappapis.html#error-a-module-script
   // Step 1. Assert: script's state is not "errored".
   DCHECK_NE(state_, ModuleInstantiationState::kErrored);
diff --git a/third_party/WebKit/Source/core/dom/ModuleScript.h b/third_party/WebKit/Source/core/dom/ModuleScript.h
index b0d5081..3070e50 100644
--- a/third_party/WebKit/Source/core/dom/ModuleScript.h
+++ b/third_party/WebKit/Source/core/dom/ModuleScript.h
@@ -27,6 +27,8 @@
   kInstantiated,
 };
 
+const char* ModuleInstantiationStateToString(ModuleInstantiationState);
+
 // ModuleScript is a model object for the "module script" spec concept.
 // https://html.spec.whatwg.org/multipage/webappapis.html#module-script
 class CORE_EXPORT ModuleScript final : public Script, public TraceWrapperBase {
@@ -54,6 +56,7 @@
   ~ModuleScript() override = default;
 
   ScriptModule Record() const;
+  bool HasEmptyRecord() const;
   const KURL& BaseURL() const { return base_url_; }
 
   ModuleInstantiationState State() const { return state_; }
diff --git a/third_party/WebKit/Source/core/dom/ScriptedIdleTaskControllerTest.cpp b/third_party/WebKit/Source/core/dom/ScriptedIdleTaskControllerTest.cpp
index c1cc0ed5..3aa6933 100644
--- a/third_party/WebKit/Source/core/dom/ScriptedIdleTaskControllerTest.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptedIdleTaskControllerTest.cpp
@@ -35,8 +35,7 @@
   void PostNonNestableIdleTask(const WebTraceLocation&,
                                WebThread::IdleTask*) override {}
   std::unique_ptr<WebViewScheduler> CreateWebViewScheduler(
-      InterventionReporter*,
-      WebViewScheduler::WebViewSchedulerSettings*) override {
+      InterventionReporter*) override {
     return nullptr;
   }
   void SuspendTimerQueue() override {}
diff --git a/third_party/WebKit/Source/core/exported/WebSettingsImpl.cpp b/third_party/WebKit/Source/core/exported/WebSettingsImpl.cpp
index ade2c9c..f1f19e6 100644
--- a/third_party/WebKit/Source/core/exported/WebSettingsImpl.cpp
+++ b/third_party/WebKit/Source/core/exported/WebSettingsImpl.cpp
@@ -51,11 +51,7 @@
       shrinks_viewport_content_to_fit_(false),
       viewport_meta_layout_size_quirk_(false),
       viewport_meta_non_user_scalable_quirk_(false),
-      clobber_user_agent_initial_scale_quirk_(false),
-      expensive_background_throttling_cpu_budget_(-1),
-      expensive_background_throttling_initial_budget_(-1),
-      expensive_background_throttling_max_budget_(-1),
-      expensive_background_throttling_max_delay_(-1) {
+      clobber_user_agent_initial_scale_quirk_(false) {
   DCHECK(settings);
 }
 
@@ -701,26 +697,6 @@
   dev_tools_emulator_->SetViewportStyle(style);
 }
 
-void WebSettingsImpl::SetExpensiveBackgroundThrottlingCPUBudget(
-    float cpu_budget) {
-  expensive_background_throttling_cpu_budget_ = cpu_budget;
-}
-
-void WebSettingsImpl::SetExpensiveBackgroundThrottlingInitialBudget(
-    float initial_budget) {
-  expensive_background_throttling_initial_budget_ = initial_budget;
-}
-
-void WebSettingsImpl::SetExpensiveBackgroundThrottlingMaxBudget(
-    float max_budget) {
-  expensive_background_throttling_max_budget_ = max_budget;
-}
-
-void WebSettingsImpl::SetExpensiveBackgroundThrottlingMaxDelay(
-    float max_delay) {
-  expensive_background_throttling_max_delay_ = max_delay;
-}
-
 void WebSettingsImpl::SetMediaControlsEnabled(bool enabled) {
   settings_->SetMediaControlsEnabled(enabled);
 }
diff --git a/third_party/WebKit/Source/core/exported/WebSettingsImpl.h b/third_party/WebKit/Source/core/exported/WebSettingsImpl.h
index 3510335..11b3df7 100644
--- a/third_party/WebKit/Source/core/exported/WebSettingsImpl.h
+++ b/third_party/WebKit/Source/core/exported/WebSettingsImpl.h
@@ -201,10 +201,6 @@
   void SetWebSecurityEnabled(bool) override;
   void SetWideViewportQuirkEnabled(bool) override;
   void SetXSSAuditorEnabled(bool) override;
-  void SetExpensiveBackgroundThrottlingCPUBudget(float) override;
-  void SetExpensiveBackgroundThrottlingInitialBudget(float) override;
-  void SetExpensiveBackgroundThrottlingMaxBudget(float) override;
-  void SetExpensiveBackgroundThrottlingMaxDelay(float) override;
   void SetMediaControlsEnabled(bool) override;
   void SetDoNotUpdateSelectionOnMutatingSelectionRange(bool) override;
 
@@ -231,18 +227,6 @@
   bool ClobberUserAgentInitialScaleQuirk() const {
     return clobber_user_agent_initial_scale_quirk_;
   }
-  float ExpensiveBackgroundThrottlingCPUBudget() const {
-    return expensive_background_throttling_cpu_budget_;
-  }
-  float ExpensiveBackgroundThrottlingInitialBudget() const {
-    return expensive_background_throttling_initial_budget_;
-  }
-  float ExpensiveBackgroundThrottlingMaxDelay() const {
-    return expensive_background_throttling_max_delay_;
-  }
-  float ExpensiveBackgroundThrottlingMaxBudget() const {
-    return expensive_background_throttling_max_budget_;
-  }
 
   void SetMockGestureTapHighlightsEnabled(bool);
   bool MockGestureTapHighlightsEnabled() const;
@@ -269,10 +253,6 @@
   // the Android SDK prior to and including version 18. Presumably, this
   // can be removed any time after 2015. See http://crbug.com/313754.
   bool clobber_user_agent_initial_scale_quirk_;
-  float expensive_background_throttling_cpu_budget_;
-  float expensive_background_throttling_initial_budget_;
-  float expensive_background_throttling_max_budget_;
-  float expensive_background_throttling_max_delay_;
 };
 
 }  // namespace blink
diff --git a/third_party/WebKit/Source/core/exported/WebSharedWorkerImpl.cpp b/third_party/WebKit/Source/core/exported/WebSharedWorkerImpl.cpp
index 4829895..2f88f31 100644
--- a/third_party/WebKit/Source/core/exported/WebSharedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/core/exported/WebSharedWorkerImpl.cpp
@@ -64,6 +64,7 @@
 #include "platform/wtf/Functional.h"
 #include "platform/wtf/PtrUtil.h"
 #include "public/platform/Platform.h"
+#include "public/platform/WebContentSettingsClient.h"
 #include "public/platform/WebMessagePortChannel.h"
 #include "public/platform/WebString.h"
 #include "public/platform/WebURL.h"
@@ -74,7 +75,6 @@
 #include "public/web/WebFrame.h"
 #include "public/web/WebSettings.h"
 #include "public/web/WebView.h"
-#include "public/web/WebWorkerContentSettingsClientProxy.h"
 
 namespace blink {
 
@@ -346,8 +346,7 @@
   WebSecurityOrigin web_security_origin(loading_document_->GetSecurityOrigin());
   ProvideContentSettingsClientToWorker(
       worker_clients,
-      WTF::WrapUnique(client_->CreateWorkerContentSettingsClientProxy(
-          web_security_origin)));
+      client_->CreateWorkerContentSettingsClient(web_security_origin));
 
   if (RuntimeEnabledFeatures::OffMainThreadFetchEnabled()) {
     std::unique_ptr<WebWorkerFetchContext> web_worker_fetch_context =
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index 3de54c3..669b5453 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -448,6 +448,9 @@
   // If we use border-box sizing, have percentage padding, and our parent has
   // changed width then the width available to our children has changed even
   // though our own width has remained the same.
+  // TODO(mstensho): NeedsPreferredWidthsRecalculation() is used here to check
+  // if we have percentage padding, which is rather non-obvious. That method
+  // returns true in other cases as well.
   width_available_to_children_has_changed |=
       Style()->BoxSizing() == EBoxSizing::kBorderBox &&
       NeedsPreferredWidthsRecalculation() &&
@@ -586,11 +589,6 @@
       (height_available_to_children_changed_ &&
        ChangeInAvailableLogicalHeightAffectsChild(this, child))) {
     child.SetChildNeedsLayout(kMarkOnlyThis);
-
-    // If the child has percentage padding or an embedded content box, we also
-    // need to invalidate the childs pref widths.
-    if (child.NeedsPreferredWidthsRecalculation())
-      child.SetPreferredLogicalWidthsDirty(kMarkOnlyThis);
   }
 }
 
@@ -798,12 +796,6 @@
        NeedsLayoutDueToStaticPosition(positioned_object)))
     layout_scope.SetChildNeedsLayout(positioned_object);
 
-  // If relayoutChildren is set and the child has percentage padding or an
-  // embedded content box, we also need to invalidate the childs pref widths.
-  if (relayout_children &&
-      positioned_object->NeedsPreferredWidthsRecalculation())
-    positioned_object->SetPreferredLogicalWidthsDirty(kMarkOnlyThis);
-
   LayoutUnit logical_top_estimate;
   bool is_paginated = View()->GetLayoutState()->IsPaginated();
   bool needs_block_direction_location_set_before_layout =
@@ -1003,8 +995,6 @@
         (positioned_object->IsDescendantOf(o) && o != positioned_object)) {
       if (containing_block_state == kNewContainingBlock) {
         positioned_object->SetChildNeedsLayout(kMarkOnlyThis);
-        if (positioned_object->NeedsPreferredWidthsRecalculation())
-          positioned_object->SetPreferredLogicalWidthsDirty(kMarkOnlyThis);
 
         // The positioned object changing containing block may change paint
         // invalidation container.
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
index 476208fc..0e5c7ea 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
@@ -4286,14 +4286,6 @@
     return true;
   }
 
-  if (IsHR()) {
-    // Not mentioned in the spec, but we want HR elements to be pushed to the
-    // side by floats (and all engines seem to do that), since we use borders to
-    // render HR (and it would just ugly to let those borders be painted under
-    // the float).
-    return true;
-  }
-
   if (IsLegend()) {
     // This is wrong; see crbug.com/727378 . It may be that our current
     // implementation requires the rendered legend inside a FIELDSET to create a
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index a35862c..8c1b379 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -2579,7 +2579,52 @@
       FloatQuad(FloatRect(Layer()->MapLayoutRectForFilter(rect))));
 }
 
+static void MarkMinMaxWidthsAffectedByAncestorAsDirty(LayoutBox* box) {
+  box->SetPreferredLogicalWidthsDirty(kMarkOnlyThis);
+  for (LayoutObject* child = box->SlowFirstChild(); child;
+       child = child->NextSibling()) {
+    if (!child->IsBox())
+      continue;
+    LayoutBox* child_box = ToLayoutBox(child);
+    if (child_box->NeedsPreferredWidthsRecalculation())
+      MarkMinMaxWidthsAffectedByAncestorAsDirty(child_box);
+  }
+}
+
+static bool ShouldRecalculateMinMaxWidthsAffectedByAncestor(
+    const LayoutBox* box) {
+  if (const LayoutBox* containing_block = box->ContainingBlock()) {
+    if (containing_block->NeedsPreferredWidthsRecalculation()) {
+      // If our containing block also has min/max widths that are affected by
+      // the ancestry, we have already dealt with this object as well (because
+      // of what MarkMinMaxWidthsAffectedByAncestorAsDirty() does). Avoid
+      // unnecessary work and O(n^2) time complexity.
+      return false;
+    }
+  }
+  return true;
+}
+
 void LayoutBox::UpdateLogicalWidth() {
+  if (NeedsPreferredWidthsRecalculation()) {
+    if (ShouldRecalculateMinMaxWidthsAffectedByAncestor(this)) {
+      // Laying out this object means that its containing block is also being
+      // laid out. This object is special, in that its min/max widths depend on
+      // the ancestry (min/max width calculation should ideally be strictly
+      // bottom-up, but that's not always the case), so since the containing
+      // block size may have changed, we need to recalculate the min/max widths
+      // of this object, and every child that has the same issue, recursively.
+      MarkMinMaxWidthsAffectedByAncestorAsDirty(this);
+
+      // Since all this takes place during actual layout, instead of being part
+      // of min/max the width calculation machinery, we need to enter said
+      // machinery here, to make sure that what was dirtied is actualy
+      // recalculated. Leaving things dirty would mean that any subsequent
+      // dirtying of descendants would fail.
+      ComputePreferredLogicalWidths();
+    }
+  }
+
   LogicalExtentComputedValues computed_values;
   ComputeLogicalWidth(computed_values);
 
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h
index c44a646e..9bccd21 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -1247,6 +1247,16 @@
     return overflow_ && !BorderBoxRect().Contains(VisualOverflowRect());
   }
 
+  // Return true if re-laying out the containing block of this object means that
+  // we need to recalculate the preferred min/max logical widths of this object.
+  //
+  // Calculating min/max widths for an object should ideally only take itself
+  // and its children as input. However, some objects don't adhere strictly to
+  // this rule, and also take input from their containing block to figure out
+  // their min/max widths. This is the case for e.g. shrink-to-fit containers
+  // with percentage inline-axis padding. This isn't good practise, but that's
+  // how it is and how it's going to stay, unless we want to undertake a
+  // substantial maintenance task of the min/max preferred widths machinery.
   virtual bool NeedsPreferredWidthsRecalculation() const;
 
   // See README.md for an explanation of scroll origin.
diff --git a/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp b/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp
index ea773dc..47598cc 100644
--- a/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp
+++ b/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp
@@ -10,8 +10,10 @@
 #include "core/loader/modulescript/ModuleScriptFetchRequest.h"
 #include "core/loader/modulescript/ModuleTreeLinkerRegistry.h"
 #include "platform/WebTaskRunner.h"
+#include "platform/bindings/V8ThrowException.h"
 #include "platform/loader/fetch/ResourceLoadingLog.h"
 #include "platform/wtf/Vector.h"
+#include "v8/include/v8.h"
 
 namespace blink {
 
@@ -40,6 +42,7 @@
 
   // Substep 4 in "module" case in Step 22 of "prepare a script":"
   // https://html.spec.whatwg.org/#prepare-a-script
+  DCHECK(module_script);
 
   // 4. "Fetch the descendants of script (using an empty ancestor list)."
   ModuleTreeLinker* fetcher =
@@ -118,10 +121,11 @@
     case State::kFetchingSelf:
       CHECK_EQ(num_incomplete_descendants_, 0u);
       CHECK(new_state == State::kFetchingDependencies ||
-            (!descendants_module_script_ && new_state == State::kFinished));
+            new_state == State::kFinished);
       break;
     case State::kFetchingDependencies:
-      CHECK_EQ(new_state, State::kInstantiating);
+      CHECK(new_state == State::kInstantiating ||
+            new_state == State::kFinished);
       DCHECK(!num_incomplete_descendants_ || !descendants_module_script_)
           << num_incomplete_descendants_
           << " outstanding descendant loads found, but the descendant module "
@@ -140,10 +144,16 @@
   state_ = new_state;
 
   if (state_ == State::kFinished) {
+    RESOURCE_LOADING_DVLOG(1)
+        << "ModuleTreeLinker[" << this << "] finished with final result "
+        << descendants_module_script_;
+
     registry_->ReleaseFinishedFetcher(this);
 
     // https://html.spec.whatwg.org/multipage/webappapis.html#internal-module-script-graph-fetching-procedure
-    // Step 9. Asynchronously complete this algorithm with descendants result.
+    // Step 7. When the "fetch the descendants of and instantiate a module
+    // script" algorithm asynchronously completes with final result,
+    // asynchronously complete this algorithm with final result.
     client_->NotifyModuleTreeLoadFinished(descendants_module_script_);
   }
 }
@@ -163,34 +173,30 @@
   // Step 2. Return from this algorithm, and run the following steps when
   // fetching a single module script asynchronously completes with result.
   // Note: Modulator::FetchSingle asynchronously notifies result to
-  // ModuleTreeLinker::notifyModuleLoadFinished().
+  // ModuleTreeLinker::NotifyModuleLoadFinished().
 }
 
-void ModuleTreeLinker::NotifyModuleLoadFinished(ModuleScript* module_script) {
+void ModuleTreeLinker::NotifyModuleLoadFinished(ModuleScript* result) {
   // https://html.spec.whatwg.org/multipage/webappapis.html#internal-module-script-graph-fetching-procedure
 
   // Step 3. "If result is null, ..."
-  if (!module_script) {
-    // "asynchronously complete this algorithm with null and abort these steps."
-    // Note: We return null by calling AdvanceState(), which calls
-    // NotifyModuleTreeLoadFinished(descendants_module_script_), and in this
-    // case |descendants_module_script_| is always null.
-    DCHECK(!descendants_module_script_);
+  // Step 4. "If result's state is "instantiated" or "errored", ..."
+  if (!result || result->State() == ModuleInstantiationState::kInstantiated ||
+      result->State() == ModuleInstantiationState::kErrored) {
+    // "asynchronously complete this algorithm with result, and abort these
+    // steps."
+    descendants_module_script_ = result;
     AdvanceState(State::kFinished);
     return;
   }
 
-  // Step 4. Otherwise, result is a module script. Fetch the descendants of
-  // result given destination and an ancestor list obtained by appending url to
-  // ancestor list. Wait for fetching the descendants of a module script to
-  // asynchronously complete with descendants result before proceeding to the
-  // next step.
-  module_script_ = module_script;
+  // Step 5. Assert: result's state is "uninstantiated".
+  DCHECK_EQ(ModuleInstantiationState::kUninstantiated, result->State());
 
+  // Step 6. Fetch the descendants of and instantiate result given destination
+  // and an ancestor list obtained by appending url to ancestor list.
+  module_script_ = result;
   FetchDescendants();
-
-  // Note: Step 5- continues in Instantiate() method, after
-  // "fetch the descendants of a module script" procedure completes.
 }
 
 class ModuleTreeLinker::DependencyModuleClient
@@ -226,56 +232,77 @@
   CHECK(module_script_);
   AdvanceState(State::kFetchingDependencies);
 
-  // https://html.spec.whatwg.org/multipage/webappapis.html#fetch-the-descendants-of-a-module-script
+  // https://html.spec.whatwg.org/multipage/webappapis.html#fetch-the-descendants-of-and-instantiate-a-module-script
+  // Step 1. If ancestor list was not given, let it be the empty list.
+  // Note: The "ancestor list" in spec corresponds to |ancestor_list_with_url_|.
 
-  // Step 1. Let record be module script's module record.
+  // Step 2. If module script's state is "instantiated" or "errored",
+  // asynchronously complete this algorithm with module script, and abort these
+  // steps.
+  if (module_script_->State() == ModuleInstantiationState::kInstantiated ||
+      module_script_->State() == ModuleInstantiationState::kErrored) {
+    descendants_module_script_ = module_script_;
+    AdvanceState(State::kFinished);
+    return;
+  }
+
+  // Step 3. Assert: module script's state is "uninstantiated"
+  DCHECK_EQ(ModuleInstantiationState::kUninstantiated, module_script_->State());
+
+  // Step 4. Let record be module script's module record.
   ScriptModule record = module_script_->Record();
+  DCHECK(!record.IsNull());
 
-  // Step 2. If record.[[RequestedModules]] is empty, asynchronously complete
+  // Step 5. If record.[[RequestedModules]] is empty, asynchronously complete
   // this algorithm with module script.
-  // Note: We defer this bail-out until Step 5. Step 4 will be no-op anyway if
+  // Note: We defer this bail-out until Step 9. Step 6-9 will be no-op anyway if
   //       record.[[RequestedModules]] is empty.
 
-  // Step 3. Let urls be a new empty list.
+  // Step 6. Let urls be a new empty list.
   Vector<KURL> urls;
 
-  // Step 4. For each string requested of record.[[RequestedModules]],
+  // Step 7. For each string requested of record.[[RequestedModules]],
   Vector<String> module_requests =
       modulator_->ModuleRequestsFromScriptModule(record);
   for (const auto& module_request : module_requests) {
-    // Step 4.1. Let url be the result of resolving a module specifier given
+    // Step 7.1. Let url be the result of resolving a module specifier given
     // module script and requested.
     KURL url = Modulator::ResolveModuleSpecifier(module_request,
                                                  module_script_->BaseURL());
 
-    // Step 4.2. If the result is error: ...
+    // Step 7.2. If url is failure: ...
     if (url.IsNull()) {
-      // Let error be a new TypeError exception.
-      // Report the exception error for module script.
-      // TODO(kouhei): Implement the exception.
+      // Step 7.2.1. Let error be a new TypeError exception.
+      ScriptState::Scope scope(modulator_->GetScriptState());
+      v8::Isolate* isolate = modulator_->GetScriptState()->GetIsolate();
+      v8::Local<v8::Value> error = V8ThrowException::CreateTypeError(
+          isolate,
+          "Failed to resolve module specifier \'" + module_request + "'");
 
-      // Abort this algorithm, and asynchronously complete it with null.
-      // Note: The return variable for "internal module script graph fetching
-      // procedure" is descendants_module_script_ per Step 9.
-      DCHECK(!descendants_module_script_);
-      // Note: while we complete "fetch the descendants of a module script"
-      //       algorithm here, we still need to continue to the rest of the
-      //       steps in "internal module script graph fetching procedure"
-      Instantiate();
+      // Step 7.2.2. Error module script with error.
+      module_script_->SetErrorAndClearRecord(
+          ScriptValue(modulator_->GetScriptState(), error));
+
+      // Step 7.2.3. Abort this algorithm, and asynchronously complete it with
+      // module_sript_. Note: The return variable for "internal module script
+      // graph fetching procedure" is descendants_module_script_ per Step 7.
+      descendants_module_script_ = module_script_;
+      AdvanceState(State::kFinished);
       return;
     }
 
-    // Step 4.3. Otherwise, if ancestor list does not contain url, append url to
+    // Step 7.3. Otherwise, if ancestor list does not contain url, append url to
     // urls.
-
-    // Modulator::resolveModuleSpecifier() impl must return either a valid url
-    // or null.
-    CHECK(url.IsValid());
+    CHECK(url.IsValid()) << "Modulator::resolveModuleSpecifier() impl must "
+                            "return either a valid url or null.";
     if (!ancestor_list_with_url_.Contains(url))
       urls.push_back(url);
   }
 
-  // Step 5. For each url in urls, perform the internal module script graph
+  // Step 8. Let descendants result be null.
+  DCHECK(!descendants_module_script_);
+
+  // Step 9. For each url in urls, perform the internal module script graph
   // fetching procedure given url, module script's credentials mode, module
   // script's cryptographic nonce, module script's parser state, destination,
   // module script's settings object, module script's settings object, ancestor
@@ -285,20 +312,21 @@
   // fetching procedure.
 
   if (urls.IsEmpty()) {
-    // Step 2. If record.[[RequestedModules]] is empty, asynchronously
+    // Step 5. If record.[[RequestedModules]] is empty, asynchronously
     // complete this algorithm with module script. [spec text]
-    // Also, if record.[[RequestedModules]] is not empty but |urls| is
-    // empty here, we can immediately complete this algorithm, as
-    // we don't have to process or wait for anything in Step 5. [non-spec text]
+    // Note: We actually proceed to Step 10 here. [nospec, but a pending PR
+    // fixes this.]
 
-    // Proceed to Instantiate() to continue
-    // "internal module script graph fetching procedure".
+    // Also, if record.[[RequestedModules]] is not empty but |urls| is
+    // empty here, we can proceed to Step 10.
     descendants_module_script_ = module_script_;
     Instantiate();
     return;
   }
 
-  // Step 5, when "urls" is non-empty.
+  // Step 9, when "urls" is non-empty.
+  // These invocations of the internal module script graph fetching procedure
+  // should be performed in parallel to each other. [spec text]
   CHECK_EQ(num_incomplete_descendants_, 0u);
   num_incomplete_descendants_ = urls.size();
   for (const KURL& url : urls) {
@@ -315,56 +343,79 @@
                                   dependency_client);
   }
 
-  // Asynchronously continue processing after notifyOneDescendantFinished() is
-  // called m_numIncompleteDescendants times.
+  // Asynchronously continue processing after NotifyOneDescendantFinished() is
+  // called num_incomplete_descendants_ times.
   CHECK_GT(num_incomplete_descendants_, 0u);
 }
 
 void ModuleTreeLinker::DependencyModuleClient::NotifyModuleTreeLoadFinished(
     ModuleScript* module_script) {
-  DescendantLoad was_success =
-      module_script ? DescendantLoad::kSuccess : DescendantLoad::kFailed;
-  module_tree_linker_->NotifyOneDescendantFinished(was_success);
+  module_tree_linker_->NotifyOneDescendantFinished(module_script);
 }
 
-void ModuleTreeLinker::NotifyOneDescendantFinished(DescendantLoad was_success) {
-  CHECK(!descendants_module_script_);
-
+void ModuleTreeLinker::NotifyOneDescendantFinished(
+    ModuleScript* module_script) {
   if (state_ == State::kFinished) {
     // We may reach here if one of the descendant failed to load, and the other
     // descendants fetches were in flight.
     return;
   }
-  CHECK_EQ(state_, State::kFetchingDependencies);
+  DCHECK_EQ(state_, State::kFetchingDependencies);
+  DCHECK(module_script_);
 
   CHECK_GT(num_incomplete_descendants_, 0u);
   --num_incomplete_descendants_;
 
-  // TODO(kouhei): Potential room for optimization. Cancel inflight descendants
-  // fetch if a descendant load failed.
+  // Step 9 of
+  // https://html.spec.whatwg.org/multipage/webappapis.html#fetch-the-descendants-of-and-instantiate-a-module-script
+  // "If any invocation of the internal module script graph fetching procedure
+  // asynchronously completes with null, then ..." [spec text]
+  if (!module_script) {
+    RESOURCE_LOADING_DVLOG(1)
+        << "ModuleTreeLinker[" << this
+        << "]::NotifyOneDescendantFinished with null. "
+        << num_incomplete_descendants_ << " remaining descendants.";
 
-  CHECK(module_script_);
-  RESOURCE_LOADING_DVLOG(1)
-      << "ModuleTreeLinker[" << this << "]::NotifyOneDescendantFinished with "
-      << (was_success == DescendantLoad::kSuccess ? "success. " : "failure. ")
-      << num_incomplete_descendants_ << " remaining descendants.";
+    // "optionally abort all other invocations, " [spec text]
+    // TODO(kouhei) Implement this.
 
-  // https://html.spec.whatwg.org/multipage/webappapis.html#fetch-the-descendants-of-a-module-script
-  // Step 5. "... If any of them asynchronously complete with null, then
-  // asynchronously complete this algorithm with null ..."
-  if (was_success == DescendantLoad::kFailed) {
+    // "set descendants result to null, and ... " [spec text]
     DCHECK(!descendants_module_script_);
-    // Note: while we complete "fetch the descendants of a module script"
-    //       algorithm here, we still need to continue to the rest of the steps
-    //       in "internal module script graph fetching procedure"
+
+    // "proceed to the next step. (The un-fetched descendant will cause errors
+    // during instantiation.)" [spec text]
     Instantiate();
     return;
   }
 
-  // Step 5. "Wait for all of the internal module script graph fetching
-  // procedure invocations to asynchronously complete. ... Otherwise,
-  // asynchronously complete this algorithm with module script."
+  RESOURCE_LOADING_DVLOG(1)
+      << "ModuleTreeLinker[" << this
+      << "]::NotifyOneDescendantFinished with a module script of state \""
+      << ModuleInstantiationStateToString(module_script->State()) << "\". "
+      << num_incomplete_descendants_ << " remaining descendants.";
+
+  // "If any invocation of the internal module script graph fetching procedure
+  // asynchronously completes with a module script whose state is "errored",
+  // then ..." [spec text]
+  if (module_script->State() == ModuleInstantiationState::kErrored) {
+    // "optionally abort all other invocations, ..." [spec text]
+    // TODO(kouhei) Implement this.
+
+    // "set descendants result to module script, ..." [spec text]
+    descendants_module_script_ = module_script_;
+
+    // "and proceed to the next step. (The errored descendant will cause errors
+    // during instantiation.)" [spec text]
+    Instantiate();
+    return;
+  }
+
+  // "Otherwise, wait for all of the internal module script graph fetching
+  // procedure invocations to asynchronously complete, with module scripts whose
+  // states are not "errored"." [spec text]
   if (!num_incomplete_descendants_) {
+    // "Then, set descendants result to module script, and proceed to the next
+    // step." [spec text]
     descendants_module_script_ = module_script_;
     Instantiate();
   }
@@ -374,7 +425,7 @@
   CHECK(module_script_);
   AdvanceState(State::kInstantiating);
 
-  // https://html.spec.whatwg.org/multipage/webappapis.html#internal-module-script-graph-fetching-procedure
+  // https://html.spec.whatwg.org/multipage/webappapis.html#fetch-the-descendants-of-and-instantiate-a-module-script
 
   // [nospec] Abort the steps if the browsing context is discarded.
   if (!modulator_->HasValidContext()) {
@@ -383,98 +434,93 @@
     return;
   }
 
-  // Step 5. Let instantiationStatus be null.
+  // Contrary to the spec, we don't store the "record" in Step 4 for its use in
+  // Step 10. If Instantiate() was called on descendant ModuleTreeLinker and
+  // failed, module_script_->Record() may be already cleared.
+  if (module_script_->State() == ModuleInstantiationState::kErrored) {
+    DCHECK(module_script_->HasEmptyRecord());
+    AdvanceState(State::kFinished);
+    return;
+  }
+
+  // Step 4. Let record be result's module record.
+  ScriptModule record = module_script_->Record();
+
+  // Step 10. Let instantiationStatus be record.ModuleDeclarationInstantiation.
   // Note: The |error| variable corresponds to spec variable
   // "instantiationStatus". If |error| is empty, it indicates successful
   // completion.
-  ScriptValue error;
+  ScriptValue error = modulator_->InstantiateModule(record);
 
-  // Step 6. If result's instantiation state is "errored",...
-  if (module_script_->State() == ModuleInstantiationState::kErrored) {
-    // ... Set instantiationStatus to record.ModuleDeclarationInstantiation().
-    error = modulator_->GetError(module_script_);
-    DCHECK(!error.IsEmpty());
-  } else {
-    // Step 7. Otherwise:
-    // Step 7.1. Let record be result's module record.
-    ScriptModule record = module_script_->Record();
-    // Step 7.2. Set instantiationStatus to
-    // record.ModuleDeclarationInstantiation().
-    error = modulator_->InstantiateModule(record);
-  }
-
-  // Step 8. For each module script script in result's uninstantiated inclusive
+  // Step 11. For each script in module script's uninstantiated inclusive
   // descendant module scripts, perform the following steps:
   HeapHashSet<Member<ModuleScript>> uninstantiated_set =
       UninstantiatedInclusiveDescendants();
   for (const auto& descendant : uninstantiated_set) {
     if (!error.IsEmpty()) {
-      // Step 8.1. If instantiationStatus is an abrupt completion, then
-      // Step 8.1.1. Set script module record's [[HostDefined]] field to
-      // undefined.
-      // TODO(kouhei): Implement this.
-
-      // Step 8.1.2. Set script's module record to null.
-      // Step 8.1.3. Set script's instantiation state to "errored".
-      // Step 8.1.4. Set script's instantiation error to
-      // instantiationStatus.[[Value]].
+      // Step 11.1. If instantiationStatus is an abrupt completion, then
+      // error script with instantiationStatus.[[Value]]
       descendant->SetErrorAndClearRecord(error);
     } else {
-      // Step 8.2. Otherwise, set script's instantiation state to
+      // Step 11.2. Otherwise, set script's instantiation state to
       // "instantiated".
       descendant->SetInstantiationSuccess();
     }
   }
 
-  // Step 9. Asynchronously complete this algorithm with descendants result.
+  // Step 12. Asynchronously complete this algorithm with descendants result.
   AdvanceState(State::kFinished);
 }
 
 HeapHashSet<Member<ModuleScript>>
 ModuleTreeLinker::UninstantiatedInclusiveDescendants() {
   // https://html.spec.whatwg.org/multipage/webappapis.html#uninstantiated-inclusive-descendant-module-scripts
-  // Step 1. Let moduleMap be script's settings object's module map.
+  // Step 1. If script's module record is null, return the empty set.
+  if (module_script_->HasEmptyRecord())
+    return HeapHashSet<Member<ModuleScript>>();
+
+  // Step 2. Let moduleMap be script's settings object's module map.
   // Note: Modulator is our "settings object".
   // Note: We won't reference the ModuleMap directly here to aid testing.
 
-  // Step 2. Let stack be the stack << script >>.
+  // Step 3. Let stack be the stack << script >>.
   // TODO(kouhei): Make stack a HeapLinkedHashSet for O(1) lookups.
   HeapDeque<Member<ModuleScript>> stack;
   stack.push_front(module_script_);
 
-  // Step 3. Let inclusive descendants be an empty set.
+  // Step 4. Let inclusive descendants be an empty set.
   // Note: We use unordered set here as the order is not observable from web
   // platform.
   // This is allowed per spec: https://infra.spec.whatwg.org/#sets
   HeapHashSet<Member<ModuleScript>> inclusive_descendants;
 
-  // Step 4. While stack is not empty:
+  // Step 5. While stack is not empty:
   while (!stack.IsEmpty()) {
-    // Step 4.1. Let current the result of popping from stack.
+    // Step 5.1. Let current the result of popping from stack.
     ModuleScript* current = stack.TakeFirst();
 
-    // Step 4.2. Assert: current is a module script (i.e., it is not "fetching"
+    // Step 5.2. Assert: current is a module script (i.e., it is not "fetching"
     // or null).
     DCHECK(current);
 
-    // Step 4.3. If inclusive descendants and stack both do not contain current,
+    // Step 5.3. If inclusive descendants and stack both do not contain current,
     // then:
     if (inclusive_descendants.Contains(current))
       continue;
     if (std::find(stack.begin(), stack.end(), current) != stack.end())
       continue;
 
-    // Step 4.3.1. Append current to inclusive descendants.
+    // Step 5.3.1. Append current to inclusive descendants.
     inclusive_descendants.insert(current);
 
     // TODO(kouhei): This implementation is a direct transliteration of the
     // spec. Omit intermediate vectors at the least.
 
-    // Step 4.3.2. Let child specifiers be the value of current's module
+    // Step 5.3.2. Let child specifiers be the value of current's module
     // record's [[RequestedModules]] internal slot.
     Vector<String> child_specifiers =
         modulator_->ModuleRequestsFromScriptModule(current->Record());
-    // Step 4.3.3. Let child URLs be the list obtained by calling resolve a
+    // Step 5.3.3. Let child URLs be the list obtained by calling resolve a
     // module specifier once for each item of child specifiers, given current
     // and that item. Omit any failures.
     Vector<KURL> child_urls;
@@ -484,7 +530,7 @@
       if (child_url.IsValid())
         child_urls.push_back(child_url);
     }
-    // Step 4.3.4. Let child modules be the list obtained by getting each value
+    // Step 5.3.4. Let child modules be the list obtained by getting each value
     // in moduleMap whose key is given by an item of child URLs.
     HeapVector<Member<ModuleScript>> child_modules;
     for (const auto& child_url : child_urls) {
@@ -493,27 +539,27 @@
 
       child_modules.push_back(module_script);
     }
-    // Step 4.3.5. For each s of child modules:
+    // Step 5.3.5. For each s of child modules:
     for (const auto& s : child_modules) {
-      // Step 4.3.5.2. If s is null, continue.
+      // Step 5.3.5.2. If s is null, continue.
       // Note: We do null check first, as Blink HashSet can't contain nullptr.
 
-      // Step 4.3.5.3. Assert: s is a module script (i.e., it is not "fetching",
+      // Step 5.3.5.3. Assert: s is a module script (i.e., it is not "fetching",
       // since by this point all child modules must have been fetched). Note:
       // GetFetchedModuleScript returns nullptr if "fetching"
       if (!s)
         continue;
 
-      // Step 4.3.5.1. If inclusive descendants already contains s, continue.
+      // Step 5.3.5.1. If inclusive descendants already contains s, continue.
       if (inclusive_descendants.Contains(s))
         continue;
 
-      // Step 4.3.5.4. Push s onto stack.
+      // Step 5.3.5.4. Push s onto stack.
       stack.push_front(s);
     }
   }
 
-  // Step 5. Return a set containing all items of inclusive descendants whose
+  // Step 6. Return a set containing all items of inclusive descendants whose
   // instantiation state is "uninstantiated".
   HeapHashSet<Member<ModuleScript>> uninstantiated_set;
   for (const auto& script : inclusive_descendants) {
diff --git a/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.h b/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.h
index ead8d19..be8046c 100644
--- a/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.h
+++ b/third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.h
@@ -71,8 +71,7 @@
   void NotifyModuleLoadFinished(ModuleScript*) override;
 
   void FetchDescendants();
-  enum class DescendantLoad { kFailed, kSuccess };
-  void NotifyOneDescendantFinished(DescendantLoad was_success);
+  void NotifyOneDescendantFinished(ModuleScript*);
 
   void Instantiate();
   HeapHashSet<Member<ModuleScript>> UninstantiatedInclusiveDescendants();
diff --git a/third_party/WebKit/Source/core/workers/WorkerContentSettingsClient.cpp b/third_party/WebKit/Source/core/workers/WorkerContentSettingsClient.cpp
index 2b62596e..8dfb7549 100644
--- a/third_party/WebKit/Source/core/workers/WorkerContentSettingsClient.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerContentSettingsClient.cpp
@@ -33,27 +33,26 @@
 #include <memory>
 #include "core/workers/WorkerGlobalScope.h"
 #include "public/platform/WebString.h"
-#include "public/web/WebWorkerContentSettingsClientProxy.h"
 
 namespace blink {
 
 WorkerContentSettingsClient* WorkerContentSettingsClient::Create(
-    std::unique_ptr<WebWorkerContentSettingsClientProxy> proxy) {
-  return new WorkerContentSettingsClient(std::move(proxy));
+    std::unique_ptr<WebContentSettingsClient> client) {
+  return new WorkerContentSettingsClient(std::move(client));
 }
 
 WorkerContentSettingsClient::~WorkerContentSettingsClient() {}
 
 bool WorkerContentSettingsClient::RequestFileSystemAccessSync() {
-  if (!proxy_)
+  if (!client_)
     return true;
-  return proxy_->RequestFileSystemAccessSync();
+  return client_->RequestFileSystemAccessSync();
 }
 
 bool WorkerContentSettingsClient::AllowIndexedDB(const WebString& name) {
-  if (!proxy_)
+  if (!client_)
     return true;
-  return proxy_->AllowIndexedDB(name);
+  return client_->AllowIndexedDB(name, WebSecurityOrigin());
 }
 
 const char* WorkerContentSettingsClient::SupplementName() {
@@ -69,16 +68,16 @@
 }
 
 WorkerContentSettingsClient::WorkerContentSettingsClient(
-    std::unique_ptr<WebWorkerContentSettingsClientProxy> proxy)
-    : proxy_(std::move(proxy)) {}
+    std::unique_ptr<WebContentSettingsClient> client)
+    : client_(std::move(client)) {}
 
 void ProvideContentSettingsClientToWorker(
     WorkerClients* clients,
-    std::unique_ptr<WebWorkerContentSettingsClientProxy> proxy) {
+    std::unique_ptr<WebContentSettingsClient> client) {
   DCHECK(clients);
   WorkerContentSettingsClient::ProvideTo(
       *clients, WorkerContentSettingsClient::SupplementName(),
-      WorkerContentSettingsClient::Create(std::move(proxy)));
+      WorkerContentSettingsClient::Create(std::move(client)));
 }
 
 }  // namespace blink
diff --git a/third_party/WebKit/Source/core/workers/WorkerContentSettingsClient.h b/third_party/WebKit/Source/core/workers/WorkerContentSettingsClient.h
index 75eb004..1eca7019 100644
--- a/third_party/WebKit/Source/core/workers/WorkerContentSettingsClient.h
+++ b/third_party/WebKit/Source/core/workers/WorkerContentSettingsClient.h
@@ -35,12 +35,12 @@
 #include "core/CoreExport.h"
 #include "core/workers/WorkerClients.h"
 #include "platform/wtf/Forward.h"
+#include "public/platform/WebContentSettingsClient.h"
 
 namespace blink {
 
 class ExecutionContext;
 class WebString;
-class WebWorkerContentSettingsClientProxy;
 
 class CORE_EXPORT WorkerContentSettingsClient final
     : public GarbageCollectedFinalized<WorkerContentSettingsClient>,
@@ -49,7 +49,7 @@
 
  public:
   static WorkerContentSettingsClient* Create(
-      std::unique_ptr<WebWorkerContentSettingsClientProxy>);
+      std::unique_ptr<WebContentSettingsClient>);
   virtual ~WorkerContentSettingsClient();
 
   bool RequestFileSystemAccessSync();
@@ -62,14 +62,14 @@
 
  private:
   explicit WorkerContentSettingsClient(
-      std::unique_ptr<WebWorkerContentSettingsClientProxy>);
+      std::unique_ptr<WebContentSettingsClient>);
 
-  std::unique_ptr<WebWorkerContentSettingsClientProxy> proxy_;
+  std::unique_ptr<WebContentSettingsClient> client_;
 };
 
-void CORE_EXPORT ProvideContentSettingsClientToWorker(
-    WorkerClients*,
-    std::unique_ptr<WebWorkerContentSettingsClientProxy>);
+void CORE_EXPORT
+ProvideContentSettingsClientToWorker(WorkerClients*,
+                                     std::unique_ptr<WebContentSettingsClient>);
 
 }  // namespace blink
 
diff --git a/third_party/WebKit/Source/modules/ModulesInitializer.cpp b/third_party/WebKit/Source/modules/ModulesInitializer.cpp
index d5b29eb..ede49eb5 100644
--- a/third_party/WebKit/Source/modules/ModulesInitializer.cpp
+++ b/third_party/WebKit/Source/modules/ModulesInitializer.cpp
@@ -39,7 +39,6 @@
 #include "platform/wtf/PtrUtil.h"
 #include "public/platform/InterfaceRegistry.h"
 #include "public/platform/WebSecurityOrigin.h"
-#include "public/web/WebWorkerContentSettingsClientProxy.h"
 
 namespace blink {
 
diff --git a/third_party/WebKit/Source/platform/BUILD.gn b/third_party/WebKit/Source/platform/BUILD.gn
index 444d9bfa..101db6d 100644
--- a/third_party/WebKit/Source/platform/BUILD.gn
+++ b/third_party/WebKit/Source/platform/BUILD.gn
@@ -1998,6 +1998,7 @@
     "//cc",
     "//cc:test_support",
     "//cc/blink",
+    "//components/variations",
     "//device/base/synchronization",
     "//mojo/common:test_common_custom_types_blink",
     "//mojo/edk/system",
diff --git a/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 b/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5
index 6b9ba894..6aef5c04 100644
--- a/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5
+++ b/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5
@@ -399,7 +399,7 @@
     },
     {
       name: "ExpensiveBackgroundTimerThrottling",
-      status: "experimental",
+      status: "stable",
     },
     {
       name: "ExperimentalCanvasFeatures",
diff --git a/third_party/WebKit/Source/platform/scheduler/DEPS b/third_party/WebKit/Source/platform/scheduler/DEPS
index 6958aa7..c8e15bb 100644
--- a/third_party/WebKit/Source/platform/scheduler/DEPS
+++ b/third_party/WebKit/Source/platform/scheduler/DEPS
@@ -14,11 +14,13 @@
   "+base/logging.h",
   "+base/message_loop/message_loop.h",
   "+base/metrics/field_trial.h",
+  "+base/metrics/field_trial_params.h",
   "+base/metrics/histogram_macros.h",
   "+base/optional.h",
   "+base/pending_task.h",
   "+base/run_loop.h",
   "+base/single_thread_task_runner.h",
+  "+base/strings/string_number_conversions.h",
   "+base/synchronization/lock.h",
   "+base/threading/platform_thread.h",
   "+base/threading/thread.h",
@@ -28,5 +30,6 @@
 specific_include_rules = {
   ".*test\.cc": [
     "+testing",
+    "+components/variations/variations_associated_data.h",
   ],
 }
diff --git a/third_party/WebKit/Source/platform/scheduler/child/web_scheduler.h b/third_party/WebKit/Source/platform/scheduler/child/web_scheduler.h
index d12283b..ab45562 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/web_scheduler.h
+++ b/third_party/WebKit/Source/platform/scheduler/child/web_scheduler.h
@@ -80,8 +80,7 @@
   // Creates a new WebViewScheduler for a given WebView. Must be called from
   // the associated WebThread.
   virtual std::unique_ptr<WebViewScheduler> CreateWebViewScheduler(
-      InterventionReporter*,
-      WebViewScheduler::WebViewSchedulerSettings*) = 0;
+      InterventionReporter*) = 0;
 
   // Suspends the timer queue and increments the timer queue suspension count.
   // May only be called from the main thread.
diff --git a/third_party/WebKit/Source/platform/scheduler/child/web_scheduler_impl.cc b/third_party/WebKit/Source/platform/scheduler/child/web_scheduler_impl.cc
index 284f7df..664ddd5892 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/web_scheduler_impl.cc
+++ b/third_party/WebKit/Source/platform/scheduler/child/web_scheduler_impl.cc
@@ -76,9 +76,7 @@
 }
 
 std::unique_ptr<blink::WebViewScheduler>
-WebSchedulerImpl::CreateWebViewScheduler(
-    InterventionReporter*,
-    WebViewScheduler::WebViewSchedulerSettings*) {
+WebSchedulerImpl::CreateWebViewScheduler(InterventionReporter*) {
   NOTREACHED();
   return nullptr;
 }
diff --git a/third_party/WebKit/Source/platform/scheduler/child/web_scheduler_impl.h b/third_party/WebKit/Source/platform/scheduler/child/web_scheduler_impl.h
index 2174607..69aea6bf 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/web_scheduler_impl.h
+++ b/third_party/WebKit/Source/platform/scheduler/child/web_scheduler_impl.h
@@ -42,8 +42,7 @@
   WebTaskRunner* TimerTaskRunner() override;
   WebTaskRunner* CompositorTaskRunner() override;
   std::unique_ptr<WebViewScheduler> CreateWebViewScheduler(
-      InterventionReporter*,
-      WebViewScheduler::WebViewSchedulerSettings*) override;
+      InterventionReporter*);
   void SuspendTimerQueue() override {}
   void ResumeTimerQueue() override {}
   void AddPendingNavigation(
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc b/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc
index f217b0b..5ca6012 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc
@@ -3114,7 +3114,7 @@
 class WebViewSchedulerImplForTest : public WebViewSchedulerImpl {
  public:
   WebViewSchedulerImplForTest(RendererSchedulerImpl* scheduler)
-      : WebViewSchedulerImpl(nullptr, nullptr, scheduler, false) {}
+      : WebViewSchedulerImpl(nullptr, scheduler, false) {}
   ~WebViewSchedulerImplForTest() override {}
 
   void ReportIntervention(const std::string& message) override {
@@ -3805,14 +3805,14 @@
   // traced value. This test checks that no internal checks fire during this.
 
   std::unique_ptr<WebViewSchedulerImpl> web_view_scheduler1 = base::WrapUnique(
-      new WebViewSchedulerImpl(nullptr, nullptr, scheduler_.get(), false));
+      new WebViewSchedulerImpl(nullptr, scheduler_.get(), false));
   scheduler_->AddWebViewScheduler(web_view_scheduler1.get());
 
   std::unique_ptr<WebFrameSchedulerImpl> web_frame_scheduler =
       web_view_scheduler1->CreateWebFrameSchedulerImpl(nullptr);
 
   std::unique_ptr<WebViewSchedulerImpl> web_view_scheduler2 = base::WrapUnique(
-      new WebViewSchedulerImpl(nullptr, nullptr, scheduler_.get(), false));
+      new WebViewSchedulerImpl(nullptr, scheduler_.get(), false));
   scheduler_->AddWebViewScheduler(web_view_scheduler2.get());
 
   CPUTimeBudgetPool* time_budget_pool =
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/renderer_web_scheduler_impl.cc b/third_party/WebKit/Source/platform/scheduler/renderer/renderer_web_scheduler_impl.cc
index 272904f..fd8c9ec 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/renderer_web_scheduler_impl.cc
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/renderer_web_scheduler_impl.cc
@@ -41,12 +41,11 @@
 
 std::unique_ptr<blink::WebViewScheduler>
 RendererWebSchedulerImpl::CreateWebViewScheduler(
-    InterventionReporter* intervention_reporter,
-    WebViewScheduler::WebViewSchedulerSettings* settings) {
-  return base::WrapUnique(new WebViewSchedulerImpl(
-      intervention_reporter, settings, renderer_scheduler_,
-      !blink::RuntimeEnabledFeatures::
-          TimerThrottlingForBackgroundTabsEnabled()));
+    InterventionReporter* intervention_reporter) {
+  return base::WrapUnique(
+      new WebViewSchedulerImpl(intervention_reporter, renderer_scheduler_,
+                               !blink::RuntimeEnabledFeatures::
+                                   TimerThrottlingForBackgroundTabsEnabled()));
 }
 
 RendererScheduler* RendererWebSchedulerImpl::GetRendererSchedulerForTest() {
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/renderer_web_scheduler_impl.h b/third_party/WebKit/Source/platform/scheduler/renderer/renderer_web_scheduler_impl.h
index 1de3f6d..8dce9bf9 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/renderer_web_scheduler_impl.h
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/renderer_web_scheduler_impl.h
@@ -23,8 +23,7 @@
   void SuspendTimerQueue() override;
   void ResumeTimerQueue() override;
   std::unique_ptr<WebViewScheduler> CreateWebViewScheduler(
-      InterventionReporter* intervention_reporter,
-      WebViewScheduler::WebViewSchedulerSettings* settings) override;
+      InterventionReporter* intervention_reporter) override;
 
   RendererScheduler* GetRendererSchedulerForTest() override;
 
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl_unittest.cc b/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl_unittest.cc
index bbe2f0c..e330d478 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl_unittest.cc
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl_unittest.cc
@@ -36,7 +36,7 @@
         mock_task_runner_, base::WrapUnique(new TestTimeSource(clock_.get())));
     scheduler_.reset(new RendererSchedulerImpl(delegate_));
     web_view_scheduler_.reset(
-        new WebViewSchedulerImpl(nullptr, nullptr, scheduler_.get(), false));
+        new WebViewSchedulerImpl(nullptr, scheduler_.get(), false));
     web_frame_scheduler_ =
         web_view_scheduler_->CreateWebFrameSchedulerImpl(nullptr);
   }
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler.h b/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler.h
index 6b74448..48b55b31 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler.h
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler.h
@@ -17,18 +17,6 @@
 
 class PLATFORM_EXPORT WebViewScheduler {
  public:
-  // Helper interface to plumb settings from WebSettings to scheduler.
-  class PLATFORM_EXPORT WebViewSchedulerSettings {
-   public:
-    virtual ~WebViewSchedulerSettings() {}
-
-    // Background throttling aggressiveness settings.
-    virtual float ExpensiveBackgroundThrottlingCPUBudget() = 0;
-    virtual float ExpensiveBackgroundThrottlingInitialBudget() = 0;
-    virtual float ExpensiveBackgroundThrottlingMaxBudget() = 0;
-    virtual float ExpensiveBackgroundThrottlingMaxDelay() = 0;
-  };
-
   virtual ~WebViewScheduler() {}
 
   // The scheduler may throttle tasks associated with background pages.
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.cc b/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.cc
index dab3891..3cb873d9 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.cc
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.cc
@@ -5,6 +5,8 @@
 #include "platform/scheduler/renderer/web_view_scheduler_impl.h"
 
 #include "base/logging.h"
+#include "base/metrics/field_trial_params.h"
+#include "base/strings/string_number_conversions.h"
 #include "base/strings/stringprintf.h"
 #include "platform/RuntimeEnabledFeatures.h"
 #include "platform/WebFrameScheduler.h"
@@ -21,75 +23,81 @@
 
 namespace {
 
-const double kBackgroundBudgetAsCPUFraction = .01;
+constexpr double kDefaultBackgroundBudgetAsCPUFraction = .01;
+constexpr double kDefaultMaxBackgroundBudgetLevelInSeconds = 3;
+constexpr double kDefaultInitialBackgroundBudgetInSeconds = 1;
+constexpr double kDefaultMaxBackgroundThrottlingDelayInSeconds = 0;
+
 // Given that we already align timers to 1Hz, do not report throttling if
 // it is under 3s.
 constexpr base::TimeDelta kMinimalBackgroundThrottlingDurationToReport =
     base::TimeDelta::FromSeconds(3);
-constexpr base::TimeDelta kDefaultMaxBackgroundBudgetLevel =
-    base::TimeDelta::FromSeconds(3);
-constexpr base::TimeDelta kDefaultMaxBackgroundThrottlingDelay =
-    base::TimeDelta::FromMinutes(1);
-constexpr base::TimeDelta kDefaultInitialBackgroundBudget =
-    base::TimeDelta::FromSeconds(1);
 constexpr base::TimeDelta kBackgroundThrottlingGracePeriod =
     base::TimeDelta::FromSeconds(10);
 
-// Values coming from WebViewSchedulerSettings are interpreted as follows:
+// Values coming from the field trial config are interpreted as follows:
 //   -1 is "not set". Scheduler should use a reasonable default.
-//   0 is "none". base::nullopt will be used if value is optional.
-//   other values are left without changes.
+//   0 corresponds to base::nullopt.
+//   Other values are left without changes.
 
-double GetBackgroundBudgetRecoveryRate(
-    WebViewScheduler::WebViewSchedulerSettings* settings) {
-  if (!settings)
-    return kBackgroundBudgetAsCPUFraction;
-  double settings_budget = settings->ExpensiveBackgroundThrottlingCPUBudget();
-  if (settings_budget == -1.0)
-    return kBackgroundBudgetAsCPUFraction;
-  return settings_budget;
+struct BackgroundThrottlingSettings {
+  double budget_recovery_rate;
+  base::Optional<base::TimeDelta> max_budget_level;
+  base::Optional<base::TimeDelta> max_throttling_delay;
+  base::Optional<base::TimeDelta> initial_budget;
+};
+
+double GetDoubleParameterFromMap(
+    const std::map<std::string, std::string>& settings,
+    const std::string& setting_name,
+    double default_value) {
+  const auto& find_it = settings.find(setting_name);
+  if (find_it == settings.end())
+    return default_value;
+  double parsed_value;
+  if (!base::StringToDouble(find_it->second, &parsed_value))
+    return default_value;
+  if (parsed_value == -1)
+    return default_value;
+  return parsed_value;
 }
 
-base::Optional<base::TimeDelta> GetMaxBudgetLevel(
-    WebViewScheduler::WebViewSchedulerSettings* settings) {
-  if (!settings)
+base::Optional<base::TimeDelta> DoubleToOptionalTime(double value) {
+  if (value == 0)
     return base::nullopt;
-  double max_budget_level = settings->ExpensiveBackgroundThrottlingMaxBudget();
-  if (max_budget_level == -1.0)
-    return kDefaultMaxBackgroundBudgetLevel;
-  if (max_budget_level == 0.0)
-    return base::nullopt;
-  return base::TimeDelta::FromSecondsD(max_budget_level);
+  return base::TimeDelta::FromSecondsD(value);
 }
 
-base::Optional<base::TimeDelta> GetMaxThrottlingDelay(
-    WebViewScheduler::WebViewSchedulerSettings* settings) {
-  if (!settings)
-    return base::nullopt;
-  double max_delay = settings->ExpensiveBackgroundThrottlingMaxDelay();
-  if (max_delay == -1.0)
-    return kDefaultMaxBackgroundThrottlingDelay;
-  if (max_delay == 0.0)
-    return base::nullopt;
-  return base::TimeDelta::FromSecondsD(max_delay);
-}
+BackgroundThrottlingSettings GetBackgroundThrottlingSettings() {
+  std::map<std::string, std::string> background_throttling_settings;
+  base::GetFieldTrialParams("ExpensiveBackgroundTimerThrottling",
+                            &background_throttling_settings);
 
-base::TimeDelta GetInitialBudget(
-    WebViewSchedulerImpl::WebViewSchedulerSettings* settings) {
-  if (!settings)
-    return kDefaultInitialBackgroundBudget;
-  double initial_budget =
-      settings->ExpensiveBackgroundThrottlingInitialBudget();
-  if (initial_budget == -1.0)
-    return kDefaultMaxBackgroundBudgetLevel;
-  return base::TimeDelta::FromSecondsD(initial_budget);
+  BackgroundThrottlingSettings settings;
+
+  settings.budget_recovery_rate =
+      GetDoubleParameterFromMap(background_throttling_settings, "cpu_budget",
+                                kDefaultBackgroundBudgetAsCPUFraction);
+
+  settings.max_budget_level = DoubleToOptionalTime(
+      GetDoubleParameterFromMap(background_throttling_settings, "max_budget",
+                                kDefaultMaxBackgroundBudgetLevelInSeconds));
+
+  settings.max_throttling_delay = DoubleToOptionalTime(
+      GetDoubleParameterFromMap(background_throttling_settings, "max_delay",
+                                kDefaultMaxBackgroundThrottlingDelayInSeconds));
+
+  settings.initial_budget = DoubleToOptionalTime(GetDoubleParameterFromMap(
+      background_throttling_settings, "initial_budget",
+      kDefaultInitialBackgroundBudgetInSeconds));
+
+  return settings;
 }
 
 }  // namespace
 
 WebViewSchedulerImpl::WebViewSchedulerImpl(
     WebScheduler::InterventionReporter* intervention_reporter,
-    WebViewScheduler::WebViewSchedulerSettings* settings,
     RendererSchedulerImpl* renderer_scheduler,
     bool disable_background_timer_throttling)
     : intervention_reporter_(intervention_reporter),
@@ -106,8 +114,7 @@
       is_audio_playing_(false),
       reported_background_throttling_since_navigation_(false),
       has_active_connection_(false),
-      background_time_budget_pool_(nullptr),
-      settings_(settings) {
+      background_time_budget_pool_(nullptr) {
   renderer_scheduler->AddWebViewScheduler(this);
 
   delayed_background_throttling_enabler_.Reset(
@@ -371,18 +378,22 @@
           "background");
   LazyNow lazy_now(renderer_scheduler_->tick_clock());
 
+  BackgroundThrottlingSettings settings = GetBackgroundThrottlingSettings();
+
   background_time_budget_pool_->SetMaxBudgetLevel(lazy_now.Now(),
-                                                  GetMaxBudgetLevel(settings_));
+                                                  settings.max_budget_level);
   background_time_budget_pool_->SetMaxThrottlingDelay(
-      lazy_now.Now(), GetMaxThrottlingDelay(settings_));
+      lazy_now.Now(), settings.max_throttling_delay);
 
   UpdateBackgroundThrottlingState();
 
   background_time_budget_pool_->SetTimeBudgetRecoveryRate(
-      lazy_now.Now(), GetBackgroundBudgetRecoveryRate(settings_));
+      lazy_now.Now(), settings.budget_recovery_rate);
 
-  background_time_budget_pool_->GrantAdditionalBudget(
-      lazy_now.Now(), GetInitialBudget(settings_));
+  if (settings.initial_budget) {
+    background_time_budget_pool_->GrantAdditionalBudget(
+        lazy_now.Now(), settings.initial_budget.value());
+  }
 }
 
 void WebViewSchedulerImpl::OnThrottlingReported(
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h b/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h
index 1a85306..83a6e3e 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl.h
@@ -35,7 +35,6 @@
  public:
   WebViewSchedulerImpl(
       WebScheduler::InterventionReporter* intervention_reporter,
-      WebViewScheduler::WebViewSchedulerSettings* settings,
       RendererSchedulerImpl* renderer_scheduler,
       bool disable_background_timer_throttling);
 
@@ -125,7 +124,6 @@
   bool has_active_connection_;
   CPUTimeBudgetPool* background_time_budget_pool_;  // Not owned.
   CancelableClosureHolder delayed_background_throttling_enabler_;
-  WebViewScheduler::WebViewSchedulerSettings* settings_;  // Not owned.
 
   DISALLOW_COPY_AND_ASSIGN(WebViewSchedulerImpl);
 };
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl_unittest.cc b/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl_unittest.cc
index 299da62..3982484 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl_unittest.cc
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/web_view_scheduler_impl_unittest.cc
@@ -8,8 +8,11 @@
 
 #include "base/callback.h"
 #include "base/memory/ptr_util.h"
+#include "base/metrics/field_trial.h"
+#include "base/metrics/field_trial_params.h"
 #include "base/test/simple_test_tick_clock.h"
 #include "cc/test/ordered_simple_task_runner.h"
+#include "components/variations/variations_associated_data.h"
 #include "platform/WebTaskRunner.h"
 #include "platform/scheduler/base/test_time_source.h"
 #include "platform/scheduler/child/scheduler_tqm_delegate_for_test.h"
@@ -39,9 +42,8 @@
     delegate_ = SchedulerTqmDelegateForTest::Create(
         mock_task_runner_, base::MakeUnique<TestTimeSource>(clock_.get()));
     scheduler_.reset(new RendererSchedulerImpl(delegate_));
-    web_view_scheduler_.reset(
-        new WebViewSchedulerImpl(nullptr, nullptr, scheduler_.get(),
-                                 DisableBackgroundTimerThrottling()));
+    web_view_scheduler_.reset(new WebViewSchedulerImpl(
+        nullptr, scheduler_.get(), DisableBackgroundTimerThrottling()));
     web_frame_scheduler_ =
         web_view_scheduler_->CreateWebFrameSchedulerImpl(nullptr);
   }
@@ -196,7 +198,7 @@
 
 TEST_F(WebViewSchedulerImplTest, RepeatingTimers_OneBackgroundOneForeground) {
   std::unique_ptr<WebViewSchedulerImpl> web_view_scheduler2(
-      new WebViewSchedulerImpl(nullptr, nullptr, scheduler_.get(), false));
+      new WebViewSchedulerImpl(nullptr, scheduler_.get(), false));
   std::unique_ptr<WebFrameSchedulerImpl> web_frame_scheduler2 =
       web_view_scheduler2->CreateWebFrameSchedulerImpl(nullptr);
 
@@ -749,17 +751,20 @@
   clock->Advance(base::TimeDelta::FromMilliseconds(250));
 }
 
-class FakeWebViewSchedulerSettings
-    : public WebViewScheduler::WebViewSchedulerSettings {
- public:
-  float ExpensiveBackgroundThrottlingCPUBudget() override { return 0.01; }
+void InitializeTrialParams() {
+  std::map<std::string, std::string> params = {{"cpu_budget", "0.01"},
+                                               {"max_budget", "0.0"},
+                                               {"initial_budget", "0.0"},
+                                               {"max_delay", "0.0"}};
+  const char kParamName[] = "ExpensiveBackgroundTimerThrottling";
+  const char kGroupName[] = "Enabled";
+  EXPECT_TRUE(base::AssociateFieldTrialParams(kParamName, kGroupName, params));
+  EXPECT_TRUE(base::FieldTrialList::CreateFieldTrial(kParamName, kGroupName));
 
-  float ExpensiveBackgroundThrottlingInitialBudget() override { return 0.0; }
-
-  float ExpensiveBackgroundThrottlingMaxBudget() override { return 0.0; }
-
-  float ExpensiveBackgroundThrottlingMaxDelay() override { return 0.0; }
-};
+  std::map<std::string, std::string> actual_params;
+  base::GetFieldTrialParams(kParamName, &actual_params);
+  EXPECT_EQ(actual_params, params);
+}
 
 }  // namespace
 
@@ -767,10 +772,13 @@
   ScopedExpensiveBackgroundTimerThrottlingForTest
       budget_background_throttling_enabler(true);
 
+  std::unique_ptr<base::FieldTrialList> field_trial_list =
+      base::MakeUnique<base::FieldTrialList>(nullptr);
+  InitializeTrialParams();
+  web_view_scheduler_.reset(
+      new WebViewSchedulerImpl(nullptr, scheduler_.get(), false));
+
   std::vector<base::TimeTicks> run_times;
-  FakeWebViewSchedulerSettings web_view_scheduler_settings;
-  web_view_scheduler_.reset(new WebViewSchedulerImpl(
-      nullptr, &web_view_scheduler_settings, scheduler_.get(), false));
   web_frame_scheduler_ =
       web_view_scheduler_->CreateWebFrameSchedulerImpl(nullptr);
   web_view_scheduler_->SetPageVisible(false);
@@ -825,17 +833,21 @@
       run_times,
       ElementsAre(base::TimeTicks() + base::TimeDelta::FromSeconds(12),
                   base::TimeTicks() + base::TimeDelta::FromSeconds(26)));
+
+  variations::testing::ClearAllVariationParams();
 }
 
 TEST_F(WebViewSchedulerImplTest, OpenWebSocketExemptsFromBudgetThrottling) {
   ScopedExpensiveBackgroundTimerThrottlingForTest
       budget_background_throttling_enabler(true);
 
-  std::vector<base::TimeTicks> run_times;
-  FakeWebViewSchedulerSettings web_view_scheduler_settings;
+  std::unique_ptr<base::FieldTrialList> field_trial_list =
+      base::MakeUnique<base::FieldTrialList>(nullptr);
+  InitializeTrialParams();
   std::unique_ptr<WebViewSchedulerImpl> web_view_scheduler(
-      new WebViewSchedulerImpl(nullptr, &web_view_scheduler_settings,
-                               scheduler_.get(), false));
+      new WebViewSchedulerImpl(nullptr, scheduler_.get(), false));
+
+  std::vector<base::TimeTicks> run_times;
 
   std::unique_ptr<WebFrameSchedulerImpl> web_frame_scheduler1 =
       web_view_scheduler->CreateWebFrameSchedulerImpl(nullptr);
@@ -937,6 +949,8 @@
       ElementsAre(base::TimeTicks() + base::TimeDelta::FromSeconds(84),
                   base::TimeTicks() + base::TimeDelta::FromSeconds(109),
                   base::TimeTicks() + base::TimeDelta::FromSeconds(134)));
+
+  variations::testing::ClearAllVariationParams();
 }
 
 }  // namespace scheduler
diff --git a/third_party/WebKit/Source/web/DedicatedWorkerMessagingProxyProviderImpl.cpp b/third_party/WebKit/Source/web/DedicatedWorkerMessagingProxyProviderImpl.cpp
index e59ed63..7b613aa 100644
--- a/third_party/WebKit/Source/web/DedicatedWorkerMessagingProxyProviderImpl.cpp
+++ b/third_party/WebKit/Source/web/DedicatedWorkerMessagingProxyProviderImpl.cpp
@@ -45,7 +45,6 @@
 #include "public/platform/WebContentSettingsClient.h"
 #include "public/platform/WebString.h"
 #include "public/web/WebFrameClient.h"
-#include "public/web/WebWorkerContentSettingsClientProxy.h"
 
 namespace blink {
 
@@ -67,8 +66,7 @@
                                    LocalFileSystemClient::Create());
     ProvideContentSettingsClientToWorker(
         worker_clients,
-        WTF::WrapUnique(
-            web_frame->Client()->CreateWorkerContentSettingsClientProxy()));
+        web_frame->Client()->CreateWorkerContentSettingsClient());
 
     // FIXME: call provideServiceWorkerContainerClientToWorker here when we
     // support ServiceWorker in dedicated workers (http://crbug.com/371690)
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
index 93faa6e4..031ced793 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -65,6 +65,7 @@
 #include "platform/wtf/Functional.h"
 #include "platform/wtf/PtrUtil.h"
 #include "public/platform/Platform.h"
+#include "public/platform/WebContentSettingsClient.h"
 #include "public/platform/WebURLRequest.h"
 #include "public/platform/WebWorkerFetchContext.h"
 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.h"
@@ -73,7 +74,6 @@
 #include "public/web/WebDevToolsAgent.h"
 #include "public/web/WebSettings.h"
 #include "public/web/WebView.h"
-#include "public/web/WebWorkerContentSettingsClientProxy.h"
 #include "public/web/modules/serviceworker/WebServiceWorkerContextClient.h"
 #include "web/ServiceWorkerGlobalScopeClientImpl.h"
 #include "web/ServiceWorkerGlobalScopeProxy.h"
@@ -82,7 +82,7 @@
 
 WebEmbeddedWorker* WebEmbeddedWorker::Create(
     WebServiceWorkerContextClient* client,
-    WebWorkerContentSettingsClientProxy* content_settings_client) {
+    WebContentSettingsClient* content_settings_client) {
   return new WebEmbeddedWorkerImpl(WTF::WrapUnique(client),
                                    WTF::WrapUnique(content_settings_client));
 }
@@ -94,8 +94,7 @@
 
 WebEmbeddedWorkerImpl::WebEmbeddedWorkerImpl(
     std::unique_ptr<WebServiceWorkerContextClient> client,
-    std::unique_ptr<WebWorkerContentSettingsClientProxy>
-        content_settings_client)
+    std::unique_ptr<WebContentSettingsClient> content_settings_client)
     : worker_context_client_(std::move(client)),
       content_settings_client_(std::move(content_settings_client)),
       worker_inspector_proxy_(WorkerInspectorProxy::Create()),
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h
index f627f4e..ef978c7 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h
@@ -57,7 +57,7 @@
 
  public:
   WebEmbeddedWorkerImpl(std::unique_ptr<WebServiceWorkerContextClient>,
-                        std::unique_ptr<WebWorkerContentSettingsClientProxy>);
+                        std::unique_ptr<WebContentSettingsClient>);
   ~WebEmbeddedWorkerImpl() override;
 
   // WebEmbeddedWorker overrides.
@@ -107,7 +107,7 @@
 
   // This is kept until startWorkerContext is called, and then passed on
   // to WorkerContext.
-  std::unique_ptr<WebWorkerContentSettingsClientProxy> content_settings_client_;
+  std::unique_ptr<WebContentSettingsClient> content_settings_client_;
 
   // Kept around only while main script loading is ongoing.
   RefPtr<WorkerScriptLoader> main_script_loader_;
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 4677ee01..9c44ea0 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -377,11 +377,10 @@
       display_mode_(kWebDisplayModeBrowser),
       elastic_overscroll_(FloatSize()),
       mutator_(nullptr),
-      scheduler_(WTF::WrapUnique(Platform::Current()
-                                     ->CurrentThread()
-                                     ->Scheduler()
-                                     ->CreateWebViewScheduler(this, this)
-                                     .release())),
+      scheduler_(Platform::Current()
+                     ->CurrentThread()
+                     ->Scheduler()
+                     ->CreateWebViewScheduler(this)),
       last_frame_time_monotonic_(0),
       override_compositor_visibility_(false) {
   Page::PageClients page_clients;
@@ -1112,22 +1111,6 @@
   MainFrameImpl()->AddMessageToConsole(console_message);
 }
 
-float WebViewImpl::ExpensiveBackgroundThrottlingCPUBudget() {
-  return SettingsImpl()->ExpensiveBackgroundThrottlingCPUBudget();
-}
-
-float WebViewImpl::ExpensiveBackgroundThrottlingInitialBudget() {
-  return SettingsImpl()->ExpensiveBackgroundThrottlingInitialBudget();
-}
-
-float WebViewImpl::ExpensiveBackgroundThrottlingMaxBudget() {
-  return SettingsImpl()->ExpensiveBackgroundThrottlingMaxBudget();
-}
-
-float WebViewImpl::ExpensiveBackgroundThrottlingMaxDelay() {
-  return SettingsImpl()->ExpensiveBackgroundThrottlingMaxDelay();
-}
-
 WebInputEventResult WebViewImpl::HandleKeyEvent(const WebKeyboardEvent& event) {
   DCHECK((event.GetType() == WebInputEvent::kRawKeyDown) ||
          (event.GetType() == WebInputEvent::kKeyDown) ||
diff --git a/third_party/WebKit/Source/web/WebViewImpl.h b/third_party/WebKit/Source/web/WebViewImpl.h
index e531993..15a2ca38 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.h
+++ b/third_party/WebKit/Source/web/WebViewImpl.h
@@ -98,8 +98,7 @@
     : NON_EXPORTED_BASE(public WebViewBase),
       NON_EXPORTED_BASE(public WebGestureCurveTarget),
       public PageWidgetEventHandler,
-      public WebScheduler::InterventionReporter,
-      public WebViewScheduler::WebViewSchedulerSettings {
+      public WebScheduler::InterventionReporter {
  public:
   static WebViewBase* Create(WebViewClient*, WebPageVisibilityState);
 
@@ -245,12 +244,6 @@
   // WebScheduler::InterventionReporter implementation:
   void ReportIntervention(const WebString& message) override;
 
-  // WebViewScheduler::WebViewSchedulerSettings implementation:
-  float ExpensiveBackgroundThrottlingCPUBudget() override;
-  float ExpensiveBackgroundThrottlingInitialBudget() override;
-  float ExpensiveBackgroundThrottlingMaxBudget() override;
-  float ExpensiveBackgroundThrottlingMaxDelay() override;
-
   void DidUpdateFullscreenSize() override;
 
   float DefaultMinimumPageScaleFactor() const override;
diff --git a/third_party/WebKit/public/BUILD.gn b/third_party/WebKit/public/BUILD.gn
index b3691d47..2fc4f48 100644
--- a/third_party/WebKit/public/BUILD.gn
+++ b/third_party/WebKit/public/BUILD.gn
@@ -607,7 +607,6 @@
     "web/WebWidget.h",
     "web/WebWidgetClient.h",
     "web/WebWindowFeatures.h",
-    "web/WebWorkerContentSettingsClientProxy.h",
     "web/linux/WebFontRendering.h",
     "web/mac/WebScrollbarTheme.h",
     "web/mac/WebSubstringUtil.h",
diff --git a/third_party/WebKit/public/web/WebEmbeddedWorker.h b/third_party/WebKit/public/web/WebEmbeddedWorker.h
index f381407..bd430c5 100644
--- a/third_party/WebKit/public/web/WebEmbeddedWorker.h
+++ b/third_party/WebKit/public/web/WebEmbeddedWorker.h
@@ -35,9 +35,9 @@
 
 namespace blink {
 
+class WebContentSettingsClient;
 class WebServiceWorkerContextClient;
 class WebString;
-class WebWorkerContentSettingsClientProxy;
 struct WebConsoleMessage;
 struct WebEmbeddedWorkerStartData;
 
@@ -46,12 +46,11 @@
 class WebEmbeddedWorker {
  public:
   // Invoked on the main thread to instantiate a WebEmbeddedWorker.
-  // The given WebWorkerContextClient and WebWorkerContentSettingsClientProxy
-  // are going to be passed on to the worker thread and is held by a newly
-  // created WorkerGlobalScope.
-  BLINK_EXPORT static WebEmbeddedWorker* Create(
-      WebServiceWorkerContextClient*,
-      WebWorkerContentSettingsClientProxy*);
+  // The given WebWorkerContextClient and WebContentSettingsClient are going to
+  // be passed on to the worker thread and is held by a newly created
+  // WorkerGlobalScope.
+  BLINK_EXPORT static WebEmbeddedWorker* Create(WebServiceWorkerContextClient*,
+                                                WebContentSettingsClient*);
 
   virtual ~WebEmbeddedWorker() {}
 
diff --git a/third_party/WebKit/public/web/WebFrameClient.h b/third_party/WebKit/public/web/WebFrameClient.h
index 8c10ed8..894555c 100644
--- a/third_party/WebKit/public/web/WebFrameClient.h
+++ b/third_party/WebKit/public/web/WebFrameClient.h
@@ -54,6 +54,7 @@
 #include "public/platform/WebCommon.h"
 #include "public/platform/WebContentSecurityPolicy.h"
 #include "public/platform/WebContentSecurityPolicyStruct.h"
+#include "public/platform/WebContentSettingsClient.h"
 #include "public/platform/WebEffectiveConnectionType.h"
 #include "public/platform/WebFeaturePolicy.h"
 #include "public/platform/WebFileSystem.h"
@@ -108,7 +109,6 @@
 class WebURL;
 class WebURLResponse;
 class WebUserMediaClient;
-class WebWorkerContentSettingsClientProxy;
 struct WebColorSuggestion;
 struct WebConsoleMessage;
 struct WebContextMenuData;
@@ -152,8 +152,8 @@
   }
 
   // May return null.
-  virtual WebWorkerContentSettingsClientProxy*
-  CreateWorkerContentSettingsClientProxy() {
+  virtual std::unique_ptr<WebContentSettingsClient>
+  CreateWorkerContentSettingsClient() {
     return nullptr;
   }
 
diff --git a/third_party/WebKit/public/web/WebSettings.h b/third_party/WebKit/public/web/WebSettings.h
index 1abd400f..4c736ce2 100644
--- a/third_party/WebKit/public/web/WebSettings.h
+++ b/third_party/WebKit/public/web/WebSettings.h
@@ -297,11 +297,6 @@
   virtual void SetWebSecurityEnabled(bool) = 0;
   virtual void SetWideViewportQuirkEnabled(bool) = 0;
   virtual void SetXSSAuditorEnabled(bool) = 0;
-  // Background timer throttling aggressiveness settings.
-  virtual void SetExpensiveBackgroundThrottlingCPUBudget(float) = 0;
-  virtual void SetExpensiveBackgroundThrottlingInitialBudget(float) = 0;
-  virtual void SetExpensiveBackgroundThrottlingMaxBudget(float) = 0;
-  virtual void SetExpensiveBackgroundThrottlingMaxDelay(float) = 0;
   virtual void SetMediaControlsEnabled(bool) = 0;
   virtual void SetDoNotUpdateSelectionOnMutatingSelectionRange(bool) = 0;
 
diff --git a/third_party/WebKit/public/web/WebSharedWorkerClient.h b/third_party/WebKit/public/web/WebSharedWorkerClient.h
index a674292..d5076736 100644
--- a/third_party/WebKit/public/web/WebSharedWorkerClient.h
+++ b/third_party/WebKit/public/web/WebSharedWorkerClient.h
@@ -31,6 +31,7 @@
 #ifndef WebSharedWorkerClient_h
 #define WebSharedWorkerClient_h
 
+#include "public/platform/WebContentSettingsClient.h"
 #include "public/platform/WebMessagePortChannel.h"
 #include "public/platform/WebWorkerFetchContext.h"
 #include "public/web/WebDevToolsAgentClient.h"
@@ -43,7 +44,6 @@
 class WebSecurityOrigin;
 class WebServiceWorkerNetworkProvider;
 class WebString;
-class WebWorkerContentSettingsClientProxy;
 
 // Provides an interface back to the in-page script object for a worker.
 // All functions are expected to be called back on the thread that created
@@ -70,12 +70,11 @@
   virtual std::unique_ptr<WebApplicationCacheHost> CreateApplicationCacheHost(
       WebApplicationCacheHostClient*) = 0;
 
-  // Called on the main thread during initialization.
-  // WebWorkerContentSettingsClientProxy should not retain the given
-  // WebSecurityOrigin, as the proxy instance is passed to worker thread
-  // while WebSecurityOrigin is not thread safe.
-  virtual WebWorkerContentSettingsClientProxy*
-  CreateWorkerContentSettingsClientProxy(const WebSecurityOrigin& origin) {
+  // Called on the main thread during initialization. WebContentSettingsClient
+  // should not retain the given WebSecurityOrigin, as the client instance is
+  // passed to worker thread while WebSecurityOrigin is not thread safe.
+  virtual std::unique_ptr<WebContentSettingsClient>
+  CreateWorkerContentSettingsClient(const WebSecurityOrigin& origin) {
     return nullptr;
   }
 
diff --git a/third_party/WebKit/public/web/WebWorkerContentSettingsClientProxy.h b/third_party/WebKit/public/web/WebWorkerContentSettingsClientProxy.h
deleted file mode 100644
index 6a814d0..0000000
--- a/third_party/WebKit/public/web/WebWorkerContentSettingsClientProxy.h
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WebWorkerContentSettingsClientProxy_h
-#define WebWorkerContentSettingsClientProxy_h
-
-namespace blink {
-
-class WebString;
-
-// Proxy interface to talk to the document's ContentSettingsClient
-// implementation.
-// This proxy is created by the embedder and is passed to the worker's
-// WorkerGlobalScope in blink. Each allow method is called on the worker thread
-// and may destructed on the worker thread.
-class WebWorkerContentSettingsClientProxy {
- public:
-  virtual ~WebWorkerContentSettingsClientProxy() {}
-
-  virtual bool RequestFileSystemAccessSync() { return true; }
-
-  virtual bool AllowIndexedDB(const WebString& name) { return true; }
-};
-
-}  // namespace blink
-
-#endif  // WebWorkerContentSettingsClientProxy_h
diff --git a/tools/binary_size/libsupersize/describe.py b/tools/binary_size/libsupersize/describe.py
index ad0412950..4d76727 100644
--- a/tools/binary_size/libsupersize/describe.py
+++ b/tools/binary_size/libsupersize/describe.py
@@ -200,15 +200,23 @@
         if s.IsGroup():
           helper(s)
         else:
-          status = group.DiffStatus(s)
-          paths_by_status[status].add(s.source_path or s.object_path)
+          path = s.source_path or s.object_path
+          # Ignore paths like foo/{shared}/2
+          if '{' not in path:
+            paths_by_status[group.DiffStatus(s)].add(path)
     helper(diff)
-    # Show only paths that have no changed symbols (pure adds / removes).
+    # Initial paths sets are those where *any* symbol is
+    # unchanged/changed/added/removed.
     unchanged, changed, added, removed = paths_by_status
+    # Consider a path with both adds & removes as "changed".
+    changed.update(added.intersection(removed))
+    # Consider a path added / removed only when all symbols are new/removed.
     added.difference_update(unchanged)
     added.difference_update(changed)
+    added.difference_update(removed)
     removed.difference_update(unchanged)
     removed.difference_update(changed)
+    removed.difference_update(added)
     yield '{} paths added, {} removed, {} changed'.format(
         len(added), len(removed), len(changed))
 
diff --git a/tools/binary_size/libsupersize/diff.py b/tools/binary_size/libsupersize/diff.py
index 7002afb7..2cc114b 100644
--- a/tools/binary_size/libsupersize/diff.py
+++ b/tools/binary_size/libsupersize/diff.py
@@ -32,11 +32,14 @@
     # "symbol gap 3 (bar)" -> "symbol gaps"
     name = re.sub(r'\s+\d+( \(.*\))?$', 's', name)
 
+  # Use section rather than section_name since clang & gcc use
+  # .data.rel.ro vs .data.rel.ro.local.
   if '.' not in name:
-    return (symbol.section_name, name)
+    return (symbol.section, name)
+
   # Compiler or Linker generated symbol.
   name = re.sub(r'[.0-9]', '', name)  # Strip out all numbers and dots.
-  return (symbol.section_name, name, symbol.object_path)
+  return (symbol.section, name, symbol.object_path)
 
 
 def _CloneSymbol(sym, size):
diff --git a/tools/binary_size/libsupersize/models.py b/tools/binary_size/libsupersize/models.py
index a9f25bd..2cfd59b 100644
--- a/tools/binary_size/libsupersize/models.py
+++ b/tools/binary_size/libsupersize/models.py
@@ -50,6 +50,8 @@
     'r': '.rodata',
     't': '.text',
 }
+# Used by SymbolGroup when they contain a mix of sections.
+SECTION_NAME_MULTIPLE = '.*'
 
 FLAG_ANONYMOUS = 1
 FLAG_STARTUP = 2
@@ -311,7 +313,7 @@
     self.full_name = full_name if full_name is not None else name
     self.template_name = template_name if template_name is not None else name
     self.name = name or ''
-    self.section_name = section_name or '.*'
+    self.section_name = section_name or SECTION_NAME_MULTIPLE
     self.is_sorted = is_sorted
 
   def __repr__(self):
@@ -333,7 +335,7 @@
     Raises if multiple symbols map to the address.
     """
     if isinstance(key, slice):
-      return self._symbols.__getitem__(key)
+      return self._CreateTransformed(self._symbols.__getitem__(key))
     if isinstance(key, basestring) or key > len(self._symbols):
       found = self.WhereAddressInRange(key)
       if len(found) != 1:
@@ -344,14 +346,12 @@
   def __sub__(self, other):
     other_ids = set(id(s) for s in other)
     after_symbols = [s for s in self if id(s) not in other_ids]
-    return self._CreateTransformed(after_symbols,
-                                   section_name=self.section_name)
+    return self._CreateTransformed(after_symbols)
 
   def __add__(self, other):
     self_ids = set(id(s) for s in self)
     after_symbols = self._symbols + [s for s in other if id(s) not in self_ids]
-    return self._CreateTransformed(
-        after_symbols, section_name=self.section_name, is_sorted=False)
+    return self._CreateTransformed(after_symbols, is_sorted=False)
 
   @property
   def address(self):
@@ -436,6 +436,8 @@
                          is_sorted=None):
     if is_sorted is None:
       is_sorted = self.is_sorted
+    if section_name is None:
+      section_name = self.section_name
     return SymbolGroup(symbols, filtered_symbols=filtered_symbols,
                        full_name=full_name, template_name=template_name,
                        name=name, section_name=section_name,
@@ -449,7 +451,7 @@
     after_symbols = sorted(self._symbols, cmp_func, key, reverse)
     return self._CreateTransformed(
         after_symbols, filtered_symbols=self._filtered_symbols,
-        section_name=self.section_name, is_sorted=True)
+        is_sorted=True)
 
   def SortedByName(self, reverse=False):
     return self.Sorted(key=(lambda s:s.name), reverse=reverse)
@@ -473,8 +475,7 @@
       raise
 
     return self._CreateTransformed(filtered_and_kept[1],
-                                   filtered_symbols=filtered_and_kept[0],
-                                   section_name=self.section_name)
+                                   filtered_symbols=filtered_and_kept[0])
 
   def WhereIsGroup(self):
     return self.Filter(lambda s: s.IsGroup())
@@ -567,7 +568,8 @@
         symbols.WherePathMatches(r'third_party').WhereMatches('foo').Inverted()
     """
     return self._CreateTransformed(
-        self._filtered_symbols, filtered_symbols=self._symbols, is_sorted=False)
+        self._filtered_symbols, filtered_symbols=self._symbols,
+        section_name=SECTION_NAME_MULTIPLE, is_sorted=False)
 
   def GroupedBy(self, func, min_count=0, group_factory=None):
     """Returns a SymbolGroup of SymbolGroups, indexed by |func|.
@@ -586,8 +588,7 @@
     """
     if group_factory is None:
       group_factory = lambda token, symbols: self._CreateTransformed(
-            symbols, full_name=token, template_name=token, name=token,
-            section_name=self.section_name)
+            symbols, full_name=token, template_name=token, name=token)
 
     after_syms = []
     filtered_symbols = []
@@ -626,8 +627,7 @@
           target_list.extend(symbol_or_list)
 
     return self._CreateTransformed(
-        after_syms, filtered_symbols=filtered_symbols,
-        section_name=self.section_name)
+        after_syms, filtered_symbols=filtered_symbols)
 
   def _Clustered(self):
     """Returns a new SymbolGroup with some symbols moved into subgroups.
diff --git a/tools/metrics/actions/actions.xml b/tools/metrics/actions/actions.xml
index ded4fc89f..bdd2f7e 100644
--- a/tools/metrics/actions/actions.xml
+++ b/tools/metrics/actions/actions.xml
@@ -3091,11 +3091,25 @@
   <description>Please enter the description of this user action.</description>
 </action>
 
+<action name="ClearBrowsingData_AdvancedTab">
+  <owner>dullweber@chromium.org</owner>
+  <owner>msramek@chromium.org</owner>
+  <description>
+    Browsing data has been deleted from the advanced tab.
+  </description>
+</action>
+
 <action name="ClearBrowsingData_Autofill">
   <owner>Please list the metric's owners. Add more owner tags as needed.</owner>
   <description>Please enter the description of this user action.</description>
 </action>
 
+<action name="ClearBrowsingData_BasicTab">
+  <owner>dullweber@chromium.org</owner>
+  <owner>msramek@chromium.org</owner>
+  <description>Browsing data has been deleted from the basic tab.</description>
+</action>
+
 <action name="ClearBrowsingData_Cache">
   <owner>Please list the metric's owners. Add more owner tags as needed.</owner>
   <description>Please enter the description of this user action.</description>
@@ -3115,6 +3129,12 @@
   </description>
 </action>
 
+<action name="ClearBrowsingData_ContentSettings">
+  <owner>dullweber@chromium.org</owner>
+  <owner>msramek@chromium.org</owner>
+  <description>Content settings have been deleted.</description>
+</action>
+
 <action name="ClearBrowsingData_Cookies">
   <owner>Please list the metric's owners. Add more owner tags as needed.</owner>
   <description>Please enter the description of this user action.</description>
@@ -3201,6 +3221,36 @@
   <description>Please enter the description of this user action.</description>
 </action>
 
+<action name="ClearBrowsingData_TimePeriodChanged_Everything">
+  <owner>dullweber@chromium.org</owner>
+  <owner>msramek@chromium.org</owner>
+  <description>Time period in CBD was changed.</description>
+</action>
+
+<action name="ClearBrowsingData_TimePeriodChanged_LastDay">
+  <owner>dullweber@chromium.org</owner>
+  <owner>msramek@chromium.org</owner>
+  <description>Time period in CBD was changed.</description>
+</action>
+
+<action name="ClearBrowsingData_TimePeriodChanged_LastHour">
+  <owner>dullweber@chromium.org</owner>
+  <owner>msramek@chromium.org</owner>
+  <description>Time period in CBD was changed.</description>
+</action>
+
+<action name="ClearBrowsingData_TimePeriodChanged_LastMonth">
+  <owner>dullweber@chromium.org</owner>
+  <owner>msramek@chromium.org</owner>
+  <description>Time period in CBD was changed.</description>
+</action>
+
+<action name="ClearBrowsingData_TimePeriodChanged_LastWeek">
+  <owner>dullweber@chromium.org</owner>
+  <owner>msramek@chromium.org</owner>
+  <description>Time period in CBD was changed.</description>
+</action>
+
 <action name="ClearSelection">
   <owner>Please list the metric's owners. Add more owner tags as needed.</owner>
   <description>Please enter the description of this user action.</description>
diff --git a/tools/metrics/histograms/enums.xml b/tools/metrics/histograms/enums.xml
index 099d7ca..a809396 100644
--- a/tools/metrics/histograms/enums.xml
+++ b/tools/metrics/histograms/enums.xml
@@ -4814,6 +4814,11 @@
   <int value="2119087611" label="nl"/>
 </enum>
 
+<enum name="ClearBrowsingDataTab" type="int">
+  <int value="0" label="Basic"/>
+  <int value="1" label="Advanced"/>
+</enum>
+
 <enum name="ClearDataSiteBlacklistCrossedReason" type="int">
   <int value="0" label="Durable"/>
   <int value="1" label="Notifications"/>
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index 0e09e82..d49de6c 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -23997,6 +23997,16 @@
   </summary>
 </histogram>
 
+<histogram name="History.ClearBrowsingData.UserDeletedFromTab"
+    enum="ClearBrowsingDataTab">
+  <owner>dullweber@chromium.org</owner>
+  <owner>msramek@chromium.org</owner>
+  <summary>
+    Recorded when the user deletes their browsing data. Shows which tab was used
+    to perform the deletion.
+  </summary>
+</histogram>
+
 <histogram name="History.DatabaseAdvancedMetricsTime" units="ms">
   <owner>shess@chromium.org</owner>
   <summary>
@@ -76329,10 +76339,9 @@
   <owner>treib@chromium.org</owner>
   <summary>
     The time for the new tab page to fire the &quot;load&quot; event. Note: This
-    is usually recorded with a suffix (.Local*/Google/Other). The base version
-    is recorded only on Android, as well as for the old NTP (&quot;NTP4&quot;)
-    on other platforms. Recorded only once per tab, i.e. excluding back/forward
-    navigations.
+    is usually recorded with a suffix (.Local/Google/Other). The base version
+    is recorded only on Android. Recorded only once per tab, i.e. excluding
+    back/forward navigations.
   </summary>
 </histogram>
 
@@ -95163,9 +95172,17 @@
 
 <histogram_suffixes name="TabNewTabOnload" separator=".">
   <suffix name="Local" label="Local New Tab page."/>
-  <suffix name="LocalGoogle" label="Local New Tab page for Google."/>
+  <suffix name="LocalGoogle" label="Local New Tab page for Google.">
+    <obsolete>
+      Removed 06/2017, never worked correctly.
+    </obsolete>
+  </suffix>
   <suffix name="LocalOther"
-      label="Local New Tab page for a non-Google provider."/>
+      label="Local New Tab page for a non-Google provider.">
+    <obsolete>
+      Removed 06/2017, never worked correctly.
+    </obsolete>
+  </suffix>
   <suffix name="Google" label="New Tab page for Google."/>
   <suffix name="Other" label="New Tab page for a non-Google provider."/>
   <affected-histogram name="Tab.NewTabOnload"/>
diff --git a/ui/file_manager/file_manager/common/js/util.js b/ui/file_manager/file_manager/common/js/util.js
index f322d58..a9501b0 100644
--- a/ui/file_manager/file_manager/common/js/util.js
+++ b/ui/file_manager/file_manager/common/js/util.js
@@ -670,6 +670,21 @@
 };
 
 /**
+ * Extracts Team Drive name from entry path.
+ * @param {(!Entry|!FakeEntry)} entry Entry or a fake entry.
+ * @return {string} The name of Team Drive. Empty string if |entry| is not
+ *     under Team Drives.
+ */
+util.getTeamDriveName = function(entry) {
+  if (!entry.fullPath || !util.isTeamDriveEntry(entry))
+    return '';
+  var tree = entry.fullPath.split('/');
+  if (tree.length < 3)
+    return '';
+  return tree[2];
+};
+
+/**
  * Creates an instance of UserDOMError with given error name that looks like a
  * FileError except that it does not have the deprecated FileError.code member.
  *
diff --git a/ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp b/ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp
index b1ebb6f8..b762652 100644
--- a/ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp
+++ b/ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp
@@ -262,6 +262,7 @@
         'metadata/compiled_resources2.gyp:metadata_model',
         'metadata/compiled_resources2.gyp:thumbnail_model',
         'ui/compiled_resources2.gyp:directory_tree',
+        'ui/compiled_resources2.gyp:file_manager_ui',
         'ui/compiled_resources2.gyp:list_container',
         'ui/compiled_resources2.gyp:multi_profile_share_dialog',
         'ui/compiled_resources2.gyp:progress_center_panel',
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
index ccc06a43..e111901b 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -645,6 +645,7 @@
     this.fileTransferController_ = new FileTransferController(
         assert(this.document_), assert(this.ui_.listContainer),
         assert(this.ui_.directoryTree), this.ui_.multiProfileShareDialog,
+        this.ui_.showConfirmationDialog.bind(this.ui_),
         assert(this.fileBrowserBackground_.progressCenter),
         assert(this.fileOperationManager_), assert(this.metadataModel_),
         assert(this.thumbnailModel_), assert(this.directoryModel_),
diff --git a/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js b/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js
index f368ca6..371fcc8cb 100644
--- a/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js
@@ -21,6 +21,9 @@
  * @param {!ListContainer} listContainer List container.
  * @param {!MultiProfileShareDialog} multiProfileShareDialog Share dialog to be
  *     used to share files from another profile.
+ * @param {function(boolean, !Array<string>): !Promise<boolean>}
+ *     confirmationCallback called when operation requires user's confirmation.
+ *     The opeartion will be executed if the return value resolved to true.
  * @param {!ProgressCenter} progressCenter To notify starting copy operation.
  * @param {!FileOperationManager} fileOperationManager File operation manager
  *     instance.
@@ -34,9 +37,10 @@
  * @constructor
  */
 function FileTransferController(
-    doc, listContainer, directoryTree, multiProfileShareDialog, progressCenter,
-    fileOperationManager, metadataModel, thumbnailModel, directoryModel,
-    volumeManager, selectionHandler, shouldShowCommandFor) {
+    doc, listContainer, directoryTree, multiProfileShareDialog,
+    confirmationCallback, progressCenter, fileOperationManager, metadataModel,
+    thumbnailModel, directoryModel, volumeManager, selectionHandler,
+    shouldShowCommandFor) {
   /**
    * @private {!Document}
    * @const
@@ -92,6 +96,13 @@
   this.multiProfileShareDialog_ = multiProfileShareDialog;
 
   /**
+   * @private {function(boolean, !Array<string>):
+   *     Promise<boolean>}
+   * @const
+   */
+  this.confirmationCallback_ = confirmationCallback;
+
+  /**
    * @private {!ProgressCenter}
    * @const
    */
@@ -220,12 +231,14 @@
  *
  * @param {!Array<string>} sourceURLs URLs of source entries.
  * @param {!DirectoryEntry} destinationEntry Destination directory.
+ * @param {!EntryLocation} destinationLocationInfo Location info of the
+ *     destination directory.
  * @param {boolean} isMove true if move, false if copy.
  * @constructor
  * @struct
  */
 FileTransferController.PastePlan = function(
-    sourceURLs, destinationEntry, isMove) {
+    sourceURLs, destinationEntry, destinationLocationInfo, isMove) {
   /**
    * @type {!Array<string>}
    * @const
@@ -238,6 +251,11 @@
   this.destinationEntry = destinationEntry;
 
   /**
+   * @type {!EntryLocation}
+   */
+  this.destinationLocationInfo = destinationLocationInfo;
+
+  /**
    * @type {boolean}
    * @const
    */
@@ -245,6 +263,105 @@
 };
 
 /**
+ * Confirmation message types.
+ *
+ * @enum {string}
+ */
+FileTransferController.ConfirmationType = {
+  NONE: 'none',
+  MOVE_BETWEEN_TEAM_DRIVES: 'between_team_drives',
+  MOVE_FROM_TEAM_DRIVE_TO_OTHER: 'move_from_team_drive_to_other',
+  MOVE_FROM_OTHER_TO_TEAM_DRIVE: 'move_from_other_to_team_drive',
+  COPY_FROM_OTHER_TO_TEAM_DRIVE: 'copy_from_other_to_team_drive',
+};
+
+/**
+ * Obtains whether the planned operation requires user's confirmation, as well
+ * as its type.
+ *
+ * @param {!Array<!Entry>} sourceEntries
+ * @return {FileTransferController.ConfirmationType} type of the confirmation
+ *     required for the operation. If no confirmation is needed,
+ *     FileTransferController.ConfirmationType.NONE will be returned.
+ */
+FileTransferController.PastePlan.prototype.getConfirmationType = function(
+    sourceEntries) {
+  assert(sourceEntries.length != 0);
+  var source = {
+    isTeamDrive: util.isTeamDriveEntry(sourceEntries[0]),
+    teamDriveName: util.getTeamDriveName(sourceEntries[0])
+  };
+  var destination = {
+    isTeamDrive: util.isTeamDriveEntry(this.destinationEntry),
+    teamDriveName: util.getTeamDriveName(this.destinationEntry)
+  };
+  if (this.isMove) {
+    if (source.isTeamDrive) {
+      if (destination.isTeamDrive) {
+        if (source.teamDriveName == destination.teamDriveName)
+          return FileTransferController.ConfirmationType.NONE;
+        else
+          return FileTransferController.ConfirmationType
+              .MOVE_BETWEEN_TEAM_DRIVES;
+      } else {
+        return FileTransferController.ConfirmationType
+            .MOVE_FROM_TEAM_DRIVE_TO_OTHER;
+      }
+    } else if (destination.isTeamDrive) {
+      return FileTransferController.ConfirmationType
+          .MOVE_FROM_OTHER_TO_TEAM_DRIVE;
+    }
+    return FileTransferController.ConfirmationType.NONE;
+  } else {
+    if (!destination.isTeamDrive)
+      return FileTransferController.ConfirmationType.NONE;
+    // Copying to Team Drive.
+    if (!(source.isTeamDrive &&
+          source.teamDriveName == destination.teamDriveName)) {
+      // This is not a copy within the same Team Drive.
+      return FileTransferController.ConfirmationType
+          .COPY_FROM_OTHER_TO_TEAM_DRIVE;
+    }
+    return FileTransferController.ConfirmationType.NONE;
+  }
+};
+
+/**
+ * Composes a confirmation message for the given type.
+ *
+ * @param {FileTransferController.ConfirmationType} confirmationType
+ * @return {!Array<string>} sentences for a confirmation dialog box.
+ */
+FileTransferController.PastePlan.prototype.getConfirmationMessages = function(
+    confirmationType, sourceEntries) {
+  assert(sourceEntries.length != 0);
+  var sourceName = util.getTeamDriveName(sourceEntries[0]);
+  var destinationName = util.getTeamDriveName(this.destinationEntry);
+  switch (confirmationType) {
+    case FileTransferController.ConfirmationType.MOVE_BETWEEN_TEAM_DRIVES:
+      return [
+        strf('DRIVE_CONFIRM_TD_MEMBERS_LOSE_ACCESS', sourceName),
+        strf('DRIVE_CONFIRM_TD_MEMBERS_GAIN_ACCESS_TO_COPY', destinationName)
+      ];
+    // TODO(yamaguchi): notify ownership transfer if the two Team Drives
+    // belong to different domains.
+    case FileTransferController.ConfirmationType.MOVE_FROM_TEAM_DRIVE_TO_OTHER:
+      return [
+        strf('DRIVE_CONFIRM_TD_MEMBERS_LOSE_ACCESS', sourceName)
+        // TODO(yamaguchi): Warn if the operation moves at least one
+        // directory to My Drive, as it's no undoable.
+      ];
+    case FileTransferController.ConfirmationType.MOVE_FROM_OTHER_TO_TEAM_DRIVE:
+      return [strf('DRIVE_CONFIRM_TD_MEMBERS_GAIN_ACCESS', destinationName)];
+    case FileTransferController.ConfirmationType.COPY_FROM_OTHER_TO_TEAM_DRIVE:
+      return [strf(
+          'DRIVE_CONFIRM_TD_MEMBERS_GAIN_ACCESS_TO_COPY', destinationName)];
+  }
+  assertNotReached('Invalid confirmation type: ' + confirmationType);
+  return [];
+};
+
+/**
  * Converts list of urls to list of Entries with granting R/W permissions to
  * them, which is essential when pasting files from a different profile.
  *
@@ -536,7 +653,7 @@
  * Collects parameters of paste operation by the given command and the current
  * system clipboard.
  *
- * @return {FileTransferController.PastePlan}
+ * @return {!FileTransferController.PastePlan}
  */
 FileTransferController.prototype.preparePaste = function(
     clipboardData, opt_destinationEntry, opt_effect) {
@@ -551,8 +668,15 @@
   var toMove = util.isDropEffectAllowed(effectAllowed, 'move') &&
       (!util.isDropEffectAllowed(effectAllowed, 'copy') ||
        opt_effect === 'move');
+
+  var destinationLocationInfo =
+      this.volumeManager_.getLocationInfo(destinationEntry);
+  if (!destinationLocationInfo)
+    console.log(
+        'Failed to get destination location for ' + destinationEntry.title() +
+        ' while attempting to paste files.');
   return new FileTransferController.PastePlan(
-      sourceURLs, destinationEntry, toMove);
+      sourceURLs, destinationEntry, assert(destinationLocationInfo), toMove);
 };
 
 /**
@@ -564,13 +688,35 @@
  * @param {string=} opt_effect Desired drop/paste effect. Could be
  *     'move'|'copy' (default is copy). Ignored if conflicts with
  *     |clipboardData.effectAllowed|.
- * @return {string} Either "copy" or "move".
+ * @return {!Promise<string>} Either "copy" or "move".
  */
 FileTransferController.prototype.paste = function(
     clipboardData, opt_destinationEntry, opt_effect) {
   var pastePlan =
       this.preparePaste(clipboardData, opt_destinationEntry, opt_effect);
-  return this.executePaste(pastePlan);
+
+  return util.URLsToEntries(pastePlan.sourceURLs).then(function(entriesResult) {
+    var sourceEntries = entriesResult.entries;
+    if (sourceEntries.length == 0) {
+      // This can happen when copied files were deleted before pasting them.
+      // We execute the plan as-is, so as to share the post-copy logic.
+      // This is basically same as getting empty by filtering same-directory
+      // entries.
+      return Promise.resolve(this.executePaste(pastePlan));
+    }
+    var confirmationType = pastePlan.getConfirmationType(sourceEntries);
+    if (confirmationType == FileTransferController.ConfirmationType.NONE) {
+      return Promise.resolve(this.executePaste(pastePlan));
+    }
+    var messages =
+        pastePlan.getConfirmationMessages(confirmationType, sourceEntries);
+    this.confirmationCallback_(pastePlan.isMove, messages)
+        .then(function(userApproved) {
+          if (userApproved) {
+            this.executePaste(pastePlan);
+          }
+        }.bind(this));
+  }.bind(this));
 };
 
 /**
@@ -1229,16 +1375,16 @@
     return;
   }
   event.preventDefault();
-  var effect = this.paste(assert(event.clipboardData), destination);
-
-  // On cut, we clear the clipboard after the file is pasted/moved so we don't
-  // try to move/delete the original file again.
-  if (effect === 'move') {
-    this.simulateCommand_('cut', function(event) {
-      event.preventDefault();
-      event.clipboardData.setData('fs/clear', '');
-    });
-  }
+  this.paste(assert(event.clipboardData), destination).then(function(effect) {
+    // On cut, we clear the clipboard after the file is pasted/moved so we don't
+    // try to move/delete the original file again.
+    if (effect === 'move') {
+      this.simulateCommand_('cut', function(event) {
+        event.preventDefault();
+        event.clipboardData.setData('fs/clear', '');
+      });
+    }
+  }.bind(this));
 };
 
 /**
diff --git a/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js b/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
index 54cf35f..06f54f2 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
@@ -73,6 +73,22 @@
   this.deleteConfirmDialog.setOkLabel(str('DELETE_BUTTON_LABEL'));
 
   /**
+   * Confirm dialog for file move operation.
+   * @type {!FilesConfirmDialog}
+   * @const
+   */
+  this.moveConfirmDialog = new FilesConfirmDialog(this.element);
+  this.moveConfirmDialog.setOkLabel(str('CONFIRM_MOVE_BUTTON_LABEL'));
+
+  /**
+   * Confirm dialog for file copy operation.
+   * @type {!FilesConfirmDialog}
+   * @const
+   */
+  this.copyConfirmDialog = new FilesConfirmDialog(this.element);
+  this.copyConfirmDialog.setOkLabel(str('CONFIRM_COPY_BUTTON_LABEL'));
+
+  /**
    * Share dialog.
    * @type {!ShareDialog}
    * @const
@@ -541,3 +557,29 @@
       this.alertDialog.showWithTitle(title, message, null, null, null);
     }.bind(this));
 };
+
+/**
+ * Shows confirmation dialog and handles user interaction.
+ * @param {boolean} isMove true if the operation is move. false if copy.
+ * @param {!Array<string>} messages The messages to show in the dialog.
+ *     box.
+ * @return {!Promise<boolean>}
+ */
+FileManagerUI.prototype.showConfirmationDialog = function(isMove, messages) {
+  var dialog = null;
+  if (isMove) {
+    dialog = this.moveConfirmDialog;
+  } else {
+    dialog = this.copyConfirmDialog;
+  }
+  return new Promise(function(resolve, reject) {
+    dialog.show(
+        messages.join(' '),
+        function() {
+          resolve(true);
+        },
+        function() {
+          resolve(false);
+        });
+  });
+};
diff --git a/ui/gfx/geometry/quaternion.cc b/ui/gfx/geometry/quaternion.cc
index 283df36..8c575e2 100644
--- a/ui/gfx/geometry/quaternion.cc
+++ b/ui/gfx/geometry/quaternion.cc
@@ -66,7 +66,14 @@
 }
 
 Quaternion Quaternion::Lerp(const Quaternion& q, double t) const {
-  return ((1.0 - t) * *this) + (t * q);
+  return (((1.0 - t) * *this) + (t * q)).normalized();
+}
+
+Quaternion Quaternion::normalized() const {
+  double length = x_ * x_ + y_ * y_ + z_ * z_ + w_ * w_;
+  if (length < kEpsilon)
+    return *this;
+  return *this * (1 / sqrt(length));
 }
 
 std::string Quaternion::ToString() const {
diff --git a/ui/gfx/geometry/quaternion.h b/ui/gfx/geometry/quaternion.h
index 9b214a0..cce365c 100644
--- a/ui/gfx/geometry/quaternion.h
+++ b/ui/gfx/geometry/quaternion.h
@@ -56,6 +56,8 @@
   // and values outside that range will extrapolate beyond in either direction.
   Quaternion Lerp(const Quaternion& q, double t) const;
 
+  Quaternion normalized() const;
+
   std::string ToString() const;
 
  private:
diff --git a/ui/gfx/geometry/quaternion_unittest.cc b/ui/gfx/geometry/quaternion_unittest.cc
index b66d0ffd8..14feaf3 100644
--- a/ui/gfx/geometry/quaternion_unittest.cc
+++ b/ui/gfx/geometry/quaternion_unittest.cc
@@ -17,45 +17,40 @@
 
 const double kEpsilon = 1e-7;
 
+void CompareQuaternions(const Quaternion& a, const Quaternion& b) {
+  EXPECT_FLOAT_EQ(a.x(), b.x());
+  EXPECT_FLOAT_EQ(a.y(), b.y());
+  EXPECT_FLOAT_EQ(a.z(), b.z());
+  EXPECT_FLOAT_EQ(a.w(), b.w());
+}
+
 }  // namespace
 
 TEST(QuatTest, DefaultConstruction) {
-  Quaternion q;
-  EXPECT_FLOAT_EQ(0.0, q.x());
-  EXPECT_FLOAT_EQ(0.0, q.y());
-  EXPECT_FLOAT_EQ(0.0, q.z());
-  EXPECT_FLOAT_EQ(1.0, q.w());
+  CompareQuaternions(Quaternion(0, 0, 0, 1), Quaternion());
 }
 
 TEST(QuatTest, AxisAngleCommon) {
-  float radians = 0.5;
-  Quaternion q(Vector3dF(1.0f, 0.0f, 0.0f), radians);
-  EXPECT_FLOAT_EQ(std::sin(radians / 2), q.x());
-  EXPECT_FLOAT_EQ(0.0, q.y());
-  EXPECT_FLOAT_EQ(0.0, q.z());
-  EXPECT_FLOAT_EQ(std::cos(radians / 2), q.w());
+  double radians = 0.5;
+  Quaternion q(Vector3dF(1, 0, 0), radians);
+  CompareQuaternions(
+      Quaternion(std::sin(radians / 2), 0, 0, std::cos(radians / 2)), q);
 }
 
 TEST(QuatTest, AxisAngleWithZeroLengthAxis) {
-  Quaternion q(Vector3dF(0.0f, 0.0f, 0.0f), 0.5);
+  Quaternion q(Vector3dF(0, 0, 0), 0.5);
   // If the axis of zero length, we should assume the default values.
-  EXPECT_FLOAT_EQ(0.0, q.x());
-  EXPECT_FLOAT_EQ(0.0, q.y());
-  EXPECT_FLOAT_EQ(0.0, q.z());
-  EXPECT_FLOAT_EQ(1.0, q.w());
+  CompareQuaternions(q, Quaternion());
 }
 
 TEST(QuatTest, Addition) {
-  float values[] = {0.f, 1.0f, 100.0f};
+  double values[] = {0, 1, 100};
   for (size_t i = 0; i < arraysize(values); ++i) {
     float t = values[i];
     Quaternion a(t, 2 * t, 3 * t, 4 * t);
     Quaternion b(5 * t, 4 * t, 3 * t, 2 * t);
     Quaternion sum = a + b;
-    EXPECT_FLOAT_EQ(6 * t, sum.x());
-    EXPECT_FLOAT_EQ(6 * t, sum.y());
-    EXPECT_FLOAT_EQ(6 * t, sum.z());
-    EXPECT_FLOAT_EQ(6 * t, sum.w());
+    CompareQuaternions(Quaternion(t, t, t, t) * 6, sum);
   }
 }
 
@@ -77,41 +72,38 @@
 
   for (size_t i = 0; i < arraysize(cases); ++i) {
     Quaternion product = cases[i].a * cases[i].b;
-    EXPECT_FLOAT_EQ(cases[i].expected.x(), product.x());
-    EXPECT_FLOAT_EQ(cases[i].expected.y(), product.y());
-    EXPECT_FLOAT_EQ(cases[i].expected.z(), product.z());
-    EXPECT_FLOAT_EQ(cases[i].expected.w(), product.w());
+    CompareQuaternions(cases[i].expected, product);
   }
 }
 
 TEST(QuatTest, Scaling) {
-  float values[] = {0.f, 1.0f, 100.0f};
+  double values[] = {0, 0, 100};
   for (size_t i = 0; i < arraysize(values); ++i) {
+    double s = values[i];
     Quaternion q(1, 2, 3, 4);
-    Quaternion qs = q * values[i];
-    Quaternion sq = values[i] * q;
-    EXPECT_FLOAT_EQ(1 * values[i], qs.x());
-    EXPECT_FLOAT_EQ(2 * values[i], qs.y());
-    EXPECT_FLOAT_EQ(3 * values[i], qs.z());
-    EXPECT_FLOAT_EQ(4 * values[i], qs.w());
-    EXPECT_FLOAT_EQ(1 * values[i], sq.x());
-    EXPECT_FLOAT_EQ(2 * values[i], sq.y());
-    EXPECT_FLOAT_EQ(3 * values[i], sq.z());
-    EXPECT_FLOAT_EQ(4 * values[i], sq.w());
+    Quaternion qs = q * s;
+    Quaternion sq = s * q;
+    Quaternion expected(s, 2 * s, 3 * s, 4 * s);
+    CompareQuaternions(expected, qs);
+    CompareQuaternions(expected, sq);
   }
 }
 
 TEST(QuatTest, Lerp) {
-  for (size_t i = 0; i < 100; ++i) {
+  for (size_t i = 1; i < 100; ++i) {
     Quaternion a(0, 0, 0, 0);
     Quaternion b(1, 2, 3, 4);
     float t = static_cast<float>(i) / 100.0f;
     Quaternion interpolated = a.Lerp(b, t);
-    EXPECT_FLOAT_EQ(1 * t, interpolated.x());
-    EXPECT_FLOAT_EQ(2 * t, interpolated.y());
-    EXPECT_FLOAT_EQ(3 * t, interpolated.z());
-    EXPECT_FLOAT_EQ(4 * t, interpolated.w());
+    double s = 1.0 / sqrt(30.0);
+    CompareQuaternions(Quaternion(1, 2, 3, 4) * s, interpolated);
   }
+
+  Quaternion a(4, 3, 2, 1);
+  Quaternion b(1, 2, 3, 4);
+  CompareQuaternions(a.normalized(), a.Lerp(b, 0));
+  CompareQuaternions(b.normalized(), a.Lerp(b, 1));
+  CompareQuaternions(Quaternion(1, 1, 1, 1).normalized(), a.Lerp(b, 0.5));
 }
 
 TEST(QuatTest, Slerp) {
@@ -148,10 +140,7 @@
   for (size_t i = 0; i < 100; ++i) {
     float t = static_cast<float>(i) / 100.0f;
     Quaternion interpolated = start.Slerp(stop, t);
-    EXPECT_FLOAT_EQ(expected.x(), interpolated.x());
-    EXPECT_FLOAT_EQ(expected.y(), interpolated.y());
-    EXPECT_FLOAT_EQ(expected.z(), interpolated.z());
-    EXPECT_FLOAT_EQ(expected.w(), interpolated.w());
+    CompareQuaternions(expected, interpolated);
   }
 }