diff --git a/AUTHORS b/AUTHORS index 342fe07..98003698 100644 --- a/AUTHORS +++ b/AUTHORS
@@ -98,6 +98,7 @@ Benjamin Dupont <bedupont@cisco.com> Benjamin Jemlich <pcgod99@gmail.com> Bernard Cafarelli <voyageur@gentoo.org> +Bhagirathi Satpathy <bhagirathi.s@samsung.com> Bhanukrushana Rout <b.rout@samsung.com> Biljith Jayan <billy.jayan@samsung.com> Bobby Powers <bobbypowers@gmail.com> @@ -597,6 +598,7 @@ Raveendra Karu <r.karu@samsung.com> Ravi Phaneendra Kasibhatla <r.kasibhatla@samsung.com> Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com> +Refael Ackermann <refack@gmail.com> Renata Hodovan <rhodovan.u-szeged@partner.samsung.com> Rene Bolldorf <rb@radix.io> Rene Ladan <r.c.ladan@gmail.com> @@ -612,6 +614,7 @@ Robert Nagy <robert.nagy@gmail.com> Robert Sesek <rsesek@bluestatic.org> Roland Takacs <rtakacs.u-szeged@partner.samsung.com> +Romain Pokrzywka <romain.pokrzywka@gmail.com> Rosen Dash <nqk836@motorola.com> Rosen Dash <rosen.dash@gmail.com> ruben <chromium@hybridsource.org>
diff --git a/DEPS b/DEPS index 1fca9cf..bc4e1fe 100644 --- a/DEPS +++ b/DEPS
@@ -36,11 +36,11 @@ # Three lines of non-changing comments so that # the commit queue can handle CLs rolling sfntly # and whatever else without interference from each other. - 'sfntly_revision': 'f033f8566c24291c22622ac64d9c2654ce9a1397', + 'sfntly_revision': '2439bd08ff93d4dce761dd6b825917938bd35a4f', # 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': '775663f2d2da3990a7d78c208fe5bb4c8fac7fc2', + 'skia_revision': '30229ac6282981c28ced8f513c8d09684d9d0581', # Three lines of non-changing comments so that # the commit queue can handle CLs rolling V8 # and whatever else without interference from each other.
diff --git a/base/message_loop/message_pump_libevent_unittest.cc b/base/message_loop/message_pump_libevent_unittest.cc index 0a7c485..89c4e1f5 100644 --- a/base/message_loop/message_pump_libevent_unittest.cc +++ b/base/message_loop/message_pump_libevent_unittest.cc
@@ -7,6 +7,7 @@ #include <unistd.h> #include <memory> +#include <utility> #include "base/bind.h" #include "base/bind_helpers.h" @@ -256,11 +257,12 @@ // Make the IO thread wait for |event| before writing to pipefds[1]. const char buf = 0; - const WaitableEventWatcher::EventCallback write_fd_task = - Bind(&WriteFDWrapper, pipefds_[1], &buf, 1); + WaitableEventWatcher::EventCallback write_fd_task = + BindOnce(&WriteFDWrapper, pipefds_[1], &buf, 1); io_loop()->task_runner()->PostTask( - FROM_HERE, BindOnce(IgnoreResult(&WaitableEventWatcher::StartWatching), - Unretained(watcher.get()), &event, write_fd_task)); + FROM_HERE, + BindOnce(IgnoreResult(&WaitableEventWatcher::StartWatching), + Unretained(watcher.get()), &event, std::move(write_fd_task))); // Queue |event| to signal on |loop|. loop.task_runner()->PostTask(
diff --git a/base/synchronization/waitable_event_watcher.h b/base/synchronization/waitable_event_watcher.h index 44ef504..4c83e21 100644 --- a/base/synchronization/waitable_event_watcher.h +++ b/base/synchronization/waitable_event_watcher.h
@@ -35,7 +35,7 @@ // public: // void DoStuffWhenSignaled(WaitableEvent *waitable_event) { // watcher_.StartWatching(waitable_event, -// base::Bind(&MyClass::OnWaitableEventSignaled, this); +// base::BindOnce(&MyClass::OnWaitableEventSignaled, this); // } // private: // void OnWaitableEventSignaled(WaitableEvent* waitable_event) { @@ -64,7 +64,7 @@ #endif { public: - typedef Callback<void(WaitableEvent*)> EventCallback; + using EventCallback = OnceCallback<void(WaitableEvent*)>; WaitableEventWatcher(); #if defined(OS_WIN) @@ -75,7 +75,7 @@ // When |event| is signaled, |callback| is called on the sequence that called // StartWatching(). - bool StartWatching(WaitableEvent* event, const EventCallback& callback); + bool StartWatching(WaitableEvent* event, EventCallback callback); // Cancel the current watch. Must be called from the same sequence which // started the watch.
diff --git a/base/synchronization/waitable_event_watcher_posix.cc b/base/synchronization/waitable_event_watcher_posix.cc index 3adbc5f..47fa2df 100644 --- a/base/synchronization/waitable_event_watcher_posix.cc +++ b/base/synchronization/waitable_event_watcher_posix.cc
@@ -61,16 +61,16 @@ class AsyncWaiter : public WaitableEvent::Waiter { public: AsyncWaiter(scoped_refptr<SequencedTaskRunner> task_runner, - const base::Closure& callback, + base::OnceClosure callback, Flag* flag) : task_runner_(std::move(task_runner)), - callback_(callback), + callback_(std::move(callback)), flag_(flag) {} bool Fire(WaitableEvent* event) override { // Post the callback if we haven't been cancelled. if (!flag_->value()) - task_runner_->PostTask(FROM_HERE, callback_); + task_runner_->PostTask(FROM_HERE, std::move(callback_)); // We are removed from the wait-list by the WaitableEvent itself. It only // remains to delete ourselves. @@ -86,7 +86,7 @@ private: const scoped_refptr<SequencedTaskRunner> task_runner_; - const base::Closure callback_; + base::OnceClosure callback_; const scoped_refptr<Flag> flag_; }; @@ -96,13 +96,13 @@ // of when the event is canceled. // ----------------------------------------------------------------------------- void AsyncCallbackHelper(Flag* flag, - const WaitableEventWatcher::EventCallback& callback, + WaitableEventWatcher::EventCallback callback, WaitableEvent* event) { // Runs on the sequence that called StartWatching(). if (!flag->value()) { // This is to let the WaitableEventWatcher know that the event has occured. flag->Set(); - callback.Run(event); + std::move(callback).Run(event); } } @@ -122,9 +122,8 @@ // The Handle is how the user cancels a wait. After deleting the Handle we // insure that the delegate cannot be called. // ----------------------------------------------------------------------------- -bool WaitableEventWatcher::StartWatching( - WaitableEvent* event, - const EventCallback& callback) { +bool WaitableEventWatcher::StartWatching(WaitableEvent* event, + EventCallback callback) { DCHECK(sequence_checker_.CalledOnValidSequence()); DCHECK(SequencedTaskRunnerHandle::Get()); @@ -137,8 +136,9 @@ DCHECK(!cancel_flag_) << "StartWatching called while still watching"; cancel_flag_ = new Flag; - const Closure internal_callback = base::Bind( - &AsyncCallbackHelper, base::RetainedRef(cancel_flag_), callback, event); + OnceClosure internal_callback = + base::BindOnce(&AsyncCallbackHelper, base::RetainedRef(cancel_flag_), + std::move(callback), event); WaitableEvent::WaitableEventKernel* kernel = event->kernel_.get(); AutoLock locked(kernel->lock_); @@ -149,13 +149,14 @@ // No hairpinning - we can't call the delegate directly here. We have to // post a task to the SequencedTaskRunnerHandle as usual. - SequencedTaskRunnerHandle::Get()->PostTask(FROM_HERE, internal_callback); + SequencedTaskRunnerHandle::Get()->PostTask(FROM_HERE, + std::move(internal_callback)); return true; } kernel_ = kernel; - waiter_ = new AsyncWaiter(SequencedTaskRunnerHandle::Get(), internal_callback, - cancel_flag_.get()); + waiter_ = new AsyncWaiter(SequencedTaskRunnerHandle::Get(), + std::move(internal_callback), cancel_flag_.get()); event->Enqueue(waiter_); return true;
diff --git a/base/synchronization/waitable_event_watcher_unittest.cc b/base/synchronization/waitable_event_watcher_unittest.cc index fcb4257d..9df72892 100644 --- a/base/synchronization/waitable_event_watcher_unittest.cc +++ b/base/synchronization/waitable_event_watcher_unittest.cc
@@ -52,7 +52,7 @@ WaitableEvent::InitialState::NOT_SIGNALED); WaitableEventWatcher watcher; - watcher.StartWatching(&event, Bind(&QuitWhenSignaled)); + watcher.StartWatching(&event, BindOnce(&QuitWhenSignaled)); event.Signal(); @@ -68,7 +68,7 @@ WaitableEventWatcher watcher; - watcher.StartWatching(&event, Bind(&QuitWhenSignaled)); + watcher.StartWatching(&event, BindOnce(&QuitWhenSignaled)); watcher.StopWatching(); } @@ -84,10 +84,9 @@ int counter = 1; DecrementCountContainer delegate(&counter); - WaitableEventWatcher::EventCallback callback = - Bind(&DecrementCountContainer::OnWaitableEventSignaled, - Unretained(&delegate)); - watcher.StartWatching(&event, callback); + WaitableEventWatcher::EventCallback callback = BindOnce( + &DecrementCountContainer::OnWaitableEventSignaled, Unretained(&delegate)); + watcher.StartWatching(&event, std::move(callback)); event.Signal(); @@ -113,7 +112,7 @@ { MessageLoop message_loop(message_loop_type); - watcher.StartWatching(&event, Bind(&QuitWhenSignaled)); + watcher.StartWatching(&event, BindOnce(&QuitWhenSignaled)); } } } @@ -131,7 +130,7 @@ new WaitableEvent(WaitableEvent::ResetPolicy::AUTOMATIC, WaitableEvent::InitialState::NOT_SIGNALED); - watcher.StartWatching(event, Bind(&QuitWhenSignaled)); + watcher.StartWatching(event, BindOnce(&QuitWhenSignaled)); delete event; } }
diff --git a/base/synchronization/waitable_event_watcher_win.cc b/base/synchronization/waitable_event_watcher_win.cc index a3eb73b..f3e114e3 100644 --- a/base/synchronization/waitable_event_watcher_win.cc +++ b/base/synchronization/waitable_event_watcher_win.cc
@@ -15,10 +15,9 @@ WaitableEventWatcher::~WaitableEventWatcher() { } -bool WaitableEventWatcher::StartWatching( - WaitableEvent* event, - const EventCallback& callback) { - callback_ = callback; +bool WaitableEventWatcher::StartWatching(WaitableEvent* event, + EventCallback callback) { + callback_ = std::move(callback); event_ = event; return watcher_.StartWatchingOnce(event->handle(), this); } @@ -31,12 +30,11 @@ void WaitableEventWatcher::OnObjectSignaled(HANDLE h) { WaitableEvent* event = event_; - EventCallback callback = callback_; + EventCallback callback = std::move(callback_); event_ = NULL; - callback_.Reset(); DCHECK(event); - callback.Run(event); + std::move(callback).Run(event); } } // namespace base
diff --git a/chrome/VERSION b/chrome/VERSION index 27223de..c97ffd5 100644 --- a/chrome/VERSION +++ b/chrome/VERSION
@@ -1,4 +1,4 @@ MAJOR=60 MINOR=0 -BUILD=3074 +BUILD=3075 PATCH=0
diff --git a/chrome/android/BUILD.gn b/chrome/android/BUILD.gn index 74ae6d7..9477510 100644 --- a/chrome/android/BUILD.gn +++ b/chrome/android/BUILD.gn
@@ -310,6 +310,7 @@ "//chrome/browser/notifications/notification_platform_bridge_android.cc", "//chrome/browser/ntp_snippets/ntp_snippets_metrics.h", "//chrome/browser/profiles/profile_metrics.h", + "//chrome/browser/translate/android/translate_utils.h", "//chrome/browser/ui/android/infobars/infobar_android.h", ] }
diff --git a/chrome/android/java/AndroidManifest.xml b/chrome/android/java/AndroidManifest.xml index 46c4a51..ee95c16c 100644 --- a/chrome/android/java/AndroidManifest.xml +++ b/chrome/android/java/AndroidManifest.xml
@@ -30,8 +30,6 @@ permission on Android M and later without a prompt. --> {% if channel in ['default'] %} - <uses-permission android:name="android.permission.BLUETOOTH"/> - <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/> {% endif %} <uses-permission-sdk-m android:name="android.permission.BLUETOOTH"/>
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java index e7b6ff7..74f81640 100644 --- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
@@ -401,19 +401,19 @@ ChromePreferenceManager preferenceManager = ChromePreferenceManager.getInstance(); // Promos can only be shown when we start with ACTION_MAIN intent and - // after FRE is complete. - if (!mIntentWithEffect && FirstRunStatus.getFirstRunFlowComplete()) { - // Only show promos on the second oppurtunity. This is because we show FRE on the - // first oppurtunity, and we don't want to show such content back to back. - if (preferenceManager.getPromosSkippedOnFirstStart()) { - // Data reduction promo should be temporarily suppressed if the sign in promo is - // shown to avoid nagging users too much. - if (!SigninPromoUtil.launchSigninPromoIfNeeded(this)) { - DataReductionPromoScreen.launchDataReductionPromo(this); - } - } else { - preferenceManager.setPromosSkippedOnFirstStart(true); + // after FRE is complete. Native initialization can finish before the FRE flow is + // complete, and this will only show promos on the second opportunity. This is because + // the FRE is shown on the first opportunity, and we don't want to show such content + // back to back. + if (!mIntentWithEffect && FirstRunStatus.getFirstRunFlowComplete() + && preferenceManager.getPromosSkippedOnFirstStart()) { + // Data reduction promo should be temporarily suppressed if the sign in promo is + // shown to avoid nagging users too much. + if (!SigninPromoUtil.launchSigninPromoIfNeeded(this)) { + DataReductionPromoScreen.launchDataReductionPromo(this); } + } else { + preferenceManager.setPromosSkippedOnFirstStart(true); } initializeUI();
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java index 72213bc..023dd086 100644 --- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java
@@ -93,5 +93,8 @@ @Override public void onTabReselected(TabLayout.Tab tab) {} - private native void nativeApplyTranslateOptions(long nativeTranslateCompactInfoBar); + private native void nativeApplyStringTranslateOption( + long nativeTranslateCompactInfoBar, int option, String value); + private native void nativeApplyBoolTranslateOption( + long nativeTranslateCompactInfoBar, int option, boolean value); }
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java index 8ba065f..6c01ec4 100644 --- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
@@ -433,26 +433,26 @@ } if (mMethodData != null) { - disconnectFromClientWithDebugMessage("PaymentRequest.show() called more than once."); recordAbortReasonHistogram( PaymentRequestMetrics.ABORT_REASON_INVALID_DATA_FROM_RENDERER); + disconnectFromClientWithDebugMessage("Renderer should never call init() twice"); return; } mMethodData = getValidatedMethodData(methodData, mCardEditor); if (mMethodData == null) { - disconnectFromClientWithDebugMessage("Invalid payment methods or data"); recordAbortReasonHistogram( PaymentRequestMetrics.ABORT_REASON_INVALID_DATA_FROM_RENDERER); + disconnectFromClientWithDebugMessage("Invalid payment methods or data"); return; } if (!parseAndValidateDetailsOrDisconnectFromClient(details)) return; if (mRawTotal == null) { - disconnectFromClientWithDebugMessage("Missing total"); recordAbortReasonHistogram( PaymentRequestMetrics.ABORT_REASON_INVALID_DATA_FROM_RENDERER); + disconnectFromClientWithDebugMessage("Missing total"); return; } @@ -578,10 +578,23 @@ public void show() { if (mClient == null) return; - if (getIsAnyPaymentRequestShowing()) { - disconnectFromClientWithDebugMessage("A PaymentRequest UI is already showing"); + if (mUI != null) { + // Can be triggered only by a compromised renderer. In normal operation, calling show() + // twice on the same instance of PaymentRequest in JavaScript is rejected at the + // renderer level. recordAbortReasonHistogram( PaymentRequestMetrics.ABORT_REASON_INVALID_DATA_FROM_RENDERER); + disconnectFromClientWithDebugMessage("Renderer should never invoke show() twice"); + return; + } + + if (getIsAnyPaymentRequestShowing()) { + // The renderer can create multiple instances of PaymentRequest and call show() on each + // one. Only the first one will be shown. This also prevents multiple tabs and windows + // from showing PaymentRequest UI at the same time. + recordNoShowReasonHistogram(PaymentRequestMetrics.NO_SHOW_CONCURRENT_REQUESTS); + disconnectFromClientWithDebugMessage("A PaymentRequest UI is already showing"); + if (sObserverForTest != null) sObserverForTest.onPaymentRequestServiceShowFailed(); return; } @@ -590,8 +603,9 @@ ChromeActivity chromeActivity = ChromeActivity.fromWebContents(mWebContents); if (chromeActivity == null) { + recordNoShowReasonHistogram(PaymentRequestMetrics.NO_SHOW_REASON_OTHER); disconnectFromClientWithDebugMessage("Unable to find Chrome activity"); - recordAbortReasonHistogram(PaymentRequestMetrics.ABORT_REASON_OTHER); + if (sObserverForTest != null) sObserverForTest.onPaymentRequestServiceShowFailed(); return; } @@ -719,10 +733,10 @@ if (mClient == null) return; if (mUI == null) { - disconnectFromClientWithDebugMessage( - "PaymentRequestUpdateEvent.updateWith() called without PaymentRequest.show()"); recordAbortReasonHistogram( PaymentRequestMetrics.ABORT_REASON_INVALID_DATA_FROM_RENDERER); + disconnectFromClientWithDebugMessage( + "PaymentRequestUpdateEvent.updateWith() called without PaymentRequest.show()"); return; } @@ -753,9 +767,9 @@ */ private boolean parseAndValidateDetailsOrDisconnectFromClient(PaymentDetails details) { if (!PaymentValidator.validatePaymentDetails(details)) { - disconnectFromClientWithDebugMessage("Invalid payment details"); recordAbortReasonHistogram( PaymentRequestMetrics.ABORT_REASON_INVALID_DATA_FROM_RENDERER); + disconnectFromClientWithDebugMessage("Invalid payment details"); return false; } @@ -1224,8 +1238,8 @@ @Override public void onDismiss() { - disconnectFromClientWithDebugMessage("Dialog dismissed"); recordAbortReasonHistogram(PaymentRequestMetrics.ABORT_REASON_ABORTED_BY_USER); + disconnectFromClientWithDebugMessage("Dialog dismissed"); } private void disconnectFromClientWithDebugMessage(String debugMessage) { @@ -1283,16 +1297,16 @@ public void onCardAndAddressSettingsClicked() { Context context = ChromeActivity.fromWebContents(mWebContents); if (context == null) { - disconnectFromClientWithDebugMessage("Unable to find Chrome activity"); recordAbortReasonHistogram(PaymentRequestMetrics.ABORT_REASON_OTHER); + disconnectFromClientWithDebugMessage("Unable to find Chrome activity"); return; } Intent intent = PreferencesLauncher.createIntentForSettingsPage( context, AutofillAndPaymentsPreferences.class.getName()); context.startActivity(intent); - disconnectFromClientWithDebugMessage("Card and address settings clicked"); recordAbortReasonHistogram(PaymentRequestMetrics.ABORT_REASON_ABORTED_BY_USER); + disconnectFromClientWithDebugMessage("Card and address settings clicked"); } /** @@ -1484,12 +1498,12 @@ // All payment apps have responded, but none of them have instruments. It's possible to // add credit cards, but the merchant does not support them either. The payment request // must be rejected. - disconnectFromClientWithDebugMessage("Requested payment methods have no instruments", - mIsIncognito ? PaymentErrorReason.USER_CANCEL - : PaymentErrorReason.NOT_SUPPORTED); recordNoShowReasonHistogram(mArePaymentMethodsSupported ? PaymentRequestMetrics.NO_SHOW_NO_MATCHING_PAYMENT_METHOD : PaymentRequestMetrics.NO_SHOW_NO_SUPPORTED_PAYMENT_METHOD); + disconnectFromClientWithDebugMessage("Requested payment methods have no instruments", + mIsIncognito ? PaymentErrorReason.USER_CANCEL + : PaymentErrorReason.NOT_SUPPORTED); if (sObserverForTest != null) sObserverForTest.onPaymentRequestServiceShowFailed(); return true; }
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestMetrics.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestMetrics.java index 709855b1..41f301f 100644 --- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestMetrics.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestMetrics.java
@@ -54,7 +54,11 @@ @VisibleForTesting public static final int NO_SHOW_NO_SUPPORTED_PAYMENT_METHOD = 1; @VisibleForTesting - public static final int NO_SHOW_REASON_MAX = 2; + public static final int NO_SHOW_CONCURRENT_REQUESTS = 2; + @VisibleForTesting + public static final int NO_SHOW_REASON_OTHER = 3; + @VisibleForTesting + public static final int NO_SHOW_REASON_MAX = 4; // PaymentRequestPaymentMethods defined in tools/metrics/histograms/histograms.xml. @VisibleForTesting
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestMetricsTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestMetricsTest.java index 300fad6..56b3db2 100644 --- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestMetricsTest.java +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestMetricsTest.java
@@ -4,7 +4,6 @@ package org.chromium.chrome.browser.payments; -import android.annotation.SuppressLint; import android.content.DialogInterface; import android.support.test.filters.MediumTest; @@ -334,22 +333,6 @@ } /** - * Asserts that only the specified reason for abort is logged. - * - * @param abortReason The only bucket in the abort histogram that should have a record. - */ - // TODO(crbug.com/635567): Fix this properly. - @SuppressLint("DefaultLocale") - private void assertOnlySpecificAbortMetricLogged(int abortReason) { - for (int i = 0; i < PaymentRequestMetrics.ABORT_REASON_MAX; ++i) { - assertEquals(String.format("Found %d instead of %d", i, abortReason), - (i == abortReason ? 1 : 0), - RecordHistogram.getHistogramValueCountForTesting( - "PaymentRequest.CheckoutFunnel.Aborted", i)); - } - } - - /** * Asserts that only the specified selected payment method is logged. * * @param paymentMethod The only bucket in the selected payment method histogram that should
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestShowTwiceTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestShowTwiceTest.java index d461d738..a265a3a 100644 --- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestShowTwiceTest.java +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestShowTwiceTest.java
@@ -6,6 +6,7 @@ import android.support.test.filters.MediumTest; +import org.chromium.base.metrics.RecordHistogram; import org.chromium.base.test.util.Feature; import org.chromium.chrome.R; import org.chromium.chrome.browser.autofill.AutofillTestHelper; @@ -41,6 +42,16 @@ throws InterruptedException, ExecutionException, TimeoutException { triggerUIAndWait(mReadyToPay); expectResultContains(new String[] {"Second request: AbortError: Request cancelled"}); + + // The web payments UI was not aborted. + assertOnlySpecificAbortMetricLogged(-1 /* none */); + + // The UI was never shown due to another web payments UI already showing. + assertEquals(1, + RecordHistogram.getHistogramValueCountForTesting( + "PaymentRequest.CheckoutFunnel.NoShow", + PaymentRequestMetrics.NO_SHOW_CONCURRENT_REQUESTS)); + clickAndWait(R.id.close_button, mDismissed); } }
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java index 5f199ec..c0100504 100644 --- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java
@@ -15,6 +15,7 @@ import android.widget.Spinner; import org.chromium.base.ThreadUtils; +import org.chromium.base.metrics.RecordHistogram; import org.chromium.base.test.util.CallbackHelper; import org.chromium.base.test.util.RetryOnFailure; import org.chromium.base.test.util.UrlUtils; @@ -42,6 +43,7 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.List; +import java.util.Locale; import java.util.Map; import java.util.Set; import java.util.concurrent.Callable; @@ -727,6 +729,21 @@ }); } + /** + * Asserts that only the specified reason for abort is logged. + * + * @param abortReason The only bucket in the abort histogram that should have a record. + */ + protected void assertOnlySpecificAbortMetricLogged(int abortReason) { + for (int i = 0; i < PaymentRequestMetrics.ABORT_REASON_MAX; ++i) { + assertEquals( + String.format(Locale.getDefault(), "Found %d instead of %d", i, abortReason), + (i == abortReason ? 1 : 0), + RecordHistogram.getHistogramValueCountForTesting( + "PaymentRequest.CheckoutFunnel.Aborted", i)); + } + } + @Override public void onPaymentRequestReadyForInput(PaymentRequestUI ui) { ThreadUtils.assertOnUiThread();
diff --git a/chrome/browser/android/offline_pages/background_loader_offliner.cc b/chrome/browser/android/offline_pages/background_loader_offliner.cc index f8f86b6..60f8c50 100644 --- a/chrome/browser/android/offline_pages/background_loader_offliner.cc +++ b/chrome/browser/android/offline_pages/background_loader_offliner.cc
@@ -9,6 +9,7 @@ #include "chrome/browser/android/offline_pages/offline_page_mhtml_archiver.h" #include "chrome/browser/android/offline_pages/offliner_helper.h" #include "chrome/browser/profiles/profile.h" +#include "components/offline_pages/core/background/offliner_policy.h" #include "components/offline_pages/core/background/save_page_request.h" #include "components/offline_pages/core/client_namespace_constants.h" #include "components/offline_pages/core/offline_page_model.h" @@ -71,6 +72,7 @@ OfflinePageModel* offline_page_model) : browser_context_(browser_context), offline_page_model_(offline_page_model), + policy_(policy), is_low_end_device_(base::SysInfo::IsLowEndDevice()), save_state_(NONE), page_load_state_(SUCCESS), @@ -196,13 +198,27 @@ } bool BackgroundLoaderOffliner::HandleTimeout(const SavePageRequest& request) { - // TODO(romax): Decide if we want to also take a snapshot on the last timeout - // for the background loader offliner. crbug.com/705090 + if (pending_request_) { + DCHECK(request.request_id() == pending_request_->request_id()); + if (is_low_bar_met_ && + (request.started_attempt_count() + 1 >= policy_->GetMaxStartedTries() || + request.completed_attempt_count() + 1 >= + policy_->GetMaxCompletedTries())) { + // If we are already in the middle of a save operation, let it finish + // but do not return SAVED_ON_LAST_RETRY + if (save_state_ == NONE) { + did_snapshot_on_last_retry_ = true; + StartSnapshot(); + } + return true; + } + } return false; } void BackgroundLoaderOffliner::DocumentAvailableInMainFrame() { snapshot_controller_->DocumentAvailableInMainFrame(); + is_low_bar_met_ = true; } void BackgroundLoaderOffliner::DocumentOnLoadCompletedInMainFrame() { @@ -334,6 +350,7 @@ return; SavePageRequest request(*pending_request_.get()); + bool did_snapshot_on_last_retry = did_snapshot_on_last_retry_; ResetState(); if (save_state_ == DELETE_AFTER_SAVE) { @@ -345,10 +362,14 @@ save_state_ = NONE; Offliner::RequestStatus save_status; - if (save_result == SavePageResult::SUCCESS) - save_status = RequestStatus::SAVED; - else + if (save_result == SavePageResult::SUCCESS) { + if (did_snapshot_on_last_retry) + save_status = RequestStatus::SAVED_ON_LAST_RETRY; + else + save_status = RequestStatus::SAVED; + } else { save_status = RequestStatus::SAVE_FAILED; + } completion_callback_.Run(request, save_status); } @@ -358,6 +379,8 @@ snapshot_controller_.reset(); page_load_state_ = SUCCESS; network_bytes_ = 0LL; + is_low_bar_met_ = false; + did_snapshot_on_last_retry_ = false; // TODO(chili): Remove after RequestCoordinator can handle multiple offliners. // We reset the loader and observer after completion so loaders // will not be re-used across different requests/tries. This is a temporary
diff --git a/chrome/browser/android/offline_pages/background_loader_offliner.h b/chrome/browser/android/offline_pages/background_loader_offliner.h index 8d63c3c3..25378b7 100644 --- a/chrome/browser/android/offline_pages/background_loader_offliner.h +++ b/chrome/browser/android/offline_pages/background_loader_offliner.h
@@ -84,6 +84,8 @@ content::BrowserContext* browser_context_; // Not owned. OfflinePageModel* offline_page_model_; + // Not owned. + const OfflinerPolicy* policy_; // Tracks pending request, if any. std::unique_ptr<SavePageRequest> pending_request_; // Handles determining when a page should be snapshotted. @@ -105,6 +107,10 @@ long page_delay_ms_; // Network bytes loaded. int64_t network_bytes_; + // Whether the low bar of snapshot quality has been met. + bool is_low_bar_met_; + // Whether the snapshot is on the last retry. + bool did_snapshot_on_last_retry_; // Callback for cancel. CancelCallback cancel_callback_;
diff --git a/chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc b/chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc index d9078c4..15df60d4 100644 --- a/chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc +++ b/chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc
@@ -16,6 +16,7 @@ #include "components/content_settings/core/common/pref_names.h" #include "components/offline_pages/content/background_loader/background_loader_contents_stub.h" #include "components/offline_pages/core/background/offliner.h" +#include "components/offline_pages/core/background/offliner_policy.h" #include "components/offline_pages/core/background/save_page_request.h" #include "components/offline_pages/core/stub_offline_page_model.h" #include "components/prefs/pref_service.h" @@ -146,6 +147,7 @@ MockOfflinePageModel* model() const { return model_; } const base::HistogramTester& histograms() const { return histogram_tester_; } int64_t progress() { return progress_; } + OfflinerPolicy* policy() const { return policy_.get(); } void PumpLoop() { base::RunLoop().RunUntilIdle(); } @@ -161,6 +163,7 @@ void OnCancel(int64_t offline_id); content::TestBrowserThreadBundle thread_bundle_; TestingProfile profile_; + std::unique_ptr<OfflinerPolicy> policy_; std::unique_ptr<TestBackgroundLoaderOffliner> offliner_; MockOfflinePageModel* model_; bool completion_callback_called_; @@ -183,7 +186,9 @@ void BackgroundLoaderOfflinerTest::SetUp() { model_ = new MockOfflinePageModel(); - offliner_.reset(new TestBackgroundLoaderOffliner(profile(), nullptr, model_)); + policy_.reset(new OfflinerPolicy()); + offliner_.reset( + new TestBackgroundLoaderOffliner(profile(), policy_.get(), model_)); offliner_->SetPageDelayForTest(0L); } @@ -483,4 +488,76 @@ EXPECT_FALSE(SaveInProgress()); } +TEST_F(BackgroundLoaderOfflinerTest, HandleTimeoutWithLowBarStartedTriesMet) { + base::Time creation_time = base::Time::Now(); + SavePageRequest request(kRequestId, kHttpUrl, kClientId, creation_time, + kUserRequested); + EXPECT_TRUE(offliner()->LoadAndSave(request, completion_callback(), + progress_callback())); + request.set_started_attempt_count(policy()->GetMaxStartedTries() - 1); + // Sets lowbar. + offliner()->DocumentAvailableInMainFrame(); + // Timeout + EXPECT_TRUE(offliner()->HandleTimeout(request)); + EXPECT_TRUE(SaveInProgress()); + model()->CompleteSavingAsSuccess(); + PumpLoop(); + EXPECT_EQ(Offliner::RequestStatus::SAVED_ON_LAST_RETRY, request_status()); +} + +TEST_F(BackgroundLoaderOfflinerTest, HandleTimeoutWithLowBarCompletedTriesMet) { + base::Time creation_time = base::Time::Now(); + SavePageRequest request(kRequestId, kHttpUrl, kClientId, creation_time, + kUserRequested); + EXPECT_TRUE(offliner()->LoadAndSave(request, completion_callback(), + progress_callback())); + request.set_completed_attempt_count(policy()->GetMaxCompletedTries() - 1); + // Sets lowbar. + offliner()->DocumentAvailableInMainFrame(); + // Timeout + EXPECT_TRUE(offliner()->HandleTimeout(request)); + EXPECT_TRUE(SaveInProgress()); + model()->CompleteSavingAsSuccess(); + PumpLoop(); + EXPECT_EQ(Offliner::RequestStatus::SAVED_ON_LAST_RETRY, request_status()); +} + +TEST_F(BackgroundLoaderOfflinerTest, HandleTimeoutWithNoLowBarStartedTriesMet) { + base::Time creation_time = base::Time::Now(); + SavePageRequest request(kRequestId, kHttpUrl, kClientId, creation_time, + kUserRequested); + EXPECT_TRUE(offliner()->LoadAndSave(request, completion_callback(), + progress_callback())); + request.set_started_attempt_count(policy()->GetMaxStartedTries() - 1); + // Timeout + EXPECT_FALSE(offliner()->HandleTimeout(request)); + EXPECT_FALSE(SaveInProgress()); +} + +TEST_F(BackgroundLoaderOfflinerTest, + HandleTimeoutWithNoLowBarCompletedTriesMet) { + base::Time creation_time = base::Time::Now(); + SavePageRequest request(kRequestId, kHttpUrl, kClientId, creation_time, + kUserRequested); + EXPECT_TRUE(offliner()->LoadAndSave(request, completion_callback(), + progress_callback())); + request.set_completed_attempt_count(policy()->GetMaxCompletedTries() - 1); + // Timeout + EXPECT_FALSE(offliner()->HandleTimeout(request)); + EXPECT_FALSE(SaveInProgress()); +} + +TEST_F(BackgroundLoaderOfflinerTest, HandleTimeoutWithLowBarNoRetryLimit) { + base::Time creation_time = base::Time::Now(); + SavePageRequest request(kRequestId, kHttpUrl, kClientId, creation_time, + kUserRequested); + EXPECT_TRUE(offliner()->LoadAndSave(request, completion_callback(), + progress_callback())); + // Sets lowbar. + offliner()->DocumentAvailableInMainFrame(); + // Timeout + EXPECT_FALSE(offliner()->HandleTimeout(request)); + EXPECT_FALSE(SaveInProgress()); +} + } // namespace offline_pages
diff --git a/chrome/browser/android/offline_pages/prerendering_offliner.cc b/chrome/browser/android/offline_pages/prerendering_offliner.cc index db341ef..7e0220c 100644 --- a/chrome/browser/android/offline_pages/prerendering_offliner.cc +++ b/chrome/browser/android/offline_pages/prerendering_offliner.cc
@@ -38,6 +38,7 @@ offline_page_model_(offline_page_model), pending_request_(nullptr), is_low_end_device_(base::SysInfo::IsLowEndDevice()), + saved_on_last_retry_(false), app_listener_(nullptr), weak_ptr_factory_(this) {} @@ -158,12 +159,16 @@ // Determine status and run the completion callback. Offliner::RequestStatus save_status; if (save_result == SavePageResult::SUCCESS) { - save_status = RequestStatus::SAVED; + if (saved_on_last_retry_) + save_status = RequestStatus::SAVED_ON_LAST_RETRY; + else + save_status = RequestStatus::SAVED; } else { // TODO(dougarnett): Consider reflecting some recommendation to retry the // request based on specific save error cases. save_status = RequestStatus::SAVE_FAILED; } + saved_on_last_retry_ = false; completion_callback_.Run(request, save_status); } @@ -230,6 +235,7 @@ pending_request_.reset(new SavePageRequest(request)); completion_callback_ = completion_callback; progress_callback_ = progress_callback; + saved_on_last_retry_ = false; // Kick off load page attempt. bool accepted = GetOrCreateLoader()->LoadPage( @@ -268,6 +274,7 @@ (request.started_attempt_count() + 1 >= policy_->GetMaxStartedTries() || request.completed_attempt_count() + 1 >= policy_->GetMaxCompletedTries())) { + saved_on_last_retry_ = true; GetOrCreateLoader()->StartSnapshot(); return true; }
diff --git a/chrome/browser/android/offline_pages/prerendering_offliner.h b/chrome/browser/android/offline_pages/prerendering_offliner.h index 22e92b1..02dd912 100644 --- a/chrome/browser/android/offline_pages/prerendering_offliner.h +++ b/chrome/browser/android/offline_pages/prerendering_offliner.h
@@ -99,6 +99,7 @@ CompletionCallback completion_callback_; ProgressCallback progress_callback_; bool is_low_end_device_; + bool saved_on_last_retry_; // ApplicationStatusListener to monitor if the Chrome moves to the foreground. std::unique_ptr<base::android::ApplicationStatusListener> app_listener_; base::WeakPtrFactory<PrerenderingOffliner> weak_ptr_factory_;
diff --git a/chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc b/chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc index d338b3c..db41ab6 100644 --- a/chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc +++ b/chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc
@@ -66,7 +66,15 @@ bool IsLoaded() override { return mock_loaded_; } bool IsLowbarMet() override { return mock_is_lowbar_met_; } - void StartSnapshot() override { start_snapshot_called_ = true; } + void StartSnapshot() override { + start_snapshot_called_ = true; + // Call start saving process. + web_contents_ = content::WebContentsTester::CreateTestWebContents( + new TestingProfile(), NULL); + base::ThreadTaskRunnerHandle::Get()->PostTask( + FROM_HERE, base::Bind(load_page_callback_, + Offliner::RequestStatus::LOADED, web_contents_)); + } void CompleteLoadingAsFailed() { DCHECK(mock_loading_); @@ -472,6 +480,12 @@ loader()->set_is_lowbar_met(true); EXPECT_TRUE(offliner()->HandleTimeout(request)); EXPECT_TRUE(loader()->start_snapshot_called()); + PumpLoop(); + // EXPECT_TRUE(SaveInProgress()); + model()->CompleteSavingAsSuccess(); + PumpLoop(); + EXPECT_TRUE(completion_callback_called()); + EXPECT_EQ(Offliner::RequestStatus::SAVED_ON_LAST_RETRY, request_status()); } TEST_F(PrerenderingOfflinerTest, @@ -504,6 +518,20 @@ EXPECT_FALSE(loader()->start_snapshot_called()); } +TEST_F(PrerenderingOfflinerTest, HandleTimeoutStartedTriesMetWithoutLowbarMet) { + offliner()->SetLowEndDeviceForTesting(false); + + base::Time creation_time = base::Time::Now(); + SavePageRequest request(kRequestId, kHttpUrl, kClientId, creation_time, + kUserRequested); + request.set_started_attempt_count(policy()->GetMaxStartedTries() - 1); + EXPECT_TRUE(offliner()->LoadAndSave(request, completion_callback(), + progress_callback())); + loader()->set_is_lowbar_met(false); + EXPECT_FALSE(offliner()->HandleTimeout(request)); + EXPECT_FALSE(loader()->start_snapshot_called()); +} + TEST_F(PrerenderingOfflinerTest, HandleTimeoutWithLowbarAndStartedTriesMet) { offliner()->SetLowEndDeviceForTesting(false);
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 0cf44b96..6f644644 100644 --- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc +++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
@@ -914,7 +914,7 @@ base::WaitableEventWatcher::EventCallback watcher_callback = base::Bind( &ChromeBrowsingDataRemoverDelegate::OnWaitableEventSignaled, weak_ptr_factory_.GetWeakPtr()); - watcher_.StartWatching(event, watcher_callback); + watcher_.StartWatching(event, std::move(watcher_callback)); } else { // TODO(msramek): Store filters from the currently executed task on the // object to avoid having to copy them to callback methods.
diff --git a/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc b/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc index 6f39cd9..0e9d7764 100644 --- a/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc +++ b/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc
@@ -72,7 +72,7 @@ #define MAYBE_FileDisplay FileDisplay #endif WRAPPED_INSTANTIATE_TEST_CASE_P( - DISABLED_FileDisplay, + MAYBE_FileDisplay, FileManagerBrowserTest, ::testing::Values(TestParameter(NOT_IN_GUEST_MODE, "fileDisplayDownloads"), TestParameter(IN_GUEST_MODE, "fileDisplayDownloads"), @@ -153,7 +153,7 @@ #define MAYBE_KeyboardOperations KeyboardOperations #endif WRAPPED_INSTANTIATE_TEST_CASE_P( - DISABLED_KeyboardOperations, + MAYBE_KeyboardOperations, FileManagerBrowserTest, ::testing::Values( TestParameter(IN_GUEST_MODE, "keyboardDeleteDownloads"), @@ -272,7 +272,7 @@ #define MAYBE_Transfer Transfer #endif WRAPPED_INSTANTIATE_TEST_CASE_P( - DISABLED_Transfer, + MAYBE_Transfer, FileManagerBrowserTest, ::testing::Values( TestParameter(NOT_IN_GUEST_MODE, "transferFromDriveToDownloads"), @@ -388,7 +388,7 @@ #define MAYBE_GenericTask GenericTask #endif WRAPPED_INSTANTIATE_TEST_CASE_P( - DISABLED_GenericTask, + MAYBE_GenericTask, FileManagerBrowserTest, ::testing::Values( TestParameter(NOT_IN_GUEST_MODE, "genericTaskIsNotExecuted"), @@ -560,7 +560,7 @@ #define MAYBE_GearMenu GearMenu #endif WRAPPED_INSTANTIATE_TEST_CASE_P( - DISABLED_GearMenu, + MAYBE_GearMenu, FileManagerBrowserTest, ::testing::Values( TestParameter(NOT_IN_GUEST_MODE, "showHiddenFilesOnDownloads"),
diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc b/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc index 0fca48c..8b5ce115 100644 --- a/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc +++ b/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc
@@ -146,7 +146,7 @@ base::string16 command_line_string = command_line.GetCommandLineString(); base::string16 command = base::StringPrintf( - L"%ls /c %ls < %ls > %ls", comspec.get(), command_line_string.c_str(), + L"%ls /d /c %ls < %ls > %ls", comspec.get(), command_line_string.c_str(), in_pipe_name.c_str(), out_pipe_name.c_str()); base::LaunchOptions options;
diff --git a/chrome/browser/media/webrtc/media_stream_devices_controller.cc b/chrome/browser/media/webrtc/media_stream_devices_controller.cc index 8c210a4..52b81f1 100644 --- a/chrome/browser/media/webrtc/media_stream_devices_controller.cc +++ b/chrome/browser/media/webrtc/media_stream_devices_controller.cc
@@ -206,51 +206,6 @@ } // namespace -// Stores whether a permission has been requested or blocked during the course -// of a permission request, as well as the denial reason -class MediaStreamDevicesController::MediaPermissionStatus { - public: - explicit MediaPermissionStatus(const content::MediaStreamRequest& request) - : audio_requested_( - ContentTypeIsRequested(CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, - request)), - video_requested_( - ContentTypeIsRequested(CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, - request)) {} - - ~MediaPermissionStatus() {} - - bool audio_requested() const { return audio_requested_; } - bool video_requested() const { return video_requested_; } - - bool audio_blocked() const { return audio_blocked_; } - bool video_blocked() const { return video_blocked_; } - - content::MediaStreamRequestResult denial_reason() const { - return denial_reason_; - } - - void SetAudioBlocked(content::MediaStreamRequestResult denial_reason) { - DCHECK(audio_requested_); - audio_blocked_ = true; - denial_reason_ = denial_reason; - } - - void SetVideoBlocked(content::MediaStreamRequestResult denial_reason) { - DCHECK(video_requested_); - video_blocked_ = true; - denial_reason_ = denial_reason; - } - - private: - bool audio_requested_ = false; - bool video_requested_ = false; - bool audio_blocked_ = false; - bool video_blocked_ = false; - - content::MediaStreamRequestResult denial_reason_ = content::MEDIA_DEVICE_OK; -}; - // Implementation of PermissionPromptDelegate which actually shows a permission // prompt. class MediaStreamDevicesController::PermissionPromptDelegateImpl @@ -414,22 +369,8 @@ content::IsOriginSecure(request.security_origin)); } - MediaPermissionStatus initial_permission(request); - if (initial_permission.audio_requested() && - !HasAvailableDevices(CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, - request.requested_audio_device_id)) { - initial_permission.SetAudioBlocked(content::MEDIA_DEVICE_NO_HARDWARE); - } - - if (initial_permission.video_requested() && - !HasAvailableDevices(CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, - request.requested_video_device_id)) { - initial_permission.SetVideoBlocked(content::MEDIA_DEVICE_NO_HARDWARE); - } - std::unique_ptr<MediaStreamDevicesController> controller( - new MediaStreamDevicesController(web_contents, request, callback, - initial_permission)); + new MediaStreamDevicesController(web_contents, request, callback)); if (!controller->IsAskingForAudio() && !controller->IsAskingForVideo()) { #if defined(OS_ANDROID) // If either audio or video was previously allowed and Chrome no longer has @@ -461,22 +402,16 @@ MediaStreamDevicesController::MediaStreamDevicesController( content::WebContents* web_contents, const content::MediaStreamRequest& request, - const content::MediaResponseCallback& callback, - const MediaPermissionStatus& initial_permission) + const content::MediaResponseCallback& callback) : web_contents_(web_contents), request_(request), callback_(callback) { profile_ = Profile::FromBrowserContext(web_contents->GetBrowserContext()); content_settings_ = TabSpecificContentSettings::FromWebContents(web_contents); - content::MediaStreamRequestResult denial_reason = - initial_permission.denial_reason(); - old_audio_setting_ = - GetContentSetting(CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, request, - initial_permission.audio_requested(), - initial_permission.audio_blocked(), &denial_reason); - old_video_setting_ = - GetContentSetting(CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, request, - initial_permission.video_requested(), - initial_permission.video_blocked(), &denial_reason); + content::MediaStreamRequestResult denial_reason = content::MEDIA_DEVICE_OK; + old_audio_setting_ = GetContentSetting(CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, + request, &denial_reason); + old_video_setting_ = GetContentSetting( + CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, request, &denial_reason); // If either setting is ask, we show the infobar. if (old_audio_setting_ == CONTENT_SETTING_ASK || @@ -714,21 +649,24 @@ ContentSetting MediaStreamDevicesController::GetContentSetting( ContentSettingsType content_type, const content::MediaStreamRequest& request, - bool was_requested, - bool was_initially_blocked, content::MediaStreamRequestResult* denial_reason) const { DCHECK(content_type == CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC || content_type == CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA); DCHECK(!request_.security_origin.is_empty()); DCHECK(content::IsOriginSecure(request_.security_origin) || request_.request_type == content::MEDIA_OPEN_DEVICE_PEPPER_ONLY); - if (!was_requested) { + if (!ContentTypeIsRequested(content_type, request)) { // No denial reason set as it will have been previously set. return CONTENT_SETTING_DEFAULT; } - if (was_initially_blocked) { - // No denial reason set as it will have been previously set. + std::string device_id; + if (content_type == CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC) + device_id = request.requested_audio_device_id; + else + device_id = request.requested_video_device_id; + if (!HasAvailableDevices(content_type, device_id)) { + *denial_reason = content::MEDIA_DEVICE_NO_HARDWARE; return CONTENT_SETTING_BLOCK; }
diff --git a/chrome/browser/media/webrtc/media_stream_devices_controller.h b/chrome/browser/media/webrtc/media_stream_devices_controller.h index 7d98c9fc..f8246e8 100644 --- a/chrome/browser/media/webrtc/media_stream_devices_controller.h +++ b/chrome/browser/media/webrtc/media_stream_devices_controller.h
@@ -85,7 +85,6 @@ friend class test::MediaStreamDevicesControllerTestApi; friend class policy::MediaStreamDevicesControllerBrowserTest; - class MediaPermissionStatus; class PermissionPromptDelegateImpl; static void RequestPermissionsWithDelegate( @@ -95,8 +94,7 @@ MediaStreamDevicesController(content::WebContents* web_contents, const content::MediaStreamRequest& request, - const content::MediaResponseCallback& callback, - const MediaPermissionStatus& initial_permission); + const content::MediaResponseCallback& callback); bool IsAllowedForAudio() const; bool IsAllowedForVideo() const; @@ -127,8 +125,6 @@ ContentSetting GetContentSetting( ContentSettingsType content_type, const content::MediaStreamRequest& request, - bool was_requested, - bool was_initially_blocked, content::MediaStreamRequestResult* denial_reason) const; // Returns the content setting that should apply given an old content setting
diff --git a/chrome/browser/notifications/notification_platform_bridge_linux.cc b/chrome/browser/notifications/notification_platform_bridge_linux.cc index 73422ef5..1a7d6b24 100644 --- a/chrome/browser/notifications/notification_platform_bridge_linux.cc +++ b/chrome/browser/notifications/notification_platform_bridge_linux.cc
@@ -10,6 +10,7 @@ #include "base/memory/ptr_util.h" #include "base/stl_util.h" #include "base/strings/nullable_string16.h" +#include "base/strings/string_number_conversions.h" #include "base/strings/utf_string_conversions.h" #include "base/task_scheduler/post_task.h" #include "chrome/browser/browser_process.h" @@ -175,6 +176,12 @@ // NativeNotificationDisplayService. const GURL origin_url; + // Used to keep track of the IDs of the buttons currently displayed + // on this notification. The valid range of action IDs is + // [action_start, action_end). + size_t action_start = 0; + size_t action_end = 0; + // Temporary resource files associated with the notification that // should be cleaned up when the notification is closed or on // shutdown. @@ -351,6 +358,15 @@ // Even-indexed elements in this array are action IDs passed back to // us in GSignalReceiver. Odd-indexed ones contain the button text. g_variant_builder_init(&actions_builder, G_VARIANT_TYPE("as")); + data->action_start = data->action_end; + for (const auto& button_info : notification.buttons()) { + // FDO notification buttons can contain either an icon or a label, + // but not both, and the type of all buttons must be the same (all + // labels or all icons), so always use labels. + std::string id = base::SizeTToString(data->action_end++); + const std::string label = base::UTF16ToUTF8(button_info.title); + AddActionToNotification(&actions_builder, id.c_str(), label.c_str()); + } if (notification.clickable()) { // Special case: the pair ("default", "") will not add a button, // but instead makes the entire notification clickable. @@ -458,11 +474,22 @@ DCHECK(action); if (strcmp(action, "default") == 0) { - ForwardNotificationOperation(dbus_id, NotificationCommon::CLICK, 0); + ForwardNotificationOperation(dbus_id, NotificationCommon::CLICK, -1); } else if (strcmp(action, "settings") == 0) { ForwardNotificationOperation(dbus_id, NotificationCommon::SETTINGS, -1); } else { - NOTIMPLEMENTED() << "No custom buttons just yet!"; + size_t id; + if (!base::StringToSizeT(action, &id)) + return; + NotificationData* data = FindNotificationData(dbus_id); + if (!data) + return; + size_t n_buttons = data->action_end - data->action_start; + size_t id_zero_based = id - data->action_start; + if (id_zero_based >= n_buttons) + return; + ForwardNotificationOperation(dbus_id, NotificationCommon::CLICK, + id_zero_based); } } }
diff --git a/chrome/browser/page_load_metrics/metrics_web_contents_observer_unittest.cc b/chrome/browser/page_load_metrics/metrics_web_contents_observer_unittest.cc index 8969ac6d..2466dd157 100644 --- a/chrome/browser/page_load_metrics/metrics_web_contents_observer_unittest.cc +++ b/chrome/browser/page_load_metrics/metrics_web_contents_observer_unittest.cc
@@ -17,6 +17,7 @@ #include "chrome/browser/page_load_metrics/page_load_metrics_observer.h" #include "chrome/browser/page_load_metrics/page_load_tracker.h" #include "chrome/common/page_load_metrics/page_load_metrics_messages.h" +#include "chrome/common/url_constants.h" #include "chrome/test/base/chrome_render_view_host_test_harness.h" #include "content/public/browser/navigation_handle.h" #include "content/public/browser/render_frame_host.h" @@ -155,6 +156,11 @@ AttachObserver(); } + void NavigateToUntrackedUrl() { + content::WebContentsTester::For(web_contents()) + ->NavigateAndCommit(GURL(url::kAboutBlankURL)); + } + void SimulateTimingUpdate(const PageLoadTiming& timing) { SimulateTimingUpdate(timing, web_contents()->GetMainFrame()); } @@ -351,6 +357,81 @@ CheckTotalErrorEvents(); } +TEST_F(MetricsWebContentsObserverTest, EmptyTimingError) { + PageLoadTiming timing; + + content::WebContentsTester* web_contents_tester = + content::WebContentsTester::For(web_contents()); + + web_contents_tester->NavigateAndCommit(GURL(kDefaultTestUrl)); + SimulateTimingUpdate(timing); + ASSERT_EQ(0, CountUpdatedTimingReported()); + NavigateToUntrackedUrl(); + ASSERT_EQ(0, CountUpdatedTimingReported()); + ASSERT_EQ(1, CountCompleteTimingReported()); + + CheckErrorEvent(ERR_BAD_TIMING_IPC_INVALID_TIMING, 1); + CheckErrorEvent(ERR_NO_IPCS_RECEIVED, 1); + CheckTotalErrorEvents(); + + histogram_tester_.ExpectTotalCount( + page_load_metrics::internal::kPageLoadTimingStatus, 1); + histogram_tester_.ExpectBucketCount( + page_load_metrics::internal::kPageLoadTimingStatus, + page_load_metrics::internal::INVALID_EMPTY_TIMING, 1); +} + +TEST_F(MetricsWebContentsObserverTest, NullNavigationStartError) { + PageLoadTiming timing; + timing.parse_timing.parse_start = base::TimeDelta::FromMilliseconds(1); + + content::WebContentsTester* web_contents_tester = + content::WebContentsTester::For(web_contents()); + + web_contents_tester->NavigateAndCommit(GURL(kDefaultTestUrl)); + SimulateTimingUpdate(timing); + ASSERT_EQ(0, CountUpdatedTimingReported()); + NavigateToUntrackedUrl(); + ASSERT_EQ(0, CountUpdatedTimingReported()); + ASSERT_EQ(1, CountCompleteTimingReported()); + + CheckErrorEvent(ERR_BAD_TIMING_IPC_INVALID_TIMING, 1); + CheckErrorEvent(ERR_NO_IPCS_RECEIVED, 1); + CheckTotalErrorEvents(); + + histogram_tester_.ExpectTotalCount( + page_load_metrics::internal::kPageLoadTimingStatus, 1); + histogram_tester_.ExpectBucketCount( + page_load_metrics::internal::kPageLoadTimingStatus, + page_load_metrics::internal::INVALID_NULL_NAVIGATION_START, 1); +} + +TEST_F(MetricsWebContentsObserverTest, TimingOrderError) { + PageLoadTiming timing; + timing.navigation_start = base::Time::FromDoubleT(1); + timing.parse_timing.parse_stop = base::TimeDelta::FromMilliseconds(1); + + content::WebContentsTester* web_contents_tester = + content::WebContentsTester::For(web_contents()); + + web_contents_tester->NavigateAndCommit(GURL(kDefaultTestUrl)); + SimulateTimingUpdate(timing); + ASSERT_EQ(0, CountUpdatedTimingReported()); + NavigateToUntrackedUrl(); + ASSERT_EQ(0, CountUpdatedTimingReported()); + ASSERT_EQ(1, CountCompleteTimingReported()); + + CheckErrorEvent(ERR_BAD_TIMING_IPC_INVALID_TIMING, 1); + CheckErrorEvent(ERR_NO_IPCS_RECEIVED, 1); + CheckTotalErrorEvents(); + + histogram_tester_.ExpectTotalCount( + page_load_metrics::internal::kPageLoadTimingStatus, 1); + histogram_tester_.ExpectBucketCount( + page_load_metrics::internal::kPageLoadTimingStatus, + page_load_metrics::internal::INVALID_ORDER_PARSE_START_PARSE_STOP, 1); +} + TEST_F(MetricsWebContentsObserverTest, NotInMainError) { PageLoadTiming timing; timing.navigation_start = base::Time::FromDoubleT(1);
diff --git a/chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc b/chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc index 8eb44f5..2c20891f 100644 --- a/chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc +++ b/chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc
@@ -499,9 +499,17 @@ histogram_tester_.ExpectTotalCount(internal::kHistogramFirstLayout, 0); histogram_tester_.ExpectTotalCount(internal::kHistogramFirstPaint, 0); + histogram_tester_.ExpectTotalCount(page_load_metrics::internal::kErrorEvents, + 1); histogram_tester_.ExpectBucketCount( page_load_metrics::internal::kErrorEvents, page_load_metrics::ERR_BAD_TIMING_IPC_INVALID_TIMING, 1); + + histogram_tester_.ExpectTotalCount( + page_load_metrics::internal::kPageLoadTimingStatus, 1); + histogram_tester_.ExpectBucketCount( + page_load_metrics::internal::kPageLoadTimingStatus, + page_load_metrics::internal::INVALID_ORDER_FIRST_LAYOUT_FIRST_PAINT, 1); } // Test code that aborts provisional navigations.
diff --git a/chrome/browser/page_load_metrics/page_load_tracker.cc b/chrome/browser/page_load_metrics/page_load_tracker.cc index f3703a0..9e92e975 100644 --- a/chrome/browser/page_load_metrics/page_load_tracker.cc +++ b/chrome/browser/page_load_metrics/page_load_tracker.cc
@@ -60,6 +60,7 @@ const char kPageLoadStartedInForeground[] = "PageLoad.Internal.NavigationStartedInForeground"; const char kPageLoadPrerender[] = "PageLoad.Internal.Prerender"; +const char kPageLoadTimingStatus[] = "PageLoad.Internal.PageLoadTimingStatus"; } // namespace internal @@ -126,14 +127,15 @@ return first && first <= second; } -bool IsValidPageLoadTiming(const PageLoadTiming& timing) { +internal::PageLoadTimingStatus IsValidPageLoadTiming( + const PageLoadTiming& timing) { if (timing.IsEmpty()) - return false; + return internal::INVALID_EMPTY_TIMING; // If we have a non-empty timing, it should always have a navigation start. if (timing.navigation_start.is_null()) { - NOTREACHED() << "Received null navigation_start."; - return false; + LOG(ERROR) << "Received null navigation_start."; + return internal::INVALID_NULL_NAVIGATION_START; } // Verify proper ordering between the various timings. @@ -141,16 +143,16 @@ if (!EventsInOrder(timing.response_start, timing.parse_timing.parse_start)) { // We sometimes get a zero response_start with a non-zero parse start. See // crbug.com/590212. - NOTREACHED() << "Invalid response_start " << timing.response_start - << " for parse_start " << timing.parse_timing.parse_start; - return false; + LOG(ERROR) << "Invalid response_start " << timing.response_start + << " for parse_start " << timing.parse_timing.parse_start; + return internal::INVALID_ORDER_RESPONSE_START_PARSE_START; } if (!EventsInOrder(timing.parse_timing.parse_start, timing.parse_timing.parse_stop)) { - NOTREACHED() << "Invalid parse_start " << timing.parse_timing.parse_start - << " for parse_stop " << timing.parse_timing.parse_stop; - return false; + LOG(ERROR) << "Invalid parse_start " << timing.parse_timing.parse_start + << " for parse_stop " << timing.parse_timing.parse_stop; + return internal::INVALID_ORDER_PARSE_START_PARSE_STOP; } if (timing.parse_timing.parse_stop) { @@ -159,68 +161,68 @@ timing.parse_timing.parse_start.value(); if (timing.parse_timing.parse_blocked_on_script_load_duration > parse_duration) { - NOTREACHED() << "Invalid parse_blocked_on_script_load_duration " - << timing.parse_timing.parse_blocked_on_script_load_duration - << " for parse duration " << parse_duration; - return false; + LOG(ERROR) << "Invalid parse_blocked_on_script_load_duration " + << timing.parse_timing.parse_blocked_on_script_load_duration + << " for parse duration " << parse_duration; + return internal::INVALID_SCRIPT_LOAD_LONGER_THAN_PARSE; } if (timing.parse_timing.parse_blocked_on_script_execution_duration > parse_duration) { - NOTREACHED() + LOG(ERROR) << "Invalid parse_blocked_on_script_execution_duration " << timing.parse_timing.parse_blocked_on_script_execution_duration << " for parse duration " << parse_duration; - return false; + return internal::INVALID_SCRIPT_EXEC_LONGER_THAN_PARSE; } } if (timing.parse_timing .parse_blocked_on_script_load_from_document_write_duration > timing.parse_timing.parse_blocked_on_script_load_duration) { - NOTREACHED() + LOG(ERROR) << "Invalid parse_blocked_on_script_load_from_document_write_duration " << timing.parse_timing .parse_blocked_on_script_load_from_document_write_duration << " for parse_blocked_on_script_load_duration " << timing.parse_timing.parse_blocked_on_script_load_duration; - return false; + return internal::INVALID_SCRIPT_LOAD_DOC_WRITE_LONGER_THAN_SCRIPT_LOAD; } if (timing.parse_timing .parse_blocked_on_script_execution_from_document_write_duration > timing.parse_timing.parse_blocked_on_script_execution_duration) { - NOTREACHED() + LOG(ERROR) << "Invalid " "parse_blocked_on_script_execution_from_document_write_duration " << timing.parse_timing .parse_blocked_on_script_execution_from_document_write_duration << " for parse_blocked_on_script_execution_duration " << timing.parse_timing.parse_blocked_on_script_execution_duration; - return false; + return internal::INVALID_SCRIPT_EXEC_DOC_WRITE_LONGER_THAN_SCRIPT_EXEC; } if (!EventsInOrder(timing.parse_timing.parse_stop, timing.document_timing.dom_content_loaded_event_start)) { - NOTREACHED() << "Invalid parse_stop " << timing.parse_timing.parse_stop - << " for dom_content_loaded_event_start " - << timing.document_timing.dom_content_loaded_event_start; - return false; + LOG(ERROR) << "Invalid parse_stop " << timing.parse_timing.parse_stop + << " for dom_content_loaded_event_start " + << timing.document_timing.dom_content_loaded_event_start; + return internal::INVALID_ORDER_PARSE_STOP_DOM_CONTENT_LOADED; } if (!EventsInOrder(timing.document_timing.dom_content_loaded_event_start, timing.document_timing.load_event_start)) { - NOTREACHED() << "Invalid dom_content_loaded_event_start " - << timing.document_timing.dom_content_loaded_event_start - << " for load_event_start " - << timing.document_timing.load_event_start; - return false; + LOG(ERROR) << "Invalid dom_content_loaded_event_start " + << timing.document_timing.dom_content_loaded_event_start + << " for load_event_start " + << timing.document_timing.load_event_start; + return internal::INVALID_ORDER_DOM_CONTENT_LOADED_LOAD; } if (!EventsInOrder(timing.parse_timing.parse_start, timing.document_timing.first_layout)) { - NOTREACHED() << "Invalid parse_start " << timing.parse_timing.parse_start - << " for first_layout " << timing.document_timing.first_layout; - return false; + LOG(ERROR) << "Invalid parse_start " << timing.parse_timing.parse_start + << " for first_layout " << timing.document_timing.first_layout; + return internal::INVALID_ORDER_PARSE_START_FIRST_LAYOUT; } if (!EventsInOrder(timing.document_timing.first_layout, @@ -230,42 +232,42 @@ DLOG(ERROR) << "Invalid first_layout " << timing.document_timing.first_layout << " for first_paint " << timing.paint_timing.first_paint; - return false; + return internal::INVALID_ORDER_FIRST_LAYOUT_FIRST_PAINT; } if (!EventsInOrder(timing.paint_timing.first_paint, timing.paint_timing.first_text_paint)) { - NOTREACHED() << "Invalid first_paint " << timing.paint_timing.first_paint - << " for first_text_paint " - << timing.paint_timing.first_text_paint; - return false; + LOG(ERROR) << "Invalid first_paint " << timing.paint_timing.first_paint + << " for first_text_paint " + << timing.paint_timing.first_text_paint; + return internal::INVALID_ORDER_FIRST_PAINT_FIRST_TEXT_PAINT; } if (!EventsInOrder(timing.paint_timing.first_paint, timing.paint_timing.first_image_paint)) { - NOTREACHED() << "Invalid first_paint " << timing.paint_timing.first_paint - << " for first_image_paint " - << timing.paint_timing.first_image_paint; - return false; + LOG(ERROR) << "Invalid first_paint " << timing.paint_timing.first_paint + << " for first_image_paint " + << timing.paint_timing.first_image_paint; + return internal::INVALID_ORDER_FIRST_PAINT_FIRST_IMAGE_PAINT; } if (!EventsInOrder(timing.paint_timing.first_paint, timing.paint_timing.first_contentful_paint)) { - NOTREACHED() << "Invalid first_paint " << timing.paint_timing.first_paint - << " for first_contentful_paint " - << timing.paint_timing.first_contentful_paint; - return false; + LOG(ERROR) << "Invalid first_paint " << timing.paint_timing.first_paint + << " for first_contentful_paint " + << timing.paint_timing.first_contentful_paint; + return internal::INVALID_ORDER_FIRST_PAINT_FIRST_CONTENTFUL_PAINT; } if (!EventsInOrder(timing.paint_timing.first_paint, timing.paint_timing.first_meaningful_paint)) { - NOTREACHED() << "Invalid first_paint " << timing.paint_timing.first_paint - << " for first_meaningful_paint " - << timing.paint_timing.first_meaningful_paint; - return false; + LOG(ERROR) << "Invalid first_paint " << timing.paint_timing.first_paint + << " for first_meaningful_paint " + << timing.paint_timing.first_meaningful_paint; + return internal::INVALID_ORDER_FIRST_PAINT_FIRST_MEANINGFUL_PAINT; } - return true; + return internal::VALID; } void RecordAppBackgroundPageLoadCompleted(bool completed_after_background) { @@ -589,7 +591,10 @@ RecordInternalError(ERR_BAD_TIMING_IPC_INVALID_BEHAVIOR_DESCENDENT); return; } - if (!IsValidPageLoadTiming(new_timing)) { + internal::PageLoadTimingStatus status = IsValidPageLoadTiming(new_timing); + UMA_HISTOGRAM_ENUMERATION(internal::kPageLoadTimingStatus, status, + internal::LAST_PAGE_LOAD_TIMING_STATUS); + if (status != internal::VALID) { RecordInternalError(ERR_BAD_TIMING_IPC_INVALID_TIMING); return; }
diff --git a/chrome/browser/page_load_metrics/page_load_tracker.h b/chrome/browser/page_load_metrics/page_load_tracker.h index 9d486db..2760b01 100644 --- a/chrome/browser/page_load_metrics/page_load_tracker.h +++ b/chrome/browser/page_load_metrics/page_load_tracker.h
@@ -42,6 +42,49 @@ extern const char kAbortChainSizeNoCommit[]; extern const char kAbortChainSizeSameURL[]; extern const char kPageLoadCompletedAfterAppBackground[]; +extern const char kPageLoadTimingStatus[]; + +// Used to track the status of PageLoadTimings received from the render process. +// +// If you add elements to this enum, make sure you update the enum value in +// histograms.xml. Only add elements to the end to prevent inconsistencies +// between versions. +enum PageLoadTimingStatus { + // The PageLoadTiming is valid (all data within the PageLoadTiming is + // consistent with expectations). + VALID, + + // All remaining status codes are for invalid PageLoadTimings. + + // The PageLoadTiming was empty. + INVALID_EMPTY_TIMING, + + // The PageLoadTiming had a null navigation_start. + INVALID_NULL_NAVIGATION_START, + + // Script load or execution durations in the PageLoadTiming were too long. + INVALID_SCRIPT_LOAD_LONGER_THAN_PARSE, + INVALID_SCRIPT_EXEC_LONGER_THAN_PARSE, + INVALID_SCRIPT_LOAD_DOC_WRITE_LONGER_THAN_SCRIPT_LOAD, + INVALID_SCRIPT_EXEC_DOC_WRITE_LONGER_THAN_SCRIPT_EXEC, + + // The order of two events in the PageLoadTiming was invalid. Either the first + // wasn't present when the second was present, or the second was reported as + // happening before the first. + INVALID_ORDER_RESPONSE_START_PARSE_START, + INVALID_ORDER_PARSE_START_PARSE_STOP, + INVALID_ORDER_PARSE_STOP_DOM_CONTENT_LOADED, + INVALID_ORDER_DOM_CONTENT_LOADED_LOAD, + INVALID_ORDER_PARSE_START_FIRST_LAYOUT, + INVALID_ORDER_FIRST_LAYOUT_FIRST_PAINT, + INVALID_ORDER_FIRST_PAINT_FIRST_TEXT_PAINT, + INVALID_ORDER_FIRST_PAINT_FIRST_IMAGE_PAINT, + INVALID_ORDER_FIRST_PAINT_FIRST_CONTENTFUL_PAINT, + INVALID_ORDER_FIRST_PAINT_FIRST_MEANINGFUL_PAINT, + + // New values should be added before this final entry. + LAST_PAGE_LOAD_TIMING_STATUS +}; } // namespace internal
diff --git a/chrome/browser/resources/chromeos/login/login_shared.js b/chrome/browser/resources/chromeos/login/login_shared.js index 00832b5..857bba5 100644 --- a/chrome/browser/resources/chromeos/login/login_shared.js +++ b/chrome/browser/resources/chromeos/login/login_shared.js
@@ -282,8 +282,8 @@ /** * Some ForTesting APIs directly access to DOM. Because this script is loaded * in header, DOM tree may not be available at beginning. - * In DOMContentLoaded, this is marked to true, indicating ForTesting methods - * can be called. + * In DOMContentLoaded, after Oobe.initialize() is done, this is marked to + * true, indicating ForTesting methods can be called. * External script using ForTesting APIs should wait for this condition. * @type {boolean} */ @@ -449,8 +449,17 @@ 'use strict'; document.addEventListener('DOMContentLoaded', function() { - Oobe.initialize(); - Oobe.readyForTesting = true; + try { + Oobe.initialize(); + } finally { + // TODO(crbug.com/712078): Do not set readyForTesting in case of that + // initialize() is failed. Currently, in some situation, initialize() + // raises an exception unexpectedly. It means testing APIs should not + // be called then. However, checking it here now causes bots failures + // unfortunately. So, as a short term workaround, here set + // readyForTesting even on failures, just to make test bots happy. + Oobe.readyForTesting = true; + } }); // Install a global error handler so stack traces are included in logs.
diff --git a/chrome/browser/translate/android/translate_utils.h b/chrome/browser/translate/android/translate_utils.h index a1c35e17..894d7225 100644 --- a/chrome/browser/translate/android/translate_utils.h +++ b/chrome/browser/translate/android/translate_utils.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_UI_ANDROID_INFOBARS_TRANSLATE_UTILS_H_ -#define CHROME_BROWSER_UI_ANDROID_INFOBARS_TRANSLATE_UTILS_H_ +#ifndef CHROME_BROWSER_TRANSLATE_ANDROID_TRANSLATE_UTILS_H_ +#define CHROME_BROWSER_TRANSLATE_ANDROID_TRANSLATE_UTILS_H_ #include "base/android/jni_android.h" #include "base/android/scoped_java_ref.h" @@ -14,6 +14,17 @@ class TranslateUtils { public: + // A Java counterpart will be generated for this enum. + // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.infobar + // GENERATED_JAVA_PREFIX_TO_STRIP:OPTION_ + enum TranslateOption { + OPTION_SOURCE_CODE, + OPTION_TARGET_CODE, + OPTION_ALWAYS_TRANSLATE, + OPTION_NEVER_TRANSLATE, + OPTION_NEVER_TRANSLATE_SITE + }; + static base::android::ScopedJavaLocalRef<jobjectArray> GetJavaLanguages( JNIEnv* env, translate::TranslateInfoBarDelegate* delegate); @@ -22,4 +33,4 @@ translate::TranslateInfoBarDelegate* delegate); }; -#endif +#endif // CHROME_BROWSER_TRANSLATE_ANDROID_TRANSLATE_UTILS_H_
diff --git a/chrome/browser/ui/android/infobars/translate_compact_infobar.cc b/chrome/browser/ui/android/infobars/translate_compact_infobar.cc index 2e08dfe..077cee9c 100644 --- a/chrome/browser/ui/android/infobars/translate_compact_infobar.cc +++ b/chrome/browser/ui/android/infobars/translate_compact_infobar.cc
@@ -78,10 +78,45 @@ reinterpret_cast<intptr_t>(this)); } -void TranslateCompactInfoBar::ApplyTranslateOptions( +void TranslateCompactInfoBar::ApplyStringTranslateOption( JNIEnv* env, - const JavaParamRef<jobject>& obj) { - // TODO(ramyasharma): Implement. + const JavaParamRef<jobject>& obj, + int option, + const JavaParamRef<jstring>& value) { + translate::TranslateInfoBarDelegate* delegate = GetDelegate(); + if (option == TranslateUtils::OPTION_SOURCE_CODE) { + std::string source_code = + base::android::ConvertJavaStringToUTF8(env, value); + if (delegate->original_language_code().compare(source_code) != 0) + delegate->UpdateOriginalLanguage(source_code); + } else if (option == TranslateUtils::OPTION_TARGET_CODE) { + std::string target_code = + base::android::ConvertJavaStringToUTF8(env, value); + if (delegate->target_language_code().compare(target_code) != 0) + delegate->UpdateTargetLanguage(target_code); + } else { + DCHECK(false); + } +} + +void TranslateCompactInfoBar::ApplyBoolTranslateOption( + JNIEnv* env, + const JavaParamRef<jobject>& obj, + int option, + jboolean value) { + translate::TranslateInfoBarDelegate* delegate = GetDelegate(); + if (option == TranslateUtils::OPTION_ALWAYS_TRANSLATE) { + if (delegate->ShouldAlwaysTranslate() != value) + delegate->ToggleAlwaysTranslate(); + } else if (option == TranslateUtils::OPTION_NEVER_TRANSLATE) { + if (value && delegate->IsTranslatableLanguageByPrefs()) + delegate->ToggleTranslatableLanguageByPrefs(); + } else if (option == TranslateUtils::OPTION_NEVER_TRANSLATE_SITE) { + if (value && !delegate->IsSiteBlacklisted()) + delegate->ToggleSiteBlacklist(); + } else { + DCHECK(false); + } } void TranslateCompactInfoBar::OnPageTranslated(
diff --git a/chrome/browser/ui/android/infobars/translate_compact_infobar.h b/chrome/browser/ui/android/infobars/translate_compact_infobar.h index 8095854..90ebd30 100644 --- a/chrome/browser/ui/android/infobars/translate_compact_infobar.h +++ b/chrome/browser/ui/android/infobars/translate_compact_infobar.h
@@ -23,9 +23,18 @@ std::unique_ptr<translate::TranslateInfoBarDelegate> delegate); ~TranslateCompactInfoBar() override; - // JNI methods specific to translate. - void ApplyTranslateOptions(JNIEnv* env, - const base::android::JavaParamRef<jobject>& obj); + // JNI method specific to string settings in translate. + void ApplyStringTranslateOption( + JNIEnv* env, + const base::android::JavaParamRef<jobject>& obj, + int option, + const base::android::JavaParamRef<jstring>& value); + + // JNI method specific to boolean settings in translate. + void ApplyBoolTranslateOption(JNIEnv* env, + const base::android::JavaParamRef<jobject>& obj, + int option, + jboolean value); // ContentTranslateDriver::Observer implementation. void OnPageTranslated(const std::string& original_lang,
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc index 654d52a..6b74d78d 100644 --- a/chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc +++ b/chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc
@@ -388,6 +388,7 @@ url_tf_->set_controller(this); url_tf_->SetAccessibleName( l10n_util::GetStringUTF16(IDS_BOOKMARK_AX_EDITOR_URL_LABEL)); + url_tf_->SetTextInputType(ui::TextInputType::TEXT_INPUT_TYPE_URL); layout->AddPaddingRow(0, provider->GetDistanceMetric( views::DISTANCE_RELATED_CONTROL_VERTICAL));
diff --git a/chrome/test/data/payments/show_twice.js b/chrome/test/data/payments/show_twice.js index e870f4e..1de167ba 100644 --- a/chrome/test/data/payments/show_twice.js +++ b/chrome/test/data/payments/show_twice.js
@@ -4,20 +4,18 @@ * found in the LICENSE file. */ -/* global PaymentRequest:false */ - /** * Launches the PaymentRequest UI twice. */ function buy() { // eslint-disable-line no-unused-vars - var payment1 = new PaymentRequest( + const payment1 = new PaymentRequest( [{supportedMethods: ['visa']}], {total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}}); - var payment2 = new PaymentRequest( + const payment2 = new PaymentRequest( [{supportedMethods: ['visa']}], {total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}}); payment1.show(); payment2.show().catch(function(error) { - print("Second request: " + error); + print('Second request: ' + error); }); }
diff --git a/chromecast/media/cma/backend/media_pipeline_backend_manager.cc b/chromecast/media/cma/backend/media_pipeline_backend_manager.cc index 216b1d5f..f3807ce9 100644 --- a/chromecast/media/cma/backend/media_pipeline_backend_manager.cc +++ b/chromecast/media/cma/backend/media_pipeline_backend_manager.cc
@@ -91,5 +91,17 @@ allow_volume_feedback_observers_->RemoveObserver(observer); } +void MediaPipelineBackendManager::LogicalPause(MediaPipelineBackend* backend) { + MediaPipelineBackendWrapper* wrapper = + static_cast<MediaPipelineBackendWrapper*>(backend); + wrapper->LogicalPause(); +} + +void MediaPipelineBackendManager::LogicalResume(MediaPipelineBackend* backend) { + MediaPipelineBackendWrapper* wrapper = + static_cast<MediaPipelineBackendWrapper*>(backend); + wrapper->LogicalResume(); +} + } // namespace media } // namespace chromecast
diff --git a/chromecast/media/cma/backend/media_pipeline_backend_manager.h b/chromecast/media/cma/backend/media_pipeline_backend_manager.h index 622c0ef9..e112b54 100644 --- a/chromecast/media/cma/backend/media_pipeline_backend_manager.h +++ b/chromecast/media/cma/backend/media_pipeline_backend_manager.h
@@ -58,6 +58,13 @@ void AddAllowVolumeFeedbackObserver(AllowVolumeFeedbackObserver* observer); void RemoveAllowVolumeFeedbackObserver(AllowVolumeFeedbackObserver* observer); + // Logically pause/resume a backend instance, without actually pausing or + // resuming it. This is used by multiroom output to avoid playback stutter on + // resume. |backend| must have been created via a call to this instance's + // CreateMediaPipelineBackend(). + void LogicalPause(MediaPipelineBackend* backend); + void LogicalResume(MediaPipelineBackend* backend); + private: friend class MediaPipelineBackendWrapper;
diff --git a/chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc b/chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc index acf268f5..7ea3f9a 100644 --- a/chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc +++ b/chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc
@@ -44,6 +44,14 @@ } } +void MediaPipelineBackendWrapper::LogicalPause() { + SetPlaying(false); +} + +void MediaPipelineBackendWrapper::LogicalResume() { + SetPlaying(true); +} + MediaPipelineBackend::AudioDecoder* MediaPipelineBackendWrapper::CreateAudioDecoder() { DCHECK(!have_audio_decoder_);
diff --git a/chromecast/media/cma/backend/media_pipeline_backend_wrapper.h b/chromecast/media/cma/backend/media_pipeline_backend_wrapper.h index 24b8b65..848c7ce 100644 --- a/chromecast/media/cma/backend/media_pipeline_backend_wrapper.h +++ b/chromecast/media/cma/backend/media_pipeline_backend_wrapper.h
@@ -26,6 +26,9 @@ MediaPipelineBackendManager* backend_manager); ~MediaPipelineBackendWrapper() override; + void LogicalPause(); + void LogicalResume(); + // MediaPipelineBackend implementation: AudioDecoder* CreateAudioDecoder() override; VideoDecoder* CreateVideoDecoder() override;
diff --git a/components/offline_pages/core/background/offliner.h b/components/offline_pages/core/background/offliner.h index 2f15128..d8f447b 100644 --- a/components/offline_pages/core/background/offliner.h +++ b/components/offline_pages/core/background/offliner.h
@@ -55,6 +55,8 @@ QUEUE_UPDATE_FAILED = 13, // Scheduler canceled processing of requests. BACKGROUND_SCHEDULER_CANCELED = 14, + // We saved a snapshot on the last retry, after timeout. + SAVED_ON_LAST_RETRY = 15, // NOTE: insert new values above this line and update histogram enum too. STATUS_COUNT };
diff --git a/components/offline_pages/core/background/request_coordinator.cc b/components/offline_pages/core/background/request_coordinator.cc index 167ffa7..e1a7170 100644 --- a/components/offline_pages/core/background/request_coordinator.cc +++ b/components/offline_pages/core/background/request_coordinator.cc
@@ -61,7 +61,8 @@ histogram->Add(static_cast<int>(request_status)); // For successful requests also record time from request to save. - if (request_status == Offliner::RequestStatus::SAVED) { + if (request_status == Offliner::RequestStatus::SAVED || + request_status == Offliner::RequestStatus::SAVED_ON_LAST_RETRY) { // Using regular histogram (with dynamic suffix) rather than time-oriented // one to record samples in seconds rather than milliseconds. base::HistogramBase* histogram = base::Histogram::FactoryGet( @@ -964,7 +965,8 @@ // TODO(dougarnett): See if we can conclusively identify other attempt // aborted cases to treat this way (eg, for Render Process Killed). UpdateRequestForAbortedAttempt(request); - } else if (status == Offliner::RequestStatus::SAVED) { + } else if (status == Offliner::RequestStatus::SAVED || + status == Offliner::RequestStatus::SAVED_ON_LAST_RETRY) { // Remove the request from the queue if it succeeded. RemoveAttemptedRequest(request, RequestNotifier::BackgroundSavePageResult::SUCCESS); @@ -999,7 +1001,6 @@ case Offliner::RequestStatus::SAVED: case Offliner::RequestStatus::SAVE_FAILED: case Offliner::RequestStatus::REQUEST_COORDINATOR_CANCELED: - case Offliner::RequestStatus::REQUEST_COORDINATOR_TIMED_OUT: case Offliner::RequestStatus::LOADING_FAILED: case Offliner::RequestStatus::LOADING_FAILED_NO_RETRY: return true; @@ -1008,6 +1009,10 @@ case Offliner::RequestStatus::LOADING_FAILED_NO_NEXT: // No further processing in this service window. return false; + case Offliner::RequestStatus::REQUEST_COORDINATOR_TIMED_OUT: + case Offliner::RequestStatus::SAVED_ON_LAST_RETRY: + // If we timed out, check to see that there is time budget. + return processing_state_ == ProcessingWindowState::IMMEDIATE_WINDOW; default: // Make explicit choice about new status codes that actually reach here. // Their default is no further processing in this service window.
diff --git a/components/offline_pages/core/background/request_coordinator_event_logger.cc b/components/offline_pages/core/background/request_coordinator_event_logger.cc index 0820146..33b697a 100644 --- a/components/offline_pages/core/background/request_coordinator_event_logger.cc +++ b/components/offline_pages/core/background/request_coordinator_event_logger.cc
@@ -41,6 +41,8 @@ return "QUEUE_UPDATE_FAILED"; case Offliner::BACKGROUND_SCHEDULER_CANCELED: return "BACKGROUND_SCHEDULER_CANCELED"; + case Offliner::SAVED_ON_LAST_RETRY: + return "SAVED_ON_LAST_RETRY"; default: NOTREACHED(); return std::to_string(static_cast<int>(request_status));
diff --git a/components/ownership/owner_settings_service.cc b/components/ownership/owner_settings_service.cc index ca969d2..49b0b3aa 100644 --- a/components/ownership/owner_settings_service.cc +++ b/components/ownership/owner_settings_service.cc
@@ -32,7 +32,9 @@ std::unique_ptr<em::PolicyFetchResponse> AssembleAndSignPolicy( std::unique_ptr<em::PolicyData> policy, - SECKEYPrivateKey* private_key) { + scoped_refptr<ownership::PrivateKey> private_key) { + DCHECK(private_key->key()); + // Assemble the policy. std::unique_ptr<em::PolicyFetchResponse> policy_response( new em::PolicyFetchResponse()); @@ -41,8 +43,8 @@ return nullptr; } - ScopedSGNContext sign_context( - SGN_NewContext(SEC_OID_PKCS1_SHA1_WITH_RSA_ENCRYPTION, private_key)); + ScopedSGNContext sign_context(SGN_NewContext( + SEC_OID_PKCS1_SHA1_WITH_RSA_ENCRYPTION, private_key->key())); if (!sign_context) { NOTREACHED(); return nullptr; @@ -109,10 +111,8 @@ if (!task_runner || !IsOwner()) return false; return base::PostTaskAndReplyWithResult( - task_runner, - FROM_HERE, - base::Bind( - &AssembleAndSignPolicy, base::Passed(&policy), private_key_->key()), + task_runner, FROM_HERE, + base::Bind(&AssembleAndSignPolicy, base::Passed(&policy), private_key_), callback); }
diff --git a/content/browser/service_worker/service_worker_process_manager.cc b/content/browser/service_worker/service_worker_process_manager.cc index f3ff048..9056e76 100644 --- a/content/browser/service_worker/service_worker_process_manager.cc +++ b/content/browser/service_worker/service_worker_process_manager.cc
@@ -77,11 +77,16 @@ browser_context_ = nullptr; } - for (std::map<int, ProcessInfo>::const_iterator it = instance_info_.begin(); - it != instance_info_.end(); - ++it) { - RenderProcessHost::FromID(it->second.process_id) - ->DecrementServiceWorkerRefCount(); + // In single-process mode, Shutdown() is called when deleting the default + // browser context, which is itself destroyed after the RenderProcessHost, + // and RenderProcessHost::FromID() just returns a nullptr. + // The refcount decrement can be skipped anyway since there's only one process + if (!RenderProcessHost::run_renderer_in_process()) { + for (std::map<int, ProcessInfo>::const_iterator it = instance_info_.begin(); + it != instance_info_.end(); ++it) { + RenderProcessHost::FromID(it->second.process_id) + ->DecrementServiceWorkerRefCount(); + } } instance_info_.clear(); }
diff --git a/content/public/test/render_view_test.cc b/content/public/test/render_view_test.cc index f2d07e4..e04ab92 100644 --- a/content/public/test/render_view_test.cc +++ b/content/public/test/render_view_test.cc
@@ -614,7 +614,7 @@ item.SetDocumentSequenceNumber(current_item.DocumentSequenceNumber()); impl->GetMainRenderFrame()->DidNavigateWithinPage( - frame, item, + item, is_new_navigation ? blink::kWebStandardCommit : blink::kWebHistoryInertCommit, content_initiated);
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc index 32ad5da..425e39bb 100644 --- a/content/renderer/render_frame_impl.cc +++ b/content/renderer/render_frame_impl.cc
@@ -4089,21 +4089,19 @@ } void RenderFrameImpl::DidNavigateWithinPage( - blink::WebLocalFrame* frame, const blink::WebHistoryItem& item, blink::WebHistoryCommitType commit_type, bool content_initiated) { TRACE_EVENT1("navigation,rail", "RenderFrameImpl::didNavigateWithinPage", "id", routing_id_); - DCHECK_EQ(frame_, frame); DocumentState* document_state = - DocumentState::FromDataSource(frame->DataSource()); + DocumentState::FromDataSource(frame_->DataSource()); UpdateNavigationState(document_state, true /* was_within_same_page */, content_initiated); static_cast<NavigationStateImpl*>(document_state->navigation_state()) ->set_was_within_same_document(true); - DidCommitProvisionalLoad(frame, item, commit_type); + DidCommitProvisionalLoad(frame_, item, commit_type); } void RenderFrameImpl::DidUpdateCurrentHistoryItem() {
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h index 44fc6bca..726ecaa6 100644 --- a/content/renderer/render_frame_impl.h +++ b/content/renderer/render_frame_impl.h
@@ -583,8 +583,7 @@ void DidFailLoad(const blink::WebURLError& error, blink::WebHistoryCommitType commit_type) override; void DidFinishLoad(blink::WebLocalFrame* frame) override; - void DidNavigateWithinPage(blink::WebLocalFrame* frame, - const blink::WebHistoryItem& item, + void DidNavigateWithinPage(const blink::WebHistoryItem& item, blink::WebHistoryCommitType commit_type, bool content_initiated) override; void DidUpdateCurrentHistoryItem() override;
diff --git a/content/renderer/render_frame_impl_browsertest.cc b/content/renderer/render_frame_impl_browsertest.cc index 8c607f67..71e64ce 100644 --- a/content/renderer/render_frame_impl_browsertest.cc +++ b/content/renderer/render_frame_impl_browsertest.cc
@@ -192,12 +192,10 @@ // The main frame's and subframe's LoFi states should stay the same on // navigations within the page. - frame()->DidNavigateWithinPage(frame()->GetWebFrame(), item, - blink::kWebStandardCommit, true); + frame()->DidNavigateWithinPage(item, blink::kWebStandardCommit, true); EXPECT_EQ(SERVER_LOFI_ON, frame()->GetPreviewsState()); - GetMainRenderFrame()->DidNavigateWithinPage( - GetMainRenderFrame()->GetWebFrame(), item, blink::kWebStandardCommit, - true); + GetMainRenderFrame()->DidNavigateWithinPage(item, blink::kWebStandardCommit, + true); EXPECT_EQ(SERVER_LOFI_ON, GetMainRenderFrame()->GetPreviewsState()); // The subframe's LoFi state should not be reset on commit. @@ -253,12 +251,10 @@ // The main frame's and subframe's effective connection type should stay the // same on navigations within the page. - frame()->DidNavigateWithinPage(frame()->GetWebFrame(), item, - blink::kWebStandardCommit, true); + frame()->DidNavigateWithinPage(item, blink::kWebStandardCommit, true); EXPECT_EQ(tests[i].type, frame()->GetEffectiveConnectionType()); - GetMainRenderFrame()->DidNavigateWithinPage( - GetMainRenderFrame()->GetWebFrame(), item, blink::kWebStandardCommit, - true); + GetMainRenderFrame()->DidNavigateWithinPage(item, blink::kWebStandardCommit, + true); EXPECT_EQ(tests[i].type, frame()->GetEffectiveConnectionType()); // The subframe's effective connection type should not be reset on commit.
diff --git a/content/shell/browser/shell_views.cc b/content/shell/browser/shell_views.cc index cc77a7a..6bfe64c 100644 --- a/content/shell/browser/shell_views.cc +++ b/content/shell/browser/shell_views.cc
@@ -174,6 +174,7 @@ // URL entry url_entry_ = new views::Textfield(); url_entry_->set_controller(this); + url_entry_->SetTextInputType(ui::TextInputType::TEXT_INPUT_TYPE_URL); toolbar_column_set->AddColumn(views::GridLayout::FILL, views::GridLayout::FILL, 1, views::GridLayout::USE_PREF, 0, 0);
diff --git a/content/shell/test_runner/web_frame_test_client.cc b/content/shell/test_runner/web_frame_test_client.cc index 724412a..405ba0f 100644 --- a/content/shell/test_runner/web_frame_test_client.cc +++ b/content/shell/test_runner/web_frame_test_client.cc
@@ -518,7 +518,6 @@ } void WebFrameTestClient::DidNavigateWithinPage( - blink::WebLocalFrame* frame, const blink::WebHistoryItem& history_item, blink::WebHistoryCommitType commit_type, bool contentInitiated) {
diff --git a/content/shell/test_runner/web_frame_test_client.h b/content/shell/test_runner/web_frame_test_client.h index 9b81fa8..7af580e2 100644 --- a/content/shell/test_runner/web_frame_test_client.h +++ b/content/shell/test_runner/web_frame_test_client.h
@@ -80,8 +80,7 @@ void DidFailLoad(const blink::WebURLError& error, blink::WebHistoryCommitType commit_type) override; void DidFinishLoad(blink::WebLocalFrame* frame) override; - void DidNavigateWithinPage(blink::WebLocalFrame* frame, - const blink::WebHistoryItem& history_item, + void DidNavigateWithinPage(const blink::WebHistoryItem& history_item, blink::WebHistoryCommitType commit_type, bool contentInitiated) override; void DidStartLoading(bool to_different_document) override;
diff --git a/content/shell/test_runner/web_frame_test_proxy.h b/content/shell/test_runner/web_frame_test_proxy.h index f73dbf2..83814677 100644 --- a/content/shell/test_runner/web_frame_test_proxy.h +++ b/content/shell/test_runner/web_frame_test_proxy.h
@@ -160,13 +160,11 @@ test_client()->DidFinishLoad(frame); } - void DidNavigateWithinPage(blink::WebLocalFrame* frame, - const blink::WebHistoryItem& history_item, + void DidNavigateWithinPage(const blink::WebHistoryItem& history_item, blink::WebHistoryCommitType commit_type, bool content_initiated) override { - Base::DidNavigateWithinPage(frame, history_item, commit_type, - content_initiated); - test_client()->DidNavigateWithinPage(frame, history_item, commit_type, + Base::DidNavigateWithinPage(history_item, commit_type, content_initiated); + test_client()->DidNavigateWithinPage(history_item, commit_type, content_initiated); }
diff --git a/ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.h b/ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.h index 74bbc6e..910894c 100644 --- a/ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.h +++ b/ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.h
@@ -8,6 +8,7 @@ #import <Foundation/Foundation.h> @class BookmarkHomeViewController; +@class BookmarkHomeTabletNTPController; @protocol NewTabPagePanelProtocol; @protocol UrlLoader; @@ -25,7 +26,7 @@ // Returns an instance of a NewTabPagePanelProtocol that can navigate and edit // the bookmark hierarchy. -- (id<NewTabPagePanelProtocol>) +- (BookmarkHomeTabletNTPController*) bookmarkPanelControllerForBrowserState:(ios::ChromeBrowserState*)browserState loader:(id<UrlLoader>)loader colorCache:(NSMutableDictionary*)cache;
diff --git a/ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.mm b/ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.mm index 4d003c3e8..d32ef3fc 100644 --- a/ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.mm +++ b/ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.mm
@@ -22,7 +22,7 @@ browserState:browserState]; } -- (id<NewTabPagePanelProtocol>) +- (BookmarkHomeTabletNTPController*) bookmarkPanelControllerForBrowserState:(ios::ChromeBrowserState*)browserState loader:(id<UrlLoader>)loader colorCache:(NSMutableDictionary*)cache {
diff --git a/ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.h b/ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.h index a7a0839e..5ba0323e 100644 --- a/ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.h +++ b/ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.h
@@ -14,7 +14,8 @@ } // namespace ios // Navigate/edit the bookmark hierarchy on tablet, from the New Tab Page (NTP). -@interface BookmarkHomeTabletNTPController : NSObject<NewTabPagePanelProtocol> +@interface BookmarkHomeTabletNTPController + : UIViewController<NewTabPagePanelProtocol> // Designated initializer. - (instancetype)initWithLoader:(id<UrlLoader>)loader browserState:(ios::ChromeBrowserState*)browserState;
diff --git a/ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.mm b/ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.mm index d4f8616..3ce3760 100644 --- a/ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.mm +++ b/ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.mm
@@ -126,7 +126,8 @@ // This views holds the primary content of this controller. At any point in // time, it contains exactly one of the BookmarkCollectionView subclasses. -@property(nonatomic, strong) ContentView* contentView; +@property(nonatomic, readwrite, strong) ContentView* view; + // The possible views that can be shown from the menu. @property(nonatomic, strong) BookmarkFolderCollectionView* folderView; // This view is created and used if the model is not fully loaded yet by the @@ -272,11 +273,12 @@ @end @implementation BookmarkHomeTabletNTPController + +@dynamic view; @synthesize editing = _editing; @synthesize editIndexPaths = _editIndexPaths; @synthesize bookmarks = _bookmarks; -@synthesize contentView = _contentView; @synthesize folderView = _folderView; @synthesize waitForModelView = _waitForModelView; @@ -319,7 +321,7 @@ } - (void)dealloc { - _contentView.delegate = nil; + self.view.delegate = nil; _folderView.delegate = nil; @@ -355,7 +357,7 @@ // NTPController's scrollview can still scroll with the gestures. [self.panelView enableSideSwiping:NO]; - CGFloat width = self.contentView.bounds.size.width; + CGFloat width = self.view.bounds.size.width; LayoutRect navBarLayout = LayoutRectMake(leadingMargin, width, 0, width - leadingMargin, CGRectGetHeight([self navigationBarFrame])); @@ -437,7 +439,7 @@ - (void)loadWaitingView { DCHECK(!self.waitForModelView); - DCHECK(self.contentView); + DCHECK(self.view); // Present a waiting view. BookmarkHomeWaitingView* waitingView = @@ -514,7 +516,7 @@ if ([self.primaryMenuItem isEqual:menuItem]) return; - if (![self.contentView superview]) + if (![self.view superview]) return; [[self primaryView] removeFromSuperview]; @@ -529,7 +531,7 @@ [self moveMenuAndPrimaryViewToAdequateParent]; - // [self.contentView sendSubviewToBack:primaryView]; + // [self.view sendSubviewToBack:primaryView]; [self refreshFrameOfPrimaryView]; self.navigationBar.hidden = NO; @@ -578,7 +580,7 @@ menuViewWidth:[self menuWidth]]; } [self.view addSubview:self.panelView]; - CGSize size = self.contentView.bounds.size; + CGSize size = self.view.bounds.size; CGFloat navBarHeight = CGRectGetHeight([self navigationBarFrame]); LayoutRect panelLayout = LayoutRectMake( 0, size.width, navBarHeight, size.width, size.height - navBarHeight); @@ -1171,9 +1173,9 @@ } - (void)dismissKeyboard { - // Uses self.contentView directly instead of going throught self.view to + // Uses self.view directly instead of going throught self.view to // avoid creating the view hierarchy unnecessarily. - [self.contentView endEditing:YES]; + [self.view endEditing:YES]; } - (void)setScrollsToTop:(BOOL)enabled { @@ -1181,33 +1183,31 @@ [[self primaryView] setScrollsToTop:self.scrollToTop]; } -- (UIView*)view { - if (!self.contentView) { - _contentView = [[ContentView alloc] initWithFrame:CGRectZero]; - _contentView.delegate = self; - self.contentView.backgroundColor = - bookmark_utils_ios::mainBackgroundColor(); - BookmarkNavigationBar* bar = - [[BookmarkNavigationBar alloc] initWithFrame:CGRectZero]; - self.navigationBar = bar; - self.navigationBar.autoresizingMask = UIViewAutoresizingFlexibleWidth; +- (void)loadView { + self.view = [[ContentView alloc] initWithFrame:CGRectZero]; +} - [self.navigationBar setEditTarget:self - action:@selector(navigationBarWantsEditing:)]; - [self.navigationBar setBackTarget:self - action:@selector(navigationBarBack:)]; +- (void)viewDidLoad { + [super viewDidLoad]; + self.view.delegate = self; + self.view.backgroundColor = bookmark_utils_ios::mainBackgroundColor(); + BookmarkNavigationBar* bar = + [[BookmarkNavigationBar alloc] initWithFrame:CGRectZero]; + self.navigationBar = bar; + self.navigationBar.autoresizingMask = UIViewAutoresizingFlexibleWidth; - [self.navigationBar setMenuTarget:self - action:@selector(toggleMenuAnimated)]; + [self.navigationBar setEditTarget:self + action:@selector(navigationBarWantsEditing:)]; + [self.navigationBar setBackTarget:self action:@selector(navigationBarBack:)]; - [self.view addSubview:self.navigationBar]; + [self.navigationBar setMenuTarget:self action:@selector(toggleMenuAnimated)]; - if (self.bookmarks->loaded()) - [self loadBookmarkViews]; - else - [self loadWaitingView]; - } - return self.contentView; + [self.view addSubview:self.navigationBar]; + + if (self.bookmarks->loaded()) + [self loadBookmarkViews]; + else + [self loadWaitingView]; } - (CGFloat)alphaForBottomShadow { @@ -1217,7 +1217,7 @@ #pragma mark - BookmarkModelBridgeObserver - (void)bookmarkModelLoaded { - if (!self.contentView) + if (!self.view) return; DCHECK(self.waitForModelView);
diff --git a/ios/chrome/browser/ui/ntp/new_tab_page_controller.h b/ios/chrome/browser/ui/ntp/new_tab_page_controller.h index dcbe42e..f8714c9 100644 --- a/ios/chrome/browser/ui/ntp/new_tab_page_controller.h +++ b/ios/chrome/browser/ui/ntp/new_tab_page_controller.h
@@ -36,6 +36,7 @@ } // namespace NewTabPage +@class BookmarkHomeTabletNTPController; @protocol CRWSwipeRecognizerProvider; @class GoogleLandingController; @protocol NewTabPagePanelProtocol; @@ -75,7 +76,7 @@ UIGestureRecognizerDelegate, UIScrollViewDelegate> { @private - base::scoped_nsprotocol<id<NewTabPagePanelProtocol>> bookmarkController_; + base::scoped_nsobject<BookmarkHomeTabletNTPController> bookmarkController_; base::scoped_nsobject<GoogleLandingController> googleLandingController_; base::scoped_nsprotocol<id<NewTabPagePanelProtocol>> incognitoController_; // The currently visible controller, one of the above.
diff --git a/ios/chrome/browser/ui/ntp/new_tab_page_controller.mm b/ios/chrome/browser/ui/ntp/new_tab_page_controller.mm index 21d0df203..bdcd09c 100644 --- a/ios/chrome/browser/ui/ntp/new_tab_page_controller.mm +++ b/ios/chrome/browser/ui/ntp/new_tab_page_controller.mm
@@ -22,6 +22,7 @@ #include "ios/chrome/browser/sync/sync_setup_service_factory.h" #import "ios/chrome/browser/tabs/tab_model.h" #import "ios/chrome/browser/ui/bookmarks/bookmark_controller_factory.h" +#import "ios/chrome/browser/ui/bookmarks/bookmark_home_tablet_ntp_controller.h" #import "ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.h" #import "ios/chrome/browser/ui/commands/generic_chrome_command.h" #include "ios/chrome/browser/ui/commands/ios_command_ids.h" @@ -284,8 +285,9 @@ // //web -wasDismissed method on CRWNativeContent would be more accurate. If // CRWNativeContent leaks, this will not be called. // TODO(crbug.com/708319): Also call -removeFromParentViewController for - // bookmarks, open tabs and incognit here. + // open tabs and incognito here. [googleLandingController_ removeFromParentViewController]; + [bookmarkController_ removeFromParentViewController]; [googleLandingController_ setDelegate:nil]; [bookmarkController_ setDelegate:nil]; @@ -301,8 +303,9 @@ // from the view hierarchy, making it an ideal spot to intiate view controller // containment methods. // TODO(crbug.com/708319): Also call -willMoveToParentViewController:nil for - // bookmarks, open tabs and incognito here. + // open tabs and incognito here. [googleLandingController_ willMoveToParentViewController:nil]; + [bookmarkController_ willMoveToParentViewController:nil]; } - (void)reload { @@ -512,8 +515,8 @@ loader:loader_ colorCache:dominantColorCache_] retain]); } + panelController = bookmarkController_; view = [bookmarkController_ view]; - // TODO(crbug.com/708319): Also set panelController for bookmarks here. [bookmarkController_ setDelegate:self]; } else if (item.identifier == NewTabPage::kMostVisitedPanel) { if (!googleLandingController_) {
diff --git a/ios/chrome/browser/ui/ntp/new_tab_page_controller_unittest.mm b/ios/chrome/browser/ui/ntp/new_tab_page_controller_unittest.mm index 176c18b..90088ff 100644 --- a/ios/chrome/browser/ui/ntp/new_tab_page_controller_unittest.mm +++ b/ios/chrome/browser/ui/ntp/new_tab_page_controller_unittest.mm
@@ -34,7 +34,7 @@ @interface NewTabPageController (TestSupport) - (id<NewTabPagePanelProtocol>)currentController; -- (id<NewTabPagePanelProtocol>)bookmarkController; +- (BookmarkHomeTabletNTPController*)bookmarkController; - (id<NewTabPagePanelProtocol>)incognitoController; @end @@ -48,7 +48,7 @@ return currentController_; } -- (id<NewTabPagePanelProtocol>)bookmarkController { +- (BookmarkHomeTabletNTPController*)bookmarkController { return bookmarkController_.get(); }
diff --git a/ios/clean/chrome/browser/ui/bookmarks/bookmarks_coordinator.mm b/ios/clean/chrome/browser/ui/bookmarks/bookmarks_coordinator.mm index 9bdeae9..fadbc3caf 100644 --- a/ios/clean/chrome/browser/ui/bookmarks/bookmarks_coordinator.mm +++ b/ios/clean/chrome/browser/ui/bookmarks/bookmarks_coordinator.mm
@@ -17,12 +17,10 @@ @interface BookmarksCoordinator () @property(nonatomic, strong) UIViewController* viewController; -@property(nonatomic, strong) BookmarkHomeTabletNTPController* wrapperController; @end @implementation BookmarksCoordinator @synthesize viewController = _viewController; -@synthesize wrapperController = _wrapperController; - (void)start { // HACK: Re-using old view controllers for now. @@ -34,12 +32,10 @@ } else { BookmarkControllerFactory* factory = [[BookmarkControllerFactory alloc] init]; - self.wrapperController = [factory + self.viewController = [factory bookmarkPanelControllerForBrowserState:self.browser->browser_state() loader:nil colorCache:nil]; - self.viewController = [[UIViewController alloc] init]; - self.viewController.view = [self.wrapperController view]; } [super start]; }
diff --git a/ipc/ipc_sync_channel.cc b/ipc/ipc_sync_channel.cc index 0d61e08..842e04e 100644 --- a/ipc/ipc_sync_channel.cc +++ b/ipc/ipc_sync_channel.cc
@@ -88,9 +88,9 @@ outer_state_(sync_msg_queue_->top_send_done_event_watcher_), event_(context->GetSendDoneEvent()), callback_( - base::Bind(&SyncChannel::SyncContext::OnSendDoneEventSignaled, - context, - run_loop)) { + base::BindOnce(&SyncChannel::SyncContext::OnSendDoneEventSignaled, + context, + run_loop)) { sync_msg_queue_->top_send_done_event_watcher_ = this; if (outer_state_) outer_state_->StopWatching(); @@ -104,14 +104,23 @@ } private: - void StartWatching() { watcher_.StartWatching(event_, callback_); } + void Run(WaitableEvent* event) { + DCHECK(callback_); + std::move(callback_).Run(event); + } + + void StartWatching() { + watcher_.StartWatching(event_, base::BindOnce(&NestedSendDoneWatcher::Run, + base::Unretained(this))); + } + void StopWatching() { watcher_.StopWatching(); } ReceivedSyncMsgQueue* const sync_msg_queue_; NestedSendDoneWatcher* const outer_state_; base::WaitableEvent* const event_; - const base::WaitableEventWatcher::EventCallback callback_; + base::WaitableEventWatcher::EventCallback callback_; base::WaitableEventWatcher watcher_; DISALLOW_COPY_AND_ASSIGN(NestedSendDoneWatcher);
diff --git a/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java b/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java index 6f407ec..bf6f1bd9 100644 --- a/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java +++ b/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java
@@ -84,11 +84,13 @@ private final Object mPhotoTakenCallbackLock = new Object(); // Storage of takePicture() callback Id. There can be one such request in flight at most, and - // needs to be exercised either in case of error or sucess. + // needs to be exercised either in case of error or success. private long mPhotoTakenCallbackId; + private int mPhotoWidth; private int mPhotoHeight; private android.hardware.Camera.Area mAreaOfInterest; + private android.hardware.Camera.Parameters mPreviewParameters; private android.hardware.Camera mCamera; // Lock to mutually exclude execution of OnPreviewFrame() and {start/stop}Capture(). @@ -153,6 +155,17 @@ private class CrPictureCallback implements android.hardware.Camera.PictureCallback { @Override public void onPictureTaken(byte[] data, android.hardware.Camera camera) { + try { + Log.d(TAG, "|mPreviewParameters|: %s", mPreviewParameters.flatten()); + camera.setParameters(mPreviewParameters); + } catch (RuntimeException ex) { + Log.e(TAG, "onPictureTaken, setParameters() " + ex); + } + try { + camera.startPreview(); + } catch (RuntimeException ex) { + Log.e(TAG, "onPictureTaken, startPreview() " + ex); + } synchronized (mPhotoTakenCallbackLock) { if (mPhotoTakenCallbackId != 0) { nativeOnPhotoTaken( @@ -160,10 +173,6 @@ } mPhotoTakenCallbackId = 0; } - android.hardware.Camera.Parameters parameters = getCameraParameters(mCamera); - parameters.setRotation(0); - mCamera.setParameters(parameters); - camera.startPreview(); } }; @@ -751,44 +760,40 @@ if (mPhotoTakenCallbackId != 0) return false; mPhotoTakenCallbackId = callbackId; } + mPreviewParameters = getCameraParameters(mCamera); - android.hardware.Camera.Parameters parameters = getCameraParameters(mCamera); - parameters.setRotation(getCameraRotation()); - final android.hardware.Camera.Size original_size = parameters.getPictureSize(); + android.hardware.Camera.Parameters photoParameters = getCameraParameters(mCamera); + photoParameters.setRotation(getCameraRotation()); - List<android.hardware.Camera.Size> supportedSizes = parameters.getSupportedPictureSizes(); - android.hardware.Camera.Size closestSize = null; - int minDiff = Integer.MAX_VALUE; - for (android.hardware.Camera.Size size : supportedSizes) { - final int diff = ((mPhotoWidth > 0) ? Math.abs(size.width - mPhotoWidth) : 0) - + ((mPhotoHeight > 0) ? Math.abs(size.height - mPhotoHeight) : 0); - if (diff < minDiff) { - minDiff = diff; - closestSize = size; + if (mPhotoWidth > 0 || mPhotoHeight > 0) { + final List<android.hardware.Camera.Size> supportedSizes = + photoParameters.getSupportedPictureSizes(); + android.hardware.Camera.Size closestSize = null; + int minDiff = Integer.MAX_VALUE; + for (android.hardware.Camera.Size size : supportedSizes) { + final int diff = ((mPhotoWidth > 0) ? Math.abs(size.width - mPhotoWidth) : 0) + + ((mPhotoHeight > 0) ? Math.abs(size.height - mPhotoHeight) : 0); + if (diff < minDiff) { + minDiff = diff; + closestSize = size; + } + } + if (minDiff != Integer.MAX_VALUE) { + Log.d(TAG, "requested resolution: (%dx%d); matched (%dx%d)", mPhotoWidth, + mPhotoHeight, closestSize.width, closestSize.height); + photoParameters.setPictureSize(closestSize.width, closestSize.height); } } - Log.d(TAG, "requested resolution: (%dx%d)", mPhotoWidth, mPhotoHeight); - if (minDiff != Integer.MAX_VALUE) { - Log.d(TAG, " matched (%dx%d)", closestSize.width, closestSize.height); - parameters.setPictureSize(closestSize.width, closestSize.height); - } try { - mCamera.setParameters(parameters); - mCamera.takePicture(null, null, null, new CrPictureCallback()); + Log.d(TAG, "|photoParameters|: %s", photoParameters.flatten()); + mCamera.setParameters(photoParameters); } catch (RuntimeException ex) { - Log.e(TAG, "takePicture ", ex); + Log.e(TAG, "setParameters " + ex); return false; } - // Restore original parameters. - parameters.setPictureSize(original_size.width, original_size.height); - try { - mCamera.setParameters(parameters); - } catch (RuntimeException ex) { - Log.e(TAG, "takePicture ", ex); - return false; - } + mCamera.takePicture(null, null, null, new CrPictureCallback()); return true; }
diff --git a/media/filters/chunk_demuxer.cc b/media/filters/chunk_demuxer.cc index 9fb533e..d9d5607 100644 --- a/media/filters/chunk_demuxer.cc +++ b/media/filters/chunk_demuxer.cc
@@ -287,12 +287,12 @@ return VIDEO_ROTATION_0; } -bool ChunkDemuxerStream::enabled() const { +bool ChunkDemuxerStream::IsEnabled() const { base::AutoLock auto_lock(lock_); return is_enabled_; } -void ChunkDemuxerStream::set_enabled(bool enabled, base::TimeDelta timestamp) { +void ChunkDemuxerStream::SetEnabled(bool enabled, base::TimeDelta timestamp) { base::AutoLock auto_lock(lock_); if (enabled == is_enabled_) @@ -498,20 +498,20 @@ // MediaResource::GetFirstStream returns the enabled stream if there is one. // TODO(servolk): Revisit this after media track switching is supported. for (const auto& stream : audio_streams_) { - if (stream->enabled()) + if (stream->IsEnabled()) result.push_back(stream.get()); } for (const auto& stream : video_streams_) { - if (stream->enabled()) + if (stream->IsEnabled()) result.push_back(stream.get()); } // Put disabled streams at the end of the vector. for (const auto& stream : audio_streams_) { - if (!stream->enabled()) + if (!stream->IsEnabled()) result.push_back(stream.get()); } for (const auto& stream : video_streams_) { - if (!stream->enabled()) + if (!stream->IsEnabled()) result.push_back(stream.get()); } return result; @@ -730,12 +730,12 @@ for (const auto& stream : audio_streams_) { if (enabled_streams.find(stream.get()) == enabled_streams.end()) { DVLOG(1) << __func__ << ": disabling stream " << stream.get(); - stream->set_enabled(false, curr_time); + stream->SetEnabled(false, curr_time); } } for (auto* stream : enabled_streams) { DVLOG(1) << __func__ << ": enabling stream " << stream; - stream->set_enabled(true, curr_time); + stream->SetEnabled(true, curr_time); } } @@ -756,12 +756,12 @@ if (stream.get() != selected_stream) { DVLOG(1) << __func__ << ": disabling stream " << stream.get(); DCHECK_EQ(DemuxerStream::VIDEO, stream->type()); - stream->set_enabled(false, curr_time); + stream->SetEnabled(false, curr_time); } } if (selected_stream) { DVLOG(1) << __func__ << ": enabling stream " << selected_stream; - selected_stream->set_enabled(true, curr_time); + selected_stream->SetEnabled(true, curr_time); } } @@ -1234,7 +1234,7 @@ track_id_to_demux_stream_map_.end()); track_id_to_demux_stream_map_[media_track_id] = stream.get(); id_to_streams_map_[source_id].push_back(stream.get()); - stream->set_enabled(owning_vector->empty(), base::TimeDelta()); + stream->SetEnabled(owning_vector->empty(), base::TimeDelta()); owning_vector->push_back(std::move(stream)); return owning_vector->back().get(); }
diff --git a/media/filters/chunk_demuxer.h b/media/filters/chunk_demuxer.h index 6537ef0..b857221 100644 --- a/media/filters/chunk_demuxer.h +++ b/media/filters/chunk_demuxer.h
@@ -115,8 +115,8 @@ bool SupportsConfigChanges() override; VideoRotation video_rotation() override; - bool enabled() const; - void set_enabled(bool enabled, base::TimeDelta timestamp); + bool IsEnabled() const; + void SetEnabled(bool enabled, base::TimeDelta timestamp); void SetStreamStatusChangeCB(const StreamStatusChangeCB& cb);
diff --git a/media/filters/chunk_demuxer_unittest.cc b/media/filters/chunk_demuxer_unittest.cc index 27e616fe..7653ee7 100644 --- a/media/filters/chunk_demuxer_unittest.cc +++ b/media/filters/chunk_demuxer_unittest.cc
@@ -4658,16 +4658,16 @@ base::WaitableEvent event(base::WaitableEvent::ResetPolicy::AUTOMATIC, base::WaitableEvent::InitialState::NOT_SIGNALED); - ASSERT_TRUE(stream->enabled()); + ASSERT_TRUE(stream->IsEnabled()); media_resource->SetStreamStatusChangeCB( base::Bind(&OnStreamStatusChanged, base::Unretained(&event))); - stream->set_enabled(false, base::TimeDelta()); + stream->SetEnabled(false, base::TimeDelta()); base::RunLoop().RunUntilIdle(); ASSERT_TRUE(event.IsSignaled()); event.Reset(); - stream->set_enabled(true, base::TimeDelta()); + stream->SetEnabled(true, base::TimeDelta()); base::RunLoop().RunUntilIdle(); ASSERT_TRUE(event.IsSignaled()); }
diff --git a/media/filters/ffmpeg_demuxer.cc b/media/filters/ffmpeg_demuxer.cc index 5f37c6e..699b2f8f 100644 --- a/media/filters/ffmpeg_demuxer.cc +++ b/media/filters/ffmpeg_demuxer.cc
@@ -728,12 +728,12 @@ return video_rotation_; } -bool FFmpegDemuxerStream::enabled() const { +bool FFmpegDemuxerStream::IsEnabled() const { DCHECK(task_runner_->BelongsToCurrentThread()); return is_enabled_; } -void FFmpegDemuxerStream::set_enabled(bool enabled, base::TimeDelta timestamp) { +void FFmpegDemuxerStream::SetEnabled(bool enabled, base::TimeDelta timestamp) { DCHECK(task_runner_->BelongsToCurrentThread()); if (enabled == is_enabled_) return; @@ -1043,12 +1043,12 @@ // MediaResource::GetFirstStream returns the enabled stream if there is one. // TODO(servolk): Revisit this after media track switching is supported. for (const auto& stream : streams_) { - if (stream && stream->enabled()) + if (stream && stream->IsEnabled()) result.push_back(stream.get()); } // And include disabled streams at the end of the list. for (const auto& stream : streams_) { - if (stream && !stream->enabled()) + if (stream && !stream->IsEnabled()) result.push_back(stream.get()); } return result; @@ -1064,7 +1064,7 @@ FFmpegDemuxerStream* FFmpegDemuxer::GetFirstEnabledFFmpegStream( DemuxerStream::Type type) const { for (const auto& stream : streams_) { - if (stream && stream->type() == type && stream->enabled()) { + if (stream && stream->type() == type && stream->IsEnabled()) { return stream.get(); } } @@ -1339,11 +1339,11 @@ } if (codec_type == AVMEDIA_TYPE_AUDIO) { - streams_[i]->set_enabled(detected_audio_track_count == 1, - base::TimeDelta()); + streams_[i]->SetEnabled(detected_audio_track_count == 1, + base::TimeDelta()); } else if (codec_type == AVMEDIA_TYPE_VIDEO) { - streams_[i]->set_enabled(detected_video_track_count == 1, - base::TimeDelta()); + streams_[i]->SetEnabled(detected_video_track_count == 1, + base::TimeDelta()); } if ((codec_type == AVMEDIA_TYPE_AUDIO && @@ -1571,7 +1571,7 @@ bool enabled) { FFmpegDemuxerStream* lowest_start_time_stream = nullptr; for (const auto& stream : streams_) { - if (!stream || stream->enabled() != enabled) + if (!stream || stream->IsEnabled() != enabled) continue; if (!lowest_start_time_stream || stream->start_time() < lowest_start_time_stream->start_time()) { @@ -1587,7 +1587,8 @@ // than the |seek_time| or unknown, then always prefer it for seeking. FFmpegDemuxerStream* video_stream = nullptr; for (const auto& stream : streams_) { - if (stream && stream->type() == DemuxerStream::VIDEO && stream->enabled()) { + if (stream && stream->type() == DemuxerStream::VIDEO && + stream->IsEnabled()) { video_stream = stream.get(); if (video_stream->start_time() <= seek_time) { return video_stream; @@ -1680,13 +1681,13 @@ if (stream && stream->type() == DemuxerStream::AUDIO && enabled_streams.find(stream.get()) == enabled_streams.end()) { DVLOG(1) << __func__ << ": disabling stream " << stream.get(); - stream->set_enabled(false, curr_time); + stream->SetEnabled(false, curr_time); } } for (auto* stream : enabled_streams) { DCHECK(stream); DVLOG(1) << __func__ << ": enabling stream " << stream; - stream->set_enabled(true, curr_time); + stream->SetEnabled(true, curr_time); } } @@ -1708,12 +1709,12 @@ if (stream && stream->type() == DemuxerStream::VIDEO && stream.get() != selected_stream) { DVLOG(1) << __func__ << ": disabling stream " << stream.get(); - stream->set_enabled(false, curr_time); + stream->SetEnabled(false, curr_time); } } if (selected_stream) { DVLOG(1) << __func__ << ": enabling stream " << selected_stream; - selected_stream->set_enabled(true, curr_time); + selected_stream->SetEnabled(true, curr_time); } } @@ -1801,7 +1802,7 @@ } FFmpegDemuxerStream* demuxer_stream = streams_[packet->stream_index].get(); - if (demuxer_stream->enabled()) + if (demuxer_stream->IsEnabled()) demuxer_stream->EnqueuePacket(std::move(packet)); // If duration estimate was incorrect, update it and tell higher layers.
diff --git a/media/filters/ffmpeg_demuxer.h b/media/filters/ffmpeg_demuxer.h index 07ea135c..8fcde2b 100644 --- a/media/filters/ffmpeg_demuxer.h +++ b/media/filters/ffmpeg_demuxer.h
@@ -117,8 +117,8 @@ VideoDecoderConfig video_decoder_config() override; VideoRotation video_rotation() override; - bool enabled() const; - void set_enabled(bool enabled, base::TimeDelta timestamp); + bool IsEnabled() const; + void SetEnabled(bool enabled, base::TimeDelta timestamp); void SetStreamStatusChangeCB(const StreamStatusChangeCB& cb);
diff --git a/media/filters/ffmpeg_demuxer_unittest.cc b/media/filters/ffmpeg_demuxer_unittest.cc index a5d510d..1c84ca9 100644 --- a/media/filters/ffmpeg_demuxer_unittest.cc +++ b/media/filters/ffmpeg_demuxer_unittest.cc
@@ -558,20 +558,20 @@ // A disabled stream should be preferred only when there's no other viable // option among enabled streams. - audio->set_enabled(false, base::TimeDelta()); + audio->SetEnabled(false, base::TimeDelta()); EXPECT_EQ(video, preferred_seeking_stream(video_start_time)); // Audio stream is preferred, even though it is disabled, since video stream // start time is higher than the seek target == audio_start_time in this case. EXPECT_EQ(audio, preferred_seeking_stream(audio_start_time)); - audio->set_enabled(true, base::TimeDelta()); - video->set_enabled(false, base::TimeDelta()); + audio->SetEnabled(true, base::TimeDelta()); + video->SetEnabled(false, base::TimeDelta()); EXPECT_EQ(audio, preferred_seeking_stream(audio_start_time)); EXPECT_EQ(audio, preferred_seeking_stream(video_start_time)); // When both audio and video streams are disabled and there's no enabled // streams, then audio is preferred since it has lower start time. - audio->set_enabled(false, base::TimeDelta()); + audio->SetEnabled(false, base::TimeDelta()); EXPECT_EQ(audio, preferred_seeking_stream(audio_start_time)); EXPECT_EQ(audio, preferred_seeking_stream(video_start_time)); } @@ -832,7 +832,7 @@ auto bytes_read_with_video_enabled = data_source_->bytes_read_for_testing(); static_cast<FFmpegDemuxerStream*>(GetStream(DemuxerStream::VIDEO)) - ->set_enabled(false, base::TimeDelta()); + ->SetEnabled(false, base::TimeDelta()); data_source_->reset_bytes_read_for_testing(); Seek(seek_target); GetStream(DemuxerStream::AUDIO) @@ -1576,7 +1576,7 @@ // Now pretend that video stream got disabled, e.g. due to current tab going // into background. - vstream->set_enabled(false, base::TimeDelta()); + vstream->SetEnabled(false, base::TimeDelta()); // Since there's no other enabled streams, the preferred seeking stream should // still be the video stream. EXPECT_EQ(vstream, preferred_seeking_stream(base::TimeDelta())); @@ -1592,7 +1592,7 @@ EXPECT_EQ(astream, preferred_seeking_stream(base::TimeDelta())); // Now pretend that audio stream got disabled. - astream->set_enabled(false, base::TimeDelta()); + astream->SetEnabled(false, base::TimeDelta()); // Since there's no other enabled streams, the preferred seeking stream should // still be the audio stream. EXPECT_EQ(astream, preferred_seeking_stream(base::TimeDelta()));
diff --git a/mojo/public/interfaces/bindings/tests/sample_import.mojom b/mojo/public/interfaces/bindings/tests/sample_import.mojom index d28cb7b..c957051 100644 --- a/mojo/public/interfaces/bindings/tests/sample_import.mojom +++ b/mojo/public/interfaces/bindings/tests/sample_import.mojom
@@ -36,3 +36,8 @@ interface ImportedInterface { DoSomething(); }; + +union PointOrShape { + Point point; + Shape shape; +};
diff --git a/mojo/public/interfaces/bindings/tests/test_unions.mojom b/mojo/public/interfaces/bindings/tests/test_unions.mojom index 41e1ed6..4343bc7 100644 --- a/mojo/public/interfaces/bindings/tests/test_unions.mojom +++ b/mojo/public/interfaces/bindings/tests/test_unions.mojom
@@ -4,6 +4,8 @@ module mojo.test; +import "mojo/public/interfaces/bindings/tests/sample_import.mojom"; + enum AnEnum { FIRST, SECOND }; @@ -103,3 +105,11 @@ int8 f_int8; int16 f_int16; }; + +struct ImportedUnionStruct { + imported.PointOrShape point_or_shape; +}; + +union ImportedUnionUnion { + imported.PointOrShape point_or_shape; +};
diff --git a/mojo/public/tools/bindings/generators/java_templates/data_types_definition.tmpl b/mojo/public/tools/bindings/generators/java_templates/data_types_definition.tmpl index 4c0823c..f4edd06b 100644 --- a/mojo/public/tools/bindings/generators/java_templates/data_types_definition.tmpl +++ b/mojo/public/tools/bindings/generators/java_templates/data_types_definition.tmpl
@@ -322,7 +322,8 @@ if (m{{field|ucc}} == null) { encoder0.encodeNullPointer(offset + 8, {{field.kind|is_nullable_kind|java_true_false}}); } else { - m{{field|ucc}}.encode(encoder0.encoderForUnionPointer(offset + 8), 0); + encoder0.encoderForUnionPointer(offset + 8).encode( + m{{field|ucc}}, 0, {{field.kind|is_nullable_kind|java_true_false}}); } {%- else %} {{encode('m' ~ field|ucc, field.kind, 'offset + 8', 0)|indent(16)}} @@ -352,7 +353,7 @@ {%- if field.kind|is_union_kind %} org.chromium.mojo.bindings.Decoder decoder1 = decoder0.readPointer(offset + org.chromium.mojo.bindings.DataHeader.HEADER_SIZE, {{field.kind|is_nullable_kind|java_true_false}}); if (decoder1 != null) { - result.m{{field|ucc}} = {{field.kind|name}}.decode(decoder1, 0); + result.m{{field|ucc}} = {{field.kind|java_type}}.decode(decoder1, 0); } {%- else %} {{decode('result.m'~field|ucc, field.kind, 'offset + org.chromium.mojo.bindings.DataHeader.HEADER_SIZE', 0)|indent(16)}}
diff --git a/net/BUILD.gn b/net/BUILD.gn index c7174e6..13792889 100644 --- a/net/BUILD.gn +++ b/net/BUILD.gn
@@ -3415,6 +3415,14 @@ "data/verify_certificate_chain_unittest/key-rollover-oldchain.pem", "data/verify_certificate_chain_unittest/key-rollover-rolloverchain.pem", "data/verify_certificate_chain_unittest/non-self-signed-root.pem", + "data/verify_certificate_chain_unittest/serverauth-ec-ku-decipheronly.pem", + "data/verify_certificate_chain_unittest/serverauth-ec-ku-digitalsignature.pem", + "data/verify_certificate_chain_unittest/serverauth-ec-ku-keyagreement.pem", + "data/verify_certificate_chain_unittest/serverauth-ec-ku-keyencipherment.pem", + "data/verify_certificate_chain_unittest/serverauth-rsa-ku-decipheronly.pem", + "data/verify_certificate_chain_unittest/serverauth-rsa-ku-digitalsignature.pem", + "data/verify_certificate_chain_unittest/serverauth-rsa-ku-keyagreement.pem", + "data/verify_certificate_chain_unittest/serverauth-rsa-ku-keyencipherment.pem", "data/verify_certificate_chain_unittest/target-and-intermediate.pem", "data/verify_certificate_chain_unittest/target-has-keycertsign-but-not-ca.pem", "data/verify_certificate_chain_unittest/target-has-pathlen-but-not-ca.pem",
diff --git a/net/cert/cert_verify_proc_unittest.cc b/net/cert/cert_verify_proc_unittest.cc index fdb254d..a1bde4f 100644 --- a/net/cert/cert_verify_proc_unittest.cc +++ b/net/cert/cert_verify_proc_unittest.cc
@@ -1199,14 +1199,9 @@ } // A regression test for http://crbug.com/70293. -// The Key Usage extension in this RSA SSL server certificate does not have -// the keyEncipherment bit. -TEST_P(CertVerifyProcInternalTest, InvalidKeyUsage) { - if (verify_proc_type() == CERT_VERIFY_PROC_BUILTIN) { - LOG(INFO) << "TODO(crbug.com/649017): Skipping test as not yet implemented " - "in builting verifier"; - return; - } +// The certificate in question has a key purpose of clientAuth, and also lacks +// the required key usage for serverAuth. +TEST_P(CertVerifyProcInternalTest, WrongKeyPurpose) { base::FilePath certs_dir = GetTestCertsDirectory(); scoped_refptr<X509Certificate> server_cert = @@ -1218,25 +1213,27 @@ int error = Verify(server_cert.get(), "jira.aquameta.com", flags, NULL, CertificateList(), &verify_result); - // TODO(eroman): Change the test data so results are consistent across - // verifiers. - if (verify_proc_type() == CERT_VERIFY_PROC_OPENSSL) { - // This certificate has two errors: "invalid key usage" and "untrusted CA". - // However, OpenSSL returns only one (the latter), and we can't detect - // the other errors. - EXPECT_THAT(error, IsError(ERR_CERT_AUTHORITY_INVALID)); - } else { - EXPECT_THAT(error, IsError(ERR_CERT_INVALID)); + EXPECT_TRUE(verify_result.cert_status & CERT_STATUS_COMMON_NAME_INVALID); + + // TODO(crbug.com/649017): Don't special-case builtin verifier. + if (verify_proc_type() != CERT_VERIFY_PROC_BUILTIN) EXPECT_TRUE(verify_result.cert_status & CERT_STATUS_INVALID); - } + // TODO(wtc): fix http://crbug.com/75520 to get all the certificate errors // from NSS. if (verify_proc_type() != CERT_VERIFY_PROC_NSS && - verify_proc_type() != CERT_VERIFY_PROC_IOS && verify_proc_type() != CERT_VERIFY_PROC_ANDROID) { // The certificate is issued by an unknown CA. EXPECT_TRUE(verify_result.cert_status & CERT_STATUS_AUTHORITY_INVALID); } + + // TODO(crbug.com/649017): Don't special-case builtin verifier. + if (verify_proc_type() == CERT_VERIFY_PROC_OPENSSL || + verify_proc_type() == CERT_VERIFY_PROC_BUILTIN) { + EXPECT_THAT(error, IsError(ERR_CERT_AUTHORITY_INVALID)); + } else { + EXPECT_THAT(error, IsError(ERR_CERT_INVALID)); + } } // Basic test for returning the chain in CertVerifyResult. Note that the
diff --git a/net/cert/internal/verify_certificate_chain.cc b/net/cert/internal/verify_certificate_chain.cc index 5f2b7d81..9a1f6e0 100644 --- a/net/cert/internal/verify_certificate_chain.cc +++ b/net/cert/internal/verify_certificate_chain.cc
@@ -64,14 +64,15 @@ bool IsHandledCriticalExtensionOid(const der::Input& oid) { if (oid == BasicConstraintsOid()) return true; + // Key Usage is NOT processed for end-entity certificates (this is the + // responsibility of callers), however it is considered "handled" here in + // order to allow being marked as critical. if (oid == KeyUsageOid()) return true; if (oid == ExtKeyUsageOid()) return true; if (oid == NameConstraintsOid()) return true; - // TODO(eroman): SubjectAltName isn't actually used here, but rather is being - // checked by a higher layer. if (oid == SubjectAltNameOid()) return true; @@ -607,8 +608,6 @@ &name_constraints_list, cert_errors); } else { WrapUp(cert, cert_errors); - // TODO(eroman): Verify the Key Usage on target is consistent with - // key_purpose. } }
diff --git a/net/cert/internal/verify_certificate_chain.h b/net/cert/internal/verify_certificate_chain.h index 7abeede..e77c6fe 100644 --- a/net/cert/internal/verify_certificate_chain.h +++ b/net/cert/internal/verify_certificate_chain.h
@@ -30,9 +30,21 @@ CLIENT_AUTH, }; -// VerifyCertificateChain() verifies a certificate path (chain) based on the -// rules in RFC 5280. The caller is responsible for building the path and -// finding the trust anchor. +// VerifyCertificateChain() verifies an ordered certificate path in accordance +// with RFC 5280 (with some modifications [1]). +// +// [1] Deviations from RFC 5280: +// +// * If Extended Key Usage appears on intermediates it is treated as a +// restriction on subordinate certificates. +// +// The caller is responsible for additionally checking: +// +// * The end-entity's KeyUsage before using its SPKI. +// * The end-entity's name/subjectAltName (note that name constraints from +// intermediates will have already been applied, so just need to check +// the end-entity for a match). +// * Policies // // WARNING: This implementation is in progress, and is currently incomplete. // Consult an OWNER before using it.
diff --git a/net/cert/internal/verify_certificate_chain_typed_unittest.h b/net/cert/internal/verify_certificate_chain_typed_unittest.h index 48e40186..148aad4 100644 --- a/net/cert/internal/verify_certificate_chain_typed_unittest.h +++ b/net/cert/internal/verify_certificate_chain_typed_unittest.h
@@ -101,6 +101,16 @@ TYPED_TEST_P(VerifyCertificateChainSingleRootTest, KeyUsage) { this->RunTest("intermediate-lacks-signing-key-usage.pem"); this->RunTest("target-has-keycertsign-but-not-ca.pem"); + + this->RunTest("serverauth-ec-ku-decipheronly.pem"); + this->RunTest("serverauth-ec-ku-digitalsignature.pem"); + this->RunTest("serverauth-ec-ku-keyagreement.pem"); + this->RunTest("serverauth-ec-ku-keyencipherment.pem"); + + this->RunTest("serverauth-rsa-ku-decipheronly.pem"); + this->RunTest("serverauth-rsa-ku-digitalsignature.pem"); + this->RunTest("serverauth-rsa-ku-keyagreement.pem"); + this->RunTest("serverauth-rsa-ku-keyencipherment.pem"); } TYPED_TEST_P(VerifyCertificateChainSingleRootTest, ExtendedKeyUsage) {
diff --git a/net/data/verify_certificate_chain_unittest/generate-serverauth-ec-ku-decipheronly.py b/net/data/verify_certificate_chain_unittest/generate-serverauth-ec-ku-decipheronly.py new file mode 100755 index 0000000..4431180 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/generate-serverauth-ec-ku-decipheronly.py
@@ -0,0 +1,33 @@ +#!/usr/bin/python +# 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. + +"""Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only decipherOnly.""" + +import common + +# Self-signed root certificate (used as trust anchor). +root = common.create_self_signed_root_certificate('Root') + +# Intermediate certificate. +intermediate = common.create_intermediate_certificate('Intermediate', root) + +# Target certificate. +target = common.create_end_entity_certificate('Target', intermediate) +target.set_key(common.get_or_generate_ec_key( + 'secp384r1', common.create_key_path(target.name))) +target.get_extensions().set_property('extendedKeyUsage', 'serverAuth') +target.get_extensions().set_property('keyUsage', 'critical,decipherOnly') + + +chain = [target, intermediate] +trusted = common.TrustAnchor(root, constrained=False) +time = common.DEFAULT_TIME +key_purpose = common.KEY_PURPOSE_SERVER_AUTH +verify_result = True +errors = None + +common.write_test_file(__doc__, chain, trusted, time, key_purpose, + verify_result, errors)
diff --git a/net/data/verify_certificate_chain_unittest/generate-serverauth-ec-ku-digitalsignature.py b/net/data/verify_certificate_chain_unittest/generate-serverauth-ec-ku-digitalsignature.py new file mode 100755 index 0000000..50fcc9b --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/generate-serverauth-ec-ku-digitalsignature.py
@@ -0,0 +1,33 @@ +#!/usr/bin/python +# 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. + +"""Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only digitalSignature.""" + +import common + +# Self-signed root certificate (used as trust anchor). +root = common.create_self_signed_root_certificate('Root') + +# Intermediate certificate. +intermediate = common.create_intermediate_certificate('Intermediate', root) + +# Target certificate. +target = common.create_end_entity_certificate('Target', intermediate) +target.set_key(common.get_or_generate_ec_key( + 'secp384r1', common.create_key_path(target.name))) +target.get_extensions().set_property('extendedKeyUsage', 'serverAuth') +target.get_extensions().set_property('keyUsage', 'critical,digitalSignature') + + +chain = [target, intermediate] +trusted = common.TrustAnchor(root, constrained=False) +time = common.DEFAULT_TIME +key_purpose = common.KEY_PURPOSE_SERVER_AUTH +verify_result = True +errors = None + +common.write_test_file(__doc__, chain, trusted, time, key_purpose, + verify_result, errors)
diff --git a/net/data/verify_certificate_chain_unittest/generate-serverauth-ec-ku-keyagreement.py b/net/data/verify_certificate_chain_unittest/generate-serverauth-ec-ku-keyagreement.py new file mode 100755 index 0000000..25bf78dd --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/generate-serverauth-ec-ku-keyagreement.py
@@ -0,0 +1,33 @@ +#!/usr/bin/python +# 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. + +"""Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only keyAgreement.""" + +import common + +# Self-signed root certificate (used as trust anchor). +root = common.create_self_signed_root_certificate('Root') + +# Intermediate certificate. +intermediate = common.create_intermediate_certificate('Intermediate', root) + +# Target certificate. +target = common.create_end_entity_certificate('Target', intermediate) +target.set_key(common.get_or_generate_ec_key( + 'secp384r1', common.create_key_path(target.name))) +target.get_extensions().set_property('extendedKeyUsage', 'serverAuth') +target.get_extensions().set_property('keyUsage', 'critical,keyAgreement') + + +chain = [target, intermediate] +trusted = common.TrustAnchor(root, constrained=False) +time = common.DEFAULT_TIME +key_purpose = common.KEY_PURPOSE_SERVER_AUTH +verify_result = True +errors = None + +common.write_test_file(__doc__, chain, trusted, time, key_purpose, + verify_result, errors)
diff --git a/net/data/verify_certificate_chain_unittest/generate-serverauth-ec-ku-keyencipherment.py b/net/data/verify_certificate_chain_unittest/generate-serverauth-ec-ku-keyencipherment.py new file mode 100755 index 0000000..f1d82d6 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/generate-serverauth-ec-ku-keyencipherment.py
@@ -0,0 +1,33 @@ +#!/usr/bin/python +# 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. + +"""Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only keyEncipherment.""" + +import common + +# Self-signed root certificate (used as trust anchor). +root = common.create_self_signed_root_certificate('Root') + +# Intermediate certificate. +intermediate = common.create_intermediate_certificate('Intermediate', root) + +# Target certificate. +target = common.create_end_entity_certificate('Target', intermediate) +target.set_key(common.get_or_generate_ec_key( + 'secp384r1', common.create_key_path(target.name))) +target.get_extensions().set_property('extendedKeyUsage', 'serverAuth') +target.get_extensions().set_property('keyUsage', 'critical,keyEncipherment') + + +chain = [target, intermediate] +trusted = common.TrustAnchor(root, constrained=False) +time = common.DEFAULT_TIME +key_purpose = common.KEY_PURPOSE_SERVER_AUTH +verify_result = True +errors = None + +common.write_test_file(__doc__, chain, trusted, time, key_purpose, + verify_result, errors)
diff --git a/net/data/verify_certificate_chain_unittest/generate-serverauth-rsa-ku-decipheronly.py b/net/data/verify_certificate_chain_unittest/generate-serverauth-rsa-ku-decipheronly.py new file mode 100755 index 0000000..a4815230 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/generate-serverauth-rsa-ku-decipheronly.py
@@ -0,0 +1,33 @@ +#!/usr/bin/python +# 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. + +"""Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only decipherOnly.""" + +import common + +# Self-signed root certificate (used as trust anchor). +root = common.create_self_signed_root_certificate('Root') + +# Intermediate certificate. +intermediate = common.create_intermediate_certificate('Intermediate', root) + +# Target certificate. +target = common.create_end_entity_certificate('Target', intermediate) +target.set_key(common.get_or_generate_rsa_key( + 2048, common.create_key_path(target.name))) +target.get_extensions().set_property('extendedKeyUsage', 'serverAuth') +target.get_extensions().set_property('keyUsage', 'critical,decipherOnly') + + +chain = [target, intermediate] +trusted = common.TrustAnchor(root, constrained=False) +time = common.DEFAULT_TIME +key_purpose = common.KEY_PURPOSE_SERVER_AUTH +verify_result = True +errors = None + +common.write_test_file(__doc__, chain, trusted, time, key_purpose, + verify_result, errors)
diff --git a/net/data/verify_certificate_chain_unittest/generate-serverauth-rsa-ku-digitalsignature.py b/net/data/verify_certificate_chain_unittest/generate-serverauth-rsa-ku-digitalsignature.py new file mode 100755 index 0000000..354b9b2 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/generate-serverauth-rsa-ku-digitalsignature.py
@@ -0,0 +1,33 @@ +#!/usr/bin/python +# 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. + +"""Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only digitalSignature.""" + +import common + +# Self-signed root certificate (used as trust anchor). +root = common.create_self_signed_root_certificate('Root') + +# Intermediate certificate. +intermediate = common.create_intermediate_certificate('Intermediate', root) + +# Target certificate. +target = common.create_end_entity_certificate('Target', intermediate) +target.set_key(common.get_or_generate_rsa_key( + 2048, common.create_key_path(target.name))) +target.get_extensions().set_property('extendedKeyUsage', 'serverAuth') +target.get_extensions().set_property('keyUsage', 'critical,digitalSignature') + + +chain = [target, intermediate] +trusted = common.TrustAnchor(root, constrained=False) +time = common.DEFAULT_TIME +key_purpose = common.KEY_PURPOSE_SERVER_AUTH +verify_result = True +errors = None + +common.write_test_file(__doc__, chain, trusted, time, key_purpose, + verify_result, errors)
diff --git a/net/data/verify_certificate_chain_unittest/generate-serverauth-rsa-ku-keyagreement.py b/net/data/verify_certificate_chain_unittest/generate-serverauth-rsa-ku-keyagreement.py new file mode 100755 index 0000000..dcce524 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/generate-serverauth-rsa-ku-keyagreement.py
@@ -0,0 +1,33 @@ +#!/usr/bin/python +# 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. + +"""Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only keyAgreement.""" + +import common + +# Self-signed root certificate (used as trust anchor). +root = common.create_self_signed_root_certificate('Root') + +# Intermediate certificate. +intermediate = common.create_intermediate_certificate('Intermediate', root) + +# Target certificate. +target = common.create_end_entity_certificate('Target', intermediate) +target.set_key(common.get_or_generate_rsa_key( + 2048, common.create_key_path(target.name))) +target.get_extensions().set_property('extendedKeyUsage', 'serverAuth') +target.get_extensions().set_property('keyUsage', 'critical,keyAgreement') + + +chain = [target, intermediate] +trusted = common.TrustAnchor(root, constrained=False) +time = common.DEFAULT_TIME +key_purpose = common.KEY_PURPOSE_SERVER_AUTH +verify_result = True +errors = None + +common.write_test_file(__doc__, chain, trusted, time, key_purpose, + verify_result, errors)
diff --git a/net/data/verify_certificate_chain_unittest/generate-serverauth-rsa-ku-keyencipherment.py b/net/data/verify_certificate_chain_unittest/generate-serverauth-rsa-ku-keyencipherment.py new file mode 100755 index 0000000..d450ce9 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/generate-serverauth-rsa-ku-keyencipherment.py
@@ -0,0 +1,33 @@ +#!/usr/bin/python +# 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. + +"""Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only keyEncipherment.""" + +import common + +# Self-signed root certificate (used as trust anchor). +root = common.create_self_signed_root_certificate('Root') + +# Intermediate certificate. +intermediate = common.create_intermediate_certificate('Intermediate', root) + +# Target certificate. +target = common.create_end_entity_certificate('Target', intermediate) +target.set_key(common.get_or_generate_rsa_key( + 2048, common.create_key_path(target.name))) +target.get_extensions().set_property('extendedKeyUsage', 'serverAuth') +target.get_extensions().set_property('keyUsage', 'critical,keyEncipherment') + + +chain = [target, intermediate] +trusted = common.TrustAnchor(root, constrained=False) +time = common.DEFAULT_TIME +key_purpose = common.KEY_PURPOSE_SERVER_AUTH +verify_result = True +errors = None + +common.write_test_file(__doc__, chain, trusted, time, key_purpose, + verify_result, errors)
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-decipheronly/Intermediate.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-decipheronly/Intermediate.key new file mode 100644 index 0000000..4b8c2ed --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-decipheronly/Intermediate.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEpgIBAAKCAQEAuIuQMsIXtinrWqGVnfcCuuPG8hoklx1mBE6cgoD9pul2lUNN +V+UNqEiIvCw4CGBoP8MI9QwD5SYQHD2n8aaaSP+hSvuOvE9IQXwyoTC5O3vHO3nU +9lL3R3N80cQ/zDM2gtcluBRGkEEu0UO0mcUk7IQWgsI544v24RmCButxj+3PUMe6 +wtCI66nmbipPC+cDE3JOKbrKTJIQoDnkhWoadBc5OS7Il1QBaE8LXIA9j7GupVhD +q1xpZ6LEJyRtcWDdexTjVmGWCeZ7O/DpOwe0QzKfPotS/lAePbflzfiXgkj2Qntp +PbuQG6rygvbV/TBIw8aW5mKRf3NbqzQM775lvwIDAQABAoIBAQCZ05uq86aYLXEE +5tO0DIW2Cs92VtxRKiwzQuOq1KKaUtiJqsP5k/BCadOwJpu+P74mCAibWhyVEZk0 +MSCgiWLpnktwGSftR5jPHRuGyPpd3ts/dFpTyOxeHqHYqGEVcUrq3TOPsTbwX6UK +wgj0dCRHEgNBk2x1g+GR2JVN90t90CwwWdOdqc5o2KKjiTz3schg9nqs4JoXfugP +1YG+Ze8fXVvdlWN5LlI1rTCxFPAdZ5zkAFIbqm8jfcWwYelIJPRbti53rblOXD2s +Hpzswj4zKfefYgR+W+BEaKNaAtPe1Auj08FbZHDsMS2bEPxbhmCVZ/LXTP0W6tzV +n1YpwWqhAoGBAPGaXjhx8qmmlzQNag7wUZYBif1k8BceWV4BhSJqbq0AqR2a1pES +8WltQd7zNe9tGe880+hqTS3ysPTco2wvz7rj7dc9850VUrXkuRGPsn5DRl7d9T// +2xbctIuFEykx21Fy+CoqZ7JSc/xypcgPwY9E4Rw4NzplJ7jJx2FfC4M1AoGBAMOK +yH1tA9SSoBx5QFBMjSjAHBwKyfR4BAbFocy3Kq0tfYnhohX4aHa1V3x13EkQIVf+ +fWRm2Miihy7OJtV1T7GvtxxgRzQKA6QCrU/wnj8HNr/pZeZ0RHxdbbZ1x7rl+d0C +M6/sl5JacNsgRnKMTVIP3hLkmwCOwhY8HKFTSs+jAoGBALgOeO8ZZ9t0rUYbXgvp +as4TeBNRvVJvbXefQtSYLp6fnTaPihzVSJKfiIoX0KQJArPuLCWoLgnuFH9GQz2d +IuzmzX+nk5q87tjhWVgWl8125PpKr5bFDRxaoTSU+abtc36WTpaY3YzNIc1VbhR+ +ZGAIAlKkRPa4r00oczsr1DJtAoGBAJJFvrQUWEkrZZnnGbT3jqBtFJnleCznmht2 +uxHn8oSZAs+heR32NC6YeFkh0SbWahrow+PXC1MKQRVCIMqMdpD0YIVZf+ntk8uc +NQkXdUiwnMPyU8eQMarWOLvEXyPv5HjurLtsv/U6sjE4c3o8eZppRDXdzBUetRDs +5n3HUK8BAoGBAIOQUCXgjzkTYkvSDXrl8XCqAEbXsHFsWSWFZzm6OSaWbKXvhFY2 +fn7xZ3sn169vbijMzsZwx0wo4C/0FciHhgX9hOAd96bcSAurUs6bg5RI/BptLIf1 +I4krYWh8h79gU4QS6x8eSMGy+7NLa2L+LyVt3ApRT1NlI0x8P8uixXNQ +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-decipheronly/Root.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-decipheronly/Root.key new file mode 100644 index 0000000..33f5f497 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-decipheronly/Root.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEAs/6hzA69YZ3STTDK6pq4lo/BMdrQpSYyMEKi4KStLHHDtb8Y +gbgSoan9p5exFu14SjhFKi5ZDUAKjbS3MUnGfB7Hf0KIR2UgwNz+kYcfAdpwvlyO +Mc+Sab+VZFTZdj7fnevDfIED85eqRrqCSANXmYae9IMK5gFAzMCwQmZj5lEmrrIP +1Q8yCAIXKX51itHfQtpnqTtHcZB8n1Jt1UoP+SBWJempK6oBc68oHwBFMBNplCHn +5vB2OXvI5wfDOfP22kI/V2tH/vowqAjT3k1AOKrkl72C9enoLpIUaZ/RIkF+BUB0 +B6t5YzFb45XDTiOopn/4t4pd1Pjhi3VbRAYIwQIDAQABAoIBADkPd+tgoNjZV1nx +JeLJucrBN9W+MHaqbS6vcUMV8XAtgIWVVweIex+U7Dy88f76uS+ONx7wInr42l+h +8pFFeg7PEx9c0CcSABgj9u/bjhDgVu2CGfHgg+HSQmHUJDxAIlPF8er+W2pVoj1Z +0wNRS+v3qVyKTmIr84b1busd2n2go9qbNzZ9dt/7sbXMhrdXMHh7JU+aJcDKWVej +93T/Fdfsjy2Zj3a7uCBK48y5yLbGKkL+lFkad3kpRrKORhZx7R0yWkYSF75g75XO +FO4+bBCeD9Sv2J/cbGxRiJIU1ECjpl/jR97PqUWzJXhJw6DAmaugx8mlbRu0iA0E +jao28SECgYEA5kwimGfTHEPTRPiGC6osXDGN1uP70kn4aUUvQTPr/oEy5i4bjy/0 +Es1jCCcRRNLRZ3t8wei7wOpZFXx/1s2TvuXlzqbqPLMM1Ta9qSsBTQlmWtyPLHVp +2ktLam1BGBAFOEG86W3kqDixeJXvs0i7D5236rRnZgamQo7WxmTGsFsCgYEAyBVJ +8tJp9Hq2cJVXe6wIe+Ap/ie7M8NXe4WLLrBFMTjPSM6XbauHnat8FKMXDfX2+smT +zqjBd3UtJszyR0BpPl9roJeCvzDPg5QFV3+zU7OgzIgGQDpAnhgjNxngRXk/cGc6 +GxYV+NNnNHyttAT2UbZXowc2ZxVgFF7w29yHdhMCgYEA0XLk899ZbRdyigPNRcab +Wa3n5kyqtnJ37qXxeEeUln9Cn33Hqs5eGMubCcseNY3WzVrN+D2GpMl+A8CbM+z8 +Nl44R14fIt1lCnUiwTxPjpTB9lkqDbEreFGKYVzEGvJXDPccrOA5WZVWMumKe2/m +USmMH3W7pFrf0yC9zOnSmokCgYAZM81Hv8dG2zolvjnxwv6ik97WO6zx3TYkwfKB +JATjKVO6yQL79nIzowkTFGPwBz5f4ooyqsELyf+w9nnCDdPz3lMRPGRkrsJEwZ1W +oyg0b9jeSnf3GR9QipvM8f504cvi3a3NAaAs4nwKeXXrygA41K3/RAZPP7sFddwC +5alObwKBgC/F6pM1LSBWcIK3ocEHc9TGYBS8w/nswkJmKDUBUwlpjBgU6nhfM9OO +QEO3JdJrDS34UjXYj4itBVkQw0RDNZ0wbk0Es/xjXJAdWj4lAI3YXD7YAe3dL1lL +cXKB3vy+6DPM15fRpBajjVtGqFaayh5Hit+DVc3GDH1WUALnmytv +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-decipheronly/Target.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-decipheronly/Target.key new file mode 100644 index 0000000..0f59eb4 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-decipheronly/Target.key
@@ -0,0 +1,10 @@ +openssl ecparam -name secp384r1 -genkey +-----BEGIN EC PARAMETERS----- +BgUrgQQAIg== +-----END EC PARAMETERS----- +-----BEGIN EC PRIVATE KEY----- +MIGkAgEBBDB0URyP+sY4LS517XxDUVrEFdySi/C2hknmKwNjdc9vJZe7E9R2iJd4 +KWUVOI06nkygBwYFK4EEACKhZANiAATRz2Ez70xvN6d8+fRLJ//b2+ViqUmtkcq1 +xqIosbTJB34A0G+sUnujcZghpColkI7qJVMOtBbNa7Fto4Lal2NuH7GtUUMZiGWY +zgzScjJvnwNhkKEUHb4iNu8EreLGLL4= +-----END EC PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-digitalsignature/Intermediate.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-digitalsignature/Intermediate.key new file mode 100644 index 0000000..38a00d59 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-digitalsignature/Intermediate.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEpQIBAAKCAQEAv2OeR2/OCc3Jh+pMW16kNEXiB9OIX5Qf2Iyfyr/EZRAITCM9 +I2LK8YcjX7tiZxzMQgzUYw1jEbxjcp01NolCEda0EZnYgD6tB1nNTYX0AuRSeRfw +/1fqJM69ag1TozhXh+s/XyPRs/gohViXqemvdfVMlpri/e9GgczgzV0XbwmZ6jOe +X3WstdoKLz90q9gPWtoYx++KLUYWcO7+fmIevEybCnC7PYv0bnQ4M9FJwbmCi1H2 ++vGztlr1jqczJG5kQnfxwUxMIPiibZVu2xHbNgk0xiHuLIh/dcy9EkBlq7mmUgnR +Unm1cFp841SF4BkVxwN070ja8wrLR2f9WLJ1vQIDAQABAoIBAB5W119xrNLHCXx/ +Os19KkCTF2qwML0eCRJV8Hq+fY6bxQT0zRtP7OXuyz/Av6+i1ApgaEavd5X3LDie +DTJw/cVAKNllbvmddeZlaPMyGeVfdmd10SFZOWfOUh5+sFR+ePm15Bzb28FQxHOn +AJvRzJvBX/u73+HrTV0EMlq7uBxEve+xe0cAtRAqxJ+C0GcqQdbI/vL85WlAT19e +Fy7q02YgErC9zyu+dmjwPRxD4XKqr1kO6bPXpGr1BysWF+z7IPbG0mB/NkDlJTRj +Gp3vSYKQLw5mkWjUU+KDop1YXyBikXMYmMJ/SoGjkTmk42Z11KEmfzgLuq522VDM +8EgqEYECgYEA8QO0/bH1WQVCGHLH0ob1hulDEK0KW6JoVoKPKXCVYaf65MsW9aNw +NSNa53x4vAWpFWuYnJPbfPIcreAWKy3Jb/frNSVaTESDTWLVTtF8Vn7Jh/5wGYZ3 +rxpwnyczZGJ8nUpf2rydykfuTrUCFDutldQ6tGiLi/dmGBxi2rm49B0CgYEAy0oC +2riXHl5rIGzEH19XwJNtPw5OqXmZc/Hi/C8wTpBNpo4w5NVt7DRv+mKBcN2yS6rL +P6w44Mcdh0dWSR0Va0/NvLMq7Wbu9b2KjfZEfIOO+wCTjQ40+E33el+UnrOfga7H +9JZNJVzblnVV/b6054qfJe/pFBXMrHll8w96liECgYEAzDPO2pA4B0e8O4iso0Qz +rS3f47YpK4CMFJgkAgFgn9A6dDVaa58hh/Q/phhBF1VYcEysjiV8dv2PrQZK4iS2 +IocUov/V5P67nQqbHl/BkGt2ByJeClJy/0pQl5gYI/qKCJ6mXmcm7edKEyer7kau +CV86qfZWHa3ss4sBer6W5UUCgYEAnkSlykEyLguWXa0wV7hz6lMdF5188obgSJuG +e44FjvTb75L+T/o2VVJR597vJb8EQ9LZ4F2l/qImxB5u+AczmNONup7HCgM8gYeq +qnGTyljmZVaCiawI41RYGyb030W7Jky8Ehk+QJt1vkLlyuLBlw6ebvvEO8XpDlKJ +Y92mM+ECgYEAp7/6zWOuHCKK7PIKmSnWWpXBd3YyAsWyQO0cfwiSwYuFczNZ6kc4 +9mpf/bOyJVpS2p4lzdMHEUVqg5goIcwkcu+B+yAanBq3KqN9iUQHW0a7SQCtZTJv +MZ9m1o/6wSumGacNf9CgkZkFcCr8jI9rmlrOUoSZeDjFCuTG+vKuKos= +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-digitalsignature/Root.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-digitalsignature/Root.key new file mode 100644 index 0000000..61241f4 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-digitalsignature/Root.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEpQIBAAKCAQEA1Z1fj3LFPUdVMYBX4My3b2t89KLw2aeY0aW1IQkGieIZ9kx3 +wngs/gX9NZUBoWPlUcA93GOLbdmNyb/JDv9BXS1VhZ4mMdSn9CJZDhcboif73jrt +syhqsMwABF4Cpwuu8/AvcaTqEzwsYqWRh82mSxaWeGzlYSdytAbwJz5v+MgAegoa +wlzsHiJS6xURsu3YyR0qlJNmPFFgOxkGfcZltP4MQBpjvnCkp50esb0E8K/MD6L8 +4lFCTGDnrlMwwg10173vf5Mua7LU/3atl8a2lyRhzGwIwV6k4C+rqqhE7y5tUPl5 +nodYRIEbIsZQe1hkeiv8Q02aURobDZtKx+9RLwIDAQABAoIBAQC5puKsi3T8wwg5 +02+Mwp8SSPr6qrpkkBJy8m+vXGbAYy9pLiBPdZ60z4O3k98s4uMk381jw2gkepWO +KA6X6CRo1MOlM0PCvy2RMmDvrAmqLtHp3JFFyfSf30yMfyATCkZtX+v7+vYs7Xkt +6vPGcWb7j5AK7amVfHFmITmLAerS7XliQyF07sCjLPG4MAh5QqNTl//AkejNAVAt +swud4A17bODUcXW/3bwb0wsCDgXNaiDsu7mgrtX641MrFkA+NDmv3FmfYKBkS5zH +03qxT6adrv15gy39H0TjNCI8Bs25iZW846/12xhXZk33XnR4oTCJXqXLr+6bFsSb +cGtDS47RAoGBAO3gBAQClK+YM3J3sRgxPPneHrVyLd8pVhU5ydwTbVU/aWkJscRX +WmYcl8KiAv2qXDmO85G0ND4gDVF1Wz6g3q4dcFKWuhbAFclHtezsjaZaMhL2zyrT +/GQiu6F+N67yIrTDGLPPZuV/z9qTKquhQcCOqdBfur+5NoOdrmJt6osbAoGBAOXk +Iu1WD4fetg2CBp688SGNjja/YiaLmLjv37jexqThXfb+ahZG/TyfEgWAKpu5EDl9 +KuZo2tqLxEYOWpqebzgwAYppSGoNF00pKr/fzrbF0zNVpngwAVUkpLDwMwVTXvsk +p4kQHPESWJ0dLyDldg3c3CWapX70PJW12xjbpX99AoGBALwFp+bri09IhNHj3e17 +bfErKybMu4l7iPl6Fh6IlJEfcFiAOy0wxtmTnDlSCf8rm347ijcPM4QvnZdXpenZ +CmqiBlihnzHAXvgcYKaHTGfDP3VR9OqraQJVme3KcIUuC1TKKUpnk7Ov1UG1tbK3 +4dssaPm10U0ePwLFrkNLEmslAoGBAJcWmN3i8dIaTQwTqMYq509l+VGB9r/ef0EM +ZbzarTMv6tGp449AmK5+3RlAYsB1oHQoD0nfH/cCZLymMmXsOqxy4JBXIYCRmf7c +T3xLW1BEM8pJQF89LaMHsjWXp/CYGpR0QqeSL3NA23xm8dJs/Gmf/g+404vcePTr +0FNGCD8BAoGAD3e+p7emUILHGaenizCrH7LcflxYe3tvDO5pAWXB/VpAtG39XAqI +dtmpOVCe8l/qJlQXY+38s21Hx+qA2snJMxnC7tN4h9ZA2maDf2qptCF73wWlbLu8 +7MwyrYgWq21NOL8WRU7a8hzX3ow592K7FFjQjBSZU0oQ7PoHaCyaG7U= +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-digitalsignature/Target.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-digitalsignature/Target.key new file mode 100644 index 0000000..b7749c1 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-digitalsignature/Target.key
@@ -0,0 +1,10 @@ +openssl ecparam -name secp384r1 -genkey +-----BEGIN EC PARAMETERS----- +BgUrgQQAIg== +-----END EC PARAMETERS----- +-----BEGIN EC PRIVATE KEY----- +MIGkAgEBBDCWsDis7YrN6+baF/6vqyerKi4SSuxnr0Ju8gITcMgitZ1LkQTwzm8P +ZyHVsneATIigBwYFK4EEACKhZANiAARd3edOC5SzScou77WE9WJHc4KXFAlWQrUp +hziLsZn0pwfU2eADdECf0uQ0uol1JzupoBqKJRnyr7aePowO7vERALSo3EmFvytV +b+yDJP6NgSvn2vqIBZkV7hwtc98JeXA= +-----END EC PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyagreement/Intermediate.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyagreement/Intermediate.key new file mode 100644 index 0000000..a89a29af --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyagreement/Intermediate.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEAtj/T99aZcY5AKmRtOWn+2FDAW35/M5FBBspArTz3TfvbEgMv +aa0JKvFJ2GG1P3yx+UFFqyY7dt/a5ItljXerDT5WeMurF5xQsbjB9DGKCSTHGcfF +WrSlxKfA6ytUyd7wSqU99vxm1eLtU08P43nReMxUAUOvF9e4OBFEG7siEy7HTZWP +RJvY501B8FGuKmoTzcRkzX4u1aIyt98viWazk6sL+T99cUe/ji3gWrha2mvYsFF0 +TfQ4rjxeIjSak9RhzktXdyh2toTEqsxelwVVBoNVlT3cyLOpZNPUi4vcMJdUh21o +JjFFBa8czaX2/+fw1g2fpnWp18DDjbp9pKZ/2wIDAQABAoIBAAQjTtzBspoxcKOF +xDUZgv/GVZe+N4UkNyXAUdedGsBah47RI7Jyi1K+R77x+PuICUJviPVp2M/KJV4r +DBM6NFgIok370danZe2jFERHG6s5eovLTV/R2jGs3WR5h2NN/Ia1WcLR2EPi8yCB +Gws/KNJlUUL2FnOkIjqjqbg3d36X9348fOVJzER3gb/1YwQ8A57nVhtdRJU/Inbc +98l+bLhRCbfIpANS/aXiqTODMJD7TQRlM7E0R++MfIvlH00Zz7Lgl8UllE8qLdrv +nBEM3i1RDP5oqZ7P34QeibnaqiXpPqA8+Cfucv9wrEsbhDcVKlVv7ascsRhoPBb7 +v9BgLAECgYEA3uzgGYUs+jSH2OCqVBqLHc7R0cJpA3GZ32t01nzIjFoMGS782q3f +Hz+viXS4uOdJSFFq8SDifiJ4KnP5gF1Z825ES+dLTm7ezcn2G+b5OTo18nBwJveS +lvVfagZV+qyhc92/Bt/DPjWAY621Obe8PNyQ2MmyRPTU+geXlBXX77sCgYEA0UoA +nruHYF+KiM8dNJ8tb/0P/e75ptRAziM5CBwQsnPQJZLM/kvWkQQeJwpniHU47gOu +ETa1UUjw6qsw6wjeFBso/5BR5WYwHIkv5PuV4D1LnQsOZLP4Eb+eE75C9K9rdm3h +PKWjMzgnMvgPIq8otOc0rDBQbwUZzyny8nuKXmECgYEAomNzK6Pzi5/QhY/DA9kC +Fgiel2pDDRsnt7STO9tSS8scnQu5baLSsfS2bi70kN0KaP/GIziNRMzfNC2fRn66 +E7XzUkd+d/gTnVzNRq4ORj29Jon5aKlXw1ei1Z0f7KbsRXb2vI8rrplSmUnkhdLt +8HfLm9/xWIHw0uHM7TasQhkCgYBlHGl8RoE60C2vttAXUieziQEm30OBk93TOTUe +c+ClNkqDPI8I9D6vRNwEZIRsaqWcZ+66pkGnCaRK23YAtwIDmLOP9Ht8Zogr4SNg +byOTeEmFj4feowvgF0EZrLvQVseGKcO9dxCHeEOH3kwBp7n03BaYcacKW96CNXQI +LiNFQQKBgAT6b+v3fkUXR0zBhelTqPSvyQ64kX39Zi5b3fyZg0anj21hEyaSgZix +aCUyaqvzJQcxw5eQf9BqDNxYrOwsaUJPhvXkZSuPX546X4v65Rz17pDZszVqNi92 +tsZ6fW+dskOnWqRYKpJbPMH6JaWJKmPHNA4w36heoCGJcx0fNKzB +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyagreement/Root.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyagreement/Root.key new file mode 100644 index 0000000..783375c5 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyagreement/Root.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEAwT7Tljv0J3Aw7cDtqTjcoipWZdGCejaujwD9TNv7gK320XHA +hwnWQMMeqIbX7dBiX2eghCRxiDGL/os/cfDSVklHdEC4yC8rLtWoBkavMJKNIBOk +fJ1Rn47We0+uqVm5F9C2MRJFWE1Zhum7dR7h2w8QuwwX+0iJ0n7QdpYmifWkdwmn +ek+L3SSVFc5v1oIDdlLwfF1pJf/nEsH7Qb6M6cZ7qOKIA+KGFg8gNKN9KD4U9ZpA +MNP8liHkv5GArqMPpAA5w0AKkNSayP4vyXQWG8QTQAsvr7zQR3gZX0+lmpRGHXHJ +9gS9YUOAM8NX+13fbSAywbLxpkZLGZXzP1P3fQIDAQABAoIBAAQjDy6JLAnoGfQN +DElyIS8LjvvxB0UMhKIlGEcb8n9nuf/z2nZJnJ+YTcC32kmKC4EVW9dYXGHZBbE2 +U+5hhG86dGAlvo7yi48eHdG8k6WLjZ/hK8VLLOMokKjlJM0VUaQT4MKeLIPebAs6 +V7wDJDynTuliMeU8QU8TTe0r+7k6UnoHKeS+wcxAFNJVBqq+kUV4pnjsxe2v0wzv +42DLk7jS+ZGYirR/WCyhir1K97Dppf8hFfyWTcEjoJ8dfuqYcBSOTRCleItGHESY +oV83hxxVDhe6NfyGCFocjq4skZ/Efabb54zUC/Pip1dZTa5AI08gCcg8jDRQF137 +w30aNxUCgYEA58B4mQx0zoF+oCWI63FZyLqrZFYFNRt3KXPOlfT9Vc3k5Xoy2xvs +BCiSTkdJn46KEHFYYgo9cLQNtPLuH8/aaT3E424l1daKbcqXt0WaBPfZERKaafoq +Gtm8UMu7SXP0G/Z0kqEr+fycBhZRb0NxvVJ6z94Eh7k2wgBWL3c12oMCgYEA1Xbz +mjb+84ySPME5HBD/WqhTzkew6JlEi9nmBKaJSUhGmej2yETUQ4dbud8sEc69KFIQ +ZfcYCPldZjijAfihHS+a1hF9+u64eAp2Ky1hlFvnpYY/AuJGGHtAqCWByQWUC53b +BTO2InhusE6X20weNZR4VYTr0w1NoeZ/6B3uRf8CgYEAhtFMFtTNOrjQXf+X6EeX +kJMvU35LJzrkFmQ9QLU1ju3pA6oT3a0fnsevXQRRixWTsb8OSHJmjaLg+mv8JNt4 +1pJNcHTKY9ybyQT7P22pDMzWJP1qgM48IkSaLXJncHKZBo9X/1jtSU8vwMbI9u4I +Q7ewpC4m+oG/nhouCQzTclsCgYEArCNFZFnvFJWKI+YpWKG4WfIdyt3zIk7egOyR +WbS2Rts628iKoYsnpOEVrfjy/9U4orgysxckUbBNii4n/WHzAqct9Gycq+sv5NWC +32S0KMBIOCnezEOOBRX3WOEOHP4bmZaNVU+TE48Mq65lNRnXzptQwp3y0foLXYCU +KqlgSR8CgYATs+hXQ45+TX7RLssDXqjUuP8pjTqL8kYK7eBwzfGj1YOSTwWysxYL +XKJImaV59x7qxrUxafZIgGlTnaU5sxi7u1+uuOQIYRuYKPOWYerywxGVy267brDb +ODXvKkkKxLKTMRqF60lryXjqgfuwf5ExnOVSQFKyKJ9AFJHffokjOw== +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyagreement/Target.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyagreement/Target.key new file mode 100644 index 0000000..3dcc10a --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyagreement/Target.key
@@ -0,0 +1,10 @@ +openssl ecparam -name secp384r1 -genkey +-----BEGIN EC PARAMETERS----- +BgUrgQQAIg== +-----END EC PARAMETERS----- +-----BEGIN EC PRIVATE KEY----- +MIGkAgEBBDAQqmpjvh2fxJ6rL3tdSTt72yFHQXZtn18CTomQDpIGPrP3f15U6A7B +coX1Jxr3iXOgBwYFK4EEACKhZANiAASJAOyR/YUutbUgksQ3WG5zTwGtixFvnfvt +PqOvnKlXi8t8b7ZIwx9cICzdu+lG/nK2lzJUQo2xncFEqedlqUPAWAk6FMmAyQwh +xU0p7Di6x+6nHYTwKTK1URzDe62tYQU= +-----END EC PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyencipherment/Intermediate.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyencipherment/Intermediate.key new file mode 100644 index 0000000..ab27fc2 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyencipherment/Intermediate.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEpQIBAAKCAQEA+jvwe7ldYF8cybCHYEVBHmzRVDQc/0JQP6NvOPggUNWBpDmY +PHLmVJhkRq2wzA2onr7r3QTMqhtUi8QrwB9L7VnQHQs9nsHcQqURlxIrJxqTHkby +n45i/x5fGYo59RO8yjnDItc6ins59L+vNpDh674J8jwAsJaXA2d/yD3bDqjn5gYE +mLMD9cikyFntWT0IJF0nVC3brYf/xdDKzNh2mgtKQ2EpbwblOqUuKr32Z8gDS5Yq +D8gz23EN73FRunz6T5ZxuQqd82dyec9+xomza7MGrxq/fZuGkL/2t0Wa1jtnm4I4 +Ffgrmjb2VmYaHnzAHffBb10XS4aJiW5c5VHaiQIDAQABAoIBAQDtZbYlutsCldl6 +4xXb2HgKBFSnnPUxmdkGNuhK1OPbrGLcyaNLHfq0oQrpHtlPDVo+mISt32LHszwH +iSm0kDx5Ri6xjzt7hRGQzIeemicEZyrRm5+MjgoPXOH+GewYPQxrklc1k5k/Td7S ++pOgod0jyNwoypIg9gz4ttU8xKoxAV8X8uTUoPp2CBWwzUxsSGAVUMAtKcHtjlGh +2jGSDEGQewMNZ8IGhy0MNBJcr+xlcz122c7407UQsHCoXzaf6VmLd6Hlrf19HEJN +HzCEJW6jpU5LaOEYD4wfsEOsxHnQD91dH6N7wvBbUWXRW0okTlrSf/bNp8zo8Qlc +bFewZLoBAoGBAP61aWdooGEgBLrt8EbyuuGDFwQic8lg27V2o3Wtwd2Tx8qQL7hU +ZKG8rFkEdX7QWuuWvdW5h5KziThbwrGqiiBLbg+jAdEhZeBlhimM1wauRBFkDwuN +EEEUcoJgLh378CS94eHRtbC545eJeNAiuv6LBVlrH+CE3oKVGXZKMn3JAoGBAPuA +uFy2CrF20dXpu87RkwKbp4ZJz1IxM1x0Oev7fFlKyp4hShMS1JzzEhcxnO5uSEiG +tEczI/f6Y8Eq61UVb+/KNFe83CZynXEVubxPxYd+Wc6qLpAcM9EeStBOej3M82by +V0u1PE64WLwYAvYDvhp9do/EgeG+iol6gtNww9bBAoGABHM08TqRusCtdHqdvQ+W +lkQNDeRwM29+xy/YcUDk5zMixXY5bzYCQBUkybVbPCj1vbH3hRlltflvB04LG8GI +AkJvHNTTPk0gE4iSjH1KcHJw/ADMhn4jb4+k5IQ7qghxzKKIpMJeM0U8JbSgKLrC +m5ngMQy/FNQdcxiZxkhLk4kCgYEAzkP6cCbozDUL0Wm5mtxsumXYVh1wyBML8ZZs +7qo5iK37UQcyTkRSVUpRGu6Yqz+NTtYTQpWhuT4E1CcUDJrhTANFPHPrBilYEKfl +xZiTAxXQJ9uRBqXqpWY3q3HBdbACK/szNyczh8hPFiyHOSdGoUkmlLBwaSkxS6FL +bIf+RcECgYEAzQ8AMXEYNhT77bBo8uK48DKPaqiMrv8Q56xbyUHPbTcTSELeOMDM +MAyBflCImRzXgGyaY1JGmpNtmjXZjqdDJvhGkDGe/N34bi+Bykcy1q3aP61SDVTH +y8uszm+VDKubqiEnqq4PCcRuTwgY4oVePcMmzdWw0jZArlu07dWADvw= +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyencipherment/Root.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyencipherment/Root.key new file mode 100644 index 0000000..f92d56f --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyencipherment/Root.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEA1il4gmOiYWFTcoEM5hZMVNn/X08wo5+y4WLskOGAO5XEF5Xq +N5anbJBNrAgu5FLXf+PrVEsylYz93vBbjesao4q+SaGK5pxLsmv3DYo/iPkCywdk +8S/DqI4Gpue86SANc6OVBaXmW34Hs0HhDiVBujnsiTocloudTbiUqrMvkashhd6J +7vlOGIhBaZOrh2hPdy+sM/NoZzY884WEf3cdeiyKpvJOX1KbCzWM9kZhaDs6LiaK +0yQUMW/4Q2LSW0QYnUfHV7O12rN9sClIO+UnTFL6HzMmNAtcqGulAuuWqPHJZ7QO +nRJuHERXz791rV5U0hgT6u5FTZQ7WH0gndJAhQIDAQABAoIBAFd/qhTb0EQpF4b4 +4uQ+yAEC8Ctol17CqLsdR7oJ5/JwRiW8wmzjyJO6gYF/9mii0BkYbdWKw6gGatLj +MQTSwZd/4C8FKVL/GI5VPiLyEPNNia6Z3swLz8zV+jHHDI/S4KwWcZRVK8DFxS+g +AutcnXYQpGuMqpF3iVVvzI3Rl+XTXdUPwhDpnJzYA2ip9nQrAMXYLgTnPf40bsng +hk7M0Ln6qIiGR2kaBX0dzyfoX1FzXxOHhkIKBvsih10b8BXnLFk1SFYIGKvGqLJ9 +sAUbfKSO/iJWeODa+E+KovoY6UqyrgMgSpeatTPQwQH+vB31kHxvF32KgRRwYHWo +21TeGQECgYEA9h+q0P5K50Hbr8fNv9vOyRcnIsSy+nYSggAtHHt4q2nkc6ctObSa +ttW2nWwoNDgfA/56EswuuZfkeQj801P/ha+OHgbf3VyD10HKDmykfDzS7Qc65HcU +viiXuX25ZtOpxGlRO6iRu2Jy7jhzBQefuYnx70OJYp9jBEtap1PLx70CgYEA3sF5 +Li/6EgeoXBXAbAhJjKOPzer01UyrrOSqoJ87QbxX+ZkPWYKzxk+fZs28gsJAAJRr +cDXrGFAuFUxDwdJYqxg8cDml48agCtjHrqdyNvQo6Ep7tMe2Da/BsTFA1v92vvQA +BoIHRK0Qd7b3Z7rqS5BbL+340sgH3ZS7g3vN5GkCgYA3F9OWwLVnmrhgWqtVvRBG +tyYNhFZD9lYiP4PZklHqnOOEd/GJr0HKl4AvMNy3A7D9peMRfh8fcD62USq262CR +PkDju8o0tNbWQmXGYM9Y+AyG/k1Sgs1j25ZK8TelKtAfpSuH3S3x8hGj/YLRp2k7 +kQNU+ZsxNlhlx7BdMEa3SQKBgQCPm7XPRBj5RLyS2WcbfuBD7jLIs4Ayf2JybV1f +fiiKwa0J+lZ+A5h48l42vc6ZkjgG56i4R9qP6yk6i9dm/oAxlcdpJpE/Xo9RTt61 +R7iHmzNARryoGNTS0AuUe8dslHfutYnKqEudR+HE/E1WL5fbLW7MYKQ458LCZJ/b +LZbYeQKBgGYukHV6gPA8fVwLs4RnXNzibJ+TwHj2rp3y2d62jZtPbv4OF1a0V3aP +r6UeXEE2tCteOnVgDTQk/I0PYzIzQgKzQfw1Uykyyr+fN13g7bqyH9/9ISaOL1WY +jIatOblgBBvSezrPs1odeTdhiojNloiczF9H4Nf6h9tyAPndrEPC +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyencipherment/Target.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyencipherment/Target.key new file mode 100644 index 0000000..c5f8ee4c --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-ec-ku-keyencipherment/Target.key
@@ -0,0 +1,10 @@ +openssl ecparam -name secp384r1 -genkey +-----BEGIN EC PARAMETERS----- +BgUrgQQAIg== +-----END EC PARAMETERS----- +-----BEGIN EC PRIVATE KEY----- +MIGkAgEBBDB8LdCJYSg12HVLaMeMXCYu4az7LeC7Sm9YMtB9VayngvbOLKHFfrds +4SAZPJl9rCygBwYFK4EEACKhZANiAARHkAbNMvFDZIoPqSeti3K2kL+cVk9v7bxa +JoFuq5n1l8xlhwTFm8ft59LsgOWK2geIVWMlm12SxNssNfMyvkFObI5TVOvPokoM +xPgu/Q3fexMHKMlRmOciKQ7MKT/YjrI= +-----END EC PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-decipheronly/Intermediate.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-decipheronly/Intermediate.key new file mode 100644 index 0000000..ba3a22d --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-decipheronly/Intermediate.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEAzueTcgrqYRmjGqaUJtsEu0lKQhcRmMnVzpAZHB/Cjhk0LGoc +QKvJjd38FSvcMHqqywSZm9lZ3YIxUGDjSZHo3pw7DXHUhC7mCtydMj6VHBabcLbo +n+7u1pcRrBQPHpSVbTTFF9EJfXKgJ7hFpGgh2JkIfVv6ORJwI9xo8gIi0zggDyjt +T3FjQeTSBJrBUkX8v11CcuE9ubS0o14jWkIjxQTe0VyRX7GzSmHFnNVxN8wcBl4u +E0Cb1L5nmm3iUS5mjBdu3UvYhwYigpmFWH3PBu7oQms9BgZ0wN56GDxGy9BkRG0z +oZ+omhV+GXdjdah9359lm5brsuTM60f8OF6NpQIDAQABAoIBACftane8gYRhdSdE +dByXcW9O8mSUnRG2CWuGRUI3Is1XMclMZM1aGVgmOWpAf4pfcawh5B6+L+heInQX +bmUZIi4rSf4LNG6ZukzoS/GRQCceebqjoXqTmkWQ+5kQeeZ11+wuHca90S4DO8LO +fan/amCpD4lZgY0X8MoK07m4Dc5ikiT7qEBK58EV1K+k1IM18BUnuJ5PhTISy6CZ +Zb0OVnQUX/UlJHip8/O/oVLgv989iluPmDQRVCdG5NTs4EJrZVCIsBAj/2zxmP7/ +KiE7SFs6/PryjQtskEsO4BiDZYf46BHBx9kA1ws6thrL3gBj3j6UIVN/eaAxZEqS +US7CsKECgYEA++HZ67vuxWQqibFJe4t4w3/MGkM7bCAJpx+KXrSItTV/0MVSu86s +i/OqKpeITe3WIO6/g3f1jttgoIenNrITIFX1FwrqxU2aBgHHAwAhRNNDdCJMjtZR +3OGUGQqpw3Hko823bPfpaBGA4dA9mPJ/Q4HhUVGT34Gw0NzczYOsbKkCgYEA0kl9 +S3XaQ2zd7ug6IgIZ+aVtspmXYEDoSm9sPnRKvRIapGTMH9FhhoW/auADn8byUz5x +4DGjvxdNn1Jh12tLSybkVHHic0DZw2LXORTd0DVXxORlNBuNaRnJUDQvGpymV1/R +x1XV6NgOLUoECFN5QHhfkk2EjZsRcSgiRqFY2p0CgYEA6X3j1XLRVIoWJK4DwFL6 +D8BYI8BPRVwtlo7WZhRU5iZB5fYFS7O6n8Gw7OqroBHpfX3Uarq5F0SlvioCB+Hr +eP41xLaKC3x0Wz0qjs2ACZ0N2ooxDff+yxMRhmUsGdFqca4xawIljCMtpiaz8yRY +dOvhQtCsk3RVxEf5J0n4fIECgYEAm4mTzS68Y8awWLcX2HOpdsdvXfzQxHb92aCU +dZVaeoJbhmCvwpECC5f9vzU2OQXT0tKLNAJDVWINHdy3VbiclleL5xHdJtY+u4/u +FOBkOE5cPtuYJ3SBoc1a46HVfV+EgXf0F/ZbI8A6rDDkzqu/MXpXZkVD1+Fsgz/m +KkvJBtkCgYAudznkqE0rswca5klGWil8VZ0NkN68wMEYaEguuCYezIATZLzMTFIS +uaucPBXMHgVmWhvZfj8mJcidh3/MMFq/Dc8JQbKhghGr8tQ05/Gn1LrvPU3aiWlW +yWyL9VdUI08nbCDZPMQ9AdXqoxUMMuARdiz87EWhqZYofmpklwpcbg== +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-decipheronly/Root.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-decipheronly/Root.key new file mode 100644 index 0000000..5228a84b --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-decipheronly/Root.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEAk7GxJdfoUhu12+D7LvVYMjY1bgbpphPh87CtuojB1ybIiPd3 +IF7CiFrM3o3zQxl+msU6+nhAJ0B1pABepnE17+bL5aVrqQVn0p29mW4Ynikox4dG +3GeqRN0Ddq73wBm3RTe6a+oxgi9uW5FlzfPQ/OgaxX9ta6KvEy8XWUbi1C8TnFjI +UTXvyx1wtiMoRK6k8FUK3mk6JyRYGwjEteKS72LRhweK9fE+YSrKaycffNMYY+p8 +PR9eAkQpx8gJNrvDvDzRZgQPp+eWi73Mb5b2eBr2jo/X9RxCnEZ5ZVDfMp5Y4ZLp +TOy+SBkS1tEcgNNTh5onuMcwh/Zj1aXS0qVqVwIDAQABAoIBAAZS11jdc68ATLsL +WPXbv1j3BTaeySY5N7VtXSLddB84I+HpZopWRFH+QUNOJJo83zTVOP88YtLLab4J +3gOWWU7aPOSqPn/QIW/dHR8Sna835+0TF6+cKKgmJl3Qg/8Pms814Z95OYFvcnQt +N4Sn6czKS0sld5PiNUjG/WLvLAsVoEStRYj8gB4jMGkb6Wt89MQFx6cModHlXrXz +hSmHUs+PS+ZsVoXcmA5nU1k5ozCNU8bMJ37g0PaMIkgAh6z/lhuOCtZH3Chv7+F3 +R3uodgI5hMCjvlQcRBejszk5K1SgqrJHMACihbIsnhA/Ywo7qGBrs8qgNNdndmfV +jYZCVrECgYEAwq6Er/LHeiRsIEN7ltybLWspXvkhx55R1/ggs1m6lNoqIq6v0IDR +S+NkonlkF/mXCcd5OsXeC1vnB2Ri+E3GJh3MQ3uKX+UQBlv/r1K4U5kCfavSBLq3 +OHf8XHjN37uMSa6Hrtp5RAC21ZwAjA4QErVyrY5J/GuEMlJMi4KjabsCgYEAwjZ9 +86ttz7sxLErY99MmPNv5hd30WJN6rdCX3RQ4Yi0dXMLKOxPzbteakbl46QYEAo6U +z1SO4qx3suOYL5t6iFlFdON6YFx4SXGwhk9q+6uANM+4Q0aQ0CBLT79oH/ZuoaIt +JDPRPC1DMsAQrMPlgE/dvdS67PwfMEzLj5YWWhUCgYEAvVyHD6V0RegbjB5Xnlwi +TEFJ0mk9ZC8oqItfM1R52cOC7I1B0esaqVgbULYGmBNbyFVQI8zGuAHCbDxG0ALG +U9j0EEegRrpFpgniX6R0SkwwUhDIjXUYNkLvIvsWNSL1x82NiJRVE8ImFQxSs+gR +1kDLtOkMKgxiX5gRgDmnvXUCgYAcFxOaldX5MMMI+/5rwd+K9+ocQaEg2pvo3f3J +HS6WjJ3tl8L2TolsI8UYhLIHSjZ0RDkjz8Am6vkZJ7AQWrWbWQYhxPEjVNyVCtuU +YZJAump9uPmWyXMSl0ktTKr7zIHt4O4UiWYfBRDuGzeONXtRVrvkxAsRUdoU+1aJ ++xRajQKBgD0Ah7cyrg9XDslQTFCyRvPPzsfsNM/uTYL6g3We2MggpqZezegYiyOJ +D4x3/427cQOTfUC8BNdwk8AnPqfjJTNoVfilPATS4cZ1rxnH6v6UeqdEME8Y6GwR +IP26zPmiJyq2h+VlU28mOhL2z8Xm5t8NimhjjFk7SGj9/7JCZR8w +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-decipheronly/Target.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-decipheronly/Target.key new file mode 100644 index 0000000..261e18fb --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-decipheronly/Target.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEogIBAAKCAQEArU+7SowD/HLgzEmfLF6z5mTYw0s9BPWggMlmHOcofk6/fUUR +gWYoF+J5bTmcbZ6NdYhhAe0H70MhlAoCWU2bAazqd1e2A67i7uw9Kqcw7mp9WE4W +mX2gEfVTKKBNum9swp4flx8fOVBZzNGHlB+pDFJsIbYAFlyn0/j2SY6zUhAlfZ0e +TNu/NlCUe/rNt0tFkfVbSOlpzOrQMc/ez77BlgoCS5d6s18s4PzKQkADpQZdzrLs +bDzAv2Xmk3GSsXhaKgBWKVijW6UvLxYrsD1ETcvPOK7swiRQbyQXawNPi+vaIn7/ +L0Q72ngd1GOwdXXnD+HL1qoIkrUdiyNhb+REcQIDAQABAoIBAA4wtw8Vg8YJyeow +JP5HCsfUfgMPiAF98xRYaSn4q1IcNIWXQCWuLZ43BuYwj2RSVRbIgdjchYfLoVYz +s5mIRybN96yp29dVXHNfmGqDofgDdBvk2OjcZlzSD2sGJRccxHTy6XdALxhMQe4J +QeaY6Qh/PydLdZpfH8a1XcUMEBap5Ul9P4WEk6kjGJETAWFAht1Qm0ch17n6U0Hg +3tuUk+bX6CLuyd58fpf1AyGqi3q9OGDfzwkd4ZEdTPhKp56ebefOMIjXk+RVcyoJ +Z02AdbatIBJiOtaSEq1v/WEMzaebP3Wt68c5ck7LwZq+Yt2HSTQTVyY/ZK9TbPJL +DmRksXkCgYEA0/qaiTUi4HYIiMf85eUxlXbpBH0EIo1c05nPBddCMnGRYIsWL7FE +V+F3sQNfrDO184bkn4iHO46DiYyv/cTolX2Sq0uYOFILwu5ODnbqldhEyn+7CX/B +yBGQOCgf+J7GG5HtQUserzyTt7kl8A7fLJSNnTZzWSs2ig4PkjV6/bMCgYEA0U10 +14+PNnOgaigJnrhXs9WcY2demyCKx3AEoQkdpTYJbQrilCGTGXwmxq3DwfXojLiU +AXePOdxN/PZc073/F91fPlRZDEtG0SG+mqb3gGoiCHeUIKs0AXik0S+CjfYrOkZF +JiAzN029cz/6BnCZpsLdVM/M0yabSIFe9toVy0sCgYBTcyyzJz/7rXvenRxqRLgo +Zw+EvNKL56rLgpmFayCcSyk4IIkzbU3Cavh7ryBS4miW3lvSkiTqxUfzNndyJ7qI +X08GMFRUl7gZnUcNWrMvGly6e15edvUKlh94fBNaBOdooyILuk7yHZ7pjPHqd3BU +VIcLhQwT5ncqEi7/GB67EQKBgBRtNsYC4LsztagmmCnBW+3VHxokcHs7RdAJAqqk +tRv2lhzqPwqt7ClEkJQ7SSuY0EVLjkZGYNgIxCO3939Cv66YkD8JBFfK0PKAFJYL +TYRe10t0QCSgEMdD+vHfbSJlr/pT+VOrONRg5ehligUu4BACXI92aEsDLYx588ar +qgzZAoGAcL96RHPqDhi1eAiSgfU05Y4sG596YLXeW2wZVj4e6Fxw5M4T1WZJhz0x +5iuJUo9pXc4gEqg3hPWdFZk6g6/DZ/RBclqOxmlUzkgS32e0Z4lx7YUHa5KSrVIw ++856WY3EmTm7/2V9wteVBdH6xPbvZLwmdpZBq+boQkntXmitIiw= +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-digitalsignature/Intermediate.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-digitalsignature/Intermediate.key new file mode 100644 index 0000000..dc490dd4 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-digitalsignature/Intermediate.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEA5Ai3AL3ca1x6/f1UdsCz18CsQ3hP59cpBG7ywZpccIbJ5PtQ +G+guQnH7ItTYfZWdplmh59suzMd128gxTxj6o7i/1wsILYfR8MFPLi9OSDkwz2LQ +Hb9V5d1OY4W2KayR7BMcojbkLfNb7JXhqACGxZZ8dKYYaS7CW5UdgUbUgRAk2cna +nKLQXC1Pg+WhwKLEpX/eeJxXrxJcHWViAb9xSVIGOrv4qlsSgBUKFH1GPnkasE5v +WbwvV/fdTFCCTH35OD3EKWMKqd9wPQLaDFabdp1z3YYRuNdZhuIWs5OMQzNBsWs4 +82dUAOPBBn8fwv30dkJjTLzLKLDPtc2fv//q2wIDAQABAoIBAFvh4xNKbVFZPzmu +ZOVAunZ57S92gAPz31Qo/GnkL9ErjphUZzAHevRNBxs+1kisC4zm2uUYnR/oUuYP +IUc00nE71RjqGg52hrJSwfvjFdDmMnOt5hvGZ+8qIBbb3s2l+lo8TTJTmdemEmke +74EJTUS6YUWDU5y2OZw7Vlsr1h52Rw+HVEMS21KpvOyTVG2V77hG2Z7Idpm1e1hv +JZo8Fr5/cOJ9B8Y604MDX4exEtbzV14Tct3lEc/9vAbTyzcU9/bBlJRGDheThmxC +ehtKL0KZsDzi1RM/88t+4wY4hIHCL93FoLdP0lNgFLlksmlidGwOGlMIhkw0cFH1 +8J9al8kCgYEA91JYk5YoQ/b24Cad4Stil1XhjyJNh6O/S5NNYGzCECcTHZeI44nK +LLw3MSwbE9b9pQBCF+1P5NDGkrPGdyW3oJ2vwdLBipNTBEZzeapmpud/P91a2vZS +p24rufdvLpp80O7n/7pveTmJTKH+pGWW5FCsR+ra+IhfZlBFb7/waR8CgYEA7Akc +ainhqfVPQbXdgGqmZEuq0RI2rfn4f76kcFsvX6ePsrpF5ZVWw0EtcVeDqp/OEoKL +YxyUn2bnpw47IXgb6I776Uob91UwEC27Wz8uGcwdmohiVi23/34Fm+IZng5mcif9 +IDiknzvbT8gs9PODD/emMiwtNoAlFXVorNASOsUCgYEA87uZQ0k1wVT/EwO7j448 +CTw/n9mEYmoDOa2fEancziJT+lO+Oc8vCUsrcTAwNysmqJdKi1354FvHdgfpTL5E +6uq7rN3QkoqBw7LSVlKR+2Ykx4GT6jnaVtqCCTFJxrnEy/rFdAX9mZAUOQtkcgsT +20mNnwpaZZevvJra8zhK6q0CgYB7NLJJVD0/+xV45laNrp3WIo0yfsBeBepJvBiX +sXFEC/H9SDAuC8rzNrViwVywFqR5kvzxKj0GC7AFym7hJJHkzaX++zkn3Kau+0Ad +/BezTZFyVZiHBWxTB9Qjr1zR3RBqrCb7x7VejN8IgSO+ZNHX5twwulCLb05sKhIO +irnJRQKBgHz16Kn27vUZwPqtjmQH0QDuAGEPdhKpDZF9fc0xn2ZgoMe9stUcpv2Q +7Z69xtK6zzyILycIkU1pUbzlB5N+a6Vk8/5K791qFWh824bWmsPqSmn52oAffzz+ +VBJZrtcdCUf7stJowa3k+jPBbdK5KFEfq82Rg1JL+JPnX4ABV8Ew +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-digitalsignature/Root.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-digitalsignature/Root.key new file mode 100644 index 0000000..3088218 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-digitalsignature/Root.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEogIBAAKCAQEAx2aMMYdf2XeIVp1d9Q5iPhqZ/y1aiRanC9q6x1ov+oRI/eH0 +4PCs8Gb5n87JVGEnSPaEbzUxVCM/uceXKH0wbm39oMK5m8Af+/pRWon3M4W8WFjV +PW1UwjrEPNBY7UOqdpVoYtp14v3cEY3ccJLFPhXjaBp5FyCB3hJ1y8iBNvamK4s1 +lXpJmdE+RwR+dNYxS6OiCQyVGBgFLuRvWhyqHSn+nakm2rbk3BGToEyvSswavJkr +OlIffEx6hxxXlYHks96SmOnBInqHNreil2Pyz1eL4Gtb5BGQx1sV/nIsNMl+2x7x +u7ZcbSyrNk0iXvAaO2p60Vj0hFEZtTmRyrkKEwIDAQABAoIBABBjIx5m67+pjTDh +GfmrxvMnqIRKK+icTfoxbaw4gzzpZj5HNaLO5MeVDurNScp/eYULjXK+QmGRzAju +mEOhljtdGrz9g9eDAJ3qwojYUdKQKRxxoIS92Xtk7P+6d7R4HShFuyB0p7+R8WYX +7Ifr5/3kOp4xnsYBy+p+ReQLhGMJ2PG3Pm/h3bDYKM6Na8tu2udDiIlSFyLkWavt +bEbtVV1c4ygmY7q6LYMAjnW6fi0rArYS34MVElfblTUsfjlmH0XwKUNobTfzmjXk +LrJA24e0HKgu0+1ga5eJ0N+Re9xsLVXscAZ9/Q0BfClRlKiqXL3yg6cS0BP6x40D +0kj7tDECgYEA9vA4tvXuq8R4lKP+frVHu6Zka94nj21HXnjFvDe6NGyhl9qCOzXJ +dbcJsCAxYwdWJD0uV2IyG7d4VVCJlckpOEocO4bFQhZ+xiZQyesBaZ9COSMppaR7 +BO7A/06wJxvRj0nO+S4VMBgdn+ldRogMVTMSg6r+2qzawuHAAyivCfUCgYEAzre/ +niFKI72u5ljdZC/7q0Ega9YqTNJKNTHux3X2RCErHyHCcksBAWNK7rQ//v6s0ahQ +OuSM4x5hQr3DvgA7vi/MdF7G1MYrX0UkXuER7ylyLlEZ+JdofZbAqfc6HAMB7cG1 +mAWYo66UvWg7VqWZdbydeWdBteUD6F/pAJK8FucCgYA0/QE+iXFonGU/iB1BNUcq +Rh9AYlBc35cz93h+1fp362OVgUb2y6jqQJesmovecyGR7yr1h1W3StxgekK7yIm2 +0XhTcaz8bHVRscEeQvZvosQEHL6AE9ZuDYmOf2UfT0HdnHn0UGYths88lEf2rZTv +52Curk+3vuXGccjRJLbCzQKBgF54zWK4NgjVhFwTWsKRx0OB1Q5TZyuKo41iD40q +lOyX9/wXUqUnMANxXGpxCBpCS7rZYCk6EEUvuiVlUlLACo2ljJvWQKo3EtVMZQ3T +cH3LhDo0qFja4U8cGVrT+MOagEQnVhVu4U5U1/cj7pJvxg1vsMwt63L0ge+t/W9c +oAcbAoGAfbTJ0PmQcfN1K26tqMJKMw0mV9tuWLsWdaZS+1rXv+uyakoBLD3MoOGO +/wPOmXzt3yY+VZGT6DNVuJ/3iyqiAUllhonsyMXnVX1/BStazMuCHLJltEi3UQho +3WsET7FTskq+ZD3oOZITxn9aCQ9j1u023Zhq2I/0vxL8kXSXRE8= +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-digitalsignature/Target.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-digitalsignature/Target.key new file mode 100644 index 0000000..1c6ea2b9 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-digitalsignature/Target.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEAxX7yXcXqoVyEJYgz18zjYDUJHPqEyIz74RdEG6IgvSbU6Uwl ++ND0DIWpw5eKxrnsFwuhgHXlECwIY21vTdscwdJ36Iljqr33Ao0pEI7zvUs69zUc +rEBqvTGoacArSREKPpvo+cbBa3Sf9Bg61Wa9g93a3db4bFNzem2fF+USVG0+ho0Y +BZGXpjuo0ntFMn4frkRnVDjtbcJS0y+ftj3e92ghWJLUKlJ1aG9CbeeXdrznE+t7 +S3SGkSInKUu9MAv0984WOlJfvVx1r1px/Ni9d8JuE687NRjtxteQQIgFnsoJ+QpU +B7MW6mpQOJpSAjWQy8+D2lOJrdQTIdwoA9+3FwIDAQABAoIBADB79tIwmWZdyQ9R +vbB320YuHvufQOPfQKLEzHKgPbtSAij4CcZovdEpK0EaPfaFhEEwGMjpqH9s3+5Q +2mdZqFio68kJmY88LZzRvMgU4B+TjXlM76oV8l5aB4dWpwm8BjDSo8JWGfvgWLhb +Dm5/V309BNM7SCeH4SyoJst98B8LeEdlzh4edbTO2OHfRak//VAwrlXFRza19FKV +uJwucaugf/M1Wc/XMYocRMFZLrmKvmQgmvvwK/DxfMCnoc//SPd2Y7NZb3S0kq3B +JKXjZBvbUtHG8HXvry1Jb4bKBO+2r8N2qmzXKH9fvEOzckyIaTXLn3xUYhFgFqou +OlCdqHECgYEA5QE5iUf7T5N7Y3Cci/FgHF7iKo6BpPXAkMfNY4Q0IqXs4EZzh/0l +M5cr619Ixv1GB/zIvvGY3xqJuF6vfz88+um0dxPGHLqJ2joHcfmc8LYPayJrz34H +BQSWLd1AKnEkwtVAYdIiNI71nN42VIWt1vi7a9+Sf1OqMRK6fhnQhZ8CgYEA3Mbd +T6MFhYToPuEEK7qvxOcBIxmTXv/nfNImPubnMbI8jcC/ADpV45Wxh39vEBO8FmaZ +BR8cPaZnFIX2RxRquBL6r+jXSZyvtQ3/cUEUuKP8UiXzPS0NJl5acqlk2ezwiBqi +BqW/pIhauQ7xYTQ/tuzju/K8nFgPkJaGKzKZq4kCgYEAg0CSc4ZYGaHT5IiUkPjF +Nz2CrxWCZMOdnN2HcHRDVWB4RYrbiKOkgM8yEvNHyRU84DMX86iRD74sFQnf2DSs +hLsR/fXNZIXdoMAFqGOCecw/Rg4ycHgxGcUpNhxLPIggo7KJ9gb0J9+QElqiFQuR +OVbSRN+dHXEcaIftb3zoMM0CgYBI1CUfZySkJfLDA1Fv53aiGp4KaR5vQTWovF43 +c84iW6yUClg3iAbbO39Dtmr5v7jVHuUthlS3lZP9di+GxRprPH+L1eBm/RQNQt/Y +CWL/gcDzjGdP7/Odi5SErJKDPSEflMGMNdMhQIXE9EP2D9lQy5ZYYruLS5Ve2fjK +eTeuGQKBgQDiyF9sbduDBANqJ3wGUwvngvmFBrf8R4YjrKgZOXwcluYsZ3f0kglx +zLpRKwf5WoYokpXYvZsyf7nPimItxlbMWrjIk2q8aaCn/lQZsh7zc8cJcxxnXlMT +QUG0mdp/ubIZsycc6yaMIV9HhNgUlogfZ8d0iyfqM1+YdhJ5VgKxPQ== +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyagreement/Intermediate.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyagreement/Intermediate.key new file mode 100644 index 0000000..ab93eea --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyagreement/Intermediate.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEAreojDNwxVT0jeqMPXhaeYkTkKL8LsHajXnHnqYVSHq47KyEN +lTVzwsCgeBPT/CdXipjeg+OPoxOlIKepv8j1AhsIGi6lBHoRJKFZET3AO1c1Ys0q +Qc1cFTWsyGb4qfLUHAy03J17mfkHG8nwA2pscdjmy3rsx6e3NgvwSSI3IvR38xqm +V1kLbGo7uNFH30isVO6CHjkU3KacqzO3h087cFWv20DlJqkPvFmPYZJHCjRz3vsl ++vG9pAM1k15Xo6M/E+YJaMVRKSBTuF76is7oCu+eB25V9/bB5xKfIsFyuCqvJTTr +CCg2c472gHAhFoqBK2lHYsXvft2AfAlObVeGTwIDAQABAoIBAG9V25hpAkACQstI +xhbCviRE3BdlrnMKkC1vGBJDIj435fMHVu21aWU88b3NW8Ep4nX8xT6DmLmaYvTT +wOzhFlCBw58XS1bhWkYr8JwD/yM+AhQ9KZc0g4WkdfdZTEloBffq/oHZY34/mRhm +H3vgTopXg/CxwhFSwgwcengnKkr6TQELBWwY1XU4uY95HrDhe/TjrZCCtOl5DOGG +n+CYPelthmTbNdquLyoJObsjuXspxs5h/j7F9j/bnO34c2KZOTzEEw4dv7Othr7Z +sMQBwok8JkbNARGB+wi8x9csIZtt+lpmErB+p64bSwBhvtNN+5MPzgpOp00CX1Nj +Tq2IqoECgYEA5gWfaSyS+2TdGDbqtziolxLMPmQxcwba1pfhjQFzu0RBAjtM8y+o +fIMKD+SgAPbNNiZIQQpWnvievq63ageP8XCDx7sjaGZsMGqv70/WRo16OEVZKRYr +NBN8twjXvI9cd9RdP7MPQniKPRiHXGQUVlibvfyMKtoIzdc/7fJOuEECgYEAwY5X +pPnS3Fpsrbewk1Xtoznf0D5KTb7XYhzXvmRYgsFYiYMeSxNrANKXQy0HVVGXTILe +wyGgV8Cxz9Q/iAoJszh8IqGZ2AIyhXqNtlN0VbyPGFU/7mceXr82fum6Neiqi+JU +ohKS5V5FJWjIiZnigtp+se7Hd0mhLbGNxKqoGo8CgYEA4IhajIrjSxyxKaLpyUI4 +Z4gE8V5SWss1MUZ++GqTcxh0MN58BeLen/Q2DT+J5IcF2DbUTxDtby6XnuDjz09k +djTznjMRpCZes4BhDsSrEKGnzWf8Wbv3HlVrZyvtk3WJuLsG71g1rBgIMQ1RjKFw +rLzAAluU43uEHpJgKEBgEUECgYA8GfUBF0nwfmuMraM4vM/jhU8IHK954K6Emqwr +RIFvaJYTbRF1AnyRbtLlWxAR4Bn4+hItyT0+wmj0PdXUajmE2x9AqalZt6T0aY+j +c9qF3N0aEy6c2oxFo15Knkzh/HMoqIjbIqVWb6VM7nKGt6/sLeh1W824LrbLt3xr ++wnj5QKBgDWwwXIUlP89zmrUwE2Jz860aVsUuQOfv2L/UTrGirMDr705etuZ1Qgi +P92AtS1v2F1pQ49RsrPWdQEkkd5NIruXOGXhppvlMI5/nlH+3XR7bdcyiJ37JByv +c3Vfch9jDgyA6DC6qX3cLsQwjIRod0v+ho0R1jnG+wraS33dkrh6 +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyagreement/Root.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyagreement/Root.key new file mode 100644 index 0000000..ec146d1 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyagreement/Root.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEAst8LC6KKnJxorST5+eaV7+RxHgD77L+xy27WQDBCejiHnlvN +WD63MVyNDYR6vu/mmLpOxa4rL2aysj/nwKiLdWBhKmeK0lVyg+L/3nbWY1h5upHB +gOEGGzWcs+kZ+MchgN2eBBg13t8AgCEJBjxsmt4Q0f1NLydeViREZ4hI5CVSzMcX +P2kfdvyxg0VIXTfagD49f/aN7IMA1i/EQV15rq0UTCSzXh7+7eg5F0pLyusQXW6v +OFixEqVpvb1j3fUhcSw2N3JROzrejx6g4mtF2gKtfgS308hkNMb0CKDlyQIbb0Ii +vtOLe2NuOcSXF8aaup4mm+Flpk1Kk16yThidwQIDAQABAoIBAA9Qb1aorOtprMCe +ONS/fDjUuyaReQA1DVjYfXlzaE2kh1/0hik2/WI5hU4R+JxeV8Tdtp7QIZxmU4hV +Vlc1VvNOtCL4SHdnn21RQwzd6c8JpSpnDkUlfutXdLomi/WzvteUodHB7OLO/vD5 +YxdolvfPaWtBH5mY6ke/xSeEEJGPx9Uu/DiwRX/mUSTAEQVRUrg6sfl+y8TWx1p4 +YMkOwSLlKu/e/m+2VmDhJtEAYlHKjDSFBKGU7AFOvDC0d/syxr4aUb5GpOsfeYFI +AiVbXFGPQkWYNqzn3bH0cYvEXsHRSo6XFBCJwzmskJS5PUp/KWgELergXiWamRDa +WlHmzS0CgYEA3LBWuyA0z5odyaCbmNkv6TdPrISrEWQOieBOU8YR8kLER/eAP/xk +drkJTsq4nvo3/fiN6V+9kMS3PjXINUf6nOdh8EaRX7RR//7BaWIXp2Ij8kcUCL6H +lw/IHWqBEYJh494X1/YBgvn7xmXWJUnHG3iPDvHRixwyY5411QCxq28CgYEAz33P +bFViSwTM+SyQsZjR94Kg0Aa2JRZSmjeL+QQwpa/I9bXfJ9c49DCx2hhpMPtdV+Ca +F+XEKV+NprKWNKtL3oP+M3s9mSmiiHs3a4rXw0p+Js3j2d+elAfVwNhYYT9ei8us +M4iLDVJgHanITTnJ2M+mtMsJGaPB/qly/yTtcc8CgYBKXZGcVOn22vQWsWw9QVKH +v/+1Hq+WmKTdiRxb1m7Nt/n0Vk59QUuJRikAyAcWazLa/hqz/XMfiWpGKFFiwvKM +VNwH33+1REotfWcnX8qguM1sIs95ctq16LeCUhVUFR9vbbOTLm6r+BkDbeWPgyD4 +/NMYMhxuR/4i23lAYY99OQKBgAVwcN2QJ3F8ALuPdYOSU/6/B+QsKN40BZpRVnQC +rhvJzeTTDbSHqdCM7jyfYzKLhFjnZGK3/TpwbNAv4kwjKWv93c4Prv+y3bXiNQO2 +sg1GiKQPxadSe1+6DNpvUXHLLXlQr4TyUWLaA/cDGmMb3rS2TNJ0eBqZ9l3spz0V +BLx1AoGBAK11vNY+xfquOQeFj2Auw/GV8vpMJwznv0qa4OC84cQ0JI6eD2XY1Der +feeQmypv5NwR+p7AoXCCPLztb8bxAz0wJEk2ESh0/ca5NkNAcom1sxUSA9DLsvf4 +tsBCaU1FkecIGZvDEDnWAWSEoUDGDeV6OTPnn4bi/WGqRRrgRFJC +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyagreement/Target.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyagreement/Target.key new file mode 100644 index 0000000..fe05fdc3 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyagreement/Target.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEpQIBAAKCAQEAwnFhd6PT8ihKNCWQHPehGz9p2f/Owkq94WGhJV9HnmEOkRTG +sSZBjCpfbowtp4mJVZVYRGxPh217ZHfeH+tRrUjPFkSTiRvXbFR2cYYoEbm8xTly +nx5seN5DCtKRtGWimeGX+e/qtnGQyf3tFJpV7RcwQ+5FscUDQnRuM9lo8Sj/fHhv +hHM5ox5T4ErvkrJTMIMf7AiBYGtE6n7BycyfcX21R21QBVYoljnXgkY0ralgBePg +TNm6pnCyzbr0egnB8b/QO/JG6TkwwtIJNEjZGyK4usY4KYmaAeqaok5x62I844/F +4TY00LSURC7Fa/2ObR27ppp4omA2xywVZGxHKQIDAQABAoIBAQCw+4p/33qXO9zu +whH+i9b0ei/a4WBMsMNMVhTbc3I40pbzrzl7HRskfZ0Hfkg/6ow6fgktnnh1CE38 +EK751rMtSsxTtG+lqNXYILj+c+Ic4DbWPYf7FTIegg/71dYRoUDzV8eBE8NL9OqZ +MKuOyTvU5fpkmoiNWomw/1EfmJBQkCquS3bOZj1xd0Aum5uZLRzK5rFyF1MB6v9z +r1++cs3KnlTfcOvyqdVEaUWDy0NC7Sd5VkGU5QyOUSpc8vyZ4t+qHJ+C+4A0sHoz +flIXxhY2sdCvGk+nZQueC5YxQz1TBHcL7qQJ2OCQMY/wFD2gXIulvARwKeFsGP6a +bhi2a31BAoGBAP+rhXp8i8U4rZPmvgMDoWJdm8+7+FOcPdGvE5Eymut2Ou12icBQ +/Pqwyn6J6Nj8sNcePwdyUVD/lv8WIN9/jJlPfbyBUi+UMcKPJimPZJrt1S2Jg6LO +5LXbzAKTzj40xe9AQs24od/VlZCXWeC5WRcrSvv8hAz3hXOQH18vMHvFAoGBAMKx +oO6jFRVQ7a28fbj0LBbY0//uqBP6MOltYKKRCac4izUAtNIAk3EXpwbKdXavM3Bh +e3+O/XrseCBRoPEY6OMoaTWH8A4PwqZwRBRr2PBgUiE4qb2aAG0Agv+MVxyzbVhD +GAdiA4HdtM5rHlcgFcNPl4zaAXiRYvtv2YaWK6AVAoGARRDotfX/K//rpBCpM9c/ +OXtgI/X7V1rVuFc7SfYJs6H0uUFUZQd7z50ClrxakoNwoiwhirlvDhp9h9tKdhXW +vXOj29BzizbVWmGhRYje/JtTA0IqtUh+sEH4EporFNLcxYzufvRphjYEeVLpjLOF +RaUEVJ4abgZPnrBISUZOKqECgYEAp+UOZzxzvgIgNSbLNGg8bSdnCtoAT9n9vA76 +urZgoLf+NCL7y+17OJexDgYh7cuAjHVETug8Z3jsztIV/FQC4YHD2Mn1leq5bVZ7 +HzExz3kA2m1G056up1E9pqqbpMCGlwqk+hjn9WH/vdJaQ8ADhH5qrqiBhDu8JCB8 +cbemv1ECgYEAkb6HZzfP29qYiXqda2H4Sz1zdXKJcnKu07+m6doWRiXJzzdq0QBX +gUufTBaAG3tm8Kl2vWbNe2cYzAItosnaj/a46lBSK98MHrQqE3IKifijC1OKqHdt +5HjVxISxLvL/ye0zUT1ZbqeSUVybKezZIhTgrEoZLhb5gjPUDMDvgLk= +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyencipherment/Intermediate.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyencipherment/Intermediate.key new file mode 100644 index 0000000..5192f6731 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyencipherment/Intermediate.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEpQIBAAKCAQEAnJobOpuUubTMWL6TwrCPocEpB1w6Uc6rRo/m0p95oexK1kBZ +nQ/gbuDNiPHmyoMMbFMxr2lmtoCW2GjERR1rlHhIg1bKYTRuiBwEZWfcR7+Vpm+O +kIeVuBmLZknPFYp0ycWaIhHfjxvBscDhBsZOYJkPeM/YdaL4Hve3zWk7B8go3t1t +ZFnE+LSqY7wO0nTnTqJzXcaySac40Zn0kEyfUc03f9VooTWZF+f6YiPeZDbJ0962 +O2mXK8rn9AoPXt9VCgCsbSfmL/kImWnSNCw9n2XfWcrfBqSpBfku+9UVLHcZTAYD +Cd8rB6ra5qT/eesP2n4prUzd9xP5ZUlDb4mY/QIDAQABAoIBAG4iCwg6pmu79QJs +dOo01a6Cc+JTQEiMOfQT+9cghKAV18O52cwVgFc6DhJDXXYKl9AO6iBc1fl/kZZ8 +h5u7xw7RUN3dSdL21s0uNwFB+68R06MLTY3jbK3eeSTkv5h8mQnVyEIxo7G3aY8j +AJ6NFE3nFvR159tDU5Aj0sXJPdSIHFOePGIqPYdZhK3R+hwbFUua2dTd8czvIwP6 +WmgQU/ZacFiOwwAUi3SCDQdBzyBTvlta0fWMrzykcp9TMkuwYEEBddFWyPDO5mzI +HUmT5D+Tob8AvKMc90iNc03WHxDa0u9iWkQmI0DS8ohK9IH+5TdPAwznY0Vl0VwE +pOX0U9kCgYEAzLvhuggMPUUyXdRHbXco04lLfb6wNwEG7cWoK5SoP31b34c2qAy1 +Nz6ogQiAEWK8rFNanjYGFJy+XM9GucaFdoo43ux1p0zZzfD9aEJrGNILGfn3yudC +64adEXDTmfmYFPTUNYgyju/xqCdMZz/LN6h8S9H2Yle0SbpjVKSbsf8CgYEAw9DP +HDxOa6SVjN9P+NN5v5iukNhJqrDU53v6rleNKDGWQ9vgMjH4R+/yHZicRFiFG+sh +eX9ykauceNDFae4jytQ90/8y5Np69Tr0kqMhs5iqqySlUujoLO554Fw4GQO80H7B +r0E4JkHhPNDvGhrNGaWMMK8IrTUaFgNP8vozfQMCgYEApo/8NuMxQe+36Eo5yj71 +ghPizOyEZFt7jZoPFVWeA/ky84oH13RvQgDCCigmOP7BTNmLkceV7tMOtGcVvTJb +hnMxjXuGxJNrZ3a2U0ol402PJpUNGZBIC2G7C2NlY5GCPxpoQx0JNOzVB97g8+cc +p611YiHxd1SvIoR3J3e8C3UCgYEAoL9BxkQbfHJX8pU/6Vxxjb+hTna/wsf3fzBf +0c89qclLOdm+anZrA2MOtw0Y+2JPo2Oaz0q4mqzufp+j8Bn2eANT3jyZYxWX6sjD +Db2tZOnm8SfcL/vS3U/H7U7HHoHa9q2YAm7f0UgzxuEd56goxu0H8M8/qDD3gSqm +7yhGLFECgYEAqtKZ++ZNHbwsMl4iuqjyiYMGqRYD5Ps3Q77RqgjzDi2SsXjwP/6A +GFmDBdLTETHQtJnCMp+z6vJJIK9wpCFmZ1dzDiKjyYZjRu6U3zQYHF85MwFClQXV +ubx/hG94fLIXgsyGZmIsXYrtgBCHeY0sUcVNzrD+pzdzxh/ht07rzvM= +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyencipherment/Root.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyencipherment/Root.key new file mode 100644 index 0000000..a1775a2 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyencipherment/Root.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEogIBAAKCAQEAn+t97NeCsoLDIkKM0QnqvXbRn3/UOlFtD+PaxHK0UCIG/oW8 +Gy/Wwr8zUfBzcMjzrmOtDmzktNOK4SbUOEoPFf70qc7eIbsAAMe8Ty0c/oiUnG0+ +wfCx8B1b3FG/89udK27NR1eCa2T+K/xjAc/hJAVNxZBTkRH8COoIOM2zO4fmZiEi +BBCUcaJx+it9agL93H1nGlRYr2MKWvh+RSP/eAggUkvnZH8pCgG7SlpsJlnapdQ8 +KNImuqaYYtyVKmZcsscaOqmf+S+CncXbvPcmmfl5mbxACFI28M8+lEKMMtnHxETL +xhV6YS70JCvChZxnAtmebEvXXTY4Ge+VdS9IXQIDAQABAoIBAANLUI6+abzPoMFl +6YyszZ8VgX/tnCuPXdXD9c+yJTC5Yrd/fb55n8znL2FyuI4MNajT+M6hQ5zN9sBo +klqOe/0SAWw2DLFZLsjVVHW1EjHUEmuefHp2QNQXZrsFHBUj4vrwD1522QLpU6sI +SenRpGufiFiXfoEwg6aTW5P/+L8zJx/U7Eki2i/n52b0zWOpqgaMiiVzdg+1/px2 +BZIzoMDE3QVN0WkCxGQkR/vtTQ6zrkorpYt42LK48JAiZvwpBrtYjFlthxpbEe/7 +3sJOljOin7r+6k99BP86sNkh8WANLxIT9V6+lTi7/p6iaCSbRj0HVH3BYSgBulvR +mgOTrykCgYEAytl5zKOa0VX3MaiU0qvXbb43Fd5H8Eo2bPJYXM2p2UeUH+lJi4Ue +HYHNM+TyKnP3T5mI84vlw/uUt+lPL8GO7Hs6x63gpCBcnFnYtvmIG0toN+vSvNYZ +/RT/wAisIsxQogQ6ESiLGgy4u/h/sEmiV74D0loIFbXLeRW6IVtfyOcCgYEAydJt +qfC98yFXL9jyAL8bsXPhTXGZNJf8AjSMBh4ftFYSkmStpgzbR6lz12Fe972fanW9 +fqKJvvz1MEt6maQA/NoB81xDYkThQXeKxktVKHfABpZGkAOyonys94/9GD14P0zu +Y6G4pwBqNKNSzEInyi+tr8zifkMf9nloTlSnKBsCgYB9riLd3JwGiWm/1cBnitrN +/uWoYfFWetSfycNftHlAyy2GXAcaL58KDysxtO8pyHH5WppUs1/nfo+VJzPN1fIU +qQExSJT/e6GFqdExBQgESUNIKo+GOm0dtg4DUBw+7zIiP9YuXV1aBXnL1NpgQi8Y +h/1cLjYGJX3tBr4s/q0pDwKBgHsXV4E1bnSyGf35wCfKZzaEqZ5VMY7NP4uMxvYY +O1f+wxb8Rpim8Lq1VAzBu203/tmsc+WfdonAuD47WswIJf4RbO0jkYmG3yfRpBcq +7QZgewLJdsHxL2tAxTG8ZS36l7Nr1V14zik07JGsJxyjIKeFCtbVDDLb98uY4pAb +u1OPAoGAch/9YjF2F7U57w0luEJs8/CJOeOK7Ok2wzWhjs+jUZHr/GnL/QPZhSQL +yGQWcJFpc+m1kLA0RvGjm6v51g7qaFYN42OK+2rYBejsKAEOjYVBs8rgh39k05PP +M6dXrMBw3nQVIfkETPyhPN5e0SPYwk52LIyc0Z3D6e7JodSJnpM= +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyencipherment/Target.key b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyencipherment/Target.key new file mode 100644 index 0000000..ad0ef16 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/keys/serverauth-rsa-ku-keyencipherment/Target.key
@@ -0,0 +1,28 @@ +openssl genrsa 2048 +-----BEGIN RSA PRIVATE KEY----- +MIIEpQIBAAKCAQEAvnCOi7OUkIEnqUOLBPjoq5OmSbej7rh/Pwx0xYgIUWLePtkr +N+iL5GylGpC+mlX8n9jn1ZqXWPHmo0eZ9/hz61jdvg9SuTmnPzUnur6TsNH/UYgE +9Jai4ZoZ4O/gIoYOvst0Tb6qN0PgQEe/O/JNtyX/4Va+WmVRJ+IZpnzNj9aunKLz +sIn6Nq6sUhcsmOTiSnU+hlPuOfu6K3+UFyZEqhdEDzBa0QLAznLPmiE6ZQb54WNF +sKhghDNwY6aW/iymOIDTyGyZ9uoXy6H+3O/uqhXS7Z+HkzlgrvGqu4L+YclPRpgq +aP522LjJw3lePJXEPkau6BZ7TvEWlCfzYtIgXQIDAQABAoIBAQCLn1hTQnFs1NRw +O+4D0j479T+YkoQlNK1OW2KNpGN80ADjkTMnhV5zNdiCtpaX7u0NgOjQacwG0Svo +kElpTYYniXrhqrhaxtNA+0bKmokLvZr0esYvUPXQc7v/d78bcLAE4IO/sEd5x1D1 +r+ScHdUurzSAUKm0+s1acWGe96d6iYZNHllp1GBJbpc8KsmcIWVJx5qCf6vZlrV3 +B6JBxc4nOEztjB70z9dD9ZaPSaDaWTZEPs0xua2t3PaHAFeIGAuxhrlMotchZlGw +y6EfnIKzKcaz8MP67cKXFdtlgiylifWiqHnUnTw5KKZ27dIh4SqPbDFLbSQTzkTl +xby4PERdAoGBAOewQKLVMlmC0GCEnI+sVdc5OtSQKOQoD9+RTW7K6l6Fb4W3zhPh +vn0m2Ec2cwANLW+SYmmTM8B7kExYRLcDm4W71+gyfVPHXLB1GFB4ZFym5xDZs7fj +UR+XfVjRmAopzv+8T4UISnDFah2YtNEUYhOj7lqwx8kJMDCeAaFUoM3LAoGBANJs +QWA/hhjWRW4P8xweCJdyGxmvh6m1VIaDeM197qfT95pAQVe6gBHJY3txeTbwUrbx +eiWhwi5e8hvYU2gm8JqZaC02d/06x/phyeNbJ3ELj5aGFxBEpxzXaSO1UrbB8hl4 +KxhLbFqQJViXMxbBwA/BhxaMNd2e2ZxTEJXeeIV3AoGBAI56FuWL0fC1v0r7ggPg +aNF3wjPhiyPzdv93LXUKl+IUkKZciAA1/Jyd/LaeR04qzFwmWxqtiU+/LNemGGur +bkJpZ7bFBck1ekyRVah2wNExWjtEhX557fNNh6nNCoCFgWRG+2fF13FOFZmpxNgm +fsGxN+zRdaqtWdMr97isgE7NAoGBAMCGsi5ZEN2Kt03jpAEW7a97hJY0x0Ccm3DT +u+TwkzrVM1fb8K1PA7zCcZZRlaGRs2yVdrgVz7BTyNt3S6Eg98XMFMhBbPmyHaTW +cjzmeyjwdfk4SMPmvKwj35v/XGXBAD0TeQKqh8I43yK2fNUWgx8nZ+1WbjaPD/X6 +/lLRkZ4zAoGAGVnowegfsOZVtV6VP3a9mlKeQv7JkWcjBhiGBjt8k8NWt/ejx3ru +u/LfNWmVcLY552dLjkziKh/ULGq6hSti8L3f1fDrgINkO0j0TcFiVW3TIRBSsnDr +LIHMYSfeVRXrbhxQFJWwoCCSg2S8Kkn6WNBtECQb3X6vnIwct9/mqeM= +-----END RSA PRIVATE KEY-----
diff --git a/net/data/verify_certificate_chain_unittest/rebase-errors.py b/net/data/verify_certificate_chain_unittest/rebase-errors.py index 8640e18..a99d7db3 100755 --- a/net/data/verify_certificate_chain_unittest/rebase-errors.py +++ b/net/data/verify_certificate_chain_unittest/rebase-errors.py
@@ -107,12 +107,12 @@ contents = read_file_to_string(path) # This assumes that the errors variable uses triple quotes. - prog = re.compile(r'^errors = """(.*?)"""', re.MULTILINE | re.DOTALL) + prog = re.compile(r'^errors = (""".*?"""|None)', re.MULTILINE | re.DOTALL) result = prog.search(contents) # Replace the stuff in between the triple quotes with the actual errors. contents = replace_string(contents, result.start(1), result.end(1), - actual_errors) + '"""' + actual_errors + '"""') # Update the file. write_string_to_file(contents, path)
diff --git a/net/data/verify_certificate_chain_unittest/serverauth-ec-ku-decipheronly.pem b/net/data/verify_certificate_chain_unittest/serverauth-ec-ku-decipheronly.pem new file mode 100644 index 0000000..1ff051c --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/serverauth-ec-ku-decipheronly.pem
@@ -0,0 +1,272 @@ +[Created by: generate-serverauth-ec-ku-decipheronly.py] + +Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only decipherOnly. + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Intermediate + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Target + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (384 bit) + pub: + 04:d1:cf:61:33:ef:4c:6f:37:a7:7c:f9:f4:4b:27: + ff:db:db:e5:62:a9:49:ad:91:ca:b5:c6:a2:28:b1: + b4:c9:07:7e:00:d0:6f:ac:52:7b:a3:71:98:21:a4: + 2a:25:90:8e:ea:25:53:0e:b4:16:cd:6b:b1:6d:a3: + 82:da:97:63:6e:1f:b1:ad:51:43:19:88:65:98:ce: + 0c:d2:72:32:6f:9f:03:61:90:a1:14:1d:be:22:36: + ef:04:ad:e2:c6:2c:be + ASN1 OID: secp384r1 + X509v3 extensions: + X509v3 Subject Key Identifier: + 7F:D2:AB:42:C8:F5:F8:00:89:AC:48:F5:4E:C5:9F:A9:2F:31:CC:C2 + X509v3 Authority Key Identifier: + keyid:37:12:75:29:6D:FF:89:6B:05:DB:4C:84:34:8A:E4:7E:3E:29:61:1F + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Intermediate.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Intermediate.crl + + X509v3 Key Usage: critical + Decipher Only + X509v3 Extended Key Usage: + TLS Web Server Authentication + Signature Algorithm: sha256WithRSAEncryption + 64:5d:c0:4d:04:16:26:f9:17:cb:a9:e8:e3:5f:a8:87:fd:9a: + 12:b5:f7:25:d8:95:d9:54:f9:a1:6c:77:ce:dd:e0:cb:5b:8f: + ea:b2:45:b6:57:61:5f:8d:f7:d7:54:1c:0c:09:36:14:d7:c9: + 22:ca:57:d1:cd:6a:5c:aa:94:1c:39:4a:20:78:9c:16:4c:14: + ab:51:ac:04:67:8d:25:dd:96:06:d1:8b:37:0c:2f:89:d7:b9: + 32:cc:60:f3:63:e1:4d:d4:dd:1f:fb:41:e1:24:98:0d:85:ec: + db:47:27:b5:77:65:6f:1c:44:48:a4:d2:bf:b8:35:17:ad:62: + b4:92:65:83:f0:05:ac:5e:98:d6:e8:15:74:ce:db:f1:0e:21: + 94:cf:89:d5:52:47:02:f3:3b:b7:b8:b8:33:6f:03:fb:9b:ac: + d3:a5:61:33:e5:75:96:66:df:7c:1d:10:b2:ef:74:b6:97:2b: + 8c:68:d0:03:ac:82:43:fc:2f:35:77:e7:22:be:fa:a0:2a:92: + 80:f9:50:83:3b:fe:ce:41:50:92:80:2b:a3:0d:80:e1:6f:32: + fa:0a:79:d4:5b:e9:91:8c:86:b2:2a:66:37:8e:84:72:93:06: + 5c:25:c5:bd:0d:9e:e6:a8:ac:a7:79:6f:dc:6e:a5:8a:d5:e5: + 49:e4:06:d5 +-----BEGIN CERTIFICATE----- +MIIC1jCCAb6gAwIBAgIBATANBgkqhkiG9w0BAQsFADAXMRUwEwYDVQQDDAxJbnRl +cm1lZGlhdGUwHhcNMTUwMTAxMTIwMDAwWhcNMTYwMTAxMTIwMDAwWjARMQ8wDQYD +VQQDDAZUYXJnZXQwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAATRz2Ez70xvN6d8+fRL +J//b2+ViqUmtkcq1xqIosbTJB34A0G+sUnujcZghpColkI7qJVMOtBbNa7Fto4La +l2NuH7GtUUMZiGWYzgzScjJvnwNhkKEUHb4iNu8EreLGLL6jgeAwgd0wHQYDVR0O +BBYEFH/Sq0LI9fgAiaxI9U7Fn6kvMczCMB8GA1UdIwQYMBaAFDcSdSlt/4lrBdtM +hDSK5H4+KWEfMD8GCCsGAQUFBwEBBDMwMTAvBggrBgEFBQcwAoYjaHR0cDovL3Vy +bC1mb3ItYWlhL0ludGVybWVkaWF0ZS5jZXIwNAYDVR0fBC0wKzApoCegJYYjaHR0 +cDovL3VybC1mb3ItY3JsL0ludGVybWVkaWF0ZS5jcmwwDwYDVR0PAQH/BAUDAwcA +gDATBgNVHSUEDDAKBggrBgEFBQcDATANBgkqhkiG9w0BAQsFAAOCAQEAZF3ATQQW +JvkXy6no41+oh/2aErX3JdiV2VT5oWx3zt3gy1uP6rJFtldhX43311QcDAk2FNfJ +IspX0c1qXKqUHDlKIHicFkwUq1GsBGeNJd2WBtGLNwwvide5Msxg82PhTdTdH/tB +4SSYDYXs20cntXdlbxxESKTSv7g1F61itJJlg/AFrF6Y1ugVdM7b8Q4hlM+J1VJH +AvM7t7i4M28D+5us06VhM+V1lmbffB0Qsu90tpcrjGjQA6yCQ/wvNXfnIr76oCqS +gPlQgzv+zkFQkoArow2A4W8y+gp51FvpkYyGsipmN46EcpMGXCXFvQ2e5qisp3lv +3G6litXlSeQG1Q== +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 2 (0x2) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Intermediate + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:b8:8b:90:32:c2:17:b6:29:eb:5a:a1:95:9d:f7: + 02:ba:e3:c6:f2:1a:24:97:1d:66:04:4e:9c:82:80: + fd:a6:e9:76:95:43:4d:57:e5:0d:a8:48:88:bc:2c: + 38:08:60:68:3f:c3:08:f5:0c:03:e5:26:10:1c:3d: + a7:f1:a6:9a:48:ff:a1:4a:fb:8e:bc:4f:48:41:7c: + 32:a1:30:b9:3b:7b:c7:3b:79:d4:f6:52:f7:47:73: + 7c:d1:c4:3f:cc:33:36:82:d7:25:b8:14:46:90:41: + 2e:d1:43:b4:99:c5:24:ec:84:16:82:c2:39:e3:8b: + f6:e1:19:82:06:eb:71:8f:ed:cf:50:c7:ba:c2:d0: + 88:eb:a9:e6:6e:2a:4f:0b:e7:03:13:72:4e:29:ba: + ca:4c:92:10:a0:39:e4:85:6a:1a:74:17:39:39:2e: + c8:97:54:01:68:4f:0b:5c:80:3d:8f:b1:ae:a5:58: + 43:ab:5c:69:67:a2:c4:27:24:6d:71:60:dd:7b:14: + e3:56:61:96:09:e6:7b:3b:f0:e9:3b:07:b4:43:32: + 9f:3e:8b:52:fe:50:1e:3d:b7:e5:cd:f8:97:82:48: + f6:42:7b:69:3d:bb:90:1b:aa:f2:82:f6:d5:fd:30: + 48:c3:c6:96:e6:62:91:7f:73:5b:ab:34:0c:ef:be: + 65:bf + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 37:12:75:29:6D:FF:89:6B:05:DB:4C:84:34:8A:E4:7E:3E:29:61:1F + X509v3 Authority Key Identifier: + keyid:B9:85:5C:53:ED:42:DC:3E:51:38:73:99:A1:EF:87:D4:E2:28:0E:9D + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 95:d5:38:db:53:98:3b:48:9f:4b:18:fa:59:98:e2:9f:ee:13: + 9f:90:c9:84:46:28:1d:a3:bc:9c:56:46:73:25:c1:16:43:00: + 44:77:27:e8:73:13:db:6e:9f:b7:12:aa:08:0b:8a:6f:58:89: + 56:a3:19:6a:c6:8e:fc:2e:90:fd:93:7f:a4:75:73:fb:fd:23: + 31:e3:cb:51:50:57:3d:04:b8:3f:ac:b3:97:c2:4d:a9:95:38: + a9:04:27:6a:c9:a5:b0:cc:bf:d8:d3:fd:dd:a6:42:d3:ff:ee: + cb:b5:15:10:a8:b3:e1:12:6f:80:3a:a4:c1:f6:b7:bf:6a:1d: + d2:cc:23:d6:fe:54:06:26:6b:af:ed:d8:75:ea:62:12:68:be: + 6c:75:9a:cc:59:86:a1:f8:88:28:1d:77:18:01:c7:ed:f4:30: + 65:b8:aa:96:77:d9:2e:92:11:f2:d9:7b:e5:4f:0d:dc:80:28: + 0b:69:0a:c0:86:df:c0:41:cd:50:d0:15:ba:3c:a3:26:b0:0f: + ce:53:06:bd:97:f8:9a:ed:29:f5:5a:8b:23:a6:e3:26:ac:f5: + 5c:31:0b:20:1f:03:5d:06:c7:2f:6a:51:f4:44:5c:02:98:b2: + b4:3e:ea:f3:fc:ef:b4:d0:ac:13:d2:f9:8e:fd:e8:65:a8:69: + 9b:1d:ac:10 +-----BEGIN CERTIFICATE----- +MIIDbTCCAlWgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowFzEVMBMGA1UEAwwMSW50 +ZXJtZWRpYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuIuQMsIX +tinrWqGVnfcCuuPG8hoklx1mBE6cgoD9pul2lUNNV+UNqEiIvCw4CGBoP8MI9QwD +5SYQHD2n8aaaSP+hSvuOvE9IQXwyoTC5O3vHO3nU9lL3R3N80cQ/zDM2gtcluBRG +kEEu0UO0mcUk7IQWgsI544v24RmCButxj+3PUMe6wtCI66nmbipPC+cDE3JOKbrK +TJIQoDnkhWoadBc5OS7Il1QBaE8LXIA9j7GupVhDq1xpZ6LEJyRtcWDdexTjVmGW +CeZ7O/DpOwe0QzKfPotS/lAePbflzfiXgkj2QntpPbuQG6rygvbV/TBIw8aW5mKR +f3NbqzQM775lvwIDAQABo4HLMIHIMB0GA1UdDgQWBBQ3EnUpbf+JawXbTIQ0iuR+ +PilhHzAfBgNVHSMEGDAWgBS5hVxT7ULcPlE4c5mh74fU4igOnTA3BggrBgEFBQcB +AQQrMCkwJwYIKwYBBQUHMAKGG2h0dHA6Ly91cmwtZm9yLWFpYS9Sb290LmNlcjAs +BgNVHR8EJTAjMCGgH6AdhhtodHRwOi8vdXJsLWZvci1jcmwvUm9vdC5jcmwwDgYD +VR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB +AJXVONtTmDtIn0sY+lmY4p/uE5+QyYRGKB2jvJxWRnMlwRZDAER3J+hzE9tun7cS +qggLim9YiVajGWrGjvwukP2Tf6R1c/v9IzHjy1FQVz0EuD+ss5fCTamVOKkEJ2rJ +pbDMv9jT/d2mQtP/7su1FRCos+ESb4A6pMH2t79qHdLMI9b+VAYma6/t2HXqYhJo +vmx1msxZhqH4iCgddxgBx+30MGW4qpZ32S6SEfLZe+VPDdyAKAtpCsCG38BBzVDQ +Fbo8oyawD85TBr2X+JrtKfVaiyOm4yas9VwxCyAfA10Gxy9qUfREXAKYsrQ+6vP8 +77TQrBPS+Y796GWoaZsdrBA= +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Root + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:b3:fe:a1:cc:0e:bd:61:9d:d2:4d:30:ca:ea:9a: + b8:96:8f:c1:31:da:d0:a5:26:32:30:42:a2:e0:a4: + ad:2c:71:c3:b5:bf:18:81:b8:12:a1:a9:fd:a7:97: + b1:16:ed:78:4a:38:45:2a:2e:59:0d:40:0a:8d:b4: + b7:31:49:c6:7c:1e:c7:7f:42:88:47:65:20:c0:dc: + fe:91:87:1f:01:da:70:be:5c:8e:31:cf:92:69:bf: + 95:64:54:d9:76:3e:df:9d:eb:c3:7c:81:03:f3:97: + aa:46:ba:82:48:03:57:99:86:9e:f4:83:0a:e6:01: + 40:cc:c0:b0:42:66:63:e6:51:26:ae:b2:0f:d5:0f: + 32:08:02:17:29:7e:75:8a:d1:df:42:da:67:a9:3b: + 47:71:90:7c:9f:52:6d:d5:4a:0f:f9:20:56:25:e9: + a9:2b:aa:01:73:af:28:1f:00:45:30:13:69:94:21: + e7:e6:f0:76:39:7b:c8:e7:07:c3:39:f3:f6:da:42: + 3f:57:6b:47:fe:fa:30:a8:08:d3:de:4d:40:38:aa: + e4:97:bd:82:f5:e9:e8:2e:92:14:69:9f:d1:22:41: + 7e:05:40:74:07:ab:79:63:31:5b:e3:95:c3:4e:23: + a8:a6:7f:f8:b7:8a:5d:d4:f8:e1:8b:75:5b:44:06: + 08:c1 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + B9:85:5C:53:ED:42:DC:3E:51:38:73:99:A1:EF:87:D4:E2:28:0E:9D + X509v3 Authority Key Identifier: + keyid:B9:85:5C:53:ED:42:DC:3E:51:38:73:99:A1:EF:87:D4:E2:28:0E:9D + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 2f:23:ee:6a:dd:bb:59:2d:57:cf:94:f3:1b:5c:fb:d9:6e:dd: + 74:12:96:6e:7f:31:8c:00:ee:60:03:80:89:d8:78:4a:71:60: + 31:df:74:f5:e6:26:67:6e:91:5e:e8:a2:ef:b6:da:e4:03:bd: + 30:e1:4b:4b:bb:9e:5f:d3:4b:31:af:64:bd:76:48:de:68:4b: + 80:59:85:93:12:ac:65:42:01:ea:33:28:6c:af:c5:af:cc:0a: + 41:89:12:98:f1:1d:54:b6:dd:f1:ff:45:d4:3f:64:84:15:46: + d7:35:bb:09:19:66:f0:8b:db:11:8d:7a:fb:11:ea:7f:e2:57: + 96:47:da:23:81:c1:b6:71:d2:33:98:88:35:d5:90:e1:93:87: + 32:36:c7:a7:f1:c0:55:a5:94:65:62:14:e4:18:e7:64:2d:6d: + 40:6e:ba:5b:66:39:a4:d8:1f:1c:a8:9f:80:5a:d7:35:5a:47: + 44:32:b6:a2:18:26:08:08:2e:8f:9a:6b:f6:f5:5c:95:46:27: + 8e:d5:fb:c0:d5:52:3d:e5:a4:23:0e:f4:30:ba:ce:79:b8:63: + fd:e2:aa:56:05:b4:15:f7:4f:41:b3:88:31:29:97:51:71:52: + 04:95:00:64:7c:7a:c7:35:b9:22:d0:32:9a:bd:2f:c6:ea:7d: + 3a:2d:29:39 +-----BEGIN TRUST_ANCHOR_UNCONSTRAINED----- +MIIDZTCCAk2gAwIBAgIBATANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowDzENMAsGA1UEAwwEUm9v +dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALP+ocwOvWGd0k0wyuqa +uJaPwTHa0KUmMjBCouCkrSxxw7W/GIG4EqGp/aeXsRbteEo4RSouWQ1ACo20tzFJ +xnwex39CiEdlIMDc/pGHHwHacL5cjjHPkmm/lWRU2XY+353rw3yBA/OXqka6gkgD +V5mGnvSDCuYBQMzAsEJmY+ZRJq6yD9UPMggCFyl+dYrR30LaZ6k7R3GQfJ9SbdVK +D/kgViXpqSuqAXOvKB8ARTATaZQh5+bwdjl7yOcHwznz9tpCP1drR/76MKgI095N +QDiq5Je9gvXp6C6SFGmf0SJBfgVAdAereWMxW+OVw04jqKZ/+LeKXdT44Yt1W0QG +CMECAwEAAaOByzCByDAdBgNVHQ4EFgQUuYVcU+1C3D5ROHOZoe+H1OIoDp0wHwYD +VR0jBBgwFoAUuYVcU+1C3D5ROHOZoe+H1OIoDp0wNwYIKwYBBQUHAQEEKzApMCcG +CCsGAQUFBzAChhtodHRwOi8vdXJsLWZvci1haWEvUm9vdC5jZXIwLAYDVR0fBCUw +IzAhoB+gHYYbaHR0cDovL3VybC1mb3ItY3JsL1Jvb3QuY3JsMA4GA1UdDwEB/wQE +AwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQAvI+5q3btZ +LVfPlPMbXPvZbt10EpZufzGMAO5gA4CJ2HhKcWAx33T15iZnbpFe6KLvttrkA70w +4UtLu55f00sxr2S9dkjeaEuAWYWTEqxlQgHqMyhsr8WvzApBiRKY8R1Utt3x/0XU +P2SEFUbXNbsJGWbwi9sRjXr7Eep/4leWR9ojgcG2cdIzmIg11ZDhk4cyNsen8cBV +pZRlYhTkGOdkLW1AbrpbZjmk2B8cqJ+AWtc1WkdEMraiGCYICC6Pmmv29VyVRieO +1fvA1VI95aQjDvQwus55uGP94qpWBbQV909Bs4gxKZdRcVIElQBkfHrHNbki0DKa +vS/G6n06LSk5 +-----END TRUST_ANCHOR_UNCONSTRAINED----- + +150302120000Z +-----BEGIN TIME----- +MTUwMzAyMTIwMDAwWg== +-----END TIME----- + +SUCCESS +-----BEGIN VERIFY_RESULT----- +U1VDQ0VTUw== +-----END VERIFY_RESULT----- + +serverAuth +-----BEGIN KEY_PURPOSE----- +c2VydmVyQXV0aA== +-----END KEY_PURPOSE-----
diff --git a/net/data/verify_certificate_chain_unittest/serverauth-ec-ku-digitalsignature.pem b/net/data/verify_certificate_chain_unittest/serverauth-ec-ku-digitalsignature.pem new file mode 100644 index 0000000..67a7e672 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/serverauth-ec-ku-digitalsignature.pem
@@ -0,0 +1,272 @@ +[Created by: generate-serverauth-ec-ku-digitalsignature.py] + +Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only digitalSignature. + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Intermediate + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Target + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (384 bit) + pub: + 04:5d:dd:e7:4e:0b:94:b3:49:ca:2e:ef:b5:84:f5: + 62:47:73:82:97:14:09:56:42:b5:29:87:38:8b:b1: + 99:f4:a7:07:d4:d9:e0:03:74:40:9f:d2:e4:34:ba: + 89:75:27:3b:a9:a0:1a:8a:25:19:f2:af:b6:9e:3e: + 8c:0e:ee:f1:11:00:b4:a8:dc:49:85:bf:2b:55:6f: + ec:83:24:fe:8d:81:2b:e7:da:fa:88:05:99:15:ee: + 1c:2d:73:df:09:79:70 + ASN1 OID: secp384r1 + X509v3 extensions: + X509v3 Subject Key Identifier: + 20:1C:41:C2:17:E4:79:4A:12:01:6E:24:85:49:38:39:DE:64:93:FF + X509v3 Authority Key Identifier: + keyid:42:FF:88:7A:D0:CD:5A:B3:39:5A:71:B9:EE:C4:8B:31:37:B4:79:39 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Intermediate.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Intermediate.crl + + X509v3 Key Usage: critical + Digital Signature + X509v3 Extended Key Usage: + TLS Web Server Authentication + Signature Algorithm: sha256WithRSAEncryption + 7e:83:56:3b:27:c1:a1:b4:fb:1e:11:f6:81:c5:44:a4:3e:66: + 3d:00:b9:fa:c7:5d:28:72:0a:ab:96:31:33:ef:5a:49:59:d5: + e1:db:a0:04:e6:30:79:f2:94:83:2f:36:d8:3f:ff:c0:5b:09: + 14:5b:85:3a:ef:0b:d4:7e:cb:9c:d7:55:4f:7a:3c:7e:53:b7: + 42:62:60:e6:8e:35:24:10:2d:c8:9a:33:0d:ad:2f:f7:7e:06: + 1b:bf:54:7e:09:7d:a2:0e:5a:7e:8a:20:f7:0f:f7:0d:4c:e5: + fa:98:ce:db:b2:88:ac:15:f5:00:d9:b6:c0:21:ff:98:71:af: + ac:88:d4:8a:c1:18:2a:2c:b5:6d:05:ff:be:b7:45:b3:fd:90: + 37:fa:7a:ba:58:ca:c4:38:db:d3:bb:74:a6:f8:1f:c4:84:cb: + 97:cf:83:5f:6a:18:9e:42:41:ad:e6:69:66:f8:f4:9d:0d:84: + b8:58:01:98:06:1b:2d:c0:2a:3e:e5:73:4a:ea:8c:99:81:5e: + 51:38:74:18:f5:2a:a4:c8:d3:7e:37:a3:b8:40:39:a7:77:0d: + 51:ce:b2:68:e7:4b:c3:4f:74:e8:bf:c6:bc:75:24:73:d2:4c: + 8d:fd:30:24:12:62:06:5d:28:ad:1c:0f:0c:fe:7c:4f:b2:f9: + b8:26:03:a9 +-----BEGIN CERTIFICATE----- +MIIC1TCCAb2gAwIBAgIBATANBgkqhkiG9w0BAQsFADAXMRUwEwYDVQQDDAxJbnRl +cm1lZGlhdGUwHhcNMTUwMTAxMTIwMDAwWhcNMTYwMTAxMTIwMDAwWjARMQ8wDQYD +VQQDDAZUYXJnZXQwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAARd3edOC5SzScou77WE +9WJHc4KXFAlWQrUphziLsZn0pwfU2eADdECf0uQ0uol1JzupoBqKJRnyr7aePowO +7vERALSo3EmFvytVb+yDJP6NgSvn2vqIBZkV7hwtc98JeXCjgd8wgdwwHQYDVR0O +BBYEFCAcQcIX5HlKEgFuJIVJODneZJP/MB8GA1UdIwQYMBaAFEL/iHrQzVqzOVpx +ue7EizE3tHk5MD8GCCsGAQUFBwEBBDMwMTAvBggrBgEFBQcwAoYjaHR0cDovL3Vy +bC1mb3ItYWlhL0ludGVybWVkaWF0ZS5jZXIwNAYDVR0fBC0wKzApoCegJYYjaHR0 +cDovL3VybC1mb3ItY3JsL0ludGVybWVkaWF0ZS5jcmwwDgYDVR0PAQH/BAQDAgeA +MBMGA1UdJQQMMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4IBAQB+g1Y7J8Gh +tPseEfaBxUSkPmY9ALn6x10ocgqrljEz71pJWdXh26AE5jB58pSDLzbYP//AWwkU +W4U67wvUfsuc11VPejx+U7dCYmDmjjUkEC3ImjMNrS/3fgYbv1R+CX2iDlp+iiD3 +D/cNTOX6mM7bsoisFfUA2bbAIf+Yca+siNSKwRgqLLVtBf++t0Wz/ZA3+nq6WMrE +ONvTu3Sm+B/EhMuXz4NfahieQkGt5mlm+PSdDYS4WAGYBhstwCo+5XNK6oyZgV5R +OHQY9SqkyNN+N6O4QDmndw1RzrJo50vDT3Tov8a8dSRz0kyN/TAkEmIGXSitHA8M +/nxPsvm4JgOp +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 2 (0x2) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Intermediate + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:bf:63:9e:47:6f:ce:09:cd:c9:87:ea:4c:5b:5e: + a4:34:45:e2:07:d3:88:5f:94:1f:d8:8c:9f:ca:bf: + c4:65:10:08:4c:23:3d:23:62:ca:f1:87:23:5f:bb: + 62:67:1c:cc:42:0c:d4:63:0d:63:11:bc:63:72:9d: + 35:36:89:42:11:d6:b4:11:99:d8:80:3e:ad:07:59: + cd:4d:85:f4:02:e4:52:79:17:f0:ff:57:ea:24:ce: + bd:6a:0d:53:a3:38:57:87:eb:3f:5f:23:d1:b3:f8: + 28:85:58:97:a9:e9:af:75:f5:4c:96:9a:e2:fd:ef: + 46:81:cc:e0:cd:5d:17:6f:09:99:ea:33:9e:5f:75: + ac:b5:da:0a:2f:3f:74:ab:d8:0f:5a:da:18:c7:ef: + 8a:2d:46:16:70:ee:fe:7e:62:1e:bc:4c:9b:0a:70: + bb:3d:8b:f4:6e:74:38:33:d1:49:c1:b9:82:8b:51: + f6:fa:f1:b3:b6:5a:f5:8e:a7:33:24:6e:64:42:77: + f1:c1:4c:4c:20:f8:a2:6d:95:6e:db:11:db:36:09: + 34:c6:21:ee:2c:88:7f:75:cc:bd:12:40:65:ab:b9: + a6:52:09:d1:52:79:b5:70:5a:7c:e3:54:85:e0:19: + 15:c7:03:74:ef:48:da:f3:0a:cb:47:67:fd:58:b2: + 75:bd + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 42:FF:88:7A:D0:CD:5A:B3:39:5A:71:B9:EE:C4:8B:31:37:B4:79:39 + X509v3 Authority Key Identifier: + keyid:FA:5A:BB:C1:33:4C:62:35:DA:F1:B3:11:DC:51:75:19:3D:00:57:54 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 10:8d:6e:67:0b:07:d8:67:c4:82:e6:0e:e3:6c:e2:c5:01:9b: + a0:4f:f3:57:fd:61:bc:5a:55:54:a5:ee:b0:63:84:84:da:b7: + 23:cd:81:1a:16:54:c4:ab:ea:87:18:9e:66:c8:0c:61:07:21: + 01:8a:6c:75:5d:01:70:ea:e7:da:44:38:71:5c:d5:51:57:86: + 44:6d:fd:c9:fc:05:f6:d7:9b:5a:a9:fb:e0:27:8d:a8:74:dc: + cb:cf:aa:35:9f:69:cd:2c:9e:91:65:ec:aa:26:c0:0b:c9:5e: + 92:a5:8d:47:8f:cf:ab:e2:d0:56:77:be:d6:f0:69:26:bf:a9: + 4e:e1:9f:c1:b2:81:50:9e:6c:7d:d2:82:91:ad:ae:92:d4:fb: + f0:b6:b7:53:34:5b:c1:41:2a:a2:45:fb:c1:e1:ad:1e:ce:2b: + 19:48:02:dd:0c:d2:49:1e:02:e1:f8:92:0e:bb:44:8c:f2:5e: + cd:3c:96:56:b9:da:a5:df:2f:e4:d7:2d:a8:8e:a0:46:83:a1: + 3f:12:55:c4:73:8b:f3:85:4f:05:36:a3:5c:8b:aa:bd:a3:0f: + 7f:8d:9c:36:01:53:12:32:75:c3:10:5d:a0:e1:4e:51:7c:8d: + 62:58:fd:c6:51:23:98:9d:38:b6:97:de:94:73:e9:46:9f:dc: + 1c:92:96:b2 +-----BEGIN CERTIFICATE----- +MIIDbTCCAlWgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowFzEVMBMGA1UEAwwMSW50 +ZXJtZWRpYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv2OeR2/O +Cc3Jh+pMW16kNEXiB9OIX5Qf2Iyfyr/EZRAITCM9I2LK8YcjX7tiZxzMQgzUYw1j +Ebxjcp01NolCEda0EZnYgD6tB1nNTYX0AuRSeRfw/1fqJM69ag1TozhXh+s/XyPR +s/gohViXqemvdfVMlpri/e9GgczgzV0XbwmZ6jOeX3WstdoKLz90q9gPWtoYx++K +LUYWcO7+fmIevEybCnC7PYv0bnQ4M9FJwbmCi1H2+vGztlr1jqczJG5kQnfxwUxM +IPiibZVu2xHbNgk0xiHuLIh/dcy9EkBlq7mmUgnRUnm1cFp841SF4BkVxwN070ja +8wrLR2f9WLJ1vQIDAQABo4HLMIHIMB0GA1UdDgQWBBRC/4h60M1aszlacbnuxIsx +N7R5OTAfBgNVHSMEGDAWgBT6WrvBM0xiNdrxsxHcUXUZPQBXVDA3BggrBgEFBQcB +AQQrMCkwJwYIKwYBBQUHMAKGG2h0dHA6Ly91cmwtZm9yLWFpYS9Sb290LmNlcjAs +BgNVHR8EJTAjMCGgH6AdhhtodHRwOi8vdXJsLWZvci1jcmwvUm9vdC5jcmwwDgYD +VR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB +ABCNbmcLB9hnxILmDuNs4sUBm6BP81f9YbxaVVSl7rBjhITatyPNgRoWVMSr6ocY +nmbIDGEHIQGKbHVdAXDq59pEOHFc1VFXhkRt/cn8BfbXm1qp++Anjah03MvPqjWf +ac0snpFl7KomwAvJXpKljUePz6vi0FZ3vtbwaSa/qU7hn8GygVCebH3SgpGtrpLU ++/C2t1M0W8FBKqJF+8HhrR7OKxlIAt0M0kkeAuH4kg67RIzyXs08lla52qXfL+TX +LaiOoEaDoT8SVcRzi/OFTwU2o1yLqr2jD3+NnDYBUxIydcMQXaDhTlF8jWJY/cZR +I5idOLaX3pRz6Uaf3BySlrI= +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Root + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:d5:9d:5f:8f:72:c5:3d:47:55:31:80:57:e0:cc: + b7:6f:6b:7c:f4:a2:f0:d9:a7:98:d1:a5:b5:21:09: + 06:89:e2:19:f6:4c:77:c2:78:2c:fe:05:fd:35:95: + 01:a1:63:e5:51:c0:3d:dc:63:8b:6d:d9:8d:c9:bf: + c9:0e:ff:41:5d:2d:55:85:9e:26:31:d4:a7:f4:22: + 59:0e:17:1b:a2:27:fb:de:3a:ed:b3:28:6a:b0:cc: + 00:04:5e:02:a7:0b:ae:f3:f0:2f:71:a4:ea:13:3c: + 2c:62:a5:91:87:cd:a6:4b:16:96:78:6c:e5:61:27: + 72:b4:06:f0:27:3e:6f:f8:c8:00:7a:0a:1a:c2:5c: + ec:1e:22:52:eb:15:11:b2:ed:d8:c9:1d:2a:94:93: + 66:3c:51:60:3b:19:06:7d:c6:65:b4:fe:0c:40:1a: + 63:be:70:a4:a7:9d:1e:b1:bd:04:f0:af:cc:0f:a2: + fc:e2:51:42:4c:60:e7:ae:53:30:c2:0d:74:d7:bd: + ef:7f:93:2e:6b:b2:d4:ff:76:ad:97:c6:b6:97:24: + 61:cc:6c:08:c1:5e:a4:e0:2f:ab:aa:a8:44:ef:2e: + 6d:50:f9:79:9e:87:58:44:81:1b:22:c6:50:7b:58: + 64:7a:2b:fc:43:4d:9a:51:1a:1b:0d:9b:4a:c7:ef: + 51:2f + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + FA:5A:BB:C1:33:4C:62:35:DA:F1:B3:11:DC:51:75:19:3D:00:57:54 + X509v3 Authority Key Identifier: + keyid:FA:5A:BB:C1:33:4C:62:35:DA:F1:B3:11:DC:51:75:19:3D:00:57:54 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 7b:69:d5:24:1c:3f:8d:ab:7c:87:35:0c:38:68:6a:5a:70:25: + ec:43:8e:e5:01:d4:df:95:29:17:da:64:8b:5a:99:3c:e1:77: + 5b:00:a2:6d:03:21:fc:30:75:30:3b:84:ff:19:e7:8f:27:47: + ce:29:18:17:6d:9d:95:b0:f5:ab:f7:10:ee:40:27:b3:f6:53: + 60:77:29:cd:4d:d9:29:7a:af:73:60:6d:10:9f:75:79:d2:b1: + 4f:13:b5:44:e1:9c:13:8f:74:cd:4f:46:d2:f1:c1:7f:ed:40: + b6:7a:da:0a:b1:d7:02:e5:11:0a:78:e6:94:b1:21:e8:46:33: + e6:15:6a:25:4a:ee:6d:0a:d3:8d:e0:6a:9f:a3:94:c4:c1:77: + fe:2f:79:03:91:3f:78:8f:3c:2e:8a:b0:0a:35:c9:2a:d7:04: + 9b:45:6e:8e:13:52:0c:67:b0:37:a3:74:df:fb:cb:28:35:a7: + 75:40:8e:7e:12:34:09:b8:24:93:cf:61:2f:a8:f8:73:9e:a1: + bc:b6:9a:7d:7f:49:64:ee:a0:02:41:5f:43:af:ab:8a:2a:15: + c8:bd:1d:a0:80:5f:da:59:19:20:ef:f4:df:a8:bf:2c:e7:77: + 6b:63:77:c6:a8:e1:59:1e:8f:63:b6:0e:66:aa:1e:11:61:91: + 7d:20:75:b6 +-----BEGIN TRUST_ANCHOR_UNCONSTRAINED----- +MIIDZTCCAk2gAwIBAgIBATANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowDzENMAsGA1UEAwwEUm9v +dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANWdX49yxT1HVTGAV+DM +t29rfPSi8NmnmNGltSEJBoniGfZMd8J4LP4F/TWVAaFj5VHAPdxji23Zjcm/yQ7/ +QV0tVYWeJjHUp/QiWQ4XG6In+9467bMoarDMAAReAqcLrvPwL3Gk6hM8LGKlkYfN +pksWlnhs5WEncrQG8Cc+b/jIAHoKGsJc7B4iUusVEbLt2MkdKpSTZjxRYDsZBn3G +ZbT+DEAaY75wpKedHrG9BPCvzA+i/OJRQkxg565TMMINdNe973+TLmuy1P92rZfG +tpckYcxsCMFepOAvq6qoRO8ubVD5eZ6HWESBGyLGUHtYZHor/ENNmlEaGw2bSsfv +US8CAwEAAaOByzCByDAdBgNVHQ4EFgQU+lq7wTNMYjXa8bMR3FF1GT0AV1QwHwYD +VR0jBBgwFoAU+lq7wTNMYjXa8bMR3FF1GT0AV1QwNwYIKwYBBQUHAQEEKzApMCcG +CCsGAQUFBzAChhtodHRwOi8vdXJsLWZvci1haWEvUm9vdC5jZXIwLAYDVR0fBCUw +IzAhoB+gHYYbaHR0cDovL3VybC1mb3ItY3JsL1Jvb3QuY3JsMA4GA1UdDwEB/wQE +AwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQB7adUkHD+N +q3yHNQw4aGpacCXsQ47lAdTflSkX2mSLWpk84XdbAKJtAyH8MHUwO4T/GeePJ0fO +KRgXbZ2VsPWr9xDuQCez9lNgdynNTdkpeq9zYG0Qn3V50rFPE7VE4ZwTj3TNT0bS +8cF/7UC2etoKsdcC5REKeOaUsSHoRjPmFWolSu5tCtON4Gqfo5TEwXf+L3kDkT94 +jzwuirAKNckq1wSbRW6OE1IMZ7A3o3Tf+8soNad1QI5+EjQJuCSTz2EvqPhznqG8 +tpp9f0lk7qACQV9Dr6uKKhXIvR2ggF/aWRkg7/TfqL8s53drY3fGqOFZHo9jtg5m +qh4RYZF9IHW2 +-----END TRUST_ANCHOR_UNCONSTRAINED----- + +150302120000Z +-----BEGIN TIME----- +MTUwMzAyMTIwMDAwWg== +-----END TIME----- + +SUCCESS +-----BEGIN VERIFY_RESULT----- +U1VDQ0VTUw== +-----END VERIFY_RESULT----- + +serverAuth +-----BEGIN KEY_PURPOSE----- +c2VydmVyQXV0aA== +-----END KEY_PURPOSE-----
diff --git a/net/data/verify_certificate_chain_unittest/serverauth-ec-ku-keyagreement.pem b/net/data/verify_certificate_chain_unittest/serverauth-ec-ku-keyagreement.pem new file mode 100644 index 0000000..ad18c23 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/serverauth-ec-ku-keyagreement.pem
@@ -0,0 +1,272 @@ +[Created by: generate-serverauth-ec-ku-keyagreement.py] + +Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only keyAgreement. + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Intermediate + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Target + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (384 bit) + pub: + 04:89:00:ec:91:fd:85:2e:b5:b5:20:92:c4:37:58: + 6e:73:4f:01:ad:8b:11:6f:9d:fb:ed:3e:a3:af:9c: + a9:57:8b:cb:7c:6f:b6:48:c3:1f:5c:20:2c:dd:bb: + e9:46:fe:72:b6:97:32:54:42:8d:b1:9d:c1:44:a9: + e7:65:a9:43:c0:58:09:3a:14:c9:80:c9:0c:21:c5: + 4d:29:ec:38:ba:c7:ee:a7:1d:84:f0:29:32:b5:51: + 1c:c3:7b:ad:ad:61:05 + ASN1 OID: secp384r1 + X509v3 extensions: + X509v3 Subject Key Identifier: + 79:F8:7F:83:57:2E:9D:63:B5:C6:37:2E:42:A3:49:DA:FC:22:B6:15 + X509v3 Authority Key Identifier: + keyid:9D:89:35:80:74:20:2D:73:3F:A4:C4:D6:56:B7:57:B6:A5:E8:D9:8B + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Intermediate.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Intermediate.crl + + X509v3 Key Usage: critical + Key Agreement + X509v3 Extended Key Usage: + TLS Web Server Authentication + Signature Algorithm: sha256WithRSAEncryption + a6:12:6f:eb:bb:19:74:1a:de:b2:5e:4c:be:8b:e8:8a:bb:d2: + f9:82:08:58:67:65:3a:4f:dd:c4:45:7d:4e:99:1b:20:ce:04: + ca:17:91:8f:a4:5e:08:b2:4e:a3:d0:bf:f9:2f:b4:92:15:68: + a2:62:4c:64:59:43:f5:6d:ad:2b:c6:d4:24:20:2b:e4:76:0b: + 8e:1f:31:7d:4b:0e:20:53:16:20:01:8d:63:ce:7b:93:9b:ea: + f6:6c:d6:77:20:a5:12:2f:a2:e0:0d:0a:89:c0:db:44:a9:8c: + 22:e9:15:ff:0a:0a:c3:a8:ce:97:4b:fc:28:09:80:71:ac:6d: + b4:2d:b2:95:88:63:b4:e8:a0:a2:a9:d9:ae:75:22:e0:f7:03: + 30:82:2b:d7:3c:83:d0:0e:f3:f5:7e:9b:4d:1c:b5:95:57:ef: + 8d:24:47:a9:97:49:f0:94:db:ed:a9:c4:15:68:89:a2:b0:0f: + 5f:f2:46:05:6c:50:69:e7:74:c5:2a:e8:e1:79:0c:61:e3:42: + da:80:e1:68:8a:67:df:da:05:85:1f:fd:57:f2:1d:fa:45:b8: + 2a:f5:73:6d:2a:52:2a:5d:c6:aa:cc:93:0d:f1:6c:a9:c4:f1: + ff:84:36:be:42:20:0d:2a:7a:d2:86:c3:a2:bb:3b:02:76:a6: + ba:ee:24:62 +-----BEGIN CERTIFICATE----- +MIIC1TCCAb2gAwIBAgIBATANBgkqhkiG9w0BAQsFADAXMRUwEwYDVQQDDAxJbnRl +cm1lZGlhdGUwHhcNMTUwMTAxMTIwMDAwWhcNMTYwMTAxMTIwMDAwWjARMQ8wDQYD +VQQDDAZUYXJnZXQwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASJAOyR/YUutbUgksQ3 +WG5zTwGtixFvnfvtPqOvnKlXi8t8b7ZIwx9cICzdu+lG/nK2lzJUQo2xncFEqedl +qUPAWAk6FMmAyQwhxU0p7Di6x+6nHYTwKTK1URzDe62tYQWjgd8wgdwwHQYDVR0O +BBYEFHn4f4NXLp1jtcY3LkKjSdr8IrYVMB8GA1UdIwQYMBaAFJ2JNYB0IC1zP6TE +1la3V7al6NmLMD8GCCsGAQUFBwEBBDMwMTAvBggrBgEFBQcwAoYjaHR0cDovL3Vy +bC1mb3ItYWlhL0ludGVybWVkaWF0ZS5jZXIwNAYDVR0fBC0wKzApoCegJYYjaHR0 +cDovL3VybC1mb3ItY3JsL0ludGVybWVkaWF0ZS5jcmwwDgYDVR0PAQH/BAQDAgMI +MBMGA1UdJQQMMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4IBAQCmEm/ruxl0 +Gt6yXky+i+iKu9L5gghYZ2U6T93ERX1OmRsgzgTKF5GPpF4Isk6j0L/5L7SSFWii +YkxkWUP1ba0rxtQkICvkdguOHzF9Sw4gUxYgAY1jznuTm+r2bNZ3IKUSL6LgDQqJ +wNtEqYwi6RX/CgrDqM6XS/woCYBxrG20LbKViGO06KCiqdmudSLg9wMwgivXPIPQ +DvP1fptNHLWVV++NJEepl0nwlNvtqcQVaImisA9f8kYFbFBp53TFKujheQxh40La +gOFoimff2gWFH/1X8h36Rbgq9XNtKlIqXcaqzJMN8WypxPH/hDa+QiANKnrShsOi +uzsCdqa67iRi +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 2 (0x2) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Intermediate + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:b6:3f:d3:f7:d6:99:71:8e:40:2a:64:6d:39:69: + fe:d8:50:c0:5b:7e:7f:33:91:41:06:ca:40:ad:3c: + f7:4d:fb:db:12:03:2f:69:ad:09:2a:f1:49:d8:61: + b5:3f:7c:b1:f9:41:45:ab:26:3b:76:df:da:e4:8b: + 65:8d:77:ab:0d:3e:56:78:cb:ab:17:9c:50:b1:b8: + c1:f4:31:8a:09:24:c7:19:c7:c5:5a:b4:a5:c4:a7: + c0:eb:2b:54:c9:de:f0:4a:a5:3d:f6:fc:66:d5:e2: + ed:53:4f:0f:e3:79:d1:78:cc:54:01:43:af:17:d7: + b8:38:11:44:1b:bb:22:13:2e:c7:4d:95:8f:44:9b: + d8:e7:4d:41:f0:51:ae:2a:6a:13:cd:c4:64:cd:7e: + 2e:d5:a2:32:b7:df:2f:89:66:b3:93:ab:0b:f9:3f: + 7d:71:47:bf:8e:2d:e0:5a:b8:5a:da:6b:d8:b0:51: + 74:4d:f4:38:ae:3c:5e:22:34:9a:93:d4:61:ce:4b: + 57:77:28:76:b6:84:c4:aa:cc:5e:97:05:55:06:83: + 55:95:3d:dc:c8:b3:a9:64:d3:d4:8b:8b:dc:30:97: + 54:87:6d:68:26:31:45:05:af:1c:cd:a5:f6:ff:e7: + f0:d6:0d:9f:a6:75:a9:d7:c0:c3:8d:ba:7d:a4:a6: + 7f:db + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 9D:89:35:80:74:20:2D:73:3F:A4:C4:D6:56:B7:57:B6:A5:E8:D9:8B + X509v3 Authority Key Identifier: + keyid:0F:81:D1:20:C7:6B:79:4D:08:C2:54:4C:14:69:CD:9B:C7:C5:C3:41 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 5b:d3:72:ae:c7:92:42:1e:26:1c:f2:87:dc:87:48:97:aa:97: + 77:89:1b:66:e3:c4:b7:33:a7:b8:ce:d4:ef:d9:67:be:59:a4: + 42:54:f3:63:86:a6:f8:cc:4f:60:04:ad:3a:57:7b:72:45:fb: + 20:2e:6a:31:de:e3:2e:a3:1f:44:ce:71:6c:84:7f:a4:8d:a7: + eb:c9:af:4a:30:84:19:6c:75:a7:d6:4b:fa:a3:75:b3:bb:70: + bf:b8:3e:9c:5a:e4:6f:09:ef:dd:70:a8:c6:3b:8e:29:28:15: + e3:cb:1c:45:f8:1c:87:21:f9:d4:a6:82:d7:46:a1:e7:52:98: + 62:ce:3a:da:7e:48:f9:ad:e8:ac:ad:ce:4d:be:d5:fe:2f:6f: + 6e:0b:03:8a:0f:33:e8:f4:26:7f:5d:1a:31:89:cb:7b:bf:b9: + 25:74:94:53:0b:09:1d:25:6f:eb:45:c0:06:ef:80:10:1e:39: + 0e:8f:c7:a0:21:dc:9e:d5:e6:c0:bf:53:6a:42:f0:f0:58:fe: + d5:f4:99:92:2b:76:69:e8:a0:43:34:41:b4:01:94:d2:8f:5a: + fe:fe:46:75:f7:1d:cf:16:b4:64:03:c0:5d:8a:1a:f0:f4:c4: + a6:7b:0f:de:22:58:62:3d:dd:97:a4:a4:92:65:ad:87:21:37: + 57:0d:ec:dc +-----BEGIN CERTIFICATE----- +MIIDbTCCAlWgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowFzEVMBMGA1UEAwwMSW50 +ZXJtZWRpYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtj/T99aZ +cY5AKmRtOWn+2FDAW35/M5FBBspArTz3TfvbEgMvaa0JKvFJ2GG1P3yx+UFFqyY7 +dt/a5ItljXerDT5WeMurF5xQsbjB9DGKCSTHGcfFWrSlxKfA6ytUyd7wSqU99vxm +1eLtU08P43nReMxUAUOvF9e4OBFEG7siEy7HTZWPRJvY501B8FGuKmoTzcRkzX4u +1aIyt98viWazk6sL+T99cUe/ji3gWrha2mvYsFF0TfQ4rjxeIjSak9RhzktXdyh2 +toTEqsxelwVVBoNVlT3cyLOpZNPUi4vcMJdUh21oJjFFBa8czaX2/+fw1g2fpnWp +18DDjbp9pKZ/2wIDAQABo4HLMIHIMB0GA1UdDgQWBBSdiTWAdCAtcz+kxNZWt1e2 +pejZizAfBgNVHSMEGDAWgBQPgdEgx2t5TQjCVEwUac2bx8XDQTA3BggrBgEFBQcB +AQQrMCkwJwYIKwYBBQUHMAKGG2h0dHA6Ly91cmwtZm9yLWFpYS9Sb290LmNlcjAs +BgNVHR8EJTAjMCGgH6AdhhtodHRwOi8vdXJsLWZvci1jcmwvUm9vdC5jcmwwDgYD +VR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB +AFvTcq7HkkIeJhzyh9yHSJeql3eJG2bjxLczp7jO1O/ZZ75ZpEJU82OGpvjMT2AE +rTpXe3JF+yAuajHe4y6jH0TOcWyEf6SNp+vJr0owhBlsdafWS/qjdbO7cL+4Ppxa +5G8J791wqMY7jikoFePLHEX4HIch+dSmgtdGoedSmGLOOtp+SPmt6Kytzk2+1f4v +b24LA4oPM+j0Jn9dGjGJy3u/uSV0lFMLCR0lb+tFwAbvgBAeOQ6Px6Ah3J7V5sC/ +U2pC8PBY/tX0mZIrdmnooEM0QbQBlNKPWv7+RnX3Hc8WtGQDwF2KGvD0xKZ7D94i +WGI93ZekpJJlrYchN1cN7Nw= +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Root + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:c1:3e:d3:96:3b:f4:27:70:30:ed:c0:ed:a9:38: + dc:a2:2a:56:65:d1:82:7a:36:ae:8f:00:fd:4c:db: + fb:80:ad:f6:d1:71:c0:87:09:d6:40:c3:1e:a8:86: + d7:ed:d0:62:5f:67:a0:84:24:71:88:31:8b:fe:8b: + 3f:71:f0:d2:56:49:47:74:40:b8:c8:2f:2b:2e:d5: + a8:06:46:af:30:92:8d:20:13:a4:7c:9d:51:9f:8e: + d6:7b:4f:ae:a9:59:b9:17:d0:b6:31:12:45:58:4d: + 59:86:e9:bb:75:1e:e1:db:0f:10:bb:0c:17:fb:48: + 89:d2:7e:d0:76:96:26:89:f5:a4:77:09:a7:7a:4f: + 8b:dd:24:95:15:ce:6f:d6:82:03:76:52:f0:7c:5d: + 69:25:ff:e7:12:c1:fb:41:be:8c:e9:c6:7b:a8:e2: + 88:03:e2:86:16:0f:20:34:a3:7d:28:3e:14:f5:9a: + 40:30:d3:fc:96:21:e4:bf:91:80:ae:a3:0f:a4:00: + 39:c3:40:0a:90:d4:9a:c8:fe:2f:c9:74:16:1b:c4: + 13:40:0b:2f:af:bc:d0:47:78:19:5f:4f:a5:9a:94: + 46:1d:71:c9:f6:04:bd:61:43:80:33:c3:57:fb:5d: + df:6d:20:32:c1:b2:f1:a6:46:4b:19:95:f3:3f:53: + f7:7d + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 0F:81:D1:20:C7:6B:79:4D:08:C2:54:4C:14:69:CD:9B:C7:C5:C3:41 + X509v3 Authority Key Identifier: + keyid:0F:81:D1:20:C7:6B:79:4D:08:C2:54:4C:14:69:CD:9B:C7:C5:C3:41 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 39:38:b5:f8:09:d0:c2:8c:32:e3:89:bc:30:b1:7f:6f:16:57: + c2:4a:54:a8:a4:01:c4:a6:68:10:3a:ff:57:e5:50:d8:30:ee: + f3:1e:9c:54:f1:b6:19:b7:61:a1:c4:88:d1:9a:5a:a9:6a:2a: + bc:a5:10:1f:22:0a:83:a6:5b:15:8f:99:bd:08:e7:a9:ca:4f: + 3f:1b:e7:d2:5e:85:ef:19:43:76:0c:9b:90:7d:43:5c:15:8d: + 75:11:de:89:2b:bc:3f:34:bd:7f:64:d4:7d:db:dd:de:f4:af: + 8c:8a:30:29:2a:47:a0:56:9a:c9:69:c7:44:d2:78:05:62:bd: + 3d:13:ab:52:15:31:fc:bf:19:1f:3f:f6:76:c7:f1:92:3a:f0: + 61:44:50:2a:e0:46:5b:15:a1:1f:d8:0d:fd:46:b9:07:38:6a: + 21:40:50:03:ae:73:cd:2e:49:3e:29:a6:65:67:e4:1c:5b:6e: + 41:ed:7c:6e:0d:e9:7c:32:db:99:17:90:72:3f:d5:4c:d7:ec: + 05:45:ee:23:40:db:9c:4e:c3:ca:42:d1:18:c3:54:94:f1:10: + 8b:98:75:b7:1e:ee:f1:8f:b8:2d:c6:bc:73:a6:74:69:f6:3c: + ca:75:1e:65:10:35:e8:d0:9f:d0:69:6b:cc:d4:fb:d4:93:05: + a1:2a:26:34 +-----BEGIN TRUST_ANCHOR_UNCONSTRAINED----- +MIIDZTCCAk2gAwIBAgIBATANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowDzENMAsGA1UEAwwEUm9v +dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAME+05Y79CdwMO3A7ak4 +3KIqVmXRgno2ro8A/Uzb+4Ct9tFxwIcJ1kDDHqiG1+3QYl9noIQkcYgxi/6LP3Hw +0lZJR3RAuMgvKy7VqAZGrzCSjSATpHydUZ+O1ntPrqlZuRfQtjESRVhNWYbpu3Ue +4dsPELsMF/tIidJ+0HaWJon1pHcJp3pPi90klRXOb9aCA3ZS8HxdaSX/5xLB+0G+ +jOnGe6jiiAPihhYPIDSjfSg+FPWaQDDT/JYh5L+RgK6jD6QAOcNACpDUmsj+L8l0 +FhvEE0ALL6+80Ed4GV9PpZqURh1xyfYEvWFDgDPDV/td320gMsGy8aZGSxmV8z9T +930CAwEAAaOByzCByDAdBgNVHQ4EFgQUD4HRIMdreU0IwlRMFGnNm8fFw0EwHwYD +VR0jBBgwFoAUD4HRIMdreU0IwlRMFGnNm8fFw0EwNwYIKwYBBQUHAQEEKzApMCcG +CCsGAQUFBzAChhtodHRwOi8vdXJsLWZvci1haWEvUm9vdC5jZXIwLAYDVR0fBCUw +IzAhoB+gHYYbaHR0cDovL3VybC1mb3ItY3JsL1Jvb3QuY3JsMA4GA1UdDwEB/wQE +AwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQA5OLX4CdDC +jDLjibwwsX9vFlfCSlSopAHEpmgQOv9X5VDYMO7zHpxU8bYZt2GhxIjRmlqpaiq8 +pRAfIgqDplsVj5m9COepyk8/G+fSXoXvGUN2DJuQfUNcFY11Ed6JK7w/NL1/ZNR9 +293e9K+MijApKkegVprJacdE0ngFYr09E6tSFTH8vxkfP/Z2x/GSOvBhRFAq4EZb +FaEf2A39RrkHOGohQFADrnPNLkk+KaZlZ+QcW25B7XxuDel8MtuZF5ByP9VM1+wF +Re4jQNucTsPKQtEYw1SU8RCLmHW3Hu7xj7gtxrxzpnRp9jzKdR5lEDXo0J/QaWvM +1PvUkwWhKiY0 +-----END TRUST_ANCHOR_UNCONSTRAINED----- + +150302120000Z +-----BEGIN TIME----- +MTUwMzAyMTIwMDAwWg== +-----END TIME----- + +SUCCESS +-----BEGIN VERIFY_RESULT----- +U1VDQ0VTUw== +-----END VERIFY_RESULT----- + +serverAuth +-----BEGIN KEY_PURPOSE----- +c2VydmVyQXV0aA== +-----END KEY_PURPOSE-----
diff --git a/net/data/verify_certificate_chain_unittest/serverauth-ec-ku-keyencipherment.pem b/net/data/verify_certificate_chain_unittest/serverauth-ec-ku-keyencipherment.pem new file mode 100644 index 0000000..bb2ed6b --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/serverauth-ec-ku-keyencipherment.pem
@@ -0,0 +1,272 @@ +[Created by: generate-serverauth-ec-ku-keyencipherment.py] + +Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only keyEncipherment. + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Intermediate + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Target + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (384 bit) + pub: + 04:47:90:06:cd:32:f1:43:64:8a:0f:a9:27:ad:8b: + 72:b6:90:bf:9c:56:4f:6f:ed:bc:5a:26:81:6e:ab: + 99:f5:97:cc:65:87:04:c5:9b:c7:ed:e7:d2:ec:80: + e5:8a:da:07:88:55:63:25:9b:5d:92:c4:db:2c:35: + f3:32:be:41:4e:6c:8e:53:54:eb:cf:a2:4a:0c:c4: + f8:2e:fd:0d:df:7b:13:07:28:c9:51:98:e7:22:29: + 0e:cc:29:3f:d8:8e:b2 + ASN1 OID: secp384r1 + X509v3 extensions: + X509v3 Subject Key Identifier: + 64:0B:31:C2:E5:A0:D5:B2:25:96:45:10:1E:24:89:74:CB:06:32:B9 + X509v3 Authority Key Identifier: + keyid:78:6F:0B:E8:82:18:AD:46:6F:21:C7:AB:0A:A3:98:2A:16:B3:57:67 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Intermediate.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Intermediate.crl + + X509v3 Key Usage: critical + Key Encipherment + X509v3 Extended Key Usage: + TLS Web Server Authentication + Signature Algorithm: sha256WithRSAEncryption + f5:75:6a:2b:db:65:7f:aa:b0:9b:75:b5:c0:bd:36:9e:0a:77: + f7:ba:f3:a0:61:66:12:88:15:72:16:34:a4:dd:4e:bb:18:9a: + 4b:b7:50:9b:3d:1d:de:78:4d:48:08:bf:d9:a4:f2:17:fb:35: + f2:00:1c:f1:62:bf:29:75:4d:84:60:60:40:ef:97:a8:67:d5: + 23:fa:51:af:d3:bb:1a:84:a3:18:b2:0f:42:5e:18:98:b5:b4: + e1:68:b4:8b:32:df:bc:24:f5:b1:54:a8:a2:2e:6d:46:1d:f8: + 55:68:c5:cd:a1:ff:3d:1d:29:b3:26:61:db:24:08:8e:4e:50: + fe:63:36:c1:be:72:90:a8:0e:36:50:b1:38:f1:df:07:ec:b3: + 74:ff:9d:04:6e:f9:e2:bc:36:88:d5:7c:96:00:9a:e6:68:48: + ab:f9:2f:9c:83:45:18:21:62:2f:15:da:31:46:3a:85:11:32: + 72:32:21:46:c5:b2:df:cb:fc:85:73:21:7c:09:b8:78:f7:eb: + 8a:03:48:d0:ba:0d:a0:bc:da:a0:cf:cc:d9:4f:7e:5e:f0:a1: + a0:59:93:c5:22:34:95:7c:f4:79:29:be:6d:3d:03:ab:2e:90: + e8:a8:15:19:2c:d6:ba:61:6b:21:e1:16:62:1e:68:be:ed:f6: + bf:63:e9:0d +-----BEGIN CERTIFICATE----- +MIIC1TCCAb2gAwIBAgIBATANBgkqhkiG9w0BAQsFADAXMRUwEwYDVQQDDAxJbnRl +cm1lZGlhdGUwHhcNMTUwMTAxMTIwMDAwWhcNMTYwMTAxMTIwMDAwWjARMQ8wDQYD +VQQDDAZUYXJnZXQwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAARHkAbNMvFDZIoPqSet +i3K2kL+cVk9v7bxaJoFuq5n1l8xlhwTFm8ft59LsgOWK2geIVWMlm12SxNssNfMy +vkFObI5TVOvPokoMxPgu/Q3fexMHKMlRmOciKQ7MKT/YjrKjgd8wgdwwHQYDVR0O +BBYEFGQLMcLloNWyJZZFEB4kiXTLBjK5MB8GA1UdIwQYMBaAFHhvC+iCGK1GbyHH +qwqjmCoWs1dnMD8GCCsGAQUFBwEBBDMwMTAvBggrBgEFBQcwAoYjaHR0cDovL3Vy +bC1mb3ItYWlhL0ludGVybWVkaWF0ZS5jZXIwNAYDVR0fBC0wKzApoCegJYYjaHR0 +cDovL3VybC1mb3ItY3JsL0ludGVybWVkaWF0ZS5jcmwwDgYDVR0PAQH/BAQDAgUg +MBMGA1UdJQQMMAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4IBAQD1dWor22V/ +qrCbdbXAvTaeCnf3uvOgYWYSiBVyFjSk3U67GJpLt1CbPR3eeE1ICL/ZpPIX+zXy +ABzxYr8pdU2EYGBA75eoZ9Uj+lGv07sahKMYsg9CXhiYtbThaLSLMt+8JPWxVKii +Lm1GHfhVaMXNof89HSmzJmHbJAiOTlD+YzbBvnKQqA42ULE48d8H7LN0/50Ebvni +vDaI1XyWAJrmaEir+S+cg0UYIWIvFdoxRjqFETJyMiFGxbLfy/yFcyF8Cbh49+uK +A0jQug2gvNqgz8zZT35e8KGgWZPFIjSVfPR5Kb5tPQOrLpDoqBUZLNa6YWsh4RZi +Hmi+7fa/Y+kN +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 2 (0x2) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Intermediate + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:fa:3b:f0:7b:b9:5d:60:5f:1c:c9:b0:87:60:45: + 41:1e:6c:d1:54:34:1c:ff:42:50:3f:a3:6f:38:f8: + 20:50:d5:81:a4:39:98:3c:72:e6:54:98:64:46:ad: + b0:cc:0d:a8:9e:be:eb:dd:04:cc:aa:1b:54:8b:c4: + 2b:c0:1f:4b:ed:59:d0:1d:0b:3d:9e:c1:dc:42:a5: + 11:97:12:2b:27:1a:93:1e:46:f2:9f:8e:62:ff:1e: + 5f:19:8a:39:f5:13:bc:ca:39:c3:22:d7:3a:8a:7b: + 39:f4:bf:af:36:90:e1:eb:be:09:f2:3c:00:b0:96: + 97:03:67:7f:c8:3d:db:0e:a8:e7:e6:06:04:98:b3: + 03:f5:c8:a4:c8:59:ed:59:3d:08:24:5d:27:54:2d: + db:ad:87:ff:c5:d0:ca:cc:d8:76:9a:0b:4a:43:61: + 29:6f:06:e5:3a:a5:2e:2a:bd:f6:67:c8:03:4b:96: + 2a:0f:c8:33:db:71:0d:ef:71:51:ba:7c:fa:4f:96: + 71:b9:0a:9d:f3:67:72:79:cf:7e:c6:89:b3:6b:b3: + 06:af:1a:bf:7d:9b:86:90:bf:f6:b7:45:9a:d6:3b: + 67:9b:82:38:15:f8:2b:9a:36:f6:56:66:1a:1e:7c: + c0:1d:f7:c1:6f:5d:17:4b:86:89:89:6e:5c:e5:51: + da:89 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 78:6F:0B:E8:82:18:AD:46:6F:21:C7:AB:0A:A3:98:2A:16:B3:57:67 + X509v3 Authority Key Identifier: + keyid:C7:D0:B8:B7:D7:AF:1F:1D:B1:72:B5:63:B4:2A:1A:1B:6F:06:04:42 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 91:35:d8:89:1a:7b:ca:4f:ad:9b:ad:f4:4f:c3:7a:b3:fa:43: + 73:f8:e0:55:ae:37:8b:0d:5a:8f:e9:a6:37:ea:d0:59:8b:b1: + fb:67:fe:4d:91:34:11:3f:54:a2:bd:8b:75:68:0c:0f:a7:db: + 3a:dd:dd:85:b2:4e:b9:e2:91:1f:f7:71:3d:be:84:4f:27:a6: + 82:d6:5d:c0:ef:e2:70:22:82:ac:73:21:2d:df:a5:30:2f:96: + 67:8a:38:15:5d:13:50:2f:f4:eb:55:79:18:88:8c:08:46:ce: + bd:17:1f:6c:5e:b6:1d:77:1b:11:e2:a5:1b:44:ae:e1:2b:8f: + 78:c6:b9:96:44:6a:eb:32:6d:a8:7a:1b:db:f8:a9:cc:00:f9: + 49:bc:31:84:a8:62:bf:d0:d7:e9:98:15:d5:1d:fa:b0:4a:4c: + 3b:0a:c3:ca:ff:eb:18:03:c7:a8:82:f7:1c:e5:c9:5d:21:8e: + b1:38:41:54:ed:26:0a:43:98:29:e0:2a:b4:61:56:8b:57:66: + 5e:e3:cb:22:ce:1e:b6:28:b3:2d:04:03:cf:ed:86:55:34:92: + 5e:d8:38:6f:ae:29:c3:d6:d2:a0:16:71:e7:82:b3:1c:18:67: + ef:4a:5e:65:1f:62:5c:73:a6:44:e3:96:b8:6f:af:1d:3e:7f: + 90:bc:e1:12 +-----BEGIN CERTIFICATE----- +MIIDbTCCAlWgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowFzEVMBMGA1UEAwwMSW50 +ZXJtZWRpYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA+jvwe7ld +YF8cybCHYEVBHmzRVDQc/0JQP6NvOPggUNWBpDmYPHLmVJhkRq2wzA2onr7r3QTM +qhtUi8QrwB9L7VnQHQs9nsHcQqURlxIrJxqTHkbyn45i/x5fGYo59RO8yjnDItc6 +ins59L+vNpDh674J8jwAsJaXA2d/yD3bDqjn5gYEmLMD9cikyFntWT0IJF0nVC3b +rYf/xdDKzNh2mgtKQ2EpbwblOqUuKr32Z8gDS5YqD8gz23EN73FRunz6T5ZxuQqd +82dyec9+xomza7MGrxq/fZuGkL/2t0Wa1jtnm4I4Ffgrmjb2VmYaHnzAHffBb10X +S4aJiW5c5VHaiQIDAQABo4HLMIHIMB0GA1UdDgQWBBR4bwvoghitRm8hx6sKo5gq +FrNXZzAfBgNVHSMEGDAWgBTH0Li3168fHbFytWO0KhobbwYEQjA3BggrBgEFBQcB +AQQrMCkwJwYIKwYBBQUHMAKGG2h0dHA6Ly91cmwtZm9yLWFpYS9Sb290LmNlcjAs +BgNVHR8EJTAjMCGgH6AdhhtodHRwOi8vdXJsLWZvci1jcmwvUm9vdC5jcmwwDgYD +VR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB +AJE12Ikae8pPrZut9E/DerP6Q3P44FWuN4sNWo/ppjfq0FmLsftn/k2RNBE/VKK9 +i3VoDA+n2zrd3YWyTrnikR/3cT2+hE8npoLWXcDv4nAigqxzIS3fpTAvlmeKOBVd +E1Av9OtVeRiIjAhGzr0XH2xeth13GxHipRtEruErj3jGuZZEausybah6G9v4qcwA ++Um8MYSoYr/Q1+mYFdUd+rBKTDsKw8r/6xgDx6iC9xzlyV0hjrE4QVTtJgpDmCng +KrRhVotXZl7jyyLOHrYosy0EA8/thlU0kl7YOG+uKcPW0qAWceeCsxwYZ+9KXmUf +YlxzpkTjlrhvrx0+f5C84RI= +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Root + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:d6:29:78:82:63:a2:61:61:53:72:81:0c:e6:16: + 4c:54:d9:ff:5f:4f:30:a3:9f:b2:e1:62:ec:90:e1: + 80:3b:95:c4:17:95:ea:37:96:a7:6c:90:4d:ac:08: + 2e:e4:52:d7:7f:e3:eb:54:4b:32:95:8c:fd:de:f0: + 5b:8d:eb:1a:a3:8a:be:49:a1:8a:e6:9c:4b:b2:6b: + f7:0d:8a:3f:88:f9:02:cb:07:64:f1:2f:c3:a8:8e: + 06:a6:e7:bc:e9:20:0d:73:a3:95:05:a5:e6:5b:7e: + 07:b3:41:e1:0e:25:41:ba:39:ec:89:3a:1c:96:8b: + 9d:4d:b8:94:aa:b3:2f:91:ab:21:85:de:89:ee:f9: + 4e:18:88:41:69:93:ab:87:68:4f:77:2f:ac:33:f3: + 68:67:36:3c:f3:85:84:7f:77:1d:7a:2c:8a:a6:f2: + 4e:5f:52:9b:0b:35:8c:f6:46:61:68:3b:3a:2e:26: + 8a:d3:24:14:31:6f:f8:43:62:d2:5b:44:18:9d:47: + c7:57:b3:b5:da:b3:7d:b0:29:48:3b:e5:27:4c:52: + fa:1f:33:26:34:0b:5c:a8:6b:a5:02:eb:96:a8:f1: + c9:67:b4:0e:9d:12:6e:1c:44:57:cf:bf:75:ad:5e: + 54:d2:18:13:ea:ee:45:4d:94:3b:58:7d:20:9d:d2: + 40:85 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + C7:D0:B8:B7:D7:AF:1F:1D:B1:72:B5:63:B4:2A:1A:1B:6F:06:04:42 + X509v3 Authority Key Identifier: + keyid:C7:D0:B8:B7:D7:AF:1F:1D:B1:72:B5:63:B4:2A:1A:1B:6F:06:04:42 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 7e:be:c2:56:a4:f6:74:c1:6a:97:11:04:6b:8a:50:c2:74:4b: + e0:01:6d:bf:72:c2:6e:4c:14:c1:15:ef:92:5f:44:4d:23:99: + ac:88:c2:c9:40:95:82:7d:b1:40:0d:4e:96:2e:1b:3f:5d:22: + 23:0e:92:e7:56:c0:33:21:f3:e2:39:41:b0:39:c6:27:29:1f: + 72:ac:58:73:0a:b2:13:bb:83:6a:6f:d9:4b:08:71:95:07:28: + 51:2a:a9:a5:d9:ab:02:78:62:fa:78:1a:1f:22:cb:80:5c:5e: + 79:81:fa:82:38:30:ba:eb:d3:a8:90:f4:47:aa:09:a8:c5:f8: + 20:58:fe:4d:82:47:2f:41:e6:7b:44:6b:5d:ee:ca:f9:2d:48: + 1f:76:e2:db:f0:3e:4d:de:85:d2:63:a3:e6:61:db:28:69:75: + 74:61:a0:ee:c3:e8:6f:c4:ce:a3:31:3c:48:9d:34:84:fe:83: + 7e:7d:be:2f:ca:bd:f8:f2:39:1c:0e:b2:3c:c2:4a:f2:3f:fe: + 63:2c:53:7b:1e:e7:64:e0:97:05:46:64:60:a0:35:54:5f:44: + 31:9a:a2:b7:72:7d:4a:90:90:9c:dd:d0:cd:89:b5:90:32:b2: + 2d:e2:4f:3c:b4:ae:46:00:96:72:6f:8e:bc:d3:59:e5:08:57: + b9:3f:f6:b2 +-----BEGIN TRUST_ANCHOR_UNCONSTRAINED----- +MIIDZTCCAk2gAwIBAgIBATANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowDzENMAsGA1UEAwwEUm9v +dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANYpeIJjomFhU3KBDOYW +TFTZ/19PMKOfsuFi7JDhgDuVxBeV6jeWp2yQTawILuRS13/j61RLMpWM/d7wW43r +GqOKvkmhiuacS7Jr9w2KP4j5AssHZPEvw6iOBqbnvOkgDXOjlQWl5lt+B7NB4Q4l +Qbo57Ik6HJaLnU24lKqzL5GrIYXeie75ThiIQWmTq4doT3cvrDPzaGc2PPOFhH93 +HXosiqbyTl9Smws1jPZGYWg7Oi4mitMkFDFv+ENi0ltEGJ1Hx1eztdqzfbApSDvl +J0xS+h8zJjQLXKhrpQLrlqjxyWe0Dp0SbhxEV8+/da1eVNIYE+ruRU2UO1h9IJ3S +QIUCAwEAAaOByzCByDAdBgNVHQ4EFgQUx9C4t9evHx2xcrVjtCoaG28GBEIwHwYD +VR0jBBgwFoAUx9C4t9evHx2xcrVjtCoaG28GBEIwNwYIKwYBBQUHAQEEKzApMCcG +CCsGAQUFBzAChhtodHRwOi8vdXJsLWZvci1haWEvUm9vdC5jZXIwLAYDVR0fBCUw +IzAhoB+gHYYbaHR0cDovL3VybC1mb3ItY3JsL1Jvb3QuY3JsMA4GA1UdDwEB/wQE +AwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQB+vsJWpPZ0 +wWqXEQRrilDCdEvgAW2/csJuTBTBFe+SX0RNI5msiMLJQJWCfbFADU6WLhs/XSIj +DpLnVsAzIfPiOUGwOcYnKR9yrFhzCrITu4Nqb9lLCHGVByhRKqml2asCeGL6eBof +IsuAXF55gfqCODC669OokPRHqgmoxfggWP5NgkcvQeZ7RGtd7sr5LUgfduLb8D5N +3oXSY6PmYdsoaXV0YaDuw+hvxM6jMTxInTSE/oN+fb4vyr348jkcDrI8wkryP/5j +LFN7Hudk4JcFRmRgoDVUX0QxmqK3cn1KkJCc3dDNibWQMrIt4k88tK5GAJZyb468 +01nlCFe5P/ay +-----END TRUST_ANCHOR_UNCONSTRAINED----- + +150302120000Z +-----BEGIN TIME----- +MTUwMzAyMTIwMDAwWg== +-----END TIME----- + +SUCCESS +-----BEGIN VERIFY_RESULT----- +U1VDQ0VTUw== +-----END VERIFY_RESULT----- + +serverAuth +-----BEGIN KEY_PURPOSE----- +c2VydmVyQXV0aA== +-----END KEY_PURPOSE-----
diff --git a/net/data/verify_certificate_chain_unittest/serverauth-rsa-ku-decipheronly.pem b/net/data/verify_certificate_chain_unittest/serverauth-rsa-ku-decipheronly.pem new file mode 100644 index 0000000..ed7d7232 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/serverauth-rsa-ku-decipheronly.pem
@@ -0,0 +1,286 @@ +[Created by: generate-serverauth-rsa-ku-decipheronly.py] + +Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only decipherOnly. + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Intermediate + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Target + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:ad:4f:bb:4a:8c:03:fc:72:e0:cc:49:9f:2c:5e: + b3:e6:64:d8:c3:4b:3d:04:f5:a0:80:c9:66:1c:e7: + 28:7e:4e:bf:7d:45:11:81:66:28:17:e2:79:6d:39: + 9c:6d:9e:8d:75:88:61:01:ed:07:ef:43:21:94:0a: + 02:59:4d:9b:01:ac:ea:77:57:b6:03:ae:e2:ee:ec: + 3d:2a:a7:30:ee:6a:7d:58:4e:16:99:7d:a0:11:f5: + 53:28:a0:4d:ba:6f:6c:c2:9e:1f:97:1f:1f:39:50: + 59:cc:d1:87:94:1f:a9:0c:52:6c:21:b6:00:16:5c: + a7:d3:f8:f6:49:8e:b3:52:10:25:7d:9d:1e:4c:db: + bf:36:50:94:7b:fa:cd:b7:4b:45:91:f5:5b:48:e9: + 69:cc:ea:d0:31:cf:de:cf:be:c1:96:0a:02:4b:97: + 7a:b3:5f:2c:e0:fc:ca:42:40:03:a5:06:5d:ce:b2: + ec:6c:3c:c0:bf:65:e6:93:71:92:b1:78:5a:2a:00: + 56:29:58:a3:5b:a5:2f:2f:16:2b:b0:3d:44:4d:cb: + cf:38:ae:ec:c2:24:50:6f:24:17:6b:03:4f:8b:eb: + da:22:7e:ff:2f:44:3b:da:78:1d:d4:63:b0:75:75: + e7:0f:e1:cb:d6:aa:08:92:b5:1d:8b:23:61:6f:e4: + 44:71 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 64:03:B3:9E:45:93:DC:D7:0E:93:D8:D6:15:98:38:10:91:2B:7F:F0 + X509v3 Authority Key Identifier: + keyid:DE:9D:6D:1F:5D:CB:37:C0:88:DD:3F:5E:FE:85:93:89:72:5D:29:DF + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Intermediate.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Intermediate.crl + + X509v3 Key Usage: critical + Decipher Only + X509v3 Extended Key Usage: + TLS Web Server Authentication + Signature Algorithm: sha256WithRSAEncryption + ae:14:bb:a4:87:88:38:c4:9e:76:6e:9b:ff:25:7d:c3:38:d6: + c3:51:6b:83:5d:f6:69:3b:6c:54:65:3d:b0:58:c5:63:f6:aa: + 0d:9d:44:9d:65:3f:2b:67:79:10:49:5a:48:10:28:e5:02:19: + 73:6b:ca:69:8e:be:71:02:c0:df:e7:17:af:a4:a6:9c:fb:49: + 3d:c6:e5:7e:4d:35:9b:43:db:42:cd:10:a5:e4:1a:70:2d:6f: + 96:fa:53:3c:3c:df:50:0c:50:fc:d3:af:96:b1:33:6e:c9:e0: + 53:dc:8b:f4:59:2e:3a:88:e6:ac:81:7a:64:1c:6e:b6:6e:f7: + cf:2d:4e:66:e8:9d:b3:1e:4e:59:3d:31:a9:2e:72:a0:ff:c9: + 37:91:74:e1:63:b6:4a:35:bb:c5:63:23:64:ad:5c:5a:80:d2: + e6:03:a4:44:83:3b:ff:71:d9:66:ce:3b:1d:63:f2:97:f0:06: + 7e:1c:dc:31:b3:20:6c:68:50:40:3d:9a:e8:fe:d5:b7:0e:a0: + 8d:3e:36:35:df:e0:57:df:d9:18:90:91:77:05:a7:11:c6:c9: + 6c:5b:ec:55:e9:9f:73:8e:e2:98:02:e0:17:db:10:f0:03:a8: + c9:f6:54:5d:ae:c1:ee:d3:92:50:5b:ae:55:e2:c1:d6:51:8a: + b7:7f:76:00 +-----BEGIN CERTIFICATE----- +MIIDhDCCAmygAwIBAgIBATANBgkqhkiG9w0BAQsFADAXMRUwEwYDVQQDDAxJbnRl +cm1lZGlhdGUwHhcNMTUwMTAxMTIwMDAwWhcNMTYwMTAxMTIwMDAwWjARMQ8wDQYD +VQQDDAZUYXJnZXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtT7tK +jAP8cuDMSZ8sXrPmZNjDSz0E9aCAyWYc5yh+Tr99RRGBZigX4nltOZxtno11iGEB +7QfvQyGUCgJZTZsBrOp3V7YDruLu7D0qpzDuan1YThaZfaAR9VMooE26b2zCnh+X +Hx85UFnM0YeUH6kMUmwhtgAWXKfT+PZJjrNSECV9nR5M2782UJR7+s23S0WR9VtI +6WnM6tAxz97PvsGWCgJLl3qzXyzg/MpCQAOlBl3OsuxsPMC/ZeaTcZKxeFoqAFYp +WKNbpS8vFiuwPURNy884ruzCJFBvJBdrA0+L69oifv8vRDvaeB3UY7B1decP4cvW +qgiStR2LI2Fv5ERxAgMBAAGjgeAwgd0wHQYDVR0OBBYEFGQDs55Fk9zXDpPY1hWY +OBCRK3/wMB8GA1UdIwQYMBaAFN6dbR9dyzfAiN0/Xv6Fk4lyXSnfMD8GCCsGAQUF +BwEBBDMwMTAvBggrBgEFBQcwAoYjaHR0cDovL3VybC1mb3ItYWlhL0ludGVybWVk +aWF0ZS5jZXIwNAYDVR0fBC0wKzApoCegJYYjaHR0cDovL3VybC1mb3ItY3JsL0lu +dGVybWVkaWF0ZS5jcmwwDwYDVR0PAQH/BAUDAwcAgDATBgNVHSUEDDAKBggrBgEF +BQcDATANBgkqhkiG9w0BAQsFAAOCAQEArhS7pIeIOMSedm6b/yV9wzjWw1Frg132 +aTtsVGU9sFjFY/aqDZ1EnWU/K2d5EElaSBAo5QIZc2vKaY6+cQLA3+cXr6SmnPtJ +Pcblfk01m0PbQs0QpeQacC1vlvpTPDzfUAxQ/NOvlrEzbsngU9yL9FkuOojmrIF6 +ZBxutm73zy1OZuidsx5OWT0xqS5yoP/JN5F04WO2SjW7xWMjZK1cWoDS5gOkRIM7 +/3HZZs47HWPyl/AGfhzcMbMgbGhQQD2a6P7Vtw6gjT42Nd/gV9/ZGJCRdwWnEcbJ +bFvsVemfc47imALgF9sQ8AOoyfZUXa7B7tOSUFuuVeLB1lGKt392AA== +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 2 (0x2) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Intermediate + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:ce:e7:93:72:0a:ea:61:19:a3:1a:a6:94:26:db: + 04:bb:49:4a:42:17:11:98:c9:d5:ce:90:19:1c:1f: + c2:8e:19:34:2c:6a:1c:40:ab:c9:8d:dd:fc:15:2b: + dc:30:7a:aa:cb:04:99:9b:d9:59:dd:82:31:50:60: + e3:49:91:e8:de:9c:3b:0d:71:d4:84:2e:e6:0a:dc: + 9d:32:3e:95:1c:16:9b:70:b6:e8:9f:ee:ee:d6:97: + 11:ac:14:0f:1e:94:95:6d:34:c5:17:d1:09:7d:72: + a0:27:b8:45:a4:68:21:d8:99:08:7d:5b:fa:39:12: + 70:23:dc:68:f2:02:22:d3:38:20:0f:28:ed:4f:71: + 63:41:e4:d2:04:9a:c1:52:45:fc:bf:5d:42:72:e1: + 3d:b9:b4:b4:a3:5e:23:5a:42:23:c5:04:de:d1:5c: + 91:5f:b1:b3:4a:61:c5:9c:d5:71:37:cc:1c:06:5e: + 2e:13:40:9b:d4:be:67:9a:6d:e2:51:2e:66:8c:17: + 6e:dd:4b:d8:87:06:22:82:99:85:58:7d:cf:06:ee: + e8:42:6b:3d:06:06:74:c0:de:7a:18:3c:46:cb:d0: + 64:44:6d:33:a1:9f:a8:9a:15:7e:19:77:63:75:a8: + 7d:df:9f:65:9b:96:eb:b2:e4:cc:eb:47:fc:38:5e: + 8d:a5 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + DE:9D:6D:1F:5D:CB:37:C0:88:DD:3F:5E:FE:85:93:89:72:5D:29:DF + X509v3 Authority Key Identifier: + keyid:B7:07:9B:F4:EC:BC:6D:B5:0F:F1:65:46:8E:34:AE:06:83:DF:24:81 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 1c:85:38:ba:71:7e:f7:d1:e2:35:a8:89:6e:07:2c:a2:fe:ce: + 50:06:67:49:1d:e9:80:2b:24:38:db:cc:d8:9e:05:ae:18:25: + 84:7b:cd:1e:2f:a1:3a:ec:27:1d:cd:76:92:f9:9b:66:36:ba: + 34:49:3d:f6:03:b0:52:43:43:4e:ed:f2:47:5f:57:a6:27:30: + 51:81:5c:95:c6:61:02:64:3b:f4:b8:3b:bc:ca:39:76:44:8b: + 1a:29:c0:5c:a0:12:bb:4d:4a:2e:5c:70:80:45:6b:32:1c:2e: + 3d:8e:38:55:a1:2f:e8:f6:c1:23:a5:73:a1:ac:c0:11:c5:20: + 56:4a:94:9a:67:a0:a5:0a:bf:f7:4f:e8:04:41:80:f7:ec:9c: + 41:a7:cf:dd:72:ef:46:6e:97:e3:e6:ae:cf:1a:7d:73:56:26: + 91:61:c7:b4:ec:97:b6:77:27:97:85:0f:ae:ff:67:47:e6:25: + 54:07:a9:2b:f5:37:8e:e5:57:3c:a4:4d:a5:64:cb:0d:91:63: + e6:f0:51:74:80:a0:bf:b4:84:bc:79:c0:84:20:6b:0b:42:15: + 31:25:9d:69:77:61:23:01:d0:5c:5b:f1:3f:36:96:9f:82:6a: + c2:b8:62:3a:95:c3:5d:2c:64:f7:4e:d2:cd:95:fb:a6:cf:e9: + e2:68:86:34 +-----BEGIN CERTIFICATE----- +MIIDbTCCAlWgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowFzEVMBMGA1UEAwwMSW50 +ZXJtZWRpYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzueTcgrq +YRmjGqaUJtsEu0lKQhcRmMnVzpAZHB/Cjhk0LGocQKvJjd38FSvcMHqqywSZm9lZ +3YIxUGDjSZHo3pw7DXHUhC7mCtydMj6VHBabcLbon+7u1pcRrBQPHpSVbTTFF9EJ +fXKgJ7hFpGgh2JkIfVv6ORJwI9xo8gIi0zggDyjtT3FjQeTSBJrBUkX8v11CcuE9 +ubS0o14jWkIjxQTe0VyRX7GzSmHFnNVxN8wcBl4uE0Cb1L5nmm3iUS5mjBdu3UvY +hwYigpmFWH3PBu7oQms9BgZ0wN56GDxGy9BkRG0zoZ+omhV+GXdjdah9359lm5br +suTM60f8OF6NpQIDAQABo4HLMIHIMB0GA1UdDgQWBBTenW0fXcs3wIjdP17+hZOJ +cl0p3zAfBgNVHSMEGDAWgBS3B5v07LxttQ/xZUaONK4Gg98kgTA3BggrBgEFBQcB +AQQrMCkwJwYIKwYBBQUHMAKGG2h0dHA6Ly91cmwtZm9yLWFpYS9Sb290LmNlcjAs +BgNVHR8EJTAjMCGgH6AdhhtodHRwOi8vdXJsLWZvci1jcmwvUm9vdC5jcmwwDgYD +VR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB +AByFOLpxfvfR4jWoiW4HLKL+zlAGZ0kd6YArJDjbzNieBa4YJYR7zR4voTrsJx3N +dpL5m2Y2ujRJPfYDsFJDQ07t8kdfV6YnMFGBXJXGYQJkO/S4O7zKOXZEixopwFyg +ErtNSi5ccIBFazIcLj2OOFWhL+j2wSOlc6GswBHFIFZKlJpnoKUKv/dP6ARBgPfs +nEGnz91y70Zul+Pmrs8afXNWJpFhx7Tsl7Z3J5eFD67/Z0fmJVQHqSv1N47lVzyk +TaVkyw2RY+bwUXSAoL+0hLx5wIQgawtCFTElnWl3YSMB0Fxb8T82lp+CasK4YjqV +w10sZPdO0s2V+6bP6eJohjQ= +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Root + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:93:b1:b1:25:d7:e8:52:1b:b5:db:e0:fb:2e:f5: + 58:32:36:35:6e:06:e9:a6:13:e1:f3:b0:ad:ba:88: + c1:d7:26:c8:88:f7:77:20:5e:c2:88:5a:cc:de:8d: + f3:43:19:7e:9a:c5:3a:fa:78:40:27:40:75:a4:00: + 5e:a6:71:35:ef:e6:cb:e5:a5:6b:a9:05:67:d2:9d: + bd:99:6e:18:9e:29:28:c7:87:46:dc:67:aa:44:dd: + 03:76:ae:f7:c0:19:b7:45:37:ba:6b:ea:31:82:2f: + 6e:5b:91:65:cd:f3:d0:fc:e8:1a:c5:7f:6d:6b:a2: + af:13:2f:17:59:46:e2:d4:2f:13:9c:58:c8:51:35: + ef:cb:1d:70:b6:23:28:44:ae:a4:f0:55:0a:de:69: + 3a:27:24:58:1b:08:c4:b5:e2:92:ef:62:d1:87:07: + 8a:f5:f1:3e:61:2a:ca:6b:27:1f:7c:d3:18:63:ea: + 7c:3d:1f:5e:02:44:29:c7:c8:09:36:bb:c3:bc:3c: + d1:66:04:0f:a7:e7:96:8b:bd:cc:6f:96:f6:78:1a: + f6:8e:8f:d7:f5:1c:42:9c:46:79:65:50:df:32:9e: + 58:e1:92:e9:4c:ec:be:48:19:12:d6:d1:1c:80:d3: + 53:87:9a:27:b8:c7:30:87:f6:63:d5:a5:d2:d2:a5: + 6a:57 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + B7:07:9B:F4:EC:BC:6D:B5:0F:F1:65:46:8E:34:AE:06:83:DF:24:81 + X509v3 Authority Key Identifier: + keyid:B7:07:9B:F4:EC:BC:6D:B5:0F:F1:65:46:8E:34:AE:06:83:DF:24:81 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 13:b0:bb:1d:26:db:26:9f:c0:36:6c:b0:65:82:ce:ad:0f:c0: + 70:d6:6e:56:48:5a:23:9f:f4:df:22:8a:b0:6c:50:42:8d:03: + 97:7f:6e:72:81:a3:69:f6:4e:74:8a:e3:73:1c:ab:08:ca:d9: + f5:e6:85:73:fc:20:45:66:5a:4a:26:33:4e:37:4b:c5:ce:c9: + f3:2d:0d:8b:40:fb:2e:ab:21:09:88:34:ef:c1:71:e9:6a:71: + ed:75:8f:ee:3b:7a:fa:51:28:ea:92:2b:89:54:4f:8d:09:92: + a1:a6:26:30:ee:d8:34:03:24:8d:55:26:fa:06:89:fb:a5:46: + d0:c0:f9:94:15:60:7c:5a:ae:fb:e0:be:e6:28:29:e6:c2:f1: + 8d:4b:c7:03:61:f7:3f:6e:60:b2:20:67:1c:cf:55:74:4d:ec: + d3:c2:c2:f0:ef:e3:9c:55:48:f8:49:2a:f0:6d:10:25:be:50: + 64:f8:3b:90:24:6b:6c:98:2c:1b:4c:db:35:1a:68:12:bf:79: + 7f:6f:c7:65:f6:3b:31:54:8c:c4:17:bc:72:8a:48:01:8c:c2: + 46:86:80:fb:14:63:e9:30:1b:d0:21:83:1c:71:aa:88:11:f0: + 53:43:17:b5:ae:10:8f:d2:11:3a:7c:1c:62:2f:e3:3a:bd:e2: + 76:81:67:68 +-----BEGIN TRUST_ANCHOR_UNCONSTRAINED----- +MIIDZTCCAk2gAwIBAgIBATANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowDzENMAsGA1UEAwwEUm9v +dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJOxsSXX6FIbtdvg+y71 +WDI2NW4G6aYT4fOwrbqIwdcmyIj3dyBewohazN6N80MZfprFOvp4QCdAdaQAXqZx +Ne/my+Wla6kFZ9KdvZluGJ4pKMeHRtxnqkTdA3au98AZt0U3umvqMYIvbluRZc3z +0PzoGsV/bWuirxMvF1lG4tQvE5xYyFE178sdcLYjKESupPBVCt5pOickWBsIxLXi +ku9i0YcHivXxPmEqymsnH3zTGGPqfD0fXgJEKcfICTa7w7w80WYED6fnlou9zG+W +9nga9o6P1/UcQpxGeWVQ3zKeWOGS6UzsvkgZEtbRHIDTU4eaJ7jHMIf2Y9Wl0tKl +alcCAwEAAaOByzCByDAdBgNVHQ4EFgQUtweb9Oy8bbUP8WVGjjSuBoPfJIEwHwYD +VR0jBBgwFoAUtweb9Oy8bbUP8WVGjjSuBoPfJIEwNwYIKwYBBQUHAQEEKzApMCcG +CCsGAQUFBzAChhtodHRwOi8vdXJsLWZvci1haWEvUm9vdC5jZXIwLAYDVR0fBCUw +IzAhoB+gHYYbaHR0cDovL3VybC1mb3ItY3JsL1Jvb3QuY3JsMA4GA1UdDwEB/wQE +AwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQATsLsdJtsm +n8A2bLBlgs6tD8Bw1m5WSFojn/TfIoqwbFBCjQOXf25ygaNp9k50iuNzHKsIytn1 +5oVz/CBFZlpKJjNON0vFzsnzLQ2LQPsuqyEJiDTvwXHpanHtdY/uO3r6USjqkiuJ +VE+NCZKhpiYw7tg0AySNVSb6Bon7pUbQwPmUFWB8Wq774L7mKCnmwvGNS8cDYfc/ +bmCyIGccz1V0TezTwsLw7+OcVUj4SSrwbRAlvlBk+DuQJGtsmCwbTNs1GmgSv3l/ +b8dl9jsxVIzEF7xyikgBjMJGhoD7FGPpMBvQIYMccaqIEfBTQxe1rhCP0hE6fBxi +L+M6veJ2gWdo +-----END TRUST_ANCHOR_UNCONSTRAINED----- + +150302120000Z +-----BEGIN TIME----- +MTUwMzAyMTIwMDAwWg== +-----END TIME----- + +SUCCESS +-----BEGIN VERIFY_RESULT----- +U1VDQ0VTUw== +-----END VERIFY_RESULT----- + +serverAuth +-----BEGIN KEY_PURPOSE----- +c2VydmVyQXV0aA== +-----END KEY_PURPOSE-----
diff --git a/net/data/verify_certificate_chain_unittest/serverauth-rsa-ku-digitalsignature.pem b/net/data/verify_certificate_chain_unittest/serverauth-rsa-ku-digitalsignature.pem new file mode 100644 index 0000000..0bf4b42 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/serverauth-rsa-ku-digitalsignature.pem
@@ -0,0 +1,286 @@ +[Created by: generate-serverauth-rsa-ku-digitalsignature.py] + +Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only digitalSignature. + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Intermediate + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Target + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:c5:7e:f2:5d:c5:ea:a1:5c:84:25:88:33:d7:cc: + e3:60:35:09:1c:fa:84:c8:8c:fb:e1:17:44:1b:a2: + 20:bd:26:d4:e9:4c:25:f8:d0:f4:0c:85:a9:c3:97: + 8a:c6:b9:ec:17:0b:a1:80:75:e5:10:2c:08:63:6d: + 6f:4d:db:1c:c1:d2:77:e8:89:63:aa:bd:f7:02:8d: + 29:10:8e:f3:bd:4b:3a:f7:35:1c:ac:40:6a:bd:31: + a8:69:c0:2b:49:11:0a:3e:9b:e8:f9:c6:c1:6b:74: + 9f:f4:18:3a:d5:66:bd:83:dd:da:dd:d6:f8:6c:53: + 73:7a:6d:9f:17:e5:12:54:6d:3e:86:8d:18:05:91: + 97:a6:3b:a8:d2:7b:45:32:7e:1f:ae:44:67:54:38: + ed:6d:c2:52:d3:2f:9f:b6:3d:de:f7:68:21:58:92: + d4:2a:52:75:68:6f:42:6d:e7:97:76:bc:e7:13:eb: + 7b:4b:74:86:91:22:27:29:4b:bd:30:0b:f4:f7:ce: + 16:3a:52:5f:bd:5c:75:af:5a:71:fc:d8:bd:77:c2: + 6e:13:af:3b:35:18:ed:c6:d7:90:40:88:05:9e:ca: + 09:f9:0a:54:07:b3:16:ea:6a:50:38:9a:52:02:35: + 90:cb:cf:83:da:53:89:ad:d4:13:21:dc:28:03:df: + b7:17 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + AF:70:95:38:BB:6C:27:E5:BA:D2:69:0E:52:43:3B:A9:DE:7D:2C:DE + X509v3 Authority Key Identifier: + keyid:BB:73:63:B7:37:30:F3:34:DD:91:77:CF:4C:DE:03:3B:C9:64:BD:85 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Intermediate.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Intermediate.crl + + X509v3 Key Usage: critical + Digital Signature + X509v3 Extended Key Usage: + TLS Web Server Authentication + Signature Algorithm: sha256WithRSAEncryption + c3:63:39:12:88:4d:d4:e2:d4:9e:f4:ce:20:0b:66:6a:41:7e: + 71:b3:2b:13:4a:af:7a:64:05:66:23:27:bb:91:63:b5:fe:7e: + 1a:3e:f7:9b:4d:4e:45:ca:b6:3b:4a:5c:81:17:04:85:7d:f4: + d5:a4:fc:93:08:a5:c9:12:d6:e7:62:67:87:39:d6:75:cf:b0: + f3:79:23:8d:0f:a9:27:de:16:b6:1d:a3:be:1b:ff:67:c9:f4: + 5a:33:a3:a4:75:79:2c:7c:a3:36:22:33:da:fb:a4:62:48:04: + 07:77:ac:1c:cb:02:15:48:c4:82:8b:55:b3:2e:21:40:80:0b: + a5:9d:1b:62:6d:57:5f:f6:49:d9:6e:a7:9f:e7:af:40:e4:0b: + a8:3d:14:08:db:e7:a1:c6:62:69:4f:48:26:ab:02:5e:0f:90: + 4f:1c:ad:d1:b3:d4:a4:a5:fd:6a:56:5b:a3:4b:9e:e4:b0:8f: + f3:10:23:20:df:7e:77:53:9a:c4:c8:f4:ab:99:7c:c5:85:f0: + d4:7f:7a:72:cd:7d:42:ff:07:d2:23:89:e2:e6:0e:24:3e:7b: + f1:c8:dd:ce:ba:ad:65:23:63:0a:47:03:99:ca:5b:67:8d:15: + f6:f2:f1:68:fb:66:94:2e:4d:4e:7e:b6:7d:9d:b8:d9:ef:3c: + 08:55:d7:16 +-----BEGIN CERTIFICATE----- +MIIDgzCCAmugAwIBAgIBATANBgkqhkiG9w0BAQsFADAXMRUwEwYDVQQDDAxJbnRl +cm1lZGlhdGUwHhcNMTUwMTAxMTIwMDAwWhcNMTYwMTAxMTIwMDAwWjARMQ8wDQYD +VQQDDAZUYXJnZXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDFfvJd +xeqhXIQliDPXzONgNQkc+oTIjPvhF0QboiC9JtTpTCX40PQMhanDl4rGuewXC6GA +deUQLAhjbW9N2xzB0nfoiWOqvfcCjSkQjvO9Szr3NRysQGq9MahpwCtJEQo+m+j5 +xsFrdJ/0GDrVZr2D3drd1vhsU3N6bZ8X5RJUbT6GjRgFkZemO6jSe0Uyfh+uRGdU +OO1twlLTL5+2Pd73aCFYktQqUnVob0Jt55d2vOcT63tLdIaRIicpS70wC/T3zhY6 +Ul+9XHWvWnH82L13wm4Trzs1GO3G15BAiAWeygn5ClQHsxbqalA4mlICNZDLz4Pa +U4mt1BMh3CgD37cXAgMBAAGjgd8wgdwwHQYDVR0OBBYEFK9wlTi7bCflutJpDlJD +O6nefSzeMB8GA1UdIwQYMBaAFLtzY7c3MPM03ZF3z0zeAzvJZL2FMD8GCCsGAQUF +BwEBBDMwMTAvBggrBgEFBQcwAoYjaHR0cDovL3VybC1mb3ItYWlhL0ludGVybWVk +aWF0ZS5jZXIwNAYDVR0fBC0wKzApoCegJYYjaHR0cDovL3VybC1mb3ItY3JsL0lu +dGVybWVkaWF0ZS5jcmwwDgYDVR0PAQH/BAQDAgeAMBMGA1UdJQQMMAoGCCsGAQUF +BwMBMA0GCSqGSIb3DQEBCwUAA4IBAQDDYzkSiE3U4tSe9M4gC2ZqQX5xsysTSq96 +ZAVmIye7kWO1/n4aPvebTU5FyrY7SlyBFwSFffTVpPyTCKXJEtbnYmeHOdZ1z7Dz +eSOND6kn3ha2HaO+G/9nyfRaM6OkdXksfKM2IjPa+6RiSAQHd6wcywIVSMSCi1Wz +LiFAgAulnRtibVdf9knZbqef569A5AuoPRQI2+ehxmJpT0gmqwJeD5BPHK3Rs9Sk +pf1qVlujS57ksI/zECMg3353U5rEyPSrmXzFhfDUf3pyzX1C/wfSI4ni5g4kPnvx +yN3Ouq1lI2MKRwOZyltnjRX28vFo+2aULk1OfrZ9nbjZ7zwIVdcW +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 2 (0x2) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Intermediate + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:e4:08:b7:00:bd:dc:6b:5c:7a:fd:fd:54:76:c0: + b3:d7:c0:ac:43:78:4f:e7:d7:29:04:6e:f2:c1:9a: + 5c:70:86:c9:e4:fb:50:1b:e8:2e:42:71:fb:22:d4: + d8:7d:95:9d:a6:59:a1:e7:db:2e:cc:c7:75:db:c8: + 31:4f:18:fa:a3:b8:bf:d7:0b:08:2d:87:d1:f0:c1: + 4f:2e:2f:4e:48:39:30:cf:62:d0:1d:bf:55:e5:dd: + 4e:63:85:b6:29:ac:91:ec:13:1c:a2:36:e4:2d:f3: + 5b:ec:95:e1:a8:00:86:c5:96:7c:74:a6:18:69:2e: + c2:5b:95:1d:81:46:d4:81:10:24:d9:c9:da:9c:a2: + d0:5c:2d:4f:83:e5:a1:c0:a2:c4:a5:7f:de:78:9c: + 57:af:12:5c:1d:65:62:01:bf:71:49:52:06:3a:bb: + f8:aa:5b:12:80:15:0a:14:7d:46:3e:79:1a:b0:4e: + 6f:59:bc:2f:57:f7:dd:4c:50:82:4c:7d:f9:38:3d: + c4:29:63:0a:a9:df:70:3d:02:da:0c:56:9b:76:9d: + 73:dd:86:11:b8:d7:59:86:e2:16:b3:93:8c:43:33: + 41:b1:6b:38:f3:67:54:00:e3:c1:06:7f:1f:c2:fd: + f4:76:42:63:4c:bc:cb:28:b0:cf:b5:cd:9f:bf:ff: + ea:db + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + BB:73:63:B7:37:30:F3:34:DD:91:77:CF:4C:DE:03:3B:C9:64:BD:85 + X509v3 Authority Key Identifier: + keyid:8F:51:99:A2:01:B7:93:0B:E1:7D:90:CE:20:20:90:C8:B3:73:2E:EB + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 17:40:15:83:75:85:ab:70:bd:8d:e0:ce:52:cd:9e:d5:ea:f1: + b9:1c:e9:8d:9a:58:28:1d:a0:09:14:00:bc:c3:45:96:92:91: + 32:99:6f:da:59:a8:b3:5b:97:f3:ec:a0:ad:8c:7d:45:9a:7e: + 8b:be:90:c9:63:95:f3:97:22:cf:b1:c8:e0:93:95:a2:df:52: + e3:02:7d:d0:5f:22:0a:85:9c:ee:1f:a6:bf:f9:f4:ef:f1:6e: + 61:27:f5:7a:1e:e4:97:a2:27:8e:6c:d4:bc:bd:d8:70:cf:a5: + 5f:07:e1:ab:42:ac:98:09:bf:31:f0:12:5f:54:38:84:18:bd: + 9b:0b:57:ee:bf:be:64:ab:ce:29:da:55:d4:ce:8f:8c:5f:87: + 49:17:21:a8:af:03:cf:b6:e7:9a:df:bf:ee:53:24:f6:f7:b2: + 9c:22:cc:a2:c9:4a:ad:a3:c9:cd:6a:f2:97:ac:17:a6:e6:f5: + f3:d6:ad:8e:2e:7c:39:61:d3:d0:a4:79:08:b5:e8:1c:3a:39: + 4a:a2:3b:69:46:64:14:57:de:58:b0:f2:4c:c2:90:e8:e4:3b: + 56:5b:6e:62:67:22:d2:d0:4c:5b:7c:3f:c9:c0:d3:e9:cf:99: + a1:51:f5:16:9d:ec:1a:ff:c0:6f:83:8b:7b:a9:68:c0:b7:5f: + c9:5c:8c:58 +-----BEGIN CERTIFICATE----- +MIIDbTCCAlWgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowFzEVMBMGA1UEAwwMSW50 +ZXJtZWRpYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5Ai3AL3c +a1x6/f1UdsCz18CsQ3hP59cpBG7ywZpccIbJ5PtQG+guQnH7ItTYfZWdplmh59su +zMd128gxTxj6o7i/1wsILYfR8MFPLi9OSDkwz2LQHb9V5d1OY4W2KayR7BMcojbk +LfNb7JXhqACGxZZ8dKYYaS7CW5UdgUbUgRAk2cnanKLQXC1Pg+WhwKLEpX/eeJxX +rxJcHWViAb9xSVIGOrv4qlsSgBUKFH1GPnkasE5vWbwvV/fdTFCCTH35OD3EKWMK +qd9wPQLaDFabdp1z3YYRuNdZhuIWs5OMQzNBsWs482dUAOPBBn8fwv30dkJjTLzL +KLDPtc2fv//q2wIDAQABo4HLMIHIMB0GA1UdDgQWBBS7c2O3NzDzNN2Rd89M3gM7 +yWS9hTAfBgNVHSMEGDAWgBSPUZmiAbeTC+F9kM4gIJDIs3Mu6zA3BggrBgEFBQcB +AQQrMCkwJwYIKwYBBQUHMAKGG2h0dHA6Ly91cmwtZm9yLWFpYS9Sb290LmNlcjAs +BgNVHR8EJTAjMCGgH6AdhhtodHRwOi8vdXJsLWZvci1jcmwvUm9vdC5jcmwwDgYD +VR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB +ABdAFYN1hatwvY3gzlLNntXq8bkc6Y2aWCgdoAkUALzDRZaSkTKZb9pZqLNbl/Ps +oK2MfUWafou+kMljlfOXIs+xyOCTlaLfUuMCfdBfIgqFnO4fpr/59O/xbmEn9Xoe +5JeiJ45s1Ly92HDPpV8H4atCrJgJvzHwEl9UOIQYvZsLV+6/vmSrzinaVdTOj4xf +h0kXIaivA8+255rfv+5TJPb3spwizKLJSq2jyc1q8pesF6bm9fPWrY4ufDlh09Ck +eQi16Bw6OUqiO2lGZBRX3liw8kzCkOjkO1ZbbmJnItLQTFt8P8nA0+nPmaFR9Rad +7Br/wG+Di3upaMC3X8lcjFg= +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Root + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:c7:66:8c:31:87:5f:d9:77:88:56:9d:5d:f5:0e: + 62:3e:1a:99:ff:2d:5a:89:16:a7:0b:da:ba:c7:5a: + 2f:fa:84:48:fd:e1:f4:e0:f0:ac:f0:66:f9:9f:ce: + c9:54:61:27:48:f6:84:6f:35:31:54:23:3f:b9:c7: + 97:28:7d:30:6e:6d:fd:a0:c2:b9:9b:c0:1f:fb:fa: + 51:5a:89:f7:33:85:bc:58:58:d5:3d:6d:54:c2:3a: + c4:3c:d0:58:ed:43:aa:76:95:68:62:da:75:e2:fd: + dc:11:8d:dc:70:92:c5:3e:15:e3:68:1a:79:17:20: + 81:de:12:75:cb:c8:81:36:f6:a6:2b:8b:35:95:7a: + 49:99:d1:3e:47:04:7e:74:d6:31:4b:a3:a2:09:0c: + 95:18:18:05:2e:e4:6f:5a:1c:aa:1d:29:fe:9d:a9: + 26:da:b6:e4:dc:11:93:a0:4c:af:4a:cc:1a:bc:99: + 2b:3a:52:1f:7c:4c:7a:87:1c:57:95:81:e4:b3:de: + 92:98:e9:c1:22:7a:87:36:b7:a2:97:63:f2:cf:57: + 8b:e0:6b:5b:e4:11:90:c7:5b:15:fe:72:2c:34:c9: + 7e:db:1e:f1:bb:b6:5c:6d:2c:ab:36:4d:22:5e:f0: + 1a:3b:6a:7a:d1:58:f4:84:51:19:b5:39:91:ca:b9: + 0a:13 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 8F:51:99:A2:01:B7:93:0B:E1:7D:90:CE:20:20:90:C8:B3:73:2E:EB + X509v3 Authority Key Identifier: + keyid:8F:51:99:A2:01:B7:93:0B:E1:7D:90:CE:20:20:90:C8:B3:73:2E:EB + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 5d:07:b5:ec:0b:f3:78:ba:bb:f4:27:c2:5b:93:59:f0:0c:52: + cb:fd:36:de:9b:0e:c7:cb:57:46:86:bf:fb:e1:a5:31:20:43: + 17:61:40:37:d1:e7:6f:f0:86:85:23:a2:96:28:a5:e2:bc:53: + 7f:e4:a2:4d:8c:9c:a6:f5:dd:18:1f:e4:a6:66:33:dd:2f:da: + d7:a3:ad:c7:24:a5:e9:ce:68:a3:f1:f5:46:4b:36:40:d0:a3: + 32:c1:14:17:10:ec:27:4d:d2:48:c3:1d:6b:45:92:bb:c9:d6: + cd:25:26:3b:dc:4a:d4:80:89:7b:44:f5:2a:c0:a1:3a:8d:e8: + 60:64:34:45:a7:cb:ef:86:41:90:7d:fb:7d:1f:87:30:b9:49: + 89:21:35:b1:ee:f2:fc:8d:12:08:06:4a:af:07:fb:25:60:83: + 17:ae:27:6e:31:39:ff:de:d9:a9:f5:04:bc:a6:c3:6e:a4:6a: + 07:d6:82:e7:26:fb:9b:6f:88:fa:c7:61:63:cc:15:d2:b4:2c: + af:aa:49:d9:40:a6:ab:c2:3c:7b:e1:07:5c:50:e5:69:59:c7: + e5:8b:ca:70:72:12:f5:5d:6b:b6:05:7c:e2:1b:87:0e:25:4e: + dd:63:91:a6:ca:b3:70:69:97:ce:9a:7c:c8:15:b0:23:b5:1a: + 59:43:cd:3f +-----BEGIN TRUST_ANCHOR_UNCONSTRAINED----- +MIIDZTCCAk2gAwIBAgIBATANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowDzENMAsGA1UEAwwEUm9v +dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMdmjDGHX9l3iFadXfUO +Yj4amf8tWokWpwvausdaL/qESP3h9ODwrPBm+Z/OyVRhJ0j2hG81MVQjP7nHlyh9 +MG5t/aDCuZvAH/v6UVqJ9zOFvFhY1T1tVMI6xDzQWO1DqnaVaGLadeL93BGN3HCS +xT4V42gaeRcggd4SdcvIgTb2piuLNZV6SZnRPkcEfnTWMUujogkMlRgYBS7kb1oc +qh0p/p2pJtq25NwRk6BMr0rMGryZKzpSH3xMeoccV5WB5LPekpjpwSJ6hza3opdj +8s9Xi+BrW+QRkMdbFf5yLDTJftse8bu2XG0sqzZNIl7wGjtqetFY9IRRGbU5kcq5 +ChMCAwEAAaOByzCByDAdBgNVHQ4EFgQUj1GZogG3kwvhfZDOICCQyLNzLuswHwYD +VR0jBBgwFoAUj1GZogG3kwvhfZDOICCQyLNzLuswNwYIKwYBBQUHAQEEKzApMCcG +CCsGAQUFBzAChhtodHRwOi8vdXJsLWZvci1haWEvUm9vdC5jZXIwLAYDVR0fBCUw +IzAhoB+gHYYbaHR0cDovL3VybC1mb3ItY3JsL1Jvb3QuY3JsMA4GA1UdDwEB/wQE +AwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBdB7XsC/N4 +urv0J8Jbk1nwDFLL/Tbemw7Hy1dGhr/74aUxIEMXYUA30edv8IaFI6KWKKXivFN/ +5KJNjJym9d0YH+SmZjPdL9rXo63HJKXpzmij8fVGSzZA0KMywRQXEOwnTdJIwx1r +RZK7ydbNJSY73ErUgIl7RPUqwKE6jehgZDRFp8vvhkGQfft9H4cwuUmJITWx7vL8 +jRIIBkqvB/slYIMXriduMTn/3tmp9QS8psNupGoH1oLnJvubb4j6x2FjzBXStCyv +qknZQKarwjx74QdcUOVpWcfli8pwchL1XWu2BXziG4cOJU7dY5GmyrNwaZfOmnzI +FbAjtRpZQ80/ +-----END TRUST_ANCHOR_UNCONSTRAINED----- + +150302120000Z +-----BEGIN TIME----- +MTUwMzAyMTIwMDAwWg== +-----END TIME----- + +SUCCESS +-----BEGIN VERIFY_RESULT----- +U1VDQ0VTUw== +-----END VERIFY_RESULT----- + +serverAuth +-----BEGIN KEY_PURPOSE----- +c2VydmVyQXV0aA== +-----END KEY_PURPOSE-----
diff --git a/net/data/verify_certificate_chain_unittest/serverauth-rsa-ku-keyagreement.pem b/net/data/verify_certificate_chain_unittest/serverauth-rsa-ku-keyagreement.pem new file mode 100644 index 0000000..af47df9 --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/serverauth-rsa-ku-keyagreement.pem
@@ -0,0 +1,286 @@ +[Created by: generate-serverauth-rsa-ku-keyagreement.py] + +Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only keyAgreement. + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Intermediate + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Target + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:c2:71:61:77:a3:d3:f2:28:4a:34:25:90:1c:f7: + a1:1b:3f:69:d9:ff:ce:c2:4a:bd:e1:61:a1:25:5f: + 47:9e:61:0e:91:14:c6:b1:26:41:8c:2a:5f:6e:8c: + 2d:a7:89:89:55:95:58:44:6c:4f:87:6d:7b:64:77: + de:1f:eb:51:ad:48:cf:16:44:93:89:1b:d7:6c:54: + 76:71:86:28:11:b9:bc:c5:39:72:9f:1e:6c:78:de: + 43:0a:d2:91:b4:65:a2:99:e1:97:f9:ef:ea:b6:71: + 90:c9:fd:ed:14:9a:55:ed:17:30:43:ee:45:b1:c5: + 03:42:74:6e:33:d9:68:f1:28:ff:7c:78:6f:84:73: + 39:a3:1e:53:e0:4a:ef:92:b2:53:30:83:1f:ec:08: + 81:60:6b:44:ea:7e:c1:c9:cc:9f:71:7d:b5:47:6d: + 50:05:56:28:96:39:d7:82:46:34:ad:a9:60:05:e3: + e0:4c:d9:ba:a6:70:b2:cd:ba:f4:7a:09:c1:f1:bf: + d0:3b:f2:46:e9:39:30:c2:d2:09:34:48:d9:1b:22: + b8:ba:c6:38:29:89:9a:01:ea:9a:a2:4e:71:eb:62: + 3c:e3:8f:c5:e1:36:34:d0:b4:94:44:2e:c5:6b:fd: + 8e:6d:1d:bb:a6:9a:78:a2:60:36:c7:2c:15:64:6c: + 47:29 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 8B:F3:5A:A4:F4:0E:9C:EC:39:8A:A0:B0:B9:30:72:E9:8B:75:AB:71 + X509v3 Authority Key Identifier: + keyid:80:14:1E:04:C6:A0:C4:28:25:30:28:59:BD:40:1A:65:07:05:18:38 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Intermediate.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Intermediate.crl + + X509v3 Key Usage: critical + Key Agreement + X509v3 Extended Key Usage: + TLS Web Server Authentication + Signature Algorithm: sha256WithRSAEncryption + 87:b2:f4:c9:6e:18:e1:0e:6c:52:46:e0:b9:e3:17:9b:fa:84: + 52:da:41:17:dd:3f:5a:f2:95:1d:d8:2f:5f:73:65:0a:85:dd: + 62:d8:a1:86:37:f0:40:81:57:09:ff:4d:1c:37:a5:1e:a8:75: + fb:6a:54:3d:03:92:28:2f:8c:ab:7e:fc:bb:a4:b9:1e:35:2c: + 7c:fe:b0:f8:87:6b:11:e4:8f:72:00:68:54:bd:5e:f3:a8:4f: + d3:20:58:c9:b7:96:28:9c:44:f5:16:8d:24:17:d5:19:e8:73: + 2b:55:cf:d5:ba:cd:ac:55:e5:ab:cc:6c:2b:1d:bb:bd:5c:80: + c0:cb:a3:5d:99:22:c8:ca:68:22:64:55:1c:46:fd:a9:27:a2: + 46:0c:af:17:fb:65:bc:79:24:d9:a1:06:57:ea:c6:5f:15:2b: + c7:45:47:1a:c0:9c:d9:90:33:37:b4:7e:e9:51:ba:7f:f5:b0: + 6a:c9:92:13:5d:da:b4:d6:f2:90:01:c3:a9:b7:bf:19:e3:13: + 58:a3:e3:63:6d:aa:17:cf:17:a9:c6:db:ce:30:75:5d:e2:be: + 16:57:04:a4:74:90:78:64:92:c5:68:d2:cc:5b:14:44:a6:01: + 52:a2:6e:be:d6:f9:b0:5b:b5:22:36:78:41:73:a9:62:1b:0f: + 77:34:a9:21 +-----BEGIN CERTIFICATE----- +MIIDgzCCAmugAwIBAgIBATANBgkqhkiG9w0BAQsFADAXMRUwEwYDVQQDDAxJbnRl +cm1lZGlhdGUwHhcNMTUwMTAxMTIwMDAwWhcNMTYwMTAxMTIwMDAwWjARMQ8wDQYD +VQQDDAZUYXJnZXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDCcWF3 +o9PyKEo0JZAc96EbP2nZ/87CSr3hYaElX0eeYQ6RFMaxJkGMKl9ujC2niYlVlVhE +bE+HbXtkd94f61GtSM8WRJOJG9dsVHZxhigRubzFOXKfHmx43kMK0pG0ZaKZ4Zf5 +7+q2cZDJ/e0UmlXtFzBD7kWxxQNCdG4z2WjxKP98eG+EczmjHlPgSu+SslMwgx/s +CIFga0TqfsHJzJ9xfbVHbVAFViiWOdeCRjStqWAF4+BM2bqmcLLNuvR6CcHxv9A7 +8kbpOTDC0gk0SNkbIri6xjgpiZoB6pqiTnHrYjzjj8XhNjTQtJRELsVr/Y5tHbum +mniiYDbHLBVkbEcpAgMBAAGjgd8wgdwwHQYDVR0OBBYEFIvzWqT0DpzsOYqgsLkw +cumLdatxMB8GA1UdIwQYMBaAFIAUHgTGoMQoJTAoWb1AGmUHBRg4MD8GCCsGAQUF +BwEBBDMwMTAvBggrBgEFBQcwAoYjaHR0cDovL3VybC1mb3ItYWlhL0ludGVybWVk +aWF0ZS5jZXIwNAYDVR0fBC0wKzApoCegJYYjaHR0cDovL3VybC1mb3ItY3JsL0lu +dGVybWVkaWF0ZS5jcmwwDgYDVR0PAQH/BAQDAgMIMBMGA1UdJQQMMAoGCCsGAQUF +BwMBMA0GCSqGSIb3DQEBCwUAA4IBAQCHsvTJbhjhDmxSRuC54xeb+oRS2kEX3T9a +8pUd2C9fc2UKhd1i2KGGN/BAgVcJ/00cN6UeqHX7alQ9A5IoL4yrfvy7pLkeNSx8 +/rD4h2sR5I9yAGhUvV7zqE/TIFjJt5YonET1Fo0kF9UZ6HMrVc/Vus2sVeWrzGwr +Hbu9XIDAy6NdmSLIymgiZFUcRv2pJ6JGDK8X+2W8eSTZoQZX6sZfFSvHRUcawJzZ +kDM3tH7pUbp/9bBqyZITXdq01vKQAcOpt78Z4xNYo+NjbaoXzxepxtvOMHVd4r4W +VwSkdJB4ZJLFaNLMWxREpgFSom6+1vmwW7UiNnhBc6liGw93NKkh +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 2 (0x2) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Intermediate + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:ad:ea:23:0c:dc:31:55:3d:23:7a:a3:0f:5e:16: + 9e:62:44:e4:28:bf:0b:b0:76:a3:5e:71:e7:a9:85: + 52:1e:ae:3b:2b:21:0d:95:35:73:c2:c0:a0:78:13: + d3:fc:27:57:8a:98:de:83:e3:8f:a3:13:a5:20:a7: + a9:bf:c8:f5:02:1b:08:1a:2e:a5:04:7a:11:24:a1: + 59:11:3d:c0:3b:57:35:62:cd:2a:41:cd:5c:15:35: + ac:c8:66:f8:a9:f2:d4:1c:0c:b4:dc:9d:7b:99:f9: + 07:1b:c9:f0:03:6a:6c:71:d8:e6:cb:7a:ec:c7:a7: + b7:36:0b:f0:49:22:37:22:f4:77:f3:1a:a6:57:59: + 0b:6c:6a:3b:b8:d1:47:df:48:ac:54:ee:82:1e:39: + 14:dc:a6:9c:ab:33:b7:87:4f:3b:70:55:af:db:40: + e5:26:a9:0f:bc:59:8f:61:92:47:0a:34:73:de:fb: + 25:fa:f1:bd:a4:03:35:93:5e:57:a3:a3:3f:13:e6: + 09:68:c5:51:29:20:53:b8:5e:fa:8a:ce:e8:0a:ef: + 9e:07:6e:55:f7:f6:c1:e7:12:9f:22:c1:72:b8:2a: + af:25:34:eb:08:28:36:73:8e:f6:80:70:21:16:8a: + 81:2b:69:47:62:c5:ef:7e:dd:80:7c:09:4e:6d:57: + 86:4f + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 80:14:1E:04:C6:A0:C4:28:25:30:28:59:BD:40:1A:65:07:05:18:38 + X509v3 Authority Key Identifier: + keyid:71:50:52:35:92:69:F7:54:B1:8A:0C:C1:93:87:3E:84:E9:BE:5C:80 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 13:bc:fc:4c:c8:34:97:a7:cb:9c:1f:4f:2d:bd:64:07:c0:2f: + 9e:e2:1b:b5:d4:03:b9:3e:19:47:5d:35:e2:1a:76:76:0e:b6: + 6c:18:00:43:64:53:6f:27:46:56:01:90:3f:2a:e5:7c:68:ea: + 7c:3f:f1:ac:8f:2b:80:8c:d8:0e:fc:3d:4a:06:85:b1:c5:8a: + d4:d4:b2:f4:d3:20:b8:d3:6e:26:38:80:1c:01:ed:89:9c:0d: + d9:6f:be:34:e0:ba:cf:37:16:0b:f6:bf:fd:fd:05:79:c7:7b: + 31:07:56:d3:70:bb:94:b8:36:08:35:ca:5e:10:14:db:1d:30: + 53:1e:4a:bf:8a:1e:70:4e:77:4d:07:1e:c3:41:f4:7a:dc:a7: + 4f:96:17:2a:b3:50:03:19:50:45:dd:68:f7:77:ca:78:14:84: + bd:6e:63:c0:e3:17:c0:7c:18:c3:cd:0a:48:aa:75:58:f6:76: + 75:0a:92:e4:45:09:64:b3:f1:4e:40:dd:40:74:4b:75:cc:b3: + 4c:e1:23:01:78:d3:d4:9a:d2:2e:8f:09:50:14:d8:bd:82:1f: + ea:f4:97:4d:c7:9a:d5:23:a0:7d:73:77:8c:4f:b3:78:d0:cf: + 82:39:0d:26:8d:f6:33:20:0e:6d:78:c0:82:4f:2b:0a:ac:8d: + 9b:23:1d:3a +-----BEGIN CERTIFICATE----- +MIIDbTCCAlWgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowFzEVMBMGA1UEAwwMSW50 +ZXJtZWRpYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAreojDNwx +VT0jeqMPXhaeYkTkKL8LsHajXnHnqYVSHq47KyENlTVzwsCgeBPT/CdXipjeg+OP +oxOlIKepv8j1AhsIGi6lBHoRJKFZET3AO1c1Ys0qQc1cFTWsyGb4qfLUHAy03J17 +mfkHG8nwA2pscdjmy3rsx6e3NgvwSSI3IvR38xqmV1kLbGo7uNFH30isVO6CHjkU +3KacqzO3h087cFWv20DlJqkPvFmPYZJHCjRz3vsl+vG9pAM1k15Xo6M/E+YJaMVR +KSBTuF76is7oCu+eB25V9/bB5xKfIsFyuCqvJTTrCCg2c472gHAhFoqBK2lHYsXv +ft2AfAlObVeGTwIDAQABo4HLMIHIMB0GA1UdDgQWBBSAFB4ExqDEKCUwKFm9QBpl +BwUYODAfBgNVHSMEGDAWgBRxUFI1kmn3VLGKDMGThz6E6b5cgDA3BggrBgEFBQcB +AQQrMCkwJwYIKwYBBQUHMAKGG2h0dHA6Ly91cmwtZm9yLWFpYS9Sb290LmNlcjAs +BgNVHR8EJTAjMCGgH6AdhhtodHRwOi8vdXJsLWZvci1jcmwvUm9vdC5jcmwwDgYD +VR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB +ABO8/EzINJeny5wfTy29ZAfAL57iG7XUA7k+GUddNeIadnYOtmwYAENkU28nRlYB +kD8q5Xxo6nw/8ayPK4CM2A78PUoGhbHFitTUsvTTILjTbiY4gBwB7YmcDdlvvjTg +us83Fgv2v/39BXnHezEHVtNwu5S4Ngg1yl4QFNsdMFMeSr+KHnBOd00HHsNB9Hrc +p0+WFyqzUAMZUEXdaPd3yngUhL1uY8DjF8B8GMPNCkiqdVj2dnUKkuRFCWSz8U5A +3UB0S3XMs0zhIwF409Sa0i6PCVAU2L2CH+r0l03HmtUjoH1zd4xPs3jQz4I5DSaN +9jMgDm14wIJPKwqsjZsjHTo= +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Root + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:b2:df:0b:0b:a2:8a:9c:9c:68:ad:24:f9:f9:e6: + 95:ef:e4:71:1e:00:fb:ec:bf:b1:cb:6e:d6:40:30: + 42:7a:38:87:9e:5b:cd:58:3e:b7:31:5c:8d:0d:84: + 7a:be:ef:e6:98:ba:4e:c5:ae:2b:2f:66:b2:b2:3f: + e7:c0:a8:8b:75:60:61:2a:67:8a:d2:55:72:83:e2: + ff:de:76:d6:63:58:79:ba:91:c1:80:e1:06:1b:35: + 9c:b3:e9:19:f8:c7:21:80:dd:9e:04:18:35:de:df: + 00:80:21:09:06:3c:6c:9a:de:10:d1:fd:4d:2f:27: + 5e:56:24:44:67:88:48:e4:25:52:cc:c7:17:3f:69: + 1f:76:fc:b1:83:45:48:5d:37:da:80:3e:3d:7f:f6: + 8d:ec:83:00:d6:2f:c4:41:5d:79:ae:ad:14:4c:24: + b3:5e:1e:fe:ed:e8:39:17:4a:4b:ca:eb:10:5d:6e: + af:38:58:b1:12:a5:69:bd:bd:63:dd:f5:21:71:2c: + 36:37:72:51:3b:3a:de:8f:1e:a0:e2:6b:45:da:02: + ad:7e:04:b7:d3:c8:64:34:c6:f4:08:a0:e5:c9:02: + 1b:6f:42:22:be:d3:8b:7b:63:6e:39:c4:97:17:c6: + 9a:ba:9e:26:9b:e1:65:a6:4d:4a:93:5e:b2:4e:18: + 9d:c1 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 71:50:52:35:92:69:F7:54:B1:8A:0C:C1:93:87:3E:84:E9:BE:5C:80 + X509v3 Authority Key Identifier: + keyid:71:50:52:35:92:69:F7:54:B1:8A:0C:C1:93:87:3E:84:E9:BE:5C:80 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 7a:ca:a0:87:28:94:f4:16:26:cb:1d:3b:96:f7:ad:17:71:18: + 31:86:79:f0:f4:eb:57:33:61:58:33:ab:45:b4:40:50:05:a7: + c6:b6:a8:38:b7:50:9f:59:85:f2:57:33:e9:6a:62:2b:4d:5d: + c9:fb:fe:a1:ca:ce:59:25:5d:e7:fb:55:79:11:a5:ef:15:51: + 90:94:9a:58:20:ef:a9:83:38:42:2d:11:e8:18:d9:2d:1f:3f: + 1e:52:e3:59:25:d5:2d:f2:dd:ff:0c:89:07:68:05:45:3c:0e: + 85:3c:1f:e9:81:5f:c3:f7:ea:c2:d1:ed:24:d8:55:83:14:75: + 49:3f:52:e2:19:24:f6:d6:9f:82:75:74:e5:97:af:af:04:ab: + 6b:41:c7:61:1c:9b:ed:3e:9c:c6:ff:e7:61:3b:20:29:30:5f: + 5f:b5:47:71:c6:87:ae:aa:31:ce:d1:b1:3f:27:ee:ca:66:0e: + 6d:2b:e1:99:66:66:94:81:10:18:28:4f:51:32:7a:c4:e1:ce: + 16:ae:69:26:0e:ad:2e:e0:30:cc:52:00:18:3d:e2:75:76:83: + 1f:19:02:7c:f6:54:1e:77:f8:18:e2:1e:c0:0b:2a:b9:6a:6a: + 69:25:5d:a7:f9:c9:3b:bd:22:cc:3b:f1:fd:41:f1:a5:fc:6b: + 65:9e:df:7c +-----BEGIN TRUST_ANCHOR_UNCONSTRAINED----- +MIIDZTCCAk2gAwIBAgIBATANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowDzENMAsGA1UEAwwEUm9v +dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALLfCwuiipycaK0k+fnm +le/kcR4A++y/sctu1kAwQno4h55bzVg+tzFcjQ2Eer7v5pi6TsWuKy9msrI/58Co +i3VgYSpnitJVcoPi/9521mNYebqRwYDhBhs1nLPpGfjHIYDdngQYNd7fAIAhCQY8 +bJreENH9TS8nXlYkRGeISOQlUszHFz9pH3b8sYNFSF032oA+PX/2jeyDANYvxEFd +ea6tFEwks14e/u3oORdKS8rrEF1urzhYsRKlab29Y931IXEsNjdyUTs63o8eoOJr +RdoCrX4Et9PIZDTG9Aig5ckCG29CIr7Ti3tjbjnElxfGmrqeJpvhZaZNSpNesk4Y +ncECAwEAAaOByzCByDAdBgNVHQ4EFgQUcVBSNZJp91SxigzBk4c+hOm+XIAwHwYD +VR0jBBgwFoAUcVBSNZJp91SxigzBk4c+hOm+XIAwNwYIKwYBBQUHAQEEKzApMCcG +CCsGAQUFBzAChhtodHRwOi8vdXJsLWZvci1haWEvUm9vdC5jZXIwLAYDVR0fBCUw +IzAhoB+gHYYbaHR0cDovL3VybC1mb3ItY3JsL1Jvb3QuY3JsMA4GA1UdDwEB/wQE +AwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQB6yqCHKJT0 +FibLHTuW960XcRgxhnnw9OtXM2FYM6tFtEBQBafGtqg4t1CfWYXyVzPpamIrTV3J ++/6hys5ZJV3n+1V5EaXvFVGQlJpYIO+pgzhCLRHoGNktHz8eUuNZJdUt8t3/DIkH +aAVFPA6FPB/pgV/D9+rC0e0k2FWDFHVJP1LiGST21p+CdXTll6+vBKtrQcdhHJvt +PpzG/+dhOyApMF9ftUdxxoeuqjHO0bE/J+7KZg5tK+GZZmaUgRAYKE9RMnrE4c4W +rmkmDq0u4DDMUgAYPeJ1doMfGQJ89lQed/gY4h7ACyq5amppJV2n+ck7vSLMO/H9 +QfGl/Gtlnt98 +-----END TRUST_ANCHOR_UNCONSTRAINED----- + +150302120000Z +-----BEGIN TIME----- +MTUwMzAyMTIwMDAwWg== +-----END TIME----- + +SUCCESS +-----BEGIN VERIFY_RESULT----- +U1VDQ0VTUw== +-----END VERIFY_RESULT----- + +serverAuth +-----BEGIN KEY_PURPOSE----- +c2VydmVyQXV0aA== +-----END KEY_PURPOSE-----
diff --git a/net/data/verify_certificate_chain_unittest/serverauth-rsa-ku-keyencipherment.pem b/net/data/verify_certificate_chain_unittest/serverauth-rsa-ku-keyencipherment.pem new file mode 100644 index 0000000..ae9a30a --- /dev/null +++ b/net/data/verify_certificate_chain_unittest/serverauth-rsa-ku-keyencipherment.pem
@@ -0,0 +1,286 @@ +[Created by: generate-serverauth-rsa-ku-keyencipherment.py] + +Certificate chain with 1 intermediate, a trusted root, and a target +certificate for serverAuth that has only keyEncipherment. + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Intermediate + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Target + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:be:70:8e:8b:b3:94:90:81:27:a9:43:8b:04:f8: + e8:ab:93:a6:49:b7:a3:ee:b8:7f:3f:0c:74:c5:88: + 08:51:62:de:3e:d9:2b:37:e8:8b:e4:6c:a5:1a:90: + be:9a:55:fc:9f:d8:e7:d5:9a:97:58:f1:e6:a3:47: + 99:f7:f8:73:eb:58:dd:be:0f:52:b9:39:a7:3f:35: + 27:ba:be:93:b0:d1:ff:51:88:04:f4:96:a2:e1:9a: + 19:e0:ef:e0:22:86:0e:be:cb:74:4d:be:aa:37:43: + e0:40:47:bf:3b:f2:4d:b7:25:ff:e1:56:be:5a:65: + 51:27:e2:19:a6:7c:cd:8f:d6:ae:9c:a2:f3:b0:89: + fa:36:ae:ac:52:17:2c:98:e4:e2:4a:75:3e:86:53: + ee:39:fb:ba:2b:7f:94:17:26:44:aa:17:44:0f:30: + 5a:d1:02:c0:ce:72:cf:9a:21:3a:65:06:f9:e1:63: + 45:b0:a8:60:84:33:70:63:a6:96:fe:2c:a6:38:80: + d3:c8:6c:99:f6:ea:17:cb:a1:fe:dc:ef:ee:aa:15: + d2:ed:9f:87:93:39:60:ae:f1:aa:bb:82:fe:61:c9: + 4f:46:98:2a:68:fe:76:d8:b8:c9:c3:79:5e:3c:95: + c4:3e:46:ae:e8:16:7b:4e:f1:16:94:27:f3:62:d2: + 20:5d + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 2F:AD:49:2C:16:DB:32:20:57:BA:06:6C:CE:D6:34:86:BB:04:80:8A + X509v3 Authority Key Identifier: + keyid:0E:E3:46:47:04:CC:5D:6F:59:87:24:CF:23:57:BC:9E:91:DE:15:B0 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Intermediate.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Intermediate.crl + + X509v3 Key Usage: critical + Key Encipherment + X509v3 Extended Key Usage: + TLS Web Server Authentication + Signature Algorithm: sha256WithRSAEncryption + 63:3b:32:00:83:47:82:36:ba:79:68:ee:12:c3:0a:28:1b:69: + d9:4c:c0:28:4b:f9:ec:2f:33:fd:f9:6a:88:cc:e7:82:92:6a: + b1:b7:d3:f4:7a:80:8d:e8:52:8c:b1:1a:0a:96:01:44:51:11: + db:58:05:b0:f3:02:5b:5f:77:e8:71:26:06:8a:b5:24:c8:ee: + e2:87:f3:b6:ab:51:be:33:e9:8d:a4:46:91:99:ca:ae:03:f5: + bc:50:2b:ca:78:7b:97:be:d5:93:cf:02:ff:d3:f5:59:8a:f4: + c9:a1:f8:d4:65:4c:40:cd:94:5e:f9:7f:d9:32:ff:bd:75:77: + 21:c9:47:d4:d6:d3:7c:f2:68:a4:10:27:9a:c0:f6:ce:ea:2a: + d7:7c:54:b6:9a:13:27:7b:d1:b8:73:b1:00:4e:59:ca:8b:9b: + 0a:08:fe:ed:93:b0:5e:86:c0:52:70:f3:bb:03:4c:e8:08:f2: + 05:e3:d8:e9:18:06:0b:a6:de:c2:0b:b0:81:e8:0c:82:1a:06: + 4f:77:0d:d6:67:fb:74:b6:97:1c:4c:66:c8:0b:88:70:0c:c1: + 9b:29:77:60:b8:f7:35:27:92:a5:31:77:9b:74:d4:a8:f1:8d: + 5f:90:f7:aa:12:5b:71:16:60:73:4c:a9:27:8d:5a:08:6e:87: + 40:7e:ba:d3 +-----BEGIN CERTIFICATE----- +MIIDgzCCAmugAwIBAgIBATANBgkqhkiG9w0BAQsFADAXMRUwEwYDVQQDDAxJbnRl +cm1lZGlhdGUwHhcNMTUwMTAxMTIwMDAwWhcNMTYwMTAxMTIwMDAwWjARMQ8wDQYD +VQQDDAZUYXJnZXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC+cI6L +s5SQgSepQ4sE+Oirk6ZJt6PuuH8/DHTFiAhRYt4+2Ss36IvkbKUakL6aVfyf2OfV +mpdY8eajR5n3+HPrWN2+D1K5Oac/NSe6vpOw0f9RiAT0lqLhmhng7+Aihg6+y3RN +vqo3Q+BAR7878k23Jf/hVr5aZVEn4hmmfM2P1q6covOwifo2rqxSFyyY5OJKdT6G +U+45+7orf5QXJkSqF0QPMFrRAsDOcs+aITplBvnhY0WwqGCEM3Bjppb+LKY4gNPI +bJn26hfLof7c7+6qFdLtn4eTOWCu8aq7gv5hyU9GmCpo/nbYuMnDeV48lcQ+Rq7o +FntO8RaUJ/Ni0iBdAgMBAAGjgd8wgdwwHQYDVR0OBBYEFC+tSSwW2zIgV7oGbM7W +NIa7BICKMB8GA1UdIwQYMBaAFA7jRkcEzF1vWYckzyNXvJ6R3hWwMD8GCCsGAQUF +BwEBBDMwMTAvBggrBgEFBQcwAoYjaHR0cDovL3VybC1mb3ItYWlhL0ludGVybWVk +aWF0ZS5jZXIwNAYDVR0fBC0wKzApoCegJYYjaHR0cDovL3VybC1mb3ItY3JsL0lu +dGVybWVkaWF0ZS5jcmwwDgYDVR0PAQH/BAQDAgUgMBMGA1UdJQQMMAoGCCsGAQUF +BwMBMA0GCSqGSIb3DQEBCwUAA4IBAQBjOzIAg0eCNrp5aO4SwwooG2nZTMAoS/ns +LzP9+WqIzOeCkmqxt9P0eoCN6FKMsRoKlgFEURHbWAWw8wJbX3focSYGirUkyO7i +h/O2q1G+M+mNpEaRmcquA/W8UCvKeHuXvtWTzwL/0/VZivTJofjUZUxAzZRe+X/Z +Mv+9dXchyUfU1tN88mikECeawPbO6irXfFS2mhMne9G4c7EATlnKi5sKCP7tk7Be +hsBScPO7A0zoCPIF49jpGAYLpt7CC7CB6AyCGgZPdw3WZ/t0tpccTGbIC4hwDMGb +KXdguPc1J5KlMXebdNSo8Y1fkPeqEltxFmBzTKknjVoIbodAfrrT +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 2 (0x2) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Intermediate + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:9c:9a:1b:3a:9b:94:b9:b4:cc:58:be:93:c2:b0: + 8f:a1:c1:29:07:5c:3a:51:ce:ab:46:8f:e6:d2:9f: + 79:a1:ec:4a:d6:40:59:9d:0f:e0:6e:e0:cd:88:f1: + e6:ca:83:0c:6c:53:31:af:69:66:b6:80:96:d8:68: + c4:45:1d:6b:94:78:48:83:56:ca:61:34:6e:88:1c: + 04:65:67:dc:47:bf:95:a6:6f:8e:90:87:95:b8:19: + 8b:66:49:cf:15:8a:74:c9:c5:9a:22:11:df:8f:1b: + c1:b1:c0:e1:06:c6:4e:60:99:0f:78:cf:d8:75:a2: + f8:1e:f7:b7:cd:69:3b:07:c8:28:de:dd:6d:64:59: + c4:f8:b4:aa:63:bc:0e:d2:74:e7:4e:a2:73:5d:c6: + b2:49:a7:38:d1:99:f4:90:4c:9f:51:cd:37:7f:d5: + 68:a1:35:99:17:e7:fa:62:23:de:64:36:c9:d3:de: + b6:3b:69:97:2b:ca:e7:f4:0a:0f:5e:df:55:0a:00: + ac:6d:27:e6:2f:f9:08:99:69:d2:34:2c:3d:9f:65: + df:59:ca:df:06:a4:a9:05:f9:2e:fb:d5:15:2c:77: + 19:4c:06:03:09:df:2b:07:aa:da:e6:a4:ff:79:eb: + 0f:da:7e:29:ad:4c:dd:f7:13:f9:65:49:43:6f:89: + 98:fd + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 0E:E3:46:47:04:CC:5D:6F:59:87:24:CF:23:57:BC:9E:91:DE:15:B0 + X509v3 Authority Key Identifier: + keyid:54:56:C6:20:3C:8C:EE:44:C8:B4:6F:DB:71:32:B7:92:B0:69:52:05 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 65:45:bc:b2:d5:33:41:43:20:e1:fd:4a:11:e0:c8:76:8c:2f: + dc:77:50:85:5a:a9:c7:d8:60:a4:48:df:3b:68:71:bd:37:3d: + e1:af:74:6b:78:91:38:7f:cc:0b:d4:38:fc:fb:2c:5b:5b:8b: + fe:c9:07:d0:56:dd:f9:84:d3:b6:1d:60:fe:23:56:c6:6c:00: + 20:8a:20:fc:df:b0:e9:23:bd:25:15:58:d8:2b:ce:ad:aa:7f: + f7:9a:17:74:92:82:61:6c:2e:76:ea:e6:3e:15:e8:f5:b9:f9: + 06:22:d0:a4:cd:d7:ca:5c:bb:2b:25:62:7e:64:3b:22:e3:f6: + 6e:ac:5d:43:a1:bc:5c:4b:53:5c:43:a6:f6:31:d9:35:cd:37: + 7b:9c:08:46:2c:49:5c:da:2c:e2:00:73:75:e7:05:66:5e:ca: + 70:40:28:d3:47:dc:5f:29:e4:08:e4:97:b9:b5:e9:d7:68:1c: + b4:33:30:da:21:69:ff:df:65:5a:7c:b2:62:36:ed:5f:d5:f7: + 00:ef:56:59:51:d1:a8:aa:32:28:12:18:05:0a:f2:ab:cb:3f: + 38:a0:d8:2e:d8:5a:bd:dc:4e:e5:45:a8:ce:49:ac:55:96:48: + f2:2b:87:b2:3d:c3:b9:bc:94:8b:d7:8a:ae:aa:7a:4f:6d:2c: + 9f:36:c6:27 +-----BEGIN CERTIFICATE----- +MIIDbTCCAlWgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowFzEVMBMGA1UEAwwMSW50 +ZXJtZWRpYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnJobOpuU +ubTMWL6TwrCPocEpB1w6Uc6rRo/m0p95oexK1kBZnQ/gbuDNiPHmyoMMbFMxr2lm +toCW2GjERR1rlHhIg1bKYTRuiBwEZWfcR7+Vpm+OkIeVuBmLZknPFYp0ycWaIhHf +jxvBscDhBsZOYJkPeM/YdaL4Hve3zWk7B8go3t1tZFnE+LSqY7wO0nTnTqJzXcay +Sac40Zn0kEyfUc03f9VooTWZF+f6YiPeZDbJ0962O2mXK8rn9AoPXt9VCgCsbSfm +L/kImWnSNCw9n2XfWcrfBqSpBfku+9UVLHcZTAYDCd8rB6ra5qT/eesP2n4prUzd +9xP5ZUlDb4mY/QIDAQABo4HLMIHIMB0GA1UdDgQWBBQO40ZHBMxdb1mHJM8jV7ye +kd4VsDAfBgNVHSMEGDAWgBRUVsYgPIzuRMi0b9txMreSsGlSBTA3BggrBgEFBQcB +AQQrMCkwJwYIKwYBBQUHMAKGG2h0dHA6Ly91cmwtZm9yLWFpYS9Sb290LmNlcjAs +BgNVHR8EJTAjMCGgH6AdhhtodHRwOi8vdXJsLWZvci1jcmwvUm9vdC5jcmwwDgYD +VR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB +AGVFvLLVM0FDIOH9ShHgyHaML9x3UIVaqcfYYKRI3ztocb03PeGvdGt4kTh/zAvU +OPz7LFtbi/7JB9BW3fmE07YdYP4jVsZsACCKIPzfsOkjvSUVWNgrzq2qf/eaF3SS +gmFsLnbq5j4V6PW5+QYi0KTN18pcuyslYn5kOyLj9m6sXUOhvFxLU1xDpvYx2TXN +N3ucCEYsSVzaLOIAc3XnBWZeynBAKNNH3F8p5Ajkl7m16ddoHLQzMNohaf/fZVp8 +smI27V/V9wDvVllR0aiqMigSGAUK8qvLPzig2C7YWr3cTuVFqM5JrFWWSPIrh7I9 +w7m8lIvXiq6qek9tLJ82xic= +-----END CERTIFICATE----- + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 1 (0x1) + Signature Algorithm: sha256WithRSAEncryption + Issuer: CN=Root + Validity + Not Before: Jan 1 12:00:00 2015 GMT + Not After : Jan 1 12:00:00 2016 GMT + Subject: CN=Root + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:9f:eb:7d:ec:d7:82:b2:82:c3:22:42:8c:d1:09: + ea:bd:76:d1:9f:7f:d4:3a:51:6d:0f:e3:da:c4:72: + b4:50:22:06:fe:85:bc:1b:2f:d6:c2:bf:33:51:f0: + 73:70:c8:f3:ae:63:ad:0e:6c:e4:b4:d3:8a:e1:26: + d4:38:4a:0f:15:fe:f4:a9:ce:de:21:bb:00:00:c7: + bc:4f:2d:1c:fe:88:94:9c:6d:3e:c1:f0:b1:f0:1d: + 5b:dc:51:bf:f3:db:9d:2b:6e:cd:47:57:82:6b:64: + fe:2b:fc:63:01:cf:e1:24:05:4d:c5:90:53:91:11: + fc:08:ea:08:38:cd:b3:3b:87:e6:66:21:22:04:10: + 94:71:a2:71:fa:2b:7d:6a:02:fd:dc:7d:67:1a:54: + 58:af:63:0a:5a:f8:7e:45:23:ff:78:08:20:52:4b: + e7:64:7f:29:0a:01:bb:4a:5a:6c:26:59:da:a5:d4: + 3c:28:d2:26:ba:a6:98:62:dc:95:2a:66:5c:b2:c7: + 1a:3a:a9:9f:f9:2f:82:9d:c5:db:bc:f7:26:99:f9: + 79:99:bc:40:08:52:36:f0:cf:3e:94:42:8c:32:d9: + c7:c4:44:cb:c6:15:7a:61:2e:f4:24:2b:c2:85:9c: + 67:02:d9:9e:6c:4b:d7:5d:36:38:19:ef:95:75:2f: + 48:5d + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Subject Key Identifier: + 54:56:C6:20:3C:8C:EE:44:C8:B4:6F:DB:71:32:B7:92:B0:69:52:05 + X509v3 Authority Key Identifier: + keyid:54:56:C6:20:3C:8C:EE:44:C8:B4:6F:DB:71:32:B7:92:B0:69:52:05 + + Authority Information Access: + CA Issuers - URI:http://url-for-aia/Root.cer + + X509v3 CRL Distribution Points: + + Full Name: + URI:http://url-for-crl/Root.crl + + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Basic Constraints: critical + CA:TRUE + Signature Algorithm: sha256WithRSAEncryption + 42:bf:3f:d0:f3:43:91:38:2f:82:b6:c7:b6:85:47:09:71:95: + 75:fa:8e:7d:33:70:ed:0e:b9:3f:08:06:5b:b5:54:47:4e:aa: + f4:76:8f:f8:a7:d2:57:35:23:44:25:58:ae:29:7a:93:36:6e: + 6d:6f:03:a1:94:c7:db:23:cb:dd:ea:12:14:5c:ac:3e:38:e0: + a2:61:9f:ae:02:3f:12:a4:f0:3e:6e:7a:b0:1c:44:99:fa:54: + 17:17:92:47:57:2e:a9:a7:dc:b7:4f:d2:7d:e1:0a:21:cb:36: + de:d5:6f:00:ce:40:6e:c3:80:ad:45:0b:82:1f:65:86:70:e6: + 47:bc:11:d6:39:01:65:c2:58:c5:91:66:a2:22:e3:d6:08:a4: + 48:f8:fd:d8:7a:8c:b5:8b:f0:cc:b9:f8:b6:58:eb:6f:78:d8: + 00:4c:f4:7c:ca:7c:63:22:43:9b:c4:88:0b:6b:00:29:61:49: + 4a:f4:51:87:46:69:c6:14:b3:cc:85:b8:41:ec:5d:82:c6:4f: + f2:f4:ba:87:81:ab:06:5e:d4:2a:a9:08:0c:ff:24:cb:17:40: + 27:ad:64:69:bc:bd:b2:4f:b5:ba:9f:6b:8c:c0:6f:1d:f3:72: + 89:ab:88:80:e9:13:ac:cf:7d:79:bb:12:87:74:01:17:df:d8: + bc:f4:20:c5 +-----BEGIN TRUST_ANCHOR_UNCONSTRAINED----- +MIIDZTCCAk2gAwIBAgIBATANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290 +MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowDzENMAsGA1UEAwwEUm9v +dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ/rfezXgrKCwyJCjNEJ +6r120Z9/1DpRbQ/j2sRytFAiBv6FvBsv1sK/M1Hwc3DI865jrQ5s5LTTiuEm1DhK +DxX+9KnO3iG7AADHvE8tHP6IlJxtPsHwsfAdW9xRv/PbnStuzUdXgmtk/iv8YwHP +4SQFTcWQU5ER/AjqCDjNszuH5mYhIgQQlHGicforfWoC/dx9ZxpUWK9jClr4fkUj +/3gIIFJL52R/KQoBu0pabCZZ2qXUPCjSJrqmmGLclSpmXLLHGjqpn/kvgp3F27z3 +Jpn5eZm8QAhSNvDPPpRCjDLZx8REy8YVemEu9CQrwoWcZwLZnmxL1102OBnvlXUv +SF0CAwEAAaOByzCByDAdBgNVHQ4EFgQUVFbGIDyM7kTItG/bcTK3krBpUgUwHwYD +VR0jBBgwFoAUVFbGIDyM7kTItG/bcTK3krBpUgUwNwYIKwYBBQUHAQEEKzApMCcG +CCsGAQUFBzAChhtodHRwOi8vdXJsLWZvci1haWEvUm9vdC5jZXIwLAYDVR0fBCUw +IzAhoB+gHYYbaHR0cDovL3VybC1mb3ItY3JsL1Jvb3QuY3JsMA4GA1UdDwEB/wQE +AwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBCvz/Q80OR +OC+Ctse2hUcJcZV1+o59M3DtDrk/CAZbtVRHTqr0do/4p9JXNSNEJViuKXqTNm5t +bwOhlMfbI8vd6hIUXKw+OOCiYZ+uAj8SpPA+bnqwHESZ+lQXF5JHVy6pp9y3T9J9 +4Qohyzbe1W8AzkBuw4CtRQuCH2WGcOZHvBHWOQFlwljFkWaiIuPWCKRI+P3Yeoy1 +i/DMufi2WOtveNgATPR8ynxjIkObxIgLawApYUlK9FGHRmnGFLPMhbhB7F2Cxk/y +9LqHgasGXtQqqQgM/yTLF0AnrWRpvL2yT7W6n2uMwG8d83KJq4iA6ROsz315uxKH +dAEX39i89CDF +-----END TRUST_ANCHOR_UNCONSTRAINED----- + +150302120000Z +-----BEGIN TIME----- +MTUwMzAyMTIwMDAwWg== +-----END TIME----- + +SUCCESS +-----BEGIN VERIFY_RESULT----- +U1VDQ0VTUw== +-----END VERIFY_RESULT----- + +serverAuth +-----BEGIN KEY_PURPOSE----- +c2VydmVyQXV0aA== +-----END KEY_PURPOSE-----
diff --git a/third_party/WebKit/LayoutTests/TestExpectations b/third_party/WebKit/LayoutTests/TestExpectations index aff75c4f..fdd5d99 100644 --- a/third_party/WebKit/LayoutTests/TestExpectations +++ b/third_party/WebKit/LayoutTests/TestExpectations
@@ -218,6 +218,51 @@ crbug.com/711805 external/wpt/css/CSS2/positioning/position-relative-036.xht [ Skip ] crbug.com/711805 external/wpt/css/CSS2/positioning/positioning-float-001.xht [ Skip ] +#### third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow +#### Passed: 667 +#### Skipped: 41 +crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-empty-001.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-empty-004.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001e.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001f.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001h.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002e.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002f.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-nested-002.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-remove-006.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/blocks-017.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-block-002.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-block-003.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-block-004.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-block-005.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-008.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-replaced-height-008.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-table-002a.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-table-002b.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-table-valign-001.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inlines-003.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inlines-004.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inlines-005.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inlines-006.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inlines-016.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/inlines-017.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/max-height-applies-to-012.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/max-width-110.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/max-width-applies-to-005.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/max-width-applies-to-006.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/max-width-applies-to-012.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/max-width-applies-to-013.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/max-width-applies-to-014.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/min-height-applies-to-012.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/min-width-applies-to-005.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/min-width-applies-to-006.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/min-width-applies-to-012.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/min-width-applies-to-014.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/replaced-intrinsic-001.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/replaced-intrinsic-002.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/width-applies-to-012.xht [ Skip ] +crbug.com/711807 external/wpt/css/CSS2/normal-flow/width-inherit-001.xht [ Skip ] + # ====== Layout team owned tests to here ====== # ====== LayoutNG-only failures from here ======
diff --git a/third_party/WebKit/LayoutTests/W3CImportExpectations b/third_party/WebKit/LayoutTests/W3CImportExpectations index a4cfa58..bff5133 100644 --- a/third_party/WebKit/LayoutTests/W3CImportExpectations +++ b/third_party/WebKit/LayoutTests/W3CImportExpectations
@@ -98,7 +98,8 @@ external/wpt/css/CSS2/lists [ Skip ] external/wpt/css/CSS2/margin-padding-clear [ Skip ] external/wpt/css/CSS2/media [ Skip ] -external/wpt/css/CSS2/normal-flow [ Skip ] +## Owners: glebl@chromium.org +# external/wpt/css/CSS2/normal-flow [ Pass ] external/wpt/css/CSS2/other-formats [ Skip ] external/wpt/css/CSS2/page-box [ Skip ] external/wpt/css/CSS2/pagination [ Skip ]
diff --git a/third_party/WebKit/LayoutTests/animations/custom-properties/resolution-interpolation.html b/third_party/WebKit/LayoutTests/animations/custom-properties/resolution-interpolation.html new file mode 100644 index 0000000..2b1d312f --- /dev/null +++ b/third_party/WebKit/LayoutTests/animations/custom-properties/resolution-interpolation.html
@@ -0,0 +1,104 @@ +<!DOCTYPE html> +<meta charset="UTF-8"> +<style> +.parent { + --resolution: 30dppx; +} +.target { + --resolution: 10dppx; +} +</style> +<body> +<script src="../interpolation/resources/interpolation-test.js"></script> +<script> +CSS.registerProperty({ + name: '--resolution', + syntax: '<resolution>', + initialValue: '40dppx', +}); + +assertInterpolation({ + property: '--resolution', + from: neutralKeyframe, + to: '20dppx', +}, [ + {at: -0.3, is: '7dppx'}, + {at: 0, is: '10dppx'}, + {at: 0.5, is: '15dppx'}, + {at: 1, is: '20dppx'}, + {at: 1.5, is: '25dppx'}, +]); + +assertInterpolation({ + property: '--resolution', + from: 'initial', + to: '20dppx', +}, [ + {at: -0.3, is: '46dppx'}, + {at: 0, is: '40dppx'}, + {at: 0.5, is: '30dppx'}, + {at: 1, is: '20dppx'}, + {at: 1.5, is: '10dppx'}, +]); + +assertInterpolation({ + property: '--resolution', + from: 'inherit', + to: '20dppx', +}, [ + {at: -0.3, is: '33dppx'}, + {at: 0, is: '30dppx'}, + {at: 0.5, is: '25dppx'}, + {at: 1, is: '20dppx'}, + {at: 1.5, is: '15dppx'}, +]); + +assertInterpolation({ + property: '--resolution', + from: 'unset', + to: '20dppx', +}, [ + {at: -0.3, is: '46dppx'}, + {at: 0, is: '40dppx'}, + {at: 0.5, is: '30dppx'}, + {at: 1, is: '20dppx'}, + {at: 1.5, is: '10dppx'}, +]); + +assertInterpolation({ + property: '--resolution', + from: '-10dppx', + to: '10dppx', +}, [ + {at: -0.3, is: '-16dppx'}, + {at: 0, is: '-10dppx'}, + {at: 0.5, is: '0dppx'}, + {at: 1, is: '10dppx'}, + {at: 1.5, is: '20dppx'}, +]); + +assertInterpolation({ + property: '--resolution', + from: '10dpi', + to: '20dpcm', +}, [ + {at: -0.3, is: '-0.0233333dppx'}, + {at: 0, is: '0.104167dppx'}, + {at: 0.5, is: '0.316667dppx'}, + {at: 1, is: '0.529167dppx'}, + {at: 1.5, is: '0.741667dppx'}, +]); + +assertInterpolation({ + property: '--resolution', + from: '200dpi', + to: '90dppx', +}, [ + {at: -0.3, is: '-24.2917dppx'}, + {at: 0, is: '2.08333dppx'}, + {at: 0.5, is: '46.0417dppx'}, + {at: 1, is: '90dppx'}, + {at: 1.5, is: '133.958dppx'}, +]); +</script> +</body>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-001.xht new file mode 100644 index 0000000..e275ff4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-001.xht
@@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block formatting context auto height with floats and bottom margins</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#root-height" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The auto height of a block formatting context element is computed by accounting for bottom-margins of floated content which would otherwise be below the bottom edge of that element." /> + <style type="text/css"> + #container + { + width: 96px; + height: auto; + background: black; + position: absolute; + } + #float + { + float: left; + margin-bottom: 48px; + height: 48px; + width: 100%; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div id="container"> + <div id="float"></div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-002.xht new file mode 100644 index 0000000..e88f22148 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-002.xht
@@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block formatting context auto height with floated descendants of the normal flow and bottom margins</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#root-height" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The auto height of a block formatting context element is computed by accounting for bottom-margins of floated content descendents in the normal flow which would otherwise be below the bottom edge of that element." /> + <style type="text/css"> + #container + { + width: 96px; + height: auto; + background: black; + position: absolute; + } + #float + { + float: left; + margin-bottom: 48px; + height: 48px; + width: 100%; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div id="container"> + <div> + <div id="float"></div> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-003-ref.xht new file mode 100644 index 0000000..fb3b0b9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-003-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: black; + height: 50px; + width: 100px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a black rectangle which is wider than it is tall.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-003.xht new file mode 100644 index 0000000..8b2e3bc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-003.xht
@@ -0,0 +1,48 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block formatting context auto height with floated descendants outside the normal flow and bottom margins</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#root-height" /> + <link rel="match" href="block-formatting-context-height-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The auto height of a block formatting context element does not account for bottom margins of floated content descendents of out of flow blocks." /> + <style type="text/css"> + #container + { + width: 100px; + height: auto; + background: black; + position: absolute; + } + #sibling + { + height: 50px; + width: 100px; + } + #absolute + { + position: absolute; + width: 100px; + height: 50px; + } + #float + { + margin-bottom: 50px; + height: 50px; + width: 100%; + } + </style> + </head> + <body> + <p>Test passes if there is a black rectangle which is wider than it is tall.</p> + <div id="container"> + <div id="sibling"></div> + <div id="absolute"> + <div id="float"></div> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-001-ref.xht new file mode 100644 index 0000000..305691f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-001-ref.xht
@@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + table + { + border: black solid 1px; + border-spacing: 0px; + width: 100%; + } + + td {padding: 0px;} + ]]></style> + + </head> + + <body> + + <p>Test passes if there are 3 lines of "Filler Text".</p> + + <table> + <tr><td>Filler Text</td></tr> + <tr><td>Filler Text</td></tr> + <tr><td>Filler Text</td></tr> + </table> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-001.xht new file mode 100644 index 0000000..1511335 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-001.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Vertical layout of boxes</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <link rel="match" href="block-formatting-contexts-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Boxes are vertically laid out one after the other beginning at the top of a containing block." /> + <style type="text/css"> + #div1 + { + border: solid 1px black; + } + </style> + </head> + <body> + <p>Test passes if there are 3 lines of "Filler Text".</p> + <div id="div1"> + <div>Filler Text</div> + <div>Filler Text</div> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-003-ref.xht new file mode 100644 index 0000000..fe3982a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-003-ref.xht
@@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + table + { + border-collapse: collapse; + width: 100%; + } + + tbody + { + border-bottom: black solid 1px; + border-top: black solid 1px; + } + + thead {border-bottom: black solid 1px;} + /* + Necessary otherwise ( 0 + 1 ) divided by 2 may give unpredictable + measurements affecting vertical alignment + */ + + tfoot {border-top: black solid 1px;} + /* + Necessary otherwise ( 0 + 1 ) divided by 2 may give unpredictable + measurements affecting vertical alignment + */ + + /* + " + User agents must find a consistent rule for rounding off in the + case of an odd number of discrete units (screen pixels, printer dots). + " + http://www.w3.org/TR/CSS21/tables.html#collapsing-borders + */ + + td {padding: 0px;} + ]]></style> + + </head> + + <body> + + <p>Test passes if there are 3 lines of "Filler Text" separated by 2 thin black lines.</p> + + <table> + <thead> <tr><td>Filler Text</td></tr> </thead> + <tfoot> <tr><td>Filler Text</td></tr> </tfoot> + <tbody> <tr><td>Filler Text</td></tr> </tbody> + </table> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-003.xht new file mode 100644 index 0000000..6d9125a2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-003.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Vertical distance with margins</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <link rel="match" href="block-formatting-contexts-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The vertical distance between two sibling boxes is determined by the margin property." /> + <style type="text/css"> + #div1 + { + background: black; + } + div div + { + background: white; + margin-top: 1px; + } + </style> + </head> + <body> + <p>Test passes if there are 3 lines of "Filler Text" separated by 2 thin black lines.</p> + <div id="div1"> + <div>Filler Text</div> + <div>Filler Text</div> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-004-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-004-ref.xht new file mode 100644 index 0000000..05351b7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-004-ref.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <!-- same as /margin-padding-clear/margin-collapse-002-ref.xht --> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border-bottom: black solid 20px; + border-top: black solid 20px; + height: 40px; + width: 100px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is <strong>no red</strong>.</p> + + <div></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-004.xht new file mode 100644 index 0000000..c30eee9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-004.xht
@@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block Formatting Contexts: Margin Collapsing</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <link rel="match" href="block-formatting-contexts-004-ref.xht" /> + + <meta name="flags" content="ahem image" /> + <meta name="assert" content="Margins collapse between adjacent block boxes in a block formatting context." /> + <style type="text/css"> + #div1 + { + background: url("support/margin-collapse-2em-space.png"); + font: 20px/1em Ahem; + height: 4em; + width: 5em; + } + #div2 + { + margin-bottom: 1em; + } + #div3 + { + margin-top: 2em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div id="div2">XXXXX</div> + <div id="div3">XXXXX</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-005-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-005-ref.xht new file mode 100644 index 0000000..104c6c9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-005-ref.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <!-- same as margin-padding-clear/margin-left-004-ref.xht --> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: blue; + border-right: orange solid 5px; + height: 96px; + width: 5px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is <strong>no space between</strong> the blue and orange lines.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-005.xht new file mode 100644 index 0000000..a800bc8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-005.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: No padding or margin, left edges touch</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <link rel="match" href="block-formatting-contexts-005-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="When there is no padding or margins on elements the left outer edge of the child box will touch the left edge of the containing block." /> + <style type="text/css"> + div + { + height: 1in; + } + #div1 + { + border-left: solid 5px blue; + } + div div + { + border-left: solid 5px orange; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no space between</strong> the blue and orange lines.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-006-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-006-ref.xht new file mode 100644 index 0000000..599f6a0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-006-ref.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: orange; + border-right: blue solid 5px; + height: 96px; + margin-left: 91px; + width: 5px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is <strong>no space between</strong> the blue and orange lines.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-006.xht new file mode 100644 index 0000000..a87e788 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-006.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: No padding and margin, right edges touch</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <link rel="match" href="block-formatting-contexts-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="When there is no padding or margins on elements the right outer edge of the child box will touch the right edge of the containing block." /> + <style type="text/css"> + div + { + height: 1in; + } + #div1 + { + border-right: solid 5px blue; + width: 1in; + } + div div + { + border-right: solid 5px orange; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no space between</strong> the blue and orange lines.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-007.xht new file mode 100644 index 0000000..d58ac144 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-007.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Floats and box edges</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <link rel="match" href="block-formatting-contexts-005-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="When there is no padding or margins on a floated child element the left outer edge of the child box will touch the left edge of the containing block." /> + <style type="text/css"> + div + { + height: 1in; + } + #div1 + { + border-left: solid 5px blue; + } + div div + { + border-left: solid 5px orange; + float: left; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no space between</strong> the blue and orange lines.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-008-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-008-ref.xht new file mode 100644 index 0000000..ca08527 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-008-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: black solid medium; + height: 200px; + width: 200px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if the upper-half of the square is blue.</p> + + <div><img src="support/blue15x15.png" width="200" height="100" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-008.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-008.xht new file mode 100644 index 0000000..6cdddaf --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-008.xht
@@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: New block formatting context with floated elements</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <link rel="match" href="block-formatting-contexts-008-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Floated elements establish new block formatting context." /> + <style type="text/css"> + #div1 + { + border: solid; + height: 200px; + width: 200px; + } + div div + { + background: blue; + display: inline; + float: right; + height: 50%; + width: 100%; + } + </style> + </head> + <body> + <p>Test passes if the upper-half of the square is blue.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-009.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-009.xht new file mode 100644 index 0000000..4ef13ca3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-009.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: New block formatting context with absolute positioned elements</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <link rel="match" href="block-formatting-contexts-008-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Absolutely positioned elements establish a new block formatting context." /> + <style type="text/css"> + div + { + position: absolute; + } + #div1 + { + border: solid; + height: 200px; + width: 200px; + } + div div + { + background: blue; + display: inline; + height: 50%; + width: 100%; + } + </style> + </head> + <body> + <p>Test passes if the upper-half of the square is blue.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-010.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-010.xht new file mode 100644 index 0000000..4cd95d7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-010.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline-block elements establish a new block formatting context</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <link rel="match" href="block-formatting-contexts-008-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Elements defined as inline-blocks establish a new block formatting context." /> + <style type="text/css"><![CDATA[ + span#block-formatting-context + { + border: black solid medium; + display: inline-block; + height: 200px; + width: 200px; + } + + span.block-descendant + { + background-color: blue; + display: block; + height: 25%; + width: 100%; + } + ]]></style> + </head> + <body> + <p>Test passes if the upper-half of the square is blue.</p> + <div> + <span id="block-formatting-context"> + <span class="block-descendant"></span> + <span class="block-descendant"></span> + </span> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-011-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-011-ref.xht new file mode 100644 index 0000000..35c73a44 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-011-ref.xht
@@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: blue; + float: left; + width: 100px; + } + + div + div + { + background-color: transparent; + clear: left; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if the "Filler Text" is below the blue stripe.</p> + + <div> </div> + + <div>Filler Text</div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-011.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-011.xht new file mode 100644 index 0000000..ddacd59 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-011.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Table-cell elements establish a new block formatting context</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <link rel="match" href="block-formatting-contexts-011-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Elements defined as table-cell elements establish a new block formatting context." /> + <style type="text/css"> + #span1 + { + background-color: blue; + display: table-cell; + width: 100px; + } + </style> + </head> + <body> + <p>Test passes if the "Filler Text" is below the blue stripe.</p> + <div> + <span id="span1"> </span> + <span>Filler Text</span> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-012.xht new file mode 100644 index 0000000..87733705 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-012.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Table-caption elements establish a new block formatting context</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <link rel="match" href="block-formatting-contexts-008-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Elements with display table-caption establish a new block formatting context." /> + <style type="text/css"> + div + { + border: solid medium black; + height: 200px; + width: 200px; + } + span + { + background: blue; + display: table-caption; + height: 100px; + width: 200px; + } + </style> + </head> + <body> + <p>Test passes if the upper-half of the square is blue.</p> + <div> + <span></span> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-013.xht new file mode 100644 index 0000000..481a81f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-013.xht
@@ -0,0 +1,47 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Overflow set to 'scroll' establishes a new block formatting context</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <meta name="flags" content="" /> + <meta name="assert" content="A new block formatting context is established when overflow is set to 'scroll'." /> + <style type="text/css"> + #div1 + { + height: 200px; + width: 200px; + } + div div + { + height: 50px; + width: 50px; + } + #div2 + { + background: blue; + float: left; + } + #div3 + { + overflow: scroll; + } + div div div + { + background: orange; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange boxes (including any scrolling mechanism) are the same size.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"> + <div></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-014.xht new file mode 100644 index 0000000..fd777cf --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-014.xht
@@ -0,0 +1,47 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Overflow set to 'auto' establishes a new block formatting context</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <meta name="flags" content="" /> + <meta name="assert" content="A new block formatting context is established when overflow is set to 'auto'." /> + <style type="text/css"> + #div1 + { + height: 200px; + width: 200px; + } + div div + { + height: 50px; + width: 50px; + } + #div2 + { + background: blue; + float: left; + } + #div3 + { + overflow: auto; + } + div div div + { + background: orange; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange boxes (including any scrolling mechanism) are the same size.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"> + <div></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-015-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-015-ref.xht new file mode 100644 index 0000000..7345888 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-015-ref.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + </head> + + <body> + + <p>Test passes if the blue and orange squares have the same size.</p> + + <div><img src="support/blue15x15.png" width="50" height="50" alt="Image download support must be enabled" /><img src="support/swatch-orange.png" width="50" height="50" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-015.xht new file mode 100644 index 0000000..36490f3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-015.xht
@@ -0,0 +1,49 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Overflow set to 'hidden' establishes a new block formatting context</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <link rel="match" href="block-formatting-contexts-015-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="A new block formatting context is established when overflow is set to 'hidden'." /> + <style type="text/css"> + #div1 + { + height: 200px; + width: 200px; + } + div div + { + height: 50px; + width: 50px; + } + #div2 + { + background: blue; + float: left; + } + #div3 + { + overflow: hidden; + } + div div div + { + background: orange; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the same size.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"> + <div></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-016.xht new file mode 100644 index 0000000..ac103396 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-016.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block formatting contexts and 'overflow' set to 'visible'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" /> + <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Overflow set to 'visible' does not establish a new block formatting context." /> + <style type="text/css"> + #div1 + { + height: 200px; + width: 200px; + } + div div + { + height: 100px; + width: 100px; + } + #div2 + { + background: green; + float: left; + } + #div3 + { + background: red; + overflow: visible; + } + </style> + </head> + <body> + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-001-ref.xht new file mode 100644 index 0000000..fce3a35f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-001-ref.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + <meta http-equiv="Content-Style-Type" content="text/css" /> + <style type="text/css"> + + body > span { outline: 1px dotted black; } + body > span > span { display: block; width: 10em; } + + </style> + +</head> +<body> + +<span><span>A</span><span>A</span></span> + + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-001.xht new file mode 100644 index 0000000..08b2d89 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-001.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – append-to-empty-trailing-inline-1</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-append-001-ref.xht"/> + <meta name="flags" content="dom" /> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + <meta http-equiv="Content-Style-Type" content="text/css" /> + <style type="text/css"> + + body > span { outline: 1px dotted black; } + body > span > span { display: block; width: 10em; } + + </style> + +<script type="text/javascript"> +function boom() +{ + var n = document.getElementById("a"); + n.parentNode.appendChild(n.cloneNode(true)); +} +</script> + +</head> +<body onload="boom();"> + +<span><span id="a">A</span></span> + + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-002-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-002-nosplit-ref.xht new file mode 100644 index 0000000..eb95211 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-002-nosplit-ref.xht
@@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-append-002-ref.xht"/> + <style type="text/css"> + .outermost { border: 2px solid; } + .outer { border: 4px solid yellow; } + .inner { border: 6px sold green; } + </style> + </head> + <body> + <span style="border-right: none" class="outermost"> + <span style="border-right: none" class="outer"> + <span style="border-right: none" class="inner"> + </span> + </span> + </span> + <span style="display: block"></span> + <span style="border-right: none; border-left: none" class="outermost"> + <span style="border-right: none; border-left: none" class="outer"> + <span style="border-right: nonel border-left: none" class="inner"> + before span + </span> + </span> + </span> + <span style="display: block">span</span> + <span style="border-left: none" class="outermost"> + <span style="border-left: none" class="outer"> + <span style="border-left: none" class="inner"> + after span + </span> + </span> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-002-ref.xht new file mode 100644 index 0000000..3b5f911 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-002-ref.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-append-002-nosplit-ref.xht"/> + <style type="text/css"> + #outermost { border: 2px solid; } + #outer { border: 4px solid yellow; } + #inner { border: 6px sold green; } + </style> + </head> + <body> + <span id="outermost"> + <span id="outer"> + <span id="inner"> + <span style="display: block"></span> + before span + <span style="display: block">span</span> + after span + </span> + </span> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-002.xht new file mode 100644 index 0000000..671a40fc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-append-002.xht
@@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – append-to-nested-split-inline-1</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-append-002-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <style type="text/css"> + #outermost { border: 2px solid; } + #outer { border: 4px solid yellow; } + #inner { border: 6px sold green; } + </style> + <script type="text/javascript"> + function doTest() { + var i = document.getElementById("inner"); + var frag = document.createDocumentFragment(); + var newSpan = document.createElement("span"); + newSpan.appendChild(document.createTextNode("span")); + newSpan.style.display = "block"; + frag.appendChild(newSpan); + frag.appendChild(document.createTextNode("after span")); + i.appendChild(frag); + } + </script> + </head> + <body onload="doTest()"> + <span id="outermost"> + <span id="outer"> + <span id="inner"> + <span style="display: block"></span> + before span + </span> + </span> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-001-ref.xht new file mode 100644 index 0000000..ce91eb18 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-001-ref.xht
@@ -0,0 +1,7 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test Reference</title> +</head><body style="direction: ltr"> + <span style="display: block">x</span> + <span style="border: 5px solid blue; border-left: none; border-right: none; + padding-right: 10px"></span> + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-001.xht new file mode 100644 index 0000000..b8c0ec3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-001.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: blocks inside inlines – emptyspan-1</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-empty-001-ref.xht"/> + <meta name="flags" content="" /> +</head><body style="direction: ltr"> + <span style="border: 5px solid blue; border-left: none; border-right: none; + padding-right: 10px"> + <span style="display: block">x</span> + </span> + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-002-ref.xht new file mode 100644 index 0000000..2fd75b0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-002-ref.xht
@@ -0,0 +1,7 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test Reference</title> +</head><body style="direction: rtl"> + <span style="border: 5px solid blue; border-left: none; border-right: none; + padding-right: 10px"></span> + <span style="display: block">x</span> + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-002.xht new file mode 100644 index 0000000..31d7716 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-002.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: blocks inside inlines – emptyspan-2</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-empty-002-ref.xht"/> + <meta name="flags" content="" /> +</head><body style="direction: rtl"> + <span style="border: 5px solid blue; border-left: none; border-right: none; + padding-right: 10px"> + <span style="display: block">x</span> + </span> + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-003-ref.xht new file mode 100644 index 0000000..06c1ba03 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-003-ref.xht
@@ -0,0 +1,7 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test Reference</title> +</head><body style="direction: ltr"> + <span style="border: 5px solid blue; border-left: none; border-right: none; + padding-left: 10px"></span> + <span style="display: block">x</span> + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-003.xht new file mode 100644 index 0000000..e6eadad --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-003.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: blocks inside inlines – emptyspan-3</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-empty-003-ref.xht"/> + <meta name="flags" content="" /> +</head><body style="direction: ltr"> + <span style="border: 5px solid blue; border-left: none; border-right: none; + padding-left: 10px"> + <span style="display: block">x</span> + </span> + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-004-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-004-ref.xht new file mode 100644 index 0000000..53ef9d2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-004-ref.xht
@@ -0,0 +1,7 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test Reference</title> +</head><body style="direction: rtl"> + <span style="display: block">x</span> + <span style="border: 5px solid blue; border-left: none; border-right: none; + padding-left: 10px"></span> + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-004.xht new file mode 100644 index 0000000..583ebbc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-empty-004.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: blocks inside inlines – emptyspan-4</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-empty-004-ref.xht"/> + <meta name="flags" content="" /> +</head><body style="direction: rtl"> + <span style="border: 5px solid blue; border-left: none; border-right: none; + padding-left: 10px"> + <span style="display: block">x</span> + </span> + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-float-between-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-float-between-001-ref.xht new file mode 100644 index 0000000..bdb5963 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-float-between-001-ref.xht
@@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + </head> + <body> + <div style="position: relative; left: 100px"> + aaa + </div> + <span style="position: relative; left: 100px"> + <span style="float: left">bbb</span> + </span> + <div style="position: relative; left: 100px"> + aaa + </div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-float-between-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-float-between-001.xht new file mode 100644 index 0000000..7dbee4e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-float-between-001.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: blocks inside inlines – float-inside-inline-between-blocks-1</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-float-between-001-ref.xht"/> + <meta name="flags" content="" /> + </head><body> + <span style="position: relative; left: 100px"> + <span style="display: block"> + aaa + </span> + <span style="float: left">bbb</span> + <span style="display: block"> + aaa + </span> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001-nosplit-ref.xht new file mode 100644 index 0000000..363ed9ee --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001-nosplit-ref.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-001-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + .notstart { border-left: none; } + .notend { border-right: none; } + </style> + </head> + <body> + <span class="notend"> + <span>One</span><span>Two</span><span>Three</span> + </span> + <div>Four</div> + <span class="notstart notend"></span> + <div>Five</div> + <span class="notstart notend"> + <span>Six</span> + </span> + <div>Seven</div> + <span class="notstart notend"></span> + <div>Eight</div> + <span class="notstart"> + <span>Nine</span><span>Ten</span><span>Eleven</span> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001-ref.xht new file mode 100644 index 0000000..9bfa6c8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001-ref.xht
@@ -0,0 +1,12 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-001-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body> + <span><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div><span>Nine</span><span>Ten</span><span>Eleven</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001a.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001a.xht new file mode 100644 index 0000000..d837d6c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001a.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-1a</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-001-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("One")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span id="insertion">Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div><span>Nine</span><span>Ten</span><span>Eleven</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001b.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001b.xht new file mode 100644 index 0000000..a99adcd --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001b.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-1b</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-001-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Two")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span id="insertion">Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div><span>Nine</span><span>Ten</span><span>Eleven</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001c.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001c.xht new file mode 100644 index 0000000..148c620 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001c.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-1c</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-001-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Three")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><div id="insertion">Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div><span>Nine</span><span>Ten</span><span>Eleven</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001d.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001d.xht new file mode 100644 index 0000000..52b6cff --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001d.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-1d</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-001-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("div"); + newNode.appendChild(document.createTextNode("Four")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div id="insertion">Five</div><span>Six</span><div>Seven</div><div>Eight</div><span>Nine</span><span>Ten</span><span>Eleven</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001e.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001e.xht new file mode 100644 index 0000000..c393f84a4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001e.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-1e</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-001-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("div"); + newNode.appendChild(document.createTextNode("Five")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><span id="insertion">Six</span><div>Seven</div><div>Eight</div><span>Nine</span><span>Ten</span><span>Eleven</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001f.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001f.xht new file mode 100644 index 0000000..0530b93 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001f.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-1f</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-001-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Six")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><div id="insertion">Seven</div><div>Eight</div><span>Nine</span><span>Ten</span><span>Eleven</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001g.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001g.xht new file mode 100644 index 0000000..43abc1d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001g.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-1g</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-001-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("div"); + newNode.appendChild(document.createTextNode("Seven")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div id="insertion">Eight</div><span>Nine</span><span>Ten</span><span>Eleven</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001h.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001h.xht new file mode 100644 index 0000000..e959da0d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001h.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-1h</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-001-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("div"); + newNode.appendChild(document.createTextNode("Eight")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><span id="insertion">Nine</span><span>Ten</span><span>Eleven</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001i.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001i.xht new file mode 100644 index 0000000..6969a29f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001i.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-1i</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-001-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Nine")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div><span id="insertion">Ten</span><span>Eleven</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001j.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001j.xht new file mode 100644 index 0000000..32a9560 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001j.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-1j</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-001-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Ten")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div><span>Nine</span><span id="insertion">Eleven</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001k.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001k.xht new file mode 100644 index 0000000..7a7505a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001k.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-1k</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-001-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Eleven")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div><span>Nine</span><span>Ten</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001l.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001l.xht new file mode 100644 index 0000000..bd4e636e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001l.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-1l</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-001-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Eleven")); + document.getElementById("target").appendChild(newNode); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div><span>Nine</span><span>Ten</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002-nosplit-ref.xht new file mode 100644 index 0000000..f0d12c7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002-nosplit-ref.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-002-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + .notstart { border-left: none; } + .notend { border-right: none; } + </style> + </head> + <body> + <span class="notend"> + <span>One</span><span>Two</span><span>Three</span> + </span> + <div>Four</div> + <span class="notstart notend"></span> + <div>Five</div> + <span class="notstart notend"> + <span>Six</span> + </span> + <div>Seven</div> + <span class="notstart notend"></span> + <div>Eight</div> + <span class="notstart"></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002-ref.xht new file mode 100644 index 0000000..3ada136 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002-ref.xht
@@ -0,0 +1,12 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-002-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body> + <span><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002a.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002a.xht new file mode 100644 index 0000000..58b2262b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002a.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-2a</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-002-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("One")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span id="insertion">Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002b.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002b.xht new file mode 100644 index 0000000..bc18b4e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002b.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-2b</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-002-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Two")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span id="insertion">Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002c.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002c.xht new file mode 100644 index 0000000..5ef9424 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002c.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-2c</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-002-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Three")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><div id="insertion">Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002d.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002d.xht new file mode 100644 index 0000000..dc37ff7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002d.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-2d</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-002-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("div"); + newNode.appendChild(document.createTextNode("Four")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div id="insertion">Five</div><span>Six</span><div>Seven</div><div>Eight</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002e.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002e.xht new file mode 100644 index 0000000..a9cc9b2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002e.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-2e</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-002-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("div"); + newNode.appendChild(document.createTextNode("Five")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><span id="insertion">Six</span><div>Seven</div><div>Eight</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002f.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002f.xht new file mode 100644 index 0000000..770511b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002f.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-2f</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-002-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Six")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><div id="insertion">Seven</div><div>Eight</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002g.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002g.xht new file mode 100644 index 0000000..212b88fa --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002g.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-2g</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-002-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("div"); + newNode.appendChild(document.createTextNode("Seven")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div id="insertion">Eight</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002h.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002h.xht new file mode 100644 index 0000000..77da8cbc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002h.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-2h</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-002-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("div"); + newNode.appendChild(document.createTextNode("Eight")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002i.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002i.xht new file mode 100644 index 0000000..6993d3d8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002i.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-2i</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-002-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("div"); + newNode.appendChild(document.createTextNode("Eight")); + document.getElementById("target").appendChild(newNode); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-003-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-003-nosplit-ref.xht new file mode 100644 index 0000000..106faff --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-003-nosplit-ref.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-003-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + .notstart { border-left: none; } + .notend { border-right: none; } + </style> + </head> + <body> + <span class="notend"> + <span>One</span><span>Two</span><span>Three</span> + </span> + <div>Four</div> + <span class="notstart notend"></span> + <div>Five</div> + <span class="notstart notend"> + <span>Six</span> + </span> + <div>Seven</div> + <span class="notstart notend"></span> + <div>Eight</div> + <span class="notstart"> + <span>Nine</span> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-003-ref.xht new file mode 100644 index 0000000..a1a8e99 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-003-ref.xht
@@ -0,0 +1,12 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-003-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body> + <span><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div><span>Nine</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-003.xht new file mode 100644 index 0000000..04b9fca --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-003.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-3</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-003-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Nine")); + document.getElementById("target").appendChild(newNode); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-004-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-004-nosplit-ref.xht new file mode 100644 index 0000000..c5f3f46 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-004-nosplit-ref.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-004-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + .notstart { border-left: none; } + .notend { border-right: none; } + </style> + </head> + <body> + <span class="notend"> + <span>One</span><span>Two</span><span>Three</span> + </span> + <div>Four</div> + <span class="notstart notend"></span> + <div>Five</div> + <span class="notstart notend"> + <span>Six</span> + </span> + <div>Seven</div> + <span class="notstart notend"></span> + <div>Eight</div> + <span class="notstart"> + <span>Nine</span><span>Ten</span> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-004-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-004-ref.xht new file mode 100644 index 0000000..eb50830 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-004-ref.xht
@@ -0,0 +1,12 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-004-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body> + <span><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div><span>Nine</span><span>Ten</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-004.xht new file mode 100644 index 0000000..528d3c6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-004.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-4</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-004-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Nine")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div><span id="insertion">Ten</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-006-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-006-nosplit-ref.xht new file mode 100644 index 0000000..0b11b56 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-006-nosplit-ref.xht
@@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-006-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + .notstart { border-left: none; } + .notend { border-right: none; } + </style> + </head> + <body> + <span class="notend"></span> + <div>One</div> + <span class="notstart notend"></span> + <div>Two</div> + <span class="notstart"></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-006-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-006-ref.xht new file mode 100644 index 0000000..12fa2ea --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-006-ref.xht
@@ -0,0 +1,12 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-006-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body> + <span><div>One</div><div>Two</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-006.xht new file mode 100644 index 0000000..f33dd76 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-006.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-6</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-006-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("div"); + newNode.appendChild(document.createTextNode("One")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><div id="insertion">Two</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-007-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-007-nosplit-ref.xht new file mode 100644 index 0000000..3276641 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-007-nosplit-ref.xht
@@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-007-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + .notstart { border-left: none; } + .notend { border-right: none; } + </style> + </head> + <body> + <span class="notend"></span> + <div>One</div> + <span class="notstart"> + <span>Two</span> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-007-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-007-ref.xht new file mode 100644 index 0000000..d686af2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-007-ref.xht
@@ -0,0 +1,12 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-007-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body> + <span><div>One</div><span>Two</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-007.xht new file mode 100644 index 0000000..a89f1277 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-007.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-7</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-007-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("div"); + newNode.appendChild(document.createTextNode("One")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span id="insertion">Two</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008-nosplit-ref.xht new file mode 100644 index 0000000..9e22425 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008-nosplit-ref.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-008-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + .notstart { border-left: none; } + .notend { border-right: none; } + </style> + </head> + <body> + <span class="notend"> + <span>One</span> + </span> + <div>Two</div> + <span class="notstart notend"> + <span>Three</span> + </span> + <div>Four</div> + <span class="notstart"> + <span>Five</span> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008-ref.xht new file mode 100644 index 0000000..2f096ef --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008-ref.xht
@@ -0,0 +1,12 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-008-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body> + <span><span>One</span><div>Two</div><span>Three</span><div>Four</div><span>Five</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008a.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008a.xht new file mode 100644 index 0000000..9c65d80d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008a.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-8a</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-008-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("div"); + newNode.appendChild(document.createTextNode("Two")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><span id="insertion">Three</span><div>Four</div><span>Five</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008b.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008b.xht new file mode 100644 index 0000000..d0d41c51 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008b.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-8b</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-008-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("div"); + newNode.appendChild(document.createTextNode("Four")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><span>One</span><div>Two</div><span>Three</span><span id="insertion">Five</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008c.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008c.xht new file mode 100644 index 0000000..2f31cc2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-008c.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-8c</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-008-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("One")); + document.getElementById("target") + .insertBefore(newNode, document.getElementById("insertion")); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span id="target"><div id="insertion">Two</div><span>Three</span><div>Four</div><span>Five</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-009-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-009-nosplit-ref.xht new file mode 100644 index 0000000..67405f3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-009-nosplit-ref.xht
@@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-009-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + body > span > span { border: 3px solid cyan } + .notstart { border-left: none; } + .notend { border-right: none; } + </style> + </head> + <body> + <span class="notend"> + <span class="notend"> + <span>One</span><span>Two</span><span>Three</span> + </span> + </span> + <div>Four</div> + <span class="notstart notend"><span class="notstart notend"></span></span> + <div>Five</div> + <span class="notstart notend"> + <span class="notstart notend"> + <span>Six</span> + </span> + </span> + <div>Seven</div> + <span class="notstart notend"><span class="notstart notend"></span></span> + <div>Eight</div> + <span class="notstart"> + <span class="notstart"> + <span>Nine</span> + </span> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-009-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-009-ref.xht new file mode 100644 index 0000000..8dd9ccd --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-009-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-009-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + body > span > span { border: 3px solid cyan } + </style> + </head> + <body> + <span><span><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div><span>Nine</span></span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-009.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-009.xht new file mode 100644 index 0000000..d6f8082 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-009.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-9</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-009-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Nine")); + document.getElementById("target").appendChild(newNode); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + body > span > span { border: 3px solid cyan } + </style> + </head> + <body onload="doit()"> + <span><span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div></span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-010-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-010-nosplit-ref.xht new file mode 100644 index 0000000..13485c5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-010-nosplit-ref.xht
@@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-010-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + body > span > span { border: 3px solid cyan } + .notstart { border-left: none; } + .notend { border-right: none; } + </style> + </head> + <body> + <span class="notend"> + <span class="notend"> + <span>One</span><span>Two</span><span>Three</span> + </span> + </span> + <div>Four</div> + <span class="notstart notend"><span class="notstart notend"></span></span> + <div>Five</div> + <span class="notstart notend"> + <span class="notstart notend"> + <span>Six</span> + </span> + </span> + <div>Seven</div> + <span class="notstart notend"><span class="notstart notend"></span></span> + <div>Eight</div> + <span class="notstart"> + <span class="notstart"> + <span>Nine</span><span>Ten</span> + </span> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-010-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-010-ref.xht new file mode 100644 index 0000000..00aa334e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-010-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-010-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + body > span > span { border: 3px solid cyan } + </style> + </head> + <body> + <span><span><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div><span>Nine</span><span>Ten</span></span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-010.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-010.xht new file mode 100644 index 0000000..e38e70b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-010.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-10</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-010-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Nine")); + document.getElementById("target").appendChild(newNode); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + body > span > span { border: 3px solid cyan } + body > span > span:after { content: "Ten" } + </style> + </head> + <body onload="doit()"> + <span><span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div></span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-011-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-011-nosplit-ref.xht new file mode 100644 index 0000000..0e07714 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-011-nosplit-ref.xht
@@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-011-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + body > span > span { border: 3px solid cyan } + .notstart { border-left: none; } + .notend { border-right: none; } + </style> + </head> + <body> + <span class="notend"> + <span class="notend"> + <span>One</span><span>Two</span><span>Three</span> + </span> + </span> + <div>Four</div> + <span class="notstart notend"><span class="notstart notend"></span></span> + <div>Five</div> + <span class="notstart notend"> + <span class="notstart notend"> + <span>Six</span> + </span> + </span> + <div>Seven</div> + <span class="notstart notend"><span class="notstart notend"></span></span> + <div>Eight</div> + <span class="notstart notend"> + <span class="notstart"> + <span>Nine</span> + </span> + </span> + <div>Ten</div> + <span class="notstart"></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-011-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-011-ref.xht new file mode 100644 index 0000000..0d93bd1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-011-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-011-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + body > span > span { border: 3px solid cyan } + </style> + </head> + <body> + <span><span><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div><span>Nine</span></span><div>Ten</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-011.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-011.xht new file mode 100644 index 0000000..b1fdc72 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-011.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-11</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-011-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var newNode = document.createElement("span"); + newNode.appendChild(document.createTextNode("Nine")); + document.getElementById("target").appendChild(newNode); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + body > span > span { border: 3px solid cyan } + </style> + </head> + <body onload="doit()"> + <span><span id="target"><span>One</span><span>Two</span><span>Three</span><div>Four</div><div>Five</div><span>Six</span><div>Seven</div><div>Eight</div></span><div>Ten</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-012-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-012-nosplit-ref.xht new file mode 100644 index 0000000..8e00bc0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-012-nosplit-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-012-ref.xht"/> + </head> + <body> + <div style="display: inline; border: 2px solid; border-right: none">One</div> + <div>Two</div> + <div style="display: inline; border: 2px; border-style: solid none"></div> + <div>Three</div> + <div style="display: inline; border: 2px solid; border-left: none"></div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-012-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-012-ref.xht new file mode 100644 index 0000000..6ea1a9c4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-012-ref.xht
@@ -0,0 +1,9 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-012-nosplit-ref.xht"/> + </head> + <body> + <div style="display: inline; border: 2px solid">One<div>Two</div><div>Three</div></div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-012.xht new file mode 100644 index 0000000..ba48ed5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-012.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-12</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-012-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <style type="text/css"> + #i { display: inline; border: 2px solid; } + #i:after { display: block; content: "Three"; } + </style> + </head> + <body> + <div id="i"><script type="text/javascript">document.body.offsetWidth</script>One<div>Two</div></div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-013-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-013-nosplit-ref.xht new file mode 100644 index 0000000..f36bf1b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-013-nosplit-ref.xht
@@ -0,0 +1,11 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-013-ref.xht"/> + </head> + <body> + <div style="display: inline; border: 2px solid; border-right: none"></div> + <div>One</div> + <div style="display: inline; border: 2px solid; border-left: none">TwoThree</div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-013-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-013-ref.xht new file mode 100644 index 0000000..8e08d97 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-013-ref.xht
@@ -0,0 +1,9 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-013-nosplit-ref.xht"/> + </head> + <body> + <div style="display: inline; border: 2px solid"><div>One</div>TwoThree</div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-013.xht new file mode 100644 index 0000000..d23a8e8c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-013.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-13</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-013-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <style type="text/css"> + #i { border: 2px solid; } + #i:before { display: block; content: "One"; } + #i:after { content: "Three"; } + </style> + <script type="text/javascript"> + function doTest() { + var i = document.getElementById("i"); + i.insertBefore(document.createTextNode("Two"), i.firstChild); + } + </script> + </head> + <body onload="doTest()"> + <span id="i"><span style="display: none"></span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-014-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-014-nosplit-ref.xht new file mode 100644 index 0000000..2ae5d104 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-014-nosplit-ref.xht
@@ -0,0 +1,11 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-014-ref.xht"/> + </head> + <body> + <div style="display: inline; border: 2px solid; border-right: none"></div> + <div>One</div> + <div style="display: inline; border: 2px solid; border-left: none">Two</div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-014-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-014-ref.xht new file mode 100644 index 0000000..fefbd03 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-014-ref.xht
@@ -0,0 +1,9 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-014-nosplit-ref.xht"/> + </head> + <body> + <div style="display: inline; border: 2px solid"><div>One</div>Two</div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-014.xht new file mode 100644 index 0000000..4d170b9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-014.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-14</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-014-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <style type="text/css"> + #i { border: 2px solid; } + #i:before { display: block; content: "One"; } + </style> + <script type="text/javascript"> + function doTest() { + var i = document.getElementById("i"); + i.insertBefore(document.createTextNode("Two"), i.firstChild); + } + </script> + </head> + <body onload="doTest()"> + <span id="i"><span style="display: none"></span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-015-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-015-nosplit-ref.xht new file mode 100644 index 0000000..a1dee0d6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-015-nosplit-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-015-ref.xht"/> + </head> + <body> + <div style="display: inline; border: 2px solid; border-right:none"></div> + <div>One</div> + <div style="display: inline; border: 2px solid; border-right:none; border-left: none">Two</div> + <div>Three</div> + <div style="display: inline; border: 2px solid; border-left: none"></div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-015-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-015-ref.xht new file mode 100644 index 0000000..a74180b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-015-ref.xht
@@ -0,0 +1,9 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-015-nosplit-ref.xht"/> + </head> + <body> + <div style="display: inline; border: 2px solid"><div>One</div>Two<div>Three</div></div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-015.xht new file mode 100644 index 0000000..f6a13347 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-015.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-15</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-015-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <style type="text/css"> + #i { display: inline; border: 2px solid; } + #i:after { display: block; content: "Three"; } + </style> + </head> + <body> + <div id="i"><script type="text/javascript">document.body.offsetWidth</script><div>One</div>Two</div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-016-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-016-nosplit-ref.xht new file mode 100644 index 0000000..fa9ffee0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-016-nosplit-ref.xht
@@ -0,0 +1,11 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-016-ref.xht"/> + </head> + <body> + <div style="display: inline; border: 2px solid; border-right: none">One</div> + <div>Two</div> + <div style="display: inline; border: 2px solid; border-left: none"></div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-016-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-016-ref.xht new file mode 100644 index 0000000..140b45c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-016-ref.xht
@@ -0,0 +1,9 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-insert-016-nosplit-ref.xht"/> + </head> + <body> + <div style="display: inline; border: 2px solid">One<div>Two</div></div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-016a.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-016a.xht new file mode 100644 index 0000000..730f116 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-016a.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-16a</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-016-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <style type="text/css"> + #i { border: 2px solid; } + #i:after { display: block; content: "Two"; } + </style> + <script type="text/javascript"> + function doTest() { + var i = document.getElementById("i"); + i.insertBefore(document.createTextNode("One"), i.firstChild); + } + </script> + </head> + <body onload="doTest()"> + <span id="i"><span style="display: none"></span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-016b.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-016b.xht new file mode 100644 index 0000000..a438c1f2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-016b.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – insert-into-split-inline-16b</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-016-ref.xht"/> + <meta name="flags" content="dom" /> + <style type="text/css"> + #i { border: 2px solid; } + #i:after { display: block; content: "Two"; } + </style> + <script type="text/javascript"> + function doTest() { + var i = document.getElementById("i"); + i.appendChild(document.createTextNode("One")); + } + </script> + </head> + <body onload="doTest()"> + <span id="i"></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-017-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-017-ref.xht new file mode 100644 index 0000000..cc5b6d2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-017-ref.xht
@@ -0,0 +1,14 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test Reference</title> + </head><body style="width: 0"> + <span style="border: 2px solid blue; border-right: none"></span> + <span style="display: block"></span> + <span style="border: 2px solid blue; border-left: none; border-right: none"> + a b + </span> + <span style="display: block"></span> + <span style="border: 2px solid blue; border-left: none;"> + c + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-017.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-017.xht new file mode 100644 index 0000000..5390cce --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-insert-017.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: blocks inside inlines – trailing-inline-with-continuations-1</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-insert-017-ref.xht"/> + <meta name="flags" content="dom" /> + </head><body style="width: 0"> + <span style="border: 2px solid blue;"> + <span style="display: block"></span> + a b + <script type="text/javascript">document.body.offsetWidth</script> + <span style="display: block"></span> + c + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-001-ref.xht new file mode 100644 index 0000000..50926f8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-001-ref.xht
@@ -0,0 +1,10 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + </head> + <body> + <div style="width: 100px; border: 1px solid green;"> + <div style="display: block; height: 20px; width: 80px; margin: 10px 0 10px 10px; border: 5px solid black"></div> + </div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-001a.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-001a.xht new file mode 100644 index 0000000..44bb4f3b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-001a.xht
@@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: blocks inside inlines – ignored-margins-1a</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-margins-001-ref.xht"/> + <meta name="flags" content="" /> + </head><body> + <div style="direction: ltr; width: 100px; border: 1px solid green;"> + <span> + <span style="display: block; height: 20px; width: 80px; margin: 10px; border: 5px solid black"> + </span> + </span> + </div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-001b.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-001b.xht new file mode 100644 index 0000000..c852ef73 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-001b.xht
@@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: blocks inside inlines – ignored-margins-1b</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-margins-001-ref.xht"/> + <meta name="flags" content="" /> + </head><body> + <div style="direction: ltr; width: 100px; border: 1px solid green;"> + <span style="direction: rtl"> + <span style="display: block; height: 20px; width: 80px; margin: 10px; border: 5px solid black"> + </span> + </span> + </div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-002-ref.xht new file mode 100644 index 0000000..cad9284 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-002-ref.xht
@@ -0,0 +1,10 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + </head> + <body> + <div style="width: 100px; border: 1px solid green;"> + <div style="display: block; height: 20px; width: 80px; margin: 10px 10px 10px 0; border: 5px solid black"></div> + </div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-002a.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-002a.xht new file mode 100644 index 0000000..53f6eee --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-002a.xht
@@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: blocks inside inlines – ignored-margins-2a</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-margins-002-ref.xht"/> + <meta name="flags" content="" /> + </head><body> + <div style="direction: rtl; width: 100px; border: 1px solid green;"> + <span> + <span style="display: block; height: 20px; width: 80px; margin: 10px; border: 5px solid black"> + </span> + </span> + </div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-002b.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-002b.xht new file mode 100644 index 0000000..a467f14 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-margins-002b.xht
@@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: blocks inside inlines – ignored-margins-2b</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-margins-002-ref.xht"/> + <meta name="flags" content="" /> + </head><body> + <div style="direction: rtl; width: 100px; border: 1px solid green;"> + <span style="direction: ltr"> + <span style="display: block; height: 20px; width: 80px; margin: 10px; border: 5px solid black"> + </span> + </span> + </div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-nested-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-nested-001-ref.xht new file mode 100644 index 0000000..0c981e1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-nested-001-ref.xht
@@ -0,0 +1,10 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + </head> + <body> + <span>First line</span> + <div>Second line</div> + <span>Third line, yes</span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-nested-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-nested-001.xht new file mode 100644 index 0000000..e15bd34 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-nested-001.xht
@@ -0,0 +1,21 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: blocks inside inlines – split-inner-inline-1</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-nested-001-ref.xht"/> + <meta name="flags" content="" /> + </head><body> + <span> + First + <span> + line + <span style="display: block"> + Second line + </span> + Third + </span> + line, yes + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-nested-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-nested-002-ref.xht new file mode 100644 index 0000000..a0e34027 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-nested-002-ref.xht
@@ -0,0 +1,15 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + </head> + <body> + <span>First line + <span style="border: 5px solid blue; border-right: none"></span> + </span> + <div>Second line</div> + <span> + <span style="border: 5px solid blue; border-left: none"></span> + Third line, yes + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-nested-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-nested-002.xht new file mode 100644 index 0000000..8790159 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-nested-002.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: blocks inside inlines – split-inner-inline-2</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-nested-002-ref.xht"/> + <meta name="flags" content="" /> + </head><body> + <span> + First line + <span style="border: 5px solid blue"> + <span style="display: block"> + Second line + </span> + </span> + Third line, yes + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-percents-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-percents-001-ref.xht new file mode 100644 index 0000000..9228e79f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-percents-001-ref.xht
@@ -0,0 +1,8 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + </head> + <body> + <div style="height: 100px; border: 10px solid black"></div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-percents-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-percents-001.xht new file mode 100644 index 0000000..302d6b71 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-percents-001.xht
@@ -0,0 +1,14 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: blocks inside inlines – percent-height-1</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-percents-001-ref.xht"/> + <meta name="flags" content="" /> + </head><body style="height: 200px"> + <span> + <span style="display: block; height: 50%; border: 10px solid black"> + </span> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-000-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-000-ref.xht new file mode 100644 index 0000000..c86bb3cb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-000-ref.xht
@@ -0,0 +1,9 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + </head> + <body> + One + Two + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-000.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-000.xht new file mode 100644 index 0000000..17c47cda --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-000.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – remove-split-inline-1</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-remove-000-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var target = document.getElementById("target"); + target.parentNode.removeChild(target); + } + </script> + </head> + <body onload="doit()"> + One + <span id="target"> + Three + <div>Four</div> + Five + </span> + Two + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-001-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-001-nosplit-ref.xht new file mode 100644 index 0000000..0215ebb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-001-nosplit-ref.xht
@@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-remove-001-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + #start { border-right: none; } + #two { border-left: none; } + </style> + </head> + <body> + <span id="start"></span> + <div>One</div> + <span id="two"> + Two + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-001-ref.xht new file mode 100644 index 0000000..5d667f3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-001-ref.xht
@@ -0,0 +1,14 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-remove-001-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body> + <span><div>One</div> + Two + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-001.xht new file mode 100644 index 0000000..30a9989 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-001.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – remove-from-split-inline-1</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-remove-001-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var target = document.getElementById("target"); + target.parentNode.removeChild(target); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span><span id="target">Four</span><div>One</div> + Two + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-002-ref.xht new file mode 100644 index 0000000..cda68a7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-002-ref.xht
@@ -0,0 +1,14 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body> + <span> + One + Two + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-002.xht new file mode 100644 index 0000000..d0df7d61 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-002.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – remove-from-split-inline-2</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-remove-002-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var target = document.getElementById("target"); + target.parentNode.removeChild(target); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span> + One + <div id="target">Three</div> + Two + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-003-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-003-nosplit-ref.xht new file mode 100644 index 0000000..b4fbfec --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-003-nosplit-ref.xht
@@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-remove-003-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + #one { border-right: none; } + #tail { border-left: none; } + </style> + </head> + <body> + <span id="one"> + One + </span> + <div>Two</div> + <span id="tail"></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-003-ref.xht new file mode 100644 index 0000000..60f942738 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-003-ref.xht
@@ -0,0 +1,14 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-remove-003-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body> + <span> + One + <div>Two</div></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-003.xht new file mode 100644 index 0000000..94ccc76 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-003.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – remove-from-split-inline-3</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-remove-003-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var target = document.getElementById("target"); + target.parentNode.removeChild(target); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + + <body onload="doit()"> + <span> + One + <div>Two</div><span id="target">Three</span></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-004-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-004-nosplit-ref.xht new file mode 100644 index 0000000..a008a8a1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-004-nosplit-ref.xht
@@ -0,0 +1,21 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-remove-004-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + #one { border-right: none; } + #four { border-left: none; } + </style> + </head> + <body> + <span id="one"> + One + Two + </span> + <div>Three</div> + <span id="four"> + Four + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-004-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-004-ref.xht new file mode 100644 index 0000000..ef2ee0c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-004-ref.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-remove-004-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body> + <span> + One + Two + <div>Three</div> + Four + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-004.xht new file mode 100644 index 0000000..91cad56 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-004.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – remove-from-split-inline-4</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-remove-004-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var target = document.getElementById("target"); + target.parentNode.removeChild(target); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span> + One + <div id="target">Five</div> + Two + <div>Three</div> + Four + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-005-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-005-nosplit-ref.xht new file mode 100644 index 0000000..00ae0f27 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-005-nosplit-ref.xht
@@ -0,0 +1,21 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-remove-005-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + #one { border-right: none; } + #three { border-left: none; } + </style> + </head> + <body> + <span id="one"> + One + </span> + <div>Two</div> + <span id="three"> + Three + Four + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-005-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-005-ref.xht new file mode 100644 index 0000000..1ab2d25f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-005-ref.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-remove-005-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body> + <span> + One + <div>Two</div> + Three + Four + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-005.xht new file mode 100644 index 0000000..58944d2e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-005.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – remove-from-split-inline-5</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-remove-005-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var target = document.getElementById("target"); + target.parentNode.removeChild(target); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span> + One + <div>Two</div> + Three + <div id="target">Five</div> + Four + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-006-nosplit-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-006-nosplit-ref.xht new file mode 100644 index 0000000..6379b161 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-006-nosplit-ref.xht
@@ -0,0 +1,21 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-remove-006-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + #one { border-right: none; } + #four { border-left: none; } + </style> + </head> + <body> + <span id="one"> + One + </span> + <div>Two</div> + <div>Three</div> + <span id="four"> + Four + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-006-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-006-ref.xht new file mode 100644 index 0000000..be57e10 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-006-ref.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <link rel="match" href="block-in-inline-remove-006-nosplit-ref.xht"/> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body> + <span> + One + <div>Two</div> + <div>Three</div> + Four + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-006.xht new file mode 100644 index 0000000..245dbfbb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-remove-006.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – remove-from-split-inline-6</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-remove-006-nosplit-ref.xht"/> + <meta name="flags" content="dom" /> + <script type="text/javascript"> + function doit() { + var target = document.getElementById("target"); + target.parentNode.removeChild(target); + } + </script> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body onload="doit()"> + <span> + One + <div>Two</div> + <span id="target">Five</span> + <div>Three</div> + Four + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-whitespace-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-whitespace-001-ref.xht new file mode 100644 index 0000000..263fd25 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-whitespace-001-ref.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + <style type="text/css"> + body > span { border: 3px solid blue } + .notstart { border-left: none; } + .notend { border-right: none; } + </style> + </head> + <body> + <span class="notend"></span> + <div>One</div> + <span class="notstart notend"></span> + <div>Two</div> + <span class="notstart"></span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-whitespace-001a.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-whitespace-001a.xht new file mode 100644 index 0000000..6f5d70f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-whitespace-001a.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – whitespace-present-1a</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-whitespace-001-ref.xht"/> + <meta name="flags" content="" /> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + </head> + <body> + <span> + <div>One</div> + <div>Two</div> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-whitespace-001b.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-whitespace-001b.xht new file mode 100644 index 0000000..e6237f7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-in-inline-whitespace-001b.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – whitespace-present-1b</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="block-in-inline-whitespace-001-ref.xht"/> + <meta name="flags" content="dom" /> + <style type="text/css"> + body > span { border: 3px solid blue } + </style> + <script type="text/javascript"> + function doIt() { + var t = document.createTextNode(" "); + var d = document.getElementById("d"); + d.parentNode.insertBefore(t, d); + } + </script> + </head> + <body onload="doIt()"> + <span> + <div>One</div><div id="d">Two</div> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-001-ref.xht new file mode 100644 index 0000000..13a45cc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-001-ref.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: blue; + border-bottom: orange solid medium; + border-top: orange solid medium; + width: 1in; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is <strong>no space between</strong> the blue stripe and the orange lines.</p> + + <div>Filler Text</div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-001.xht new file mode 100644 index 0000000..c933eb0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-001.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and margins top and bottom are 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <link rel="match" href="block-non-replaced-height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The margin top and bottom used values are '0' for block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and margin top and bottom both are 'auto'." /> + <style type="text/css"> + #div1 + { + border-bottom: solid orange; + border-top: solid orange; + width: 1in; + } + div div + { + background: blue; + margin-bottom: auto; + margin-top: auto; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no space between</strong> the blue stripe and the orange lines.</p> + <div id="div1"> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-002.xht new file mode 100644 index 0000000..63f71ff --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-002.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <meta name="flags" content="" /> + <meta name="assert" content="The margin top and bottom used values are '0' for block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible' and margin top and bottom both are 'auto'." /> + <style type="text/css"> + #div1 + { + border-bottom: solid orange; + border-top: solid orange; + width: 1in; + } + div div + { + background: blue; + margin-bottom: auto; + margin-top: auto; + } + html, body + { + overflow: scroll; + } + </style> + </head> + <body> + <p>Test passes if there is no white space between the blue box below and the orange lines.</p> + <div id="div1"> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-003.xht new file mode 100644 index 0000000..0e824c4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-003.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and 'height' is 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' is the 'height' of the child block box when a block-level non-replaced element is in normal flow and 'overflow' computes to 'visible'." /> + <style type="text/css"> + div + { + position: relative; + } + div div + { + width: 1in; + } + #div1 div + { + background: blue; + height: 2in; + } + #div2 + { + background: orange; + height: 2in; + left: 1in; + position: absolute; + top: 0; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange boxes below are the same height.</p> + <div> + <div id="div1"> + <div></div> + </div> + <div id="div2"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-004.xht new file mode 100644 index 0000000..ffc6274b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-004.xht
@@ -0,0 +1,46 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible' and 'height' is 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' is the 'height' of the child block box when a block-level non-replaced element is in normal flow and 'overflow' does not compute to 'visible'." /> + <style type="text/css"> + html, body + { + overflow: scroll; + } + div + { + position: relative; + } + div div + { + width: 1in; + } + #div1 div + { + background: blue; + height: 2in; + } + #div2 + { + background: orange; + height: 2in; + left: 1in; + position: absolute; + top: 0; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange boxes below are the same height.</p> + <div> + <div id="div1"> + <div></div> + </div> + <div id="div2"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-005-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-005-ref.xht new file mode 100644 index 0000000..47d1d06 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-005-ref.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + </head> + + <body> + + <p>Test passes if the blue and orange squares have the same height and if there is <strong>no red</strong>.</p> + + <div><img src="support/blue15x15.png" width="200" height="200" alt="Image download support must be enabled" /><img src="support/swatch-orange.png" width="200" height="200" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-005.xht new file mode 100644 index 0000000..f329a5bf --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-005.xht
@@ -0,0 +1,48 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and 'height' is 'auto' adjust based on the line box height</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <link rel="match" href="block-non-replaced-height-005-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'height' is the distance from the topmost to the bottommost line box when a block-level non-replaced element is in normal flow and 'overflow' computes to 'visible'." /> + <style type="text/css"> + div + { + position: relative; + } + #div1 + { + background: red; + width: 200px; + } + span + { + color: blue; + display: inline; + font: 100px/1 Ahem; + } + #div2 + { + background: orange; + height: 200px; + left: 200px; + position: absolute; + top: 0; + width: 200px; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the same height and if there is <strong>no red</strong>.</p> + <div> + <div id="div1"> + <span>XX XX</span> + </div> + <div id="div2"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-006.xht new file mode 100644 index 0000000..4def708 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-006.xht
@@ -0,0 +1,49 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible' and 'height' is 'auto' adjust based on the line box height</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'height' is the distance from the topmost to the bottommost line box when a block-level non-replaced element is in normal flow and 'overflow' does not compute to 'visible'." /> + <style type="text/css"> + html, body + { + overflow: scroll; + } + div + { + position: relative; + } + #div1 + { + background: red; + width: 200px; + } + span + { + color: blue; + display: inline; + font: 100px/1 Ahem; + } + #div2 + { + background: orange; + height: 200px; + left: 200px; + position: absolute; + top: 0; + width: 200px; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the same height and if there is <strong>no red</strong>.</p> + <div> + <div id="div1"> + <span>XX XX</span> + </div> + <div id="div2"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-007.xht new file mode 100644 index 0000000..c033587 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-007.xht
@@ -0,0 +1,51 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height determination for block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and elements' margins collapse</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' is the distance between the top border edge of the top most block-level child box that doesn't have margins collapsed through it, and the bottom border edge of the bottommost block-level child that doesn't have margins collapsed through it. When a block-level non-replaced element is in normal flow, 'overflow' computes to 'visible' and the 'height' is 'auto'." /> + <style type="text/css"> + #div1 + { + position: relative; + } + #div2, #div3, #div4 + { + width: 1in; + } + #div2, #div3 + { + background: blue; + height: 0.5in; + } + #div2 + { + border-top: 0.5in solid blue; + margin-top: 0.5in; + } + #div3 + { + border-bottom: 0.5in solid blue; + margin-bottom: 0.5in; + } + #div4 + { + background: blue; + height: 2in; + left: 1in; + position: absolute; + top: 0; + } + </style> + </head> + <body> + <p>Test passes if there is a blue square below.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + <div id="div4"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-008.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-008.xht new file mode 100644 index 0000000..b9cc013 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-008.xht
@@ -0,0 +1,55 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height determination for block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible' and elements' margins collapse</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' is the distance between the top border edge of the top most block-level child box that doesn't have margins collapsed, and the bottom border edge of the bottommost block-level child that doesn't have margins collapsed. When a block-level non-replaced element is in normal flow, 'overflow' does not compute to 'visible' but has been propagated to the viewport and the 'height' is 'auto'." /> + <style type="text/css"> + html, body + { + overflow: scroll; + } + #div1 + { + position: relative; + } + #div2, #div3, #div4 + { + width: 1in; + } + #div2, #div3 + { + background: blue; + height: 0.5in; + } + #div2 + { + border-top: 0.5in solid blue; + margin-top: 0.5in; + } + #div3 + { + border-bottom: 0.5in solid blue; + margin-bottom: 0.5in; + } + #div4 + { + background: blue; + height: 2in; + left: 1in; + position: absolute; + top: 0; + } + </style> + </head> + <body> + <p>Test passes if there is a blue square below.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + <div id="div4"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-009-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-009-ref.xht new file mode 100644 index 0000000..dfaf5312 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-009-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: blue; + height: 2in; + width: 2in; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a blue square.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-009.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-009.xht new file mode 100644 index 0000000..752d5d2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-009.xht
@@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height determination for block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and elements' margins do not collapse</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + + <meta name="flags" content="" /> + <meta name="assert" content="When a block-level non-replaced element is in normal flow, 'overflow' computes to 'visible', the 'height' is 'auto' and top and bottom margins do not collapse. The 'height' is the distance from the top of the topmost margin edge of the content to the bottom edge of the bottom (possibly collapsed) margin of its last in-flow child, if the child's bottom margin does not collapse with the element's bottom margin." /> + <style type="text/css"> + #div1 + { + position: relative; + } + #div2 + { + background: blue; + border-bottom: 0.25in solid blue; + border-top: 0.25in solid blue; + } + #div2, #div3, #div4, #div5 + { + width: 1in; + } + #div3, #div4 + { + background: blue; + height: 0.25in; + } + #div3 + { + border-top: 0.25in solid blue; + margin-top: 0.25in; + } + #div4 + { + border-bottom: 0.25in solid blue; + margin-bottom: 0.25in; + } + #div5 + { + background: blue; + height: 2in; + left: 1in; + position: absolute; + top: 0; + } + </style> + </head> + <body> + <p>Test passes if there is a blue square.</p> + <div id="div1"> + <div id="div2"> + <div id="div3"></div> + <div id="div4"></div> + </div> + <div id="div5"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-010.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-010.xht new file mode 100644 index 0000000..1401d9f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-010.xht
@@ -0,0 +1,63 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height determination for block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible' and elements' margins do not collapse</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <meta name="flags" content="" /> + <meta name="assert" content="When a block-level non-replaced element is in normal flow, 'overflow' does not compute to 'visible', the 'height' is 'auto' and top and bottom margins do not collapse. The 'height' is the sized from the top of the topmost margin edge of the content to the bottom of the bottom most margin edge of the content." /> + <style type="text/css"> + html, body + { + overflow: scroll; + } + #div1 + { + position: relative; + } + #div2 + { + background: blue; + border-bottom: 0.25in solid blue; + border-top: 0.25in solid blue; + } + #div2, #div3, #div4, #div5 + { + width: 1in; + } + #div3, #div4 + { + background: blue; + height: 0.25in; + } + #div3 + { + border-top: 0.25in solid blue; + margin-top: 0.25in; + } + #div4 + { + border-bottom: 0.25in solid blue; + margin-bottom: 0.25in; + } + #div5 + { + background: blue; + height: 2in; + left: 1in; + position: absolute; + top: 0; + } + </style> + </head> + <body> + <p>Test passes if there is a blue square below.</p> + <div id="div1"> + <div id="div2"> + <div id="div3"></div> + <div id="div4"></div> + </div> + <div id="div5"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-011.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-011.xht new file mode 100644 index 0000000..f44089cc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-011.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Floated children are ignored for 'height' on block-level non-replaced elements in normal flow when 'overflow' computes to 'visible'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="A floated child element is not considered when sizing the 'height' of a block-level non-replaced element is in normal flow." /> + <style type="text/css"> + #div1 + { + background: red; + height: auto; + } + div div + { + float: left; + height: 1in; + overflow: visible; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-012.xht new file mode 100644 index 0000000..06fab2f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-012.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Floated children are ignored for 'height' on block-level non-replaced elements in normal flow when 'overflow' does not computes to 'visible'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <meta name="flags" content="" /> + <meta name="assert" content="A floated child element is not considered when sizing the 'height' of a block-level non-replaced element is in normal flow." /> + <style type="text/css"> + html, body + { + overflow: scroll; + } + #div1 + { + background: red; + } + div div + { + float: left; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is no red visible on the page.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-013.xht new file mode 100644 index 0000000..6b6970bb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-013.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: An absolutely positioned child elements' 'height' is ignored for block-level non-replaced elements in normal flow when 'overflow' computes to 'visible'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="An absolutely positioned child element is not considered when sizing the 'height' of a block-level non-replaced element is in normal flow." /> + <style type="text/css"> + #div1 + { + background: red; + height: auto; + } + div div + { + height: 1in; + overflow: visible; + position: absolute; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-014.xht new file mode 100644 index 0000000..32210a8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-014.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: An absolutely positioned child elements' 'height' is ignored for block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <meta name="flags" content="" /> + <meta name="assert" content="An absolutely positioned child element is not considered when sizing the 'height' of a block-level non-replaced element is in normal flow." /> + <style type="text/css"> + #div1 + { + background: red; + height: auto; + } + div div + { + height: 1in; + overflow: scroll; + position: absolute; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-015.xht new file mode 100644 index 0000000..bf15003e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-015.xht
@@ -0,0 +1,49 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: A relative positioned child elements' offset is ignored for 'height' on a block-level non-replaced elements in normal flow when 'overflow' computes to 'visible'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <meta name="flags" content="" /> + <meta name="assert" content="A relative positioned child elements' offset is not considered when sizing the 'height' of a block-level non-replaced element is in normal flow." /> + <style type="text/css"> + #div1 + { + position: relative; + } + #div2 + { + background: blue; + } + #div2 div + { + position: relative; + top: 1in; + } + #div3 + { + background: orange; + left: 1in; + position: absolute; + top: 0; + } + #div2 div, #div3 + { + height: 1in; + } + div div + { + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange boxes below are the same height.</p> + <div id="div1"> + <div id="div2"> + <div></div> + </div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-016.xht new file mode 100644 index 0000000..56d928d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-016.xht
@@ -0,0 +1,53 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: A relative positioned child elements' offset is ignored for 'height' on a block-level non-replaced elements in normal flow when 'overflow' does not compute to 'visible'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block" /> + <meta name="flags" content="" /> + <meta name="assert" content="A relative positioned child elements' offset is not considered when sizing the 'height' of a block-level non-replaced element is in normal flow." /> + <style type="text/css"> + html, body + { + overflow: scroll; + } + #div1 + { + position: relative; + } + #div2 + { + background: blue; + } + #div2 div + { + position: relative; + top: 1in; + } + #div3 + { + background: orange; + left: 1in; + position: absolute; + top: 0; + } + #div2 div, #div3 + { + height: 1in; + } + div div + { + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange boxes below are the same height.</p> + <div id="div1"> + <div id="div2"> + <div></div> + </div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-001-ref.xht new file mode 100644 index 0000000..ba8cb22 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-001-ref.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + height: 30px; + width: 150px; + } + + div#orange {background-color: orange;} + + div#blue + { + background-color: blue; + position: absolute; + top: 82px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if the orange and blue rectangles have the <strong>same width</strong>.</p> + + <div id="orange"></div> + + <div id="blue"></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-001.xht new file mode 100644 index 0000000..cf01514 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-001.xht
@@ -0,0 +1,48 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Solving for width of block-level non-replaced elements in normal flow</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth" /> + <link rel="match" href="block-non-replaced-width-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The equation; 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' is equal the width of containing block." /> + <style type="text/css"> + #div1 + { + background-color: orange; + border: 5px solid orange; + display: inline-block; + } + div div + { + background-color: orange; + border-left: 10px solid orange; + border-right: 10px solid orange; + height: 20px; + margin-left: 10px; + margin-right: 10px; + padding-left: 10px; + padding-right: 10px; + width: 80px; + } + #d3 + { + background-color: blue; + height: 30px; + position: absolute; + top: 82px; + width: 150px; + } + </style> + </head> + <body> + <p>Test passes if the orange and blue rectangles have the <strong>same width</strong>.</p> + <div id="div1"> + <div></div> + </div> + <div id="d3"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-002.xht new file mode 100644 index 0000000..93c73d2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-002.xht
@@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Solving for width of block-level non-replaced elements in normal flow when 'width' is 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth" /> + <meta name="flags" content="" /> + <meta name="assert" content="When width is auto and the combination of border widths, padding widths, scrollbar widths, width, and non 'auto' margin widths are larger than the width of the containing block, the margin widths are treated as 0." /> + <style type="text/css"> + #div1 + { + margin-top: 15px; + width: 100px; + } + div div + { + background-color: orange; + border-left: 10px solid orange; + border-right: 10px solid orange; + height: 30px; + margin-left: auto; + padding-left: 10px; + padding-right: 10px; + width: 110px; + } + #div2 + { + background-color: blue; + height: 30px; + position: absolute; + top: 82px; + width: 150px; + } + </style> + </head> + <body> + <p>Test passes if the orange and blue rectangles have the <strong>same width</strong>.</p> + <div id="div1"> + <div></div> + </div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-003.xht new file mode 100644 index 0000000..f64c8a2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-003.xht
@@ -0,0 +1,57 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Solving over-constrained situation for block-level non-replaced elements in normal flow and direction is left-to-right</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth" /> + <link rel="match" href="block-non-replaced-width-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="When direction is left-to-right, the specified value of 'margin-right' is ignored in an over-constrained situation and the 'margin-right' value is calculated so as to make the equality true." /> + <style type="text/css"> + div + { + direction: ltr; + } + #div1 + { + background: orange; + width: 100px; + } + div div + { + background-color: orange; + border-left: 10px solid orange; + border-right: 10px solid orange; + height: 30px; + margin-left: 10px; + margin-right: 10px; + padding-left: 10px; + padding-right: 10px; + width: 100px; + } + + /* + In this test, the used margin-right should be -50px so + that the equation remains balanced. + */ + + #div2 + { + background-color: blue; + height: 30px; + position: absolute; + top: 82px; + width: 150px; + } + </style> + </head> + <body> + <p>Test passes if the orange and blue rectangles have the <strong>same width</strong>.</p> + <div id="div1"> + <div></div> + </div> + <div id="div2"></div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-004-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-004-ref.xht new file mode 100644 index 0000000..f99a909 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-004-ref.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + body {direction: rtl;} + + p {direction: ltr;} + + div + { + height: 30px; + width: 150px; + } + + div#orange {background-color: orange;} + + div#blue + { + background-color: blue; + position: absolute; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if the orange and blue rectangles have the <strong>same width</strong>.</p> + + <div id="orange"></div> + + <div id="blue"></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-004.xht new file mode 100644 index 0000000..c07c4fad --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-004.xht
@@ -0,0 +1,59 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Solving over-constrained situation for block-level non-replaced elements in normal flow and direction is right-to-left</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth" /> + <link rel="match" href="block-non-replaced-width-004-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="When direction is right-to-left, the specified value of 'margin-left' is ignored in an over-constrained situation and the 'margin-left' value is calculated so as to make the equality true." /> + <style type="text/css"> + div + { + direction: rtl; + position: relative; + } + #div1 + { + background: orange; + width: 100px; + } + #div1 div + { + background-color: orange; + border-left: 10px solid orange; + border-right: 10px solid orange; + height: 30px; + margin-left: 10px; + margin-right: 10px; + padding-left: 10px; + padding-right: 10px; + width: 100px; + } + + /* + In this test, the used margin-left should be -50px so + that the equation remains balanced. + */ + + #div2 + { + background-color: blue; + height: 30px; + position: absolute; + width: 150px; + } + </style> + </head> + <body> + <p>Test passes if the orange and blue rectangles have the <strong>same width</strong>.</p> + <div> + <div id="div1"> + <div></div> + </div> + <div id="div2"></div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-005-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-005-ref.xht new file mode 100644 index 0000000..794831c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-005-ref.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + body {margin: 0;} + + div + { + background-color: green; + height: 40px; + width: 100%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if a filled green rectangle spans the entire width of the page and if there is <strong>no red</strong>.</p> + + <div></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-005.xht new file mode 100644 index 0000000..d060811 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-005.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Solving width for block-level non-replaced elements in normal flow with single 'auto' value</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth" /> + <link rel="match" href="block-non-replaced-width-005-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="If 'width' is set to 'auto' and no other 'auto' values are set, then the 'width' is the width of the containing block." /> + <style type="text/css"> + body + { + margin: 0; + } + #div1 + { + background: red; + width: 100%; + } + div div + { + background-color: green; + border: none; + margin: 0; + padding: 0; + height: 40px; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if a filled green rectangle spans the entire width of the page and if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-006.xht new file mode 100644 index 0000000..beffcf7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-006.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Solving width for block-level non-replaced elements in normal flow with multiple properties with 'auto' values</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth" /> + <link rel="match" href="block-non-replaced-width-005-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="If 'width' is set to 'auto', any other 'auto' values become '0' and the 'width' is computed based on remaining space which includes any negative width." /> + <style type="text/css"> + body + { + margin: 0; + } + #div1 + { + background: red; + width: 100%; + } + div div + { + background-color: green; + border: 10px solid green; + margin: 0 auto; + padding: 0; + height: 20px; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if a filled green rectangle spans the entire width of the page and if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-007-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-007-ref.xht new file mode 100644 index 0000000..35ac917 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-007-ref.xht
@@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: black solid medium; + font: 100px/1 Ahem; + height: 200px; + text-align: center; + width: 200px; + } + + span#orange {color: orange;} + + span#blue {color: blue;} + ]]></style> + + </head> + + <body> + + <p>Test passes if the blue and orange squares have the same width and the blue square is directly below the orange square.</p> + + <div><span id="orange">O</span> <span id="blue">B</span></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-007.xht new file mode 100644 index 0000000..c627bcd --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-007.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Box centering with 'margin-left' and 'margin-right' set to auto</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth" /> + <link rel="match" href="block-non-replaced-width-007-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="When 'margin-left' and 'margin-right' are set to 'auto' and the element has a 'width', then the box will be centered within the edges of its containing block." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 200px; + width: 200px; + } + #div2 + { + background-color: orange; + border-color: orange; + border-style: solid; + border-width: 0 25px; + margin: 0 auto; + padding: 0; + height: 100px; + width: 50px; + } + #div3 + { + color: blue; + font: 100px/1 Ahem; + text-align: center; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the same width and the blue square is directly below the orange square.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3">X</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-008.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-008.xht new file mode 100644 index 0000000..f6ed407 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-width-008.xht
@@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: Solving 'width: auto' of a block-level non-replaced element in normal flow with one other property set to an 'auto' value</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="help" title="10.3.3 Block-level, non-replaced elements in normal flow" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth" /> + <meta content="" name="flags" /> + <meta content="If 'width' is set to 'auto', any other 'auto' values become '0' and the determination of 'width' proceeds from the following equality: 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' = width of containing block" name="assert" /> + + <style type="text/css"><![CDATA[ + div {height: 200px;} + + div#containing-block + { + border-right: red solid 200px; + padding-right: 200px; + width: 0px; + } + + div#child + { + border-right: green solid 200px; + margin-right: -400px; + } + + /* + Calculation of used width for div#child: + + margin-left : 0px (or auto) + + border-left-width : 0px + + padding-left : 0px + + width : auto + + padding-right : 0px + + border-right-width : 200px + + margin-right : -400px + ==================================== + width of containing block : 0px + + Therefore 'width: auto' must be resolved as 'width: 200px'. + Therefore div#child's green border-right should overlap perfectly + div#containing-block's red border-right. + */ + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + + <div id="containing-block"> + <div id="child"></div> + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-001-ref.xht new file mode 100644 index 0000000..b60e1f1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-001-ref.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border-bottom: orange solid medium; + border-top: orange solid medium; + line-height: 15px; + width: 96px; + } + + img {vertical-align: top;} + ]]></style> + + </head> + + <body> + + <p>Test passes if there is no white space between the blue square and the orange lines.</p> + + <div><img src="support/blue15x15.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-001.xht new file mode 100644 index 0000000..fad608d0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-001.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block replaced elements with 'margin-top' and 'margin-bottom' as 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-001-ref.xht" /> + + <meta name="flags" content="image" /> + <meta name="assert" content="A block replaced elements' used value of 'margin-top' and/or 'margin-bottom' set to 'auto' is '0'." /> + <style type="text/css"> + div + { + border-bottom: solid orange; + border-top: solid orange; + width: 1in; + } + img + { + display: block; + margin-top: auto; + margin-bottom: auto; + } + </style> + </head> + <body> + <p>Test passes if there is no white space between the blue square and the orange lines.</p> + <div> + <img alt="blue 15x15" src="support/blue15x15.png" /> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-002-ref.xht new file mode 100644 index 0000000..effbf97 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-002-ref.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + </head> + + <body> + + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + + <div><img src="support/blue15x15.png" alt="Image download support must be enabled" /><img src="support/swatch-orange.png" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-002.xht new file mode 100644 index 0000000..3bfbef71 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-002.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block replaced elements relying on intrinsic height dimensions</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-002-ref.xht" /> + + <meta name="flags" content="image" /> + <meta name="assert" content="The 'height' is the intrinsic height when an block replaced element with and intrinsic height has a 'height' and 'width' computed as 'auto'." /> + <style type="text/css"> + div + { + position: relative; + } + div div + { + background: orange; + height: 15px; + left: 15px; + position: absolute; + top: 0; + width: 15px; + } + img + { + display: block; + height: auto; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + <div> + <img alt="blue 15x15" src="support/blue15x15.png" /> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-003.xht new file mode 100644 index 0000000..901d1a51 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-003.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block replaced elements with intrinsic ratios and 'height' set to 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <meta name="flags" content="image" /> + <meta name="assert" content="The 'height' is the used width divided by the ratio when an block replaced element has an intrinsic ratio, 'height' is set to 'auto' and 'width' is specified." /> + <style type="text/css"> + div + { + line-height: 0; + position: relative; + } + div div + { + background: orange; + height: 1in; + left: 1in; + position: absolute; + top: 0; + } + img + { + display: inline; + height: auto; + } + div div, img + { + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange boxes below are the same height.</p> + <div> + <img alt="blue 15x15" src="support/blue15x15.png" /> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-004-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-004-ref.xht new file mode 100644 index 0000000..3a33506 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-004-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: green solid medium; + height: 150px; + width: 300px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is <strong>no red</strong>.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-004.xht new file mode 100644 index 0000000..ffb5a17 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-004.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block replaced elements without intrinsic ratios and 'height' set to 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-004-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="For block replaced elements the 'height' is set to the largest rectangle that has a 2:1 ratio that is not greater than 150px and has a 'width' not greater than the device width." /> + <style type="text/css"> + div + { + position: relative; + } + div div + { + border: solid green; + height: 150px; + position: absolute; + top: 0; + width: 300px; + } + iframe + { + border: solid red; + display: block; + height: auto; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div> + <iframe></iframe> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-005-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-005-ref.xht new file mode 100644 index 0000000..83013624 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-005-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: green solid medium; + height: 96px; + width: 300px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is <strong>no red</strong>.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-005.xht new file mode 100644 index 0000000..5046e9af --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-005.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block replaced elements with percentage based intrinsic height</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-005-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="A block replaced elements with a percentage intrinsic height resolves based on the containing block height when percentage is explicitly specified." /> + <style type="text/css"> + #div1 + { + position: relative; + height: 2in; + } + div div + { + border: solid green; + height: 1in; + position: absolute; + top: 0; + width: 300px; + } + iframe + { + border: solid red; + display: block; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <iframe height="50%"></iframe> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-006-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-006-ref.xht new file mode 100644 index 0000000..6912d51 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-006-ref.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 96px; + width: 200px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if the blue and orange rectangles have the <strong>same height</strong>.</p> + + <div><img src="support/blue15x15.png" alt="Image download support must be enabled" /><img src="support/swatch-orange.png" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-006.xht new file mode 100644 index 0000000..1c6d265 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-006.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> + <head> + <title>CSS Test: Absolutely positioned block replaced elements with percentage based intrinsic height</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-006-ref.xht" /> + + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="A block replaced element with percentage intrinsic height resolves based on the containing block when the replaced element is absolutely positioned." /> + <style type="text/css"> + #div1 + { + position: relative; + height: 2in; + } + div div + { + background: orange; + height: 1in; + left: 200px; + position: absolute; + top: 0; + width: 200px; + } + svg + { + display: block; + position: absolute; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange rectangles have the <strong>same height</strong>.</p> + <div id="div1"> + <svg:svg version="1.1" height="50%" baseProfile="full"> + <svg:rect x="0" y="0" width="200" height="100" fill="blue" /> + </svg:svg> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-007.xht new file mode 100644 index 0000000..ce094db --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-height-007.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block replaced elements with percentage based intrinsic height that cannot be resolved</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-004-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="A block replaced elements with a percentage height that cannot be resolved has no intrinsic height." /> + <style type="text/css"> + #div1 + { + position: relative; + } + div div + { + border: solid green; + height: 150px; + position: absolute; + top: 0; + width: 300px; + } + iframe + { + border: solid red; + display: block; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <iframe height="50%"></iframe> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-001.xht new file mode 100644 index 0000000..6115741 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-001.xht
@@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and intrinsic width</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#block-replaced-width" /> + <meta name="flags" content="ahem image" /> + <meta name="assert" content="Computed value of 'auto' for 'margin-left' or margin-right' on block replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 2in; + width: 2in; + } + img + { + display: block; + margin-left: auto; + margin-right: auto; + } + div div + { + color: orange; + font: 15px/1em Ahem; + text-align: center; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the same width and are horizontally centered inside the black hollow square.</p> + <div id="div1"> + <img alt="blue 15x15" src="support/blue15x15.png" /> + <div>X</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-002-ref.xht new file mode 100644 index 0000000..7915842f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-002-ref.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: black solid medium; + font: 50px/1 Ahem; + height: 288px; + width: 288px; + } + + span#blue {color: blue;} + + span#orange {color: orange;} + ]]></style> + + </head> + + <body> + + <p>Test passes if the blue and orange rectangles have the <strong>same width</strong> and the blue rectangle is in the upper-left corner of an hollow black square.</p> + + <div><span id="blue">1234</span> <span id="orange">1234</span> </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-002.xht new file mode 100644 index 0000000..ce25bf90 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-002.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> + <head> + <title>CSS Test: Block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and intrinsic height</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#block-replaced-width" /> + <link rel="match" href="block-replaced-width-002-ref.xht" /> + + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="Computed value of 'auto' for 'margin-left' or margin-right' on block replaced elements becomes a used value of '0' if 'width' is set to 'auto'. Then 'width' follows from the resulting equality." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 3in; + width: 3in; + } + svg + { + display: block; + margin-left: auto; + margin-right: auto; + } + div div + { + background: orange; + height: 50px; + width: 200px; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange rectangles have the <strong>same width</strong> and the blue rectangle is in the upper-left corner of an hollow black square.</p> + <div id="div1"> + <svg:svg version="1.1" height="50" baseProfile="full"> + <svg:rect x="0" y="0" width="200" height="100" fill="blue" /> + </svg:svg> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-003.xht new file mode 100644 index 0000000..c85b0ac --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-003.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> + <head> + <title>CSS Test: Block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and 'height'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#block-replaced-width" /> + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="Computed value of 'auto' for 'margin-left' or margin-right' on block replaced elements becomes a used value of '0'. The 'width' is (used height) * (intrinsic ratio) if there is no intrinsic width but there is intrinsic height and ratio." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 3in; + width: 3in; + } + svg + { + display: block; + height: 100px; + margin-left: auto; + margin-right: auto; + } + div div + { + background: orange; + height: 100px; + width: 200px; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange boxes below are the same width, and the blue box is in the upper-left corner of the black box.</p> + <div id="div1"> + <svg:svg version="1.1" height="50" baseProfile="full"> + <svg:rect x="0" y="0" width="200" height="100" fill="blue" /> + </svg:svg> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-004.xht new file mode 100644 index 0000000..97b7819 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-004.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> + <head> + <title>CSS Test: Block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and no intrinsic height or width</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#block-replaced-width" /> + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="Computed value of 'auto' for 'margin-left' or margin-right' on block replaced elements becomes a used value of '0'. The height and width are adjusted by the constraints for block-level, non-replaced elements." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 3in; + width: 3in; + } + #div2 + { + height: 110px; + width: 3in; + } + #div3 + { + background: orange; + height: 1in; + width: 200px; + } + svg + { + display: block; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange boxes below are the same width, and the blue box is in the upper-left corner of the black box.</p> + <div id="div1"> + <div id="div2"> + <svg:svg version="1.1" baseProfile="full"> + <svg:rect x="0" y="0" width="200" height="100" fill="blue" /> + </svg:svg> + </div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-006-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-006-ref.xht new file mode 100644 index 0000000..8050434 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-006-ref.xht
@@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: black solid medium; + font: 100px/1 Ahem; + height: 300px; + text-align: center; + width: 200px; + } + + span#blue {color: blue;} + + span#orange {color: orange;} + ]]></style> + + </head> + + <body> + + <p>Test passes if the blue and orange squares have the <strong>same width</strong> and if they are <strong>horizontally centered</strong> inside an hollow black rectangle.</p> + + <div><span id="blue">1</span><br /><span id="orange">2</span></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-006.xht new file mode 100644 index 0000000..44311ef --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-replaced-width-006.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#block-replaced-width" /> + <link rel="match" href="block-replaced-width-006-ref.xht" /> + + <meta name="flags" content="ahem image" /> + <meta name="assert" content="Percentage intrinsic widths are evaluated against the containing block's width." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 300px; + width: 200px; + } + img + { + display: block; + margin-left: auto; + margin-right: auto; + } + div div + { + color: orange; + font: 100px/1em Ahem; + text-align: center; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same width</strong> and if they are <strong>horizontally centered</strong> inside an hollow black rectangle.</p> + <div id="div1"> + <img alt="blue 15x15" src="support/blue15x15.png" width="50%" /> + <div>X</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-011-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-011-ref.xht new file mode 100644 index 0000000..87f2d97 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-011-ref.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: blue; + height: 2em; + width: 4em; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a short filled blue rectangle.</p> + + <div></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-011.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-011.xht new file mode 100644 index 0000000..bd86d863 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-011.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>CSS Test: CSS Block Box Model: overconstrained horizontal box model and minimum widths</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-06 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/001.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property"/> + <link rel="match" href="blocks-011-ref.xht" /> + + <style type="text/css"> + .container { width: 3em; } + .test { margin-left: 0; border-left: 2em solid; padding-left: 0; width: auto; padding-right: 0; border-right: 2em solid; margin-right: 0; } + .control { margin-left: 0; border-left: none; padding-left: 0; width: 4em; padding-right: 0; border-right: none; margin-right: 0; } + .body div { background: blue; border-color: blue; height: 1em; } /* need the .body to increase specificity */ + </style> + </head> + <body class="body"> + <p>Test passes if there is a short filled blue rectangle.</p> + <div class="container"> + <div class="test"></div> + </div> + <div class="control"></div> + +</body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-012.xht new file mode 100644 index 0000000..7c2751c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-012.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>CSS Test: CSS Block Box Model: overconstrained horizontal box model and minimum widths</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-06 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/002.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property"/> + <link rel="match" href="blocks-011-ref.xht" /> + + <style type="text/css"> + .container { width: 3em; } + .test { margin-left: 0; border-left: none; padding-left: 2em; width: auto; padding-right: 2em; border-right: none; margin-right: 0; } + .control { margin-left: 0; border-left: none; padding-left: 0; width: 4em; padding-right: 0; border-right: none; margin-right: 0; } + div { background: blue; height: 1em; } + </style> + </head> + <body> + <p>Test passes if there is a short filled blue rectangle.</p> + <div class="container"> + <div class="test"></div> + </div> + <div class="control"></div> + + +</body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-013-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-013-ref.xht new file mode 100644 index 0000000..e8c9392 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-013-ref.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + font-size: xx-large; + padding-left: 2em; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if 2 short vertical bars are at the <strong>same horizontal position</strong>.</p> + + <div class="control">|</div> + + <div class="control">|</div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-013.xht new file mode 100644 index 0000000..90b0b70 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-013.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>CSS Test: CSS Block Box Model: overconstrained horizontal box model and minimum widths</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-06 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/003.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property"/> + <link rel="match" href="blocks-013-ref.xht" /> + + <style type="text/css"> + .container { width: 3em; } + .test { margin-left: 2em; border-left: none; padding-left: 0; width: auto; padding-right: 0; border-right: none; margin-right: 2em; } + .control { padding-left: 2em; } + div { font-size: xx-large; } + </style> + </head> + <body> + <p>Test passes if 2 short vertical bars are at the <strong>same horizontal position</strong>.</p> + <div class="container"> + <div class="test"><span>|</span></div> + </div> + <div class="control"><span>|</span></div> + + +</body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-014-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-014-ref.xht new file mode 100644 index 0000000..0ee763d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-014-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: blue; + height: 2em; + width: 5em; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a short filled blue rectangle.</p> + + <div></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-014.xht new file mode 100644 index 0000000..dc06f52 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-014.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>CSS Test: CSS Block Box Model: sane horizontal box model and minimum widths</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-06 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/004.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property"/> + <link rel="match" href="blocks-014-ref.xht" /> + + <style type="text/css"> + .container { width: 5em; } + .test { margin-left: 0; border-left: 2em solid; padding-left: 0; width: auto; padding-right: 0; border-right: 2em solid; margin-right: 0; } + .control { margin-left: 0; border-left: none; padding-left: 0; width: 5em; padding-right: 0; border-right: none; margin-right: 0; } + .body div { background: blue; border-color: blue; height: 1em; } /* need .body to increase specificity */ + </style> + </head> + <body class="body"> + <p>Test passes if there is a short filled blue rectangle.</p> + <div class="container"> + <div class="test"></div> + </div> + <div class="control"></div> + + +</body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-015.xht new file mode 100644 index 0000000..37ad205 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-015.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>CSS Test: CSS Block Box Model: sane horizontal box model and minimum widths</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-06 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/005.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property"/> + <link rel="match" href="blocks-014-ref.xht" /> + + <style type="text/css"> + .container { width: 5em; } + .test { margin-left: 0; border-left: none; padding-left: 2em; width: auto; padding-right: 2em; border-right: none; margin-right: 0; } + .control { margin-left: 0; border-left: none; padding-left: 0; width: 5em; padding-right: 0; border-right: none; margin-right: 0; } + div { background: blue; height: 1em; } + </style> + </head> + <body> + <p>Test passes if there is a short filled blue rectangle.</p> + <div class="container"> + <div class="test"></div> + </div> + <div class="control"></div> + + +</body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-016.xht new file mode 100644 index 0000000..e106569 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-016.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>CSS Test: CSS Block Box Model: sane horizontal box model and minimum widths</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-06 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/006.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property"/> + <link rel="match" href="blocks-013-ref.xht" /> + + <style type="text/css"> + .container { width: 5em; } + .test { margin-left: 2em; border-left: none; padding-left: 0; width: auto; padding-right: 0; border-right: none; margin-right: 2em; } + .control { padding-left: 2em; } + div { font-size: xx-large; } + </style> + </head> + <body> + <p>Test passes if 2 short vertical bars are at the <strong>same horizontal position</strong>.</p> + <div class="container"> + <div class="test"><span>|</span></div> + </div> + <div class="control"><span>|</span></div> + + +</body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-017.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-017.xht new file mode 100644 index 0000000..22bc3fcf2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-017.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: CSS Blocks: Margin Collapsing</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-12-12 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/007.xml" type="application/xhtml+xml"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins" /> + <link rel="match" href="../tables/reference/table-margin-004-ref.xht" /> + + <meta name="flags" content="ahem" /> + + <style type="text/css"><![CDATA[ + div { + border: solid blue; + height: 180px; + } + div > * { + margin: 1em; + height: 1em; + display: block; + font: 20px/1 Ahem; + } + table { border-spacing: 0; } + + td { padding: 0; } + ]]></style> + </head> + <body> + <p>Test passes if there are 4 black bars which do not overflow a wide blue rectangle. The black bars are evenly distributed (vertically) in the blue rectangle: the gap between the blue border at the top and the first black bar should be equal to the gap between the 4th bar and the blue border at the bottom.</p> + + <div> + <table><tr><td>Test</td></tr></table> + <table><tr><td>Test</td></tr></table> + <p>Test</p> + <p>Test</p> + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-018-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-018-ref.xht new file mode 100644 index 0000000..79e01686 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-018-ref.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div {line-height: 1;} + + span + { + background-color: green; + color: white; + } + ]]></style> + + </head> + + <body> + + <div><span>Test passes if there is no red.</span></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-018.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-018.xht new file mode 100644 index 0000000..1c30eee --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-018.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: CSS Blocks: Effect of Bottom Padding on Inline Layout</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-06 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/008.xml" type="application/xhtml+xml"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#padding-properties" /> + <link rel="match" href="blocks-018-ref.xht" /> + + <meta name="assert" content="Bottom padding on inline elements has no effect on layout."/> + <style type="text/css"> + /* reset everything to be sure we don't introduce oddities */ + div { border: 0; padding: 0; margin: 0; line-height: 1; + display: block; width: 10em; } + span { border: 0; padding: 0; margin: 0; line-height: 1; + display: inline; white-space: nowrap; } + + /* the test */ + div { background: red; } + span.control { background: green; color: white; } + span.test { padding-bottom: 10em; } + </style> + </head> + <body> + <div> + <span class="test"><span class="control">Test passes if there is no red.</span></span> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-019-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-019-ref.xht new file mode 100644 index 0000000..08100b1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-019-ref.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + line-height: 1; + margin-top: 12em; + } + + span + { + background-color: green; + color: white; + } + ]]></style> + + </head> + + <body> + + <div><span>Test passes if there is no red.</span></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-019.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-019.xht new file mode 100644 index 0000000..f435219c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-019.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: CSS Blocks: Effect of Top Padding on Inline Layout</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-06 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/009.xml" type="application/xhtml+xml"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#padding-properties" /> + <link rel="match" href="blocks-019-ref.xht" /> + + <meta name="assert" content="Top padding on inline elements has no effect on layout."/> + <style type="text/css"> + /* reset everything to be sure we don't introduce oddities */ + div { border: 0; padding: 0; margin: 0; line-height: 1; + display: block; width: 10em; } + span { border: 0; padding: 0; margin: 0; line-height: 1; + display: inline; white-space: nowrap; } + + /* the test */ + body { margin-top: 12em; } + div { background: red; } + span.control { background: green; color: white; } + span.test { padding-top: 10em; } + </style> + </head> + <body> + <div> + <span class="test"><span class="control">Test passes if there is no red.</span></span> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-020-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-020-ref.xht new file mode 100644 index 0000000..60524aa --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-020-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: green; + height: 100px; + width: 300px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.</p> + + <div></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-020.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-020.xht new file mode 100644 index 0000000..2eabe327 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-020.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>CSS Test: CSS Block Box Model: block widths with position:relative</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-06 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/010.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property"/> + <link rel="match" href="blocks-020-ref.xht" /> + + <meta name="flags" content="ahem"/> + <style type="text/css"> + .outer { position: relative; width: 300px; height: 100px; background: red; } + .inner { width: 200%; height: 200%; font: 100px/1 Ahem; color: green; } + </style> + </head> + <body> + <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.</p> + <div class="outer"> + <div class="inner">XXX</div> + </div> + + +</body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-021.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-021.xht new file mode 100644 index 0000000..14124f02 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-021.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>CSS Test: CSS Block Box Model: block widths with position:absolute</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-06 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/011.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property"/> + <link rel="match" href="blocks-020-ref.xht" /> + + <meta name="flags" content="ahem"/> + <style type="text/css"> + .outer { position: absolute; width: 300px; height: 100px; background: red; } + .inner { width: 200%; height: 200%; font: 100px/1 Ahem; color: green; } + </style> + </head> + <body> + <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.</p> + <div class="outer"> + <div class="inner">XXX</div> + </div> + + +</body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-022.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-022.xht new file mode 100644 index 0000000..6acbb8b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-022.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>CSS Test: CSS Block Box Model: block widths with position:static</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-06 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/012.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property"/> + <link rel="match" href="blocks-020-ref.xht" /> + + <meta name="flags" content="ahem"/> + <style type="text/css"> + .outer { position: static; width: 300px; height: 100px; background: red; } + .inner { width: 200%; height: 200%; font: 100px/1 Ahem; color: green; } + </style> + </head> + <body> + <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.</p> + <div class="outer"> + <div class="inner">XXX</div> + </div> +</body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-025-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-025-ref.xht new file mode 100644 index 0000000..41c701bb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-025-ref.xht
@@ -0,0 +1,62 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + body {margin-left: 2em;} + + p + { + height: 2em; + margin: 1em 0; + } + + table + { + background-color: green; + border: black solid 4px; + border-collapse: collapse; + } + + td + { + height: 80px; + padding: 0px; + width: 80px; + } + + td#top-left + { + border-bottom: black solid 8px; + border-right: black solid 8px; + } + + td#bottom-right + { + border-left: black solid 8px; + border-top: black solid 8px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there are 4 green squares making a green square pattern and <strong>no red</strong>.</p> + + <table> + + <tr><td id="top-left"></td><td></td></tr> + + <tr><td></td><td id="bottom-right"></td></tr> + + </table> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-025.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-025.xht new file mode 100644 index 0000000..d207317 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-025.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>CSS Test: Percentage Dimensions in Shrink Wrap Blocks</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-06 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/015.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property"/> + <link rel="match" href="blocks-025-ref.xht" /> + + <style type="text/css"> + body, html { margin: 0 0 0 1em; padding: 0; } + p { margin: 1em 0; height: 2em; } + table, .float, .abspos, .fixpos { border: 0.25em solid; background: red; } + table, td { padding: 0; border-spacing: 0; } + .float { float: left; } + .fixpos { position: fixed; left: 7.5em; top: 4em; } + .abspos { position: absolute; left: 7.5em; top: 9.5em; } + .testA { width: 5em; height: 5em; background: green; } + .testB { width: 20%; height: 20%; background: red; } + </style> + </head> + <body> + <p>Test passes if there are 4 green squares making a green square pattern and <strong>no red</strong>.</p> + <table><tbody><tr><td> + <div class="testA"></div> + <div class="testB"></div> + </td></tr></tbody></table> + <div class="float"> + <div class="testA"></div> + <div class="testB"></div> + </div> + <div class="fixpos"> + <div class="testA"></div> + <div class="testB"></div> + </div> + <div class="abspos"> + <div class="testA"></div> + <div class="testB"></div> + </div> + + +</body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-026-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-026-ref.xht new file mode 100644 index 0000000..07ce72f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-026-ref.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: green; + border: green solid 100px; + height: 300px; + width: 50%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a big filled green square and <strong>no red</strong>.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-026.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-026.xht new file mode 100644 index 0000000..0b626bb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-026.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>CSS Test: Percentage widths on INPUT elements with borders</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-06 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/016.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property"/> + <link rel="match" href="blocks-026-ref.xht" /> + + <style type="text/css"> + div, div p, div input { margin: 0; border: 0; padding: 0; } + div { height: 0; } + div p, div input { width: 50%; height: 300px; } + div p { background: red; } + div input { border: 100px solid green; background: green; display: block; } + /* input should be at LEAST 50% wide, it may even be 50% + 200px if + the browser doesn't assume box-sizing: border-box. However, + there is no way the input can be narrower than the p. */ + </style> + </head> + <body> + <p>Test passes if there is a big filled green square and <strong>no red</strong>.</p> + <div><p></p></div> + <div><input /></div> + + +</body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-027.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-027.xht new file mode 100644 index 0000000..7edc61ab --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-027.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: CSS Block Box Model: overconstrained horizontal box model and minimum widths</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/mozilla/001.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth"/> + <style type="text/css"> + .test { border-left: 2em solid; padding-left: 0; width: 3em; padding-right: 0; border-right: 2em solid; -moz-box-sizing: border-box; } + .control { border-left: none; padding-left: 0; width: 4em; padding-right: 0; border-right: none; } + .body div { background: navy; border-color: navy; height: 1em; } + </style> + </head> + <body class="body"> + <p>There must be a perfectly rectangular blue box below.</p> + <div class="test"></div> + <div class="control"></div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-028.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-028.xht new file mode 100644 index 0000000..b3a7420c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/blocks-028.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: CSS Block Box Model: overconstrained horizontal box model and minimum widths</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/mozilla/002.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth"/> + <style type="text/css"> + .test { border-left: none; padding-left: 2em; width: 3em; padding-right: 2em; border-right: none; -moz-box-sizing: border-box; } + .control { border-left: none; padding-left: 0; width: 4em; padding-right: 0; border-right: none; } + body div { background: navy; height: 1em; } + </style> + </head> + <body class="body"> + <p>There must be a perfectly rectangular blue box below.</p> + <div class="test"></div> + <div class="control"></div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-001-ref.xht new file mode 100644 index 0000000..6d9a9e3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-001-ref.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + </head> + + <body> + + <p>Test passes if there is <strong>no red</strong>.</p> + + <div>Filler Text</div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-001.xht new file mode 100644 index 0000000..bfe5824 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-001.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using pixels with a minimum minus one value, -1px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'height' property sets a minimum minus one length value in pixels is invalid and resets its value to 'auto'." /> + <style type="text/css"> + div + { + background: red; + height: 0; + height: -1px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-002.xht new file mode 100644 index 0000000..13116a09 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-002.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using pixels with a minimum value, 0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a minimum length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 0px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-003-ref.xht new file mode 100644 index 0000000..6ac08cc3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-003-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 1px; + vertical-align: top; + width: 100%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a thin horizontal line.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-003.xht new file mode 100644 index 0000000..7dd1077 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-003.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using pixels with a minimum plus one value, 1px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a minimum plus one length value in pixels." /> + <style type="text/css"> + div + { + background: black; + height: 1px; + } + </style> + </head> + <body> + <p>Test passes if there is a thin horizontal line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-004.xht new file mode 100644 index 0000000..a3c38e71 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-004.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using pixels with a negative zero value, -0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a negative zero length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: -0px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-005.xht new file mode 100644 index 0000000..c049292 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-005.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using pixels with a positive zero value, +0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive zero length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: +0px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-006-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-006-ref.xht new file mode 100644 index 0000000..e15fdba --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-006-ref.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + img {padding-left: 4px;} + ]]></style> + + </head> + + <body> + + <p>Test passes if 2 black squares have the same height.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-006.xht new file mode 100644 index 0000000..f2b5028 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-006.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using pixels with a nominal value, 96px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a nominal length value in pixels." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + height: 96px; + width: 1in; + } + #div3 + { + border-top: 96px solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-007.xht new file mode 100644 index 0000000..e9fcc47 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-007.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using pixels with a positive nominal value, +96px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive nominal length value in pixels." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + height: +96px; + width: 1in; + } + #div3 + { + border-top: 96px solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-012.xht new file mode 100644 index 0000000..356508b2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-012.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using points with a minimum minus one value, -1pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'height' property sets a minimum minus one length value in points is invalid and resets its value to 'auto'." /> + <style type="text/css"> + div + { + background: red; + height: 0; + height: -1pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-013.xht new file mode 100644 index 0000000..aff6eee --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-013.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using points with a minimum value, 0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a minimum length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 0pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-014.xht new file mode 100644 index 0000000..0401564 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-014.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using points with a minimum plus one value, 1pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a minimum plus one length value in points." /> + <style type="text/css"> + div + { + background: black; + height: 1pt; + } + </style> + </head> + <body> + <p>Test passes if there is a thin line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-015.xht new file mode 100644 index 0000000..4f71e4d6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-015.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using points with a negative zero value, -0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a negative zero length value in points." /> + <style type="text/css"> + div + { + background: red; + height: -0pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-016.xht new file mode 100644 index 0000000..a90f30c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-016.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using points with a positive zero value, +0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive zero length value in points." /> + <style type="text/css"> + div + { + background: red; + height: +0pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-017.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-017.xht new file mode 100644 index 0000000..6b98e97 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-017.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using points with a nominal value, 72pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a nominal length value in points." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + height: 72pt; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-018.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-018.xht new file mode 100644 index 0000000..66073571 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-018.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using points with a positive nominal value, +72pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive nominal length value in points." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + height: +72pt; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-023.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-023.xht new file mode 100644 index 0000000..44907e8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-023.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using picas with a minimum minus one value, -1pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'height' property sets a minimum minus one length value in picas is invalid and resets its value to 'auto'." /> + <style type="text/css"> + div + { + background: red; + height: 0; + height: -1pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-024.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-024.xht new file mode 100644 index 0000000..a2ca7d0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-024.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using picas with a minimum value, 0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a minimum length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 0pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-025-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-025-ref.xht new file mode 100644 index 0000000..19a0080a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-025-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 16px; + vertical-align: top; + width: 100%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a wide black bar.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-025.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-025.xht new file mode 100644 index 0000000..c87a712 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-025.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using picas with a minimum plus one value, 1pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-025-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a minimum plus one length value in picas." /> + <style type="text/css"> + div + { + background: black; + height: 1pc; + } + </style> + </head> + <body> + <p>Test passes if there is a wide black bar.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-026.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-026.xht new file mode 100644 index 0000000..b06f380 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-026.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using picas with a negative zero value, -0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a negative zero length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: -0pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-027.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-027.xht new file mode 100644 index 0000000..3e47f6f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-027.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using picas with a positive zero value, +0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive zero length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: +0pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-028.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-028.xht new file mode 100644 index 0000000..5fe80cd --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-028.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using picas with a nominal value, 6pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a nominal length value in picas." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + height: 6pc; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-029.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-029.xht new file mode 100644 index 0000000..e1015e5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-029.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using picas with a positive nominal value, +6pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive nominal length value in picas." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + height: +6pc; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-034.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-034.xht new file mode 100644 index 0000000..d91a1634 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-034.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using centimeters with a minimum minus one value, -1cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'height' property sets a minimum minus one length value in centimeters is invalid and resets its value to 'auto'." /> + <style type="text/css"> + div + { + background: red; + height: 0; + height: -1cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-035.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-035.xht new file mode 100644 index 0000000..f00402a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-035.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using centimeters with a minimum value, 0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a minimum length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 0cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-036.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-036.xht new file mode 100644 index 0000000..8d9dc5f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-036.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using centimeters with a minimum plus one value, 1cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a minimum plus one length value in centimeters." /> + <style type="text/css"> + div + { + background: black; + height: 1cm; + } + </style> + </head> + <body> + <p>Test passes if there is a wide black bar.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-037.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-037.xht new file mode 100644 index 0000000..b68f181 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-037.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using centimeters with a negative zero value, -0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a negative zero length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: -0cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-038.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-038.xht new file mode 100644 index 0000000..f06d45c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-038.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using centimeters with a positive zero value, +0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive zero length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: +0cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-039.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-039.xht new file mode 100644 index 0000000..f4cd67d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-039.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using centimeters with a nominal value, 2.54cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a nominal length value in centimeters." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + height: 2.54cm; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-040.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-040.xht new file mode 100644 index 0000000..c247240 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-040.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using centimeters with a positive nominal value, +2.54cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive nominal length value in centimeters." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + height: +2.54cm; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-045.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-045.xht new file mode 100644 index 0000000..df06066c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-045.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using millimeters with a minimum minus one value, -1mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'height' property sets a minimum minus one length value in millimeters is invalid and resets its value to 'auto'." /> + <style type="text/css"> + div + { + background: red; + height: 0; + height: -1mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-046.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-046.xht new file mode 100644 index 0000000..456463d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-046.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using millimeters with a minimum value, 0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a minimum length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 0mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-047.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-047.xht new file mode 100644 index 0000000..0c32a2e7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-047.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using millimeters with a minimum plus one value, 1mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a minimum plus one length value in millimeters." /> + <style type="text/css"> + div + { + background: black; + height: 1mm; + } + </style> + </head> + <body> + <p>Test passes if there is a line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-048.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-048.xht new file mode 100644 index 0000000..6104191 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-048.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using millimeters with a negative zero value, -0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a negative zero length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: -0mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-049.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-049.xht new file mode 100644 index 0000000..ccbcb3e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-049.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using millimeters with a positive zero value, +0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive zero length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: +0mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-050.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-050.xht new file mode 100644 index 0000000..6f6435a0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-050.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using millimeters with a nominal value, 25.4mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a nominal length value in millimeters." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + height: 25.4mm; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-051.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-051.xht new file mode 100644 index 0000000..d976b3495 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-051.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using millimeters with a positive nominal value, +25.4mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive nominal length value in millimeters." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + height: +25.4mm; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-056.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-056.xht new file mode 100644 index 0000000..a984276 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-056.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using inches with a minimum minus one value, -1in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'height' property sets a minimum minus one length value in inches is invalid and resets its value to 'auto'." /> + <style type="text/css"> + div + { + background: red; + height: 0; + height: -1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-057.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-057.xht new file mode 100644 index 0000000..870e729 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-057.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using inches with a minimum value, 0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a minimum length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 0in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-058-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-058-ref.xht new file mode 100644 index 0000000..35a5c1e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-058-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 96px; + vertical-align: top; + width: 100%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a wide black rectangle.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-058.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-058.xht new file mode 100644 index 0000000..9517415b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-058.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using inches with a minimum plus one value, 1in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-058-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a minimum plus one length value in inches." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a wide black rectangle.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-059.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-059.xht new file mode 100644 index 0000000..a8ab68c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-059.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using inches with a negative zero value, -0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a negative zero length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: -0in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-060.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-060.xht new file mode 100644 index 0000000..6056870 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-060.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using inches with a positive zero value, +0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive zero length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: +0in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-061-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-061-ref.xht new file mode 100644 index 0000000..fc3bb18 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-061-ref.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + img {padding-left: 4px;} + ]]></style> + + </head> + + <body> + + <p>Test passes if 2 black rectangles have the same height.</p> + + <div><img src="support/black96x96.png" width="96" height="288" alt="Image download support must be enabled" /><img src="support/black96x96.png" width="96" height="288" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-061.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-061.xht new file mode 100644 index 0000000..220a0447 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-061.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using inches with a nominal value, 3in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-061-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a nominal length value in inches." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + height: 3in; + width: 1in; + } + #div3 + { + border-top: 3in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-062.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-062.xht new file mode 100644 index 0000000..a8b9c1c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-062.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using inches with a positive nominal value, +3in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-061-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive nominal length value in inches." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + height: +3in; + width: 1in; + } + #div3 + { + border-top: 3in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-067-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-067-ref.xht new file mode 100644 index 0000000..3a8b8ee1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-067-ref.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div {font: 20px/1 Ahem;} + ]]></style> + + </head> + + <body> + + <p>Test passes if there is <strong>no red</strong>.</p> + + <div>Filler Text</div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-067.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-067.xht new file mode 100644 index 0000000..1b88440a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-067.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using 'em' units with a minimum minus one value, -1em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-067-ref.xht" /> + + <meta name="flags" content="ahem invalid" /> + <meta name="assert" content="The 'height' property sets a minimum minus one length value in 'em' units is invalid and resets its value to 'auto'." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 0; + height: -1em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-068.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-068.xht new file mode 100644 index 0000000..b0a36a5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-068.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using 'em' units with a minimum value, 0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'height' property sets a minimum length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 0em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-069-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-069-ref.xht new file mode 100644 index 0000000..694fbb6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-069-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 20px; + vertical-align: top; + width: 100%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a wide black bar.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-069.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-069.xht new file mode 100644 index 0000000..1b97c5f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-069.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using 'em' units with a minimum plus one value, 1em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-069-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'height' property sets a minimum plus one length value in 'em' units." /> + <style type="text/css"> + div + { + background: black; + font: 20px/1 Ahem; + height: 1em; + } + </style> + </head> + <body> + <p>Test passes if there is a wide black bar.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-070.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-070.xht new file mode 100644 index 0000000..a206089 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-070.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using 'em' units with a negative zero value, -0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'height' property sets a negative zero length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: -0em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-071.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-071.xht new file mode 100644 index 0000000..f67a265 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-071.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using 'em' units with a positive zero value, +0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'height' property sets a positive zero length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: +0em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-072-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-072-ref.xht new file mode 100644 index 0000000..b51af2a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-072-ref.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + img {padding-left: 4px;} + ]]></style> + + </head> + + <body> + + <p>Test passes if 2 black squares have the same height.</p> + + <div><img src="support/black96x96.png" width="100" height="100" alt="Image download support must be enabled" /><img src="support/black96x96.png" width="100" height="100" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-072.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-072.xht new file mode 100644 index 0000000..8c2fcdf8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-072.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using 'em' units with a nominal value, 5em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-072-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'height' property sets a nominal length value in 'em' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + position: relative; + } + #div2 + { + background: black; + height: 5em; + width: 100px; + } + #div3 + { + border-top: 100px solid black; + left: 104px; + position: absolute; + top: 0; + width: 100px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-073.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-073.xht new file mode 100644 index 0000000..fe4f5c1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-073.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using 'em' units with a positive nominal value, +5em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-072-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'height' property sets a positive nominal length value in 'em' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + position: relative; + } + #div2 + { + background: black; + height: +5em; + width: 100px; + } + #div3 + { + border-top: 100px solid black; + left: 104px; + position: absolute; + top: 0; + width: 100px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-078.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-078.xht new file mode 100644 index 0000000..2586467 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-078.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using 'ex' units with a minimum minus one value, -1ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-067-ref.xht" /> + + <meta name="flags" content="ahem invalid" /> + <meta name="assert" content="The 'height' property sets a minimum minus one length value in 'ex' units is invalid and resets its value to 'auto'." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 0; + height: -1ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-079.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-079.xht new file mode 100644 index 0000000..ee8dc4f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-079.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using 'ex' units with a minimum value, 0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'height' property sets a minimum length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 0ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-080-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-080-ref.xht new file mode 100644 index 0000000..19a0080a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-080-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 16px; + vertical-align: top; + width: 100%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a wide black bar.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-080.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-080.xht new file mode 100644 index 0000000..ddccb31 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-080.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using 'ex' units with a minimum plus one value, 1ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-080-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'height' property sets a minimum plus one length value in 'ex' units." /> + <style type="text/css"> + div + { + background: black; + font: 20px/1 Ahem; + height: 1ex; + } + </style> + </head> + <body> + <p>Test passes if there is a wide black bar.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-081.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-081.xht new file mode 100644 index 0000000..34846561 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-081.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using 'ex' units with a negative zero value, -0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'height' property sets a negative zero length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: -0ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-082.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-082.xht new file mode 100644 index 0000000..254de52 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-082.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using 'ex' units with a positive zero value, +0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'height' property sets a positive zero length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: +0ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-083.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-083.xht new file mode 100644 index 0000000..5911712 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-083.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using 'ex' units with a nominal value, 6ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'height' property sets a nominal length value in 'ex' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + position: relative; + } + #div2 + { + background: black; + height: 6ex; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-084.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-084.xht new file mode 100644 index 0000000..55f3fcf --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-084.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using 'ex' units with a positive nominal value, +6ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'height' property sets a positive nominal length value in 'ex' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + position: relative; + } + #div2 + { + background: black; + height: +6ex; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-089.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-089.xht new file mode 100644 index 0000000..2b64488 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-089.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using percentages with a minimum minus one value, -1%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'height' property sets a minimum minus one length value in percentages is invalid and resets its value to 'auto'." /> + <style type="text/css"> + div + { + background: red; + height: 0; + height: -1%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-090.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-090.xht new file mode 100644 index 0000000..c7a9de2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-090.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using percentages with a minimum value, 0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a minimum length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + } + div div + { + background: red; + height: 0%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-091.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-091.xht new file mode 100644 index 0000000..8fdd167 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-091.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using percentages with a minimum plus one value, 1%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a minimum plus one length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 100px; + } + div div + { + background: black; + height: 1%; + } + </style> + </head> + <body> + <p>Test passes if there is a thin horizontal line.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-092.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-092.xht new file mode 100644 index 0000000..77aa305 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-092.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using percentages with a negative zero value, -0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a negative zero length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + } + div div + { + background: red; + height: -0%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-093.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-093.xht new file mode 100644 index 0000000..d7d6a26 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-093.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using percentages with a positive zero value, +0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive zero length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + } + #div2 + { + background: red; + height: +0%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div id="div2">Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-094.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-094.xht new file mode 100644 index 0000000..3732143 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-094.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using percentages with a nominal value, 100%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a nominal length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + position: relative; + } + #div2 + { + background: black; + height: 100%; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-095.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-095.xht new file mode 100644 index 0000000..baa9b60a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-095.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height using percentages with a positive nominal value, +100%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive nominal length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + position: relative; + } + #div2 + { + background: black; + height: +100%; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-100.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-100.xht new file mode 100644 index 0000000..a2fdafa --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-100.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height with a negative zero value and no units, -0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a negative zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: -0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-101.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-101.xht new file mode 100644 index 0000000..286ded9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-101.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height with a zero value and no units, 0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-102.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-102.xht new file mode 100644 index 0000000..cd0f4b3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-102.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height with a positive zero value and no units, +0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property sets a positive zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: +0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-103.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-103.xht new file mode 100644 index 0000000..1dba24b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-103.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height set to a value of auto</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property applies a value of auto." /> + <style type="text/css"> + div + { + background: red; + height: auto; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-104.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-104.xht new file mode 100644 index 0000000..5dd503f2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-104.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height set to inherit</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property properly inherits the height value of the parent." /> + <style type="text/css"> + #div1 + { + height: 1px; + } + div div + { + background: black; + height: inherit; + } + </style> + </head> + <body> + <p>Test passes if there is a thin horizontal line.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-111-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-111-ref.xht new file mode 100644 index 0000000..f68a0f0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-111-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: green; + height: 3em; + width: 15em; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is <strong>no red</strong>.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-111.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-111.xht new file mode 100644 index 0000000..2458884 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-111.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Nested heights</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/height/001.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-111-ref.xht" /> + + <style type="text/css"> + .a { height: 3em; background: red; width: 15em; } + .b { height: 3em; background: green; margin: 0 0 10em 0; } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div class="a"> + <div class="b"> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-112-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-112-ref.xht new file mode 100644 index 0000000..5f04a30 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-112-ref.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: green; + border: black solid medium; + height: 3em; + width: 15em; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is <strong>no red</strong>.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-112.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-112.xht new file mode 100644 index 0000000..f453e46 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-112.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Nested heights</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/height/002.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-112-ref.xht" /> + + <style type="text/css"> + .a { height: 3em; background: red; width: 15em; border: solid; } + .b { height: 3em; background: green; margin: 0 0 10em 0; } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div class="a"> + <div class="b"> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-113-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-113-ref.xht new file mode 100644 index 0000000..d89c979 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-113-ref.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: green; + height: 10em; + margin: 6em auto auto 5em; + width: 10em; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + + <div></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-113.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-113.xht new file mode 100644 index 0000000..74a3c29 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-113.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Nested heights with percentages and borders</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/height/003.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-113-ref.xht" /> + + <style type="text/css"> + .a { height: 10em; width: 10em; background: red; border: 5em white solid; } + .b { height: 100%; background: green; } + </style> + </head> + <body> + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + <div class="a"> + <div class="b"> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-114-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-114-ref.xht new file mode 100644 index 0000000..e5a5e77 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-114-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 32px; + vertical-align: top; + width: 100%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a wide green bar and <strong>no red</strong>.</p> + + <div><img src="support/1x1-green.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-114.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-114.xht new file mode 100644 index 0000000..a73c6418 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-114.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Negative heights</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/height/004.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-114-ref.xht" /> + + <style type="text/css"> + .outer { background: red; height: 2em; } + .test { border-top: solid green 1em; border-bottom: solid green 1em; background: red; } + .inner { margin-bottom: -10em; } + </style> + </head> + <body> + <p>Test passes if there is a wide green bar and <strong>no red</strong>.</p> + <div class="outer"> + <div class="test"> + <div class="inner"></div> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-001.xht new file mode 100644 index 0000000..124bd67 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-001.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements with 'display' set to 'table-row-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <meta name="flags" content="may" /> + <meta name="assert" content="The 'height' property applies to elements with 'display' set to 'table-row-group'." /> + <style type="text/css"> + #test + { + display: table-row-group; + background: black; + height: 1in; + } + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + #row + { + display: table-row; + } + #cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a box below.</p> + <!-- If 'height' is supported on 'table-row-group' then a square will be visible. --> + <div id="table"> + <div id="test"> + <div id="row"> + <div id="cell"> </div> + </div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-002.xht new file mode 100644 index 0000000..7355752c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-002.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements with 'display' set to 'table-header-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <meta name="flags" content="may" /> + <meta name="assert" content="The 'height' property applies to elements with 'display' set to 'table-header-group'." /> + <style type="text/css"> + #test + { + display: table-header-group; + background: black; + height: 1in; + } + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + #row + { + display: table-row; + } + #cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a box below.</p> + <!-- If 'height' is supported on 'table-header-group' then a square will be visible. --> + <div id="table"> + <div id="test"> + <div id="row"> + <div id="cell"> </div> + </div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-003.xht new file mode 100644 index 0000000..3af89edc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-003.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements with 'display' set to 'table-footer-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <meta name="flags" content="may" /> + <meta name="assert" content="The 'height' property applies to elements with 'display' set to 'table-footer-group'." /> + <style type="text/css"> + #test + { + display: table-footer-group; + background: black; + height: 1in; + } + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + #row + { + display: table-row; + } + #cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a box below.</p> + <!-- If 'height' is supported on 'table-footer-group' then a square will be visible. --> + <div id="table"> + <div id="test"> + <div id="row"> + <div id="cell"> </div> + </div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-004.xht new file mode 100644 index 0000000..e56bb7d37 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-004.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements with 'display' set to 'table-row'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property applies to elements with 'display' set to 'table-row'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + #row + { + display: table-row; + height: 1in; + } + #cell + { + background: black; + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div id="table"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-005.xht new file mode 100644 index 0000000..583135e8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-005.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements with 'display' set to 'table-column-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property does not to elements with 'display' set to 'table-column-group'." /> + <style type="text/css"> + #test + { + display: table-column-group; + height: 1in; + } + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + #row + { + display: table-row; + } + #cell + { + background: red; + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="table"> + <div id="test"></div> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-006.xht new file mode 100644 index 0000000..f52957b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-006.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements with 'display' set to 'table-column'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property does not to elements with 'display' set to 'table-column'." /> + <style type="text/css"> + #test + { + display: table-column; + height: 1in; + width: 1in; + } + #table + { + display: table; + table-layout: fixed; + } + #row + { + display: table-row; + } + #cell + { + background: red; + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="table"> + <div id="test"></div> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-007.xht new file mode 100644 index 0000000..510790b0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-007.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements with 'display' set to 'table-cell'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property applies to elements with 'display' set to 'table-cell'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + height: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div id="table"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-008.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-008.xht new file mode 100644 index 0000000..68df231 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-008.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements with 'display' set to 'inline'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property does not apply to elements with 'display' set to 'inline'." /> + <style type="text/css"> + div + { + background: red; + display: inline; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-009.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-009.xht new file mode 100644 index 0000000..b70ea09 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-009.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements with 'display' set to 'block'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property applies to elements with 'display' set to 'block'." /> + <style type="text/css"> + span + { + background: black; + display: block; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div> + <span></span> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-010.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-010.xht new file mode 100644 index 0000000..b4061b8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-010.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements with 'display' set to 'list-item'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property applies to elements with 'display' set to 'list-item'." /> + <style type="text/css"> + div + { + background: black; + display: list-item; + height: 1in; + margin-left: 2em; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square and a marker bullet on its left-hand side.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-012.xht new file mode 100644 index 0000000..5628547 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-012.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements with 'display' set to 'inline-block'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property applies to elements with 'display' set to 'inline-block'." /> + <style type="text/css"> + span#inline-block + { + background: black; + display: inline-block; + height: 1in; + } + + span.block-descendant + { + display: block; + width: 1in; + } + + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div> + <span id="inline-block"> + <span class="block-descendant"></span> + <span class="block-descendant"></span> + </span> + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-013.xht new file mode 100644 index 0000000..86ede419 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-013.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements with 'display' set to 'table'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property applies to elements with 'display' set to 'table'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + height: 1in; + width: 1in; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div id="table"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-014.xht new file mode 100644 index 0000000..6a4fb3c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-014.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements with 'display' set to 'inline-table'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property applies to elements with 'display' set to 'inline-table'." /> + <style type="text/css"> + #table + { + display: inline-table; + height: 1in; + table-layout: fixed; + vertical-align: top; + width: 1in; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div id="table"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-015.xht new file mode 100644 index 0000000..c34a662 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-015.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements with 'display' set to 'table-caption'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' property applies to elements with 'display' set to 'table-caption'." /> + <style type="text/css"> + #table + { + display: table; + width: 1in; + } + #caption + { + background: black; + display: table-caption; + height: 1in; + } + #row + { + display: table-row; + } + #cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div id="table"> + <div id="caption"></div> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-016.xht new file mode 100644 index 0000000..92704e8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-applies-to-016.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Height applied to elements set to 'display: none'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Height can be applied to 'display: none' elements." /> + <style type="text/css"> + div div + { + display: none; + height: 1in; + } + div + { + background: red; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-inherit-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-inherit-001.xht new file mode 100644 index 0000000..30c5422b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-inherit-001.xht
@@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" + "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inheriting Explicit Heights</title> + <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit"/> + <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> + + <meta name="flags" content=""/> + <meta name="assert" content="The computed height is inherited, even if + the 'height' property does not apply."/> + <style type="text/css"><![CDATA[ + .container { + height: 100px; + width: 100px; + background: red; + } + .outer { + height: 100px; + } + .inner { + display: block; + height: inherit; + background: green; + } + ]]></style> + </head> + <body> + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + + <div class="container"> + <div><span class="outer"><span class="inner"></span></span></div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-001-ref.xht new file mode 100644 index 0000000..a751e77a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-001-ref.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + </head> + + <body> + + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + + <div><img src="support/swatch-blue.png" width="96" height="96" alt="Image download support must be enabled" /><img src="support/swatch-orange.png" width="96" height="96" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-001.xht new file mode 100644 index 0000000..3277b055 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-001.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Percentage height computed to containing block</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-percentage-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="A percentage height is calculated using the height of the containing block." /> + <style type="text/css"> + #div1 + { + height: 2in; + } + div div + { + width: 1in; + } + #div2 + { + background: blue; + height: 50%; + } + #div3 + { + background: orange; + height: 1in; + left: 1in; + position: relative; + top: -1in; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-002.xht new file mode 100644 index 0000000..500b984f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-002.xht
@@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Percentage based 'height' computes to 'auto' when containing block has no specified height</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="A percentage height is computed to 'auto' when the element is not absolutely positioned and there is no 'height' explicitly set on the containing block (or when the containing block's height is set to 'auto')." /> + <style type="text/css"> + div + { + width: 1in; + } + #div1 + { + color: white; + } + div div + { + background: red; + height: 50%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1">Text sample + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-003-ref.xht new file mode 100644 index 0000000..ccc1dae --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-003-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + left: 0px; + position: absolute; + top: 50%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if a blue line is in the middle of the page.</p> + + <div><img src="support/swatch-blue.png" width="100%" height="3" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-003.xht new file mode 100644 index 0000000..c79325a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-003.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Percentage based 'height' on the root element</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-percentage-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="A percentage 'height' on the root element is relative to the initial containing block." /> + <style type="text/css"> + html + { + border-bottom: 3px solid blue; + height: 50%; + } + </style> + </head> + <body> + <p>Test passes if a blue line is in the middle of the page.</p> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-004.xht new file mode 100644 index 0000000..72447fc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-004.xht
@@ -0,0 +1,54 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Resolving container heights when they contain absolutely positioned elements with percentage based heights</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="match" href="height-percentage-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'height' of the containing block of an absolutely positioned element is independent of the size of the element itself." /> + <style type="text/css"> + #div1 + { + height: auto; + position: relative; + } + #div1, #div3 + { + width: 2in; + } + #div2 + { + background: blue; + position: absolute; + height: 50%; + } + #div2, #div4 + { + width: 1in; + } + #div3 + { + height: 2in; + } + #div4 + { + background: orange; + height: 1in; + left: 1in; + position: absolute; + top: 0; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + <div id="div4"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-005.xht new file mode 100644 index 0000000..6931f06 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/height-percentage-005.xht
@@ -0,0 +1,48 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + + <title>CSS Test: height percentage - inline replaced element inside an auto-height container</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <!-- + Original post: + Image % sizing interoperability + from Bogdan Brinza who deserves credit for reporting this + http://lists.w3.org/Archives/Public/www-style/2014Jun/0079.html + --> + + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" title="10.5 Content height: the 'height' property" /> + <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2014Jun/0079.html" title="Image % sizing interoperability" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta content="image" name="flags" /> + <meta content="This test checks that an height percentage is calculated with respect to the height of the generated box's containing block only if and only when such containing block's height is specified explicitly (i.e., it depends on content height; its specified height is not 'auto'). In this test, the div#parent has an 'auto' height; therefore the height percentage specified on div#child is treated as 'auto' and so the image should be rendered (entirely visible) inside that div#child. Note that div#grandparent's initial overflow value is 'visible'." name="assert" /> + + <style type="text/css"><![CDATA[ + div#grandparent {height: 0px;} + + div#child, img {height: 100%;} + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled black square.</p> + + <div id="grandparent"> + <div id="parent"> + <div id="child"> + <img src="support/black96x96.png" alt="Image download support must be enabled" /> + </div> + </div> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-000-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-000-ref.xht new file mode 100644 index 0000000..b123f72 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-000-ref.xht
@@ -0,0 +1,10 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-block test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +</head> +<body> +<p>abc</p> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-000.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-000.xht new file mode 100644 index 0000000..c7e6306 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-000.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for inline-block</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop" /> +<meta name="assert" content="This value causes an element to generate a block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the element itself is formatted as an inline replaced element." /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" /> +<link rel="match" href="inline-block-000-ref.xht"/> +<meta name="assert" content="The baseline of an 'inline-block' is the baseline of its last line box in the normal flow, unless it has either no in-flow line boxes or if its 'overflow' property has a computed value other than 'visible', in which case the baseline is the bottom margin edge." /> +<meta name="flags" content="" /> +<style type="text/css"> +span { display: inline-block; } +</style> +</head> +<body> +<p>a<span>b</span>c</p> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-001.xht new file mode 100644 index 0000000..648ec94 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-001.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: inline-block: ping test</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline-block/001.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width" /> + <style type="text/css"> + p { font: 1em/1 "Lucida Console", monospace; } + span { display: inline-block; + color: blue; + border: 1em solid; padding: 0 1em 1em; } + </style> + </head> + <body> + <p>This test has: <span> _ __ __ _ _ <br/>|_)/\ (_ (_ |_| \<br/>| /--\__)__)|_|_/</span></p> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-002.xht new file mode 100644 index 0000000..2d93d59 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-002.xht
@@ -0,0 +1,36 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: inline-block: width</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline-block/002.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width" /> + <meta name="flags" content="interact"/> + <style type="text/css"> + span { display: inline-block; + border: blue solid; color: silver; + margin: 0.5em; padding: 0.5em; } + </style> + </head> + <body> + <p> Make your window an inch or two bigger than than the width of + one inline-block: all inline-blocks should be the same size. Try + resizing the window so that inline-blocks wrap in one or two + columns. </p> + <p> + <span>this is an inline-block this is an inline-block this is an inline-block </span> + <span>this is an inline-block this is an inline-block this is an inline-block </span> + <span>this is an inline-block this is an inline-block this is an inline-block </span> + <span>this is an inline-block this is an inline-block this is an inline-block </span> + <span>this is an inline-block this is an inline-block this is an inline-block </span> + <span>this is an inline-block this is an inline-block this is an inline-block </span> + <span>this is an inline-block this is an inline-block this is an inline-block </span> + <span>this is an inline-block this is an inline-block this is an inline-block </span> + <span>this is an inline-block this is an inline-block this is an inline-block </span> + <span>this is an inline-block this is an inline-block this is an inline-block </span> + <span>this is an inline-block this is an inline-block this is an inline-block </span> + <span>this is an inline-block this is an inline-block this is an inline-block </span> + </p> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-003.xht new file mode 100644 index 0000000..110c233 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-003.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: inline-block: width</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline-block/003.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width" /> + <meta name="flags" content="interact"/> + <style type="text/css"> + span { display: inline-block; + border: solid blue; color: silver; + margin: 0.5em; padding: 0.5em; } + </style> + </head> + <body> + <p> Make your window slightly wider than the width of one blue box: + all boxes should be the same size. Try increasing the window width + so that boxes wrap in two or more columns: the boxes should remain + the same size. Try reducing the window width to less than the width + of one blue box: the words inside the boxes should wrap and the boxes + resize around them so that the boxes continue to fit inside the window. </p> + <p>There is filler text in the first line, it should merely indent the first line + but not affect the resulting size.</p> + <p> + (filler text) + <span>this is filler text inside an inline block</span> + <span>this is filler text inside an inline block</span> + <span>this is filler text inside an inline block</span> + <span>this is filler text inside an inline block</span> + <span>this is filler text inside an inline block</span> + <span>this is filler text inside an inline block</span> + <span>this is filler text inside an inline block</span> + <span>this is filler text inside an inline block</span> + <span>this is filler text inside an inline block</span> + <span>this is filler text inside an inline block</span> + <span>this is filler text inside an inline block</span> + <span>this is filler text inside an inline block</span> + </p> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-004.xht new file mode 100644 index 0000000..687cb69 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-004.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: inline-block: width</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline-block/004.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width" /> + <meta name="flags" content="interact"/> + <style type="text/css"> + html:before { content: ""; position: absolute; width: 598px; height: 598px; border: solid thin; } + p { text-indent: 5em; } + span { text-indent: 0; display: inline-block; + border: blue solid; color: silver; + margin: 0.5em; padding: 0.5em; } + </style> + </head> + <body> + <p> Make your window an inch or two bigger than than the width of + one inline-block. All inline-blocks should be the same size. Try + resizing the window so that inline-blocks wrap in one or two + columns. </p> + <p>The first line is indented. Therefore, the first block on the first line, if the + line is short enough, should end up wrapping onto two lines internally. The other boxes + should be the same size <a href="002.html">as they were without the indent</a>.</p> + <p> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + </p> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-005.xht new file mode 100644 index 0000000..e710e49 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-005.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: inline-block: width</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline-block/005.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width" /> + <meta name="flags" content="interact"/> + <style type="text/css"> + p { text-indent: 5em; } + span { display: inline-block; + border: blue solid; color: silver; + margin: 0.5em; padding: 0.5em 5em 0.5em 0;; } + </style> + </head> + <body> + <p> Make your window an inch or two bigger than than the width of + one inline-block. All inline-blocks should be the same size. Try + resizing the window so that inline-blocks wrap in one or two + columns. </p> + <p>The first line is indented. Therefore, the first block on the first line, if the + line is short enough, should end up wrapping onto two lines internally. In addition + each inline-block has 5em indentation on the left and 5em padding on the right, + which should make no difference except that the boxes should be slightly wider than + <a href="002.html">before</a>. They shouldn't wrap particularily more than before.</p> + <p> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + <span>this is an inline-block this is an inline-block</span> + </p> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-height-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-height-001-ref.xht new file mode 100644 index 0000000..a42f6c5c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-height-001-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-block test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +div { width: 10em; background: green; color: white; } +</style> +</head> +<body> +<div>Test<br />Test</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-height-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-height-001.xht new file mode 100644 index 0000000..318f5c1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-height-001.xht
@@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for height:auto on inline-block</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> +<link rel="match" href="inline-block-height-001-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +div { display: inline-block; width: 10em; background: green; color: white; } +</style> +</head> +<body> +<div>Test<br />Test</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-height-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-height-002-ref.xht new file mode 100644 index 0000000..c0fdc8c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-height-002-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-block test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +div { height: 5em; width:10em; background: green; color: white; } +</style> +</head> +<body> +<div>test</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-height-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-height-002.xht new file mode 100644 index 0000000..890d5ff6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-height-002.xht
@@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for height:<length> on inline-block</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> +<link rel="match" href="inline-block-height-002-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +div { display: inline-block; height: 5em; width:10em; vertical-align: baseline; background: green; color: white; } +</style> +</head> +<body> +<div>test</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-height-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-height-001.xht new file mode 100644 index 0000000..eaeac66 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-height-001.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline-block non-replaced element with 'margin-top', margin-bottom' set to 'auto' and 'height' relying on the descendants</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-10 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#block-root-margin" /> + <link rel="match" href="height-percentage-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="If 'height' is 'auto' on an inline-block non-replaced element then the 'height' depends on the descendants." /> + <style type="text/css"> + #div1 + { + position: relative; + } + #div2 + { + background: blue; + display: inline-block; + } + #div2 div, #div3 + { + height: 1in; + width: 1in; + } + #div3 + { + background: orange; + left: 1in; + position: absolute; + top: 0; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + <div id="div1"> + <div id="div2"> + <div></div> + </div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-height-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-height-002.xht new file mode 100644 index 0000000..da8470f8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-height-002.xht
@@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline-block non-replaced elements' margin box is used for the height of the line box</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-12 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#block-root-margin" /> + <link rel="match" href="height-percentage-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Inline-block non-replaced elements use the margin box for sizing the height of the line box." /> + <style type="text/css"> + #div1 + { + line-height: 0; + position: relative; + } + #div2 + { + background: blue; + } + + /* + The test relies and assumes that div#div2's + computed height will be and should be + equal to the its used line box height since it has + only 1 inline-level element which is contributing to + determine its line box height. + */ + + #div2 div + { + display: inline-block; + height: 0; + margin: 0.5in 0; + } + div div + { + width: 1in; + } + #div3 + { + background: orange; + left: 1in; + height: 1in; + position: absolute; + top: 0; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + <div id="div1"> + <div id="div2"> + <div></div> + </div> + <div id="div3"></div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-001-ref.xht new file mode 100644 index 0000000..633a9bc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-001-ref.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + </head> + + <body> + + <p>Test passes if there is <strong>no red</strong>.</p> + + <div><img src="support/blue15x15.png" width="100" height="100" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-001.xht new file mode 100644 index 0000000..84ca8a2b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-001.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline-block non-replaced elements shrink-to-fit</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width" /> + <link rel="match" href="inline-block-non-replaced-width-001-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="If 'width' is 'auto' then 'inline-block' elements shrink-to-fit." /> + <style type="text/css"> + div + { + background-color: red; + color: blue; + display: inline-block; + font: 100px/1 Ahem; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>X</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-002-ref.xht new file mode 100644 index 0000000..7e1c7ef --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-002-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: black solid medium; + height: 200px; + width: 200px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if a filled blue square is in the <strong>upper-left corner</strong> of an hollow black square and there is <strong>no red</strong>.</p> + + <div><img src="support/blue15x15.png" width="100" height="100" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-002.xht new file mode 100644 index 0000000..6ac9242a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-002.xht
@@ -0,0 +1,36 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline-block non-replaced elements with 'margin-left' and 'margin-right' set to 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-26 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width" /> + <link rel="match" href="inline-block-non-replaced-width-002-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="When 'margin-left' and 'margin-right' are set to 'auto' the used value becomes '0'." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 200px; + width: 200px; + } + div div + { + background-color: red; + color: blue; + display: inline-block; + font: 100px/1 Ahem; + margin-left: auto; + margin-right: auto; + } + </style> + </head> + <body> + <p>Test passes if a filled blue square is in the <strong>upper-left corner</strong> of an hollow black square and there is <strong>no red</strong>.</p> + <div id="div1"> + <div>X</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-003.xht new file mode 100644 index 0000000..6eded24 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-003.xht
@@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: 'shrink-to-fit' width of inline-block non-replaced elements - max-width</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Daniel Schattenkirchner" href="mailto:crazy-daniel@gmx.de" /> + <link rel="help" title="Section 10.3.9 Width of 'inline-block', non-replaced elements in normal flow" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../positioning/absolute-non-replaced-width-017-ref.xht" /> + <meta content="If 'width' of an inline-block, non-replaced element in normal flow computes to 'auto', then the used value of 'width' is given by 'shrink-to-fit' width calculation. If 'width' of an inline-block, non-replaced element in normal flow is given by 'shrink-to-fit' width calculation, then such calculated width can be furthermore constrained, reduced by a max-width declaration. If 'width' of an inline-block, non-replaced element in normal flow computes to 'auto' but its own child uses a constrained length resulting from a max-width declaration, then such constrained length will define the preferred width in 'shrink-to-fit' width calculation." name="assert" /> + <meta content="ahem" name="flags" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: red; + display: inline-block; + font: 30px/4 Ahem; + width: auto; + } + + span + { + background-color: green; + display: inline-block; + max-width: 4em; + } + ]]></style> + + </head> + + <body> + + <p>Below there should be a green square. In the middle of such green square, a black horizontal stripe should be traversing it and protruding out of it toward the right. There should be no red in this page.</p> + + <div><span>12345678</span></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-004.xht new file mode 100644 index 0000000..6e60883 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-004.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: 'shrink-to-fit' width of inline-block non-replaced elements - max-width</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Daniel Schattenkirchner" href="mailto:crazy-daniel@gmx.de" /> + <link rel="help" title="Section 10.3.9 Width of 'inline-block', non-replaced elements in normal flow" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../positioning/absolute-non-replaced-width-017-ref.xht" /> + <meta content="If 'width' of an inline-block, non-replaced element in normal flow computes to 'auto', then the used value of 'width' is given by 'shrink-to-fit' width calculation. If 'width' of an inline-block, non-replaced element in normal flow is given by 'shrink-to-fit' width calculation, then such calculated width can be furthermore constrained, reduced by a max-width declaration. If 'width' of an inline-block, non-replaced element in normal flow computes to 'auto' but its own child uses a constrained length resulting from a max-width declaration, then such constrained length will define the preferred width in 'shrink-to-fit' width calculation." name="assert" /> + <meta content="ahem" name="flags" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: red; + display: inline-block; + font: 30px/4 Ahem; + width: auto; + } + + div > div + { + background-color: green; + max-width: 4em; + } + ]]></style> + + </head> + + <body> + + <p>Below there should be a green square. In the middle of such green square, a black horizontal stripe should be traversing it and protruding out of it toward the right. There should be no red in this page.</p> + + <div> + <div>12345678</div> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-005.xht new file mode 100644 index 0000000..492a62e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-non-replaced-width-005.xht
@@ -0,0 +1,63 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: width - non-replaced inline-block with scrollbar and percentage height of inline replaced child</title> + + <!-- + Credits should go to Erik Brown for discovering and originally reporting a similar test + --> + + <link rel="bookmark" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1281713" title="Bug 1281713: intrinsic width of parent with overflow-x:scroll not computing correctly with child image with height:100%" /> + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="help" title="11.1.1 Overflow: the 'overflow' property" href="https://www.w3.org/TR/CSS21/visufx.html#overflow" /> + <link rel="help" title="10.3.2 Inline, replaced elements" href="https://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="help" title="10.3.5 Floating, non-replaced elements" href="https://www.w3.org/TR/CSS21/visudet.html#float-width" /> + + <meta name="DC.date.created" content="2016-06-23T09:54:03+11:00" scheme="W3CDTF" /> + <meta name="DC.date.modified" content="2016-07-06T09:54:03+11:00" scheme="W3CDTF" /> + + <!-- + Siblings of this test are: + float-non-replaced-width-013 + absolute-non-replaced-width-028 + --> + + <meta content="image scroll" name="flags" /> + <meta content="This test checks interaction of percentage height of an inline replaced element with its parent having scrollbars and with the parent's width determined by 'shrink-to-fit' width algorithm. In this test, the image height should be 100px minus scrollbar height since space taken up by generated scrollbars should be taken out of (subtracted from the dimensions of) the containing block formed by the element with the scrollbars. Then the width of parent should be (used image height == 100px minus scrollbar) * (intrinsic ratio == 5width:1height)." name="assert" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: red; + display: inline-block; /* or float: left; */ /* or position: absolute; */ + height: 100px; + overflow: scroll; + } + + img + { + height: 100%; + vertical-align: bottom; + /* + This 'vertical-align: bottom' declaration is not part of the test. + We 'baseline-align' the image at the bottom of the line box so + that the vertical scrollbar remains inactive. + */ + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test does not apply to such user agent.</p> + + <p>Test passes if there is a filled green rectangle with inactive scrollbars and <strong>no red</strong>.</p> + + <div><img src="support/green-rectangle-50wideBy10tall.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-001.xht new file mode 100644 index 0000000..bde599a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-001.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline-block replaced elements with 'margin-top' and 'margin-bottom' as 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-12 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-001-ref.xht" /> + + <meta name="flags" content="image" /> + <meta name="assert" content="An inline-block replaced elements' used value of 'margin-top' and/or 'margin-bottom' set to 'auto' is '0'." /> + <style type="text/css"> + div + { + border-bottom: solid orange; + border-top: solid orange; + line-height: 0; + width: 1in; + } + img + { + display: inline-block; + margin-top: auto; + margin-bottom: auto; + } + </style> + </head> + <body> + <p>Test passes if there is no white space between the blue square and the orange lines.</p> + <div> + <img alt="blue 15x15" src="support/blue15x15.png" /> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-002.xht new file mode 100644 index 0000000..b675341 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-002.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline-block replaced elements relying on intrinsic height dimensions</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-12 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-002-ref.xht" /> + + <meta name="flags" content="image" /> + <meta name="assert" content="The used value of 'height' is the intrinsic height when an inline-block replaced element has an intrinsic height and 'width' computed as 'auto'." /> + <style type="text/css"> + div + { + line-height: 0; + position: relative; + } + div div + { + background: orange; + height: 15px; + left: 15px; + position: absolute; + top: 0; + width: 15px; + } + img + { + display: inline-block; + height: auto; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + <div> + <img alt="blue 15x15" src="support/blue15x15.png" /> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-003-ref.xht new file mode 100644 index 0000000..a48ff08f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-003-ref.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + </head> + + <body> + + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + + <div><img src="support/blue15x15.png" width="96" height="96" alt="Image download support must be enabled" /><img src="support/swatch-orange.png" width="96" height="96" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-003.xht new file mode 100644 index 0000000..0ee4bc0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-003.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline-block replaced elements with intrinsic ratio and 'height' set to 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-12 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="inline-block-replaced-height-003-ref.xht" /> + + <meta name="flags" content="image" /> + <meta name="assert" content="The 'height' is the used width divided by the intrinsic ratio when an inline-block replaced element has an intrinsic ratio, 'height' is set to 'auto' and 'width' is specified." /> + <style type="text/css"> + div + { + line-height: 0; + position: relative; + } + div div + { + background: orange; + height: 1in; + left: 1in; + position: absolute; + top: 0; + } + img + { + display: inline; + height: auto; + } + div div, img + { + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + <div> + <img alt="blue 15x15" src="support/blue15x15.png" /> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-004.xht new file mode 100644 index 0000000..d5a027c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-004.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline-block replaced element without intrinsic ratio and 'height' set to 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-12 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-004-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="For inline-block replaced element that has no intrinsic ratio and a 'height' set to 'auto', the 'height' is set to the largest rectangle that has a 2:1 ratio that is not greater than 150px and has a 'width' not greater than the device width." /> + <style type="text/css"> + div + { + position: relative; + } + div div + { + border: solid green; + height: 150px; + position: absolute; + top: 0; + width: 300px; + } + iframe + { + border: solid red; + display: inline-block; + height: auto; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div> + <iframe></iframe> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-005.xht new file mode 100644 index 0000000..1a3a097 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-005.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline-block replaced elements with percentage based intrinsic height</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-12 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-005-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="An inline-block replaced element with percentage intrinsic height resolves based on the containing block height when percentage is explicitly specified." /> + <style type="text/css"> + #div1 + { + position: relative; + height: 2in; + } + div div + { + border: solid green; + height: 1in; + position: absolute; + top: 0; + width: 300px; + } + iframe + { + border: solid red; + display: inline-block; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <iframe height="50%"></iframe> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-006.xht new file mode 100644 index 0000000..fc5e2349 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-006.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> + <head> + <title>CSS Test: Absolutely positioned inline-block replaced elements with percentage based height</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-12 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-006-ref.xht" /> + + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="An inline-block replaced element with a percentage height resolves based on the containing block when the replaced element is absolutely positioned." /> + <style type="text/css"> + #div1 + { + position: relative; + height: 2in; + } + div div + { + background: orange; + height: 1in; + left: 200px; + position: absolute; + top: 0; + width: 200px; + } + svg + { + display: inline-block; + position: absolute; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange rectangles have the <strong>same height</strong>.</p> + <div id="div1"> + <svg:svg version="1.1" height="50%" baseProfile="full"> + <svg:rect x="0" y="0" width="200" height="100" fill="blue" /> + </svg:svg> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-007.xht new file mode 100644 index 0000000..227da9c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-007.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline-block replaced element with percentage based height that cannot be resolved</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-12 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-004-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="An inline-block replaced element with a percentage height that cannot be resolved will have its 'height' value computed to 'auto'. In which case, if such inline-block replaced element's 'height' has a computed value of 'auto' and no intrinsic ratio, then the 'height' is set to the largest rectangle that has a 2:1 ratio that is not greater than 150px and has a 'width' not greater than the device width." /> + + <style type="text/css"> + #div1 + { + position: relative; + } + div div + { + border: solid green; + height: 150px; + position: absolute; + top: 0; + width: 300px; + } + iframe + { + border: solid red; + display: inline-block; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <iframe height="50%"></iframe> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-008.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-008.xht new file mode 100644 index 0000000..aed67238 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-008.xht
@@ -0,0 +1,36 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: 'inline-block' replaced elements in normal flow - specified width, height in percentages and intrinsic ratio</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" title="10.6.2 Inline replaced elements, block-level replaced elements in normal flow, 'inline-block' replaced elements in normal flow and floating replaced elements" /> + <link rel="bookmark" href="https://bugs.kde.org/show_bug.cgi?id=274790" title= + "Bug 274790: object specified with width and height percentages and with intrinsic ratio" /> + <meta http-equiv="Content-Style-Type" content="text/css" /> + <meta content="image interact" name="flags" /> + <meta content="When 'height: 1%' (or any other percentage) applies to an 'inline-block' replaced element and when the height of its containing block is not specified explicitly (i.e., it depends on content height), then such height computes to 'auto'. Then, if such inline-block replaced element has an intrinsic ratio and its used width is known or resolved, then the used value of 'height' is determined by the equation (used width) / (intrinsic ratio)." name="assert" /> + + </head> + + <body> + + <p>There should be <strong>5 filled green squares</strong> with the same width and the <strong>same height</strong>. The 5 filled green squares should be <strong>identical</strong> to each other. This should still remain true even after a window resize.</p> + + <div> + <object data="support/60x60-green.png" type="image/png" width="15%">FAIL: image download must be enabled</object> + + <object data="support/60x60-green.png" type="image/png" width="15%" height="1%">FAIL: image download must be enabled</object> + + <object data="support/60x60-green.png" type="image/png" style="width: 15%;">FAIL: image download must be enabled</object> + + <object data="support/60x60-green.png" type="image/png" style="width: 15%; height: auto;">FAIL: image download must be enabled</object> + + <object data="support/60x60-green.png" type="image/png" style="width: 15%; height: 1%;">FAIL: image download must be enabled</object> + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-009.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-009.xht new file mode 100644 index 0000000..01c67c46 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-009.xht
@@ -0,0 +1,54 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: CSS Test: height of inline-block replaced element with no intrinsic height and no intrinsic ratio</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="../positioning/absolute-replaced-width-003b-ref.xht" /> + + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="If an inline-block replaced element (like the svg element in this test) has no intrinsic height and no intrinsic ratio, then the used value of 'height' becomes 150px." /> + + <style type="text/css"><![CDATA[ + div + { + height: 300px; + width: 300px; + } + + svg#overlapped-red + { + display: inline-block; + vertical-align: top; + } + + div#overlapping-green + { + background-color: green; + bottom: 150px; + height: 150px; + position: relative; + width: 150px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + + <div> + <svg:svg version="1.1" xmlns:svg="http://www.w3.org/2000/svg" baseProfile="full" id="overlapped-red" width="150"> + <svg:rect x="0" y="0" width="600" height="300" fill="red" /> + </svg:svg> + + <div id="overlapping-green"></div> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-001-ref.xht new file mode 100644 index 0000000..6812f82 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-001-ref.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: black solid medium; + height: 2in; + line-height: 15px; + width: 2in; + } + + img {vertical-align: top;} + ]]></style> + + </head> + + <body> + + <p>Test passes if the blue and orange squares have the same width and the blue square is in the upper-left corner of an hollow black square.</p> + + <div><img src="support/blue15x15.png" alt="Image download support must be enabled" /><br /> + <img src="support/swatch-orange.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-001.xht new file mode 100644 index 0000000..fee9a3e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-001.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline-block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and intrinsic width</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-12 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-replaced-width" /> + <link rel="match" href="inline-block-replaced-width-001-ref.xht" /> + + <meta name="flags" content="image" /> + <meta name="assert" content="Computed value of 'auto' for 'margin-left' or margin-right' on inline-block replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'." /> + <style type="text/css"> + div, img + { + line-height: 0; + } + #div1 + { + border: solid black; + height: 2in; + width: 2in; + } + img + { + display: inline-block; + margin-left: auto; + margin-right: auto; + } + div div + { + background: orange; + height: 15px; + width: 15px; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the same width and the blue square is in the upper-left corner of an hollow black square.</p> + <div id="div1"> + <img alt="blue 15x15" src="support/blue15x15.png" /> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-002-ref.xht new file mode 100644 index 0000000..a079c8e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-002-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: black solid medium; + height: 3in; + width: 3in; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if the blue and orange rectangles have the same width and the blue rectangle is in the upper-left corner of an hollow black square.</p> + <div><img src="support/blue15x15.png" width="200" height="50" alt="Image download support must be enabled" /><br /> + <img src="support/swatch-orange.png" width="200" height="50" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-002.xht new file mode 100644 index 0000000..018d8de --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-002.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> + <head> + <title>CSS Test: Inline-block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and intrinsic height</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-replaced-width" /> + <link rel="match" href="inline-block-replaced-width-002-ref.xht" /> + + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="Computed value of 'auto' for 'margin-left' or margin-right' on inline-block replaced elements becomes a used value of '0'. If 'width' has a computed value of 'auto' and the inline-block replaced element has no intrinsic ratio and no intrinsic width (which is the case in this test), then the used value of 'width' becomes 300px." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 3in; + width: 3in; + } + svg + { + display: inline-block; + margin-left: auto; + margin-right: auto; + } + div div + { + background: orange; + height: 50px; + width: 200px; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange rectangles have the same width and the blue rectangle is in the upper-left corner of an hollow black square.</p> + <div id="div1"> + <svg:svg version="1.1" height="50" baseProfile="full"> + <svg:rect x="0" y="0" width="200" height="100" fill="blue" /> + </svg:svg> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-003-ref.xht new file mode 100644 index 0000000..4297e05 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-003-ref.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: black solid medium; + height: 3in; + width: 3in; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if the blue and orange rectangles have the same width and the blue rectangle is in the upper-left corner of an hollow black square.</p> + + <div><img src="support/blue15x15.png" width="200" height="100" alt="Image download support must be enabled" /><br /> + <img src="support/swatch-orange.png" width="200" height="100" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-003.xht new file mode 100644 index 0000000..53db1deb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-003.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> + <head> + <title>CSS Test: Inline-block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and 'height'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-replaced-width" /> + <link rel="match" href="inline-block-replaced-width-003-ref.xht" /> + + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="Computed value of 'auto' for 'margin-left' or margin-right' on inline-block replaced elements becomes a used value of '0'. If 'width' has a computed value of 'auto' and the inline-block replaced element has no intrinsic ratio and no intrinsic width (which is the case in this test), then the used value of 'width' becomes 300px." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 3in; + width: 3in; + } + svg + { + display: inline-block; + height: 100px; + margin-left: auto; + margin-right: auto; + } + div div + { + background: orange; + height: 100px; + width: 200px; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange rectangles have the same width and the blue rectangle is in the upper-left corner of an hollow black square.</p> + <div id="div1"> + <svg:svg version="1.1" height="50" baseProfile="full"> + <svg:rect x="0" y="0" width="200" height="100" fill="blue" /> + </svg:svg> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-004.xht new file mode 100644 index 0000000..abad1b78 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-004.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> + <head> + <title>CSS Test: Inline-block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and no intrinsic height or width</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-replaced-width" /> + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="Computed value of 'auto' for 'margin-left' or margin-right' on inline-block replaced elements becomes a used value of '0'. The height and width are adjusted by the constraints for block-level, non-replaced elements." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 3in; + width: 3in; + } + #div2 + { + height: 110px; + width: 3in; + } + #div3 + { + background: orange; + height: 1in; + width: 200px; + } + svg + { + display: inline-block; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange boxes below are the same width, and the blue box is in the upper-left corner of the black box.</p> + <div id="div1"> + <div id="div2"> + <svg:svg version="1.1" baseProfile="full"> + <svg:rect x="0" y="0" width="200" height="100" fill="blue" /> + </svg:svg> + </div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-006-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-006-ref.xht new file mode 100644 index 0000000..cb8b557 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-006-ref.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: black solid medium; + height: 3in; + width: 2in; + } + + img {vertical-align: top;} + ]]></style> + + </head> + + <body> + + <p>Test passes if the blue and orange squares have the same width and the blue square is in the upper-left corner of an hollow black rectangle.</p> + + <div><img src="support/blue15x15.png" width="96" height="96" alt="Image download support must be enabled" /><br /> + <img src="support/swatch-orange.png" width="96" height="96" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-006.xht new file mode 100644 index 0000000..ba469de --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-006.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline-block replaced elements and 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-12 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-replaced-width" /> + <link rel="match" href="inline-block-replaced-width-006-ref.xht" /> + + <meta name="flags" content="image" /> + <meta name="assert" content="Percentage intrinsic widths are evaluated against the containing block's width." /> + <style type="text/css"> + div + { + line-height: 0; + } + #div1 + { + border: solid black; + height: 3in; + width: 2in; + } + img + { + display: inline-block; + margin-left: auto; + margin-right: auto; + } + div div + { + background: orange; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the same width and the blue square is in the upper-left corner of an hollow black rectangle.</p> + <div id="div1"> + <img alt="blue 15x15" src="support/blue15x15.png" width="50%" /> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-007.xht new file mode 100644 index 0000000..d7f3297 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-007.xht
@@ -0,0 +1,54 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: width of inline-block replaced element with no intrinsic height, no intrinsic width and no intrinsic ratio</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-replaced-width" /> + <link rel="match" href="../positioning/absolute-replaced-width-003a-ref.xht" /> + + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="If an inline-block replaced element (like the svg element in this test) has no intrinsic width and no intrinsic height, then the used value of 'width' becomes 300px and the used value of 'height' becomes 150px." /> + + <style type="text/css"><![CDATA[ + div + { + height: 225px; + width: 450px; + } + + svg#overlapped-red + { + display: inline-block; + vertical-align: top; + } + + div#overlapping-green + { + background-color: green; + bottom: 150px; + height: 150px; + position: relative; + width: 300px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.</p> + + <div> + <svg:svg version="1.1" xmlns:svg="http://www.w3.org/2000/svg" baseProfile="full" id="overlapped-red"> + <svg:rect x="0" y="0" width="600" height="300" fill="red" /> + </svg:svg> + + <div id="overlapping-green"></div> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-008.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-008.xht new file mode 100644 index 0000000..e3efba6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-replaced-width-008.xht
@@ -0,0 +1,54 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: CSS Test: width of inline-block replaced element with no intrinsic width and no intrinsic ratio</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-replaced-width" /> + <link rel="match" href="../positioning/absolute-replaced-width-003c-ref.xht" /> + + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="If an inline-block replaced element (like the svg element in this test) has no intrinsic width and no intrinsic ratio, then the used value of 'width' becomes 300px." /> + + <style type="text/css"><![CDATA[ + div + { + height: 300px; + width: 600px; + } + + svg#overlapped-red + { + display: inline-block; + vertical-align: top; + } + + div#overlapping-green + { + background-color: green; + bottom: 300px; + height: 300px; + position: relative; + width: 300px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a big filled green square and <strong>no red</strong>.</p> + + <div> + <svg:svg version="1.1" xmlns:svg="http://www.w3.org/2000/svg" baseProfile="full" id="overlapped-red" height="300"> + <svg:rect x="0" y="0" width="600" height="300" fill="red" /> + </svg:svg> + + <div id="overlapping-green"></div> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-valign-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-valign-001-ref.xht new file mode 100644 index 0000000..26cf5ec --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-valign-001-ref.xht
@@ -0,0 +1,12 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-block test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +</head> +<body> +<table border="" height="200"><tbody><tr><td valign="bottom"> +<p>abcde</p> +</td></tr></tbody></table> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-valign-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-valign-001.xht new file mode 100644 index 0000000..59c52f63 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-valign-001.xht
@@ -0,0 +1,22 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for vertical alignment on inline-block</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop" /> +<meta name="assert" content="This value causes an element to generate a block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the element itself is formatted as an inline replaced element." /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" /> +<link rel="match" href="inline-block-valign-001-ref.xht"/> +<meta name="assert" content="The baseline of an 'inline-block' is the baseline of its last line box in the normal flow, unless it has either no in-flow line boxes or if its 'overflow' property has a computed value other than 'visible', in which case the baseline is the bottom margin edge." /> +<meta name="flags" content="" /> +<style type="text/css"> +span { display: inline-block; } +span > span { display: block; visibility: hidden; } +</style> +</head> +<body> +<table border="" height="200"><tbody><tr><td valign="bottom"> +<p>a<span><span>x</span>bcd</span>e</p> +</td></tr></tbody></table> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-valign-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-valign-002-ref.xht new file mode 100644 index 0000000..92ad4f8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-valign-002-ref.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-block test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +body { background: white; color: black; } +span { display: inline-block; margin: 3px 0; border: 4px solid white; border-width: 4px 0; padding: 9px 0; } +span > span { display: block; visibility: hidden; } +</style> +</head> +<body> +<table border=""><tbody><tr><td> +<p><span><span>x</span>abcde</span></p> +</td></tr></tbody></table> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-valign-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-valign-002.xht new file mode 100644 index 0000000..95b870d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-valign-002.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for vertical alignment on inline-block</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop" /> +<meta name="assert" content="This value causes an element to generate a block box, which itself is flowed as a single inline box, similar to a replaced element. The inside of an inline-block is formatted as a block box, and the element itself is formatted as an inline replaced element." /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" /> +<link rel="match" href="inline-block-valign-002-ref.xht"/> +<meta name="assert" content="The baseline of an 'inline-block' is the baseline of its last line box in the normal flow, unless it has either no in-flow line boxes or if its 'overflow' property has a computed value other than 'visible', in which case the baseline is the bottom margin edge." /> +<meta name="flags" content="" /> +<style type="text/css"> +body { background: white; color: black; } +span { display: inline-block; margin: 3px 0; border: 4px solid white; border-width: 4px 0; padding: 9px 0; } +span > span { display: block; visibility: hidden; } +</style> +</head> +<body> +<table border=""><tbody><tr><td> +<p>a<span><span>x</span>bcd</span>e</p> +</td></tr></tbody></table> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-001-ref.xht new file mode 100644 index 0000000..2f0dca69 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-001-ref.xht
@@ -0,0 +1,14 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-block test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +body > div { width: 10em; } +body > div > div { background: green; color: white; } +</style> +</head> +<body> +<div>x<div>This is some text that is wider than 10em but has no words wider than 10em.</div>z</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-001a.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-001a.xht new file mode 100644 index 0000000..1e83eb4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-001a.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for 'width: auto' on inline-block</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width" /> +<link rel="match" href="inline-block-width-001-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +body > div { width: 10em; } +body > div > div { display: inline-block; background: green; color: white; } +</style> +</head> +<body> +<div>x <div>This is some text that is wider than 10em but has no words wider than 10em.</div> z</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-001b.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-001b.xht new file mode 100644 index 0000000..0deddd6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-001b.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for 'width: auto' on inline-block</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width" /> +<link rel="match" href="inline-block-width-001-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +body > div { width: 10em; } +body > div > div { display: inline-block; background: green; color: white; width: 10em; } +</style> +</head> +<body> +<div>x <div>This is some text that is wider than 10em but has no words wider than 10em.</div> z</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-002-ref.xht new file mode 100644 index 0000000..3fc115ef --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-002-ref.xht
@@ -0,0 +1,14 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-block test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +body > div { width: 10em; } +body > div > div { background: green; color: white; width: 20em; } +</style> +</head> +<body> +<div>x<div>y</div>z</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-002a.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-002a.xht new file mode 100644 index 0000000..5e312d0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-002a.xht
@@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for 'width: auto' on inline-block</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width" /> +<link rel="match" href="inline-block-width-002-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +body > div { width: 10em; } +body > div > div { display: inline-block; background: green; color: white; } +body > div > div > div { width: 20em; } +</style> +</head> +<body> +<div>x<div><div>y</div></div>z</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-002b.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-002b.xht new file mode 100644 index 0000000..cbd178d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-width-002b.xht
@@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for 'width: <length>' on inline-block</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width" /> +<link rel="match" href="inline-block-width-002-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +body > div { width: 10em; } +body > div > div { display: inline-block; background: green; color: white; width: 20em; } +body > div > div > div { width: 20em; } +</style> +</head> +<body> +<div>x<div><div>y</div></div>z</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-001-ref.xht new file mode 100644 index 0000000..27da1ffc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-001-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-block test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +div { display:block; width: 2em; height: 1em; background: green; } +</style> +</head> +<body> +<div> </div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-001.xht new file mode 100644 index 0000000..daaf4b340 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-001.xht
@@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for z-ordering of inline-block</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/zindex.html#painting-order" /> +<link rel="match" href="inline-block-zorder-001-ref.xht"/> +<style type="text/css"> +div { width: 2em; height: 1em; } +span { display:inline-block; vertical-align: top; width: 2em; height: 1em; background: green; } +div#after { margin-top:-1em; background: red; } +</style> +</head> +<body> +<div><span> </span></div> +<div id="after"> </div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-002.xht new file mode 100644 index 0000000..cc304072 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-002.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for z-ordering of inline-block</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/zindex.html#painting-order" /> +<link rel="match" href="inline-block-zorder-001-ref.xht"/> +<style type="text/css"> +div { width: 2em; height: 1em; } +span { display:inline-block; vertical-align: top; width: 2em; height: 1em; } +span span { display: block; background: green; } +div#after { margin-top: -1em; background: red; } +</style> +</head> +<body> +<div><span><span> </span></span></div> +<div id="after"> </div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-003-ref.xht new file mode 100644 index 0000000..0667289 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-003-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-block test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +span { vertical-align: top; background: green; color: green; border-bottom: 0.25em solid green; border-top: 0.25em solid green; } +</style> +</head> +<body> +<div><span> x </span></div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-003.xht new file mode 100644 index 0000000..7b8c46b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-003.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for z-ordering of inline-block</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/zindex.html#painting-order" /> +<link rel="match" href="inline-block-zorder-003-ref.xht"/> +<style type="text/css"> +div { height: 1em; } +div#test span { display:inline-block; vertical-align: top; height: 1em; background: red; color: red; } +div#after { margin-top:-1em; } +div#after span { display: inline; vertical-align: top; background: green; color: green; border-bottom: 0.25em solid green; border-top: 0.25em solid green; } +</style> +</head> +<body> +<div id="test"><span> x </span></div> +<div id="after"><span> x </span></div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-004-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-004-ref.xht new file mode 100644 index 0000000..22204233 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-004-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-block test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +span { display: inline-block; vertical-align: top; background: green; color: green; border-bottom: 0.25em solid green; border-top: 0.25em solid green; } +</style> +</head> +<body> +<div><span> x </span></div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-004.xht new file mode 100644 index 0000000..ecb67568 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-004.xht
@@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for z-ordering of inline-block</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/zindex.html#painting-order" /> +<link rel="match" href="inline-block-zorder-004-ref.xht"/> +<style type="text/css"> +div#test span { display:inline-block; vertical-align: top; background: green; color: green; border-bottom: 0.25em solid green; border-top: 0.25em solid green; } +div#before { height: 1em; margin-bottom:-1em; } +div#before span { display: inline; vertical-align: top; background: red; color: red; } +</style> +</head> +<body> +<div id="before"><span> x </span></div> +<div id="test"><span> x </span></div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-005.xht new file mode 100644 index 0000000..24d4a38 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-block-zorder-005.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for z-ordering of inline-block</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/zindex.html#painting-order" /> +<link rel="match" href="inline-block-zorder-004-ref.xht"/> +<style type="text/css"> +div#test > span { display:inline-block; vertical-align: top; } +div#test > span > span { display: block; background: green; color: green; border-bottom: 0.25em solid green; border-top: 0.25em solid green; } +div#before { height: 1em; margin-bottom:-1em; } +div#before > span { display: inline; vertical-align: top; background: red; color: red; } +</style> +</head> +<body> +<div id="before"><span> x </span></div> +<div id="test"><span><span> x </span></span></div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-height-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-height-002-ref.xht new file mode 100644 index 0000000..0cc1099 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-height-002-ref.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + </head> + + <body> + + <p>Test passes if the blue and orange rectangles have the <strong>same height</strong>.</p> + + <div><img src="support/swatch-blue.png" width="100" height="200" alt="Image download support must be enabled" /><img src="support/swatch-orange.png" width="100" height="200" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-height-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-height-002.xht new file mode 100644 index 0000000..f9eefdc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-height-002.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline non-replaced elements and padding</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-16 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-non-replaced" /> + <link rel="match" href="inline-non-replaced-height-002-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The padding starts at the top and bottom of the content area not the 'line-height'." /> + <style type="text/css"> + #div1 + { + margin-top: 41px; + position: relative; + } + span + { + background: blue; + color: blue; + font: 100px Ahem; + line-height: 150px; + padding: 50px 0; + } + div div + { + background: orange; + height: 200px; + left: 100px; + position: absolute; + top: -25px; /* correspond to minus top-half-leading */ + width: 100px; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange rectangles have the <strong>same height</strong>.</p> + <div id="div1"> + <span>X</span> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-height-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-height-003.xht new file mode 100644 index 0000000..9863eaf8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-height-003.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline non-replaced elements and border</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-16 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-non-replaced" /> + <link rel="match" href="inline-non-replaced-height-002-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The border starts at the top and bottom of the content area not the 'line-height'." /> + <style type="text/css"> + #div1 + { + margin-top: 41px; + position: relative; + } + span + { + background: blue; + border-bottom: 50px solid blue; + border-top: 50px solid blue; + color: blue; + font: 100px Ahem; + line-height: 150px; + } + div div + { + background: orange; + height: 200px; + left: 100px; + position: absolute; + top: -25px; /* correspond to minus top-half-leading */ + width: 100px; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange rectangles have the <strong>same height</strong>.</p> + <div id="div1"> + <span>X</span> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-width-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-width-001-ref.xht new file mode 100644 index 0000000..729bdcb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-width-001-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: black solid medium; + height: 200px; + width: 200px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if a filled blue square is in the <strong>upper-left corner</strong> of an hollow black square.</p> + + <div><img src="support/blue15x15.png" width="100" height="100" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-width-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-width-001.xht new file mode 100644 index 0000000..02174a86 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-width-001.xht
@@ -0,0 +1,36 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline non-replaced elements with 'auto' value for 'left', 'right', and 'margin-left'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-16 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-width" /> + <link rel="match" href="inline-non-replaced-width-001-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="Computed value of 'auto' for 'left', 'right', and 'margin-left' becomes a used value of '0'." /> + <style type="text/css"> + div + { + border: solid black; + height: 200px; + width: 200px; + } + span + { + color: blue; + font: 100px/1 Ahem; + left: auto; + margin-left: auto; + position: relative; + right: auto; + } + </style> + </head> + <body> + <p>Test passes if a filled blue square is in the <strong>upper-left corner</strong> of an hollow black square.</p> + <div> + <span>X</span> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-width-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-width-002.xht new file mode 100644 index 0000000..fed00b8a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-non-replaced-width-002.xht
@@ -0,0 +1,36 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline non-replaced elements with 'auto' value for 'left', 'right', and 'margin-right'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-16 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-width" /> + <link rel="match" href="inline-non-replaced-width-001-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="Computed value of 'auto' for 'left', 'right', and 'margin-right' becomes a used value of '0'." /> + <style type="text/css"> + div + { + border: solid black; + height: 200px; + width: 200px; + } + span + { + color: blue; + font: 100px/1 Ahem; + left: auto; + margin-right: auto; + position: relative; + right: auto; + } + </style> + </head> + <body> + <p>Test passes if a filled blue square is in the <strong>upper-left corner</strong> of an hollow black square.</p> + <div> + <span>X</span> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-001.xht new file mode 100644 index 0000000..c345c212 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-001.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline replaced elements with 'margin-top' and 'margin-bottom' as 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-001-ref.xht" /> + + <meta name="flags" content="image" /> + <meta name="assert" content="An inline replaced elements' used value of 'margin-top' and/or 'margin-bottom' set to 'auto' is '0'." /> + <style type="text/css"> + div + { + border-bottom: solid orange; + border-top: solid orange; + line-height: 0; + width: 1in; + } + img + { + display: inline; + margin-bottom: auto; + margin-top: auto; + } + </style> + </head> + <body> + <p>Test passes if there is no white space between the blue square and the orange lines.</p> + <div> + <img alt="blue 15x15" src="support/blue15x15.png" /> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-002.xht new file mode 100644 index 0000000..666ddaa --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-002.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline replaced elements relying on intrinsic height dimensions</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-002-ref.xht" /> + + <meta name="flags" content="image" /> + <meta name="assert" content="The 'height' is the intrinsic height when an inline replaced element with an intrinsic height has a 'height' and 'width' computed as 'auto'." /> + <style type="text/css"> + div + { + line-height: 0; + position: relative; + } + div div + { + background: orange; + height: 15px; + left: 15px; + position: absolute; + top: 0; + width: 15px; + } + img + { + display: inline; + height: auto; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + <div> + <img alt="blue 15x15" src="support/blue15x15.png" /> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-003.xht new file mode 100644 index 0000000..2bac39d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-003.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline replaced elements with intrinsic ratios and 'height' set to 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="inline-block-replaced-height-003-ref.xht" /> + + <meta name="flags" content="image" /> + <meta name="assert" content="The 'height' is the used width divided by the ratio when an inline replaced element has an intrinsic ratio, 'height' is set to 'auto' and 'width' is not 'auto'." /> + <style type="text/css"> + div + { + line-height: 0; + position: relative; + } + div div + { + background: orange; + height: 1in; + left: 1in; + position: absolute; + top: 0; + } + img + { + display: inline; + height: auto; + } + div div, img + { + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + + <div> + <img alt="blue 15x15" src="support/blue15x15.png" /> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-004.xht new file mode 100644 index 0000000..73e7ddc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-004.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline replaced elements without intrinsic ratios and 'height' set to 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-004-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="For inline replaced elements the 'height' is set to the largest rectangle that has a 2:1 ratio that is not greater than 150px and has a 'width' not greater than the device width." /> + <style type="text/css"> + div + { + position: relative; + } + div div + { + border: solid green; + height: 150px; + position: absolute; + top: 0; + width: 300px; + } + iframe + { + border: solid red; + display: inline; + height: auto; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div> + <iframe></iframe> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-005.xht new file mode 100644 index 0000000..4e68ce9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-005.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline replaced elements with percentage based intrinsic height</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-005-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="An inline replaced element with percentage intrinsic height resolves based on the containing block height when percentage is explicitly specified." /> + <style type="text/css"> + #div1 + { + position: relative; + height: 2in; + } + div div + { + border: solid green; + height: 1in; + position: absolute; + top: 0; + width: 300px; + } + iframe + { + border: solid red; + display: inline; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <iframe height="50%"></iframe> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-006.xht new file mode 100644 index 0000000..d8d332f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-006.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> + <head> + <title>CSS Test: Absolutely positioned inline replaced elements with percentage based intrinsic height</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-006-ref.xht" /> + + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="An inline replaced element with percentage intrinsic height resolves based on the containing block when the replaced element is absolutely positioned." /> + <style type="text/css"> + #div1 + { + position: relative; + height: 2in; + } + div div + { + background: orange; + height: 1in; + left: 200px; + position: absolute; + top: 0; + width: 200px; + } + svg + { + display: inline; + position: absolute; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange rectangles have the <strong>same height</strong>.</p> + <div id="div1"> + <svg:svg version="1.1" height="50%" baseProfile="full"> + <svg:rect x="0" y="0" width="200" height="100" fill="blue" /> + </svg:svg> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-007.xht new file mode 100644 index 0000000..30f9c40a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-007.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline replaced elements with percentage based intrinsic height that cannot be resolved</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="block-replaced-height-004-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="An inline replaced element with a percentage height that cannot be resolved has no intrinsic height." /> + <style type="text/css"> + #div1 + { + position: relative; + } + div div + { + border: solid green; + height: 150px; + position: absolute; + top: 0; + width: 300px; + } + iframe + { + border: solid red; + display: inline; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <iframe height="50%"></iframe> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-008.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-008.xht new file mode 100644 index 0000000..9a3e17b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-008.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: Inline replaced elements in normal flow - specified width, height in percentages and intrinsic ratio</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" title="10.6.2 Inline replaced elements, block-level replaced elements in normal flow, 'inline-block' replaced elements in normal flow and floating replaced elements" /> + <meta http-equiv="Content-Style-Type" content="text/css" /> + <meta content="image interact" name="flags" /> + <meta content="When 'height: 1%' (or any other percentage) applies to an inline replaced element and when the height of its containing block is not specified explicitly (i.e., it depends on content height), then such height computes to 'auto'. Then, if such inline replaced element has an intrinsic ratio and its used width is known or resolved, then the used value of 'height' is determined by the equation (used width) / (intrinsic ratio)." name="assert" /> + + </head> + + <body> + + <p>There should be <strong>5 filled green squares</strong> with the same width and the <strong>same height</strong>. The 5 filled green squares should be <strong>identical</strong> to each other. This should still remain true even after a window resize.</p> + + <div> + <img src="support/60x60-green.png" width="15%" alt="FAIL: image download must be enabled" /> + + <img src="support/60x60-green.png" width="15%" height="1%" alt="FAIL: image download must be enabled" /> + + <img src="support/60x60-green.png" style="width: 15%;" alt="FAIL: image download must be enabled" /> + + <img src="support/60x60-green.png" style="width: 15%; height: auto;" alt="FAIL: image download must be enabled" /> + + <img src="support/60x60-green.png" style="width: 15%; height: 1%;" alt="FAIL: image download must be enabled" /> + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-009.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-009.xht new file mode 100644 index 0000000..9edb95a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-009.xht
@@ -0,0 +1,54 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: CSS Test: height of inline replaced element with no intrinsic height and no intrinsic ratio</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="../positioning/absolute-replaced-width-003b-ref.xht" /> + + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="If an inline replaced element (like the svg element in this test) has no intrinsic height and no intrinsic ratio, then the used value of 'height' becomes 150px." /> + + <style type="text/css"><![CDATA[ + div + { + height: 300px; + width: 300px; + } + + svg#overlapped-red + { + display: inline; + vertical-align: top; + } + + div#overlapping-green + { + background-color: green; + bottom: 150px; + height: 150px; + position: relative; + width: 150px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + + <div> + <svg:svg version="1.1" xmlns:svg="http://www.w3.org/2000/svg" baseProfile="full" id="overlapped-red" width="150"> + <svg:rect x="0" y="0" width="600" height="300" fill="red" /> + </svg:svg> + + <div id="overlapping-green"></div> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-010.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-010.xht new file mode 100644 index 0000000..c5498e1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-010.xht
@@ -0,0 +1,55 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS test: height - inline replaced element and max-width</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <!-- + Credits must go to Kang-Hao (Kenny) Lu for posting a message + on a closely related issue in www-style mailing list. + --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" title="10.6.2 Inline replaced elements, block-level replaced elements in normal flow, 'inline-block' replaced elements in normal flow and floating replaced elements " /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" title="10.4 Minimum and maximum widths: 'min-width' and 'max-width'" /> + <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> + <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2012Nov/0023.html" title="[css21][css3-box] when only one dimension is specified, replaced element sizing rules are ambiguous and non-interoperable" /> + + <meta content="image" name="flags" /> + <meta content="The height of an inline replaced element should be re-calculated based on its constrained width (constrained by computed 'max-width' value) and based its intrinsic ratio when it has an intrinsic ratio." name="assert" /> + + <style type="text/css"><![CDATA[ + div#overlapped-red-test + { + position: absolute; + z-index: -1; + } + + img + { + height: auto; + max-width: 6.25em; + width: 12.5em; + } + + div#overlapping-green-reference + { + background-color: green; + height: 100px; + width: 100px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + + <div id="overlapped-red-test"><img src="support/swatch-red.png" alt="Image download support must be enabled" /></div> + + <div id="overlapping-green-reference"></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-011.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-011.xht new file mode 100644 index 0000000..2692e9b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-height-011.xht
@@ -0,0 +1,51 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS test: height - inline replaced element and min-width</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <!-- + Credits must go to Kang-Hao (Kenny) Lu for posting a message + on a closely related issue in www-style mailing list. + --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" title="10.6.2 Inline replaced elements, block-level replaced elements in normal flow, 'inline-block' replaced elements in normal flow and floating replaced elements " /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" title="10.4 Minimum and maximum widths: 'min-width' and 'max-width'" /> + <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> + <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2012Nov/0023.html" title="[css21][css3-box] when only one dimension is specified, replaced element sizing rules are ambiguous and non-interoperable" /> + + <meta content="image" name="flags" /> + <meta content="The height of an inline replaced element should be re-calculated based on its constrained width (constrained by computed 'min-width' value) and based its intrinsic ratio when it has an intrinsic ratio." name="assert" /> + + <style type="text/css"><![CDATA[ + div#overlapped-red-reference + { + background-color: red; + height: 100px; + position: absolute; + width: 100px; + z-index: -1; + } + + img + { + height: auto; + min-width: 6.25em; + width: 0em; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + + <div id="overlapped-red-reference"></div> + + <div id="overlapping-green-test"><img src="support/swatch-green.png" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-001-ref.xht new file mode 100644 index 0000000..c23baf9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-001-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: black solid medium; + height: 288px; + width: 192px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if the blue and orange squares have the same width and the blue square is in the upper-left corner of an hollow black rectangle.</p> + + <div><img src="support/blue96x96.png" alt="Image download support must be enabled" /><br /><img src="support/swatch-orange.png" width="96" height="96" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-001.xht new file mode 100644 index 0000000..12f5188 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-001.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline replaced elements and 'auto' specified for 'margin-left', 'margin-right' and intrinsic width</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="match" href="inline-replaced-width-001-ref.xht" /> + + <meta name="flags" content="image" /> + <meta name="assert" content="Computed value of 'auto' for 'margin-left' or margin-right' on inline replaced elements becomes a used value of '0'. The intrinsic width is also used if 'height' and 'width' are 'auto'." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 3in; + width: 2in; + } + img + { + margin-left: auto; + margin-right: auto; + } + div div + { + background: orange; + height: 96px; + width: 96px; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the same width and the blue square is in the upper-left corner of an hollow black rectangle.</p> + <div id="div1"> + <img alt="blue 96x96" src="support/blue96x96.png" /> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-002-ref.xht new file mode 100644 index 0000000..c7c6e39 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-002-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: black solid medium; + height: 288px; + width: 288px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if the blue and orange rectangles have the same width and the blue rectangle is in the upper-left corner of an hollow black square.</p> + + <div><img src="support/blue96x96.png" width="200" height="50" alt="Image download support must be enabled" /><br /><img src="support/swatch-orange.png" width="200" height="50" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-002.xht new file mode 100644 index 0000000..eaa5049 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-002.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> + <head> + <title>CSS Test: Inline replaced elements and 'auto' specified for 'margin-left', 'margin-right' and intrinsic height</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="match" href="inline-replaced-width-002-ref.xht" /> + + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="Computed value of 'auto' for 'margin-left' or margin-right' on inline replaced elements becomes a used value of '0'." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 3in; + width: 3in; + } + svg + { + margin-left: auto; + margin-right: auto; + } + div div + { + background: orange; + height: 50px; + width: 200px; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange rectangles have the same width and the blue rectangle is in the upper-left corner of an hollow black square.</p> + <div id="div1"> + <svg:svg version="1.1" height="50" baseProfile="full"> + <svg:rect x="0" y="0" width="200" height="100" fill="blue" /> + </svg:svg> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-003-ref.xht new file mode 100644 index 0000000..f086f19 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-003-ref.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border: black solid medium; + height: 288px; + width: 288px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if the blue and orange rectangles have the same width and the blue rectangle is in the upper-left corner of an hollow black square.</p> + <div><img src="support/blue96x96.png" width="200" height="100" alt="Image download support must be enabled" /><br /><img src="support/swatch-orange.png" width="200" height="100" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-003.xht new file mode 100644 index 0000000..1624538b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-003.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> + <head> + <title>CSS Test: Inline replaced elements and 'auto' specified for 'margin-left', 'margin-right' and 'height'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="match" href="inline-replaced-width-003-ref.xht" /> + + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="Computed value of 'auto' for 'margin-left' or margin-right' on inline replaced elements becomes a used value of '0'." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 3in; + width: 3in; + } + svg + { + height: 100px; + margin-left: auto; + margin-right: auto; + } + div div + { + background: orange; + height: 100px; + width: 200px; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange rectangles have the same width and the blue rectangle is in the upper-left corner of an hollow black square.</p> + <div id="div1"> + <svg:svg version="1.1" height="50" baseProfile="full"> + <svg:rect x="0" y="0" width="200" height="100" fill="blue" /> + </svg:svg> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-004.xht new file mode 100644 index 0000000..33189220 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-004.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> + <head> + <title>CSS Test: Inline replaced elements and 'auto' specified for 'margin-left', 'margin-right' and no intrinsic height or width</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="Computed value of 'auto' for 'margin-left' or margin-right' on inline replaced elements becomes a used value of '0'. The height and width are adjusted by the constraints for block-level, non-replaced elements." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 3in; + width: 3in; + } + #div2 + { + height: 110px; + width: 3in; + } + #div3 + { + background: orange; + height: 1in; + width: 200px; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange boxes below are the same width, and the blue box is in the upper-left corner of the black box.</p> + <div id="div1"> + <div id="div2"> + <svg:svg version="1.1" baseProfile="full"> + <svg:rect x="0" y="0" width="200" height="100" fill="blue" /> + </svg:svg> + </div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-006.xht new file mode 100644 index 0000000..daae2457 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-006.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline replaced elements and 'auto' specified for 'margin-left', 'margin-right' and percentage intrinsic width</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="match" href="inline-replaced-width-001-ref.xht" /> + + <meta name="flags" content="image" /> + <meta name="assert" content="Percentage intrinsic widths are evaluated against the containing block's width." /> + <style type="text/css"> + #div1 + { + border: solid black; + height: 3in; + width: 2in; + } + img + { + margin-left: auto; + margin-right: auto; + } + div div + { + background: orange; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the same width and the blue square is in the upper-left corner of an hollow black rectangle.</p> + <div id="div1"> + <img alt="blue 15x15" src="support/blue15x15.png" width="50%" /> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-008.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-008.xht new file mode 100644 index 0000000..07224f6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-008.xht
@@ -0,0 +1,54 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: width of inline replaced element with no intrinsic height, no intrinsic width and no intrinsic ratio</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" title="10.3.2 Inline, replaced elements" /> + <link rel="match" href="../positioning/absolute-replaced-width-003a-ref.xht" /> + + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="If an inline replaced element (like the svg element in this test) has no intrinsic width and no intrinsic height, then the used value of 'width' becomes 300px and the used value of 'height' becomes 150px." /> + + <style type="text/css"><![CDATA[ + div + { + height: 225px; + width: 450px; + } + + svg#overlapped-red + { + display: inline; + vertical-align: top; + } + + div#overlapping-green + { + background-color: green; + bottom: 150px; + height: 150px; + position: relative; + width: 300px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.</p> + + <div> + <svg:svg version="1.1" xmlns:svg="http://www.w3.org/2000/svg" baseProfile="full" id="overlapped-red"> + <svg:rect x="0" y="0" width="600" height="300" fill="red" /> + </svg:svg> + + <div id="overlapping-green"></div> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-009.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-009.xht new file mode 100644 index 0000000..ca6e9df --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-009.xht
@@ -0,0 +1,54 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: CSS Test: width of inline replaced element with no intrinsic width and no intrinsic ratio</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" title="10.3.2 Inline, replaced elements" /> + <link rel="match" href="../positioning/absolute-replaced-width-003c-ref.xht" /> + + <meta name="flags" content="nonHTML svg" /> + <meta name="assert" content="If an inline replaced element (like the svg element in this test) has no intrinsic width and no intrinsic ratio, then the used value of 'width' becomes 300px." /> + + <style type="text/css"><![CDATA[ + div + { + height: 300px; + width: 600px; + } + + svg#overlapped-red + { + display: inline; + vertical-align: top; + } + + div#overlapping-green + { + background-color: green; + bottom: 300px; + height: 300px; + position: relative; + width: 300px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a big filled green square and <strong>no red</strong>.</p> + + <div> + <svg:svg version="1.1" xmlns:svg="http://www.w3.org/2000/svg" baseProfile="full" id="overlapped-red" height="300"> + <svg:rect x="0" y="0" width="600" height="300" fill="red" /> + </svg:svg> + + <div id="overlapping-green"></div> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-011-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-011-ref.xht new file mode 100644 index 0000000..2bcb57d6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-011-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: green; + height: 100px; + width: 600px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is <strong>no red</strong>.</p> + + <div></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-011.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-011.xht new file mode 100644 index 0000000..2d7473e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-011.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Replaced inline elements with % widths</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/replaced/001.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="match" href="inline-replaced-width-011-ref.xht" /> + + <meta name="flags" content="image" /> + + <style type="text/css"> + div { width: 600px; height: 100px; background: red; } + img { width: 100%; height: 100px; vertical-align: bottom; } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div> + <p><img src="support/swatch-green.png" alt="Image support required for this test"/></p> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-012-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-012-ref.xht new file mode 100644 index 0000000..ef7a3b6a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-012-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: green; + height: 200px; + width: 600px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is <strong>no red</strong>.</p> + + <div></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-012.xht new file mode 100644 index 0000000..b94ccb2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-012.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Replaced inline elements wrapping around floats (% widths)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/replaced/002.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="match" href="inline-replaced-width-012-ref.xht" /> + + <meta name="flags" content="image" /> + + <style type="text/css"> + div { width: 600px; height: 200px; background: red; } + div p { height: 100px; background: green; } + img { vertical-align: bottom; } + img.float { float: left; } + img.flow { width: 100%; height: 100px; } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div> + <p> + <img src="support/swatch-green.png" height="100" alt="Image download support must be enabled" class="float"/> + <img src="support/swatch-green.png" alt="Image support required for this test" class="flow"/> + </p> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-013.xht new file mode 100644 index 0000000..8ff31775 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-013.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Replaced inline elements wrapping around floats (pixel widths)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/replaced/003.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="match" href="inline-replaced-width-012-ref.xht" /> + + <meta name="flags" content="image" /> + + <style type="text/css"> + div { width: 600px; height: 200px; background: red; } + div p { height: 100px; background: green; } + img { vertical-align: bottom; } + img.float { float: left; } + img.flow { width: 600px; height: 100px; } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div> + <p> + <img src="support/swatch-green.png" height="100" alt="Image download support must be enabled" class="float"/> + <img src="support/swatch-green.png" alt="Image support required for this test" class="flow"/> + </p> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-014-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-014-ref.xht new file mode 100644 index 0000000..7d192d2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-014-ref.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: green; + height: 100px; + margin-bottom: 1em; + width: 300px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there are 2 identical filled green rectangles and <strong>no red</strong>.</p> + + <div></div> + + <div></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-014.xht new file mode 100644 index 0000000..b7bb1a2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-014.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Replaced inline elements with % widths</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-15 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/replaced/004.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="match" href="inline-replaced-width-014-ref.xht" /> + + <meta content="image" name="flags" /> + + <style type="text/css"> + div.a { width: 300px; height: 100px; background: red; } + div.a p { width: 200%; } + div.a img { width: 50%; height: 100px; vertical-align: bottom; } + div.b { width: 300px; position: relative; } + div.b p { width: 200%; } + div.b img { width: 50%; height: 100px; vertical-align: bottom; } + div.b span { position: absolute; top: 0; left: 0; background: green; width: 300px; height: 100px; } + </style> + </head> + + <body> + + <p>Test passes if there are 2 identical filled green rectangles and <strong>no red</strong>.</p> + + <div class="a"> + <p> + <img src="support/1x1-green.png" alt="Image support required for this test"/> + </p> + </div> + + <div class="b"> + <p> + <img src="support/1x1-red.png" alt="Image support required for this test"/> + <span></span> + </p> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-015.xht new file mode 100644 index 0000000..3af87c72 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-015.xht
@@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Replaced inline elements wrapping around floats (% widths)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/replaced/005.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="match" href="inline-replaced-width-014-ref.xht" /> + + <meta name="flags" content="image" /> + + <style type="text/css"> + div.test { width: 300px; height: 100px; background: red; position: relative; } + div.inner { width: 300px; height: 50px; background: green; } + div p { width: 125%; height: 50px; } /* 375px */ + img { vertical-align: bottom; } + img.float { float: left; height: 50px; width: 100px; } + img.flow { width: 80%; height: 50px; } /* 300px */ + span { position: absolute; bottom: 0; left: 0; background: green; height: 50px; width: 300px; } + </style> + </head> + <body> + <p>Test passes if there are 2 identical filled green rectangles and <strong>no red</strong>.</p> + <div class="test a"> + <div class="inner"> + <p> + <img src="support/1x1-green.png" alt="Image download support must be enabled" class="float"/> + <img src="support/1x1-green.png" alt="Image support required for this test" class="flow"/> + </p> + </div> + </div> + <div class="test b"> + <div class="inner"> + <p> + <img src="support/1x1-green.png" alt="Image download support must be enabled" class="float"/> + <img src="support/1x1-red.png" alt="Image support required for this test" class="flow"/> + <span></span> + </p> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-016.xht new file mode 100644 index 0000000..efbedfa --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-016.xht
@@ -0,0 +1,55 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS test: width - inline replaced element and max-height</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <!-- + Credits must go to Kang-Hao (Kenny) Lu for posting a message + on a closely related issue in www-style mailing list. + --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" title="10.3.2 Calculating width of inline, replaced elements" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" title="10.7 Minimum and maximum heights: 'min-height' and 'max-height'" /> + <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> + <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2012Nov/0023.html" title="[css21][css3-box] when only one dimension is specified, replaced element sizing rules are ambiguous and non-interoperable" /> + + <meta content="image" name="flags" /> + <meta content="The width of an inline replaced element should be re-calculated based on its constrained height (constrained by computed 'max-height' value) and based its intrinsic ratio when it has an intrinsic ratio." name="assert" /> + + <style type="text/css"><![CDATA[ + div#overlapped-red-test + { + position: absolute; + z-index: -1; + } + + img + { + max-height: 6.25em; + height: 12.5em; + width: auto; + } + + div#overlapping-green-reference + { + background-color: green; + height: 100px; + width: 100px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + + <div id="overlapped-red-test"><img src="support/swatch-red.png" alt="Image download support must be enabled" /></div> + + <div id="overlapping-green-reference"></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-017.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-017.xht new file mode 100644 index 0000000..232dc762 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-replaced-width-017.xht
@@ -0,0 +1,51 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS test: width - inline replaced element and min-height</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <!-- + Credits must go to Kang-Hao (Kenny) Lu for posting a message + on a closely related issue in www-style mailing list. + --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" title="10.3.2 Calculating width of inline, replaced elements" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" title="10.7 Minimum and maximum heights: 'min-height' and 'max-height'" /> + <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> + <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2012Nov/0023.html" title="[css21][css3-box] when only one dimension is specified, replaced element sizing rules are ambiguous and non-interoperable" /> + + <meta content="image" name="flags" /> + <meta content="The width of an inline replaced element should be re-calculated based on its constrained height (constrained by computed 'min-height' value) and based its intrinsic ratio when it has an intrinsic ratio." name="assert" /> + + <style type="text/css"><![CDATA[ + div#overlapped-red-reference + { + background-color: red; + height: 100px; + position: absolute; + width: 100px; + z-index: -1; + } + + img + { + min-height: 6.25em; + height: 0em; + width: auto; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + + <div id="overlapped-red-reference"></div> + + <div id="overlapping-green-test"><img src="support/swatch-green.png" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-002-ref.xht new file mode 100644 index 0000000..c333d3a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-002-ref.xht
@@ -0,0 +1,10 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-table test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +</head> +<body> +<p>abcde</p> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-002a.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-002a.xht new file mode 100644 index 0000000..def85729 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-002a.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-display" /> +<meta name="assert" content="it is a rectangular block that participates in an inline formatting context)." /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" /> +<link rel="match" href="inline-table-002-ref.xht"/> +<meta name="assert" content="The baseline of an 'inline-table' is the baseline of the first row of the table." /> +<meta name="flags" content="" /> +<style type="text/css"> +span { display: inline-table; } +span > span { display: block; visibility: hidden; } +</style> +</head> +<body> +<p>a<span>bcd<span>x</span></span>e</p> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-002b.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-002b.xht new file mode 100644 index 0000000..c452b39 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-002b.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-display" /> +<meta name="assert" content="it is a rectangular block that participates in an inline formatting context)." /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" /> +<link rel="match" href="inline-table-002-ref.xht"/> +<meta name="assert" content="The baseline of an 'inline-table' is the baseline of the first row of the table." /> +<meta name="flags" content="" /> +<style type="text/css"> +span > span { display: table-cell; } +span > span > span { display: block; visibility: hidden; } +</style> +</head> +<body> +<p><span>a<span>bcd<span>x</span></span>e</span></p> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-003-ref.xht new file mode 100644 index 0000000..4648998 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-003-ref.xht
@@ -0,0 +1,10 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-table test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +</head> +<body> +<p>abc</p> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-003.xht new file mode 100644 index 0000000..fe2208f3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-003.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-display" /> +<meta name="assert" content="it is a rectangular block that participates in an inline formatting context)." /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" /> +<link rel="match" href="inline-table-003-ref.xht"/> +<meta name="assert" content="The baseline of an 'inline-table' is the baseline of the first row of the table." /> +<meta name="flags" content="" /> +<style type="text/css"> +span { display: inline-table; } +</style> +</head> +<body> +<p>a<span>b</span>c</p> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-height-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-height-001-ref.xht new file mode 100644 index 0000000..d6148b5c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-height-001-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-table test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +div { display: table; width: 10em; background: green; color: white; } +</style> +</head> +<body> +<div>Test<br />Test</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-height-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-height-001.xht new file mode 100644 index 0000000..d4e0442 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-height-001.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for 'height: auto' on inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-display" /> +<link rel="match" href="inline-table-height-001-ref.xht"/> +<meta name="assert" content="it is a rectangular block that participates in an inline formatting context)." /> +<meta name="flags" content="" /> +<style type="text/css"> +div { display: inline-table; width: 10em; background: green; color: white; } +</style> +</head> +<body> +<div>Test<br />Test</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-height-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-height-002-ref.xht new file mode 100644 index 0000000..32568759 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-height-002-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-table test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +div { display: table; height: 5em; background: green; color: white; } +</style> +</head> +<body> +<div>test</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-height-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-height-002.xht new file mode 100644 index 0000000..d9d6206 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-height-002.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for 'height: <length;>' on inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-display" /> +<link rel="match" href="inline-table-height-002-ref.xht"/> +<meta name="assert" content="it is a rectangular block that participates in an inline formatting context)." /> +<meta name="flags" content="" /> +<style type="text/css"> +div { display: inline-table; height: 5em; vertical-align: baseline; background: green; color: white; } +</style> +</head> +<body> +<div>test</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-valign-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-valign-001-ref.xht new file mode 100644 index 0000000..243ad0f7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-valign-001-ref.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-table test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +span#table { display: inline-table; } +span#rowgroup { display: table-row-group; } +span#row { display: table-row; } +span#cell { display: table-cell; } +span#table, span#rowgroup, span#row, span#cell { + border: 4px solid white; + margin: 3px 0; + border-width: 4px 0; + padding: 9px 0; + border-spacing: 0 5px; +} +span#block { display: block; visibility: hidden; } +</style> +</head> +<body> +<table border=""><tbody><tr><td> +<p><span id="table"><span id="rowgroup"><span id="row"><span id="cell">abcde<span id="block">x</span></span></span></span></span></p> +</td></tr></tbody></table> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-valign-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-valign-001.xht new file mode 100644 index 0000000..d6aee36 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-valign-001.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for vertical alignment on inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-display" /> +<meta name="assert" content="it is a rectangular block that participates in an inline formatting context)." /> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" /> +<link rel="match" href="inline-table-valign-001-ref.xht"/> +<meta name="assert" content="The baseline of an 'inline-table' is the baseline of the first row of the table." /> +<meta name="flags" content="" /> +<style type="text/css"> +span#table { display: inline-table; } +span#rowgroup { display: table-row-group; } +span#row { display: table-row; } +span#cell { display: table-cell; } +span#table, span#rowgroup, span#row, span#cell { + border: 4px solid white; + margin: 3px 0; + border-width: 4px 0; + padding: 9px 0; + border-spacing: 0 5px; +} +span#block { display: block; visibility: hidden; } +</style> +</head> +<body> +<table border=""><tbody><tr><td> +<p>a<span id="table"><span id="rowgroup"><span id="row"><span id="cell">bcd<span id="block">x</span></span></span></span></span>e</p> +</td></tr></tbody></table> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-001-ref.xht new file mode 100644 index 0000000..52380a3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-001-ref.xht
@@ -0,0 +1,14 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-table test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +body > div { width: 10em; } +body > div > div { display: table; background: green; color: white; } +</style> +</head> +<body> +<div>x<div>This is some text that is wider than 10em but has no words wider than 10em.</div>z</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-001a.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-001a.xht new file mode 100644 index 0000000..411ae62 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-001a.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for 'width' shrink-wrapping on inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#auto-table-layout" /> +<link rel="match" href="inline-table-width-001-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +body > div { width: 10em; } +body > div > div { display: inline-table; background: green; color: white; } +</style> +</head> +<body> +<div>x <div>This is some text that is wider than 10em but has no words wider than 10em.</div> z</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-001b.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-001b.xht new file mode 100644 index 0000000..81d9cf0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-001b.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for 'width' shrink-wrapping on inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#auto-table-layout" /> +<link rel="match" href="inline-table-width-001-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +body > div { width: 10em; } +body > div > div { display: inline-table; background: green; color: white; width: 10em; } +</style> +</head> +<body> +<div>x <div>This is some text that is wider than 10em but has no words wider than 10em.</div> z</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-002-ref.xht new file mode 100644 index 0000000..36c6a1a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-002-ref.xht
@@ -0,0 +1,14 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-table test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +body > div { width: 10em; } +body > div > div { display: table; background: green; color: white; width: 20em; } +</style> +</head> +<body> +<div>x<div>y</div>z</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-002a.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-002a.xht new file mode 100644 index 0000000..22a2a8a4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-002a.xht
@@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for 'width' shrink-wrapping on inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#auto-table-layout" /> +<link rel="match" href="inline-table-width-002-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +body > div { width: 10em; } +body > div > div { display: inline-table; background: green; color: white; } +body > div > div > div { width: 20em; } +</style> +</head> +<body> +<div>x<div><div>y</div></div>z</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-002b.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-002b.xht new file mode 100644 index 0000000..5005dca --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-width-002b.xht
@@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for 'width' shrink-wrapping on inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#auto-table-layout" /> +<link rel="match" href="inline-table-width-002-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +body > div { width: 10em; } +body > div > div { display: inline-table; background: green; color: white; width: 20em; } +body > div > div > div { width: 20em; } +</style> +</head> +<body> +<div>x<div><div>y</div></div>z</div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-001-ref.xht new file mode 100644 index 0000000..b2b5626 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-001-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-table test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +div { display:table; width: 2em; height: 2em; background: green; } +</style> +</head> +<body> +<div> </div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-001.xht new file mode 100644 index 0000000..f73c793 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-001.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for z-ordering of inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/zindex.html#painting-order" /> +<link rel="match" href="inline-table-zorder-001-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +div { width: 2em; height: 2em; } +span { display:inline-table; vertical-align: top; width: 2em; height: 2em; background: green; } +div#after { margin-top:-2em; background: red; } +</style> +</head> +<body> +<div><span> </span></div> +<div id="after"> </div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-002.xht new file mode 100644 index 0000000..cce416f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-002.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for z-ordering of inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/zindex.html#painting-order" /> +<link rel="match" href="inline-table-zorder-001-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +div { width: 2em; height: 2em; } +span { display:inline-table; vertical-align: top; width: 2em; height: 2em; } +span span { display: block; background: green; } +div#after { margin-top: -2em; background: red; } +</style> +</head> +<body> +<div><span><span> </span></span></div> +<div id="after"> </div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-003-ref.xht new file mode 100644 index 0000000..80788df --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-003-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-table test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +span { vertical-align: top; background: green; color: green; border-bottom: 0.25em solid green; border-top: 0.25em solid green; } +</style> +</head> +<body> +<div><span> x </span></div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-003.xht new file mode 100644 index 0000000..616dce7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-003.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for z-ordering of inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/zindex.html#painting-order" /> +<link rel="match" href="inline-table-zorder-003-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +div { height: 1em; } +div#test > span { display:inline-table; vertical-align: top; height: 1em; background: red; color: red; } +div#after { margin-top:-1em; } +div#after > span { display: inline; vertical-align: top; background: green; color: green; border-bottom: 0.25em solid green; border-top: 0.25em solid green; } +</style> +</head> +<body> +<div id="test"><span> x </span></div> +<div id="after"><span> x </span></div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-004-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-004-ref.xht new file mode 100644 index 0000000..0e8360e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-004-ref.xht
@@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Reference for inline-table test</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<style type="text/css"> +span { display: inline-table; vertical-align: top; background: green; color: green; border-bottom: 0.25em solid green; border-top: 0.25em solid green; } +</style> +</head> +<body> +<div><span> x </span></div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-004.xht new file mode 100644 index 0000000..c2ef1b9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-004.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for z-ordering of inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/zindex.html#painting-order" /> +<link rel="match" href="inline-table-zorder-004-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +div#test > span { display:inline-table; vertical-align: top; background: green; color: green; border-bottom: 0.25em solid green; border-top: 0.25em solid green; } +div#before { height: 1em; margin-bottom:-1em; } +div#before > span { display: inline; vertical-align: top; background: red; color: red; } +</style> +</head> +<body> +<div id="before"><span> x </span></div> +<div id="test"><span> x </span></div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-005.xht new file mode 100644 index 0000000..feb0e1c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inline-table-zorder-005.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> +<title>CSS Test: Test for z-ordering of inline-table</title> +<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> +<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> +<link rel="help" href="http://www.w3.org/TR/CSS21/zindex.html#painting-order" /> +<link rel="match" href="inline-table-zorder-004-ref.xht"/> +<meta name="flags" content="" /> +<style type="text/css"> +div#test > span { display:inline-table; vertical-align: top; } +div#test > span > span { display: block; background: green; color: green; border-bottom: 0.25em solid green; border-top: 0.25em solid green; } +div#before { height: 1em; margin-bottom:-1em; } +div#before > span { display: inline; vertical-align: top; background: red; color: red; } +</style> +</head> +<body> +<div id="before"><span> x </span></div> +<div id="test"><span><span> x </span></span></div> + + +</body></html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-001.xht new file mode 100644 index 0000000..c46af086 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-001.xht
@@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: CSS Inline Box Model: Layering Model</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/001.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting"/> + <style type="text/css"> + img { border-bottom: 1em solid green; vertical-align: text-bottom; } + span { background: red; } + </style> + </head> + <body> + <p>Test passes if there is a cat sitting on a green bar below and no red.</p> + <p><span><img src="support/cat.png" alt="image"/></span></p> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-002-ref.xht new file mode 100644 index 0000000..3f0a62e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-002-ref.xht
@@ -0,0 +1,22 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + span {border: green solid 0.5em;} + ]]></style> + + </head> + + <body> + + <p><span>This should have a green border.</span></p> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-002.xht new file mode 100644 index 0000000..78bb5c3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-002.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: CSS Inline Box Model: Layering Model</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/002.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" /> + <link rel="match" href="inlines-002-ref.xht" /> + + <style type="text/css"> + span { background: red; padding: 0.5em 0; } + strong { font: inherit; border: 0.5em solid green; background: white; } + </style> + </head> + <body> + <p><span><strong>This should have a green border.</strong></span></p> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-003.xht new file mode 100644 index 0000000..53d0bde --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-003.xht
@@ -0,0 +1,22 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: CSS Inline Box Model: Wrapping Borders</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/003.xml" type="application/xhtml+xml"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" /> + <meta name="flags" content="interact"/> + <style type="text/css"> + div { font: 2em/2 sans-serif; } + span { border: thick solid blue; padding: 0 1em; } + </style> + </head> + <body> + <p>Slowly resize the window, causing the text below to wrap into multiple + lines at different points in the text. At all points in time, each word + should be enclosed in an hollow blue rectangle and there should be no stray + pieces of blue rectangle anywhere else on the page.</p> + <div> <span>Resize</span> <span>the</span> <span>window</span> <span>so</span> <span>that</span> <span>this</span> <span>wraps</span> </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-004.xht new file mode 100644 index 0000000..f381977 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-004.xht
@@ -0,0 +1,56 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: CSS Inline Box Model: Wrapping Spaces Outside Inline Elements</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/004.xml" type="application/xhtml+xml"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" /> + <meta name="flags" content="interact"/> + <style type="text/css"> + span { color: blue; } + </style> + </head> + <body> + + <p>Resize your window slowly from a wide size to a narrow size. The + Xs below should always be perfectly aligned in a grid.</p> + + <p> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + </p> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-005.xht new file mode 100644 index 0000000..f249666 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-005.xht
@@ -0,0 +1,58 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: CSS Inline Box Model: Wrapping Spaces Outside Inline Elements</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/005.xml" type="application/xhtml+xml"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" /> + <meta name="flags" content="interact"/> + <style type="text/css"><![CDATA[ + p > span { padding: 5px 0; line-height: 2; letter-spacing: 3px; } + span span { border: solid blue; color: gray; } + ]]></style> + </head> + <body> + + <p>Resize your window slowly from a wide size to a narrow size. Each "X" + should be wrapped by a blue border. The boxed Xs below should always be + perfectly aligned in a grid.</p> + + <p> <span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + <span>X</span> <span>X</span> <span>X</span> <span>X</span> + </span> </p> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-006.xht new file mode 100644 index 0000000..d59be358 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-006.xht
@@ -0,0 +1,54 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: CSS Inline Box Model: Wrapping Spaces Outside Inline Elements</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/006.xml" type="application/xhtml+xml"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" /> + <meta name="flags" content="interact"/> + <style type="text/css"><![CDATA[ + p > span { padding: 5px 0; line-height: 3; letter-spacing: 3px; } + span span { border: solid blue; color: gray; } + ]]></style> + </head> + <body> + + <p>Resize your window slowly from a wide size to a narrow size. Each + "XXXXXXXXXXXXXXX" should be wrapped by a blue border. The + XXXXXXXXXXXXXXX-filled boxes below should always be perfectly + aligned in a grid.</p> + + <p> <span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + <span>XXXXXXXXXXXXXXX</span> <span>XXXXXXXXXXXXXXX</span> + </span> </p> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-007.xht new file mode 100644 index 0000000..de1dc6200c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-007.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: CSS Inline Box Model: Behaviour near cells</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/007.xml" type="application/xhtml+xml"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/007.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" /> + <style type="text/css"> + div, table, tr, td { margin: 0; border: 0; padding: 0; border-spacing: 0; line-height: 1; } + span { font-size: 0.2em; } + table { background: green; color: white; width: 5em; } + .test { height: 1em; background: red; width: 5em; } + .wrapper { font-size: 5em; } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div class="wrapper"> + <div class="test"><table><tr><td><span>This rectangle should be green.</span></td></tr></table></div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-009.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-009.xht new file mode 100644 index 0000000..2e797a0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-009.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: CSS Inline Box Model: Behaviour near cells (specified line height)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/009.xml" type="application/xhtml+xml"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/009.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting"/> + <meta name="flags" content="ahem image"/> + <style type="text/css"><![CDATA[ + div, table, tr, td { margin: 0; border: 0; padding: 0; border-spacing: 0; line-height: 1.3; } + .test > * { border: solid blue; font: 20px/1.3 Ahem; float: left; color: gray; + margin: 0.2em; height: auto; width: 3em; text-align: center; } + ]]></style> + </head> + <body> + <p>Test passes if the 4 blue rectangles have the <strong>same size</strong>.</p> + <div class="test"> + <div>ÉÉÉ</div> + <table><tr><td>ÉÉÉ</td></tr></table> + <table><tr><td><img class="img" src="support/1x1-gray.png" width="60" height="16" + alt="(image test failed)"/></td></tr></table> + <table><tr><td><img src="404" alt="ÉÉÉ" width="60" height="16"/></td></tr></table> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-010.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-010.xht new file mode 100644 index 0000000..313d9758 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-010.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: CSS Inline Box Model: Behaviour near cells (normal line height)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-20 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/010.xml" type="application/xhtml+xml"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/010.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting"/> + <meta name="flags" content="ahem image"/> + <style type="text/css"> + div, table, tr, td, img { margin: 0; border: 0; padding: 0; border-spacing: 0; } + .test > * { border: solid thick blue; font: 20px Ahem; float: left; color: gray; + margin: 0.2em; height: auto; width: 3em; text-align: center; } + </style> + </head> + <body> + <p>Test passes if the 4 blue rectangles have the <strong>same size</strong>.</p> + <div class="test"> + <div>ÉÉÉ</div> + <table><tr><td>ÉÉÉ</td></tr></table> + <table><tr><td><img class="img" src="support/1x1-gray.png" width="60" height="16" + alt="(image test failed)"/></td></tr></table> + <table><tr><td><img src="404" alt="ÉÉÉ" width="60" height="16"/></td></tr></table> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-011.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-011.xht new file mode 100644 index 0000000..d2c282c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-011.xht
@@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: CSS Inline Box Model: Baseline alignment of images</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/011.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting"/> + <meta name="flags" content="image"/> + <style type="text/css"> + .test { background: green; width: 98px; font-size: 20px; line-height: 1; } + </style> + </head> + <body> + <p>Test passes if there is a cat sitting on a green bar below.</p> + <p class="test"><img src="support/cat.png" alt="FAIL"/></p> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-012.xht new file mode 100644 index 0000000..02e4415 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-012.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: CSS Inline Box Model: Baseline alignment of images</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/012.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting"/> + <meta name="flags" content="image"/> + <style type="text/css"> + .test { background: red; width: 98px; font-size: 20px; line-height: 1; } + span { background: green; } + </style> + </head> + <body> + <p>Test passes if there is a cat sitting on a green bar below and no red.</p> + <p class="test"><span><img src="support/cat.png" alt="FAIL"/></span></p> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-013-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-013-ref.xht new file mode 100644 index 0000000..64b23a4d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-013-ref.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + p {font: 1em/1.25 serif;} + + div {font: 64px/1 monospace;} + + div#wrapper + { + position: relative; + top: 28px; + } + + div#test + { + position: relative; + bottom: 64px; + } + ]]></style> + + </head> + + <body> + + <p>You should see the word PASS below, with the<br /> + word fail crossed out with Xs on the line below.</p> + + <div id="wrapper"> + <div id="control1">PASS</div> + + <div id="control2">FAIL</div> + + <div id="test">XXXX</div> + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-013.xht new file mode 100644 index 0000000..20ef0bfe --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-013.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline box model: space taken by images before floats</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-26 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/013.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#float-position"/> + <link rel="match" href="inlines-013-ref.xht" /> + + <meta name="flags" content="image"/> + + <style type="text/css"> + p {font: 1em/1.25 serif;} + div { font: 64px/1 monospace; } + #control1 { position: absolute; top: 100px; } + #control2 { position: absolute; top: 164px; } + #container { position: absolute; top: 100px; width: 0; } /* width: 0; so that the float can't arguably be on the first line */ + #test { float: left; } + </style> + </head> + <body> + <p>You should see the word PASS below, with the<br /> + word fail crossed out with Xs on the line below.</p> + <div id="control1">PASS</div> + <div id="control2">FAIL</div> + <div id="container"> + <img src="support/1x1-white.png" alt="(image test failed)"/> <!-- this should generate a line box 64px high --> + <div id="test">XXXX</div> <!-- this will overlap the PASS if it ends up on the previous line, otherwise it will overlap the fail --> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-014.xht new file mode 100644 index 0000000..181fe31 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-014.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline box model: space taken by images in cells</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-26 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/014.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" /> + + <meta name="flags" content="image"/> + <style type="text/css"> + div { background: red; height: 64px; width: 128px; } + table { background: green; width: 100%; padding: 0; border: 0; border-spacing: 0; margin: 0; } + td { padding: 0; border: 0; font-size: 64px; } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div> + <table> + <tr> + <td> + <img src="support/1x1-white.png" alt="(image test failed)"/> <!-- this should generate a line box with the height of the cell's line-height --> + </td> + </tr> + </table> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-015.xht new file mode 100644 index 0000000..880b43eaa --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-015.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inline box model: space taken by images in cells</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-26 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/015.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" /> + <meta name="flags" content="image"/> + <style type="text/css"> + div { background: red; height: 64px; width: 128px; } + table { background: green; width: 100%; padding: 0; border: 0; border-spacing: 0; margin: 0; } + td { padding: 0; border: 0; font-size: 64px; } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div> + <table> + <tr> <!-- same as 014 but without spaces around the image --> + <td><img src="support/1x1-white.png" alt="(image test failed)"/></td> + </tr> + </table> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-016-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-016-ref.xht new file mode 100644 index 0000000..791eeb71 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-016-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div {margin: 40px;} + + img {vertical-align: top;} + ]]> + </style> + + </head> + + <body> + + <p>The following two blocks should be identical.</p> + + <div><img src="support/swatch-teal.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-aqua.png" width="80" height="40" alt="Image download support must be enabled" /><img src="support/swatch-teal.png" width="40" height="40" alt="Image download support must be enabled" /></div> + + <div><img src="support/swatch-teal.png" width="40" height="40" alt="Image download support must be enabled" /><img src="support/swatch-aqua.png" width="80" height="40" alt="Image download support must be enabled" /><img src="support/swatch-teal.png" width="40" height="40" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-016.xht new file mode 100644 index 0000000..b61f6ce4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-016.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Inline box model: space collapsing, padding, white-space, et al</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-27 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/016.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" /> + <link rel="match" href="inlines-016-ref.xht" /> + + <meta name="flags" content="ahem"/> + <meta name="assert" content="If a space (U+0020) at the beginning of a line + has 'white-space' set to 'normal', then it is removed, even if there's padding."/> + <style type="text/css"> + div { width: 4em; background: teal; color: aqua; margin: 1em; font: 2.5em/1 Ahem; } + .test span { padding-left: 1em; } + .control { white-space: pre; } + </style> + </head> + <body> + <p>The following two blocks should be identical.</p> + <div class="test"><span> XX</span></div> + <div class="control"><span> XX</span></div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-017-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-017-ref.xht new file mode 100644 index 0000000..e6034af --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-017-ref.xht
@@ -0,0 +1,50 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + table + { + border-spacing: 0px; + padding-top: 10px; + } + + td {padding: 0px 20px 20px 0px;} + + img + { + height: 20px; + vertical-align: top; + width: 20px; + } + ]]> + </style> + + </head> + + <body> + + <p>Test passes if there is a perfect five by five grid of dots.</p> + + <table> + + <tr><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td></tr> + + <tr><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td></tr> + + <tr><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td></tr> + + <tr><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td></tr> + + <tr><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td><td><img src="support/swatch-teal.png" alt="Image download support must be enabled" /></td></tr> + + </table> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-017.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-017.xht new file mode 100644 index 0000000..6ba8719 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-017.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: First line alignment</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-26 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/017.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" /> + <link rel="match" href="inlines-017-ref.xht" /> + + <meta name="flags" content="ahem"/> + + <style type="text/css"> + div {font: 1.25em/1 Ahem; width: 10em;} + span { color: teal; border-left: 1em teal solid; padding-left: 1em; line-height: 2; } + </style> + </head> + <body> + <p>Test passes if there is a perfect five by five grid of dots.</p> + <div> + <span> x x x x x x x x x x x x x x x x x x x x x x x x </span> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-020-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-020-ref.xht new file mode 100644 index 0000000..99a52579 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-020-ref.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + body + { + color: green; + font: 20px/1 serif; + margin: 0; + } + + img {vertical-align: top;} + ]]></style> + + </head> + + <body> + + <div><img src="support/swatch-green.png" width="20" height="20" alt="Image download support must be enabled" /></div> + + <div>Test passes if this sentence is green and has a small green square above it.</div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-020.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-020.xht new file mode 100644 index 0000000..9799adf --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/inlines-020.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: CSS Inline Box Model: Empty inlines near the top of the document</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-26 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/020.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" /> + <link rel="match" href="inlines-020-ref.xht" /> + + <style type="text/css"> + p, body, html { margin: 0; padding: 0; font: 20px/1 serif; } + div { display: inline; border-left: green solid 20px; } + .fail { background: red; color: yellow; width: 4em; } + .pass { background: white; color: green; position: absolute; top: 1em; } + </style> + </head> + <body> + <div></div> + <p class="fail">FAIL</p> + <p class="pass">Test passes if this sentence is green and has a small green square above it.</p> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-001.xht new file mode 100644 index 0000000..0f84a90 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-001.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using pixels with a minimum minus one value, -1px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'max-height' property sets a minimum minus one length value in pixels." /> + <style type="text/css"> + div + { + background: black; + max-height: -1px; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-002.xht new file mode 100644 index 0000000..296930cf --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-002.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using pixels with a minimum value, 0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a minimum length value in pixels." /> + <style type="text/css"> + div + { + background: red; + max-height: 0px; + height: 100px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-003.xht new file mode 100644 index 0000000..2df02c4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-003.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using pixels with a minimum plus one value, 1px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a minimum plus one length value in pixels." /> + <style type="text/css"> + div + { + background: black; + max-height: 1px; + height: 100px; + } + </style> + </head> + <body> + <p>Test passes if there is a thin horizontal line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-004.xht new file mode 100644 index 0000000..781a1ca67 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-004.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using pixels with a negative zero value, -0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a negative zero length value in pixels." /> + <style type="text/css"> + div + { + background: red; + max-height: -0px; + height: 100px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-005.xht new file mode 100644 index 0000000..993a010a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-005.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using pixels with a positive zero value, +0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive zero length value in pixels." /> + <style type="text/css"> + div + { + background: red; + max-height: +0px; + height: 100px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-006.xht new file mode 100644 index 0000000..66237ce --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-006.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using pixels with a nominal value, 96px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a nominal length value in pixels." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + max-height: 96px; + height: 192px; + width: 1in; + } + #div3 + { + border-top: 96px solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-007.xht new file mode 100644 index 0000000..a6303fa --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-007.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using pixels with a positive nominal value, +96px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive nominal length value in pixels." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + max-height: +96px; + height: 192px; + width: 1in; + } + #div3 + { + border-top: 96px solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-012.xht new file mode 100644 index 0000000..dde742d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-012.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using points with a minimum minus one value, -1pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'max-height' property sets a minimum minus one length value in points." /> + <style type="text/css"> + div + { + background: black; + max-height: -1pt; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-013.xht new file mode 100644 index 0000000..48be78c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-013.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using points with a minimum value, 0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a minimum length value in points." /> + <style type="text/css"> + div + { + background: red; + max-height: 0pt; + height: 100pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-014.xht new file mode 100644 index 0000000..a3b0ce6b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-014.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using points with a minimum plus one value, 1pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + + <!-- + The reftest uses a 1px line. Now, 1pt is 1.33333px. + It is not entirely assured that all user agents will + resolve this as 1px. So, I decided to not insert + the reftest height-003-ref.xht + link rel="match" href="height-003-ref.xht" + --> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a minimum plus one length value in points." /> + <style type="text/css"> + div + { + background: black; + max-height: 1pt; + height: 100px; + } + </style> + </head> + <body> + <p>Test passes if there is a thin line.</p> + <div></div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-015.xht new file mode 100644 index 0000000..6773277 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-015.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using points with a negative zero value, -0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a negative zero length value in points." /> + <style type="text/css"> + div + { + background: red; + max-height: -0pt; + height: 100pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-016.xht new file mode 100644 index 0000000..12144af --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-016.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using points with a positive zero value, +0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive zero length value in points." /> + <style type="text/css"> + div + { + background: red; + max-height: +0pt; + height: 100pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-017.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-017.xht new file mode 100644 index 0000000..821722a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-017.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using points with a nominal value, 72pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a nominal length value in points." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + max-height: 72pt; + height: 144pt; + width: 1in; + } + #div3 + { + border-top: 72pt solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-018.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-018.xht new file mode 100644 index 0000000..d06ea7e1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-018.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using points with a positive nominal value, +72pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive nominal length value in points." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + max-height: +72pt; + height: 144pt; + width: 1in; + } + #div3 + { + border-top: 72pt solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-023.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-023.xht new file mode 100644 index 0000000..97b0e5a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-023.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using picas with a minimum minus one value, -1pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'max-height' property sets a minimum minus one length value in picas." /> + <style type="text/css"> + div + { + background: black; + max-height: -1pc; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-024.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-024.xht new file mode 100644 index 0000000..4f16081 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-024.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using picas with a minimum value, 0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a minimum length value in picas." /> + <style type="text/css"> + div + { + background: red; + max-height: 0pc; + height: 10pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-025-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-025-ref.xht new file mode 100644 index 0000000..9cb13ae --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-025-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 1pc; + vertical-align: top; + width: 100%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a wide black bar and <strong>no red</strong>.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-025.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-025.xht new file mode 100644 index 0000000..fa30e50 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-025.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using picas with a minimum plus one value, 1pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-025-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a minimum plus one length value in picas." /> + <style type="text/css"> + div#red-overlapped + { + background-color: red; + height: 12pc; + max-height: 1pc; + } + + div#black-overlapping + { + background-color: black; + bottom: 1pc; + height: 1pc; + position: relative; + } + </style> + </head> + <body> + <p>Test passes if there is a wide black bar and <strong>no red</strong>.</p> + + <div id="red-overlapped"></div> + + <div id="black-overlapping"></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-026.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-026.xht new file mode 100644 index 0000000..e575049 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-026.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using picas with a negative zero value, -0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a negative zero length value in picas." /> + <style type="text/css"> + div + { + background: red; + max-height: -0pc; + height: 10pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-027.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-027.xht new file mode 100644 index 0000000..526ab14 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-027.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using picas with a positive zero value, +0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive zero length value in picas." /> + <style type="text/css"> + div + { + background: red; + max-height: +0pc; + height: 10pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-028.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-028.xht new file mode 100644 index 0000000..864df5a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-028.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using picas with a nominal value, 6pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a nominal length value in picas." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + max-height: 6pc; + height: 12pc; + width: 1in; + } + #div3 + { + border-top: 6pc solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-029.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-029.xht new file mode 100644 index 0000000..f474bae --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-029.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using picas with a positive nominal value, +6pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive nominal length value in picas." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + max-height: +6pc; + height: 12pc; + width: 1in; + } + #div3 + { + border-top: 6pc solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-034.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-034.xht new file mode 100644 index 0000000..22278b5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-034.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using centimeters with a minimum minus one value, -1cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'max-height' property sets a minimum minus one length value in centimeters." /> + <style type="text/css"> + div + { + background: black; + max-height: -1cm; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-035.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-035.xht new file mode 100644 index 0000000..d367d2e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-035.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using centimeters with a minimum value, 0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a minimum length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + max-height: 0cm; + height: 4cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-036-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-036-ref.xht new file mode 100644 index 0000000..845838c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-036-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 1cm; + vertical-align: top; + width: 100%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a thick black stripe and <strong>no red</strong>.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-036.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-036.xht new file mode 100644 index 0000000..724d31c3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-036.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using centimeters with a minimum plus one value, 1cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-036-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a minimum plus one length value in centimeters." /> + <style type="text/css"> + div#red-overlapped + { + background-color: red; + height: 4cm; + max-height: 1cm; + } + + div#black-overlapping + { + background-color: black; + bottom: 1cm; + height: 1cm; + position: relative; + } + </style> + </head> + <body> + <p>Test passes if there is a thick black stripe and <strong>no red</strong>.</p> + + <div id="red-overlapped"></div> + + <div id="black-overlapping"></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-037.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-037.xht new file mode 100644 index 0000000..94135e0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-037.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using centimeters with a negative zero value, -0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a negative zero length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + max-height: -0cm; + height: 4cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-038.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-038.xht new file mode 100644 index 0000000..687cbe2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-038.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using centimeters with a positive zero value, +0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive zero length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + max-height: +0cm; + height: 4cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-039.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-039.xht new file mode 100644 index 0000000..f2ce4ac --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-039.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using centimeters with a nominal value, 2.54cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a nominal length value in centimeters." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + max-height: 2.54cm; + height: 5.08cm; + width: 1in; + } + #div3 + { + border-top: 2.54cm solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-040.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-040.xht new file mode 100644 index 0000000..c8955a5c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-040.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using centimeters with a positive nominal value, +2.54cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive nominal length value in centimeters." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + max-height: +2.54cm; + height: 5.08cm; + width: 1in; + } + #div3 + { + border-top: 2.54cm solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-045.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-045.xht new file mode 100644 index 0000000..1b87f66 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-045.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using millimeters with a minimum minus one value, -1mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'max-height' property sets a minimum minus one length value in millimeters." /> + <style type="text/css"> + div + { + background: black; + max-height: -1mm; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-046.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-046.xht new file mode 100644 index 0000000..05e189f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-046.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using millimeters with a minimum value, 0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a minimum length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + max-height: 0mm; + height: 50mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-047-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-047-ref.xht new file mode 100644 index 0000000..0bb87aa --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-047-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 1mm; + vertical-align: top; + width: 100%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a black horizontal line and <strong>no red</strong>.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-047.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-047.xht new file mode 100644 index 0000000..b46859a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-047.xht
@@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using millimeters with a minimum plus one value, 1mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-047-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a minimum plus one length value in millimeters." /> + <style type="text/css"> + div#red-overlapped + { + background-color: red; + height: 25mm; + max-height: 1mm; + } + + div#black-overlapping + { + background-color: black; + bottom: 1mm; + height: 1mm; + position: relative; + } + </style> + </head> + <body> + <p>Test passes if there is a black horizontal line and <strong>no red</strong>.</p> + + <div id="red-overlapped"></div> + + <div id="black-overlapping"></div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-048.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-048.xht new file mode 100644 index 0000000..215cd1f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-048.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using millimeters with a negative zero value, -0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a negative zero length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + max-height: -0mm; + height: 50mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-049.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-049.xht new file mode 100644 index 0000000..d4ab647 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-049.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using millimeters with a positive zero value, +0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive zero length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + max-height: +0mm; + height: 50mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-050.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-050.xht new file mode 100644 index 0000000..d582cc04 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-050.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using millimeters with a nominal value, 25.4mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a nominal length value in millimeters." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + max-height: 25.4mm; + height: 50.8mm; + width: 1in; + } + #div3 + { + border-top: 25.4mm solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-051.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-051.xht new file mode 100644 index 0000000..6c6ea8a5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-051.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using millimeters with a positive nominal value, +25.4mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive nominal length value in millimeters." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + max-height: +25.4mm; + height: 50.8mm; + width: 1in; + } + #div3 + { + border-top: 25.4mm solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-056.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-056.xht new file mode 100644 index 0000000..40a360e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-056.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using inches with a minimum minus one value, -1in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'max-height' property sets a minimum minus one length value in inches." /> + <style type="text/css"> + div + { + background: black; + max-height: -1in; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-057.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-057.xht new file mode 100644 index 0000000..1eb0d92 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-057.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using inches with a minimum value, 0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a minimum length value in inches." /> + <style type="text/css"> + div + { + background: red; + max-height: 0in; + height: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-058-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-058-ref.xht new file mode 100644 index 0000000..63aa176 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-058-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 96px; + vertical-align: top; + width: 100%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled black rectangle and <strong>no red</strong>.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-058.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-058.xht new file mode 100644 index 0000000..29bc28c8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-058.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using inches with a minimum plus one value, 1in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-058-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a minimum plus one length value in inches." /> + <style type="text/css"> +div#red-overlapped { background-color: red; height: 2in; max-height: 1in; } div#black-overlapping { background-color: black; height: 1in; position: relative; bottom: 1in; } + </style> + </head> + <body> + <p>Test passes if there is a filled black rectangle and <strong>no red</strong>.</p> + + <div id="red-overlapped"></div> + + <div id="black-overlapping"></div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-059.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-059.xht new file mode 100644 index 0000000..3474513 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-059.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using inches with a negative zero value, -0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a negative zero length value in inches." /> + <style type="text/css"> + div + { + background: red; + max-height: -0in; + height: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-060.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-060.xht new file mode 100644 index 0000000..1e4e6d35 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-060.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using inches with a positive zero value, +0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive zero length value in inches." /> + <style type="text/css"> + div + { + background: red; + max-height: +0in; + height: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-061.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-061.xht new file mode 100644 index 0000000..702c3d2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-061.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using inches with a nominal value, 3in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-061-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a nominal length value in inches." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + max-height: 3in; + height: 4in; + width: 1in; + } + #div3 + { + border-top: 3in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-062.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-062.xht new file mode 100644 index 0000000..61a0973 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-062.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using inches with a positive nominal value, +3in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-061-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive nominal length value in inches." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + max-height: +3in; + height: 4in; + width: 1in; + } + #div3 + { + border-top: 3in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-067.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-067.xht new file mode 100644 index 0000000..e0ac2b3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-067.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using 'em' units with a minimum minus one value, -1em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="ahem invalid" /> + <meta name="assert" content="The 'max-height' property sets a minimum minus one length value in 'em' units." /> + <style type="text/css"> + div + { + background: black; + font: 20px/1 Ahem; + max-height: -1em; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-068.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-068.xht new file mode 100644 index 0000000..b4aaf51e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-068.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using 'em' units with a minimum value, 0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-height' property sets a minimum length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + max-height: 0em; + height: 100em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-069-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-069-ref.xht new file mode 100644 index 0000000..102b5f9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-069-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 20px; + vertical-align: top; + width: 100%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a wide black bar and <strong>no red</strong>.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-069.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-069.xht new file mode 100644 index 0000000..b3c6761 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-069.xht
@@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using 'em' units with a minimum plus one value, 1em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-069-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-height' property sets a minimum plus one length value in 'em' units." /> + <style type="text/css"> + div {font: 20px/1 Ahem;} + + div#red-overlapped + { + background-color: red; + height: 6em; + max-height: 1em; + } + + div#black-overlapping + { + background-color: black; + bottom: 1em; + height: 1em; + position: relative; + } + </style> + </head> + <body> + <p>Test passes if there is a wide black bar and <strong>no red</strong>.</p> + <div id="red-overlapped"></div> + <div id="black-overlapping"></div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-070.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-070.xht new file mode 100644 index 0000000..02e27a0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-070.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using 'em' units with a negative zero value, -0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-height' property sets a negative zero length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + max-height: -0em; + height: 5em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-071.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-071.xht new file mode 100644 index 0000000..f23ffc2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-071.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using 'em' units with a positive zero value, +0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-height' property sets a positive zero length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + max-height: +0em; + height: 5em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-072.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-072.xht new file mode 100644 index 0000000..6e86496 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-072.xht
@@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using 'em' units with a nominal value, 5em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-072-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-height' property sets a nominal length value in 'em' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + position: relative; + } + #div2 + { + background: black; + max-height: 5em; + height: 10em; + width: 100px; + } + #div3 + { + border-top: 5em solid black; + left: 104px; + position: absolute; + top: 0; + width: 100px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-073.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-073.xht new file mode 100644 index 0000000..bc48e2b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-073.xht
@@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using 'em' units with a positive nominal value, +5em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-072-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-height' property sets a positive nominal length value in 'em' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + position: relative; + } + #div2 + { + background: black; + max-height: +5em; + height: 10em; + width: 100px; + } + #div3 + { + border-top: 5em solid black; + left: 104px; + position: absolute; + top: 0; + width: 100px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-078.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-078.xht new file mode 100644 index 0000000..527f5da --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-078.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using 'ex' units with a minimum minus one value, -1ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="ahem invalid" /> + <meta name="assert" content="The 'max-height' property sets a minimum minus one length value in 'ex' units." /> + <style type="text/css"> + div + { + background: black; + font: 20px/1 Ahem; + max-height: -1ex; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-079.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-079.xht new file mode 100644 index 0000000..9f8cd6a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-079.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using 'ex' units with a minimum value, 0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-height' property sets a minimum length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + max-height: 0ex; + height: 6ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-080.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-080.xht new file mode 100644 index 0000000..60cfaab --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-080.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using 'ex' units with a minimum plus one value, 1ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-12-09 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-025-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-height' property sets a minimum plus one length value in 'ex' units." /> + <style type="text/css"> + div {font: 20px/1 Ahem;} + + div#red-overlapped + { + background-color: red; + height: 4ex; + max-height: 1ex; + } + + div#black-overlapping + { + background-color: black; + bottom: 1ex; + height: 1ex; + position: relative; + } + </style> + </head> + <body> + <p>Test passes if there is a wide black bar and <strong>no red</strong>.</p> + + <div id="red-overlapped"></div> + + <div id="black-overlapping"></div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-081.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-081.xht new file mode 100644 index 0000000..3f03eee --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-081.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using 'ex' units with a negative zero value, -0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-height' property sets a negative zero length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + max-height: -0ex; + height: 6ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-082.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-082.xht new file mode 100644 index 0000000..ad5116ba --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-082.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using 'ex' units with a positive zero value, +0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-height' property sets a positive zero length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + max-height: +0ex; + height: 6ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-083.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-083.xht new file mode 100644 index 0000000..e7d7a42e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-083.xht
@@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using 'ex' units with a nominal value, 6ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-height' property sets a nominal length value in 'ex' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + position: relative; + } + #div2 + { + background: black; + max-height: 6ex; + height: 12ex; + width: 1in; + } + #div3 + { + border-top: 96px solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-084.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-084.xht new file mode 100644 index 0000000..e08f886 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-084.xht
@@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using 'ex' units with a positive nominal value, +6ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-height' property sets a positive nominal length value in 'ex' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + position: relative; + } + #div2 + { + background: black; + max-height: +6ex; + height: 12ex; + width: 1in; + } + #div3 + { + border-top: 96px solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-089.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-089.xht new file mode 100644 index 0000000..374b4be --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-089.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using percentages with a minimum minus one value, -1%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'max-height' property sets a minimum minus one length value in percentages." /> + <style type="text/css"> + div + { + background: black; + max-height: -1%; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-090.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-090.xht new file mode 100644 index 0000000..be20559 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-090.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using percentages with a minimum value, 0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a minimum length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + } + div div + { + background: red; + max-height: 0%; + height: 100%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-091.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-091.xht new file mode 100644 index 0000000..eee3aa0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-091.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using percentages with a minimum plus one value, 1%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a minimum plus one length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 100px; + } + div div + { + background: black; + max-height: 1%; + height: 100%; + } + </style> + </head> + <body> + <p>Test passes if there is a thin horizontal line.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-092.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-092.xht new file mode 100644 index 0000000..2d6a0e97 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-092.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using percentages with a negative zero value, -0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a negative zero length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + } + div div + { + background: red; + max-height: -0%; + height: 100%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-093.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-093.xht new file mode 100644 index 0000000..aecfbdd4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-093.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using percentages with a positive zero value, +0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive zero length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + } + div div + { + background: red; + max-height: +0%; + height: 100%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-094.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-094.xht new file mode 100644 index 0000000..60cac4fe --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-094.xht
@@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using percentages with a nominal value, 100%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a nominal length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + position: relative; + } + #div2 + { + background: black; + max-height: 100%; + height: 200%; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-095.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-095.xht new file mode 100644 index 0000000..c9f62128 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-095.xht
@@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height using percentages with a positive nominal value, +100%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive nominal length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + position: relative; + } + #div2 + { + background: black; + max-height: +100%; + height: 200%; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-100.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-100.xht new file mode 100644 index 0000000..e2628d6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-100.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height with a negative zero value and no units, -0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a negative zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + max-height: -0; + height: 100px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-101.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-101.xht new file mode 100644 index 0000000..c7d65c89 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-101.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height with a zero value and no units, 0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + max-height: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-102.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-102.xht new file mode 100644 index 0000000..a5903c1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-102.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height with a positive zero value and no units, +0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-28 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property sets a positive zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + max-height: +0; + height: 100px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-103.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-103.xht new file mode 100644 index 0000000..0fb9f00 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-103.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height set to a value of 'none'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property with a value of 'none' means that there is no constraining maximum height being applied to the element." /> + <style type="text/css"> + div + { + background-color: black; + height: 96px; + max-height: 0px; + max-height: none; + width: 96px; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-104.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-104.xht new file mode 100644 index 0000000..884c71ad --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-104.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height set to inherit</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property properly inherits the max-height value of the parent." /> + <style type="text/css"> + #div1 + { + max-height: 1px; + } + div div + { + background: black; + height: 2in; + max-height: inherit; + } + </style> + </head> + <body> + <p>Test passes if there is a thin horizontal line.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-105.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-105.xht new file mode 100644 index 0000000..d899262 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-105.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: max-height - oveflow</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="James Hopkins" href="http://idreamincode.co.uk/css21testsuite" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> + <meta content="" name="flags" /> + <meta content="The 'max-height' property can restrain the used value of height when the used value of height is greater than the declared max-height and not when it is less than the declared max-height and not when it does not exceed the declared max-height." name="assert" /> + + <style type="text/css"><![CDATA[ + div#red-parent + { + background-color: red; + max-height: 400px; + overflow: scroll; + width: 200px; + } + + div#green-child + { + background-color: green; + height: 200px; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a green rectangle with inactive scrollbars and no red square.</p> + + <div id="red-parent"> + <div id="green-child"></div> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-106.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-106.xht new file mode 100644 index 0000000..5abfbf0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-106.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: max-height - float and overflow</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" /> + <meta content="ahem" name="flags" /> + <meta content="" name="assert" /> + + <style type="text/css"><![CDATA[ + div + { + color: blue; + float: left; + font: 200px/1 Ahem; + max-height: 200px; + overflow: scroll; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a blue rectangle with scrollbars.</p> + + <div>X</div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-107-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-107-ref.xht new file mode 100644 index 0000000..f2f9e0ec --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-107-ref.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: green; + height: 200px; + margin-bottom: 208px; + width: 200px; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a green square and <strong>no red</strong>.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-107.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-107.xht new file mode 100644 index 0000000..8decfdf3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-107.xht
@@ -0,0 +1,51 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: max-height - space for scrollbar</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-107-ref.xht" /> + + <meta content="ahem" name="flags" /> + <meta content="Any space taken up by the scrollbars should be taken out of (subtracted from the dimensions of) the containing block formed by the element with the scrollbars." name="assert" /> + + <style type="text/css"><![CDATA[ + div#test-red-overlapped + { + color: red; + font: 200px/1 Ahem; + max-height: 200px; + overflow: scroll; + width: 200px; + } + + div#control-green-overlapping + { + background-color: green; + height: 200px; + position: relative; + top: -200px; + width: 200px; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a green square and <strong>no red</strong>.</p> + + <div id="test-red-overlapped">X</div> + + <div id="control-green-overlapping"></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-108.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-108.xht new file mode 100644 index 0000000..de534ba --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-108.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: max-height - overflow</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> + <meta content="ahem" name="flags" /> + <meta content="The max-height property can restrain the used value of height when the used value of height is greater than the declared max-height and not when it is less than the declared max-height and not when it does not exceed the declared max-height." name="assert" /> + + <style type="text/css"><![CDATA[ + div#red-parent + { + background-color: red; + max-height: 400px; + overflow: scroll; + } + + div#green-child + { + background-color: green; + color: green; + font: 200px/1 Ahem; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a wide green rectangle across the page; such green rectangle should have inactive scrollbars. There should be no wide red rectangle.</p> + + <div id="red-parent"> + <div id="green-child">X</div> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-109.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-109.xht new file mode 100644 index 0000000..f4cc218 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-109.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: max-height - overflow</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> + <meta content="ahem" name="flags" /> + <meta content="The 'max-height' property can restrain the used value of height when the used value of height is greater than the declared max-height." name="assert" /> + + <style type="text/css"><![CDATA[ + div#red-parent + { + background-color: red; + max-height: 400px; + overflow: auto; + } + + div#green-child + { + color: green; + font: 200px/1 Ahem; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a wide green rectangle across the page; such green rectangle should have an active horizontal scrollbar. There should be no wide red rectangle.</p> + + <div id="red-parent"> + <div id="green-child">XXXXXXXXXXXXXXX</div> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-110-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-110-ref.xht new file mode 100644 index 0000000..769a7abb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-110-ref.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: green; + height: 200px; + margin-bottom: 208px; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a wide green rectangle across the page and <strong>no red</strong>.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-110.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-110.xht new file mode 100644 index 0000000..b3d8d172 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-110.xht
@@ -0,0 +1,50 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: max-height - space for scrollbar</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-110-ref.xht" /> + + <meta content="ahem" name="flags" /> + <meta content="Any space taken up by the scrollbars should be taken out of (subtracted from the dimensions of) the containing block formed by the element with the scrollbars." name="assert" /> + + <style type="text/css"><![CDATA[ + div#test-red-overlapped + { + background-color: red; + color: red; + font: 200px/1 Ahem; + max-height: 200px; + overflow: scroll; + } + + div#control-green-overlapping + { + background-color: green; + height: 200px; + position: relative; + top: -200px; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a wide green rectangle across the page and <strong>no red</strong>.</p> + + <div id="test-red-overlapped">X</div> + + <div id="control-green-overlapping"></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-111.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-111.xht new file mode 100644 index 0000000..52af5a5ba --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-111.xht
@@ -0,0 +1,54 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: max-height - float and overflow</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> + <meta content="ahem" name="flags" /> + <meta content="The content of the #test-red-overlapped generates an active horizontal scrollbar. The height of such horizontal scrollbar adds itself to the content making it exceed the max-height constraint of 200px. Therefore, such vertical space taken by the horizontal scrollbar must be substracted from the height of the content. An active vertical scrollbar then must be generated to provide access to the equivalent of the height of the horizontal scrollbar." name="assert" /> + + <style type="text/css"><![CDATA[ + div + { + font: 200px/1 Ahem; + overflow: auto; + width: 200px; + } + + #test-red-overlapped + { + color: red; + float: left; + max-height: 200px; + } + + #control-green-overlapping + { + clear: left; + color: green; + height: 200px; + position: relative; + top: -200px; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a green square and <strong>no red</strong>. Such green square should have active horizontal and vertical scrollbars.</p> + + <div id="test-red-overlapped">XX</div> + + <div id="control-green-overlapping">XX</div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-001.xht new file mode 100644 index 0000000..8ed97fa6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-001.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height applied to elements with 'display' set to 'table-row-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="may" /> + <meta name="assert" content="The 'max-height' property applies to elements with 'display' set to 'table-row-group'." /> + <style type="text/css"> + #test + { + background: black; + display: table-row-group; + height: 3in; + max-height: 1in; + } + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + #row + { + display: table-row; + } + #cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a box below.</p> + <!-- If 'max-height' is supported on 'table-row-group' then a square will be visible. --> + <div id="table"> + <div id="test"> + <div id="row"> + <div id="cell"> </div> + </div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-002.xht new file mode 100644 index 0000000..dcc5e9c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-002.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height applied to elements with 'display' set to 'table-header-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="may" /> + <meta name="assert" content="The 'max-height' property applies to elements with 'display' set to 'table-header-group'." /> + <style type="text/css"> + #test + { + background: black; + display: table-header-group; + height: 3in; + max-height: 1in; + } + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + #row + { + display: table-row; + } + #cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a box below.</p> + <!-- If 'max-height' is supported on 'table-header-group' then a square will be visible. --> + <div id="table"> + <div id="test"> + <div id="row"> + <div id="cell"> </div> + </div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-003.xht new file mode 100644 index 0000000..ff6b96ad --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-003.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height applied to elements with 'display' set to 'table-footer-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="may" /> + <meta name="assert" content="The 'max-height' property applies to elements with 'display' set to 'table-footer-group'." /> + <style type="text/css"> + #test + { + background: black; + display: table-footer-group; + height: 3in; + max-height: 1in; + } + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + #row + { + display: table-row; + } + #cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a box below.</p> + <!-- If 'max-height' is supported on 'table-footer-group' then a square will be visible. --> + <div id="table"> + <div id="test"> + <div id="row"> + <div id="cell"> </div> + </div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-004.xht new file mode 100644 index 0000000..4b1ceea --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-004.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height applied to elements with 'display' set to 'table-row'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property applies to elements with 'display' set to 'table-row'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + #row + { + background: black; + display: table-row; + height: 3in; + max-height: 1in; + } + #cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="row"> + <div id="cell"> </div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-005.xht new file mode 100644 index 0000000..9f76f1d0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-005.xht
@@ -0,0 +1,63 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height applied to elements with 'display' set to 'table-column-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property does not to elements with 'display' set to 'table-column-group'." /> + <style type="text/css"> + #test + { + background-color: black; + display: table-column-group; + max-height: 0in; + } + .col + { + display: table-column; + } + + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + .row + { + display: table-row; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div id="test"> + <div class="col"></div> + <div class="col"></div> + </div> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-006.xht new file mode 100644 index 0000000..6fc93e2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-006.xht
@@ -0,0 +1,56 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height applied to elements with 'display' set to 'table-column'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property does not to elements with 'display' set to 'table-column'." /> + <style type="text/css"> + .test + { + background-color: black; + display: table-column; + max-height: 0in; + } + + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + .row + { + display: table-row; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div class="test"></div> + <div class="test"></div> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-007.xht new file mode 100644 index 0000000..6d1ec071 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-007.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height applied to elements with 'display' set to 'table-cell'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="may" /> + <meta name="assert" content="The 'max-height' property applies to elements with 'display' set to 'table-cell'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + height: 3in; + max-height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a box below.</p> + <!-- If 'max-height' is supported on 'table-cell' then a square will be visible. --> + <div id="table"> + <div id="row"> + <div id="cell"> </div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-008.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-008.xht new file mode 100644 index 0000000..56b6320b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-008.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height applied to elements with 'display' set to 'inline'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-height' property does not apply to elements with 'display' set to 'inline'." /> + <style type="text/css"> + div + { + background-color: red; + color: green; + display: inline; + font: 100px/1 Ahem; + max-height: 0px; + } + </style> + </head> + <body> + + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + + <div>A</div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-009.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-009.xht new file mode 100644 index 0000000..1ff66945 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-009.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height applied to elements with 'display' set to 'block'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property applies to elements with 'display' set to 'block'." /> + <style type="text/css"> + span + { + background: black; + display: block; + height: 3in; + max-height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div> + <span></span> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-010.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-010.xht new file mode 100644 index 0000000..5789284 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-010.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height applied to elements with 'display' set to 'list-item'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property applies to elements with 'display' set to 'list-item'." /> + <style type="text/css"> + div + { + background: black; + display: list-item; + height: 3in; + margin-left: 2em; + max-height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square and a marker bullet on its left-hand side.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-012.xht new file mode 100644 index 0000000..9d12dfe --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-012.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height applied to elements with 'display' set to 'inline-block'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property applies to elements with 'display' set to 'inline-block'." /> + <style type="text/css"> + span#inline-block + { + background: black; + display: inline-block; + height: 3in; + max-height: 1in; + } + + span.block-descendant + { + display: block; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div> + <span id="inline-block"> + <span class="block-descendant">a</span> + <span class="block-descendant">b</span> + </span> + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-013.xht new file mode 100644 index 0000000..6255d25 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-013.xht
@@ -0,0 +1,50 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height applied to elements with 'display' set to 'table'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property applies to elements with 'display' set to 'table'." /> + <style type="text/css"> + #table + { + background-color: black; + display: table; + height: 3in; + max-height: 1in; + table-layout: fixed; + width: 1in; + } + + .row + { + display: table-row; + } + .cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-014.xht new file mode 100644 index 0000000..528b8e85 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-014.xht
@@ -0,0 +1,50 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height applied to elements with 'display' set to 'inline-table'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property applies to elements with 'display' set to 'inline-table'." /> + <style type="text/css"> + #table + { + background-color: black; + display: inline-table; + height: 3in; + max-height: 1in; + table-layout: fixed; + vertical-align: top; + width: 1in; + } + .row + { + display: table-row; + } + .cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-015.xht new file mode 100644 index 0000000..d328043 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-015.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height applied to elements with 'display' set to 'table-caption'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-height' property applies to elements with 'display' set to 'table-caption'." /> + <style type="text/css"> + #table + { + display: table; + } + #caption + { + background: black; + display: table-caption; + height: 3in; + max-height: 1in; + width: 1in; + } + #row + { + display: table-row; + } + #cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div id="table"> + <div id="caption"></div> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-016.xht new file mode 100644 index 0000000..0a1067ed8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-applies-to-016.xht
@@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-Height applied to none</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-12-03 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Max-Height can be declared onto 'display: none' elements but since 'display: none' declaration on an element does not generate a CSS box, then it won't have a rendering effect nor a visual formatting repercussion." /> + <style type="text/css"> + div + { + width: 100px; + height: 100px; + background: green; + } + span + { + display: none; + width: 100px; + max-height: 100px; + height: 1000px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + <div> + <span></span> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-max-width-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-max-width-001.xht new file mode 100644 index 0000000..389b936 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-max-width-001.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: max-height and max-width - float and overflow</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" /> + + <meta content="ahem" name="flags" /> + <meta content="Space taken up by the horizontal and vertical scrollbars should be taken out of (subtracted from the dimensions of) the containing block formed by the element with the scrollbars. In this test, assuming that the width of vertical scrollbar is 19px and assuming that the height of horizontal scrollbar is 19px, then the dimensions of the painted green area should be 181px by 181px. The height of horizontal scrollbar and the width of vertical scrollbar are entirely user-settable in most graphical user agents." name="assert" /> + + <style type="text/css"><![CDATA[ + div + { + color: blue; + float: left; + font: 200px/1 Ahem; + max-height: 200px; + max-width: 200px; + overflow: scroll; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a blue square with scrollbars.</p> + + <div>X</div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-001-ref.xht new file mode 100644 index 0000000..6b4e2e0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-001-ref.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + </head> + + <body> + + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + + <div><img src="support/blue96x96.png" alt="Image download support must be enabled" /><img src="support/swatch-orange.png" width="96" height="96" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-001.xht new file mode 100644 index 0000000..ab18e4b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-001.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-height percentage is based on containing block</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-percentage-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="A percentage for 'max-height' is calculated with respect to the 'height' of the generated boxes containing block." /> + <style type="text/css"> + #div1 + { + height: 2in; + position: relative; + } + div div + { + width: 1in; + } + #div2 + { + background: blue; + height: 4in; + max-height: 50%; + } + #div3 + { + background: orange; + height: 1in; + left: 1in; + position: absolute; + top: 0; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-002-ref.xht new file mode 100644 index 0000000..23584c22 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-002-ref.xht
@@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + </head> + + <body> + + <p>Test passes if the blue and orange rectangles have the <strong>same height</strong>.</p> + + <div><img src="support/blue96x96.png" width="96" height="192" alt="Image download support must be enabled" /><img src="support/swatch-orange.png" width="96" height="192" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-002.xht new file mode 100644 index 0000000..99440a6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-002.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Percentage 'max-height' with no 'height' on containing block</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-percentage-002-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="When the 'height' of the containing block (#div1) of an element (#div2) is not specified (or if such height has the value 'auto') and the element is not absolutely positioned, then a percentage value of 'max-height' on such element is treated as '0' for 'min-height' and 'none' for 'max-height'." /> + <style type="text/css"> + #div1 + { + position: relative; + } + div div + { + width: 1in; + } + #div2 + { + background: blue; + height: 2in; + max-height: 50%; + } + #div3 + { + background: orange; + height: 2in; + left: 1in; + position: absolute; + top: 0; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange rectangles have the <strong>same height</strong>.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-003.xht new file mode 100644 index 0000000..b5c8782 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-height-percentage-003.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + + <title>CSS Test: max-height percentage - inline replaced element inside an auto-height container</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <!-- + Original post: + Image % sizing interoperability + from Bogdan Brinza who deserves credit for reporting this + http://lists.w3.org/Archives/Public/www-style/2014Jun/0079.html + --> + + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" title="10.7 Minimum and maximum heights: 'min-height' and 'max-height'" /> + <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2014Jun/0079.html" title="Image % sizing interoperability" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta content="image" name="flags" /> + <meta content="This test checks that a max-height percentage is calculated with respect to the height of the generated box's containing block only if and only when such containing block's height is specified explicitly (i.e., it depends on content height; its specified height is not 'auto'). In this test, the div#child has an 'auto' height; therefore the max-height percentage is treated as 'none' and so the image should be rendered (entirely visible) inside that div#child. Note that div#parent's initial overflow value is 'visible'." name="assert" /> + + <style type="text/css"><![CDATA[ + div#parent {height: 0px;} + + img {max-height: 100%;} + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled black square.</p> + + <div id="parent"> + <div id="child"><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-001.xht new file mode 100644 index 0000000..1e2d590 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-001.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using pixels with a minimum minus one value, -1px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'max-width' property sets a minimum minus one length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: -1px; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-002.xht new file mode 100644 index 0000000..1d6815b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-002.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using pixels with a minimum value, 0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a minimum length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: 0px; + width: 96px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-003-ref.xht new file mode 100644 index 0000000..e0b9b4e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-003-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 96px; + vertical-align: top; + width: 1px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a thin vertical line.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-003.xht new file mode 100644 index 0000000..31f467d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-003.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using pixels with a minimum plus one value, 1px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a minimum plus one length value in pixels." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + max-width: 1px; + width: 96px; + } + </style> + </head> + <body> + <p>Test passes if there is a thin vertical line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-004.xht new file mode 100644 index 0000000..cf95785 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-004.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using pixels with a negative zero value, -0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a negative zero length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: -0px; + width: 96px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-005.xht new file mode 100644 index 0000000..3366269 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-005.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using pixels with a positive zero value, +0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive zero length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: +0px; + width: 96px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-006-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-006-ref.xht new file mode 100644 index 0000000..36fdc5b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-006-ref.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div {margin-bottom: 4px;} + + img {vertical-align: top;} + ]]></style> + + </head> + + <body> + + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-006.xht new file mode 100644 index 0000000..76527e1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-006.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using pixels with a nominal value, 96px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a nominal length value in pixels." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + max-width: 96px; + width: 192px; + } + #div2 + { + border-left: 96px solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-007.xht new file mode 100644 index 0000000..3a578769 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-007.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using pixels with a positive nominal value, +96px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive nominal length value in pixels." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + max-width: +96px; + width: 192px; + } + #div2 + { + border-left: 96px solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-012.xht new file mode 100644 index 0000000..5a4b873d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-012.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using points with a minimum minus one value, -1pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'max-width' property sets a minimum minus one length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: -1pt; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-013.xht new file mode 100644 index 0000000..f022b42 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-013.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using points with a minimum value, 0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a minimum length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: 0pt; + width: 72pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-014.xht new file mode 100644 index 0000000..876e846 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-014.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using points with a minimum plus one value, 1pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a minimum plus one length value in points." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + max-width: 1pt; + width: 72pt; + } + </style> + </head> + <body> + <p>Test passes if there is a thin vertical line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-015.xht new file mode 100644 index 0000000..afdab88 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-015.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using points with a negative zero value, -0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a negative zero length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: -0pt; + width: 72pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-016.xht new file mode 100644 index 0000000..8360b5d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-016.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using points with a positive zero value, +0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive zero length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: +0pt; + width: 72pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-017.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-017.xht new file mode 100644 index 0000000..0379323 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-017.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using points with a nominal value, 72pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a nominal length value in points." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + max-width: 72pt; + width: 144pt; + } + #div2 + { + border-left: 72pt solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-018.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-018.xht new file mode 100644 index 0000000..1979f60 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-018.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using points with a positive nominal value, +72pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive nominal length value in points." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + max-width: +72pt; + width: 144pt; + } + #div2 + { + border-left: 72pt solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-023.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-023.xht new file mode 100644 index 0000000..be4015cf --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-023.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using picas with a minimum minus one value, -1pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'max-width' property sets a minimum minus one length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: -1pc; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-024.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-024.xht new file mode 100644 index 0000000..c7630a1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-024.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using picas with a minimum value, 0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a minimum length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: 0pc; + width: 6pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-025-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-025-ref.xht new file mode 100644 index 0000000..cc33f977 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-025-ref.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img {vertical-align: top;} + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a vertical black bar.</p> + + <div><img src="support/black96x96.png" width="16" height="96" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-025.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-025.xht new file mode 100644 index 0000000..83dd5d3ca --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-025.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using picas with a minimum plus one value, 1pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-025-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a minimum plus one length value in picas." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + max-width: 1pc; + width: 6pc; + } + </style> + </head> + <body> + <p>Test passes if there is a vertical black bar.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-026.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-026.xht new file mode 100644 index 0000000..c45db06 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-026.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using picas with a negative zero value, -0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a negative zero length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: -0pc; + width: 6pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-027.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-027.xht new file mode 100644 index 0000000..11b89bf --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-027.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using picas with a positive zero value, +0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive zero length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: +0pc; + width: 6pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-028.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-028.xht new file mode 100644 index 0000000..0c20bd8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-028.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using picas with a nominal value, 6pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a nominal length value in picas." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + max-width: 6pc; + width: 12pc; + } + #div2 + { + border-left: 6pc solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-029.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-029.xht new file mode 100644 index 0000000..c2b503a8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-029.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using picas with a positive nominal value, +6pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive nominal length value in picas." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + max-width: +6pc; + width: 12pc; + } + #div2 + { + border-left: 6pc solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-034.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-034.xht new file mode 100644 index 0000000..28e77988 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-034.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using centimeters with a minimum minus one value, -1cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'max-width' property sets a minimum minus one length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: -1cm; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-035.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-035.xht new file mode 100644 index 0000000..536fcae --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-035.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using centimeters with a minimum value, 0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a minimum length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: 0cm; + width: 2.54cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-036-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-036-ref.xht new file mode 100644 index 0000000..7d08e03 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-036-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 96px; + vertical-align: top; + width: 1cm; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a black rectangle.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-036.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-036.xht new file mode 100644 index 0000000..9a9a781 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-036.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using centimeters with a minimum plus one value, 1cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-036-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a minimum plus one length value in centimeters." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + max-width: 1cm; + width: 5.08cm; + } + </style> + </head> + <body> + <p>Test passes if there is a black rectangle.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-037.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-037.xht new file mode 100644 index 0000000..6ebfb82 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-037.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using centimeters with a negative zero value, -0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a negative zero length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: -0cm; + width: 2.54cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-038.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-038.xht new file mode 100644 index 0000000..699d162 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-038.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using centimeters with a positive zero value, +0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive zero length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: +0cm; + width: 2.54cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-039.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-039.xht new file mode 100644 index 0000000..692810f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-039.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using centimeters with a nominal value, 2.54cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a nominal length value in centimeters." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + max-width: 2.54cm; + width: 5.08cm; + } + #div2 + { + border-left: 2.54cm solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-040.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-040.xht new file mode 100644 index 0000000..ea23bec --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-040.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using centimeters with a positive nominal value, +2.54cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive nominal length value in centimeters." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + max-width: +2.54cm; + width: 5.08cm; + } + #div2 + { + border-left: 2.54cm solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-045.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-045.xht new file mode 100644 index 0000000..c4d178d6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-045.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using millimeters with a minimum minus one value, -1mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'max-width' property sets a minimum minus one length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: -1mm; + width: 0mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-046.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-046.xht new file mode 100644 index 0000000..8489cd3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-046.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using millimeters with a minimum value, 0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a minimum length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: 0mm; + width: 25.4mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-047-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-047-ref.xht new file mode 100644 index 0000000..e1a60e0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-047-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 96px; + vertical-align: top; + width: 1mm; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a vertical line.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-047.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-047.xht new file mode 100644 index 0000000..42077eff --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-047.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using millimeters with a minimum plus one value, 1mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-047-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a minimum plus one length value in millimeters." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + max-width: 1mm; + width: 25.4mm; + } + </style> + </head> + <body> + <p>Test passes if there is a vertical line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-048.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-048.xht new file mode 100644 index 0000000..e6b3a542 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-048.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using millimeters with a negative zero value, -0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a negative zero length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: -0mm; + width: 25.4mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-049.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-049.xht new file mode 100644 index 0000000..24f3476 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-049.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using millimeters with a positive zero value, +0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive zero length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: +0mm; + width: 25.4mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-050.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-050.xht new file mode 100644 index 0000000..8e5f9e2d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-050.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using millimeters with a nominal value, 25.4mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a nominal length value in millimeters." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + max-width: 25.4mm; + width: 50.8mm; + } + #div2 + { + border-left: 25.4mm solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-051.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-051.xht new file mode 100644 index 0000000..2385c1f8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-051.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using millimeters with a positive nominal value, +25.4mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive nominal length value in millimeters." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + max-width: +25.4mm; + width: 50.8mm; + } + #div2 + { + border-left: 25.4mm solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-056.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-056.xht new file mode 100644 index 0000000..89c474c5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-056.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using inches with a minimum minus one value, -1in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'max-width' property sets a minimum minus one length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: -1in; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-057.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-057.xht new file mode 100644 index 0000000..749ce07 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-057.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using inches with a minimum value, 0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a minimum length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: 0in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-058.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-058.xht new file mode 100644 index 0000000..bb09103d3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-058.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using inches with a minimum plus one value, 1in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a minimum plus one length value in inches." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + max-width: 1in; + width: 2in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-059.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-059.xht new file mode 100644 index 0000000..37c8668 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-059.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using inches with a negative zero value, -0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a negative zero length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: -0in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-060.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-060.xht new file mode 100644 index 0000000..0056dfa --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-060.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using inches with a positive zero value, +0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive zero length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: +0in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-061-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-061-ref.xht new file mode 100644 index 0000000..560d23ae --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-061-ref.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div {margin-bottom: 4px;} + + img {vertical-align: top;} + ]]></style> + + </head> + + <body> + + <p>Test passes if 2 black rectangles have the <strong>same width</strong>.</p> + + <div><img src="support/black96x96.png" width="288" height="96" alt="Image download support must be enabled" /></div> + + <div><img src="support/black96x96.png" width="288" height="96" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-061.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-061.xht new file mode 100644 index 0000000..3656e2f2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-061.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using inches with a nominal value, 3in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-061-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a nominal length value in inches." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + max-width: 3in; + width: 6in; + } + #div2 + { + border-left: 3in solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-062.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-062.xht new file mode 100644 index 0000000..e1d94348 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-062.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using inches with a positive nominal value, +3in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-061-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive nominal length value in inches." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + max-width: +3in; + width: 6in; + } + #div2 + { + border-left: 3in solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-067.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-067.xht new file mode 100644 index 0000000..ccb69789 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-067.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using 'em' units with a minimum minus one value, -1em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem invalid" /> + <meta name="assert" content="The 'max-width' property sets a minimum minus one length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + max-width: -1em; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-068.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-068.xht new file mode 100644 index 0000000..fce7c93 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-068.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using 'em' units with a minimum value, 0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-width' property sets a minimum length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + max-width: 0em; + width: 4.8em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-069-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-069-ref.xht new file mode 100644 index 0000000..bdf7c30 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-069-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + height: 96px; + vertical-align: top; + width: 20px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a vertical black stripe.</p> + + <div><img src="support/black96x96.png" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-069.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-069.xht new file mode 100644 index 0000000..ce40caa --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-069.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using 'em' units with a minimum plus one value, 1em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-069-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-width' property sets a minimum plus one length value in 'em' units." /> + <style type="text/css"> + div + { + background: black; + font: 20px/1 Ahem; + height: 1in; + max-width: 1em; + width: 4.8em; + } + </style> + </head> + <body> + <p>Test passes if there is a vertical black stripe.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-070.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-070.xht new file mode 100644 index 0000000..62fbc2bf --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-070.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using 'em' units with a negative zero value, -0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-width' property sets a negative zero length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + max-width: -0em; + width: 4.8em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-071.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-071.xht new file mode 100644 index 0000000..d4e2f38 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-071.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using 'em' units with a positive zero value, +0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-width' property sets a positive zero length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + max-width: +0em; + width: 4.8em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-072-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-072-ref.xht new file mode 100644 index 0000000..b6301113 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-072-ref.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div {margin-bottom: 4px;} + + img {vertical-align: top;} + ]]></style> + + </head> + + <body> + + <p>Test passes if 2 black rectangles have the <strong>same width</strong>.</p> + + <div><img src="support/black96x96.png" width="120" height="96" alt="Image download support must be enabled" /></div> + + <div><img src="support/black96x96.png" width="120" height="96" alt="Image download support must be enabled" /></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-072.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-072.xht new file mode 100644 index 0000000..04cd0cd --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-072.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using 'em' units with a nominal value, 6em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-072-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-width' property sets a nominal length value in 'em' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + } + #div1 + { + background: black; + height: 1in; + max-width: 6em; + width: 12em; + } + #div2 + { + border-left: 6em solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-073.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-073.xht new file mode 100644 index 0000000..2f3df10 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-073.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using 'em' units with a positive nominal value, +6em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-072-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-width' property sets a positive nominal length value in 'em' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + } + #div1 + { + background: black; + height: 1in; + max-width: +6em; + width: 12em; + } + #div2 + { + border-left: 6em solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-078.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-078.xht new file mode 100644 index 0000000..f94e2c1c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-078.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using 'ex' units with a minimum minus one value, -1ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem invalid" /> + <meta name="assert" content="The 'max-width' property sets a minimum minus one length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + max-width: -1ex; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-079.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-079.xht new file mode 100644 index 0000000..77b9a8ce --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-079.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using 'ex' units with a minimum value, 0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-width' property sets a minimum length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + max-width: 0ex; + width: 6ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-080.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-080.xht new file mode 100644 index 0000000..10af7e1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-080.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using 'ex' units with a minimum plus one value, 1ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-025-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-width' property sets a minimum plus one length value in 'ex' units." /> + <style type="text/css"> + div + { + background: black; + font: 20px/1 Ahem; + height: 1in; + max-width: 1ex; + width: 6ex; + } + </style> + </head> + <body> + <p>Test passes if there is a vertical black bar.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-081.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-081.xht new file mode 100644 index 0000000..2638f3e4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-081.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using 'ex' units with a negative zero value, -0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-width' property sets a negative zero length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + max-width: -0ex; + width: 6ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-082.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-082.xht new file mode 100644 index 0000000..88ebc01 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-082.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using 'ex' units with a positive zero value, +0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-width' property sets a positive zero length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + max-width: +0ex; + width: 6ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-083.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-083.xht new file mode 100644 index 0000000..1ef5830 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-083.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using 'ex' units with a nominal value, 6ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-width' property sets a nominal length value in 'ex' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + } + #div1 + { + background: black; + height: 1in; + max-width: 6ex; + width: 12ex; + } + #div2 + { + border-left: 96px solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-084.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-084.xht new file mode 100644 index 0000000..2958d00f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-084.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using 'ex' units with a positive nominal value, +6ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-width' property sets a positive nominal length value in 'ex' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + } + #div1 + { + background: black; + height: 1in; + max-width: +6ex; + width: 12ex; + } + #div2 + { + border-left: 96px solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-089.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-089.xht new file mode 100644 index 0000000..9cf0794 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-089.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using percentages with a minimum minus one value, -1%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'max-width' property sets a minimum minus one length value in percentages." /> + <style type="text/css"> + div + { + width: 1in; + } + div div + { + background: black; + height: 1in; + max-width: -1%; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-090.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-090.xht new file mode 100644 index 0000000..0688b80 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-090.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using percentages with a minimum value, 0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a minimum length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + div div + { + background: red; + height: 1in; + max-width: 0%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-091.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-091.xht new file mode 100644 index 0000000..11849cc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-091.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using percentages with a minimum plus one value, 1%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a minimum plus one length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 100px; + } + div div + { + background: black; + height: 1in; + max-width: 1%; + } + </style> + </head> + <body> + <p>Test passes if there is a thin vertical line.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-092.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-092.xht new file mode 100644 index 0000000..fb2ccfc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-092.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using percentages with a negative zero value, -0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a negative zero length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + div div + { + background: red; + height: 1in; + max-width: -0%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-093.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-093.xht new file mode 100644 index 0000000..b55c398 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-093.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using percentages with a positive zero value, +0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive zero length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + div div + { + background: red; + height: 1in; + max-width: +0%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-094.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-094.xht new file mode 100644 index 0000000..e0bb3c7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-094.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using percentages with a nominal value, 100%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a nominal length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + #div2 + { + background: black; + height: 1in; + max-width: 100%; + } + #div3 + { + border-left: 1in solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-095.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-095.xht new file mode 100644 index 0000000..cda033f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-095.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width using percentages with a positive nominal value, +100%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive nominal length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + #div2 + { + background: black; + height: 1in; + max-width: +100%; + } + #div3 + { + border-left: 1in solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-100.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-100.xht new file mode 100644 index 0000000..eff2634 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-100.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width with a negative zero value and no units, -0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a negative zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: -0; + width: 96px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-101.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-101.xht new file mode 100644 index 0000000..b781f12 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-101.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width with a zero value and no units, 0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: 0; + width: 96px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-102.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-102.xht new file mode 100644 index 0000000..e084959 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-102.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width with a positive zero value and no units, +0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property sets a positive zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + max-width: +0; + width: 96px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-103.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-103.xht new file mode 100644 index 0000000..481b4a2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-103.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width set to a value of 'none'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property applies a value of 'none'." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + max-width: 0px; + max-width: none; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-104.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-104.xht new file mode 100644 index 0000000..30f2518 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-104.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width set to 'inherit'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-29 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property set to 'inherit' properly inherits the max-width value of the parent." /> + <style type="text/css"> + #div1 + { + max-width: 1px; + } + div div + { + background: black; + height: 1in; + max-width: inherit; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a thin vertical line.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-105-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-105-ref.xht new file mode 100644 index 0000000..4d525a7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-105-ref.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: green; + height: 200px; + width: 200px; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a green square and <strong>no red</strong>.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-105.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-105.xht new file mode 100644 index 0000000..58546998 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-105.xht
@@ -0,0 +1,51 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: max-width - height and overflow</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> + <link rel="match" href="max-width-105-ref.xht" /> + + <meta content="ahem" name="flags" /> + <meta content="'max-width' specifies a fixed maximum used width. If the used width is greater than max-width, then the computed value of max-width is used as the computed value for width." name="assert" /> + + <style type="text/css"><![CDATA[ + div#test-red-overlapped + { + color: red; + font: 200px/1 Ahem; + height: 200px; + max-width: 200px; + overflow: auto; + position: absolute; + } + + div#control-green-overlapping + { + background-color: green; + height: 200px; + position: absolute; + width: 200px; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a green square and <strong>no red</strong>.</p> + + <div id="test-red-overlapped">XX XX</div> + + <div id="control-green-overlapping"></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-106.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-106.xht new file mode 100644 index 0000000..160cade --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-106.xht
@@ -0,0 +1,50 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: max-width - float and overflow</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-105-ref.xht" /> + + <meta content="ahem" name="flags" /> + <meta name="assert" content="'max-width' specifies a fixed maximum used width. If the used width is greater than max-width, then the computed value of max-width is used as the computed value for width. A floated box should not become wider than its declared max-width." /> + + <style type="text/css"><![CDATA[ + div#test-red-overlapped + { + color: red; + float: left; + font: 64px/1 Ahem; + max-width: 100px; + overflow: scroll; + } + + div#control-green-overlapping + { + background-color: green; + height: 200px; + position: absolute; + width: 200px; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a green square and <strong>no red</strong>.</p> + + <div id="control-green-overlapping"></div> + + <div id="test-red-overlapped">XXXXXXXXXXXX</div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-107-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-107-ref.xht new file mode 100644 index 0000000..4570a69e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-107-ref.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: green; + height: 200px; + width: 200px; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a green square and <strong>no red</strong>. Such green square should not have scrollbar(s).</p> + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-107.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-107.xht new file mode 100644 index 0000000..e321880 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-107.xht
@@ -0,0 +1,46 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: max-width - height and overflow</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> + <link rel="match" href="max-width-107-ref.xht" /> + + <meta content="ahem" name="flags" /> + <meta content="'max-width' specifies a fixed maximum used width. If the used width is greater than max-width, then the computed value of max-width is used as the computed value for width." name="assert" /> + + <style type="text/css"><![CDATA[ + div + { + font: 200px/1 Ahem; + height: 200px; + max-width: 200px; + overflow: auto; + position: absolute; + } + + div#test-red-overlapped {color: red;} + + div#control-green-overlapping {color: green;} + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a green square and <strong>no red</strong>. Such green square should not have scrollbar(s).</p> + + <div id="test-red-overlapped">XX XX</div> + + <div id="control-green-overlapping">X</div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-108.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-108.xht new file mode 100644 index 0000000..88210e4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-108.xht
@@ -0,0 +1,53 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: max-width - float and overflow</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> + <meta content="ahem" name="flags" /> + <meta name="assert" content="'max-width' specifies a fixed maximum used width. If the used width is greater than max-width, then the computed value of max-width is used as the computed value for width." /> + + <style type="text/css"><![CDATA[ + div + { + font: 200px/1 Ahem; + height: 200px; + max-width: 200px; + overflow: auto; + } + + #test-red-overlapped + { + color: red; + float: left; + } + + #control-green-overlapping + { + clear: left; + color: green; + position: relative; + top: -200px; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a green square and <strong>no red</strong>. Such green square should have active horizontal and vertical scrollbars.</p> + + <div id="test-red-overlapped">XX</div> + + <div id="control-green-overlapping">XX</div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-110.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-110.xht new file mode 100644 index 0000000..2b96eab --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-110.xht
@@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: max-width - float and inline replaced element</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="James Hopkins" href="http://idreamincode.co.uk/css21testsuite" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" title="10.4 Minimum and maximum widths: 'min-width' and 'max-width'" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" title="10.3.2 Inline, replaced elements" /> + <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> + + <meta content="image" name="flags" /> + <meta content="If 'height' and 'width' both have computed values of 'auto' and the element also has an intrinsic width, then such intrinsic width is the used value of 'width'. If 'width' of a floating, non-replaced element computes to 'auto' but its own child uses a constrained length resulting from a max-width declaration, then such constrained length will define the preferred width in 'shrink-to-fit' width calculation." name="assert" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: red; + float: left; + } + + img + { + height: auto; + max-width: 100px; + vertical-align: bottom; + width: auto; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + + <div><img src="support/green200x200.png" alt="Image download support must be enabled." /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-001.xht new file mode 100644 index 0000000..9967b50a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-001.xht
@@ -0,0 +1,57 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width applied to elements with 'display' set to 'table-row-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property does not apply to elements with 'display' set to 'table-row-group'." /> + <style type="text/css"> + #test + { + background-color: black; + display: table-row-group; + max-width: 0in; + } + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + .row + { + display: table-row; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div id="test"> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-002.xht new file mode 100644 index 0000000..a811f11 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-002.xht
@@ -0,0 +1,57 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width applied to elements with 'display' set to 'table-header-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property does not apply to elements with 'display' set to 'table-header-group'." /> + <style type="text/css"> + #test + { + background-color: black; + display: table-header-group; + max-width: 0in; + } + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + .row + { + display: table-row; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div id="test"> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-003.xht new file mode 100644 index 0000000..ce7c15a3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-003.xht
@@ -0,0 +1,57 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width applied to elements with 'display' set to 'table-footer-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property does not apply to elements with 'display' set to 'table-footer-group'." /> + <style type="text/css"> + #test + { + background-color: black; + display: table-footer-group; + max-width: 0in; + } + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + .row + { + display: table-row; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div id="test"> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-004.xht new file mode 100644 index 0000000..792cbe3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-004.xht
@@ -0,0 +1,49 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width applied to elements with 'display' set to 'table-row'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property does not apply to elements with 'display' set to 'table-row'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + .row + { + background-color: black; + display: table-row; + max-width: 0in; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-005.xht new file mode 100644 index 0000000..0d6dea6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-005.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width applied to elements with 'display' set to 'table-column-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../../reference/pass_if_square_96px_black.html"/> + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property applies to elements with 'display' set to 'table-column-group'." /> + <style type="text/css"> + #test + { + display: table-column-group; + max-width: 1in; + width: 3in; + } + #table + { + display: table; + table-layout: fixed; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + height: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="test"></div> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-006.xht new file mode 100644 index 0000000..a150599f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-006.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width applied to elements with 'display' set to 'table-column'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../../reference/pass_if_square_96px_black.html"/> + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property applies to elements with 'display' set to 'table-column'." /> + <style type="text/css"> + #test + { + display: table-column; + max-width: 1in; + width: 3in; + } + #table + { + display: table; + table-layout: fixed; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + height: 1in; + + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="test"></div> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-007.xht new file mode 100644 index 0000000..7a6c043 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-007.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width applied to elements with 'display' set to 'table-cell'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../../reference/pass_if_square_96px_black.html"/> + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property applies to elements with 'display' set to 'table-cell'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + height: 1in; + max-width: 1in; + width: 3in; + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-008.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-008.xht new file mode 100644 index 0000000..d0e86cc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-008.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width applied to elements with 'display' set to 'inline'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'max-width' property does not apply to elements with 'display' set to 'inline'." /> + <style type="text/css"> + div + { + background-color: red; + color: green; + display: inline; + font: 100px/1 Ahem; + max-width: 0px; + } + </style> + </head> + <body> + + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + + <div>A</div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-009.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-009.xht new file mode 100644 index 0000000..de0b5501 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-009.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width applied to elements with 'display' set to 'block'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property applies to elements with 'display' set to 'block'." /> + <style type="text/css"> + span + { + background: black; + display: block; + height: 1in; + max-width: 1in; + width: 3in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div> + <span></span> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-010.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-010.xht new file mode 100644 index 0000000..b8fd362a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-010.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width applied to elements with 'display' set to 'list-item'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property applies to elements with 'display' set to 'list-item'." /> + <style type="text/css"> + div + { + background: black; + display: list-item; + height: 1in; + margin-left: 2em; + max-width: 1in; + width: 3in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square and a marker bullet on its left-hand side.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-012.xht new file mode 100644 index 0000000..3869f9f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-012.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width applied to elements with 'display' set to 'inline-block'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property applies to elements with 'display' set to 'inline-block'." /> + <style type="text/css"> + span#inline-block + { + background: black; + display: inline-block; + width: 3in; + max-width: 1in; + } + + span.block-descendant + { + display: block; + height: 0.5in; + } + </style> + </head> + <body> + + <p>Test passes if there is a filled black square.</p> + + <div> + <span id="inline-block"> + <span class="block-descendant">a</span> + <span class="block-descendant">b</span> + </span> + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-013.xht new file mode 100644 index 0000000..0f008ef --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-013.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width applied to elements with 'display' set to 'table'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../../reference/pass_if_square_96px_black.html"/> + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property applies to elements with 'display' set to 'table'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + max-width: 1in; + width: 3in; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + height: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-014.xht new file mode 100644 index 0000000..08e49a0f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-014.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width applied to elements with 'display' set to 'inline-table'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../../reference/pass_if_square_96px_black.html"/> + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property applies to elements with 'display' set to 'inline-table'." /> + <style type="text/css"> + #table + { + display: inline-table; + table-layout: fixed; + max-width: 1in; + width: 3in; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + height: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-015.xht new file mode 100644 index 0000000..fa2fbfb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-015.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width applied to elements with 'display' set to 'table-caption'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-max-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'max-width' property applies to elements with 'display' set to 'table-caption'." /> + <style type="text/css"> + #table + { + display: table; + } + #caption + { + background: black; + display: table-caption; + height: 1in; + max-width: 1in; + width: 3in; + } + #row + { + display: table-row; + } + #cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div id="table"> + <div id="caption"></div> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-016.xht new file mode 100644 index 0000000..6b82abd --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-applies-to-016.xht
@@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-Width applied to none</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-12-03 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Max-Width can be declared onto 'display: none' elements but since 'display: none' declaration on an element does not generate a CSS box, then it won't have a rendering effect nor a visual formatting repercussion." /> + <style type="text/css"> + div + { + width: 100px; + height: 100px; + background: green; + } + span + { + display: none; + width: 1000px; + max-width: 100px; + height: 100px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + <div> + <span></span> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-percentage-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-percentage-001-ref.xht new file mode 100644 index 0000000..e9ff552 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-percentage-001-ref.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img {vertical-align: top;} + ]]></style> + + </head> + + <body> + + <p>Test passes if the blue and orange squares have the <strong>same width</strong>.</p> + + <div><img src="support/blue15x15.png" width="96" height="96" alt="Image download support must be enabled" /><br /> + <img src="support/swatch-orange.png" width="96" height="96" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-percentage-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-percentage-001.xht new file mode 100644 index 0000000..ad814c9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-percentage-001.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Using percentages with 'max-width' relative to the containing block</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-percentage-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The percentage is calculated in relation to the containing block." /> + <style type="text/css"> + div div + { + height: 1in; + } + #div1 + { + width: 2in; + } + #div2 + { + background-color: blue; + max-width: 50%; + width: 4in; + } + #div3 + { + background: orange; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same width</strong>.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-percentage-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-percentage-002.xht new file mode 100644 index 0000000..6a4c87a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-percentage-002.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Percentage based value for 'max-width' contained by box with a negative 'width'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="If the containing block's width is negative, the used value is zero." /> + <style type="text/css"> + #div1 + { + position: relative; + width: 100px; + } + #div2 + { + left: 120px; + position: absolute; + right: 120px; + width: auto; + } + #div3 + { + background-color: red; + height: 1in; + max-width: 200%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div id="div2"> + <div id="div3"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-percentage-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-percentage-003.xht new file mode 100644 index 0000000..ccf0fd9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/max-width-percentage-003.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Max-width in constrained situation</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <meta name="flags" content="" /> + <meta name="assert" content="If the containing block's width depends on this element's width, then the resulting layout is undefined." /> + <style type="text/css"> + #div1 + { + float: left; + } + div div + { + background-color: green; + max-width: 50%; + width: 2in; + } + </style> + </head> + <body> + <p>Test passes if there is anything displayed below.</p> + <div id="div1"> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-001.xht new file mode 100644 index 0000000..20ccdb4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-001.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using pixels with a minimum minus one value, -1px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'min-height' property sets a minimum minus one length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: -1px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-002.xht new file mode 100644 index 0000000..563ad82f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-002.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using pixels with a minimum value, 0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a minimum length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: 0px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-003.xht new file mode 100644 index 0000000..9b45c3d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-003.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using pixels with a minimum plus one value, 1px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a minimum plus one length value in pixels." /> + <style type="text/css"> + div + { + background: black; + min-height: 1px; + } + </style> + </head> + <body> + <p>Test passes if there is a thin horizontal line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-004.xht new file mode 100644 index 0000000..e58553b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-004.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using pixels with a negative zero value, -0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a negative zero length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: -0px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-005.xht new file mode 100644 index 0000000..42ee492 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-005.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using pixels with a positive zero value, +0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive zero length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: +0px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-006.xht new file mode 100644 index 0000000..dddac60 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-006.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using pixels with a nominal value, 96px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a nominal length value in pixels." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + min-height: 96px; + width: 1in; + } + #div3 + { + border-top: 96px solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-007.xht new file mode 100644 index 0000000..82fb43c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-007.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using pixels with a positive nominal value, +96px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive nominal length value in pixels." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + min-height: +96px; + width: 1in; + } + #div3 + { + border-top: 96px solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-012.xht new file mode 100644 index 0000000..0d49b8ab --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-012.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using points with a minimum minus one value, -1pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'min-height' property sets a minimum minus one length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: -1pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-013.xht new file mode 100644 index 0000000..d673629 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-013.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using points with a minimum value, 0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a minimum length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: 0pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-014.xht new file mode 100644 index 0000000..2e07d7f1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-014.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using points with a minimum plus one value, 1pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a minimum plus one length value in points." /> + <style type="text/css"> + div + { + background: black; + min-height: 1pt; + } + </style> + </head> + <body> + <p>Test passes if there is a thin horizontal line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-015.xht new file mode 100644 index 0000000..a6a87c31 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-015.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using points with a negative zero value, -0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a negative zero length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: -0pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-016.xht new file mode 100644 index 0000000..e924cfb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-016.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using points with a positive zero value, +0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive zero length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: +0pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-017.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-017.xht new file mode 100644 index 0000000..8d86807a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-017.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using points with a nominal value, 72pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a nominal length value in points." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + min-height: 72pt; + width: 1in; + } + #div3 + { + border-top: 72pt solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-018.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-018.xht new file mode 100644 index 0000000..eaa8dfd9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-018.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using points with a positive nominal value, +72pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive nominal length value in points." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + min-height: +72pt; + width: 1in; + } + #div3 + { + border-top: 72pt solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-023.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-023.xht new file mode 100644 index 0000000..3b319ad --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-023.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using picas with a minimum minus one value, -1pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'min-height' property sets a minimum minus one length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: -1pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-024.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-024.xht new file mode 100644 index 0000000..3558e73 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-024.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using picas with a minimum value, 0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a minimum length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: 0pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-025.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-025.xht new file mode 100644 index 0000000..1b929ac0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-025.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using picas with a minimum plus one value, 1pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-025-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a minimum plus one length value in picas." /> + <style type="text/css"> + div#red-overlapped + { + background-color: red; + height: 1pc; + } + + div#black-overlapping + { + background-color: black; + bottom: 1pc; + height: 0pc; + min-height: 1pc; + position: relative; + } + </style> + </head> + <body> + <p>Test passes if there is a wide black bar and <strong>no red</strong>.</p> + + <div id="red-overlapped"></div> + + <div id="black-overlapping"></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-026.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-026.xht new file mode 100644 index 0000000..14cf9566 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-026.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using picas with a negative zero value, -0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a negative zero length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: -0pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-027.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-027.xht new file mode 100644 index 0000000..5e38759 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-027.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using picas with a positive zero value, +0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive zero length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: +0pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-028.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-028.xht new file mode 100644 index 0000000..0b9291d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-028.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using picas with a nominal value, 6pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a nominal length value in picas." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + min-height: 6pc; + width: 1in; + } + #div3 + { + border-top: 6pc solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-029.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-029.xht new file mode 100644 index 0000000..da44afc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-029.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using picas with a positive nominal value, +6pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive nominal length value in picas." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + min-height: +6pc; + width: 1in; + } + #div3 + { + border-top: 6pc solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-034.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-034.xht new file mode 100644 index 0000000..b52bd71 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-034.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using centimeters with a minimum minus one value, -1cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'min-height' property sets a minimum minus one length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: -1cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-035.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-035.xht new file mode 100644 index 0000000..2194960d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-035.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using centimeters with a minimum value, 0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a minimum length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: 0cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-036.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-036.xht new file mode 100644 index 0000000..e0e8abb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-036.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using centimeters with a minimum plus one value, 1cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-036-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a minimum plus one length value in centimeters." /> + <style type="text/css"> + div#red-overlapped + { + background-color: red; + height: 1cm; + } + + div#black-overlapping + { + background-color: black; + bottom: 1cm; + height: 0cm; + min-height: 1cm; + position: relative; + } + </style> + </head> + <body> + <p>Test passes if there is a thick black stripe and <strong>no red</strong>.</p> + + <div id="red-overlapped"></div> + + <div id="black-overlapping"></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-037.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-037.xht new file mode 100644 index 0000000..7f7a647 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-037.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using centimeters with a negative zero value, -0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a negative zero length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: -0cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-038.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-038.xht new file mode 100644 index 0000000..74372cd --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-038.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using centimeters with a positive zero value, +0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive zero length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: +0cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-039.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-039.xht new file mode 100644 index 0000000..304fad1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-039.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using centimeters with a nominal value, 2.54cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a nominal length value in centimeters." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + min-height: 2.54cm; + width: 1in; + } + #div3 + { + border-top: 2.54cm solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-040.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-040.xht new file mode 100644 index 0000000..769f3ab7c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-040.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using centimeters with a positive nominal value, +2.54cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive nominal length value in centimeters." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + min-height: +2.54cm; + width: 1in; + } + #div3 + { + border-top: 2.54cm solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-045.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-045.xht new file mode 100644 index 0000000..2290f69 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-045.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using millimeters with a minimum minus one value, -1mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'min-height' property sets a minimum minus one length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: -1mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-046.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-046.xht new file mode 100644 index 0000000..086d524 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-046.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using millimeters with a minimum value, 0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a minimum length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: 0mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-047.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-047.xht new file mode 100644 index 0000000..3a881aeb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-047.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using millimeters with a minimum plus one value, 1mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-047-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a minimum plus one length value in millimeters." /> + <style type="text/css"> + div#red-overlapped + { + background-color: red; + height: 1mm; + } + + div#black-overlapping + { + background-color: black; + bottom: 1mm; + height: 0mm; + min-height: 1mm; + position: relative; + } + </style> + </head> + <body> + <p>Test passes if there is a black horizontal line and <strong>no red</strong>.</p> + + <div id="red-overlapped"></div> + + <div id="black-overlapping"></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-048.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-048.xht new file mode 100644 index 0000000..8676487 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-048.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using millimeters with a negative zero value, -0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a negative zero length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: -0mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-049.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-049.xht new file mode 100644 index 0000000..1e0d793 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-049.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using millimeters with a positive zero value, +0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive zero length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: +0mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-050.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-050.xht new file mode 100644 index 0000000..8a65e075 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-050.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using millimeters with a nominal value, 25.4mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a nominal length value in millimeters." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + min-height: 25.4mm; + width: 1in; + } + #div3 + { + border-top: 25.4mm solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-051.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-051.xht new file mode 100644 index 0000000..db4bfb92 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-051.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using millimeters with a positive nominal value, +25.4mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive nominal length value in millimeters." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + min-height: +25.4mm; + width: 1in; + } + #div3 + { + border-top: 25.4mm solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-056.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-056.xht new file mode 100644 index 0000000..5a3673c5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-056.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using inches with a minimum minus one value, -1in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'min-height' property sets a minimum minus one length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: -1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-057.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-057.xht new file mode 100644 index 0000000..77de3a7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-057.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using inches with a minimum value, 0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a minimum length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: 0in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-058.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-058.xht new file mode 100644 index 0000000..f4021a2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-058.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using inches with a minimum plus one value, 1in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-058-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a minimum plus one length value in inches." /> + <style type="text/css"> + div#red-overlapped + { + background-color: red; + height: 1in; + } + + div#black-overlapping + { + background-color: black; + bottom: 1in; + height: 0in; + min-height: 1in; + position: relative; + } + </style> + </head> + <body> + + <p>Test passes if there is a filled black rectangle and <strong>no red</strong>.</p> + + <div id="red-overlapped"></div> + + <div id="black-overlapping"></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-059.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-059.xht new file mode 100644 index 0000000..e749fd18 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-059.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using inches with a negative zero value, -0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a negative zero length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: -0in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-060.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-060.xht new file mode 100644 index 0000000..2733fa1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-060.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using inches with a positive zero value, +0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive zero length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: +0in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-061.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-061.xht new file mode 100644 index 0000000..7226847 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-061.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using inches with a nominal value, 3in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-061-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a nominal length value in inches." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + min-height: 3in; + width: 1in; + } + #div3 + { + border-top: 3in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-062.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-062.xht new file mode 100644 index 0000000..da82231e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-062.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using inches with a positive nominal value, +3in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-061-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive nominal length value in inches." /> + <style type="text/css"> + div + { + position: relative; + } + #div2 + { + background: black; + min-height: +3in; + width: 1in; + } + #div3 + { + border-top: 3in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-067-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-067-ref.xht new file mode 100644 index 0000000..fc061bf2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-067-ref.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img + { + padding-right: 20px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is <strong>no red</strong>.</p> + + <div><img src="support/black96x96.png" width="120" height="20" alt="Image download support must be enabled" /><img src="support/black96x96.png" width="80" height="20" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-067.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-067.xht new file mode 100644 index 0000000..369a699 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-067.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using 'em' units with a minimum minus one value, -1em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="min-height-067-ref.xht" /> + + <meta name="flags" content="ahem invalid" /> + <meta name="assert" content="The 'min-height' property sets a minimum minus one length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 0; + min-height: -1em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-068.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-068.xht new file mode 100644 index 0000000..c719f268 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-068.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using 'em' units with a minimum value, 0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="min-height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-height' property sets a minimum length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 0; + min-height: 0em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-069.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-069.xht new file mode 100644 index 0000000..fe811668 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-069.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using 'em' units with a minimum plus one value, 1em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-069-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-height' property sets a minimum plus one length value in 'em' units." /> + <style type="text/css"> + div + { + background: black; + font: 20px/1 Ahem; + min-height: 1em; + } + </style> + </head> + <body> + <p>Test passes if there is a wide black bar.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-070.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-070.xht new file mode 100644 index 0000000..2d4064a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-070.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using 'em' units with a negative zero value, -0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="min-height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-height' property sets a negative zero length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 0; + min-height: -0em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-071.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-071.xht new file mode 100644 index 0000000..3d438ca --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-071.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using 'em' units with a positive zero value, +0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="min-height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-height' property sets a positive zero length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 0; + min-height: +0em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-072.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-072.xht new file mode 100644 index 0000000..cf6ae20 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-072.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using 'em' units with a nominal value, 5em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-072-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-height' property sets a nominal length value in 'em' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + position: relative; + } + #div2 + { + background: black; + min-height: 5em; + width: 100px; + } + #div3 + { + border-top: 5em solid black; + left: 104px; + position: absolute; + top: 0; + width: 100px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-073.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-073.xht new file mode 100644 index 0000000..7cdef3e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-073.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using 'em' units with a positive nominal value, +5em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-072-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-height' property sets a positive nominal length value in 'em' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + position: relative; + } + #div2 + { + background: black; + min-height: +5em; + width: 100px; + } + #div3 + { + border-top: 5em solid black; + left: 104px; + position: absolute; + top: 0; + width: 100px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-078.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-078.xht new file mode 100644 index 0000000..615f5ba --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-078.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using 'ex' units with a minimum minus one value, -1ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="min-height-067-ref.xht" /> + + <meta name="flags" content="ahem invalid" /> + <meta name="assert" content="The 'min-height' property sets a minimum minus one length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 0; + min-height: -1ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-079.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-079.xht new file mode 100644 index 0000000..13b104c8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-079.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using 'ex' units with a minimum value, 0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="min-height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-height' property sets a minimum length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 0; + min-height: 0ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-080.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-080.xht new file mode 100644 index 0000000..c95e05c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-080.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using 'ex' units with a minimum plus one value, 1ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-080-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-height' property sets a minimum plus one length value in 'ex' units." /> + <style type="text/css"> + div + { + background: black; + font: 20px/1 Ahem; + height: 0; + min-height: 1ex; + } + </style> + </head> + <body> + <p>Test passes if there is a wide black bar.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-081.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-081.xht new file mode 100644 index 0000000..bc4940d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-081.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using 'ex' units with a negative zero value, -0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="min-height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-height' property sets a negative zero length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 0; + min-height: -0ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-082.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-082.xht new file mode 100644 index 0000000..5224cef --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-082.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using 'ex' units with a positive zero value, +0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="min-height-067-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-height' property sets a positive zero length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 0; + min-height: +0ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-083.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-083.xht new file mode 100644 index 0000000..eed1d61 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-083.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using 'ex' units with a nominal value, 6ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-height' property sets a nominal length value in 'ex' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + position: relative; + } + #div2 + { + background: black; + min-height: 6ex; + width: 1in; + } + #div3 + { + border-top: 96px solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-084.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-084.xht new file mode 100644 index 0000000..0957f66 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-084.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using 'ex' units with a positive nominal value, +6ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-height' property sets a positive nominal length value in 'ex' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + position: relative; + } + #div2 + { + background: black; + min-height: +6ex; + width: 1in; + } + #div3 + { + border-top: 96px solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-089.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-089.xht new file mode 100644 index 0000000..f7c35d88 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-089.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using percentages with a minimum minus one value, -1%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'min-height' property sets a minimum minus one length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + } + div div + { + background: red; + height: 0; + min-height: -1%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-090.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-090.xht new file mode 100644 index 0000000..85e0ade --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-090.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using percentages with a minimum value, 0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a minimum length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + } + div div + { + background: red; + height: 0; + min-height: 0%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-091.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-091.xht new file mode 100644 index 0000000..660b59cb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-091.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using percentages with a minimum plus one value, 1%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a minimum plus one length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 100px; + } + div div + { + background: black; + min-height: 1%; + } + </style> + </head> + <body> + <p>Test passes if there is a thin horizontal line.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-092.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-092.xht new file mode 100644 index 0000000..5bfa831 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-092.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using percentages with a negative zero value, -0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a negative zero length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + } + div div + { + background: red; + height: 0; + min-height: -0%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-093.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-093.xht new file mode 100644 index 0000000..e5d0958 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-093.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using percentages with a positive zero value, +0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive zero length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + } + div div + { + background: red; + height: 0; + min-height: +0%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-094.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-094.xht new file mode 100644 index 0000000..3bb8e2b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-094.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using percentages with a nominal value, 100%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a nominal length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + position: relative; + } + #div2 + { + background: black; + min-height: 100%; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-095.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-095.xht new file mode 100644 index 0000000..5b01ff4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-095.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height using percentages with a positive nominal value, +100%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive nominal length value in percentages." /> + <style type="text/css"> + #div1 + { + height: 1in; + position: relative; + } + #div2 + { + background: black; + min-height: +100%; + width: 1in; + } + #div3 + { + border-top: 1in solid black; + left: 100px; + position: absolute; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the same height.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-100.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-100.xht new file mode 100644 index 0000000..b2f1f118 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-100.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height with a negative zero value and no units, -0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a negative zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: -0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-101.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-101.xht new file mode 100644 index 0000000..244b7e80 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-101.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height with a zero value and no units, 0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-102.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-102.xht new file mode 100644 index 0000000..7a80cb4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-102.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height with a positive zero value and no units, +0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property sets a positive zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: 0; + min-height: +0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div>Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-103.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-103.xht new file mode 100644 index 0000000..5205d90 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-103.xht
@@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height set to 'inherit'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="height-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property properly inherits the min-height value of the parent." /> + <style type="text/css"> + #div1 + { + min-height: 1px; + } + div div + { + background: black; + min-height: inherit; + } + </style> + </head> + <body> + <p>Test passes if there is a thin horizontal line.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-104.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-104.xht new file mode 100644 index 0000000..ca8a21ad --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-104.xht
@@ -0,0 +1,52 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: min-height - space for scrollbar</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> + <link rel="match" href="max-height-107-ref.xht" /> + + <meta content="ahem" name="flags" /> + <meta name="assert" content="Any space taken up by the scrollbars should be taken out of (subtracted from the dimensions of) the containing block formed by the element with the scrollbars." /> + + <style type="text/css"><![CDATA[ + div#test-red-overlapped + { + background-color: red; + color: red; + font: 100px/1 Ahem; + min-height: 200px; + overflow: auto; + width: 200px; + } + + div#control-green-overlapping + { + background-color: green; + height: 200px; + position: relative; + top: -200px; + width: 200px; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a green square and <strong>no red</strong>.</p> + + <div id="test-red-overlapped">XXX</div> + + <div id="control-green-overlapping"></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-105.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-105.xht new file mode 100644 index 0000000..483369c1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-105.xht
@@ -0,0 +1,50 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: min-height - space for scrollbar</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> + <link rel="match" href="max-height-110-ref.xht" /> + + <meta content="ahem" name="flags" /> + <meta content="Any space taken up by the scrollbars should be taken out of (subtracted from the dimensions of) the containing block formed by the element with the scrollbars." name="assert" /> + + <style type="text/css"><![CDATA[ + div#test-red-overlapped + { + background-color: red; + color: red; + font: 100px/1 Ahem; + min-height: 200px; + overflow: scroll; + } + + div#control-green-overlapping + { + background-color: green; + height: 200px; + position: relative; + top: -200px; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a wide green rectangle across the page and <strong>no red</strong>.</p> + + <div id="test-red-overlapped">X</div> + + <div id="control-green-overlapping"></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-106.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-106.xht new file mode 100644 index 0000000..86f410d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-106.xht
@@ -0,0 +1,58 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: min-height - float and overflow</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Hilbrand Edskes" href="http://edskes.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" /> + <link rel="match" href="max-height-107-ref.xht" /> + + <meta content="ahem" name="flags" /> + <meta content="'min-height' specifies a fixed minimum used height. If the element requires an horizontal scrollbar, then the horizontal scrollbar height should be subtracted from the height of its containing block so that the resulting used height continues to honor the declared min-height." name="assert" /> + + <style type="text/css"><![CDATA[ + div + { + font: 100px/1 Ahem; + overflow: auto; + width: 200px; + } + + #test-red-overlapped + { + background-color: red; + color: red; + float: left; + min-height: 200px; + } + + #control-green-overlapping + { + background-color: green; + clear: left; + color: green; + height: 200px; + position: relative; + top: -200px; + } + ]]></style> + + </head> + + <body> + + <p>PREREQUISITE: User agent needs to support scrollbars as the scrolling mechanism. If it does not, then this test case does not apply to this user agent.</p> + + <p>Test passes if there is a green square and <strong>no red</strong>.</p> + + <div id="test-red-overlapped">XXX</div> + + <div id="control-green-overlapping">XX</div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-111-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-111-ref.xht new file mode 100644 index 0000000..72c1cb8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-111-ref.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + img {padding-top: 16px;} + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a small green square.</p> + + <div><img src="support/swatch-green.png" alt="Image download support must be enabled" /></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-111.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-111.xht new file mode 100644 index 0000000..7d64199f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-111.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Basic min-height test</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/height/min-height/001.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="min-height-111-ref.xht" /> + + <style type="text/css"> + div { padding-top: 1em; min-height: 15px; background: url(support/swatch-green.png) no-repeat 0 1em; } + </style> + </head> + <body> + <p>Test passes if there is a small green square.</p> + <div></div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-112.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-112.xht new file mode 100644 index 0000000..7ab054f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-112.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Basic min-height test (with overflow:hidden)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/height/min-height/002.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="min-height-111-ref.xht" /> + + <style type="text/css"> + div { padding-top: 1em; min-height: 15px; background: url(support/swatch-green.png) no-repeat 0 1em; overflow: hidden; } + </style> + </head> + <body> + <p>Test passes if there is a small green square.</p> + <div></div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-113.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-113.xht new file mode 100644 index 0000000..69fca16b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-113.xht
@@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Basic min-height test (with overflow:scroll)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-30 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/height/min-height/003.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <style type="text/css"> + div { min-height: 2em; background: green; overflow: scroll; } + </style> + </head> + <body> + <p>Test passes if there is a wide green bar with scrollbars around it.</p> + <div></div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-001.xht new file mode 100644 index 0000000..b249badb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-001.xht
@@ -0,0 +1,46 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height applied to elements with 'display' set to 'table-row-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="may" /> + <meta name="assert" content="The 'min-height' property applies to elements with 'display' set to 'table-row-group'." /> + <style type="text/css"> + #test + { + display: table-row-group; + min-height: 1in; + } + #table + { + display: table; + table-layout: fixed; + } + #row + { + display: table-row; + min-height: inherit; + } + #cell + { + background: black; + display: table-cell; + min-height: inherit; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a box below.</p> + <!-- If 'min-height' is supported on 'table-row-group' then a square will be visible. --> + <div id="table"> + <div id="test"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-002.xht new file mode 100644 index 0000000..03a7b94 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-002.xht
@@ -0,0 +1,46 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height applied to elements with 'display' set to 'table-header-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="may" /> + <meta name="assert" content="The 'min-height' property applies to elements with 'display' set to 'table-header-group'." /> + <style type="text/css"> + #test + { + display: table-header-group; + min-height: 1in; + } + #table + { + display: table; + table-layout: fixed; + } + #row + { + display: table-row; + min-height: inherit; + } + #cell + { + background: black; + display: table-cell; + min-height: inherit; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a box below.</p> + <!-- If 'min-height' is supported on 'table-header-group' then a square will be visible. --> + <div id="table"> + <div id="test"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-003.xht new file mode 100644 index 0000000..e59f8a8e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-003.xht
@@ -0,0 +1,46 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height applied to elements with 'display' set to 'table-footer-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="may" /> + <meta name="assert" content="The 'min-height' property applies to elements with 'display' set to 'table-footer-group'." /> + <style type="text/css"> + #test + { + display: table-footer-group; + min-height: 1in; + } + #table + { + display: table; + table-layout: fixed; + } + #row + { + display: table-row; + min-height: inherit; + } + #cell + { + background: black; + display: table-cell; + min-height: inherit; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a box below.</p> + <!-- If 'min-height' is supported on 'table-footer-group' then a square will be visible. --> + <div id="table"> + <div id="test"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-004.xht new file mode 100644 index 0000000..cde6e7a0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-004.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height applied to elements with 'display' set to 'table-row'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property applies to elements with 'display' set to 'table-row'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + } + #row + { + display: table-row; + min-height: 1in; + } + #cell + { + background: black; + display: table-cell; + min-height: inherit; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-005.xht new file mode 100644 index 0000000..a07b6fd --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-005.xht
@@ -0,0 +1,63 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height applied to elements with 'display' set to 'table-column-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property does not to elements with 'display' set to 'table-column-group'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + #test + { + background-color: red; + display: table-column-group; + min-height: 1in; + } + .col + { + display: table-column; + } + .row + { + display: table-row; + } + .cell + { + background-color: white; + color: white; + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + + <div id="table"> + + <div id="test"> + <div class="col"></div> + <div class="col"></div> + </div> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-006.xht new file mode 100644 index 0000000..e82f0973 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-006.xht
@@ -0,0 +1,57 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height applied to elements with 'display' set to 'table-column'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property does not to elements with 'display' set to 'table-column'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + .test + { + background: red; + display: table-column; + min-height: 1in; + } + .row + { + display: table-row; + } + .cell + { + background-color: white; + color: white; + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + + <div id="table"> + + <div class="test"></div> + <div class="test"></div> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-007.xht new file mode 100644 index 0000000..f4d377c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-007.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height applied to elements with 'display' set to 'table-cell'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="may" /> + <meta name="assert" content="The 'min-height' property applies to elements with 'display' set to 'table-cell'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + min-height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a box below.</p> + <!-- If 'min-height' is supported on 'table-cell' then a square will be visible. --> + <div id="table"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-008.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-008.xht new file mode 100644 index 0000000..bfb9cde6e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-008.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height applied to elements with 'display' set to 'inline'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-height' property does not apply to elements with 'display' set to 'inline'." /> + <style type="text/css"> + div + { + background-color: red; + color: white; + display: inline; + font: 20px/1 Ahem; + min-height: 100px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + + <div>A</div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-009.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-009.xht new file mode 100644 index 0000000..3cecd4a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-009.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height applied to elements with 'display' set to 'block'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property applies to elements with 'display' set to 'block'." /> + <style type="text/css"> + span + { + background: black; + display: block; + min-height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div> + <span></span> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-010.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-010.xht new file mode 100644 index 0000000..adcc4c4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-010.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height applied to elements with 'display' set to 'list-item'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property applies to elements with 'display' set to 'list-item'." /> + <style type="text/css"> + div + { + background: black; + display: list-item; + margin-left: 2em; + min-height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a black square and a marker bullet on its left-hand side.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-012.xht new file mode 100644 index 0000000..fae4a1a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-012.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height applied to elements with 'display' set to 'inline-block'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property applies to elements with 'display' set to 'inline-block'." /> + <style type="text/css"> + span#inline-block + { + background: black; + display: inline-block; + min-height: 1in; + } + + span.block-descendant + { + display: block; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div> + <span id="inline-block"> + <span class="block-descendant">a</span> + <span class="block-descendant">b</span> + </span> + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-013.xht new file mode 100644 index 0000000..13ddef7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-013.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height applied to elements with 'display' set to 'table'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property applies to elements with 'display' set to 'table'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + min-height: 1in; + } + #row + { + display: table-row; + height: inherit; /* height of the row is based on the computed value for height of the table which is based on the min-height property */ + } + #cell + { + background: black; + display: table-cell; + height: inherit; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-014.xht new file mode 100644 index 0000000..2abb772 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-014.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height applied to elements with 'display' set to 'inline-table'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property applies to elements with 'display' set to 'inline-table'." /> + <style type="text/css"> + #table + { + display: inline-table; + table-layout: fixed; + min-height: 1in; + } + #row + { + display: table-row; + height: inherit; /* height of the row is based on the computed value for height of the table which is based on the min-height property */ + } + #cell + { + background: black; + display: table-cell; + height: inherit; /* height of the cell is based on the computed value for height of the table which is based on the min-height property */ + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-015.xht new file mode 100644 index 0000000..158c9a2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-applies-to-015.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height applied to elements with 'display' set to 'table-caption'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-height" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-height' property applies to elements with 'display' set to 'table-caption'." /> + <style type="text/css"> + #table + { + display: table; + } + #caption + { + background: black; + display: table-caption; + min-height: 1in; + width: 1in; + } + #row + { + display: table-row; + } + #cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div id="table"> + <div id="caption"></div> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-percentage-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-percentage-001.xht new file mode 100644 index 0000000..cc35650 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-percentage-001.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-height percentage is based on containing block</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="max-height-percentage-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="A percentage for 'min-height' is calculated with respect to the 'height' of the generated boxes containing block." /> + <style type="text/css"> + #div1 + { + height: 2in; + position: relative; + } + div div + { + width: 1in; + } + #div2 + { + background: blue; + min-height: 50%; + } + #div3 + { + background: orange; + height: 1in; + left: 1in; + position: absolute; + top: 0; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same height</strong>.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-percentage-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-percentage-002.xht new file mode 100644 index 0000000..74f6b72 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-percentage-002.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Percentage 'min-height' with no 'height' on containing block</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="When the 'height' of the containing block (#div1) of an element (inner div) is not specified (or if its height value is 'auto') and the element is not absolutely positioned, then the percentage value of 'max-height' is treated as '0' for 'min-height' and 'none' for 'max-height'." /> + <style type="text/css"> + div + { + width: 1in; + } + #div1 + { + position: relative; + } + div div + { + background: red; + min-height: 50%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-percentage-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-percentage-003-ref.xht new file mode 100644 index 0000000..7fd94de --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-percentage-003-ref.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + html, body + { + background-color: green; + height: 100%; + } + + body, p {margin: 0px;} + + p {color: white;} + ]]></style> + + </head> + + <body> + + <p>Test passes if the background of this page is green and if there is <strong>no red and no vertical scrollbar</strong>.</p> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-percentage-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-percentage-003.xht new file mode 100644 index 0000000..e25d3ff --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-height-percentage-003.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: min-height - 100% of the initial containing block's height</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="author" title="Bruno Fassino" href="http://www.brunildo.org/" /> + <link rel="author" title="Alan Gresley" href="mailto:alan@css-class.com" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-heights" /> + <link rel="match" href="min-height-percentage-003-ref.xht" /> + + <meta content="The initial containing block has the dimensions of the viewport. A percentage height on the root element is relative to the initial containing block. A 'min-height: 100%;' of the document root element should use all of the document root element's height. A percentage for 'min-height' is calculated with respect to the height of the generated box's containing block." name="assert" /> + <meta content="" name="flags" /> + + <style type="text/css"><![CDATA[ + html, body + { + background-color: red; + height: 100%; + } + + body, p {margin: 0px;} + + p + { + background-color: green; + color: white; + min-height: 100%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if the background of this page is green and if there is <strong>no red and no vertical scrollbar</strong>.</p> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-001.xht new file mode 100644 index 0000000..1db3741 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-001.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using pixels with a minimum minus one value, -1px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'min-width' property sets a minimum minus one length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: -1px; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-002.xht new file mode 100644 index 0000000..281fd68 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-002.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using pixels with a minimum value, 0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a minimum length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: 0px; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-003.xht new file mode 100644 index 0000000..179cf9c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-003.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using pixels with a minimum plus one value, 1px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a minimum plus one length value in pixels." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + min-width: 1px; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is a thin vertical line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-004.xht new file mode 100644 index 0000000..92779ca --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-004.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using pixels with a negative zero value, -0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a negative zero length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: -0px; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-005.xht new file mode 100644 index 0000000..96292f3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-005.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using pixels with a positive zero value, +0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive zero length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: +0px; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-006.xht new file mode 100644 index 0000000..019112f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-006.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using pixels with a nominal value, 96px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a nominal length value in pixels." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + min-width: 96px; + width: 0; + } + #div2 + { + border-left: 96px solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-007.xht new file mode 100644 index 0000000..f36f85e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-007.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using pixels with a positive nominal value, +96px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive nominal length value in pixels." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + min-width: +96px; + width: 0; + } + #div2 + { + border-left: 96px solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-012.xht new file mode 100644 index 0000000..b2a32590d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-012.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using points with a minimum minus one value, -1pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'min-width' property sets a minimum minus one length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: -1pt; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-013.xht new file mode 100644 index 0000000..ecf15ce --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-013.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using points with a minimum value, 0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a minimum length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: 0pt; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-014.xht new file mode 100644 index 0000000..611e4050 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-014.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using points with a minimum plus one value, 1pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a minimum plus one length value in points." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + min-width: 1pt; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is a thin vertical line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-015.xht new file mode 100644 index 0000000..308dac6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-015.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using points with a negative zero value, -0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a negative zero length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: -0pt; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-016.xht new file mode 100644 index 0000000..9104beb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-016.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using points with a positive zero value, +0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive zero length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: +0pt; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-017.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-017.xht new file mode 100644 index 0000000..7d3825f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-017.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using points with a nominal value, 72pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a nominal length value in points." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + min-width: 72pt; + width: 0; + } + #div2 + { + border-left: 72pt solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-018.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-018.xht new file mode 100644 index 0000000..6bfc14b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-018.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using points with a positive nominal value, +72pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive nominal length value in points." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + min-width: +72pt; + width: 0; + } + #div2 + { + border-left: 72pt solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-023.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-023.xht new file mode 100644 index 0000000..386aae5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-023.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using picas with a minimum minus one value, -1pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'min-width' property sets a minimum minus one length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: -1pc; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-024.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-024.xht new file mode 100644 index 0000000..1ca58d7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-024.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using picas with a minimum value, 0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a minimum length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: 0pc; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-025.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-025.xht new file mode 100644 index 0000000..1bfef26 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-025.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using picas with a minimum plus one value, 1pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-025-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a minimum plus one length value in picas." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + min-width: 1pc; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is a vertical black bar.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-026.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-026.xht new file mode 100644 index 0000000..5751260 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-026.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using picas with a negative zero value, -0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a negative zero length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: -0pc; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-027.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-027.xht new file mode 100644 index 0000000..7fbf8d8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-027.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using picas with a positive zero value, +0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive zero length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: +0pc; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-028.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-028.xht new file mode 100644 index 0000000..4ecad13ce --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-028.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using picas with a nominal value, 6pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a nominal length value in picas." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + min-width: 6pc; + width: 0; + } + #div2 + { + border-left: 6pc solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-029.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-029.xht new file mode 100644 index 0000000..04909e9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-029.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using picas with a positive nominal value, +6pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive nominal length value in picas." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + min-width: +6pc; + width: 0; + } + #div2 + { + border-left: 6pc solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-034.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-034.xht new file mode 100644 index 0000000..e16a382 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-034.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using centimeters with a minimum minus one value, -1cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'min-width' property sets a minimum minus one length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: -1cm; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-035.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-035.xht new file mode 100644 index 0000000..85ce000 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-035.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using centimeters with a minimum value, 0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a minimum length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: 0cm; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-036.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-036.xht new file mode 100644 index 0000000..015c298f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-036.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using centimeters with a minimum plus one value, 1cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-036-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a minimum plus one length value in centimeters." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + min-width: 1cm; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is a black rectangle.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-037.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-037.xht new file mode 100644 index 0000000..f1eaf3d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-037.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using centimeters with a negative zero value, -0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a negative zero length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: -0cm; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-038.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-038.xht new file mode 100644 index 0000000..fb36d3b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-038.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using centimeters with a positive zero value, +0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive zero length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: +0cm; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-039.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-039.xht new file mode 100644 index 0000000..4df85e4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-039.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using centimeters with a nominal value, 2.54cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a nominal length value in centimeters." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + min-width: 2.54cm; + width: 0; + } + #div2 + { + border-left: 2.54cm solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-040.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-040.xht new file mode 100644 index 0000000..ba6d9ef --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-040.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using centimeters with a positive nominal value, +2.54cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive nominal length value in centimeters." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + min-width: +2.54cm; + width: 0; + } + #div2 + { + border-left: 2.54cm solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-045.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-045.xht new file mode 100644 index 0000000..7dcde8d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-045.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using millimeters with a minimum minus one value, -1mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'min-width' property sets a minimum minus one length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: -1mm; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-046.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-046.xht new file mode 100644 index 0000000..c9ef56d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-046.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using millimeters with a minimum value, 0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a minimum length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: 0mm; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-047.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-047.xht new file mode 100644 index 0000000..f895ca4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-047.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using millimeters with a minimum plus one value, 1mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-047-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a minimum plus one length value in millimeters." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + min-width: 1mm; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is a vertical line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-048.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-048.xht new file mode 100644 index 0000000..0d217bc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-048.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using millimeters with a negative zero value, -0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a negative zero length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: -0mm; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-049.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-049.xht new file mode 100644 index 0000000..d7307f5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-049.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using millimeters with a positive zero value, +0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive zero length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: +0mm; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-050.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-050.xht new file mode 100644 index 0000000..ff0f647e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-050.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using millimeters with a nominal value, 25.4mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a nominal length value in millimeters." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + min-width: 25.4mm; + width: 0; + } + #div2 + { + border-left: 25.4mm solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-051.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-051.xht new file mode 100644 index 0000000..a867083 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-051.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using millimeters with a positive nominal value, +25.4mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive nominal length value in millimeters." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + min-width: +25.4mm; + width: 0; + } + #div2 + { + border-left: 25.4mm solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-056.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-056.xht new file mode 100644 index 0000000..a4fa023 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-056.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using inches with a minimum minus one value, -1in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'min-width' property sets a minimum minus one length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: -1in; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-057.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-057.xht new file mode 100644 index 0000000..c95c84f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-057.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using inches with a minimum value, 0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a minimum length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: 0in; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-058.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-058.xht new file mode 100644 index 0000000..6923a8b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-058.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using inches with a minimum plus one value, 1in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a minimum plus one length value in inches." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + min-width: 1in; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-059.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-059.xht new file mode 100644 index 0000000..bf227f7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-059.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using inches with a negative zero value, -0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a negative zero length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: -0in; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-060.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-060.xht new file mode 100644 index 0000000..54e034e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-060.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using inches with a positive zero value, +0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive zero length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: +0in; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-061.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-061.xht new file mode 100644 index 0000000..c9621c4b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-061.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using inches with a nominal value, 3in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-061-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a nominal length value in inches." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + min-width: 3in; + width: 0; + } + #div2 + { + border-left: 3in solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-062.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-062.xht new file mode 100644 index 0000000..f86562e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-062.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using inches with a positive nominal value, +3in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-061-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive nominal length value in inches." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + min-width: +3in; + width: 0; + } + #div2 + { + border-left: 3in solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-067.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-067.xht new file mode 100644 index 0000000..b7d5e3b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-067.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using 'em' units with a minimum minus one value, -1em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem invalid" /> + <meta name="assert" content="The 'min-width' property sets a minimum minus one length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + min-width: -1em; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-068.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-068.xht new file mode 100644 index 0000000..64cf737 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-068.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using 'em' units with a minimum value, 0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-width' property sets a minimum length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + min-width: 0em; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-069.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-069.xht new file mode 100644 index 0000000..3f6c98b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-069.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using 'em' units with a minimum plus one value, 1em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-069-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-width' property sets a minimum plus one length value in 'em' units." /> + <style type="text/css"> + div + { + background: black; + font: 20px/1 Ahem; + height: 1in; + min-width: 1em; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is a vertical black stripe.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-070.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-070.xht new file mode 100644 index 0000000..39a60e23 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-070.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using 'em' units with a negative zero value, -0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-width' property sets a negative zero length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + min-width: -0em; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-071.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-071.xht new file mode 100644 index 0000000..ba4135f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-071.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using 'em' units with a positive zero value, +0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-width' property sets a positive zero length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + min-width: +0em; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-072.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-072.xht new file mode 100644 index 0000000..cb8c55ee --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-072.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using 'em' units with a nominal value, 6em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-072-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-width' property sets a nominal length value in 'em' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + } + #div1 + { + background: black; + height: 1in; + min-width: 6em; + width: 0; + } + #div2 + { + border-left: 6em solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-073.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-073.xht new file mode 100644 index 0000000..f816e76 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-073.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using 'em' units with a positive nominal value, +6em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-072-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-width' property sets a positive nominal length value in 'em' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + } + #div1 + { + background: black; + height: 1in; + min-width: +6em; + width: 0; + } + #div2 + { + border-left: 6em solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-078.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-078.xht new file mode 100644 index 0000000..4fac92a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-078.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using 'ex' units with a minimum minus one value, -1ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem invalid" /> + <meta name="assert" content="The 'min-width' property sets a minimum minus one length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + min-width: -1ex; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-079.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-079.xht new file mode 100644 index 0000000..2b70dc6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-079.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using 'ex' units with a minimum value, 0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-width' property sets a minimum length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + min-width: 0ex; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-080.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-080.xht new file mode 100644 index 0000000..2dd7bc5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-080.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using 'ex' units with a minimum plus one value, 1ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-025-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-width' property sets a minimum plus one length value in 'ex' units." /> + <style type="text/css"> + div + { + background: black; + font: 20px/1 Ahem; + height: 1in; + min-width: 1ex; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is a vertical black bar.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-081.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-081.xht new file mode 100644 index 0000000..6e80b1f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-081.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using 'ex' units with a negative zero value, -0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-width' property sets a negative zero length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + min-width: -0ex; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-082.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-082.xht new file mode 100644 index 0000000..e45ae71 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-082.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using 'ex' units with a positive zero value, +0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-width' property sets a positive zero length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + min-width: +0ex; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-083.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-083.xht new file mode 100644 index 0000000..918bd341 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-083.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using 'ex' units with a nominal value, 6ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-width' property sets a nominal length value in 'ex' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + } + #div1 + { + background: black; + height: 1in; + min-width: 6ex; + width: 0; + } + #div2 + { + border-left: 96px solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-084.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-084.xht new file mode 100644 index 0000000..f70c4f1f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-084.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using 'ex' units with a positive nominal value, +6ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'min-width' property sets a positive nominal length value in 'ex' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + } + #div1 + { + background: black; + height: 1in; + min-width: +6ex; + width: 0; + } + #div2 + { + border-left: 96px solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-089.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-089.xht new file mode 100644 index 0000000..ce9e0e0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-089.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using percentages with a minimum minus one value, -1%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'min-width' property sets a minimum minus one length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + div div + { + background: red; + height: 1in; + min-width: -1%; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-090.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-090.xht new file mode 100644 index 0000000..ac827e4f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-090.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using percentages with a minimum value, 0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a minimum length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + div div + { + background: red; + height: 1in; + min-width: 0%; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-091.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-091.xht new file mode 100644 index 0000000..d10ce86 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-091.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using percentages with a minimum plus one value, 1%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a minimum plus one length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 100px; + } + div div + { + background: black; + height: 1in; + min-width: 1%; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is a thin vertical line.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-092.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-092.xht new file mode 100644 index 0000000..3249fbb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-092.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using percentages with a negative zero value, -0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a negative zero length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + div div + { + background: red; + height: 1in; + min-width: -0%; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-093.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-093.xht new file mode 100644 index 0000000..47430cc6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-093.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using percentages with a positive zero value, +0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-31 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive zero length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + div div + { + background: red; + height: 1in; + min-width: +0%; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-094.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-094.xht new file mode 100644 index 0000000..970966ff --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-094.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using percentages with a nominal value, 100%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a nominal length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + #div2 + { + background: black; + height: 1in; + min-width: 100%; + width: 0; + } + #div3 + { + border-left: 1in solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-095.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-095.xht new file mode 100644 index 0000000..a62f451 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-095.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width using percentages with a positive nominal value, +100%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive nominal length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + #div2 + { + background: black; + height: 1in; + min-width: +100%; + width: 0; + } + #div3 + { + border-left: 1in solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-100.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-100.xht new file mode 100644 index 0000000..3356093d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-100.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width with a negative zero value and no units, -0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a negative zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: -0; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-101.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-101.xht new file mode 100644 index 0000000..d1df985 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-101.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width with a zero value and no units, 0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: 0; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-102.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-102.xht new file mode 100644 index 0000000..c2fbf40 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-102.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width with a positive zero value and no units, +0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property sets a positive zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + min-width: +0; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-103.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-103.xht new file mode 100644 index 0000000..f636d8e9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-103.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width set to inherit</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property properly inherits the min-width value of the parent." /> + <style type="text/css"> + #div1 + { + min-width: 1px; + width: 0; + } + div div + { + background: black; + height: 1in; + min-width: inherit; + } + </style> + </head> + <body> + <p>Test passes if there is a thin vertical line.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-001.xht new file mode 100644 index 0000000..a139acd --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-001.xht
@@ -0,0 +1,57 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width applied to elements with 'display' set to 'table-row-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property does not apply to elements with 'display' set to 'table-row-group'." /> + <style type="text/css"> + #test + { + background-color: red; + display: table-row-group; + min-width: 1in; + } + #table + { + display: table; + table-layout: fixed; + width: 0in; + } + #row + { + display: table-row; + } + #cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + + <div id="table"> + + <div id="test"> + + <div class="row"> + <div class="cell"></div><div class="cell"></div> + </div> + + <div class="row"> + <div class="cell"></div><div class="cell"></div> + </div> + + </div> + + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-002.xht new file mode 100644 index 0000000..c650ce8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-002.xht
@@ -0,0 +1,57 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width applied to elements with 'display' set to 'table-header-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property does not apply to elements with 'display' set to 'table-header-group'." /> + <style type="text/css"> + #test + { + background-color: red; + display: table-header-group; + min-width: 1in; + } + #table + { + display: table; + table-layout: fixed; + width: 0in; + } + .row + { + display: table-row; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + + <div id="table"> + + <div id="test"> + + <div class="row"> + <div class="cell"></div><div class="cell"></div> + </div> + + <div class="row"> + <div class="cell"></div><div class="cell"></div> + </div> + + </div> + + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-003.xht new file mode 100644 index 0000000..88773ad7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-003.xht
@@ -0,0 +1,57 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width applied to elements with 'display' set to 'table-footer-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property does not apply to elements with 'display' set to 'table-footer-group'." /> + <style type="text/css"> + #test + { + background-color: red; + display: table-footer-group; + min-width: 1in; + } + #table + { + display: table; + table-layout: fixed; + width: 0in; + } + .row + { + display: table-row; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + + <div id="table"> + + <div id="test"> + + <div class="row"> + <div class="cell"></div><div class="cell"></div> + </div> + + <div class="row"> + <div class="cell"></div><div class="cell"></div> + </div> + + </div> + + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-004.xht new file mode 100644 index 0000000..bce0b9f2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-004.xht
@@ -0,0 +1,49 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width applied to elements with 'display' set to 'table-row'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property does not apply to elements with 'display' set to 'table-row'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + width: 0in; + } + .row + { + background-color: red; + display: table-row; + min-width: 1in; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + + <div id="table"> + + <div class="row"> + <div class="cell"></div><div class="cell"></div> + </div> + + <div class="row"> + <div class="cell"></div><div class="cell"></div> + </div> + + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-005.xht new file mode 100644 index 0000000..1f6f8171 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-005.xht
@@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width applied to elements with 'display' set to 'table-column-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../../reference/pass_if_square_96px_black.html"/> + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property applies to elements with 'display' set to 'table-column-group'." /> + <style type="text/css"> + #test + { + display: table-column-group; + min-width: 1in; + } + #table + { + display: table; + table-layout: fixed; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + height: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="test"></div> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-006.xht new file mode 100644 index 0000000..b195c14a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-006.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width applied to elements with 'display' set to 'table-column'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../../reference/pass_if_square_96px_black.html"/> + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property applies to elements with 'display' set to 'table-column'." /> + <style type="text/css"> + #test + { + display: table-column; + min-width: 1in; + } + #table + { + display: table; + table-layout: fixed; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + height: 1in; + + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="test"></div> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-007.xht new file mode 100644 index 0000000..61bc7e0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-007.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width applied to elements with 'display' set to 'table-cell'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../../reference/pass_if_square_96px_black.html"/> + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property applies to elements with 'display' set to 'table-cell'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + height: 1in; + min-width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-008.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-008.xht new file mode 100644 index 0000000..0d64270 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-008.xht
@@ -0,0 +1,30 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width applied to elements with 'display' set to 'inline'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property does not apply to elements with 'display' set to 'inline'." /> + <style type="text/css"> + div + { + background-color: red; + color: green; + display: inline; + font: 100px/1 Ahem; + min-width: 200px; + } + </style> + </head> + <body> + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + + <div>A</div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-009.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-009.xht new file mode 100644 index 0000000..6901280 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-009.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width applied to elements with 'display' set to 'block'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property applies to elements with 'display' set to 'block'." /> + <style type="text/css"> + div + { + width: 0.5in; + } + span + { + background: black; + display: block; + height: 1in; + min-width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div> + <span></span> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-010.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-010.xht new file mode 100644 index 0000000..b52e9310 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-010.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width applied to elements with 'display' set to 'list-item'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property applies to elements with 'display' set to 'list-item'." /> + <style type="text/css"> + #div1 + { + width: 0.5in; + } + div div + { + background: black; + display: list-item; + height: 1in; + margin-left: 2em; + min-width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square and a marker bullet on its left-hand side.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-012.xht new file mode 100644 index 0000000..bb1b52e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-012.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width applied to elements with 'display' set to 'inline-block'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property applies to elements with 'display' set to 'inline-block'." /> + <style type="text/css"> + span#inline-block + { + background-color: black; + display: inline-block; + width: 0in; + min-width: 1in; + } + + span.block-descendant + { + display: block; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div> + <span id="inline-block"> + <span class="block-descendant">a</span> + <span class="block-descendant">b</span> + </span> + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-013.xht new file mode 100644 index 0000000..9a570fc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-013.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width applied to elements with 'display' set to 'table'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../../reference/pass_if_square_96px_black.html"/> + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property applies to elements with 'display' set to 'table'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + min-width: 1in; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + height: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-014.xht new file mode 100644 index 0000000..5bd6502 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-014.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width applied to elements with 'display' set to 'inline-table'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../../reference/pass_if_square_96px_black.html"/> + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property applies to elements with 'display' set to 'inline-table'." /> + <style type="text/css"> + #table + { + display: inline-table; + table-layout: fixed; + min-width: 1in; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + height: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-015.xht new file mode 100644 index 0000000..b4c1de6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-015.xht
@@ -0,0 +1,45 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-width applied to elements with 'display' set to 'table-caption'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-min-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'min-width' property applies to elements with 'display' set to 'table-caption'." /> + <style type="text/css"> + #table + { + display: table; + } + #caption + { + background: black; + display: table-caption; + height: 1in; + min-width: 1in; + width: 0in; + } + #row + { + display: table-row; + } + #cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div id="table"> + <div id="caption"></div> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-016.xht new file mode 100644 index 0000000..ca06214 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-applies-to-016.xht
@@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min-Width applied to none</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-12-03 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Min-Width can be declared onto 'display: none' elements but since 'display: none' declaration on an element does not generate a CSS box, then it won't have a rendering effect nor a visual formatting repercussion." /> + <style type="text/css"> + div + { + width: 100px; + height: 100px; + background-color: green; + } + span + { + display: none; + width: 0; + min-width: 100px; + height: 100px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + <div> + <span></span> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-percentage-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-percentage-001.xht new file mode 100644 index 0000000..50e10a6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-percentage-001.xht
@@ -0,0 +1,42 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Using percentages with 'min-width' relative to the containing block</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="max-width-percentage-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The percentage is calculated in relation to the containing block." /> + <style type="text/css"> + div div + { + height: 1in; + } + #div1 + { + width: 2in; + height: 1in; + } + #div2 + { + background: blue; + min-width: 50%; + width: 0; + } + #div3 + { + background: orange; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same width</strong>.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-percentage-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-percentage-002.xht new file mode 100644 index 0000000..5fc2427 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-percentage-002.xht
@@ -0,0 +1,41 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Percentage based value for 'min-width' contained by box with a negative 'width'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="If the containing block's width is negative, the used value is zero." /> + <style type="text/css"> + #div1 + { + position: relative; + width: 100px; + } + #div2 + { + left: 120px; + position: absolute; + right: 120px; + width: auto; + } + #div3 + { + background-color: red; + height: 1in; + min-width: 200%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div id="div2"> + <div id="div3"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-percentage-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-percentage-003.xht new file mode 100644 index 0000000..ca25710d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/min-width-percentage-003.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Using 'min-width' with 'width' dependent on the containing block</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <meta name="flags" content="" /> + <meta name="assert" content="If the containing block's width depends on this element's width, then the resulting layout is undefined." /> + <style type="text/css"> + #div1 + { + background-color: red; + float: left; + } + div div + { + background-color: green; + min-width: 200%; + } + </style> + </head> + <body> + <p>Test passes if there is anything displayed below.</p> + <div id="div1"> + <div>Filler Text</div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-elements-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-elements-001.xht new file mode 100644 index 0000000..81c0cb2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-elements-001.xht
@@ -0,0 +1,49 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: replaced elements - margin</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#block-replaced-width" /> + <meta name="flags" content="" /> + <meta name="assert" content="Block-level, replaced elements with 'margin-left: auto' and 'margin-right: auto' should be centered within their respective parent block." /> + + <style type="text/css"><![CDATA[ + div + { + background-color: green; + line-height: 0; + margin: 1em; + } + + input + { + background-color: orange; + display: block; + margin-left: auto; + margin-right: auto; + width: auto; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is 1 orange stripe horizontally centered within each of 2 wide green bars.</p> + + <div> + <input type="button" value=" " /> + </div> + + <form action=""> + <div> + <input type="submit" value=" " /> + </div> + </form> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-001-ref.xht new file mode 100644 index 0000000..d48d43e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-001-ref.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + html + { + margin: 8px; + width: 150px; + } + + body, p {margin: 0;} + + div + { + background-color: green; + border: lime solid 2px; + height: 150px; + margin: -2px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green square exactly fitting inside a bright green border and no red.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-001.xht new file mode 100644 index 0000000..7cbb65b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-001.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Replaced inline elements (using <object>) and SVG intrinsic widths</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/replaced/intrinsic/svg/001.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="match" href="replaced-intrinsic-001-ref.xht" /> + + <meta name="flags" content="svg"/> + <style type="text/css"> + html { width: 150px; padding: 0; margin: 8px; } + body { padding: 0; margin: 0; } + p { padding: 0; margin: 0; } + object { width: auto; height: auto; } /* intrinsic size is 100%x100%, which is equivalent to width:100% height:auto (since height:auto on parent) */ + .control { background: red; width: 150px; height: 150px; border: solid lime 2px; margin: -2px; position: absolute; z-index: -1; } + </style> + </head> + <body> + <p>Test passes if there is a filled green square exactly fitting inside a bright green border and no red.</p> + <p class="control">FAIL (absolute positioning not supported) </p> + <p><object data="support/replaced-intrinsic-001.svg" type="image/svg+xml"> FAIL (SVG not supported) </object></p> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-002-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-002-ref.xht new file mode 100644 index 0000000..16ec5f2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-002-ref.xht
@@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + p + { + font: 16px/20px serif; + margin: 0; + } + + div + { + background-color: green; + height: 150px; + width: 150px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green square and no red.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-002.xht new file mode 100644 index 0000000..817a622 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-002.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Replaced inline elements (using <object>) and SVG intrinsic widths (negative test equivalent of 001)</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/replaced/intrinsic/svg/002.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="match" href="replaced-intrinsic-002-ref.xht" /> + + <meta name="flags" content="svg"/> + <style type="text/css"> + html { width: 150px; padding: 0; margin: 8px; position: relative; } + body { padding: 0; margin: 0; } + p { font: 16px/20px serif; padding: 0; margin: 0; } + object { width: auto; height: auto; } /* intrinsic size is 100%x100%, which is equivalent to width:100% height:auto (since height:auto on parent) */ + div { position: absolute; top: 20px; left: 0; height: 150px; width: 150px; background: green; } + </style> + </head> + <body> + <p>Test passes if there is a filled green square and no red. <object data="support/replaced-intrinsic-002.svg" type="image/svg+xml"> FAIL (SVG not supported) </object> </p> + <div></div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-003-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-003-ref.xht new file mode 100644 index 0000000..58acdaff --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-003-ref.xht
@@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + table + { + border-spacing: 0px; + margin: 1em 0px; + } + + td {padding: 0px;} + + img {vertical-align: top;} + ]]></style> + + </head> + + <body> + + <table> + <tr><td><img src="support/test-tl.png" alt="Image download support must be enabled" /></td><td><img src="support/test-tr.png" alt="Image download support must be enabled" /></td></tr> + <tr><td><img src="support/test-bl.png" alt="Image download support must be enabled" /></td><td><img src="support/test-br.png" alt="Image download support must be enabled" /></td></tr> + </table> + + <p>Test passes if there is a complete unbroken yin-yang symbol (☯) above.</p> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-003.xht new file mode 100644 index 0000000..e5ab5cb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-003.xht
@@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> + <head> + <title>CSS Test: Replaced block elements (using <object>) and SVG intrinsic widths</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/replaced/intrinsic/svg/003.html" type="text/html"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="match" href="replaced-intrinsic-003-ref.xht" /> + + <meta name="flags" content="image svg"/> + <style type="text/css"> + html { background: white; } + body { background: 100px 0 url(support/test-tr.png) no-repeat; } + div { width: 100px; background: url(support/test-bl.png) bottom left no-repeat; } + div p { background: url(support/test-tl.png) top left no-repeat; } + object { display: block; margin: auto; padding-right: 100px; background: url(support/test-br.png) bottom right no-repeat; } + </style> + </head> + <body> + <div><p><object data="support/replaced-intrinsic-003.svg" type="image/svg+xml"> FAIL (SVG not supported) </object></p></div> + <p>Test passes if there is a complete unbroken yin-yang symbol (☯) above.</p> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-004.xht new file mode 100644 index 0000000..ce8c0a1a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-004.xht
@@ -0,0 +1,36 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Auto Intrinsic Sizes: Intrinsic Height Only and Specified Width</title> + <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> + + <meta name="flags" content="svg" /> + <meta name="assert" content="An inline replaced element with an intrinsic height only + and a specified width is drawn at the specified width and intrinsic height." /> + <style type="text/css"> + object { + border: solid 20px red; + background: green; + width: 60px; + } + .control { + position: absolute; + border: solid 20px green; + height: 60px; + width: 60px; + } + </style> + </head> + <body> + <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + + <div class="control"></div> + <div class="container"> + <object data="support/replaced-intrinsic-004.svg" type="image/svg+xml">FAIL: SVG support required</object> + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-005-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-005-ref.xht new file mode 100644 index 0000000..e0efaf7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-005-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: green; + height: 190px; + width: 100px; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.</p> + + <div></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-005.xht new file mode 100644 index 0000000..6f5db58 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-005.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Auto Intrinsic Sizes: Intrinsic Width Only and Auto Height</title> + <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="match" href="replaced-intrinsic-005-ref.xht" /> + + <meta name="flags" content="svg" /> + <meta name="assert" content="A replaced element with an intrinsic height only + and a specified width is drawn at the specified width and intrinsic height." /> + <style type="text/css"> + object { + border: red solid 20px; + background: green; + } + .control { + border: green solid 20px; + height: 150px; + position: absolute; + width: 60px; + } + </style> + </head> + <body> + <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.</p> + + <div class="control"></div> + <div><object data="support/replaced-intrinsic-005.svg" type="image/svg+xml">FAIL: SVG support required</object></div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-ratio-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-ratio-001.xht new file mode 100644 index 0000000..e4bb2982 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-ratio-001.xht
@@ -0,0 +1,50 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Auto Width for Replaced Element with Intrinsic Ratio Only</title> + <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" /> + + <!-- + <link rel="help" href="http://www.w3.org/TR/SVGTiny12/coords.html#IntrinsicSizing" /> + --> + + <meta name="flags" content="may svg" /> + + <style type="text/css"> + body { width: 15em; border: silver dashed 1px; } + table { border-spacing: 0; } + td { padding: 0; } + p, table { height: 1em; line-height: 1em; margin: 6em 0; } + + /* basic tests for inline and block */ + #img1 { margin-top: -1em; } + #img2 { display: block; } + + /* shrinkwrapped */ + #p3 { width: 100%; float: left; margin: 0; } + #t4 { width: 15em; display: table-cell; } + #t5 { width: 100%; } + + /* controls */ + object { background: red; } + object, .control { border: blue solid 1em; margin: 0 1em; } + + .control { background: green; } + .inst { height: auto; margin: 1em 0; } + </style> + </head> + <body> + <p class="inst">Test passes if the following 6 blue rectangles have the same width and if there is no red.</p> + <p class="control"> </p> + <p> + <!-- sizing is against containing block, not available space --> + <object id="img1" type="image/svg+xml" data="support/intrinsic-ratio.svg">This test won't work because you do not have images enabled.</object></p> + <p><object id="img2" type="image/svg+xml" data="support/intrinsic-ratio.svg">This test won't work because you do not have images enabled.</object></p> + <p id="t4"><object id="img4" type="image/svg+xml" data="support/intrinsic-ratio.svg">This test won't work because you do not have images enabled.</object></p> + <table id="t5"><tr><td><object id="img5" type="image/svg+xml" data="support/intrinsic-ratio.svg">This test won't work because you do not have images enabled.</object></td></tr></table> + <p id="p3"><object id="img3" type="image/svg+xml" data="support/intrinsic-ratio.svg">This test won't work because you do not have images enabled.</object></p> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-min-max-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-min-max-001.xht new file mode 100644 index 0000000..40927cd --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-min-max-001.xht
@@ -0,0 +1,314 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Min/Max Height and Width Constraints on Replaced Elements</title> + <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> + <link rel="reviewer" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/replaced/intrinsic/001.html" type="text/html"/> + <meta name="flags" content="image"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" /> + <style type="text/css"><![CDATA[ + + /* Make test easier to check */ + p { display: inline; } + + /* Diagrams are scaled so that w and h line up. + Image is 75px x 75px; target dimensions will thus be 75px. */ + + /* none + * + * wmin w wmax + * |------------------+------+---------+------> width + * hmin h hmax + * |-------------+-----------+-----+----------> height + * + * target: [w, h] + */ + + #img1 {min-width: 60px; + max-width: 105px; + min-height: 45px; + max-height: 120px;} + + /* w > max-width + * wmax/w > hmin/h + * wmax w + * |------------------+------+----------------> width + * hmin h + * |------------+------------+----------------> height + * + * target: [wmax, wmax * h/w] + */ + + #img2 {max-width: 75px; /* 50% */ + min-height: 60px; /* 40% */} + + /* w > max-width + * wmax/w < hmin/h + * + * wmax w + * |-------------+-----------+----------------> width + * hmin h + * |------------------+------+----------------> height + * + * target: [wmax, hmin] + */ + + #img3 {max-width: 75px; /* 25% */ + min-height: 75px; /* 50% */} + + /* w < min-width + * wmin/w < hmax/h + * + * w wmin + * |-------------+---------+------------------> width + * h hmax + * |-------------+----------------+-----------> height + * + * target: [wmin, wmin * h/w] + */ + + #img4 {min-width: 75px; /* 300% */ + max-height: 100px; /* 400% */} + + /* w < min-width + * wmin/w > hmax/h + * + * w wmin + * |-------------+----------------+-----------> width + * h hmax + * |-------------+---------+------------------> height + * + * target: [wmin, hmax] + */ + + #img5 {min-width: 75px; /* 300% */ + max-height: 75px; /* 150% */} + + /* h > max-height + * wmin/w < hmax/h + * + * wmin w + * |------------+------------+----------------> width + * hmax h + * |------------------+------+----------------> height + * + * target: [hmax * w/h, hmax] + */ + + #img6 {min-width: 60px; /* 40% */ + max-height: 75px; /* 50% */} + + /* h > max-height + * wmin/w > hmax/h + * + * wmin w + * |------------------+------+----------------> width + * hmax h + * |-------------+-----------+----------------> height + * + * target: [wmin, hmax] + */ + + #img7 {min-width: 75px; /* 50% */ + max-height: 75px; /* 25% */} + + /* h < min-height + * wmax/w > hmin/h + * + * w wmax + * |-------------+----------------+-----------> height + * h hmin + * |-------------+---------+------------------> width + * + * target: [hmin * w/h, hmin] + */ + + #img8 {max-width: 100px; /* 400% */ + min-height: 75px; /* 300% */} + + /* w < min-width + * wmax/w < hmin/h + * + * w wmax + * |-------------+---------+------------------> width + * h hmin + * |-------------+----------------+-----------> height + * + * target: [wmax, hmin] + */ + + #img9 {max-width: 75px; /* 150% */ + min-height: 75px; /* 300% */} + + /* (w > max-width) and (h > max-height) + * (wmin/w > hmax/h) and (wmin/w > hmax/h) + * + * wmin wmax w + * |------------------+------+-------+--------> width + * hmax h + * |-------------+-------------------+--------> height + * + * target: [wmin, hmax] + */ + + #img10 { min-width: 75px; /* 25% */ + max-width: 150px; /* 50% */ + max-height: 75px; /* 20% */} + + /* (w > max-width) and (h > max-height) + * (wmax/w > hmax/h) and (wmin/w < hmax/h) + * + * wmin wmax w + * |---------+---------------+-------+--------> width + * hmax h + * |-------------+-------------------+--------> height + * + * target: [hmax * w/h, hmax] + */ + + #img11 { min-width: 25px; /* 10% */ + max-width: 225px; /* 90% */ + max-height: 75px; /* 30% */} + + /* (w > max-width) and (h > max-height) + * (wmax/w < hmax/h) and (wmax/w < hmin/h) + * + * wmax w + * |-------------+-------------------+--------> width + * hmin hmax h + * |------------------+------+-------+--------> height + * + * target: [wmax, hmin] + */ + + #img12 { max-width: 75px; /* 20% */ + min-height: 75px; /* 25% */ + max-height: 150px; /* 50% */} + + /* (w > max-width) and (h > max-width) + * (wmax/w < hmax/h) and (wmax/w > hmin/h) + * + * wmax w + * |-------------+-------------------+--------> width + * hmin hmax h + * |---------+---------------+-------+--------> height + * + * target: [wmax, wmax * h/w] + */ + + #img13 { max-width: 75px; /* 30% */ + min-height: 25px; /* 10% */ + max-height: 225px; /* 90% */} + + /* (w < min-width) and (h < min-height) + * (wmin/w < hmin/h) and (wmax/w > hmin/h) + * + * w wmin wmax + * |----------+---------+----------+----------> width + * h hmin + * |----------+-------------+-----------------> height + * + * target: [hmin * w/h, hmin] + */ + + #img14 { min-width: 50px; /* 200% */ + max-width: 100px; /* 400% */ + min-height: 75px; /* 300% */} + + /* (w < min-width) and (h < min-height) + * (wmin/w < hmin/h) and (wmax/w < hmin/h) + * + * w wmin wmax + * |----------+---------+----------+----------> width + * h hmin + * |----------+------------------------+------> height + * + * target: [wmax, hmin] + */ + + #img15 { min-width: 55px; /* 110% */ + max-width: 75px; /* 150% */ + min-height: 75px; /* 300% */} + + /* (w < min-width) and (h < min-height) + * (wmin/w > hmin/h) and (wmin/w < hmax/h) + * + * w wmin + * |----------+-------------+-----------------> width + * h hmin hmax + * |----------+---------+----------+----------> height + * + * target: [wmin, wmin * h/w] + */ + + #img16 { min-width: 75px; /* 300% */ + min-height: 50px; /* 200% */ + max-height: 100px; /* 400% */} + + /* (w < min-width) and (h < min-height) + * (wmin/w > hmin/h) and (wmin/w > hmax/h) + * w wmin + * |----------+------------------------+------> width + * h hmin hmax + * |----------+---------+----------+----------> height + * + * target: [wmin, hmax] + */ + + #img17 { min-width: 75px; /* 300% */ + min-height: 55px; /* 110% */ + max-height: 75px; /* 150% */} + + /* (w < min-width) and (h > max-height) + * + * w wmin + * |-------------------------+-----+----------> width + * hmax h + * |------------------+------+----------------> height + * + * target: [wmin, hmax] + */ + + #img18 { min-width: 75px; /* 150% */ + max-height: 75px; /* 75% */} + + /* (w > max-width) and (h < min-height) + * + * wmax w + * |------------------+------+----------------> width + * h hmin + * |-------------------------+-----+----------> height + * + * target: [wmax, hmin] + */ + + #img19 { max-width: 75px; /* 75% */ + min-height: 75px; /* 150% */} + + ]]></style> + </head> + <body> + <div>All twenty images should be identically square.</div> + <p><img src="support/replaced-min-max.png" alt="FAIL" title="Test 0"/></p> <!-- Control --> + <p><img src="support/replaced-min-max-1.png" alt="FAIL" title="Test 1" id="img1"/></p> <!-- Wi=75, Hi=75 --> + <p><img src="support/replaced-min-max-2.png" alt="FAIL" title="Test 2" id="img2"/></p> <!-- Wi=150, Hi=150 --> + <p><img src="support/replaced-min-max-3.png" alt="FAIL" title="Test 3" id="img3"/></p> <!-- Wi=300, Hi=150 --> + <p><img src="support/replaced-min-max-4.png" alt="FAIL" title="Test 4" id="img4"/></p> <!-- Wi=25, Hi=25 --> + <p><img src="support/replaced-min-max-5.png" alt="FAIL" title="Test 5" id="img5"/></p> <!-- Wi=25, Hi=50 --> + <p><img src="support/replaced-min-max-6.png" alt="FAIL" title="Test 6" id="img6"/></p> <!-- Wi=150, Hi=150 --> + <p><img src="support/replaced-min-max-7.png" alt="FAIL" title="Test 7" id="img7"/></p> <!-- Wi=150, Hi=300 --> + <p><img src="support/replaced-min-max-8.png" alt="FAIL" title="Test 8" id="img8"/></p> <!-- Wi=25, Hi=25 --> + <p><img src="support/replaced-min-max-9.png" alt="FAIL" title="Test 9" id="img9"/></p> <!-- Wi=50, Hi=25 --> + <p><img src="support/replaced-min-max-10.png" alt="FAIL" title="Test 10" id="img10"/></p> <!-- Wi=300, Hi=375 --> + <p><img src="support/replaced-min-max-11.png" alt="FAIL" title="Test 11" id="img11"/></p> <!-- Wi=250, Hi=250 --> + <p><img src="support/replaced-min-max-12.png" alt="FAIL" title="Test 12" id="img12"/></p> <!-- Wi=375, Hi=300 --> + <p><img src="support/replaced-min-max-13.png" alt="FAIL" title="Test 13" id="img13"/></p> <!-- Wi=250, Hi=250 --> + <p><img src="support/replaced-min-max-14.png" alt="FAIL" title="Test 14" id="img14"/></p> <!-- Wi=25, Hi=25 --> + <p><img src="support/replaced-min-max-15.png" alt="FAIL" title="Test 15" id="img15"/></p> <!-- Wi=50, Hi=25 --> + <p><img src="support/replaced-min-max-16.png" alt="FAIL" title="Test 16" id="img16"/></p> <!-- Wi=25, Hi=25 --> + <p><img src="support/replaced-min-max-17.png" alt="FAIL" title="Test 17" id="img17"/></p> <!-- Wi=25, Hi=50 --> + <p><img src="support/replaced-min-max-18.png" alt="FAIL" title="Test 18" id="img18"/></p> <!-- Wi=50, Hi=100 --> + <p><img src="support/replaced-min-max-19.png" alt="FAIL" title="Test 19" id="img19"/></p> <!-- Wi=100, Hi=50 --> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/root-box-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/root-box-001-ref.xht new file mode 100644 index 0000000..fc396c4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/root-box-001-ref.xht
@@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + body + { + background-color: green; + margin: 1em; + } + + p + { + background-color: white; + padding: 1em; + } + ]]></style> + + </head> + + <body> + + <p>This text should be in a white box surrounded by green that extends to all edges of the viewport.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/root-box-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/root-box-001.xht new file mode 100644 index 0000000..2863619 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/root-box-001.xht
@@ -0,0 +1,22 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Placing the root element</title> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/root/001.xml" type="application/xhtml+xml"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#Computing_heights_and_margins" /> + <link rel="match" href="root-box-001-ref.xht" /> + + <style type="text/css"> + html { margin: 1em; border: 1em solid red; padding: 0; background: green; } + body { margin: 0; border: 0; padding: 0; background: red; } + p { margin: -1em; border: 0; padding: 1em; background: white; } + </style> + </head> + <body> + <p>This text should be in a white box surrounded by green that extends + to all edges of the viewport.</p> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/1x1-gray.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/1x1-gray.png new file mode 100644 index 0000000..4922e5f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/1x1-gray.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/1x1-green.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/1x1-green.png new file mode 100644 index 0000000..b98ca0ba --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/1x1-green.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/1x1-red.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/1x1-red.png new file mode 100644 index 0000000..6bd73ac --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/1x1-red.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/1x1-white.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/1x1-white.png new file mode 100644 index 0000000..dd43fae --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/1x1-white.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/60x60-green.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/60x60-green.png new file mode 100644 index 0000000..b3c8cf3eb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/60x60-green.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/black96x96.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/black96x96.png new file mode 100644 index 0000000..4e5a7c7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/black96x96.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/blue15x15.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/blue15x15.png new file mode 100644 index 0000000..89de32f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/blue15x15.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/blue96x96.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/blue96x96.png new file mode 100644 index 0000000..820f8cace --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/blue96x96.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/cat.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/cat.png new file mode 100644 index 0000000..85dd732 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/cat.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/diamond.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/diamond.png new file mode 100644 index 0000000..51112ef --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/diamond.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/green-rectangle-50wideBy10tall.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/green-rectangle-50wideBy10tall.png new file mode 100644 index 0000000..9f43666ee --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/green-rectangle-50wideBy10tall.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/green15x15.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/green15x15.png new file mode 100644 index 0000000..5174158 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/green15x15.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/green200x200.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/green200x200.png new file mode 100644 index 0000000..7a47c0e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/green200x200.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/intrinsic-ratio.svg b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/intrinsic-ratio.svg new file mode 100644 index 0000000..e57abd20 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/intrinsic-ratio.svg
@@ -0,0 +1,15 @@ +<?xml version="1.0" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg version="1.0" + viewBox="0 0 1000 250" preserveAspectRatio="xMinYMin meet" + xmlns="http://www.w3.org/2000/svg"> + <!-- This rectangle goes from (0,0) to (1500,1000) in user space. + Because of the viewBox attribute above, + the rectangle will end up filling the entire area + reserved for the SVG content. --> + <rect x="0" y="0" width="1000" height="250" + fill="lime" stroke="green" stroke-width="12" /> + <!-- A large, red triangle --> + <path fill="green" d="M 500,50 L 150,200 L 850,200 z"/> +</svg> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/margin-collapse-2em-space.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/margin-collapse-2em-space.png new file mode 100644 index 0000000..2c381ef --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/margin-collapse-2em-space.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/pattern-grg-rgr-grg.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/pattern-grg-rgr-grg.png new file mode 100644 index 0000000..9b88fbd --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/pattern-grg-rgr-grg.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/pattern-rgr-grg-rgr.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/pattern-rgr-grg-rgr.png new file mode 100644 index 0000000..d454e3a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/pattern-rgr-grg-rgr.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-001.svg b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-001.svg new file mode 100644 index 0000000..c0aa722 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-001.svg
@@ -0,0 +1,3 @@ +<svg xmlns="http://www.w3.org/2000/svg"> <!-- width="100%" height="100%" is implied, so intrinsic size is 100%x100% --> + <rect x="0" y="0" width="300" height="200" fill="green"/> +</svg> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-002.svg b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-002.svg new file mode 100644 index 0000000..081fb46 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-002.svg
@@ -0,0 +1,3 @@ +<svg xmlns="http://www.w3.org/2000/svg"> <!-- width="100%" height="100%" is implied, so intrinsic size is 100%x100% --> + <rect x="0" y="0" width="300" height="200" fill="red"/> +</svg> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-003.svg b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-003.svg new file mode 100644 index 0000000..9585a24 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-003.svg
@@ -0,0 +1,4 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="10 10 1 2"> + <!-- width="100%" height="100%" is implied, so intrinsic size is 100%x100% --> + <!-- intrinsic ratio is 2:1 due to viewBox --> +</svg> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-004.svg b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-004.svg new file mode 100644 index 0000000..d9ab032d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-004.svg
@@ -0,0 +1,2 @@ +<svg xmlns="http://www.w3.org/2000/svg" + width="100%" height="60px"/>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-005.svg b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-005.svg new file mode 100644 index 0000000..bc44625 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-intrinsic-005.svg
@@ -0,0 +1,2 @@ +<svg xmlns="http://www.w3.org/2000/svg" + width="60px"/>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-1.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-1.png new file mode 100644 index 0000000..6e4ec95 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-1.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-10.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-10.png new file mode 100644 index 0000000..bfdca3e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-10.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-11.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-11.png new file mode 100644 index 0000000..38ee90d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-11.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-12.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-12.png new file mode 100644 index 0000000..87433d4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-12.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-13.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-13.png new file mode 100644 index 0000000..c07d66e7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-13.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-14.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-14.png new file mode 100644 index 0000000..e89dbe9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-14.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-15.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-15.png new file mode 100644 index 0000000..717ea11 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-15.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-16.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-16.png new file mode 100644 index 0000000..0a49bbf --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-16.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-17.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-17.png new file mode 100644 index 0000000..a2ee273 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-17.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-18.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-18.png new file mode 100644 index 0000000..d18f453 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-18.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-19.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-19.png new file mode 100644 index 0000000..8900f36c4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-19.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-2.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-2.png new file mode 100644 index 0000000..5833809 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-2.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-3.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-3.png new file mode 100644 index 0000000..a7a68a2c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-3.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-4.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-4.png new file mode 100644 index 0000000..c099ae42 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-4.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-5.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-5.png new file mode 100644 index 0000000..9d9d810 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-5.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-6.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-6.png new file mode 100644 index 0000000..781f894 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-6.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-7.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-7.png new file mode 100644 index 0000000..3f91a11 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-7.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-8.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-8.png new file mode 100644 index 0000000..69951ec2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-8.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-9.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-9.png new file mode 100644 index 0000000..3ac586d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max-9.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max.png new file mode 100644 index 0000000..3ef23300 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/replaced-min-max.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/ring.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/ring.png new file mode 100644 index 0000000..061bb94 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/ring.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-aqua.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-aqua.png new file mode 100644 index 0000000..dd47e286 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-aqua.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-blue.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-blue.png new file mode 100644 index 0000000..bf27596 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-blue.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-green.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-green.png new file mode 100644 index 0000000..0aa79b0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-green.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-orange.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-orange.png new file mode 100644 index 0000000..d3cd498b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-orange.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-red.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-red.png new file mode 100644 index 0000000..1caf25c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-red.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-teal.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-teal.png new file mode 100644 index 0000000..0293ce8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/swatch-teal.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/test-bl.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/test-bl.png new file mode 100644 index 0000000..904e24e9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/test-bl.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/test-br.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/test-br.png new file mode 100644 index 0000000..f413ff5c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/test-br.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/test-tl.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/test-tl.png new file mode 100644 index 0000000..f6ac0ef --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/test-tl.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/test-tr.png b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/test-tr.png new file mode 100644 index 0000000..59843ae5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/support/test-tr.png Binary files differ
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/table-in-inline-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/table-in-inline-001-ref.xht new file mode 100644 index 0000000..b7bf352d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/table-in-inline-001-ref.xht
@@ -0,0 +1,11 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test Reference</title> + </head> + <body> + <div> + aaa + <div>bbb</div> + </div> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/table-in-inline-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/table-in-inline-001.xht new file mode 100644 index 0000000..08c7fbd --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/table-in-inline-001.xht
@@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS Test: blocks inside inlines – table-pseudo-in-part3-1</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> + <link rel="match" href="table-in-inline-001-ref.xht"/> + <meta name="flags" content="" /> + </head> + <body> + <span style="display: table-row"> + <span> + aaa + <span style="display: block"></span> + <span style="display: table-cell">bbb</span> + </span> + </span> + + +</body></html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-001.xht new file mode 100644 index 0000000..490d07b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-001.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using pixels with a minimum minus one value, -1px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'width' property sets a minimum minus one length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: 0; + width: -1px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-002.xht new file mode 100644 index 0000000..601b655f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-002.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using pixels with a minimum value, 0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a minimum length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: 0px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-003.xht new file mode 100644 index 0000000..60029cc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-003.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using pixels with a minimum plus one value, 1px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a minimum plus one length value in pixels." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + width: 1px; + } + </style> + </head> + <body> + <p>Test passes if there is a thin vertical line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-004.xht new file mode 100644 index 0000000..8aa42e1b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-004.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using pixels with a negative zero value, -0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a negative zero length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: -0px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-005.xht new file mode 100644 index 0000000..4bd294b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-005.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using pixels with a positive zero value, +0px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive zero length value in pixels." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: +0px; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-006.xht new file mode 100644 index 0000000..7928a443 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-006.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using pixels with a nominal value, 96px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a nominal length value in pixels." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + width: 96px; + } + #div2 + { + border-left: 96px solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-007.xht new file mode 100644 index 0000000..ed455fef --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-007.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using pixels with a positive nominal value, +96px</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive nominal length value in pixels." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + width: +96px; + } + #div2 + { + border-left: 96px solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-012.xht new file mode 100644 index 0000000..a4d6749 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-012.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using points with a minimum minus one value, -1pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'width' property sets a minimum minus one length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: 0; + width: -1pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-013.xht new file mode 100644 index 0000000..8ab639a1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-013.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using points with a minimum value, 0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a minimum length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: 0pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-014.xht new file mode 100644 index 0000000..62ce260 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-014.xht
@@ -0,0 +1,24 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using points with a minimum plus one value, 1pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a minimum plus one length value in points." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + width: 1pt; + } + </style> + </head> + <body> + <p>Test passes if there is a thin vertical line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-015.xht new file mode 100644 index 0000000..dbc393f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-015.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using points with a negative zero value, -0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a negative zero length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: -0pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-016.xht new file mode 100644 index 0000000..263d3553 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-016.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using points with a positive zero value, +0pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive zero length value in points." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: +0pt; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-017.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-017.xht new file mode 100644 index 0000000..da6f9f6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-017.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using points with a nominal value, 72pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a nominal length value in points." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + width: 72pt; + } + #div2 + { + border-left: 72pt solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-018.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-018.xht new file mode 100644 index 0000000..8078f26f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-018.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using points with a positive nominal value, +72pt</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive nominal length value in points." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + width: +72pt; + } + #div2 + { + border-left: 72pt solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-023.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-023.xht new file mode 100644 index 0000000..ef7537f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-023.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using picas with a minimum minus one value, -1pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'width' property sets a minimum minus one length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: 0; + width: -1pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-024.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-024.xht new file mode 100644 index 0000000..c3b52842 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-024.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using picas with a minimum value, 0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a minimum length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: 0pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-025.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-025.xht new file mode 100644 index 0000000..8afef09 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-025.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using picas with a minimum plus one value, 1pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-025-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a minimum plus one length value in picas." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + width: 1pc; + } + </style> + </head> + <body> + <p>Test passes if there is a vertical black bar.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-026.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-026.xht new file mode 100644 index 0000000..f73ceca0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-026.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using picas with a negative zero value, -0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a negative zero length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: -0pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-027.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-027.xht new file mode 100644 index 0000000..69fa7af --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-027.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using picas with a positive zero value, +0pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive zero length value in picas." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: +0pc; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-028.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-028.xht new file mode 100644 index 0000000..efbd9e1b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-028.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using picas with a nominal value, 6pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a nominal length value in picas." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + width: 6pc; + } + #div2 + { + border-left: 6pc solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-029.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-029.xht new file mode 100644 index 0000000..19b67469 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-029.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using picas with a positive nominal value, +6pc</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive nominal length value in picas." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + width: +6pc; + } + #div2 + { + border-left: 6pc solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-034.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-034.xht new file mode 100644 index 0000000..12b1c3c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-034.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using centimeters with a minimum minus one value, -1cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'width' property sets a minimum minus one length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: 0; + width: -1cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-035.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-035.xht new file mode 100644 index 0000000..36d487f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-035.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using centimeters with a minimum value, 0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a minimum length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: 0cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-036.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-036.xht new file mode 100644 index 0000000..eeea904 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-036.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using centimeters with a minimum plus one value, 1cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-036-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a minimum plus one length value in centimeters." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + width: 1cm; + } + </style> + </head> + <body> + <p>Test passes if there is a black rectangle.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-037.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-037.xht new file mode 100644 index 0000000..c19892e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-037.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using centimeters with a negative zero value, -0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a negative zero length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: -0cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-038.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-038.xht new file mode 100644 index 0000000..345091e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-038.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using centimeters with a positive zero value, +0cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive zero length value in centimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: +0cm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-039.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-039.xht new file mode 100644 index 0000000..ab8097a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-039.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using centimeters with a nominal value, 2.54cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a nominal length value in centimeters." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + width: 2.54cm; + } + #div2 + { + border-left: 2.54cm solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-040.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-040.xht new file mode 100644 index 0000000..a41766e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-040.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using centimeters with a positive nominal value, +2.54cm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive nominal length value in centimeters." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + width: +2.54cm; + } + #div2 + { + border-left: 2.54cm solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-045.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-045.xht new file mode 100644 index 0000000..0090d2f3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-045.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using millimeters with a minimum minus one value, -1mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'width' property sets a minimum minus one length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: 0; + width: -1mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-046.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-046.xht new file mode 100644 index 0000000..16e89e0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-046.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using millimeters with a minimum value, 0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a minimum length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: 0mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-047.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-047.xht new file mode 100644 index 0000000..499fe9e2 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-047.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using millimeters with a minimum plus one value, 1mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-047-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a minimum plus one length value in millimeters." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + width: 1mm; + } + </style> + </head> + <body> + <p>Test passes if there is a vertical line.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-048.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-048.xht new file mode 100644 index 0000000..8658275 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-048.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using millimeters with a negative zero value, -0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a negative zero length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: -0mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-049.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-049.xht new file mode 100644 index 0000000..0633033f --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-049.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using millimeters with a positive zero value, +0mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive zero length value in millimeters." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: +0mm; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-050.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-050.xht new file mode 100644 index 0000000..91a6e36 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-050.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using millimeters with a nominal value, 25.4mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a nominal length value in millimeters." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + width: 25.4mm; + } + #div2 + { + border-left: 25.4mm solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-051.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-051.xht new file mode 100644 index 0000000..3155165a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-051.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using millimeters with a positive nominal value, +25.4mm</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive nominal length value in millimeters." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + width: +25.4mm; + } + #div2 + { + border-left: 25.4mm solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-056.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-056.xht new file mode 100644 index 0000000..15a4e31 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-056.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using inches with a minimum minus one value, -1in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'width' property sets a minimum minus one length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: 0; + width: -1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-057.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-057.xht new file mode 100644 index 0000000..8070cc05 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-057.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using inches with a minimum value, 0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a minimum length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: 0in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-058.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-058.xht new file mode 100644 index 0000000..e34bacb --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-058.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using inches with a minimum plus one value, 1in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a minimum plus one length value in inches." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-059.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-059.xht new file mode 100644 index 0000000..2d20011 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-059.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using inches with a negative zero value, -0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a negative zero length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: -0in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-060.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-060.xht new file mode 100644 index 0000000..6f44323 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-060.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using inches with a positive zero value, +0in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive zero length value in inches." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: +0in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-061.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-061.xht new file mode 100644 index 0000000..80d3ce73 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-061.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using inches with a nominal value, 3in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-061-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a nominal length value in inches." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + width: 3in; + } + #div2 + { + border-left: 3in solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-062.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-062.xht new file mode 100644 index 0000000..67edf2c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-062.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using inches with a positive nominal value, +3in</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-061-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive nominal length value in inches." /> + <style type="text/css"> + #div1 + { + background: black; + height: 1in; + width: +3in; + } + #div2 + { + border-left: 3in solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-067.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-067.xht new file mode 100644 index 0000000..3c8b64a1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-067.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using 'em' units with a minimum minus one value, -1em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem invalid" /> + <meta name="assert" content="The 'width' property sets a minimum minus one length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + width: 0; + width: -1em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-068.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-068.xht new file mode 100644 index 0000000..72d3e3d1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-068.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using 'em' units with a minimum value, 0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'width' property sets a minimum length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + width: 0em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-069.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-069.xht new file mode 100644 index 0000000..13fded5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-069.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using 'em' units with a minimum plus one value, 1em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-069-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'width' property sets a minimum plus one length value in 'em' units." /> + <style type="text/css"> + div + { + background: black; + font: 20px/1 Ahem; + height: 1in; + width: 1em; + } + </style> + </head> + <body> + <p>Test passes if there is a vertical black stripe.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-070.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-070.xht new file mode 100644 index 0000000..e3796cdb0 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-070.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using 'em' units with a negative zero value, -0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'width' property sets a negative zero length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + width: -0em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-071.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-071.xht new file mode 100644 index 0000000..4d11bfc9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-071.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using 'em' units with a positive zero value, +0em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'width' property sets a positive zero length value in 'em' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + width: +0em; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-072.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-072.xht new file mode 100644 index 0000000..b62d077 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-072.xht
@@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using 'em' units with a nominal value, 6em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-072-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'width' property sets a nominal length value in 'em' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + } + #div1 + { + background: black; + height: 1in; + width: 6em; + } + #div2 + { + border-left: 6em solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-073.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-073.xht new file mode 100644 index 0000000..d2cb1d9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-073.xht
@@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using 'em' units with a positive nominal value, +6em</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-072-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'width' property sets a positive nominal length value in 'em' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + } + #div1 + { + background: black; + height: 1in; + width: +6em; + } + #div2 + { + border-left: 6em solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black rectangles have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-078.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-078.xht new file mode 100644 index 0000000..9d83072 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-078.xht
@@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using 'ex' units with a minimum minus one value, -1ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem invalid" /> + <meta name="assert" content="The 'width' property sets a minimum minus one length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + width: 0; + width: -1ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-079.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-079.xht new file mode 100644 index 0000000..e1de0dd --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-079.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using 'ex' units with a minimum value, 0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'width' property sets a minimum length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + width: 0ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-080.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-080.xht new file mode 100644 index 0000000..2f1fc50 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-080.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using 'ex' units with a minimum plus one value, 1ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-025-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'width' property sets a minimum plus one length value in 'ex' units." /> + <style type="text/css"> + div + { + background: black; + font: 20px/1 Ahem; + height: 1in; + width: 1ex; + } + </style> + </head> + <body> + <p>Test passes if there is a vertical black bar.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-081.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-081.xht new file mode 100644 index 0000000..df4e9cbc --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-081.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using 'ex' units with a negative zero value, -0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'width' property sets a negative zero length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + width: -0ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-082.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-082.xht new file mode 100644 index 0000000..fdf718aa --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-082.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using 'ex' units with a positive zero value, +0ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'width' property sets a positive zero length value in 'ex' units." /> + <style type="text/css"> + div + { + background: red; + font: 20px/1 Ahem; + height: 1in; + width: +0ex; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-083.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-083.xht new file mode 100644 index 0000000..3b93205 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-083.xht
@@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using 'ex' units with a nominal value, 6ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'width' property sets a nominal length value in 'ex' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + } + #div1 + { + background: black; + height: 1in; + width: 6ex; + } + #div2 + { + border-left: 1in solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-084.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-084.xht new file mode 100644 index 0000000..0d62df4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-084.xht
@@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using 'ex' units with a positive nominal value, +6ex</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="ahem" /> + <meta name="assert" content="The 'width' property sets a positive nominal length value in 'ex' units." /> + <style type="text/css"> + div + { + font: 20px/1 Ahem; + } + #div1 + { + background: black; + height: 1in; + width: +6ex; + } + #div2 + { + border-left: 1in solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-089.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-089.xht new file mode 100644 index 0000000..29318bdd --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-089.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using percentages with a minimum minus one value, -1%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="invalid" /> + <meta name="assert" content="The 'width' property sets a minimum minus one length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + div div + { + background: red; + height: 1in; + width: 0; + width: -1%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-090.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-090.xht new file mode 100644 index 0000000..e3cbe0fa --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-090.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using percentages with a minimum value, 0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a minimum length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + div div + { + background: red; + height: 1in; + width: 0%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-091.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-091.xht new file mode 100644 index 0000000..d7a612cf --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-091.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using percentages with a minimum plus one value, 1%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a minimum plus one length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 100px; + } + div div + { + background: black; + height: 1in; + width: 1%; + } + </style> + </head> + <body> + <p>Test passes if there is a thin vertical line.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-092.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-092.xht new file mode 100644 index 0000000..b9092770 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-092.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using percentages with a negative zero value, -0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a negative zero length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + div div + { + background: red; + height: 1in; + width: -0%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-093.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-093.xht new file mode 100644 index 0000000..20eb4c8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-093.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using percentages with a positive zero value, +0%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive zero length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + div div + { + background: red; + height: 1in; + width: +0%; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-094.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-094.xht new file mode 100644 index 0000000..04725eff --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-094.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using percentages with a nominal value, 100%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a nominal length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + #div2 + { + background: black; + height: 1in; + width: 100%; + } + #div3 + { + border-left: 1in solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-095.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-095.xht new file mode 100644 index 0000000..5c1e092 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-095.xht
@@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width using percentages with a positive nominal value, +100%</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-006-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive nominal length value in percentages." /> + <style type="text/css"> + #div1 + { + width: 1in; + } + #div2 + { + background: black; + height: 1in; + width: +100%; + } + #div3 + { + border-left: 1in solid black; + height: 1in; + margin-top: 4px; + } + </style> + </head> + <body> + <p>Test passes if 2 black squares have the <strong>same width</strong>.</p> + <div id="div1"> + <div id="div2"></div> + <div id="div3"></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-100.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-100.xht new file mode 100644 index 0000000..a43c19c --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-100.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width with a negative zero value and no units, -0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a negative zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: -0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-101.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-101.xht new file mode 100644 index 0000000..0f0f41a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-101.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width with a zero value and no units, 0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: 0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-102.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-102.xht new file mode 100644 index 0000000..a975d84 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-102.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width with a positive zero value and no units, +0</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property sets a positive zero length value with no units." /> + <style type="text/css"> + div + { + background: red; + height: 1in; + width: +0; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-103-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-103-ref.xht new file mode 100644 index 0000000..c22ed60 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-103-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + background-color: black; + height: 96px; + width: 100%; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if there is a wide black rectangle.</p> + + <div></div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-103.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-103.xht new file mode 100644 index 0000000..558c0ca --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-103.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width set to a value of 'auto'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="width-103-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property applies a value of 'auto'." /> + <style type="text/css"> + div + { + background: black; + height: 1in; + width: 0; + width: auto; + } + </style> + </head> + <body> + <p>Test passes if there is a wide black rectangle.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-104.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-104.xht new file mode 100644 index 0000000..90bc7b01 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-104.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width set to 'inherit'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-003-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property properly inherits the width value of the parent." /> + <style type="text/css"> + #div1 + { + width: 1px; + } + div div + { + background: black; + height: 1in; + width: 0; + width: inherit; + } + </style> + </head> + <body> + <p>Test passes if there is a thin vertical line.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-001.xht new file mode 100644 index 0000000..e679b34 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-001.xht
@@ -0,0 +1,57 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements with 'display' set to 'table-row-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property does not apply to elements with 'display' set to 'table-row-group'." /> + <style type="text/css"> + #test + { + background-color: black; + display: table-row-group; + width: 0in; + } + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + .row + { + display: table-row; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div id="test"> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-002.xht new file mode 100644 index 0000000..62ec650d --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-002.xht
@@ -0,0 +1,56 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements with 'display' set to 'table-header-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property does not apply to elements with 'display' set to 'table-header-group'." /> + <style type="text/css"> + #test + { + background-color: black; + display: table-header-group; + width: 0in; + } + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + .row + { + display: table-row; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div id="test"> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-003.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-003.xht new file mode 100644 index 0000000..6b9f8a5a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-003.xht
@@ -0,0 +1,56 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements with 'display' set to 'table-footer-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property does not apply to elements with 'display' set to 'table-footer-group'." /> + <style type="text/css"> + #test + { + background-color: black; + display: table-footer-group; + width: 0in; + } + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + .row + { + display: table-row; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div id="test"> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-004.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-004.xht new file mode 100644 index 0000000..f5aee1b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-004.xht
@@ -0,0 +1,49 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements with 'display' set to 'table-row'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property does not apply to elements with 'display' set to 'table-row'." /> + <style type="text/css"> + #table + { + display: table; + table-layout: fixed; + width: 1in; + } + .row + { + background-color: black; + display: table-row; + width: 0in; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-005.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-005.xht new file mode 100644 index 0000000..096e41e --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-005.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements with 'display' set to 'table-column-group'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../../reference/pass_if_square_96px_black.html"/> + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property applies to elements with 'display' set to 'table-column-group'." /> + <style type="text/css"> + #test + { + display: table-column-group; + width: 1in; + } + + #table + { + display: table; + table-layout: fixed; + } + #row + { + display: table-row; + } + #cell + { + background: black; + display: table-cell; + height: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a square below.</p> + <div id="table"> + <div id="test"></div> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-006.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-006.xht new file mode 100644 index 0000000..82e54e5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-006.xht
@@ -0,0 +1,58 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements with 'display' set to 'table-column'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-07 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property applies to elements with 'display' set to 'table-column'." /> + <style type="text/css"> + .test + { + background: black; + display: table-column; + width: 0.5in; + } + + #table + { + display: table; + table-layout: fixed; + width: 2in; + } + .row + { + display: table-row; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div class="test"></div> + <div class="test"></div> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div><div class="cell"></div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div><div class="cell"></div> + </div> + + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-007.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-007.xht new file mode 100644 index 0000000..049aa1b --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-007.xht
@@ -0,0 +1,47 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements with 'display' set to 'table-cell'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-07 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property applies to elements with 'display' set to 'table-cell'." /> + <style type="text/css"> + #table + { + display: table; + } + .row + { + display: table-row; + } + .cell + { + background: black; + display: table-cell; + height: 0.5in; + width: 0.5in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-008.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-008.xht new file mode 100644 index 0000000..fbe4694 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-008.xht
@@ -0,0 +1,27 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements with 'display' set to 'inline'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-07 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property does not apply to elements with 'display' set to 'inline'." /> + <style type="text/css"> + div + { + background: red; + display: inline; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-009.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-009.xht new file mode 100644 index 0000000..3e788f3 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-009.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements with 'display' set to 'block'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-07 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property applies to elements with 'display' set to 'block'." /> + <style type="text/css"> + span + { + background: black; + display: block; + height: 1in; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div> + <span></span> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-010.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-010.xht new file mode 100644 index 0000000..f2d706f6 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-010.xht
@@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements with 'display' set to 'list-item'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-07 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property applies to elements with 'display' set to 'list-item'." /> + <style type="text/css"> + div + { + background: black; + display: list-item; + height: 1in; + margin-left: 2em; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square and a marker bullet on its left-hand side.</p> + <div></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-012.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-012.xht new file mode 100644 index 0000000..7346ee1 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-012.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements with 'display' set to 'inline-block'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-07 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property applies to elements with 'display' set to 'inline-block'." /> + <style type="text/css"> + span#inline-block + { + background-color: black; + display: inline-block; + width: 1in; + } + + span.block-descendant + { + display: block; + height: 0.5in; + } + </style> + </head> + <body> + + <p>Test passes if there is a filled black square.</p> + + <div> + <span id="inline-block"> + <span class="block-descendant">a</span> + <span class="block-descendant">b</span> + </span> + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-013.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-013.xht new file mode 100644 index 0000000..c7ce046 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-013.xht
@@ -0,0 +1,49 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements with 'display' set to 'table'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-07 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property applies to elements with 'display' set to 'table'." /> + <style type="text/css"> + #table + { + background-color: black; + display: table; + table-layout: fixed; + width: 1in; + } + .row + { + display: table-row; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-014.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-014.xht new file mode 100644 index 0000000..21869f8 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-014.xht
@@ -0,0 +1,49 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements with 'display' set to 'inline-table'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-07 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property applies to elements with 'display' set to 'inline-table'." /> + <style type="text/css"> + #table + { + background-color: black; + display: inline-table; + table-layout: fixed; + width: 1in; + } + .row + { + display: table-row; + } + .cell + { + display: table-cell; + height: 0.5in; + } + </style> + </head> + <body> + + <p>Test passes if there is a filled black square.</p> + + <div id="table"> + + <div class="row"> + <div class="cell">a</div><div class="cell">b</div> + </div> + + <div class="row"> + <div class="cell">c</div><div class="cell">d</div> + </div> + + </div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-015.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-015.xht new file mode 100644 index 0000000..5052c0a7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-015.xht
@@ -0,0 +1,44 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements with 'display' set to 'table-caption'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-07 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-filled-black-96px-square.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="The 'width' property applies to elements with 'display' set to 'table-caption'." /> + <style type="text/css"> + #table + { + display: table; + } + #caption + { + background: black; + display: table-caption; + height: 1in; + width: 1in; + } + #row + { + display: table-row; + } + #cell + { + display: table-cell; + } + </style> + </head> + <body> + <p>Test passes if there is a filled black square.</p> + <div id="table"> + <div id="caption"></div> + <div id="row"> + <div id="cell"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-016.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-016.xht new file mode 100644 index 0000000..f157398 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-applies-to-016.xht
@@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width applied to elements set to 'display: none'</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-12-03 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-width" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Width can be declared onto 'display: none' elements but since 'display: none' declaration on an element does not generate a CSS box, then it won't have a rendering effect nor a visual formatting repercussion." /> + <style type="text/css"> + div div + { + display: none; + width: 1in; + } + div + { + background: red; + height: 1in; + position: absolute; + } + </style> + </head> + <body> + <p>Test passes if there is <strong>no red</strong>.</p> + <div id="div1"> + <div></div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-inherit-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-inherit-001.xht new file mode 100644 index 0000000..18583f4 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-inherit-001.xht
@@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" + "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Inheriting Explicit Widths</title> + <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-07 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style"/> + <link rel="match" href="block-non-replaced-width-001-ref.xht" /> + + + <meta name="flags" content=""/> + <meta name="assert" content="The computed width is inherited, even if the + 'width' property does not apply."/> + <style type="text/css"> + .outer { + width: 9.375em; /* 150px */ + } + .inner { + display: block; + width: inherit; + height: 1.875em; /* 30px */ + background: orange; + } + .control { + width: 9.375em; + height: 1.875em; + background: blue; + } + </style> + </head> + <body> + <p>Test passes if the orange and blue rectangles have the <strong>same width</strong>.</p> + + <div><span class="outer"><span class="inner"></span></span></div> + <div class="control"></div> + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-non-replaced-inline-001-ref.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-non-replaced-inline-001-ref.xht new file mode 100644 index 0000000..21152ed --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-non-replaced-inline-001-ref.xht
@@ -0,0 +1,29 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Reftest Reference</title> + + <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + + <style type="text/css"><![CDATA[ + div + { + border-right: black solid 5px; + border-left: black solid 5px; + float: left; + } + ]]></style> + + </head> + + <body> + + <p>Test passes if the left and right borders start and end where the 'Filler Text' does.</p> + + <div>Filler Text Filler Text Filler Text Filler Text</div> + + </body> +</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-non-replaced-inline-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-non-replaced-inline-001.xht new file mode 100644 index 0000000..87d73f9 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-non-replaced-inline-001.xht
@@ -0,0 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width of non-replaced inline element should be the same as its content</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-07 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="width-non-replaced-inline-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Content width of a non-replaced inline element is that of the rendered content." /> + <style type="text/css"> + div + { + border-right: black solid 5px; + border-left: black solid 5px; + float: left; + } + </style> + </head> + <body> + <p>Test passes if the left and right borders start and end where the 'Filler Text' does.</p> + <div>Filler Text Filler Text Filler Text Filler Text</div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-percentage-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-percentage-001.xht new file mode 100644 index 0000000..d73f255 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-percentage-001.xht
@@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Calculating percentage based width off of the parent container</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-07 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-percentage-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Percentage is calculated with respect to the width of the generated boxes containing block." /> + <style type="text/css"> + div + { + height: 1in; + } + #div1 + { + width: 2in; + } + div div + { + background-color: blue; + width: 50%; + } + #div2 + { + background-color: orange; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same width</strong>.</p> + <div id="div1"> + <div></div> + </div> + <div id="div2"></div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-percentage-002.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-percentage-002.xht new file mode 100644 index 0000000..772015a --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-percentage-002.xht
@@ -0,0 +1,53 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Calculating widths for absolutely positioned elements</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-07 --> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <link rel="match" href="max-width-percentage-001-ref.xht" /> + + <meta name="flags" content="" /> + <meta name="assert" content="Absolutely positioned elements whose containing block is based on a block-level element, the percentage is calculated with respect to the width of the padding box of that element." /> + <style type="text/css"> + #div1 + { + background: blue; + width: 1in; + } + #div2 + { + position: relative; + } + #div3 + { + padding: 0 0.5in; + width: 1in; + } + #div4 + { + width: 50%; + background: orange; + } + #div1, #div3, #div4 + { + height: 1in; + } + #div3, #div4 + { + left: 0; + position: absolute; + top: 0; + } + </style> + </head> + <body> + <p>Test passes if the blue and orange squares have the <strong>same width</strong>.</p> + <div id="div1"></div> + <div id="div2"> + <div id="div3"> + <div id="div4"></div> + </div> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-replaced-element-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-replaced-element-001.xht new file mode 100644 index 0000000..91ce155 --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-replaced-element-001.xht
@@ -0,0 +1,36 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Scaling replaced elements with a width specified can scale the image</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <meta name="flags" content="image may" /> + <meta name="assert" content="Replaced elements width may be scaled by the user agent when the value of the property is not 'auto'." /> + <style type="text/css"> + div + { + position: relative; + } + div div + { + background: orange; + height: 15px; + width: 15px; + } + img + { + position: absolute; + left: 0.25in; + top: 0; + width: 1in; + } + </style> + </head> + <body> + <p>Test passes if the blue square is the same size or larger than the orange square.</p> + <div> + <div></div> + <img alt="blue 15x15" src="support/blue15x15.png" /> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-undefined-001.xht b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-undefined-001.xht new file mode 100644 index 0000000..89428fba --- /dev/null +++ b/third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/width-undefined-001.xht
@@ -0,0 +1,32 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Width of containing block is determined by with of child</title> + <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" /> + <meta name="flags" content="ahem" /> + <meta name="assert" content="The containing block's width depends on this element's width because the resulting layout has not been defined in CSS2.1." /> + <style type="text/css"> + #span1 + { + background-color: red; + font: 1in/1em Ahem; + left: 10px; + position: absolute; + top: 10px; + } + p + { + margin-top: 1.1in; + } + </style> + </head> + <body> + <p>Test passes if there is no red visible on the page.</p> + <div> + <span id="span1"> + <span>XX</span> + </span> + </div> + </body> +</html> \ No newline at end of file
diff --git a/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-createEvent-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-createEvent-expected.txt index 6771837..727ee6ad 100644 --- a/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-createEvent-expected.txt +++ b/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-createEvent-expected.txt
@@ -1,5 +1,5 @@ This is a testharness.js-based test. -Found 331 tests; 305 PASS, 26 FAIL, 0 TIMEOUT, 0 NOTRUN. +Found 331 tests; 306 PASS, 25 FAIL, 0 TIMEOUT, 0 NOTRUN. PASS AnimationEvent should be an alias for AnimationEvent. PASS createEvent('AnimationEvent') should be initialized correctly. PASS animationevent should be an alias for AnimationEvent. @@ -331,9 +331,7 @@ PASS Should throw NOT_SUPPORTED_ERR for pluralized non-legacy event interface "SyncEvents" PASS Should throw NOT_SUPPORTED_ERR for non-legacy event interface "TimeEvent" PASS Should throw NOT_SUPPORTED_ERR for pluralized non-legacy event interface "TimeEvents" -FAIL Should throw NOT_SUPPORTED_ERR for non-legacy event interface "WebKitAnimationEvent" assert_throws: function "function () { - var evt = document.createEvent(eventInterface); - }" did not throw +PASS Should throw NOT_SUPPORTED_ERR for non-legacy event interface "WebKitAnimationEvent" PASS Should throw NOT_SUPPORTED_ERR for pluralized non-legacy event interface "WebKitAnimationEvents" FAIL Should throw NOT_SUPPORTED_ERR for non-legacy event interface "WebKitTransitionEvent" assert_throws: function "function () { var evt = document.createEvent(eventInterface);
diff --git a/third_party/WebKit/LayoutTests/fast/events/event-creation-expected.txt b/third_party/WebKit/LayoutTests/fast/events/event-creation-expected.txt index f4789d0f..8792b3c99 100644 --- a/third_party/WebKit/LayoutTests/fast/events/event-creation-expected.txt +++ b/third_party/WebKit/LayoutTests/fast/events/event-creation-expected.txt
@@ -91,9 +91,6 @@ PASS document.createEvent('TransitionEvent') instanceof window.TransitionEvent is true PASS document.createEvent('TransitionEvent') instanceof window.Event is true PASS document.createEvent('TransitionEvent').constructor === window.TransitionEvent is true -PASS document.createEvent('WebKitAnimationEvent') instanceof window.WebKitAnimationEvent is true -PASS document.createEvent('WebKitAnimationEvent') instanceof window.Event is true -PASS document.createEvent('WebKitAnimationEvent').constructor === window.WebKitAnimationEvent is true PASS document.createEvent('WebKitTransitionEvent') instanceof window.WebKitTransitionEvent is true PASS document.createEvent('WebKitTransitionEvent') instanceof window.Event is true PASS document.createEvent('WebKitTransitionEvent').constructor === window.WebKitTransitionEvent is true
diff --git a/third_party/WebKit/LayoutTests/fast/events/event-creation.html b/third_party/WebKit/LayoutTests/fast/events/event-creation.html index e363cdf..0e2db8b 100644 --- a/third_party/WebKit/LayoutTests/fast/events/event-creation.html +++ b/third_party/WebKit/LayoutTests/fast/events/event-creation.html
@@ -135,11 +135,6 @@ shouldBeTrue("document.createEvent('TransitionEvent') instanceof window.Event"); shouldBeTrue("document.createEvent('TransitionEvent').constructor === window.TransitionEvent"); - // WebKitAnimationEvent - shouldBeTrue("document.createEvent('WebKitAnimationEvent') instanceof window.WebKitAnimationEvent"); - shouldBeTrue("document.createEvent('WebKitAnimationEvent') instanceof window.Event"); - shouldBeTrue("document.createEvent('WebKitAnimationEvent').constructor === window.WebKitAnimationEvent"); - // WebKitTransitionEvent shouldBeTrue("document.createEvent('WebKitTransitionEvent') instanceof window.WebKitTransitionEvent"); shouldBeTrue("document.createEvent('WebKitTransitionEvent') instanceof window.Event");
diff --git a/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp b/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp index 3bb73119..ee180e7 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp
@@ -14,7 +14,7 @@ namespace blink { ActiveScriptWrappableBase::ActiveScriptWrappableBase() { - ASSERT(ThreadState::Current()); + DCHECK(ThreadState::Current()); v8::Isolate* isolate = ThreadState::Current()->GetIsolate(); V8PerIsolateData* isolate_data = V8PerIsolateData::From(isolate); isolate_data->AddActiveScriptWrappable(this);
diff --git a/third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h b/third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h index 36d10dd..da4e201 100644 --- a/third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h +++ b/third_party/WebKit/Source/bindings/core/v8/DOMDataStore.h
@@ -163,8 +163,8 @@ static bool HolderContainsWrapper(v8::Local<v8::Object> holder, const ScriptWrappable* wrappable) { // Verify our assumptions about the main world. - ASSERT(wrappable); - ASSERT(!wrappable->ContainsWrapper() || !wrappable->IsEqualTo(holder) || + DCHECK(wrappable); + DCHECK(!wrappable->ContainsWrapper() || !wrappable->IsEqualTo(holder) || Current(v8::Isolate::GetCurrent()).is_main_world_); return wrappable->IsEqualTo(holder); }
diff --git a/third_party/WebKit/Source/bindings/core/v8/DOMWrapperMap.h b/third_party/WebKit/Source/bindings/core/v8/DOMWrapperMap.h index 8928bda..976baea 100644 --- a/third_party/WebKit/Source/bindings/core/v8/DOMWrapperMap.h +++ b/third_party/WebKit/Source/bindings/core/v8/DOMWrapperMap.h
@@ -83,7 +83,7 @@ void Clear() { map_.Clear(); } void RemoveAndDispose(KeyType* key) { - ASSERT(ContainsKey(key)); + DCHECK(ContainsKey(key)); map_.Remove(key); }
diff --git a/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp b/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp index 6b35870..21331ec 100644 --- a/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp
@@ -135,7 +135,7 @@ } DOMWrapperWorld& DOMWrapperWorld::MainWorld() { - ASSERT(IsMainThread()); + DCHECK(IsMainThread()); DEFINE_STATIC_REF( DOMWrapperWorld, cached_main_world, (DOMWrapperWorld::Create(v8::Isolate::GetCurrent(), WorldType::kMain))); @@ -167,7 +167,7 @@ } DOMWrapperWorld::~DOMWrapperWorld() { - ASSERT(!IsMainWorld()); + DCHECK(!IsMainWorld()); if (IsMainThread()) number_of_non_main_worlds_in_main_thread_--; @@ -187,7 +187,9 @@ PassRefPtr<DOMWrapperWorld> DOMWrapperWorld::EnsureIsolatedWorld( v8::Isolate* isolate, int world_id) { - ASSERT(IsIsolatedWorldId(world_id)); +#if DCHECK_IS_ON() + DCHECK(IsIsolatedWorldId(world_id)); +#endif WorldMap& map = GetWorldMap(); auto it = map.Find(world_id); @@ -203,13 +205,13 @@ typedef HashMap<int, RefPtr<SecurityOrigin>> IsolatedWorldSecurityOriginMap; static IsolatedWorldSecurityOriginMap& IsolatedWorldSecurityOrigins() { - ASSERT(IsMainThread()); + DCHECK(IsMainThread()); DEFINE_STATIC_LOCAL(IsolatedWorldSecurityOriginMap, map, ()); return map; } SecurityOrigin* DOMWrapperWorld::IsolatedWorldSecurityOrigin() { - ASSERT(this->IsIsolatedWorld()); + DCHECK(this->IsIsolatedWorld()); IsolatedWorldSecurityOriginMap& origins = IsolatedWorldSecurityOrigins(); IsolatedWorldSecurityOriginMap::iterator it = origins.Find(GetWorldId()); return it == origins.end() ? 0 : it->value.Get(); @@ -218,7 +220,9 @@ void DOMWrapperWorld::SetIsolatedWorldSecurityOrigin( int world_id, PassRefPtr<SecurityOrigin> security_origin) { - ASSERT(IsIsolatedWorldId(world_id)); +#if DCHECK_IS_ON() + DCHECK(IsIsolatedWorldId(world_id)); +#endif if (security_origin) IsolatedWorldSecurityOrigins().Set(world_id, std::move(security_origin)); else @@ -227,7 +231,7 @@ typedef HashMap<int, String> IsolatedWorldHumanReadableNameMap; static IsolatedWorldHumanReadableNameMap& IsolatedWorldHumanReadableNames() { - ASSERT(IsMainThread()); + DCHECK(IsMainThread()); DEFINE_STATIC_LOCAL(IsolatedWorldHumanReadableNameMap, map, ()); return map; } @@ -240,20 +244,22 @@ void DOMWrapperWorld::SetIsolatedWorldHumanReadableName( int world_id, const String& human_readable_name) { - ASSERT(IsIsolatedWorldId(world_id)); +#if DCHECK_IS_ON() + DCHECK(IsIsolatedWorldId(world_id)); +#endif IsolatedWorldHumanReadableNames().Set(world_id, human_readable_name); } typedef HashMap<int, bool> IsolatedWorldContentSecurityPolicyMap; static IsolatedWorldContentSecurityPolicyMap& IsolatedWorldContentSecurityPolicies() { - ASSERT(IsMainThread()); + DCHECK(IsMainThread()); DEFINE_STATIC_LOCAL(IsolatedWorldContentSecurityPolicyMap, map, ()); return map; } bool DOMWrapperWorld::IsolatedWorldHasContentSecurityPolicy() { - ASSERT(this->IsIsolatedWorld()); + DCHECK(this->IsIsolatedWorld()); IsolatedWorldContentSecurityPolicyMap& policies = IsolatedWorldContentSecurityPolicies(); IsolatedWorldContentSecurityPolicyMap::iterator it = @@ -264,7 +270,9 @@ void DOMWrapperWorld::SetIsolatedWorldContentSecurityPolicy( int world_id, const String& policy) { - ASSERT(IsIsolatedWorldId(world_id)); +#if DCHECK_IS_ON() + DCHECK(IsIsolatedWorldId(world_id)); +#endif if (!policy.IsEmpty()) IsolatedWorldContentSecurityPolicies().Set(world_id, true); else @@ -285,7 +293,7 @@ void DOMWrapperWorld::RegisterDOMObjectHolderInternal( std::unique_ptr<DOMObjectHolderBase> holder_base) { - ASSERT(!dom_object_holders_.Contains(holder_base.get())); + DCHECK(!dom_object_holders_.Contains(holder_base.get())); holder_base->SetWorld(this); holder_base->SetWeak(&DOMWrapperWorld::WeakCallbackForDOMObjectHolder); dom_object_holders_.insert(std::move(holder_base)); @@ -293,7 +301,7 @@ void DOMWrapperWorld::UnregisterDOMObjectHolder( DOMObjectHolderBase* holder_base) { - ASSERT(dom_object_holders_.Contains(holder_base)); + DCHECK(dom_object_holders_.Contains(holder_base)); dom_object_holders_.erase(holder_base); }
diff --git a/third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp b/third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp index 67dae7a..4b6ed82 100644 --- a/third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/Dictionary.cpp
@@ -96,8 +96,8 @@ return false; if (v8_value->IsObject()) { - ASSERT(isolate_); - ASSERT(isolate_ == v8::Isolate::GetCurrent()); + DCHECK(isolate_); + DCHECK_EQ(isolate_, v8::Isolate::GetCurrent()); // TODO(bashi,yukishiino): Should rethrow the exception. // http://crbug.com/666661 DummyExceptionStateForTesting exception_state;
diff --git a/third_party/WebKit/Source/bindings/core/v8/Dictionary.h b/third_party/WebKit/Source/bindings/core/v8/Dictionary.h index 31ac0234..4b6a68e 100644 --- a/third_party/WebKit/Source/bindings/core/v8/Dictionary.h +++ b/third_party/WebKit/Source/bindings/core/v8/Dictionary.h
@@ -86,7 +86,7 @@ v8::Isolate* GetIsolate() const { return isolate_; } v8::Local<v8::Context> V8Context() const { - ASSERT(isolate_); + DCHECK(isolate_); return isolate_->GetCurrentContext(); }
diff --git a/third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForCore.cpp b/third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForCore.cpp index d2a5b0c..24556b8 100644 --- a/third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForCore.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/DictionaryHelperForCore.cpp
@@ -294,8 +294,8 @@ if (!v8_value->IsArray()) return false; - ASSERT(dictionary.GetIsolate()); - ASSERT(dictionary.GetIsolate() == v8::Isolate::GetCurrent()); + DCHECK(dictionary.GetIsolate()); + DCHECK_EQ(dictionary.GetIsolate(), v8::Isolate::GetCurrent()); value = ArrayValue(v8::Local<v8::Array>::Cast(v8_value), dictionary.GetIsolate()); return true;
diff --git a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp index 7a57773..7bc85fa 100644 --- a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp
@@ -73,7 +73,7 @@ if (!persistent_context_.IsEmpty()) return false; TRACE_EVENT0("blink", "DocumentWriteEvaluator::initializeEvaluationContext"); - ASSERT(persistent_context_.IsEmpty()); + DCHECK(persistent_context_.IsEmpty()); v8::Isolate* isolate = V8PerIsolateData::MainThreadIsolate(); v8::Isolate::Scope isolate_scope(isolate); v8::HandleScope handle_scope(isolate);
diff --git a/third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.cpp b/third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.cpp index a075ee1..979e2f1 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.cpp
@@ -145,14 +145,14 @@ } String ExceptionMessages::NotAFiniteNumber(double value, const char* name) { - ASSERT(!std::isfinite(value)); + DCHECK(!std::isfinite(value)); return String::Format("The %s is %s.", name, std::isinf(value) ? "infinite" : "not a number"); } String ExceptionMessages::NotAFiniteNumber(const Decimal& value, const char* name) { - ASSERT(!value.IsFinite()); + DCHECK(!value.IsFinite()); return String::Format("The %s is %s.", name, value.IsInfinity() ? "infinite" : "not a number"); }
diff --git a/third_party/WebKit/Source/bindings/core/v8/Iterable.h b/third_party/WebKit/Source/bindings/core/v8/Iterable.h index 689917d..8510f44 100644 --- a/third_party/WebKit/Source/bindings/core/v8/Iterable.h +++ b/third_party/WebKit/Source/bindings/core/v8/Iterable.h
@@ -71,7 +71,7 @@ if (!source->Next(script_state, key, value, exception_state)) return; - ASSERT(!exception_state.HadException()); + DCHECK(!exception_state.HadException()); args[0] = ToV8(value, creation_context, isolate); args[1] = ToV8(key, creation_context, isolate);
diff --git a/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp b/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp index 9d8f1cb..53f0134e 100644 --- a/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp
@@ -63,7 +63,7 @@ // Either collected or https://crbug.com/450330 if (value.IsEmpty() || !value->IsPromise()) return; - ASSERT(!HasHandler()); + DCHECK(!HasHandler()); EventTarget* target = execution_context->ErrorEventTarget(); if (target && !execution_context->ShouldSanitizeScriptError(resource_name_, @@ -127,19 +127,21 @@ } void MakePromiseWeak() { - ASSERT(!promise_.IsEmpty() && !promise_.IsWeak()); + DCHECK(!promise_.IsEmpty()); + DCHECK(!promise_.IsWeak()); promise_.SetWeak(this, &Message::DidCollectPromise); exception_.SetWeak(this, &Message::DidCollectException); } void MakePromiseStrong() { - ASSERT(!promise_.IsEmpty() && promise_.IsWeak()); + DCHECK(!promise_.IsEmpty()); + DCHECK(promise_.IsWeak()); promise_.ClearWeak(); exception_.ClearWeak(); } bool HasHandler() { - ASSERT(!IsCollected()); + DCHECK(!IsCollected()); ScriptState::Scope scope(script_state_); v8::Local<v8::Value> value = promise_.NewLocal(script_state_->GetIsolate()); return v8::Local<v8::Promise>::Cast(value)->HasHandler();
diff --git a/third_party/WebKit/Source/bindings/core/v8/RetainedDOMInfo.cpp b/third_party/WebKit/Source/bindings/core/v8/RetainedDOMInfo.cpp index 49fd5654..5d52617 100644 --- a/third_party/WebKit/Source/bindings/core/v8/RetainedDOMInfo.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/RetainedDOMInfo.cpp
@@ -40,7 +40,7 @@ v8::RetainedObjectInfo* RetainedDOMInfo::CreateRetainedDOMInfo( uint16_t class_id, v8::Local<v8::Value> wrapper) { - ASSERT(class_id == WrapperTypeInfo::kNodeClassId); + DCHECK_EQ(class_id, WrapperTypeInfo::kNodeClassId); if (!wrapper->IsObject()) return 0; Node* node = V8Node::toImpl(wrapper.As<v8::Object>()); @@ -48,7 +48,7 @@ } RetainedDOMInfo::RetainedDOMInfo(Node* root) : root_(root) { - ASSERT(root_); + DCHECK(root_); } RetainedDOMInfo::~RetainedDOMInfo() {} @@ -58,7 +58,7 @@ } bool RetainedDOMInfo::IsEquivalent(v8::RetainedObjectInfo* other) { - ASSERT(other); + DCHECK(other); if (other == this) return true; if (strcmp(GetLabel(), other->GetLabel()))
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp b/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp index 7db3171..9a7679f 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp
@@ -51,7 +51,7 @@ ExecutionContext* target, const ScriptValue& handler, const Vector<ScriptValue>& arguments) { - ASSERT(handler.IsFunction()); + DCHECK(handler.IsFunction()); if (!script_state->World().IsWorkerWorld()) { if (!BindingSecurity::ShouldAllowAccessToFrame( EnteredDOMWindow(script_state->GetIsolate()), @@ -114,7 +114,7 @@ const ScriptValue& function, const Vector<ScriptValue>& arguments) : script_state_(script_state), info_(script_state->GetIsolate()) { - ASSERT(function.IsFunction()); + DCHECK(function.IsFunction()); function_.Set(script_state->GetIsolate(), v8::Local<v8::Function>::Cast(function.V8Value())); info_.ReserveCapacity(arguments.size()); @@ -166,7 +166,7 @@ } void ScheduledAction::Execute(WorkerGlobalScope* worker) { - ASSERT(worker->GetThread()->IsCurrentThread()); + DCHECK(worker->GetThread()->IsCurrentThread()); if (!script_state_->ContextIsValid()) { DVLOG(1) << "ScheduledAction::execute " << this << ": context is empty";
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.cpp index 8a6427a..65181042 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.cpp
@@ -51,7 +51,7 @@ const QualifiedName& name, const AtomicString& value, const AtomicString& event_parameter_name) { - ASSERT(node); + DCHECK(node); if (value.IsNull()) return nullptr;
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptFunction.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptFunction.cpp index 9e63071..bec5937 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptFunction.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptFunction.cpp
@@ -24,7 +24,7 @@ void ScriptFunction::CallCallback( const v8::FunctionCallbackInfo<v8::Value>& args) { - ASSERT(args.Data()->IsExternal()); + DCHECK(args.Data()->IsExternal()); ScriptFunction* script_function = static_cast<ScriptFunction*>( v8::Local<v8::External>::Cast(args.Data())->Value()); ScriptValue result = script_function->Call(
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp index dc76a1d..088561f 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp
@@ -104,7 +104,7 @@ PromiseAllHandler(ScriptState* script_state, Vector<ScriptPromise> promises) : number_of_pending_promises_(promises.size()), resolver_(script_state) { - ASSERT(!promises.IsEmpty()); + DCHECK(!promises.IsEmpty()); values_.Resize(promises.size()); for (size_t i = 0; i < promises.size(); ++i) promises[i].Then(CreateFulfillFunction(script_state, i), @@ -126,7 +126,7 @@ if (is_settled_) return; - ASSERT(index < values_.size()); + DCHECK_LT(index, values_.size()); values_[index] = value; if (--number_of_pending_promises_ > 0) return; @@ -151,7 +151,7 @@ } void MarkPromiseSettled() { - ASSERT(!is_settled_); + DCHECK(!is_settled_); is_settled_ = true; values_.Clear(); } @@ -242,7 +242,7 @@ v8::Local<v8::Object> promise = promise_.V8Value().As<v8::Object>(); - ASSERT(promise->IsPromise()); + DCHECK(promise->IsPromise()); // Return this Promise if no handlers are given. // In fact it is not the exact bahavior of Promise.prototype.then // but that is not a problem in this case. @@ -301,7 +301,7 @@ ScriptPromise ScriptPromise::RejectWithDOMException(ScriptState* script_state, DOMException* exception) { - ASSERT(script_state->GetIsolate()->InContext()); + DCHECK(script_state->GetIsolate()->InContext()); return Reject(script_state, ToV8(exception, script_state->GetContext()->Global(), script_state->GetIsolate()));
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h index 14c96ed..6e095b9 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
@@ -156,7 +156,7 @@ ScriptPromiseProperty<HolderType, ResolvedType, RejectedType>::ResolvedValue( v8::Isolate* isolate, v8::Local<v8::Object> creation_context) { - ASSERT(GetState() == kResolved); + DCHECK_EQ(GetState(), kResolved); if (!resolved_with_undefined_) return ToV8(resolved_, creation_context, isolate); return v8::Undefined(isolate); @@ -167,7 +167,7 @@ ScriptPromiseProperty<HolderType, ResolvedType, RejectedType>::RejectedValue( v8::Isolate* isolate, v8::Local<v8::Object> creation_context) { - ASSERT(GetState() == kRejected); + DCHECK_EQ(GetState(), kRejected); return ToV8(rejected_, creation_context, isolate); }
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp index fd6a55d..c41f73c 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp
@@ -65,9 +65,9 @@ } void ScriptPromisePropertyBase::ResolveOrReject(State target_state) { - ASSERT(GetExecutionContext()); - ASSERT(state_ == kPending); - ASSERT(target_state == kResolved || target_state == kRejected); + DCHECK(GetExecutionContext()); + DCHECK_EQ(state_, kPending); + DCHECK(target_state == kResolved || target_state == kRejected); state_ = target_state; @@ -109,7 +109,7 @@ v8::Local<v8::Context> context = resolver->CreationContext(); switch (state_) { case kPending: - ASSERT_NOT_REACHED(); + NOTREACHED(); break; case kResolved: resolver->Resolve(context, ResolvedValue(isolate_, context->Global())) @@ -169,13 +169,13 @@ } void ScriptPromisePropertyBase::CheckThis() { - RELEASE_ASSERT(this); + CHECK(this); } void ScriptPromisePropertyBase::CheckWrappers() { for (WeakPersistentSet::iterator i = wrappers_.begin(); i != wrappers_.end(); ++i) { - RELEASE_ASSERT(*i); + CHECK(*i); } }
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp index b62cd9a2..fd86dcf 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp
@@ -58,7 +58,7 @@ } void ScriptPromiseResolver::OnTimerFired(TimerBase*) { - ASSERT(state_ == kResolving || state_ == kRejecting); + DCHECK(state_ == kResolving || state_ == kRejecting); if (!GetScriptState()->ContextIsValid()) { Detach(); return;
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h index d2c360e..8553ae43 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h
@@ -52,7 +52,7 @@ // - this resolver is destructed before it is resolved, rejected, // detached, the V8 isolate is terminated or the associated // ExecutionContext is stopped. - ASSERT(state_ == kDetached || !is_promise_called_ || + DCHECK(state_ == kDetached || !is_promise_called_ || !GetScriptState()->ContextIsValid() || !GetExecutionContext() || GetExecutionContext()->IsContextDestroyed()); } @@ -122,7 +122,7 @@ if (state_ != kPending || !GetScriptState()->ContextIsValid() || !GetExecutionContext() || GetExecutionContext()->IsContextDestroyed()) return; - ASSERT(new_state == kResolving || new_state == kRejecting); + DCHECK(new_state == kResolving || new_state == kRejecting); state_ = new_state; ScriptState::Scope scope(script_state_.Get());
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp index dd66b7a..70e433e 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolverTest.cpp
@@ -32,7 +32,7 @@ : ScriptFunction(script_state), value_(value) {} ScriptValue Call(ScriptValue value) override { - ASSERT(!value.IsEmpty()); + DCHECK(!value.IsEmpty()); *value_ = ToCoreString(value.V8Value() ->ToString(GetScriptState()->GetContext()) .ToLocalChecked());
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseTest.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseTest.cpp index 6ea313aa..427aa449 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseTest.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseTest.cpp
@@ -59,7 +59,7 @@ : ScriptFunction(script_state), output_(output) {} ScriptValue Call(ScriptValue value) override { - ASSERT(!value.IsEmpty()); + DCHECK(!value.IsEmpty()); *output_ = value; return value; }
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.cpp index e11e8a87..b4705187 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.cpp
@@ -106,7 +106,7 @@ // // https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/exec - ASSERT(!return_value.IsEmpty()); + DCHECK(!return_value.IsEmpty()); if (!return_value->IsArray()) return -1;
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp index 4074bca1..d8151fc 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptState.cpp
@@ -40,12 +40,12 @@ } ScriptState::~ScriptState() { - ASSERT(!per_context_data_); - ASSERT(context_.IsEmpty()); + DCHECK(!per_context_data_); + DCHECK(context_.IsEmpty()); } void ScriptState::DetachGlobalObject() { - ASSERT(!context_.IsEmpty()); + DCHECK(!context_.IsEmpty()); GetContext()->DetachGlobal(); }
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptState.h b/third_party/WebKit/Source/bindings/core/v8/ScriptState.h index be40f2d..de6358c4 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptState.h +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptState.h
@@ -77,7 +77,7 @@ explicit Scope(ScriptState* script_state) : handle_scope_(script_state->GetIsolate()), context_(script_state->GetContext()) { - ASSERT(script_state->ContextIsValid()); + DCHECK(script_state->ContextIsValid()); context_->Enter(); } @@ -122,7 +122,7 @@ } static ScriptState* From(v8::Local<v8::Context> context) { - ASSERT(!context.IsEmpty()); + DCHECK(!context.IsEmpty()); ScriptState* script_state = static_cast<ScriptState*>(context->GetAlignedPointerFromEmbedderData( kV8ContextPerContextDataIndex));
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp index ed43b25..b60b02b 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
@@ -140,7 +140,9 @@ private: bool TryGetData(const uint8_t** data, size_t* length) { - ASSERT(mutex_.Locked()); +#if DCHECK_IS_ON() + DCHECK(mutex_.Locked()); +#endif if (!data_.IsEmpty()) { std::pair<const uint8_t*, size_t> next_data = data_.TakeFirst(); *data = next_data.first;
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp index c4558b8..5491450 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp
@@ -22,8 +22,8 @@ static Mutex* g_mutex = 0; void ScriptStreamerThread::Init() { - ASSERT(!g_shared_thread); - ASSERT(IsMainThread()); + DCHECK(!g_shared_thread); + DCHECK(IsMainThread()); // This is called in the main thread before any tasks are created, so no // locking is needed. g_mutex = new Mutex(); @@ -35,9 +35,9 @@ } void ScriptStreamerThread::PostTask(std::unique_ptr<CrossThreadClosure> task) { - ASSERT(IsMainThread()); + DCHECK(IsMainThread()); MutexLocker locker(mutex_); - ASSERT(!running_task_); + DCHECK(!running_task_); running_task_ = true; PlatformThread().GetWebTaskRunner()->PostTask(BLINK_FROM_HERE, std::move(task)); @@ -45,7 +45,7 @@ void ScriptStreamerThread::TaskDone() { MutexLocker locker(mutex_); - ASSERT(running_task_); + DCHECK(running_task_); running_task_ = false; }
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptValue.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptValue.cpp index d305a05..cce2cc5 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptValue.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptValue.cpp
@@ -40,7 +40,7 @@ if (IsEmpty()) return v8::Local<v8::Value>(); - ASSERT(GetIsolate()->InContext()); + DCHECK(GetIsolate()->InContext()); // This is a check to validate that you don't return a ScriptValue to a world // different from the world that created the ScriptValue. @@ -48,8 +48,7 @@ // if (&m_scriptState->world() == &DOMWrapperWorld::current(isolate())) // return v8::Local<v8::Value>(); // instead of triggering RELEASE_ASSERT. - RELEASE_ASSERT(&script_state_->World() == - &DOMWrapperWorld::Current(GetIsolate())); + CHECK_EQ(&script_state_->World(), &DOMWrapperWorld::Current(GetIsolate())); return value_->NewLocal(GetIsolate()); } @@ -61,7 +60,7 @@ if (&script_state_->World() == &target_script_state->World()) return value_->NewLocal(isolate); - ASSERT(isolate->InContext()); + DCHECK(isolate->InContext()); v8::Local<v8::Value> value = value_->NewLocal(isolate); RefPtr<SerializedScriptValue> serialized = SerializedScriptValue::SerializeAndSwallowExceptions(isolate, value);
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptValue.h b/third_party/WebKit/Source/bindings/core/v8/ScriptValue.h index 98a37d7..0cece6fb 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptValue.h +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptValue.h
@@ -75,7 +75,7 @@ : SharedPersistent<v8::Value>::Create( value, script_state->GetIsolate())) { - ASSERT(IsEmpty() || script_state_); + DCHECK(IsEmpty() || script_state_); } template <typename T> @@ -85,12 +85,12 @@ : SharedPersistent<v8::Value>::Create( value.ToLocalChecked(), script_state->GetIsolate())) { - ASSERT(IsEmpty() || script_state_); + DCHECK(IsEmpty() || script_state_); } ScriptValue(const ScriptValue& value) : script_state_(value.script_state_), value_(value.value_) { - ASSERT(IsEmpty() || script_state_); + DCHECK(IsEmpty() || script_state_); } ScriptState* GetScriptState() const { return script_state_.Get(); } @@ -101,7 +101,7 @@ } v8::Local<v8::Context> GetContext() const { - ASSERT(script_state_.Get()); + DCHECK(script_state_.Get()); return script_state_->GetContext(); } @@ -126,7 +126,7 @@ // This creates a new local Handle; Don't use this in performance-sensitive // places. bool IsFunction() const { - ASSERT(!IsEmpty()); + DCHECK(!IsEmpty()); v8::Local<v8::Value> value = V8Value(); return !value.IsEmpty() && value->IsFunction(); } @@ -134,7 +134,7 @@ // This creates a new local Handle; Don't use this in performance-sensitive // places. bool IsNull() const { - ASSERT(!IsEmpty()); + DCHECK(!IsEmpty()); v8::Local<v8::Value> value = V8Value(); return !value.IsEmpty() && value->IsNull(); } @@ -142,7 +142,7 @@ // This creates a new local Handle; Don't use this in performance-sensitive // places. bool IsUndefined() const { - ASSERT(!IsEmpty()); + DCHECK(!IsEmpty()); v8::Local<v8::Value> value = V8Value(); return !value.IsEmpty() && value->IsUndefined(); } @@ -150,7 +150,7 @@ // This creates a new local Handle; Don't use this in performance-sensitive // places. bool IsObject() const { - ASSERT(!IsEmpty()); + DCHECK(!IsEmpty()); v8::Local<v8::Value> value = V8Value(); return !value.IsEmpty() && value->IsObject(); }
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp index 1d6d4fc..044e4a58 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp
@@ -23,7 +23,7 @@ v8::Local<v8::Object> creation_context) { const WrapperTypeInfo* wrapper_type_info = this->GetWrapperTypeInfo(); - ASSERT(!DOMDataStore::ContainsWrapper(this, isolate)); + DCHECK(!DOMDataStore::ContainsWrapper(this, isolate)); v8::Local<v8::Object> wrapper = V8DOMWrapper::CreateWrapper(isolate, creation_context, wrapper_type_info);
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h b/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h index 7dd79159..e6f3e2d 100644 --- a/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h
@@ -117,7 +117,7 @@ WARN_UNUSED_RESULT bool SetWrapper(v8::Isolate* isolate, const WrapperTypeInfo* wrapper_type_info, v8::Local<v8::Object>& wrapper) { - ASSERT(!wrapper.IsEmpty()); + DCHECK(!wrapper.IsEmpty()); if (UNLIKELY(ContainsWrapper())) { wrapper = MainWorldWrapper(isolate); return false; @@ -125,7 +125,7 @@ main_world_wrapper_.Reset(isolate, wrapper); wrapper_type_info->ConfigureWrapper(&main_world_wrapper_); main_world_wrapper_.SetWeak(); - ASSERT(ContainsWrapper()); + DCHECK(ContainsWrapper()); ScriptWrappableVisitor::WriteBarrier(&main_world_wrapper_); return true; }
diff --git a/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp b/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp index 4e43b3d..ed8c7ae 100644 --- a/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp
@@ -231,7 +231,7 @@ // likely used in a context other than Worker's onmessage environment and the // presence of current v8 context is not guaranteed. Avoid calling v8 then. if (has_registered_external_allocation_) { - ASSERT(v8::Isolate::GetCurrent()); + DCHECK(v8::Isolate::GetCurrent()); v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory( -static_cast<int64_t>(DataLengthInBytes())); }
diff --git a/third_party/WebKit/Source/bindings/core/v8/V0CustomElementBinding.cpp b/third_party/WebKit/Source/bindings/core/v8/V0CustomElementBinding.cpp index 6d36f4b6e..bf2ee60 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V0CustomElementBinding.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V0CustomElementBinding.cpp
@@ -44,7 +44,7 @@ V0CustomElementBinding::V0CustomElementBinding(v8::Isolate* isolate, v8::Local<v8::Object> prototype) : prototype_(isolate, prototype) { - ASSERT(!prototype_.IsEmpty()); + DCHECK(!prototype_.IsEmpty()); } V0CustomElementBinding::~V0CustomElementBinding() {}
diff --git a/third_party/WebKit/Source/bindings/core/v8/V0CustomElementConstructorBuilder.cpp b/third_party/WebKit/Source/bindings/core/v8/V0CustomElementConstructorBuilder.cpp index 272cee3..1bfe91a 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V0CustomElementConstructorBuilder.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V0CustomElementConstructorBuilder.cpp
@@ -59,7 +59,7 @@ ScriptState* script_state, const ElementRegistrationOptions& options) : script_state_(script_state), options_(options) { - ASSERT(script_state_->GetContext() == + DCHECK(script_state_->GetContext() == script_state_->GetIsolate()->GetCurrentContext()); } @@ -71,7 +71,7 @@ const AtomicString& type, QualifiedName& tag_name, ExceptionState& exception_state) { - ASSERT(prototype_.IsEmpty()); + DCHECK(prototype_.IsEmpty()); v8::TryCatch try_catch(script_state_->GetIsolate()); @@ -85,7 +85,7 @@ } if (options_.hasPrototype()) { - ASSERT(options_.prototype().IsObject()); + DCHECK(options_.prototype().IsObject()); prototype_ = options_.prototype().V8Value().As<v8::Object>(); } else { prototype_ = v8::Object::New(script_state_->GetIsolate()); @@ -103,7 +103,7 @@ if (HasValidPrototypeChainFor(&V8SVGElement::wrapperTypeInfo)) namespace_uri = SVGNames::svgNamespaceURI; - ASSERT(!try_catch.HasCaught()); + DCHECK(!try_catch.HasCaught()); AtomicString local_name; @@ -135,14 +135,14 @@ local_name = type; } - ASSERT(!try_catch.HasCaught()); + DCHECK(!try_catch.HasCaught()); tag_name = QualifiedName(g_null_atom, local_name, namespace_uri); return true; } V0CustomElementLifecycleCallbacks* V0CustomElementConstructorBuilder::CreateCallbacks() { - ASSERT(!prototype_.IsEmpty()); + DCHECK(!prototype_.IsEmpty()); v8::TryCatch exception_catcher(script_state_->GetIsolate()); exception_catcher.SetVerbose(true); @@ -175,9 +175,9 @@ Document* document, V0CustomElementDefinition* definition, ExceptionState& exception_state) { - ASSERT(!prototype_.IsEmpty()); - ASSERT(constructor_.IsEmpty()); - ASSERT(document); + DCHECK(!prototype_.IsEmpty()); + DCHECK(constructor_.IsEmpty()); + DCHECK(document); v8::Isolate* isolate = script_state_->GetIsolate(); v8::Local<v8::Context> context = script_state_->GetContext(); @@ -280,7 +280,7 @@ } bool V0CustomElementConstructorBuilder::DidRegisterDefinition() const { - ASSERT(!constructor_.IsEmpty()); + DCHECK(!constructor_.IsEmpty()); return callbacks_->SetBinding( V0CustomElementBinding::Create(script_state_->GetIsolate(), prototype_));
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp index a81fa4cb..ccaaed7 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
@@ -63,7 +63,7 @@ } V8AbstractEventListener::~V8AbstractEventListener() { - ASSERT(listener_.IsEmpty()); + DCHECK(listener_.IsEmpty()); if (IsMainThread()) InstanceCounters::DecrementCounter( InstanceCounters::kJSEventListenerCounter); @@ -80,7 +80,7 @@ // A ScriptState used by the event listener needs to be calculated based on // the ExecutionContext that fired the the event listener and the world // that installed the event listener. - ASSERT(event); + DCHECK(event); v8::HandleScope handle_scope(ToIsolate(execution_context)); v8::Local<v8::Context> v8_context = ToV8Context(execution_context, World()); if (v8_context.IsEmpty()) @@ -106,7 +106,7 @@ void V8AbstractEventListener::SetListenerObject( v8::Local<v8::Object> listener) { - ASSERT(listener_.IsEmpty()); + DCHECK(listener_.IsEmpty()); // Balanced in wrapperCleared xor clearListenerObject. if (worker_global_scope_) { worker_global_scope_->RegisterEventListener(this);
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp index 516ea929..44a149e 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
@@ -97,7 +97,7 @@ bool ToBooleanSlow(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exception_state) { - ASSERT(!value->IsBoolean()); + DCHECK(!value->IsBoolean()); v8::TryCatch block(isolate); bool result = false; if (!V8Call(value->BooleanValue(isolate->GetCurrentContext()), result, block)) @@ -199,7 +199,7 @@ return 0; } } - ASSERT(!number_object.IsEmpty()); + DCHECK(!number_object.IsEmpty()); if (configuration == kEnforceRange) return EnforceRange(number_object->Value(), LimitsTrait::kMinValue, @@ -259,7 +259,7 @@ return 0; } } - ASSERT(!number_object.IsEmpty()); + DCHECK(!number_object.IsEmpty()); if (configuration == kEnforceRange) return EnforceRange(number_object->Value(), 0, LimitsTrait::kMaxValue, @@ -317,7 +317,7 @@ v8::Local<v8::Value> value, IntegerConversionConfiguration configuration, ExceptionState& exception_state) { - ASSERT(!value->IsInt32()); + DCHECK(!value->IsInt32()); // Can the value be converted to a number? v8::TryCatch block(isolate); v8::Local<v8::Number> number_object; @@ -327,7 +327,7 @@ return 0; } - ASSERT(!number_object.IsEmpty()); + DCHECK(!number_object.IsEmpty()); double number_value = number_object->Value(); if (configuration == kEnforceRange) @@ -356,9 +356,9 @@ v8::Local<v8::Value> value, IntegerConversionConfiguration configuration, ExceptionState& exception_state) { - ASSERT(!value->IsUint32()); + DCHECK(!value->IsUint32()); if (value->IsInt32()) { - ASSERT(configuration != kNormalConversion); + DCHECK_NE(configuration, kNormalConversion); int32_t result = value.As<v8::Int32>()->Value(); if (result >= 0) return result; @@ -367,7 +367,7 @@ "Value is outside the 'unsigned long' value range."); return 0; } - ASSERT(configuration == kClamp); + DCHECK_EQ(configuration, kClamp); return clampTo<uint32_t>(result); } @@ -379,7 +379,7 @@ exception_state.RethrowV8Exception(block.Exception()); return 0; } - ASSERT(!number_object.IsEmpty()); + DCHECK(!number_object.IsEmpty()); if (configuration == kEnforceRange) return EnforceRange(number_object->Value(), 0, kMaxUInt32, "unsigned long", @@ -409,7 +409,7 @@ v8::Local<v8::Value> value, IntegerConversionConfiguration configuration, ExceptionState& exception_state) { - ASSERT(!value->IsInt32()); + DCHECK(!value->IsInt32()); v8::Local<v8::Number> number_object; // Can the value be converted to a number? @@ -419,7 +419,7 @@ exception_state.RethrowV8Exception(block.Exception()); return 0; } - ASSERT(!number_object.IsEmpty()); + DCHECK(!number_object.IsEmpty()); double number_value = number_object->Value(); @@ -440,7 +440,7 @@ v8::Local<v8::Value> value, IntegerConversionConfiguration configuration, ExceptionState& exception_state) { - ASSERT(!value->IsUint32()); + DCHECK(!value->IsUint32()); if (value->IsInt32()) { ASSERT(configuration != kNormalConversion); int32_t result = value.As<v8::Int32>()->Value(); @@ -451,7 +451,7 @@ "Value is outside the 'unsigned long long' value range."); return 0; } - ASSERT(configuration == kClamp); + DCHECK_EQ(configuration, kClamp); return clampTo<uint64_t>(result); } @@ -463,7 +463,7 @@ exception_state.RethrowV8Exception(block.Exception()); return 0; } - ASSERT(!number_object.IsEmpty()); + DCHECK(!number_object.IsEmpty()); double number_value = number_object->Value(); @@ -502,7 +502,7 @@ double ToDoubleSlow(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exception_state) { - ASSERT(!value->IsNumber()); + DCHECK(!value->IsNumber()); v8::TryCatch block(isolate); v8::Local<v8::Number> number_value; if (!value->ToNumber(isolate->GetCurrentContext()).ToLocal(&number_value)) { @@ -604,7 +604,7 @@ // Blink-specific optimization to avoid making an unnecessary copy. if (!HasUnmatchedSurrogates(string)) return string; - ASSERT(!string.Is8Bit()); + DCHECK(!string.Is8Bit()); // 1. Let S be the DOMString value. const UChar* s = string.Characters16(); @@ -634,13 +634,13 @@ u.Append(kReplacementCharacter); } else { // 0xD800 <= c <= 0xDBFF - ASSERT(U16_IS_LEAD(c)); + DCHECK(U16_IS_LEAD(c)); if (i == n - 1) { // 1. If i = n-1, then append to U a U+FFFD REPLACEMENT CHARACTER. u.Append(kReplacementCharacter); } else { // 2. Otherwise, i < n-1: - ASSERT(i < n - 1); + DCHECK_LT(i, n - 1); // ....1. Let d be the code unit in S at index i+1. UChar d = s[i + 1]; if (U16_IS_TRAIL(d)) { @@ -664,7 +664,7 @@ } // 6. Return U. - ASSERT(u.length() == string.length()); + DCHECK_EQ(u.length(), string.length()); return u.ToString(); } @@ -774,7 +774,7 @@ v8::Local<v8::Value> value, FlexibleArrayBufferView& result, void* storage) { - ASSERT(value->IsArrayBufferView()); + DCHECK(value->IsArrayBufferView()); v8::Local<v8::ArrayBufferView> buffer = value.As<v8::ArrayBufferView>(); if (!storage) { result.SetFull(V8ArrayBufferView::toImpl(buffer)); @@ -801,7 +801,7 @@ v8::Local<v8::Context> ToV8Context(ExecutionContext* context, DOMWrapperWorld& world) { - ASSERT(context); + DCHECK(context); if (context->IsDocument()) { if (LocalFrame* frame = ToDocument(context)->GetFrame()) return ToV8Context(frame, world); @@ -824,7 +824,7 @@ v8::Local<v8::Context> ToV8ContextEvenIfDetached(LocalFrame* frame, DOMWrapperWorld& world) { - ASSERT(frame); + DCHECK(frame); return frame->WindowProxy(world)->ContextIfInitialized(); } @@ -908,7 +908,7 @@ v8::Local<v8::Object> object, v8::Local<v8::Value> value, int array_index) { - ASSERT(!value.IsEmpty()); + DCHECK(!value.IsEmpty()); v8::Local<v8::Value> array_value = object->GetInternalField(array_index); if (array_value->IsNull() || array_value->IsUndefined()) { array_value = v8::Array::New(isolate);
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h index a1f218f..b641638 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h +++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
@@ -226,7 +226,7 @@ template <typename CallbackInfo> inline void V8SetReturnValueForMainWorld(const CallbackInfo& callback_info, ScriptWrappable* impl) { - ASSERT(DOMWrapperWorld::Current(callback_info.GetIsolate()).IsMainWorld()); + DCHECK(DOMWrapperWorld::Current(callback_info.GetIsolate()).IsMainWorld()); if (UNLIKELY(!impl)) { V8SetReturnValueNull(callback_info); return; @@ -570,7 +570,7 @@ ExceptionState& exception_state) { // Clamping not supported for int64_t/long long int. See // Source/wtf/MathExtras.h. - ASSERT(configuration != kClamp); + DCHECK_NE(configuration, kClamp); // Fast case. The value is a 32-bit integer. if (LIKELY(value->IsInt32())) @@ -658,7 +658,7 @@ inline v8::MaybeLocal<v8::Value> V8DateOrNaN(v8::Isolate* isolate, double value) { - ASSERT(isolate); + DCHECK(isolate); return v8::Date::New(isolate->GetCurrentContext(), value); } @@ -866,7 +866,7 @@ // Attempt converting to a sequence if the value is not already an array but // is any kind of object except for a native Date object or a native RegExp // object. - ASSERT(!value->IsArray()); + DCHECK(!value->IsArray()); // FIXME: Do we really need to special case Date and RegExp object? // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22806 if (!value->IsObject() || value->IsDate() || value->IsRegExp()) {
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h b/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h index 28af46d..d58ff26 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h +++ b/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h
@@ -82,7 +82,7 @@ T& out_variable, v8::TryCatch& try_catch) { bool success = V8Call(maybe, out_variable); - ASSERT(success || try_catch.HasCaught()); + DCHECK(success || try_catch.HasCaught()); return success; } @@ -98,7 +98,7 @@ v8::Local<T>& out_variable, v8::TryCatch& try_catch) { bool success = maybe_local.ToLocal(&out_variable); - ASSERT(success || try_catch.HasCaught()); + DCHECK(success || try_catch.HasCaught()); return success; }
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8DOMActivityLogger.cpp b/third_party/WebKit/Source/bindings/core/v8/V8DOMActivityLogger.cpp index a0c3e1c..c36709a 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8DOMActivityLogger.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8DOMActivityLogger.cpp
@@ -21,14 +21,14 @@ DOMActivityLoggerMapForIsolatedWorld; static DOMActivityLoggerMapForMainWorld& DomActivityLoggersForMainWorld() { - ASSERT(IsMainThread()); + DCHECK(IsMainThread()); DEFINE_STATIC_LOCAL(DOMActivityLoggerMapForMainWorld, map, ()); return map; } static DOMActivityLoggerMapForIsolatedWorld& DomActivityLoggersForIsolatedWorld() { - ASSERT(IsMainThread()); + DCHECK(IsMainThread()); DEFINE_STATIC_LOCAL(DOMActivityLoggerMapForIsolatedWorld, map, ()); return map; }
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h b/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h index 240a5f3..e7216cf4 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h +++ b/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h
@@ -81,9 +81,9 @@ v8::Local<v8::Object> wrapper, const WrapperTypeInfo* wrapper_type_info, ScriptWrappable* script_wrappable) { - ASSERT(wrapper->InternalFieldCount() >= 2); - ASSERT(script_wrappable); - ASSERT(wrapper_type_info); + DCHECK_GE(wrapper->InternalFieldCount(), 2); + DCHECK(script_wrappable); + DCHECK(wrapper_type_info); int indices[] = {kV8DOMWrapperObjectIndex, kV8DOMWrapperTypeIndex}; void* values[] = {script_wrappable, const_cast<WrapperTypeInfo*>(wrapper_type_info)}; @@ -115,7 +115,7 @@ if (DOMDataStore::SetWrapper(isolate, impl, wrapper_type_info, wrapper)) { WrapperTypeInfo::WrapperCreated(); SetNativeInfo(isolate, wrapper, wrapper_type_info, impl); - ASSERT(HasInternalFieldsSet(wrapper)); + DCHECK(HasInternalFieldsSet(wrapper)); } SECURITY_CHECK(ToScriptWrappable(wrapper) == impl); return wrapper; @@ -135,7 +135,7 @@ // creationContext should not be empty. Because if we have an // empty creationContext, we will end up creating // a new object in the context currently entered. This is wrong. - RELEASE_ASSERT(!creation_context.IsEmpty()); + CHECK(!creation_context.IsEmpty()); v8::Local<v8::Context> context_for_wrapper = creation_context->CreationContext();
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp index 7aaf2bb..fd1e461 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp
@@ -46,7 +46,7 @@ ScriptState* script_state, v8::Local<v8::Value> js_event, Event* event) { - ASSERT(!js_event.IsEmpty()); + DCHECK(!js_event.IsEmpty()); if (!event->HasInterface(EventNames::ErrorEvent)) return V8EventListener::CallListenerFunction(script_state, js_event, event);
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp index 508f87e..e360b10 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8EventListener.cpp
@@ -89,7 +89,7 @@ ScriptState* script_state, v8::Local<v8::Value> js_event, Event* event) { - ASSERT(!js_event.IsEmpty()); + DCHECK(!js_event.IsEmpty()); v8::Local<v8::Function> handler_function = GetListenerFunction(script_state); v8::Local<v8::Object> receiver = GetReceiverObject(script_state, event); if (handler_function.IsEmpty() || receiver.IsEmpty())
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp b/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp index 070fc7c0..c5327db 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
@@ -57,7 +57,7 @@ namespace blink { Node* V8GCController::OpaqueRootForGC(v8::Isolate*, Node* node) { - ASSERT(node); + DCHECK(node); if (node->isConnected()) { Document& document = node->GetDocument(); if (HTMLImportsController* controller = document.ImportsController()) @@ -99,7 +99,7 @@ v8::Local<v8::Object> wrapper = v8::Local<v8::Object>::New( isolate_, v8::Persistent<v8::Object>::Cast(*value)); - ASSERT(V8DOMWrapper::HasInternalFieldsSet(wrapper)); + DCHECK(V8DOMWrapper::HasInternalFieldsSet(wrapper)); if (ToWrapperTypeInfo(wrapper)->IsActiveScriptWrappable() && ToScriptWrappable(wrapper)->HasPendingActivity()) { v8::Persistent<v8::Object>::Cast(*value).MarkActive(); @@ -107,7 +107,7 @@ } if (class_id == WrapperTypeInfo::kNodeClassId) { - ASSERT(V8Node::hasInstance(wrapper, isolate_)); + DCHECK(V8Node::hasInstance(wrapper, isolate_)); Node* node = V8Node::toImpl(wrapper); if (node->HasEventListeners()) { v8::Persistent<v8::Object>::Cast(*value).MarkActive(); @@ -345,7 +345,7 @@ "weak processing"); break; default: - ASSERT_NOT_REACHED(); + NOTREACHED(); } } @@ -389,7 +389,7 @@ UsedHeapSize(isolate)); break; default: - ASSERT_NOT_REACHED(); + NOTREACHED(); } if (IsMainThread()) @@ -424,7 +424,7 @@ BlinkGC::kForcedGC); // Forces a precise GC at the end of the current event loop. - RELEASE_ASSERT(!current_thread_state->IsInGC()); + CHECK(!current_thread_state->IsInGC()); current_thread_state->SetGCState(ThreadState::kFullGCScheduled); } @@ -517,7 +517,7 @@ v8::Local<v8::Object> wrapper = v8::Local<v8::Object>::New( isolate_, v8::Persistent<v8::Object>::Cast(*value)); - ASSERT(V8DOMWrapper::HasInternalFieldsSet(wrapper)); + DCHECK(V8DOMWrapper::HasInternalFieldsSet(wrapper)); // The ExecutionContext check is heavy, so it should be done at the last. if (ToWrapperTypeInfo(wrapper)->IsActiveScriptWrappable() && ToScriptWrappable(wrapper)->HasPendingActivity()) { @@ -542,7 +542,7 @@ ExecutionContext* execution_context) { // V8GCController::hasPendingActivity is used only when a worker checks if // the worker contains any wrapper that has pending activities. - ASSERT(!IsMainThread()); + DCHECK(!IsMainThread()); DEFINE_THREAD_SAFE_STATIC_LOCAL( CustomCountHistogram, scan_pending_activity_histogram,
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8IdleTaskRunner.h b/third_party/WebKit/Source/bindings/core/v8/V8IdleTaskRunner.h index 9df6c7b..f92ca96a6 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8IdleTaskRunner.h +++ b/third_party/WebKit/Source/bindings/core/v8/V8IdleTaskRunner.h
@@ -59,7 +59,7 @@ V8IdleTaskRunner(WebScheduler* scheduler) : scheduler_(scheduler) {} ~V8IdleTaskRunner() override {} void PostIdleTask(v8::IdleTask* task) override { - ASSERT(RuntimeEnabledFeatures::v8IdleTasksEnabled()); + DCHECK(RuntimeEnabledFeatures::v8IdleTasksEnabled()); scheduler_->PostIdleTask(BLINK_FROM_HERE, new V8IdleTaskAdapter(task)); }
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp index db5a382..8c242f53 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp
@@ -90,7 +90,7 @@ return V8Location::toImpl(host)->GetFrame(); // This function can handle only those types listed above. - ASSERT_NOT_REACHED(); + NOTREACHED(); return 0; } @@ -156,7 +156,7 @@ void V8Initializer::MessageHandlerInMainThread(v8::Local<v8::Message> message, v8::Local<v8::Value> data) { - ASSERT(IsMainThread()); + DCHECK(IsMainThread()); v8::Isolate* isolate = v8::Isolate::GetCurrent(); if (isolate->GetEnteredContext().IsEmpty()) @@ -201,7 +201,7 @@ namespace { static RejectedPromises& RejectedPromisesOnMainThread() { - ASSERT(IsMainThread()); + DCHECK(IsMainThread()); DEFINE_STATIC_LOCAL(RefPtr<RejectedPromises>, rejected_promises, (RejectedPromises::Create())); return *rejected_promises; @@ -221,7 +221,7 @@ return; } - ASSERT(data.GetEvent() == v8::kPromiseRejectWithNoHandler); + DCHECK_EQ(data.GetEvent(), v8::kPromiseRejectWithNoHandler); v8::Local<v8::Promise> promise = data.GetPromise(); v8::Isolate* isolate = promise->GetIsolate(); @@ -231,7 +231,7 @@ if (V8DOMWrapper::IsWrapper(isolate, exception)) { // Try to get the stack & location from a wrapped exception object (e.g. // DOMException). - ASSERT(exception->IsObject()); + DCHECK(exception->IsObject()); auto private_error = V8PrivateProperty::GetDOMExceptionError(isolate); v8::Local<v8::Value> error = private_error.GetOrUndefined(exception.As<v8::Object>()); @@ -266,7 +266,7 @@ } static void PromiseRejectHandlerInMainThread(v8::PromiseRejectMessage data) { - ASSERT(IsMainThread()); + DCHECK(IsMainThread()); v8::Local<v8::Promise> promise = data.GetPromise(); @@ -299,10 +299,10 @@ if (!execution_context) return; - ASSERT(execution_context->IsWorkerGlobalScope()); + DCHECK(execution_context->IsWorkerGlobalScope()); WorkerOrWorkletScriptController* script_controller = ToWorkerGlobalScope(execution_context)->ScriptController(); - ASSERT(script_controller); + DCHECK(script_controller); PromiseRejectHandler(data, *script_controller->GetRejectedPromises(), script_state); @@ -446,7 +446,7 @@ } void V8Initializer::InitializeMainThread() { - ASSERT(IsMainThread()); + DCHECK(IsMainThread()); WTF::ArrayBufferContents::Initialize(AdjustAmountOfExternalAllocatedMemory); @@ -493,7 +493,7 @@ profiler->SetGetRetainerInfosCallback(&V8GCController::GetRetainerInfos); } - ASSERT(ThreadState::MainThreadState()); + DCHECK(ThreadState::MainThreadState()); ThreadState::MainThreadState()->RegisterTraceDOMWrappers( isolate, V8GCController::TraceDOMWrappers, ScriptWrappableVisitor::InvalidateDeadObjectsInMarkingDeque,
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp index f2c1a2b..c260a8e5 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp
@@ -87,7 +87,7 @@ ScriptState* script_state, v8::Local<v8::Value> js_event, Event* event) { - ASSERT(!js_event.IsEmpty()); + DCHECK(!js_event.IsEmpty()); v8::Local<v8::Object> listener_object = GetListenerObject(ExecutionContext::From(script_state)); if (listener_object.IsEmpty())
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp b/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp index b4669d8..2391154 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp
@@ -63,11 +63,11 @@ Node* node, ExceptionState& exception_state) const { v8::Isolate* isolate = script_state_->GetIsolate(); - ASSERT(!script_state_->GetContext().IsEmpty()); + DCHECK(!script_state_->GetContext().IsEmpty()); v8::HandleScope handle_scope(isolate); v8::Local<v8::Value> filter = filter_.NewLocal(isolate); - ASSERT(filter.IsEmpty() || filter->IsObject()); + DCHECK(filter.IsEmpty() || filter->IsObject()); if (filter.IsEmpty()) return NodeFilter::kFilterAccept; @@ -120,7 +120,7 @@ return NodeFilter::kFilterReject; } - ASSERT(!result.IsEmpty()); + DCHECK(!result.IsEmpty()); uint32_t uint32_value; if (!V8Call(result->Uint32Value(script_state_->GetContext()), uint32_value,
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ObjectConstructor.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ObjectConstructor.cpp index e083437..2f5f7f4 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8ObjectConstructor.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8ObjectConstructor.cpp
@@ -34,7 +34,7 @@ v8::Local<v8::Function> function, int argc, v8::Local<v8::Value> argv[]) { - ASSERT(!function.IsEmpty()); + DCHECK(!function.IsEmpty()); TRACE_EVENT0("v8", "v8.newInstance"); ConstructorMode constructor_mode(isolate); v8::MicrotasksScope microtasks_scope(
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp index 63ce166c..e3f71df 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.cpp
@@ -52,7 +52,7 @@ context_holder_->SetContext(context); v8::Context::Scope context_scope(context); - ASSERT(error_prototype_.IsEmpty()); + DCHECK(error_prototype_.IsEmpty()); v8::Local<v8::Value> object_value = context->Global() ->Get(context, V8AtomicString(isolate_, "Error")) @@ -85,7 +85,7 @@ v8::Local<v8::Object> V8PerContextData::CreateWrapperFromCacheSlowCase( const WrapperTypeInfo* type) { - ASSERT(!error_prototype_.IsEmpty()); + DCHECK(!error_prototype_.IsEmpty()); v8::Context::Scope scope(GetContext()); v8::Local<v8::Function> interface_object = ConstructorForType(type); @@ -101,14 +101,14 @@ v8::Local<v8::Function> V8PerContextData::ConstructorForTypeSlowCase( const WrapperTypeInfo* type) { - ASSERT(!error_prototype_.IsEmpty()); + DCHECK(!error_prototype_.IsEmpty()); v8::Local<v8::Context> current_context = GetContext(); v8::Context::Scope scope(current_context); const DOMWrapperWorld& world = DOMWrapperWorld::World(current_context); // We shouldn't reach this point for the types that are implemented in v8 such // as typed arrays and hence don't have domTemplateFunction. - ASSERT(type->dom_template_function); + DCHECK(type->dom_template_function); v8::Local<v8::FunctionTemplate> interface_template = type->domTemplate(isolate_, world); // Getting the function might fail if we're running out of stack or memory.
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp index 475bd3c..dcb8c84 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
@@ -45,7 +45,7 @@ static V8PerIsolateData* g_main_thread_per_isolate_data = 0; static void BeforeCallEnteredCallback(v8::Isolate* isolate) { - RELEASE_ASSERT(!ScriptForbiddenScope::IsScriptForbidden()); + CHECK(!ScriptForbiddenScope::IsScriptForbidden()); } static void MicrotasksCompletedCallback(v8::Isolate* isolate) { @@ -75,7 +75,7 @@ V8PerIsolateData::~V8PerIsolateData() {} v8::Isolate* V8PerIsolateData::MainThreadIsolate() { - ASSERT(g_main_thread_per_isolate_data); + DCHECK(g_main_thread_per_isolate_data); return g_main_thread_per_isolate_data->GetIsolate(); } @@ -279,7 +279,7 @@ tasks.Swap(end_of_scope_tasks_); for (const auto& task : tasks) task->Run(); - ASSERT(end_of_scope_tasks_.IsEmpty()); + DCHECK(end_of_scope_tasks_.IsEmpty()); } void V8PerIsolateData::ClearEndOfScopeTasks() { @@ -288,7 +288,7 @@ void V8PerIsolateData::SetThreadDebugger( std::unique_ptr<V8PerIsolateData::Data> thread_debugger) { - ASSERT(!thread_debugger_); + DCHECK(!thread_debugger_); thread_debugger_ = std::move(thread_debugger); }
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h index 70657a23..fd7bffac 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h +++ b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
@@ -101,8 +101,8 @@ static v8::Isolate* Initialize(WebTaskRunner*); static V8PerIsolateData* From(v8::Isolate* isolate) { - ASSERT(isolate); - ASSERT(isolate->GetData(gin::kEmbedderBlink)); + DCHECK(isolate); + DCHECK(isolate->GetData(gin::kEmbedderBlink)); return static_cast<V8PerIsolateData*>( isolate->GetData(gin::kEmbedderBlink)); }
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp index d3b7889..bddcca1 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
@@ -260,7 +260,7 @@ return false; double time_stamp; const int size = sizeof(time_stamp); - ASSERT(cached_metadata->size() == size); + DCHECK_EQ(cached_metadata->size(), static_cast<unsigned long>(size)); memcpy(&time_stamp, cached_metadata->Data(), size); return (WTF::CurrentTime() - time_stamp) < cache_within_seconds; } @@ -309,7 +309,7 @@ case kV8CacheOptionsAlways: // Currently V8CacheOptionsAlways doesn't support streaming. - ASSERT_NOT_REACHED(); + NOTREACHED(); case kV8CacheOptionsNone: break; } @@ -391,13 +391,13 @@ case kV8CacheOptionsNone: // Shouldn't happen, as this is handled above. // Case is here so that compiler can check all cases are handled. - ASSERT_NOT_REACHED(); + NOTREACHED(); break; } // All switch branches should return and we should never get here. // But some compilers aren't sure, hence this default. - ASSERT_NOT_REACHED(); + NOTREACHED(); return Bind(CompileWithoutOptions, V8CompileHistogram::kCacheable); } @@ -406,11 +406,11 @@ ScriptResource* resource, ScriptStreamer* streamer) { // We don't stream scripts which don't have a Resource. - ASSERT(resource); + DCHECK(resource); // Failed resources should never get this far. - ASSERT(!resource->ErrorOccurred()); - ASSERT(streamer->IsFinished()); - ASSERT(!streamer->StreamingSuppressed()); + DCHECK(!resource->ErrorOccurred()); + DCHECK(streamer->IsFinished()); + DCHECK(!streamer->StreamingSuppressed()); return WTF::Bind(PostStreamCompile, cache_options, WrapPersistent(resource->CacheHandler()), WrapPersistent(streamer)); @@ -468,8 +468,8 @@ "data", InspectorCompileScriptEvent::Data(file_name, script_start_position)); - ASSERT(!streamer || resource); - ASSERT(!resource || resource->CacheHandler() == cache_handler); + DCHECK(!streamer || resource); + DCHECK(!resource || resource->CacheHandler() == cache_handler); // NOTE: For compatibility with WebCore, ScriptSourceCode's line starts at // 1, whereas v8 starts at 0. @@ -527,7 +527,7 @@ v8::Isolate* isolate, v8::Local<v8::Script> script, ExecutionContext* context) { - ASSERT(!script.IsEmpty()); + DCHECK(!script.IsEmpty()); ScopedFrameBlamer frame_blamer( context->IsDocument() ? ToDocument(context)->GetFrame() : nullptr); TRACE_EVENT1("v8", "v8.run", "fileName", @@ -537,7 +537,7 @@ if (v8::MicrotasksScope::GetCurrentDepth(isolate) >= kMaxRecursionDepth) return ThrowStackOverflowExceptionIfNeeded(isolate); - RELEASE_ASSERT(!context->IsIteratingOverObservers()); + CHECK(!context->IsIteratingOverObservers()); // Run the script and keep track of the current recursion depth. v8::MaybeLocal<v8::Value> result; @@ -640,7 +640,7 @@ return v8::MaybeLocal<v8::Value>( ThrowStackOverflowExceptionIfNeeded(isolate)); - RELEASE_ASSERT(!context->IsIteratingOverObservers()); + CHECK(!context->IsIteratingOverObservers()); if (ScriptForbiddenScope::IsScriptForbidden()) { ThrowScriptForbiddenException(isolate);
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8StringResource.cpp b/third_party/WebKit/Source/bindings/core/v8/V8StringResource.cpp index 340fecf..ee2cc84c 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8StringResource.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8StringResource.cpp
@@ -76,7 +76,7 @@ template <typename V8StringTrait> String StringTraits<String>::FromV8String(v8::Local<v8::String> v8_string, int length) { - ASSERT(v8_string->Length() == length); + DCHECK_EQ(v8_string->Length(), length); typename V8StringTrait::CharType* buffer; String result = String::CreateUninitialized(length, buffer); V8StringTrait::Write(v8_string, buffer, length); @@ -87,7 +87,7 @@ AtomicString StringTraits<AtomicString>::FromV8String( v8::Local<v8::String> v8_string, int length) { - ASSERT(v8_string->Length() == length); + DCHECK_EQ(v8_string->Length(), length); static const int kInlineBufferSize = 32 / sizeof(typename V8StringTrait::CharType); if (length <= kInlineBufferSize) { @@ -159,7 +159,7 @@ String Int32ToWebCoreStringFast(int value) { // Caching of small strings below is not thread safe: newly constructed // AtomicString are not safely published. - ASSERT(IsMainThread()); + DCHECK(IsMainThread()); // Most numbers used are <= 100. Even if they aren't used there's very little // cost in using the space.
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8StringResource.h b/third_party/WebKit/Source/bindings/core/v8/V8StringResource.h index dceff6f3..847bf761 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8StringResource.h +++ b/third_party/WebKit/Source/bindings/core/v8/V8StringResource.h
@@ -47,7 +47,7 @@ #if DCHECK_IS_ON() thread_id_ = WTF::CurrentThread(); #endif - ASSERT(!string.IsNull()); + DCHECK(!string.IsNull()); v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory( string.CharactersSizeInBytes()); } @@ -57,14 +57,14 @@ #if DCHECK_IS_ON() thread_id_ = WTF::CurrentThread(); #endif - ASSERT(!string.IsNull()); + DCHECK(!string.IsNull()); v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory( string.CharactersSizeInBytes()); } virtual ~WebCoreStringResourceBase() { #if DCHECK_IS_ON() - ASSERT(thread_id_ == WTF::CurrentThread()); + DCHECK_EQ(thread_id_, WTF::CurrentThread()); #endif int64_t reduced_external_memory = plain_string_.CharactersSizeInBytes(); if (plain_string_.Impl() != atomic_string_.Impl() && @@ -78,11 +78,11 @@ const AtomicString& GetAtomicString() { #if DCHECK_IS_ON() - ASSERT(thread_id_ == WTF::CurrentThread()); + DCHECK_EQ(thread_id_, WTF::CurrentThread()); #endif if (atomic_string_.IsNull()) { atomic_string_ = AtomicString(plain_string_); - ASSERT(!atomic_string_.IsNull()); + DCHECK(!atomic_string_.IsNull()); if (plain_string_.Impl() != atomic_string_.Impl()) v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory( atomic_string_.CharactersSizeInBytes()); @@ -115,12 +115,12 @@ public: explicit WebCoreStringResource16(const String& string) : WebCoreStringResourceBase(string) { - ASSERT(!string.Is8Bit()); + DCHECK(!string.Is8Bit()); } explicit WebCoreStringResource16(const AtomicString& string) : WebCoreStringResourceBase(string) { - ASSERT(!string.Is8Bit()); + DCHECK(!string.Is8Bit()); } size_t length() const override { return plain_string_.Impl()->length(); } @@ -138,12 +138,12 @@ public: explicit WebCoreStringResource8(const String& string) : WebCoreStringResourceBase(string) { - ASSERT(string.Is8Bit()); + DCHECK(string.Is8Bit()); } explicit WebCoreStringResource8(const AtomicString& string) : WebCoreStringResourceBase(string) { - ASSERT(string.Is8Bit()); + DCHECK(string.Is8Bit()); } size_t length() const override { return plain_string_.Impl()->length(); } @@ -269,7 +269,7 @@ template <> inline String V8StringResource<kDefaultMode>::FallbackString() const { - ASSERT_NOT_REACHED(); + NOTREACHED(); return String(); }
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.cpp index d0f5cc3..88045e5e 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.cpp
@@ -133,13 +133,13 @@ v8::Local<v8::String> StringCache::CreateStringAndInsertIntoCache( v8::Isolate* isolate, StringImpl* string_impl) { - ASSERT(!string_cache_.Contains(string_impl)); - ASSERT(string_impl->length()); + DCHECK(!string_cache_.Contains(string_impl)); + DCHECK(string_impl->length()); v8::Local<v8::String> new_string = MakeExternalString(isolate, String(string_impl)); - ASSERT(!new_string.IsEmpty()); - ASSERT(new_string->Length()); + DCHECK(!new_string.IsEmpty()); + DCHECK(new_string->Length()); v8::UniquePersistent<v8::String> wrapper(isolate, new_string);
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.h b/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.h index 8caa2bea..56f8128 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.h +++ b/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.h
@@ -83,7 +83,7 @@ v8::Local<v8::String> V8ExternalString(v8::Isolate* isolate, StringImpl* string_impl) { - ASSERT(string_impl); + DCHECK(string_impl); if (last_string_impl_.Get() == string_impl) return last_v8_string_.NewLocal(isolate); return V8ExternalStringSlow(isolate, string_impl); @@ -91,7 +91,7 @@ void SetReturnValueFromString(v8::ReturnValue<v8::Value> return_value, StringImpl* string_impl) { - ASSERT(string_impl); + DCHECK(string_impl); if (last_string_impl_.Get() == string_impl) last_v8_string_.SetReturnValue(return_value); else
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8WorkerGlobalScopeEventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/V8WorkerGlobalScopeEventListener.cpp index e4ec820..e8c1c1e 100644 --- a/third_party/WebKit/Source/bindings/core/v8/V8WorkerGlobalScopeEventListener.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/V8WorkerGlobalScopeEventListener.cpp
@@ -73,7 +73,7 @@ ScriptState* script_state, v8::Local<v8::Value> js_event, Event* event) { - ASSERT(!js_event.IsEmpty()); + DCHECK(!js_event.IsEmpty()); v8::Local<v8::Function> handler_function = GetListenerFunction(script_state); v8::Local<v8::Object> receiver = GetReceiverObject(script_state, event); if (handler_function.IsEmpty() || receiver.IsEmpty())
diff --git a/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp b/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp index c7f16c15..519e7c8 100644 --- a/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp
@@ -103,13 +103,13 @@ execution_forbidden_(false), rejected_promises_(RejectedPromises::Create()), execution_state_(0) { - ASSERT(isolate); + DCHECK(isolate); world_ = DOMWrapperWorld::Create(isolate, DOMWrapperWorld::WorldType::kWorker); } WorkerOrWorkletScriptController::~WorkerOrWorkletScriptController() { - ASSERT(!rejected_promises_); + DCHECK(!rejected_promises_); } void WorkerOrWorkletScriptController::Dispose() { @@ -339,12 +339,12 @@ } void WorkerOrWorkletScriptController::ForbidExecution() { - ASSERT(global_scope_->IsContextThread()); + DCHECK(global_scope_->IsContextThread()); execution_forbidden_ = true; } bool WorkerOrWorkletScriptController::IsExecutionForbidden() const { - ASSERT(global_scope_->IsContextThread()); + DCHECK(global_scope_->IsContextThread()); return execution_forbidden_; }
diff --git a/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h b/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h index a802abf..7fd0ba86 100644 --- a/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h +++ b/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h
@@ -187,14 +187,14 @@ template <typename T, int offset> inline T* GetInternalField(const v8::PersistentBase<v8::Object>& persistent) { - ASSERT(offset < v8::Object::InternalFieldCount(persistent)); + DCHECK_LT(offset, v8::Object::InternalFieldCount(persistent)); return reinterpret_cast<T*>( v8::Object::GetAlignedPointerFromInternalField(persistent, offset)); } template <typename T, int offset> inline T* GetInternalField(v8::Local<v8::Object> wrapper) { - ASSERT(offset < wrapper->InternalFieldCount()); + DCHECK_LT(offset, wrapper->InternalFieldCount()); return reinterpret_cast<T*>( wrapper->GetAlignedPointerFromInternalField(offset)); }
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp index eb27124b..ee792da 100644 --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp
@@ -62,10 +62,10 @@ static bool HasCSSPropertyNamePrefix(const String& property_name, const char* prefix) { #if DCHECK_IS_ON() - ASSERT(*prefix); + DCHECK(*prefix); for (const char* p = prefix; *p; ++p) - ASSERT(IsASCIILower(*p)); - ASSERT(property_name.length()); + DCHECK(IsASCIILower(*p)); + DCHECK(property_name.length()); #endif if (ToASCIILower(property_name[0]) != prefix[0]) @@ -143,7 +143,7 @@ if (unresolved_property == CSSPropertyVariable) unresolved_property = CSSPropertyInvalid; map.insert(name, unresolved_property); - ASSERT(!unresolved_property || + DCHECK(!unresolved_property || CSSPropertyMetadata::IsEnabledProperty(unresolved_property)); return unresolved_property; } @@ -170,7 +170,7 @@ v8::Array::New(info.GetIsolate(), property_names_length); for (unsigned i = 0; i < property_names_length; ++i) { String key = property_names.at(i); - ASSERT(!key.IsNull()); + DCHECK(!key.IsNull()); if (!V8CallBoolean(properties->CreateDataProperty( context, i, V8String(info.GetIsolate(), key)))) return;
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp index 2df13bd..2502ca4 100644 --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLPlugInElementCustom.cpp
@@ -73,7 +73,7 @@ const AtomicString& name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<v8::Value>& info) { - ASSERT(!value.IsEmpty()); + DCHECK(!value.IsEmpty()); HTMLPlugInElement* impl = ElementType::toImpl(info.Holder()); RefPtr<SharedPersistent<v8::Object>> wrapper = impl->PluginWrapper();
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp index 6ec317b..8a4ad2f 100644 --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp
@@ -54,7 +54,7 @@ intersection_observer_init, *callback, exception_state); if (exception_state.HadException()) return; - ASSERT(observer); + DCHECK(observer); V8SetReturnValue(info, V8DOMWrapper::AssociateObjectWithWrapper( info.GetIsolate(), observer, &wrapperTypeInfo, wrapper));
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp index ed610fb..a7bf0ea 100644 --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8PerformanceObserverCustom.cpp
@@ -40,7 +40,7 @@ return; } performance = DOMWindowPerformance::performance(*window); - ASSERT(performance); + DCHECK(performance); if (info.Length() <= 0 || !info[0]->IsFunction()) { V8ThrowException::ThrowTypeError(
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp index 20bb8b6..e418d71f 100644 --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
@@ -162,7 +162,7 @@ // So, use its containing document as the creation context when wrapping. v8::Local<v8::Value> creation_context = ToV8( &impl->frameElement()->GetDocument(), info.Holder(), info.GetIsolate()); - RELEASE_ASSERT(!creation_context.IsEmpty()); + CHECK(!creation_context.IsEmpty()); v8::Local<v8::Value> wrapper = ToV8(impl->frameElement(), v8::Local<v8::Object>::Cast(creation_context), info.GetIsolate()); @@ -189,7 +189,7 @@ if (value->IsNull()) { // impl->frame() has to be a non-null LocalFrame. Otherwise, the // same-origin check would have failed. - ASSERT(impl->GetFrame()); + DCHECK(impl->GetFrame()); ToLocalFrame(impl->GetFrame())->Loader().SetOpener(0); } @@ -231,7 +231,7 @@ // https://html.spec.whatwg.org/multipage/comms.html#dom-window-postmessage LocalDOMWindow* source = CurrentDOMWindow(info.GetIsolate()); - ASSERT(window); + DCHECK(window); UseCounter::Count(window->GetFrame(), UseCounter::kWindowPostMessage); // If called directly by WebCore we don't have a calling context.
diff --git a/third_party/WebKit/Source/bindings/modules/v8/ToV8ForModules.h b/third_party/WebKit/Source/bindings/modules/v8/ToV8ForModules.h index 4a22cb4..5c5e351 100644 --- a/third_party/WebKit/Source/bindings/modules/v8/ToV8ForModules.h +++ b/third_party/WebKit/Source/bindings/modules/v8/ToV8ForModules.h
@@ -26,7 +26,7 @@ case SQLValue::kStringValue: return V8String(isolate, sql_value.GetString()); } - ASSERT_NOT_REACHED(); + NOTREACHED(); return v8::Local<v8::Value>(); }
diff --git a/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp b/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp index 364ac31..4a2a30f 100644 --- a/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp +++ b/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp
@@ -73,7 +73,7 @@ case IDBKeyPath::kArrayType: return ToV8(value.Array(), creation_context, isolate); } - ASSERT_NOT_REACHED(); + NOTREACHED(); return v8::Undefined(isolate); } @@ -121,7 +121,7 @@ } } - ASSERT_NOT_REACHED(); + NOTREACHED(); return V8Undefined(); } @@ -164,7 +164,7 @@ return ToV8(impl->Key(), creation_context, isolate); } - ASSERT_NOT_REACHED(); + NOTREACHED(); return v8::Undefined(isolate); } @@ -272,7 +272,7 @@ Vector<String> elements; IDBKeyPathParseError error; IDBParseKeyPath(key_path, elements, error); - ASSERT(error == kIDBKeyPathParseErrorNone); + DCHECK_EQ(error, kIDBKeyPathParseErrorNone); return elements; } @@ -282,7 +282,7 @@ const String& key_path, ExceptionState& exception_state) { Vector<String> key_path_elements = ParseKeyPath(key_path); - ASSERT(isolate->InContext()); + DCHECK(isolate->InContext()); v8::HandleScope handle_scope(isolate); v8::Local<v8::Context> context = isolate->GetCurrentContext(); @@ -356,7 +356,7 @@ v8::Local<v8::Value> value, const IDBKeyPath& key_path, ExceptionState& exception_state) { - ASSERT(!key_path.IsNull()); + DCHECK(!key_path.IsNull()); v8::HandleScope handle_scope(isolate); if (key_path.GetType() == IDBKeyPath::kArrayType) { IDBKey::KeyArray result; @@ -371,7 +371,7 @@ return IDBKey::CreateArray(result); } - ASSERT(key_path.GetType() == IDBKeyPath::kStringType); + DCHECK_EQ(key_path.GetType(), IDBKeyPath::kStringType); return CreateIDBKeyFromValueAndKeyPath(isolate, value, key_path.GetString(), exception_state); } @@ -381,7 +381,7 @@ // Primary key injection is performed in deserializeIDBValue() below. static v8::Local<v8::Value> DeserializeIDBValueData(v8::Isolate* isolate, const IDBValue* value) { - ASSERT(isolate->InContext()); + DCHECK(isolate->InContext()); if (!value || value->IsNull()) return v8::Null(isolate); @@ -410,7 +410,7 @@ v8::Local<v8::Value> DeserializeIDBValue(v8::Isolate* isolate, v8::Local<v8::Object> creation_context, const IDBValue* value) { - ASSERT(isolate->InContext()); + DCHECK(isolate->InContext()); if (!value || value->IsNull()) return v8::Null(isolate); @@ -435,7 +435,7 @@ v8::Isolate* isolate, v8::Local<v8::Object> creation_context, const Vector<RefPtr<IDBValue>>* values) { - ASSERT(isolate->InContext()); + DCHECK(isolate->InContext()); v8::Local<v8::Context> context = isolate->GetCurrentContext(); v8::Local<v8::Array> array = v8::Array::New(isolate, values->size()); @@ -473,15 +473,15 @@ v8::Local<v8::Value> value, const IDBKeyPath& key_path) { IDB_TRACE("injectIDBV8KeyIntoV8Value"); - ASSERT(isolate->InContext()); + DCHECK(isolate->InContext()); - ASSERT(key_path.GetType() == IDBKeyPath::kStringType); + DCHECK_EQ(key_path.GetType(), IDBKeyPath::kStringType); Vector<String> key_path_elements = ParseKeyPath(key_path.GetString()); // The conbination of a key generator and an empty key path is forbidden by // spec. if (!key_path_elements.size()) { - ASSERT_NOT_REACHED(); + NOTREACHED(); return false; } @@ -518,7 +518,7 @@ return false; const String& key_path_element = key_path_elements[i]; - ASSERT(!IsImplicitProperty(isolate, value, key_path_element)); + DCHECK(!IsImplicitProperty(isolate, value, key_path_element)); v8::Local<v8::Object> object = value.As<v8::Object>(); v8::Local<v8::String> property = V8String(isolate, key_path_element); bool has_own_property; @@ -561,7 +561,7 @@ const ScriptValue& script_value, const IDBKeyPath& key_path) { IDB_TRACE("canInjectIDBKeyIntoScriptValue"); - ASSERT(key_path.GetType() == IDBKeyPath::kStringType); + DCHECK_EQ(key_path.GetType(), IDBKeyPath::kStringType); Vector<String> key_path_elements = ParseKeyPath(key_path.GetString()); if (!key_path_elements.size()) @@ -663,7 +663,7 @@ DummyExceptionStateForTesting exception_state; IDBKey* expected_key = CreateIDBKeyFromValueAndKeyPath( isolate, script_value.V8Value(), value->KeyPath(), exception_state); - ASSERT(!exception_state.HadException()); + DCHECK(!exception_state.HadException()); if (expected_key && expected_key->IsEqual(value->PrimaryKey())) return;
diff --git a/third_party/WebKit/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp b/third_party/WebKit/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp index 53c9b9b..a16ed81 100644 --- a/third_party/WebKit/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp +++ b/third_party/WebKit/Source/bindings/modules/v8/custom/V8CustomSQLStatementErrorCallback.cpp
@@ -54,7 +54,7 @@ ToV8(transaction, m_scriptState->GetContext()->Global(), isolate); v8::Local<v8::Value> error_handle = ToV8(error, m_scriptState->GetContext()->Global(), isolate); - ASSERT(transaction_handle->IsObject()); + DCHECK(transaction_handle->IsObject()); v8::Local<v8::Value> argv[] = {transaction_handle, error_handle};
diff --git a/third_party/WebKit/Source/build/scripts/make_event_factory.py b/third_party/WebKit/Source/build/scripts/make_event_factory.py index 582a6c1e0a..edef99a 100755 --- a/third_party/WebKit/Source/build/scripts/make_event_factory.py +++ b/third_party/WebKit/Source/build/scripts/make_event_factory.py
@@ -92,7 +92,6 @@ or name == 'TrackEvent' or name == 'TransitionEvent' or name == 'WebGLContextEvent' - or name == 'WebKitAnimationEvent' or name == 'WebKitTransitionEvent' or name == 'WheelEvent')
diff --git a/third_party/WebKit/Source/build/scripts/name_utilities.py b/third_party/WebKit/Source/build/scripts/name_utilities.py index df4b843..0d80825 100644 --- a/third_party/WebKit/Source/build/scripts/name_utilities.py +++ b/third_party/WebKit/Source/build/scripts/name_utilities.py
@@ -135,6 +135,11 @@ def lower_camel_case(name): return lower_first_letter(upper_camel_case(name)) + +def snake_case(name): + return '_'.join(word.lower() for word in split_name(name)) + + # Use these high level naming functions which describe the semantics of the name, # rather than a particular style. @@ -148,8 +153,7 @@ def class_member_name(name): - lower_case_words = [word.lower() for word in split_name(name)] - return "_".join(lower_case_words) + "_" + return snake_case(name) + "_" def method_name(name):
diff --git a/third_party/WebKit/Source/core/animation/BUILD.gn b/third_party/WebKit/Source/core/animation/BUILD.gn index f9add35..2753349 100644 --- a/third_party/WebKit/Source/core/animation/BUILD.gn +++ b/third_party/WebKit/Source/core/animation/BUILD.gn
@@ -68,6 +68,8 @@ "CSSPositionAxisListInterpolationType.cpp", "CSSPositionAxisListInterpolationType.h", "CSSPositionInterpolationType.h", + "CSSResolutionInterpolationType.cpp", + "CSSResolutionInterpolationType.h", "CSSRotateInterpolationType.cpp", "CSSRotateInterpolationType.h", "CSSScaleInterpolationType.cpp",
diff --git a/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp b/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp index a9c4d8d..1349e89 100644 --- a/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp +++ b/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp
@@ -25,6 +25,7 @@ #include "core/animation/CSSPathInterpolationType.h" #include "core/animation/CSSPositionAxisListInterpolationType.h" #include "core/animation/CSSPositionInterpolationType.h" +#include "core/animation/CSSResolutionInterpolationType.h" #include "core/animation/CSSRotateInterpolationType.h" #include "core/animation/CSSScaleInterpolationType.h" #include "core/animation/CSSShadowListInterpolationType.h" @@ -356,13 +357,16 @@ case CSSSyntaxType::kNumber: result.push_back(WTF::MakeUnique<CSSNumberInterpolationType>(property)); break; + case CSSSyntaxType::kResolution: + result.push_back( + WTF::MakeUnique<CSSResolutionInterpolationType>(property)); + break; case CSSSyntaxType::kTime: result.push_back(WTF::MakeUnique<CSSTimeInterpolationType>(property)); break; case CSSSyntaxType::kImage: case CSSSyntaxType::kUrl: case CSSSyntaxType::kInteger: - case CSSSyntaxType::kResolution: case CSSSyntaxType::kTransformFunction: // TODO(alancutter): Support smooth interpolation of these types. break;
diff --git a/third_party/WebKit/Source/core/animation/CSSResolutionInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSResolutionInterpolationType.cpp new file mode 100644 index 0000000..4dd9281 --- /dev/null +++ b/third_party/WebKit/Source/core/animation/CSSResolutionInterpolationType.cpp
@@ -0,0 +1,37 @@ +// 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 "core/animation/CSSResolutionInterpolationType.h" + +#include "core/css/CSSPrimitiveValue.h" + +namespace blink { + +InterpolationValue CSSResolutionInterpolationType::MaybeConvertNeutral( + const InterpolationValue&, + ConversionCheckers&) const { + return InterpolationValue(InterpolableNumber::Create(0)); +} + +InterpolationValue CSSResolutionInterpolationType::MaybeConvertValue( + const CSSValue& value, + const StyleResolverState*, + ConversionCheckers&) const { + if (!value.IsPrimitiveValue() || + !CSSPrimitiveValue::IsResolution( + ToCSSPrimitiveValue(value).TypeWithCalcResolved())) + return nullptr; + return InterpolationValue(InterpolableNumber::Create( + ToCSSPrimitiveValue(value).ComputeDotsPerPixel())); +} + +const CSSValue* CSSResolutionInterpolationType::CreateCSSValue( + const InterpolableValue& value, + const NonInterpolableValue*, + const StyleResolverState&) const { + return CSSPrimitiveValue::Create(ToInterpolableNumber(value).Value(), + CSSPrimitiveValue::UnitType::kDotsPerPixel); +} + +} // namespace blink
diff --git a/third_party/WebKit/Source/core/animation/CSSResolutionInterpolationType.h b/third_party/WebKit/Source/core/animation/CSSResolutionInterpolationType.h new file mode 100644 index 0000000..4a784112 --- /dev/null +++ b/third_party/WebKit/Source/core/animation/CSSResolutionInterpolationType.h
@@ -0,0 +1,59 @@ +// 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 CSSResolutionInterpolationType_h +#define CSSResolutionInterpolationType_h + +#include "core/animation/CSSInterpolationType.h" + +namespace blink { + +class CSSResolutionInterpolationType : public CSSInterpolationType { + public: + CSSResolutionInterpolationType(PropertyHandle property) + : CSSInterpolationType(property) { + DCHECK(property.IsCSSCustomProperty()); + } + + InterpolationValue MaybeConvertNeutral(const InterpolationValue& underlying, + ConversionCheckers&) const final; + InterpolationValue MaybeConvertValue(const CSSValue&, + const StyleResolverState*, + ConversionCheckers&) const final; + + const CSSValue* CreateCSSValue(const InterpolableValue&, + const NonInterpolableValue*, + const StyleResolverState&) const final; + + private: + // These methods only apply to CSSInterpolationTypes used by standard CSS + // properties. + // CSSResolutionInterpolationType is only accessible via registered custom CSS + // properties as there are no standard properties that interpolate resolution + // values. + InterpolationValue MaybeConvertStandardPropertyUnderlyingValue( + const ComputedStyle&) const final { + NOTREACHED(); + return nullptr; + } + void ApplyStandardPropertyValue(const InterpolableValue&, + const NonInterpolableValue*, + StyleResolverState&) const final { + NOTREACHED(); + } + InterpolationValue MaybeConvertInitial(const StyleResolverState&, + ConversionCheckers&) const final { + NOTREACHED(); + return nullptr; + } + InterpolationValue MaybeConvertInherit(const StyleResolverState&, + ConversionCheckers&) const final { + NOTREACHED(); + return nullptr; + } +}; + +} // namespace blink + +#endif // CSSResolutionInterpolationType_h
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp index a301e0b..d154f37c 100644 --- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp +++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp
@@ -265,6 +265,12 @@ } } +double CSSPrimitiveValue::ComputeDotsPerPixel() const { + UnitType current_type = TypeWithCalcResolved(); + DCHECK(IsResolution(current_type)); + return GetDoubleValue() * ConversionToCanonicalUnitsScaleFactor(current_type); +} + template <> int CSSPrimitiveValue::ComputeLength( const CSSToLengthConversionData& conversion_data) const {
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h index f36984f3a..47728892 100644 --- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h +++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.h
@@ -233,6 +233,7 @@ double ComputeDegrees() const; double ComputeSeconds() const; + double ComputeDotsPerPixel() const; // Computes a length in pixels, resolving relative lengths template <typename T>
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp index ad1da82c..7230632 100644 --- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp +++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -77,6 +77,13 @@ } // namespace +Member<DocumentMarkerController::MarkerList>& +DocumentMarkerController::ListForType(MarkerLists* marker_lists, + DocumentMarker::MarkerType type) { + const size_t marker_list_index = MarkerTypeToMarkerIndex(type); + return (*marker_lists)[marker_list_index]; +} + inline bool DocumentMarkerController::PossiblyHasMarkers( DocumentMarker::MarkerTypes types) { return possibly_existing_marker_types_.Intersects(types); @@ -227,27 +234,12 @@ markers->Grow(DocumentMarker::kMarkerTypeIndexesCount); } - DocumentMarker::MarkerTypeIndex marker_list_index = - MarkerTypeToMarkerIndex(new_marker.GetType()); - if (!markers->at(marker_list_index)) { - markers->at(marker_list_index) = new MarkerList; - } + const DocumentMarker::MarkerType new_marker_type = new_marker.GetType(); + if (!ListForType(markers, new_marker_type)) + ListForType(markers, new_marker_type) = new MarkerList; - Member<MarkerList>& list = markers->at(marker_list_index); - RenderedDocumentMarker* new_rendered_marker = - RenderedDocumentMarker::Create(new_marker); - if (list->IsEmpty() || list->back()->EndOffset() < new_marker.StartOffset()) { - list->push_back(new_rendered_marker); - } else { - if (new_marker.GetType() != DocumentMarker::kTextMatch && - new_marker.GetType() != DocumentMarker::kComposition) { - MergeOverlapping(list.Get(), new_rendered_marker); - } else { - MarkerList::iterator pos = std::lower_bound(list->begin(), list->end(), - &new_marker, StartsFurther); - list->insert(pos - list->begin(), new_rendered_marker); - } - } + Member<MarkerList>& list = ListForType(markers, new_marker_type); + DocumentMarkerListEditor::AddMarker(list, &new_marker); // repaint the affected node if (node->GetLayoutObject()) { @@ -256,7 +248,29 @@ } } -void DocumentMarkerController::MergeOverlapping( +// TODO(rlanday): move DocumentMarkerListEditor into its own .h/.cpp files +// TODO(rlanday): this method was created by cutting and pasting code from +// DocumentMarkerController::AddMarker(), it should be refactored in a future CL +void DocumentMarkerListEditor::AddMarker(MarkerList* list, + const DocumentMarker* marker) { + RenderedDocumentMarker* rendered_marker = + RenderedDocumentMarker::Create(*marker); + if (list->IsEmpty() || list->back()->EndOffset() < marker->StartOffset()) { + list->push_back(rendered_marker); + } else { + if (marker->GetType() != DocumentMarker::kTextMatch && + marker->GetType() != DocumentMarker::kComposition) { + MergeOverlapping(list, rendered_marker); + } else { + MarkerList::iterator pos = + std::lower_bound(list->begin(), list->end(), marker, StartsFurther); + list->insert(pos - list->begin(), rendered_marker); + } + } +} + +// TODO(rlanday): move DocumentMarkerListEditor into its own .h/.cpp files +void DocumentMarkerListEditor::MergeOverlapping( MarkerList* list, RenderedDocumentMarker* to_insert) { MarkerList::iterator first_overlapping = @@ -287,18 +301,30 @@ return; DCHECK(!markers_.IsEmpty()); - MarkerLists* markers = markers_.at(src_node); - if (!markers) + MarkerLists* src_markers = markers_.at(src_node); + if (!src_markers) return; + if (!markers_.Contains(dst_node)) { + markers_.insert(dst_node, + new MarkerLists(DocumentMarker::kMarkerTypeIndexesCount)); + } + MarkerLists* dst_markers = markers_.at(dst_node); + bool doc_dirty = false; - for (Member<MarkerList> list : *markers) { - if (!list) + for (size_t marker_list_index = 0; marker_list_index < src_markers->size(); + ++marker_list_index) { + MarkerList* src_list = src_markers->at(marker_list_index); + if (!src_list) continue; + if (!dst_markers->at(marker_list_index)) + dst_markers->at(marker_list_index) = new MarkerList; + MarkerList* dst_list = dst_markers->at(marker_list_index); + unsigned end_offset = length - 1; MarkerList::iterator it; - for (it = list->begin(); it != list->end(); ++it) { + for (it = src_list->begin(); it != src_list->end(); ++it) { DocumentMarker* marker = it->Get(); // stop if we are now past the specified range @@ -310,11 +336,11 @@ if (marker->EndOffset() > end_offset) marker->SetEndOffset(end_offset); - AddMarker(dst_node, *marker); + DocumentMarkerListEditor::AddMarker(dst_list, marker); } - // Remove the range of markers that were moved to dstNode - list->erase(0, it - list->begin()); + // Remove the range of markers that were moved to dst_node + src_list->erase(0, it - src_list->begin()); } // repaint the affected node @@ -354,20 +380,9 @@ } if (!marker_types.Contains((*list->begin())->GetType())) continue; - unsigned end_offset = start_offset + length; - MarkerList::iterator start_pos = - std::upper_bound(list->begin(), list->end(), start_offset, EndsBefore); - for (MarkerList::iterator i = start_pos; i != list->end();) { - DocumentMarker marker(*i->Get()); - // markers are returned in order, so stop if we are now past the specified - // range - if (marker.StartOffset() >= end_offset) - break; - - list->erase(i - list->begin()); + if (DocumentMarkerListEditor::RemoveMarkers(list, start_offset, length)) doc_dirty = true; - } if (list->IsEmpty()) { list.Clear(); @@ -388,6 +403,32 @@ } } +// TODO(rlanday): move DocumentMarkerListEditor into its own .h/.cpp files +// TODO(rlanday): this method was created by cutting and pasting code from +// DocumentMarkerController::RemoveMarkers(), it should be refactored in a +// future CL +bool DocumentMarkerListEditor::RemoveMarkers(MarkerList* list, + unsigned start_offset, + int length) { + bool doc_dirty = false; + unsigned end_offset = start_offset + length; + MarkerList::iterator start_pos = + std::upper_bound(list->begin(), list->end(), start_offset, EndsBefore); + for (MarkerList::iterator i = start_pos; i != list->end();) { + DocumentMarker marker(*i->Get()); + + // markers are returned in order, so stop if we are now past the specified + // range + if (marker.StartOffset() >= end_offset) + break; + + list->erase(i - list->begin()); + doc_dirty = true; + } + + return doc_dirty; +} + DocumentMarkerVector DocumentMarkerController::MarkersFor( Node* node, DocumentMarker::MarkerTypes marker_types) { @@ -725,8 +766,7 @@ return false; bool doc_dirty = false; - Member<MarkerList>& list = - (*markers)[MarkerTypeToMarkerIndex(DocumentMarker::kTextMatch)]; + Member<MarkerList>& list = ListForType(markers, DocumentMarker::kTextMatch); if (!list) return false; MarkerList::iterator start_pos = @@ -802,24 +842,9 @@ if (!list) continue; - for (MarkerList::iterator it = list->begin(); it != list->end(); ++it) { - RenderedDocumentMarker& marker = **it; - Optional<DocumentMarker::MarkerOffsets> result = - marker.ComputeOffsetsAfterShift(offset, old_length, new_length); - if (result == WTF::kNullopt) { - list->erase(it - list->begin()); - --it; - did_shift_marker = true; - continue; - } - - if (marker.StartOffset() != result.value().start_offset || - marker.EndOffset() != result.value().end_offset) { - did_shift_marker = true; - marker.SetStartOffset(result.value().start_offset); - marker.SetEndOffset(result.value().end_offset); - } - } + if (DocumentMarkerListEditor::ShiftMarkers(list, offset, old_length, + new_length)) + did_shift_marker = true; } if (!did_shift_marker) @@ -831,6 +856,34 @@ node->GetLayoutObject()->SetShouldDoFullPaintInvalidation(); } +// TODO(rlanday): move DocumentMarkerListEditor into its own .h/.cpp files +bool DocumentMarkerListEditor::ShiftMarkers(MarkerList* list, + unsigned offset, + unsigned old_length, + unsigned new_length) { + bool did_shift_marker = false; + for (MarkerList::iterator it = list->begin(); it != list->end(); ++it) { + RenderedDocumentMarker& marker = **it; + Optional<DocumentMarker::MarkerOffsets> result = + marker.ComputeOffsetsAfterShift(offset, old_length, new_length); + if (result == WTF::kNullopt) { + list->erase(it - list->begin()); + --it; + did_shift_marker = true; + continue; + } + + if (marker.StartOffset() != result.value().start_offset || + marker.EndOffset() != result.value().end_offset) { + did_shift_marker = true; + marker.SetStartOffset(result.value().start_offset); + marker.SetEndOffset(result.value().end_offset); + } + } + + return did_shift_marker; +} + } // namespace blink #ifndef NDEBUG
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h index 67ea88da..8d2c9b5f 100644 --- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h +++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
@@ -53,6 +53,25 @@ Vector<String> words_; }; +class DocumentMarkerListEditor { + public: + using MarkerList = HeapVector<Member<RenderedDocumentMarker>>; + + static void AddMarker(MarkerList*, const DocumentMarker*); + + // Returns true if a marker was removed, false otherwise. + static bool RemoveMarkers(MarkerList*, unsigned start_offset, int length); + + // Returns true if a marker was shifted or removed, false otherwise. + static bool ShiftMarkers(MarkerList*, + unsigned offset, + unsigned old_length, + unsigned new_length); + + private: + static void MergeOverlapping(MarkerList*, RenderedDocumentMarker* to_insert); +}; + class CORE_EXPORT DocumentMarkerController final : public GarbageCollected<DocumentMarkerController>, public SynchronousMutationObserver { @@ -133,7 +152,8 @@ using MarkerLists = HeapVector<Member<MarkerList>, DocumentMarker::kMarkerTypeIndexesCount>; using MarkerMap = HeapHashMap<WeakMember<const Node>, Member<MarkerLists>>; - void MergeOverlapping(MarkerList*, RenderedDocumentMarker*); + static Member<MarkerList>& ListForType(MarkerLists*, + DocumentMarker::MarkerType); bool PossiblyHasMarkers(DocumentMarker::MarkerTypes); void RemoveMarkersFromList(MarkerMap::iterator, DocumentMarker::MarkerTypes); void RemoveMarkers(TextIterator&, DocumentMarker::MarkerTypes);
diff --git a/third_party/WebKit/Source/core/frame/UseCounter.h b/third_party/WebKit/Source/core/frame/UseCounter.h index 4ab0434..de7bee3 100644 --- a/third_party/WebKit/Source/core/frame/UseCounter.h +++ b/third_party/WebKit/Source/core/frame/UseCounter.h
@@ -899,7 +899,6 @@ kDocumentCreateEventTransitionEvent = 1183, kDocumentCreateEventWheelEvent = 1184, kDocumentCreateEventTrackEvent = 1186, - kDocumentCreateEventWebKitAnimationEvent = 1187, kDocumentCreateEventMutationEvents = 1188, kDocumentCreateEventSVGEvents = 1190, kDocumentCreateEventWebKitTransitionEvent = 1191,
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp index 41f39ae..23590934 100644 --- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp +++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
@@ -39,28 +39,28 @@ const CanvasContextCreationAttributes& attrs) : canvas_(canvas), offscreen_canvas_(offscreen_canvas), - color_space_(kLegacyCanvasColorSpace), - pixel_format_(kRGBA8CanvasPixelFormat), - linear_pixel_math_(false), + color_params_(kLegacyCanvasColorSpace, kRGBA8CanvasPixelFormat), creation_attributes_(attrs) { if (RuntimeEnabledFeatures::experimentalCanvasFeaturesEnabled() && RuntimeEnabledFeatures::colorCorrectRenderingEnabled()) { // Set the default color space to SRGB and continue - color_space_ = kSRGBCanvasColorSpace; + CanvasColorSpace color_space = kSRGBCanvasColorSpace; if (creation_attributes_.colorSpace() == kRec2020CanvasColorSpaceName) - color_space_ = kRec2020CanvasColorSpace; + color_space = kRec2020CanvasColorSpace; else if (creation_attributes_.colorSpace() == kP3CanvasColorSpaceName) - color_space_ = kP3CanvasColorSpace; + color_space = kP3CanvasColorSpace; // For now, we only support RGBA8 (for SRGB) and F16 (for all). Everything // else falls back to SRGB + RGBA8. + CanvasPixelFormat pixel_format = kRGBA8CanvasPixelFormat; if (creation_attributes_.pixelFormat() == kF16CanvasPixelFormatName) { - pixel_format_ = kF16CanvasPixelFormat; - linear_pixel_math_ = true; + pixel_format = kF16CanvasPixelFormat; } else { - color_space_ = kSRGBCanvasColorSpace; - pixel_format_ = kRGBA8CanvasPixelFormat; + color_space = kSRGBCanvasColorSpace; + pixel_format = kRGBA8CanvasPixelFormat; } + + color_params_ = CanvasColorParams(color_space, pixel_format); } // Make m_creationAttributes reflect the effective colorSpace, pixelFormat and @@ -71,7 +71,7 @@ } WTF::String CanvasRenderingContext::ColorSpaceAsString() const { - switch (color_space_) { + switch (color_params_.color_space()) { case kLegacyCanvasColorSpace: return kLegacyCanvasColorSpaceName; case kSRGBCanvasColorSpace: @@ -86,7 +86,7 @@ } WTF::String CanvasRenderingContext::PixelFormatAsString() const { - switch (pixel_format_) { + switch (color_params_.pixel_format()) { case kRGBA8CanvasPixelFormat: return kRGBA8CanvasPixelFormatName; case kRGB10A2CanvasPixelFormat: @@ -101,32 +101,19 @@ } gfx::ColorSpace CanvasRenderingContext::GfxColorSpace() const { - switch (color_space_) { - case kLegacyCanvasColorSpace: - return gfx::ColorSpace::CreateSRGB(); - case kSRGBCanvasColorSpace: - if (pixel_format_ == kF16CanvasPixelFormat) - return gfx::ColorSpace::CreateSCRGBLinear(); - return gfx::ColorSpace::CreateSRGB(); - case kRec2020CanvasColorSpace: - return gfx::ColorSpace(gfx::ColorSpace::PrimaryID::BT2020, - gfx::ColorSpace::TransferID::IEC61966_2_1); - case kP3CanvasColorSpace: - return gfx::ColorSpace(gfx::ColorSpace::PrimaryID::SMPTEST432_1, - gfx::ColorSpace::TransferID::IEC61966_2_1); - } - NOTREACHED(); - return gfx::ColorSpace(); + return color_params_.GetGfxColorSpace(); } sk_sp<SkColorSpace> CanvasRenderingContext::SkSurfaceColorSpace() const { - if (SkSurfacesUseColorSpace()) - return GfxColorSpace().ToSkColorSpace(); - return nullptr; + return color_params_.GetSkColorSpaceForSkSurfaces(); } bool CanvasRenderingContext::SkSurfacesUseColorSpace() const { - return color_space_ != kLegacyCanvasColorSpace; + return color_params_.GetSkColorSpaceForSkSurfaces(); +} + +bool CanvasRenderingContext::LinearPixelMath() const { + return color_params_.LinearPixelMath(); } ColorBehavior CanvasRenderingContext::ColorBehaviorForMediaDrawnToCanvas() @@ -136,10 +123,12 @@ return ColorBehavior::TransformToGlobalTarget(); } +CanvasColorSpace CanvasRenderingContext::ColorSpace() const { + return color_params_.color_space(); +} + SkColorType CanvasRenderingContext::ColorType() const { - if (pixel_format_ == kF16CanvasPixelFormat) - return kRGBA_F16_SkColorType; - return kN32_SkColorType; + return color_params_.GetSkColorType(); } void CanvasRenderingContext::Dispose() {
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h index e646999..0a6a2369 100644 --- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h +++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
@@ -31,6 +31,7 @@ #include "core/html/canvas/CanvasContextCreationAttributes.h" #include "core/layout/HitTestCanvasResult.h" #include "core/offscreencanvas/OffscreenCanvas.h" +#include "platform/graphics/CanvasColorParams.h" #include "platform/graphics/ColorBehavior.h" #include "platform/wtf/HashSet.h" #include "platform/wtf/Noncopyable.h" @@ -47,20 +48,6 @@ class ImageBitmap; class WebLayer; -enum CanvasColorSpace { - kLegacyCanvasColorSpace, - kSRGBCanvasColorSpace, - kRec2020CanvasColorSpace, - kP3CanvasColorSpace, -}; - -enum CanvasPixelFormat { - kRGBA8CanvasPixelFormat, - kRGB10A2CanvasPixelFormat, - kRGBA12CanvasPixelFormat, - kF16CanvasPixelFormat, -}; - constexpr const char* kLegacyCanvasColorSpaceName = "legacy-srgb"; constexpr const char* kSRGBCanvasColorSpaceName = "srgb"; constexpr const char* kRec2020CanvasColorSpaceName = "rec2020"; @@ -102,11 +89,11 @@ HTMLCanvasElement* canvas() const { return canvas_; } - CanvasColorSpace ColorSpace() const { return color_space_; }; + CanvasColorSpace ColorSpace() const; WTF::String ColorSpaceAsString() const; - CanvasPixelFormat PixelFormat() const { return pixel_format_; }; + CanvasPixelFormat PixelFormat() const; WTF::String PixelFormatAsString() const; - bool LinearPixelMath() const { return linear_pixel_math_; }; + bool LinearPixelMath() const; // The color space in which the the content should be interpreted by the // compositor. This is always defined. @@ -232,9 +219,7 @@ Member<OffscreenCanvas> offscreen_canvas_; HashSet<String> clean_urls_; HashSet<String> dirty_urls_; - CanvasColorSpace color_space_; - CanvasPixelFormat pixel_format_; - bool linear_pixel_math_ = false; + CanvasColorParams color_params_; CanvasContextCreationAttributes creation_attributes_; bool finalize_frame_scheduled_ = false; };
diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp index 660361f..e4944c4 100644 --- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp +++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
@@ -128,17 +128,20 @@ context.ancestor_overflow_paint_layer = paint_layer; } -void PrePaintTreeWalk::ComputeClipRectForContext( +LayoutRect PrePaintTreeWalk::ComputeClipRectForContext( const PaintPropertyTreeBuilderContext::ContainingBlockContext& context, const EffectPaintPropertyNode* effect, const PropertyTreeState& ancestor_state, - const LayoutPoint& ancestor_paint_offset, - FloatClipRect& clip_rect) { + const LayoutPoint& ancestor_paint_offset) { PropertyTreeState local_state(context.transform, context.clip, effect); - clip_rect = + const auto& clip_rect = GeometryMapper::SourceToDestinationClipRect(local_state, ancestor_state); - clip_rect.MoveBy(-FloatPoint(ancestor_paint_offset)); + // HasRadius() is ignored because it doesn't affect descendants' visual rects. + LayoutRect result(clip_rect.Rect()); + if (!clip_rect.IsInfinite()) + result.MoveBy(-ancestor_paint_offset); + return result; } void PrePaintTreeWalk::InvalidatePaintLayerOptimizationsIfNeeded( @@ -167,7 +170,7 @@ PropertyTreeState ancestor_state = *ancestor.LocalBorderBoxProperties(); #ifdef CHECK_CLIP_RECTS - ShouldRespectOverflowClipType respectOverflowClip = RespectOverflowClip; + auto respect_overflow_clip = kRespectOverflowClip; #endif if (context.ancestor_transformed_or_root_paint_layer->GetCompositingState() == kPaintsIntoOwnBacking) { @@ -175,55 +178,61 @@ if (ancestor_properties && ancestor_properties->OverflowClip()) { ancestor_state.SetClip(ancestor_properties->OverflowClip()); #ifdef CHECK_CLIP_RECTS - respectOverflowClip = IgnoreOverflowClip; + respect_overflow_clip = kIgnoreOverflowClip; #endif } } #ifdef CHECK_CLIP_RECTS - ClipRects& oldClipRects = - paintLayer.clipper(PaintLayer::DoNotUseGeometryMapper) - .paintingClipRects(&ancestorTransformedOrRootPaintLayer, - respectOverflowClip, LayoutSize()); + const auto& old_clip_rects = + paint_layer.Clipper(PaintLayer::kDoNotUseGeometryMapper) + .PaintingClipRects(context.ancestor_transformed_or_root_paint_layer, + respect_overflow_clip, LayoutSize()); #endif - RefPtr<ClipRects> clip_rects = ClipRects::Create(); const LayoutPoint& ancestor_paint_offset = context.ancestor_transformed_or_root_paint_layer->GetLayoutObject() .PaintOffset(); - FloatClipRect clip_rect; - const EffectPaintPropertyNode* effect = - context.tree_builder_context->current_effect; - ComputeClipRectForContext(context.tree_builder_context->current, effect, - ancestor_state, ancestor_paint_offset, clip_rect); - clip_rects->SetOverflowClipRect(clip_rect); + const auto* effect = context.tree_builder_context->current_effect; + auto overflow_clip_rect = + ComputeClipRectForContext(context.tree_builder_context->current, effect, + ancestor_state, ancestor_paint_offset); #ifdef CHECK_CLIP_RECTS - CHECK(clipRects->overflowClipRect() == oldClipRects.overflowClipRect()) - << "rect= " << clipRects->overflowClipRect().toString(); + CHECK(overflow_clip_rect == old_clip_rects.OverflowClipRect().Rect()) + << " new=" << overflow_clip_rect.ToString() + << " old=" << old_clip_rects.OverflowClipRect().Rect().ToString(); #endif - ComputeClipRectForContext(context.tree_builder_context->fixed_position, - effect, ancestor_state, ancestor_paint_offset, - clip_rect); - clip_rects->SetFixedClipRect(clip_rect); + auto fixed_clip_rect = + ComputeClipRectForContext(context.tree_builder_context->fixed_position, + effect, ancestor_state, ancestor_paint_offset); #ifdef CHECK_CLIP_RECTS - CHECK(clipRects->fixedClipRect() == oldClipRects.fixedClipRect()) - << " fixed=" << clipRects->fixedClipRect().toString(); + CHECK(fixed_clip_rect == old_clip_rects.FixedClipRect().Rect()) + << " new=" << fixed_clip_rect.ToString() + << " old=" << old_clip_rects.FixedClipRect().Rect().ToString(); #endif - ComputeClipRectForContext(context.tree_builder_context->absolute_position, - effect, ancestor_state, ancestor_paint_offset, - clip_rect); - clip_rects->SetPosClipRect(clip_rect); + auto pos_clip_rect = + ComputeClipRectForContext(context.tree_builder_context->absolute_position, + effect, ancestor_state, ancestor_paint_offset); #ifdef CHECK_CLIP_RECTS - CHECK(clipRects->posClipRect() == oldClipRects.posClipRect()) - << " abs=" << clipRects->posClipRect().toString(); + CHECK(pos_clip_rect == old_clip_rects.PosClipRect().Rect()) + << " new=" << pos_clip_rect.ToString() + << " old=" << old_clip_rects.PosClipRect().Rect().ToString(); #endif - ClipRects* previous_clip_rects = paint_layer.PreviousPaintingClipRects(); + const auto* previous_clip_rects = paint_layer.PreviousPaintingClipRects(); + if (!previous_clip_rects || + overflow_clip_rect != previous_clip_rects->OverflowClipRect().Rect() || + fixed_clip_rect != previous_clip_rects->FixedClipRect().Rect() || + pos_clip_rect != previous_clip_rects->PosClipRect().Rect()) { + RefPtr<ClipRects> clip_rects = ClipRects::Create(); + clip_rects->SetOverflowClipRect(overflow_clip_rect); + clip_rects->SetFixedClipRect(fixed_clip_rect); + clip_rects->SetPosClipRect(pos_clip_rect); + paint_layer.SetPreviousPaintingClipRects(*clip_rects); - if (!previous_clip_rects || *clip_rects != *previous_clip_rects) { paint_layer.SetNeedsRepaint(); paint_layer.SetPreviousPaintPhaseDescendantOutlinesEmpty(false); paint_layer.SetPreviousPaintPhaseFloatEmpty(false); @@ -233,8 +242,6 @@ context.paint_invalidator_context.forced_subtree_invalidation_flags |= PaintInvalidatorContext::kForcedSubtreeVisualRectUpdate; } - - paint_layer.SetPreviousPaintingClipRects(*clip_rects); } bool PrePaintTreeWalk::NeedsTreeBuilderContextUpdate(
diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h index e57c20b..058c50a9 100644 --- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h +++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h
@@ -34,15 +34,13 @@ const LayoutObject&, PrePaintTreeWalkContext&); - // Returns in |clipRect| the clip applied to children for the given - // contaiing block context + effect, in the space of ancestorState adjusted - // by ancestorPaintOffset. - ALWAYS_INLINE void ComputeClipRectForContext( + // Returns the clip applied to children for the given containing block context + // + effect, in the space of ancestorState adjusted by ancestorPaintOffset. + ALWAYS_INLINE LayoutRect ComputeClipRectForContext( const PaintPropertyTreeBuilderContext::ContainingBlockContext&, const EffectPaintPropertyNode*, const PropertyTreeState& ancestor_state, - const LayoutPoint& ancestor_paint_offset, - FloatClipRect&); + const LayoutPoint& ancestor_paint_offset); bool ALWAYS_INLINE NeedsTreeBuilderContextUpdate(const FrameView&,
diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalkTest.cpp b/third_party/WebKit/Source/core/paint/PrePaintTreeWalkTest.cpp index 90c58ca..923daad 100644 --- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalkTest.cpp +++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalkTest.cpp
@@ -336,4 +336,26 @@ EXPECT_EQ(75, grandchild->VisualRect().Height()); } +TEST_P(PrePaintTreeWalkTest, ClipChangeHasRadius) { + SetBodyInnerHTML( + "<style>" + " #target {" + " position: absolute;" + " z-index: 0;" + " overflow: hidden;" + " width: 50px;" + " height: 50px;" + " }" + "</style>" + "<div id='target'></div>"); + + auto* target = GetDocument().GetElementById("target"); + auto* target_object = ToLayoutBoxModelObject(target->GetLayoutObject()); + target->setAttribute(HTMLNames::styleAttr, "border-radius: 5px"); + GetDocument().View()->UpdateAllLifecyclePhasesExceptPaint(); + EXPECT_TRUE(target_object->Layer()->NeedsRepaint()); + // And should not trigger any assert failure. + GetDocument().View()->UpdateAllLifecyclePhases(); +} + } // namespace blink
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp index a522d94..2a287ca 100644 --- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp +++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -527,8 +527,7 @@ if (!diff.NeedsFullLayout() && DiffNeedsFullLayout(other)) diff.SetNeedsFullLayout(); - if (!diff.NeedsFullLayout() && - surround_->margin_ != other.surround_->margin_) { + if (!diff.NeedsFullLayout() && Margin() != other.Margin()) { // Relative-positioned elements collapse their margins so need a full // layout. if (HasOutOfFlowPosition()) @@ -590,8 +589,8 @@ } if (surround_.Get() != other.surround_.Get()) { - if (surround_->margin_ != other.surround_->margin_ || !OffsetEqual(other) || - surround_->padding_ != other.surround_->padding_) + if (Margin() != other.Margin() || !OffsetEqual(other) || + Padding() != other.Padding()) return true; } @@ -619,7 +618,7 @@ BorderRightWidth() != other.BorderRightWidth()) return true; - if (surround_->padding_ != other.surround_->padding_) + if (Padding() != other.Padding()) return true; } @@ -906,7 +905,7 @@ if (Visibility() != other.Visibility() || PrintColorAdjust() != other.PrintColorAdjust() || InsideLink() != other.InsideLink() || - !surround_->border_.VisuallyEqual(other.surround_->border_) || + !Border().VisuallyEqual(other.Border()) || *background_ != *other.background_) return true; @@ -1054,7 +1053,7 @@ diff.SetNeedsRecomputeOverflow(); } - if (!surround_->border_.VisualOverflowEqual(other.surround_->border_)) + if (!Border().VisualOverflowEqual(other.Border())) diff.SetNeedsRecomputeOverflow(); if (!diff.NeedsFullPaintInvalidation()) { @@ -1465,8 +1464,7 @@ bool include_logical_right_edge) const { FloatRoundedRect rounded_rect(PixelSnappedIntRect(border_rect)); if (HasBorderRadius()) { - FloatRoundedRect::Radii radii = - CalcRadiiFor(surround_->border_, border_rect.Size()); + FloatRoundedRect::Radii radii = CalcRadiiFor(Border(), border_rect.Size()); rounded_rect.IncludeLogicalEdges(radii, IsHorizontalWritingMode(), include_logical_left_edge, include_logical_right_edge); @@ -2390,31 +2388,31 @@ } void ComputedStyle::SetBorderImageSource(StyleImage* image) { - if (surround_->border_.image_.GetImage() == image) + if (Border().image_.GetImage() == image) return; surround_.Access()->border_.image_.SetImage(image); } void ComputedStyle::SetBorderImageSlices(const LengthBox& slices) { - if (surround_->border_.image_.ImageSlices() == slices) + if (Border().image_.ImageSlices() == slices) return; surround_.Access()->border_.image_.SetImageSlices(slices); } void ComputedStyle::SetBorderImageSlicesFill(bool fill) { - if (surround_->border_.image_.Fill() == fill) + if (Border().image_.Fill() == fill) return; surround_.Access()->border_.image_.SetFill(fill); } void ComputedStyle::SetBorderImageWidth(const BorderImageLengthBox& slices) { - if (surround_->border_.image_.BorderSlices() == slices) + if (Border().image_.BorderSlices() == slices) return; surround_.Access()->border_.image_.SetBorderSlices(slices); } void ComputedStyle::SetBorderImageOutset(const BorderImageLengthBox& outset) { - if (surround_->border_.image_.Outset() == outset) + if (Border().image_.Outset() == outset) return; surround_.Access()->border_.image_.SetOutset(outset); }
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h index 3697dea..3f8e4e3 100644 --- a/third_party/WebKit/Source/core/style/ComputedStyle.h +++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -2829,41 +2829,35 @@ } // Margin utility functions. - bool HasMargin() const { return surround_->margin_.NonZero(); } + bool HasMargin() const { return Margin().NonZero(); } bool HasMarginBeforeQuirk() const { return MarginBefore().Quirk(); } bool HasMarginAfterQuirk() const { return MarginAfter().Quirk(); } const LengthBox& Margin() const { return surround_->margin_; } const Length& MarginBefore() const { - return surround_->margin_.Before(GetWritingMode()); + return Margin().Before(GetWritingMode()); } - const Length& MarginAfter() const { - return surround_->margin_.After(GetWritingMode()); - } + const Length& MarginAfter() const { return Margin().After(GetWritingMode()); } const Length& MarginStart() const { - return surround_->margin_.Start(GetWritingMode(), Direction()); + return Margin().Start(GetWritingMode(), Direction()); } const Length& MarginEnd() const { - return surround_->margin_.end(GetWritingMode(), Direction()); + return Margin().end(GetWritingMode(), Direction()); } - const Length& MarginOver() const { - return surround_->margin_.Over(GetWritingMode()); - } - const Length& MarginUnder() const { - return surround_->margin_.Under(GetWritingMode()); - } + const Length& MarginOver() const { return Margin().Over(GetWritingMode()); } + const Length& MarginUnder() const { return Margin().Under(GetWritingMode()); } const Length& MarginStartUsing(const ComputedStyle* other_style) const { - return surround_->margin_.Start(other_style->GetWritingMode(), - other_style->Direction()); + return Margin().Start(other_style->GetWritingMode(), + other_style->Direction()); } const Length& MarginEndUsing(const ComputedStyle* other_style) const { - return surround_->margin_.end(other_style->GetWritingMode(), - other_style->Direction()); + return Margin().end(other_style->GetWritingMode(), + other_style->Direction()); } const Length& MarginBeforeUsing(const ComputedStyle* other_style) const { - return surround_->margin_.Before(other_style->GetWritingMode()); + return Margin().Before(other_style->GetWritingMode()); } const Length& MarginAfterUsing(const ComputedStyle* other_style) const { - return surround_->margin_.After(other_style->GetWritingMode()); + return Margin().After(other_style->GetWritingMode()); } void SetMarginStart(const Length&); void SetMarginEnd(const Length&); @@ -2871,24 +2865,22 @@ // Padding utility functions. const LengthBox& Padding() const { return surround_->padding_; } const Length& PaddingBefore() const { - return surround_->padding_.Before(GetWritingMode()); + return Padding().Before(GetWritingMode()); } const Length& PaddingAfter() const { - return surround_->padding_.After(GetWritingMode()); + return Padding().After(GetWritingMode()); } const Length& PaddingStart() const { - return surround_->padding_.Start(GetWritingMode(), Direction()); + return Padding().Start(GetWritingMode(), Direction()); } const Length& PaddingEnd() const { - return surround_->padding_.end(GetWritingMode(), Direction()); + return Padding().end(GetWritingMode(), Direction()); } - const Length& PaddingOver() const { - return surround_->padding_.Over(GetWritingMode()); - } + const Length& PaddingOver() const { return Padding().Over(GetWritingMode()); } const Length& PaddingUnder() const { - return surround_->padding_.Under(GetWritingMode()); + return Padding().Under(GetWritingMode()); } - bool HasPadding() const { return surround_->padding_.NonZero(); } + bool HasPadding() const { return Padding().NonZero(); } void ResetPadding() { SET_VAR(surround_, padding_, LengthBox(kFixed)); } void SetPadding(const LengthBox& b) { SET_VAR(surround_, padding_, b); } @@ -2900,9 +2892,7 @@ LayoutRectOutsets BorderImageOutsets() const { return ImageOutsets(BorderImage()); } - bool BorderImageSlicesFill() const { - return surround_->border_.GetImage().Fill(); - } + bool BorderImageSlicesFill() const { return Border().GetImage().Fill(); } void SetBorderImageSlicesFill(bool); const BorderData& Border() const { return surround_->border_; } @@ -2923,10 +2913,10 @@ float BorderOverWidth() const; float BorderUnderWidth() const; - bool HasBorderFill() const { return surround_->border_.HasBorderFill(); } - bool HasBorder() const { return surround_->border_.HasBorder(); } + bool HasBorderFill() const { return Border().HasBorderFill(); } + bool HasBorder() const { return Border().HasBorder(); } bool HasBorderDecoration() const { return HasBorder() || HasBorderFill(); } - bool HasBorderRadius() const { return surround_->border_.HasBorderRadius(); } + bool HasBorderRadius() const { return Border().HasBorderRadius(); } void ResetBorder() { ResetBorderImage();
diff --git a/third_party/WebKit/Source/devtools/front_end/perf_ui/TimelineOverviewPane.js b/third_party/WebKit/Source/devtools/front_end/perf_ui/TimelineOverviewPane.js index 0cade84..fd984c3 100644 --- a/third_party/WebKit/Source/devtools/front_end/perf_ui/TimelineOverviewPane.js +++ b/third_party/WebKit/Source/devtools/front_end/perf_ui/TimelineOverviewPane.js
@@ -55,7 +55,7 @@ this._popoverHelper = new UI.PopoverHelper(this._cursorArea, this._getPopoverRequest.bind(this)); this._popoverHelper.setHasPadding(true); - this._popoverHelper.setTimeout(0, 300); + this._popoverHelper.setTimeout(0, 0, true); this._updateThrottler = new Common.Throttler(100);
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Popover.js b/third_party/WebKit/Source/devtools/front_end/ui/Popover.js index fa2262c..5ac4910c 100644 --- a/third_party/WebKit/Source/devtools/front_end/ui/Popover.js +++ b/third_party/WebKit/Source/devtools/front_end/ui/Popover.js
@@ -46,19 +46,18 @@ container.addEventListener('mousedown', this._mouseDown.bind(this), false); container.addEventListener('mousemove', this._mouseMove.bind(this), false); container.addEventListener('mouseout', this._mouseOut.bind(this), false); - this.setTimeout(1000, 500); + this.setTimeout(1000); } /** - * @param {number} timeout + * @param {number} showTimeout * @param {number=} hideTimeout + * @param {boolean=} hideOnAnchorLeave */ - setTimeout(timeout, hideTimeout) { - this._timeout = timeout; - if (typeof hideTimeout === 'number') - this._hideTimeout = hideTimeout; - else - this._hideTimeout = timeout / 2; + setTimeout(showTimeout, hideTimeout, hideOnAnchorLeave) { + this._showTimeout = showTimeout; + this._hideTimeout = typeof hideTimeout === 'number' ? hideTimeout : showTimeout / 2; + this._hideOnAnchorLeave = hideOnAnchorLeave; } /** @@ -111,7 +110,7 @@ this._stopShowPopoverTimer(); if (event.which && this._disableOnClick) return; - this._startShowPopoverTimer(event, this.isPopoverVisible() ? this._timeout * 0.6 : this._timeout); + this._startShowPopoverTimer(event, this.isPopoverVisible() ? this._showTimeout * 0.6 : this._showTimeout); } /** @@ -242,7 +241,7 @@ } _stopHidePopoverTimer() { - if (!this._hidePopoverTimer) + if (!this._hidePopoverTimer || this._hideOnAnchorLeave) return; clearTimeout(this._hidePopoverTimer); delete this._hidePopoverTimer;
diff --git a/third_party/WebKit/Source/modules/fetch/Body.cpp b/third_party/WebKit/Source/modules/fetch/Body.cpp index e2fb56e4..cf2f3d4 100644 --- a/third_party/WebKit/Source/modules/fetch/Body.cpp +++ b/third_party/WebKit/Source/modules/fetch/Body.cpp
@@ -203,7 +203,7 @@ if (!BodyBuffer()) return ScriptValue::CreateNull(script_state); ScriptValue stream = BodyBuffer()->Stream(); - ASSERT(stream.GetScriptState() == script_state); + DCHECK_EQ(stream.GetScriptState(), script_state); return stream; }
diff --git a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp index 14dffef..0ab6b66 100644 --- a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp +++ b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp
@@ -131,8 +131,8 @@ PassRefPtr<BlobDataHandle> BodyStreamBuffer::DrainAsBlobDataHandle( BytesConsumer::BlobSizePolicy policy) { - ASSERT(!IsStreamLocked()); - ASSERT(!IsStreamDisturbed()); + DCHECK(!IsStreamLocked()); + DCHECK(!IsStreamDisturbed()); if (IsStreamClosed() || IsStreamErrored()) return nullptr; @@ -149,8 +149,8 @@ } PassRefPtr<EncodedFormData> BodyStreamBuffer::DrainAsFormData() { - ASSERT(!IsStreamLocked()); - ASSERT(!IsStreamDisturbed()); + DCHECK(!IsStreamLocked()); + DCHECK(!IsStreamDisturbed()); if (IsStreamClosed() || IsStreamErrored()) return nullptr; @@ -167,8 +167,8 @@ void BodyStreamBuffer::StartLoading(FetchDataLoader* loader, FetchDataLoader::Client* client) { - ASSERT(!loader_); - ASSERT(script_state_->ContextIsValid()); + DCHECK(!loader_); + DCHECK(script_state_->ContextIsValid()); loader_ = loader; loader->Start(ReleaseHandle(), new LoaderClient(ExecutionContext::From(script_state_.Get()), @@ -199,7 +199,7 @@ } ScriptPromise BodyStreamBuffer::pull(ScriptState* script_state) { - ASSERT(script_state == script_state_.Get()); + DCHECK_EQ(script_state, script_state_.Get()); if (stream_needs_more_) return ScriptPromise::CastUndefined(script_state); stream_needs_more_ = true; @@ -209,7 +209,7 @@ ScriptPromise BodyStreamBuffer::Cancel(ScriptState* script_state, ScriptValue reason) { - ASSERT(script_state == script_state_.Get()); + DCHECK_EQ(script_state, script_state_.Get()); Close(); return ScriptPromise::CastUndefined(script_state); } @@ -346,7 +346,7 @@ } void BodyStreamBuffer::EndLoading() { - ASSERT(loader_); + DCHECK(loader_); loader_ = nullptr; }
diff --git a/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h b/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h index 506ba6b..a6021ba 100644 --- a/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h +++ b/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h
@@ -111,24 +111,24 @@ void RegisterThreadHolder(ThreadHolder* holder) { MutexLocker locker(holder_mutex_); - ASSERT(!holder_); + DCHECK(!holder_); holder_ = holder; } void UnregisterThreadHolder() { MutexLocker locker(holder_mutex_); - ASSERT(holder_); + DCHECK(holder_); holder_ = nullptr; } void PostTaskToReadingThread(const WebTraceLocation& location, std::unique_ptr<CrossThreadClosure> task) { MutexLocker locker(holder_mutex_); - ASSERT(holder_); + DCHECK(holder_); holder_->ReadingThread()->PostTask(location, std::move(task)); } void PostTaskToUpdatingThread(const WebTraceLocation& location, std::unique_ptr<CrossThreadClosure> task) { MutexLocker locker(holder_mutex_); - ASSERT(holder_); + DCHECK(holder_); holder_->UpdatingThread()->PostTask(location, std::move(task)); }
diff --git a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp index 6e415324d3..f91e11f 100644 --- a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp +++ b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
@@ -193,9 +193,9 @@ } void DidGetReadable() override { - ASSERT(reader_); - ASSERT(loader_); - ASSERT(response_); + DCHECK(reader_); + DCHECK(loader_); + DCHECK(response_); WebDataConsumerHandle::Result r = WebDataConsumerHandle::kOk; while (r == WebDataConsumerHandle::kOk) { @@ -309,7 +309,7 @@ } FetchManager::Loader::~Loader() { - ASSERT(!loader_); + DCHECK(!loader_); } DEFINE_TRACE(FetchManager::Loader) { @@ -329,7 +329,7 @@ unsigned long, const ResourceResponse& response, std::unique_ptr<WebDataConsumerHandle> handle) { - ASSERT(handle); + DCHECK(handle); // TODO(horo): This check could be false when we will use the response url // in service worker responses. (crbug.com/553535) DCHECK(response.Url() == url_list_.back()); @@ -493,7 +493,7 @@ resolver_->Resolve(r); resolver_.Clear(); } else { - ASSERT(!integrity_verifier_); + DCHECK(!integrity_verifier_); integrity_verifier_ = new SRIVerifier(std::move(handle), sri_consumer, r, this, request_->Integrity(), response.Url()); @@ -543,7 +543,7 @@ } void FetchManager::Loader::LoadSucceeded() { - ASSERT(!failed_); + DCHECK(!failed_); finished_ = true; @@ -700,7 +700,7 @@ void FetchManager::Loader::PerformHTTPFetch(bool cors_flag, bool cors_preflight_flag) { - ASSERT(SchemeRegistry::ShouldTreatURLSchemeAsSupportingFetchAPI( + DCHECK(SchemeRegistry::ShouldTreatURLSchemeAsSupportingFetchAPI( request_->Url().Protocol()) || (request_->Url().ProtocolIs("blob") && !cors_flag && !cors_preflight_flag)); @@ -839,7 +839,7 @@ // 'same-origin' mode. // - We reject non-GET method. void FetchManager::Loader::PerformDataFetch() { - ASSERT(request_->Url().ProtocolIsData()); + DCHECK(request_->Url().ProtocolIsData()); ResourceRequest request(request_->Url()); request.SetRequestContext(request_->Context());
diff --git a/third_party/WebKit/Source/modules/fetch/FetchResponseData.cpp b/third_party/WebKit/Source/modules/fetch/FetchResponseData.cpp index 732b8d22..b38e2e2 100644 --- a/third_party/WebKit/Source/modules/fetch/FetchResponseData.cpp +++ b/third_party/WebKit/Source/modules/fetch/FetchResponseData.cpp
@@ -220,16 +220,16 @@ switch (type_) { case kBasicType: case kCORSType: - ASSERT(internal_response_); - ASSERT(buffer_ == internal_response_->buffer_); - ASSERT(internal_response_->type_ == kDefaultType); + DCHECK(internal_response_); + DCHECK_EQ(buffer_, internal_response_->buffer_); + DCHECK_EQ(internal_response_->type_, kDefaultType); new_response->internal_response_ = internal_response_->Clone(script_state); buffer_ = internal_response_->buffer_; new_response->buffer_ = new_response->internal_response_->buffer_; break; case kDefaultType: { - ASSERT(!internal_response_); + DCHECK(!internal_response_); if (buffer_) { BodyStreamBuffer* new1 = nullptr; BodyStreamBuffer* new2 = nullptr; @@ -240,14 +240,14 @@ break; } case kErrorType: - ASSERT(!internal_response_); - ASSERT(!buffer_); + DCHECK(!internal_response_); + DCHECK(!buffer_); break; case kOpaqueType: case kOpaqueRedirectType: - ASSERT(internal_response_); - ASSERT(!buffer_); - ASSERT(internal_response_->type_ == kDefaultType); + DCHECK(internal_response_); + DCHECK(!buffer_); + DCHECK_EQ(internal_response_->type_, kDefaultType); new_response->internal_response_ = internal_response_->Clone(script_state); break; @@ -289,11 +289,11 @@ void FetchResponseData::ReplaceBodyStreamBuffer(BodyStreamBuffer* buffer) { if (type_ == kBasicType || type_ == kCORSType) { - ASSERT(internal_response_); + DCHECK(internal_response_); internal_response_->buffer_ = buffer; buffer_ = buffer; } else if (type_ == kDefaultType) { - ASSERT(!internal_response_); + DCHECK(!internal_response_); buffer_ = buffer; } }
diff --git a/third_party/WebKit/Source/modules/fetch/Headers.cpp b/third_party/WebKit/Source/modules/fetch/Headers.cpp index a62a640..1389922 100644 --- a/third_party/WebKit/Source/modules/fetch/Headers.cpp +++ b/third_party/WebKit/Source/modules/fetch/Headers.cpp
@@ -238,7 +238,7 @@ } void Headers::FillWith(const Headers* object, ExceptionState& exception_state) { - ASSERT(header_list_->size() == 0); + DCHECK(header_list_->size() == 0); // There used to be specific steps describing filling a Headers object with // another Headers object, but it has since been removed because it should be // handled like a sequence (http://crbug.com/690428). @@ -252,7 +252,7 @@ void Headers::FillWith(const Vector<Vector<String>>& object, ExceptionState& exception_state) { - ASSERT(!header_list_->size()); + DCHECK(!header_list_->size()); // "1. If |object| is a sequence, then for each |header| in |object|, run // these substeps: // 1. If |header| does not contain exactly two items, then throw a @@ -272,7 +272,7 @@ void Headers::FillWith(const Vector<std::pair<String, String>>& object, ExceptionState& exception_state) { - ASSERT(!header_list_->size()); + DCHECK(!header_list_->size()); for (const auto& item : object) { append(item.first, item.second, exception_state);
diff --git a/third_party/WebKit/Source/modules/fetch/Request.cpp b/third_party/WebKit/Source/modules/fetch/Request.cpp index 7df101f..6900f51 100644 --- a/third_party/WebKit/Source/modules/fetch/Request.cpp +++ b/third_party/WebKit/Source/modules/fetch/Request.cpp
@@ -348,7 +348,7 @@ if (init.headers) { r->getHeaders()->FillWith(init.headers.Get(), exception_state); } else { - ASSERT(headers); + DCHECK(headers); r->getHeaders()->FillWith(headers, exception_state); } if (exception_state.HadException()) @@ -437,7 +437,7 @@ const RequestInfo& input, const Dictionary& init, ExceptionState& exception_state) { - ASSERT(!input.isNull()); + DCHECK(!input.isNull()); if (input.isUSVString()) return Create(script_state, input.getAsUSVString(), init, exception_state); return Create(script_state, input.getAsRequest(), init, exception_state); @@ -589,9 +589,9 @@ // "The referrer attribute's getter must return the empty string if // request's referrer is no referrer, "about:client" if request's referrer // is client and request's referrer, serialized, otherwise." - ASSERT(FetchRequestData::NoReferrerString() == AtomicString()); - ASSERT(FetchRequestData::ClientReferrerString() == - AtomicString("about:client")); + DCHECK_EQ(FetchRequestData::NoReferrerString(), AtomicString()); + DCHECK_EQ(FetchRequestData::ClientReferrerString(), + AtomicString("about:client")); return request_->ReferrerString(); } @@ -610,7 +610,7 @@ case kReferrerPolicyOriginWhenCrossOrigin: return "origin-when-cross-origin"; case kReferrerPolicyNoReferrerWhenDowngradeOriginWhenCrossOrigin: - ASSERT(RuntimeEnabledFeatures::reducedReferrerGranularityEnabled()); + DCHECK(RuntimeEnabledFeatures::reducedReferrerGranularityEnabled()); return "no-referrer-when-downgrade-origin-when-cross-origin"; } ASSERT_NOT_REACHED(); @@ -706,7 +706,7 @@ } FetchRequestData* Request::PassRequestData(ScriptState* script_state) { - ASSERT(!bodyUsed()); + DCHECK(!bodyUsed()); FetchRequestData* data = request_->Pass(script_state); RefreshBody(script_state); // |data|'s buffer('s js wrapper) has no retainer, but it's OK because
diff --git a/third_party/WebKit/Source/modules/fetch/RequestTest.cpp b/third_party/WebKit/Source/modules/fetch/RequestTest.cpp index b7d135f1..b94e41e 100644 --- a/third_party/WebKit/Source/modules/fetch/RequestTest.cpp +++ b/third_party/WebKit/Source/modules/fetch/RequestTest.cpp
@@ -26,7 +26,7 @@ Request* request = Request::Create(scope.GetScriptState(), url, exception_state); ASSERT_FALSE(exception_state.HadException()); - ASSERT(request); + DCHECK(request); EXPECT_EQ(url, request->url()); } @@ -37,12 +37,12 @@ KURL url(kParsedURLString, "http://www.example.com/"); Request* request1 = Request::Create(scope.GetScriptState(), url, exception_state); - ASSERT(request1); + DCHECK(request1); Request* request2 = Request::Create(scope.GetScriptState(), request1, exception_state); ASSERT_FALSE(exception_state.HadException()); - ASSERT(request2); + DCHECK(request2); EXPECT_EQ(url, request2->url()); } @@ -73,7 +73,7 @@ web_request.SetReferrer(referrer, kReferrerPolicy); Request* request = Request::Create(scope.GetScriptState(), web_request); - ASSERT(request); + DCHECK(request); EXPECT_EQ(url, request->url()); EXPECT_EQ(method, request->method()); EXPECT_EQ("audio", request->Context()); @@ -111,7 +111,7 @@ String url = url_without_fragment + "#fragment"; Request* request = Request::Create(scope.GetScriptState(), url, exception_state); - ASSERT(request); + DCHECK(request); WebServiceWorkerRequest web_request; request->PopulateWebServiceWorkerRequest(web_request);
diff --git a/third_party/WebKit/Source/modules/fetch/Response.cpp b/third_party/WebKit/Source/modules/fetch/Response.cpp index e9a735fd..f33ff899 100644 --- a/third_party/WebKit/Source/modules/fetch/Response.cpp +++ b/third_party/WebKit/Source/modules/fetch/Response.cpp
@@ -89,7 +89,7 @@ case kWebServiceWorkerResponseTypeDefault: break; case kWebServiceWorkerResponseTypeError: - ASSERT(response->GetType() == FetchResponseData::kErrorType); + DCHECK_EQ(response->GetType(), FetchResponseData::kErrorType); break; }
diff --git a/third_party/WebKit/Source/modules/fetch/ResponseTest.cpp b/third_party/WebKit/Source/modules/fetch/ResponseTest.cpp index d99ef016..a751dca 100644 --- a/third_party/WebKit/Source/modules/fetch/ResponseTest.cpp +++ b/third_party/WebKit/Source/modules/fetch/ResponseTest.cpp
@@ -63,7 +63,7 @@ fetch_response_data->SetURLList(url_list); Response* response = Response::Create(&page->GetDocument(), fetch_response_data); - ASSERT(response); + DCHECK(response); EXPECT_EQ(url, response->url()); } @@ -72,7 +72,7 @@ std::unique_ptr<WebServiceWorkerResponse> web_response = CreateTestWebServiceWorkerResponse(); Response* response = Response::Create(scope.GetScriptState(), *web_response); - ASSERT(response); + DCHECK(response); ASSERT_EQ(1u, web_response->UrlList().size()); EXPECT_EQ(web_response->UrlList()[0], response->url()); EXPECT_EQ(web_response->Status(), response->status());
diff --git a/third_party/WebKit/Source/platform/BUILD.gn b/third_party/WebKit/Source/platform/BUILD.gn index 97296fd..e5c45f2f 100644 --- a/third_party/WebKit/Source/platform/BUILD.gn +++ b/third_party/WebKit/Source/platform/BUILD.gn
@@ -773,6 +773,8 @@ "graphics/Canvas2DImageBufferSurface.h", "graphics/Canvas2DLayerBridge.cpp", "graphics/Canvas2DLayerBridge.h", + "graphics/CanvasColorParams.cpp", + "graphics/CanvasColorParams.h", "graphics/CanvasMetrics.cpp", "graphics/CanvasMetrics.h", "graphics/CanvasSurfaceLayerBridge.cpp",
diff --git a/third_party/WebKit/Source/platform/audio/VectorMath.cpp b/third_party/WebKit/Source/platform/audio/VectorMath.cpp index 67e1c620..88704c4ef 100644 --- a/third_party/WebKit/Source/platform/audio/VectorMath.cpp +++ b/third_party/WebKit/Source/platform/audio/VectorMath.cpp
@@ -38,7 +38,7 @@ #include <emmintrin.h> #endif -#if HAVE(ARM_NEON_INTRINSICS) +#if CPU(ARM_NEON) #include <arm_neon.h> #endif @@ -218,7 +218,7 @@ n = tail_frames; } -#elif HAVE(ARM_NEON_INTRINSICS) +#elif CPU(ARM_NEON) if ((source_stride == 1) && (dest_stride == 1)) { int tail_frames = n % 4; const float* end_p = dest_p + n - tail_frames; @@ -323,7 +323,7 @@ n--; } } else { // If strides are not 1, rollback to normal algorithm. -#elif HAVE(ARM_NEON_INTRINSICS) +#elif CPU(ARM_NEON) if ((source_stride == 1) && (dest_stride == 1)) { float k = *scale; int tail_frames = n % 4; @@ -461,7 +461,7 @@ n--; } } else { // if strides are not 1, rollback to normal algorithm -#elif HAVE(ARM_NEON_INTRINSICS) +#elif CPU(ARM_NEON) if ((source_stride1 == 1) && (source_stride2 == 1) && (dest_stride == 1)) { int tail_frames = n % 4; const float* end_p = dest_p + n - tail_frames; @@ -564,7 +564,7 @@ n = tail_frames; } -#elif HAVE(ARM_NEON_INTRINSICS) +#elif CPU(ARM_NEON) if ((source_stride1 == 1) && (source_stride2 == 1) && (dest_stride == 1)) { int tail_frames = n % 4; const float* end_p = dest_p + n - tail_frames; @@ -642,7 +642,7 @@ i += 4; } } -#elif HAVE(ARM_NEON_INTRINSICS) +#elif CPU(ARM_NEON) unsigned end_size = frames_to_process - frames_to_process % 4; while (i < end_size) { float32x4_t real1 = vld1q_f32(real1p + i); @@ -707,7 +707,7 @@ n = tail_frames; } -#elif HAVE(ARM_NEON_INTRINSICS) +#elif CPU(ARM_NEON) if (source_stride == 1) { int tail_frames = n % 4; const float* end_p = source_p + n - tail_frames; @@ -782,7 +782,7 @@ n = tail_frames; } -#elif HAVE(ARM_NEON_INTRINSICS) +#elif CPU(ARM_NEON) if (source_stride == 1) { int tail_frames = n % 4; const float* end_p = source_p + n - tail_frames; @@ -847,7 +847,7 @@ float high_threshold = *high_threshold_p; // FIXME: Optimize for SSE2. -#if HAVE(ARM_NEON_INTRINSICS) +#if CPU(ARM_NEON) if ((source_stride == 1) && (dest_stride == 1)) { int tail_frames = n % 4; const float* end_p = dest_p + n - tail_frames;
diff --git a/third_party/WebKit/Source/platform/graphics/CanvasColorParams.cpp b/third_party/WebKit/Source/platform/graphics/CanvasColorParams.cpp new file mode 100644 index 0000000..ea864676 --- /dev/null +++ b/third_party/WebKit/Source/platform/graphics/CanvasColorParams.cpp
@@ -0,0 +1,49 @@ +// 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 "platform/graphics/CanvasColorParams.h" + +#include "ui/gfx/color_space.h" + +namespace blink { + +CanvasColorParams::CanvasColorParams(CanvasColorSpace color_space, + CanvasPixelFormat pixel_format) + : color_space_(color_space), pixel_format_(pixel_format) {} + +sk_sp<SkColorSpace> CanvasColorParams::GetSkColorSpaceForSkSurfaces() const { + if (color_space_ == kLegacyCanvasColorSpace) + return nullptr; + return GetGfxColorSpace().ToSkColorSpace(); +} + +SkColorType CanvasColorParams::GetSkColorType() const { + if (pixel_format_ == kF16CanvasPixelFormat) + return kRGBA_F16_SkColorType; + return kN32_SkColorType; +} + +gfx::ColorSpace CanvasColorParams::GetGfxColorSpace() const { + switch (color_space_) { + case kLegacyCanvasColorSpace: + return gfx::ColorSpace::CreateSRGB(); + case kSRGBCanvasColorSpace: + if (pixel_format_ == kF16CanvasPixelFormat) + return gfx::ColorSpace::CreateSCRGBLinear(); + return gfx::ColorSpace::CreateSRGB(); + case kRec2020CanvasColorSpace: + return gfx::ColorSpace(gfx::ColorSpace::PrimaryID::BT2020, + gfx::ColorSpace::TransferID::IEC61966_2_1); + case kP3CanvasColorSpace: + return gfx::ColorSpace(gfx::ColorSpace::PrimaryID::SMPTEST432_1, + gfx::ColorSpace::TransferID::IEC61966_2_1); + } + return gfx::ColorSpace(); +} + +bool CanvasColorParams::LinearPixelMath() const { + return pixel_format_ == kF16CanvasPixelFormat; +} + +} // namespace blink
diff --git a/third_party/WebKit/Source/platform/graphics/CanvasColorParams.h b/third_party/WebKit/Source/platform/graphics/CanvasColorParams.h new file mode 100644 index 0000000..daf034a --- /dev/null +++ b/third_party/WebKit/Source/platform/graphics/CanvasColorParams.h
@@ -0,0 +1,59 @@ +// 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 CanvasColorParams_h +#define CanvasColorParams_h + +#include "platform/PlatformExport.h" +#include "third_party/skia/include/core/SkColorSpace.h" +#include "third_party/skia/include/core/SkImageInfo.h" + +namespace gfx { +class ColorSpace; +} + +namespace blink { + +enum CanvasColorSpace { + kLegacyCanvasColorSpace, + kSRGBCanvasColorSpace, + kRec2020CanvasColorSpace, + kP3CanvasColorSpace, +}; + +enum CanvasPixelFormat { + kRGBA8CanvasPixelFormat, + kRGB10A2CanvasPixelFormat, + kRGBA12CanvasPixelFormat, + kF16CanvasPixelFormat, +}; + +class PLATFORM_EXPORT CanvasColorParams { + public: + CanvasColorParams(CanvasColorSpace, CanvasPixelFormat); + CanvasColorSpace color_space() const { return color_space_; } + CanvasPixelFormat pixel_format() const { return pixel_format_; } + + // The SkColorSpace to use in the SkImageInfo for allocated SkSurfaces. This + // is nullptr in legacy rendering mode. + sk_sp<SkColorSpace> GetSkColorSpaceForSkSurfaces() const; + + // The pixel format to use for allocating SkSurfaces. + SkColorType GetSkColorType() const; + + // The color space to use for compositing. + gfx::ColorSpace GetGfxColorSpace() const; + + // This matches CanvasRenderingContext::LinearPixelMath, and is true only when + // the pixel format is half-float linear. + bool LinearPixelMath() const; + + private: + CanvasColorSpace color_space_ = kLegacyCanvasColorSpace; + CanvasPixelFormat pixel_format_ = kRGBA8CanvasPixelFormat; +}; + +} // namespace blink + +#endif // CanvasColorParams_h
diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp index 21596abf..99ccb59 100644 --- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp +++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
@@ -4,18 +4,10 @@ #include "platform/graphics/compositing/PaintArtifactCompositor.h" -#include <algorithm> -#include <memory> -#include <utility> #include "cc/layers/content_layer_client.h" #include "cc/layers/layer.h" #include "cc/layers/picture_layer.h" -#include "cc/paint/compositing_display_item.h" #include "cc/paint/display_item_list.h" -#include "cc/paint/drawing_display_item.h" -#include "cc/paint/filter_display_item.h" -#include "cc/paint/float_clip_display_item.h" -#include "cc/paint/transform_display_item.h" #include "cc/trees/layer_tree_host.h" #include "platform/RuntimeEnabledFeatures.h" #include "platform/graphics/GraphicsContext.h" @@ -23,7 +15,6 @@ #include "platform/graphics/compositing/PropertyTreeManager.h" #include "platform/graphics/paint/ClipPaintPropertyNode.h" #include "platform/graphics/paint/DisplayItem.h" -#include "platform/graphics/paint/DrawingDisplayItem.h" #include "platform/graphics/paint/ForeignLayerDisplayItem.h" #include "platform/graphics/paint/GeometryMapper.h" #include "platform/graphics/paint/PaintArtifact.h" @@ -31,20 +22,10 @@ #include "platform/graphics/paint/RasterInvalidationTracking.h" #include "platform/graphics/paint/ScrollPaintPropertyNode.h" #include "platform/graphics/paint/TransformPaintPropertyNode.h" -#include "platform/wtf/Allocator.h" -#include "platform/wtf/Noncopyable.h" -#include "platform/wtf/PtrUtil.h" #include "public/platform/Platform.h" #include "public/platform/WebCompositorSupport.h" #include "public/platform/WebLayer.h" -#include "ui/gfx/geometry/point.h" -#include "ui/gfx/geometry/point_f.h" #include "ui/gfx/geometry/rect.h" -#include "ui/gfx/geometry/rect_f.h" -#include "ui/gfx/geometry/size.h" -#include "ui/gfx/geometry/size_conversions.h" -#include "ui/gfx/geometry/size_f.h" -#include "ui/gfx/skia_util.h" namespace blink {
diff --git a/third_party/WebKit/Source/platform/graphics/cpu/arm/WebGLImageConversionNEON.h b/third_party/WebKit/Source/platform/graphics/cpu/arm/WebGLImageConversionNEON.h index 66b1169c..15a3981 100644 --- a/third_party/WebKit/Source/platform/graphics/cpu/arm/WebGLImageConversionNEON.h +++ b/third_party/WebKit/Source/platform/graphics/cpu/arm/WebGLImageConversionNEON.h
@@ -27,7 +27,7 @@ #ifndef WebGLImageConversionNEON_h #define WebGLImageConversionNEON_h -#if HAVE(ARM_NEON_INTRINSICS) +#if CPU(ARM_NEON) #include <arm_neon.h> @@ -292,6 +292,6 @@ } // namespace blink -#endif // HAVE(ARM_NEON_INTRINSICS) +#endif // CPU(ARM_NEON) #endif // WebGLImageConversionNEON_h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp index 48d109c..5eab879 100644 --- a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp +++ b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
@@ -474,7 +474,7 @@ SIMD::UnpackOneRowOfRGBA5551LittleToRGBA8(source, destination, pixels_per_row); #endif -#if HAVE(ARM_NEON_INTRINSICS) +#if CPU(ARM_NEON) SIMD::UnpackOneRowOfRGBA5551ToRGBA8(source, destination, pixels_per_row); #endif #if HAVE(MIPS_MSA_INTRINSICS)
diff --git a/third_party/WebKit/Source/platform/wtf/Assertions.cpp b/third_party/WebKit/Source/platform/wtf/Assertions.cpp index 9b454d84..25f7a8dc 100644 --- a/third_party/WebKit/Source/platform/wtf/Assertions.cpp +++ b/third_party/WebKit/Source/platform/wtf/Assertions.cpp
@@ -102,7 +102,7 @@ vfprintf(stderr, format, args); } -#if COMPILER(CLANG) || (COMPILER(GCC) && GCC_VERSION_AT_LEAST(4, 6, 0)) +#if COMPILER(GCC) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wformat-nonliteral" #endif @@ -124,7 +124,7 @@ vprintf_stderr_common(formatWithNewline.get(), args); } -#if COMPILER(CLANG) || (COMPILER(GCC) && GCC_VERSION_AT_LEAST(4, 6, 0)) +#if COMPILER(GCC) #pragma GCC diagnostic pop #endif
diff --git a/third_party/WebKit/Source/platform/wtf/CPU.h b/third_party/WebKit/Source/platform/wtf/CPU.h index 409b58c..dad89b5 100644 --- a/third_party/WebKit/Source/platform/wtf/CPU.h +++ b/third_party/WebKit/Source/platform/wtf/CPU.h
@@ -137,12 +137,6 @@ #define WTF_CPU_ARM_NEON 1 #endif -#if CPU(ARM_NEON) && \ - (COMPILER(CLANG) || !COMPILER(GCC) || GCC_VERSION_AT_LEAST(4, 7, 0)) -// All NEON intrinsics usage can be disabled by this macro. -#define HAVE_ARM_NEON_INTRINSICS 1 -#endif - #endif /* ARM */ /* CPU(ARM64) - AArch64 64-bit */
diff --git a/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp b/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp index dae4eb51..6296f9ad 100644 --- a/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp +++ b/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
@@ -344,8 +344,8 @@ web_frame_->ViewImpl()->DidCommitLoad(should_create_history_entry, true); if (web_frame_->Client()) { web_frame_->Client()->DidNavigateWithinPage( - web_frame_, WebHistoryItem(item), - static_cast<WebHistoryCommitType>(commit_type), content_initiated); + WebHistoryItem(item), static_cast<WebHistoryCommitType>(commit_type), + content_initiated); } }
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp index e260328..a6716df 100644 --- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp +++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -7070,8 +7070,7 @@ class TestNavigationPolicyWebFrameClient : public FrameTestHelpers::TestWebFrameClient { public: - void DidNavigateWithinPage(WebLocalFrame*, - const WebHistoryItem&, + void DidNavigateWithinPage(const WebHistoryItem&, WebHistoryCommitType, bool) override { EXPECT_TRUE(false); @@ -7536,8 +7535,7 @@ TestDidNavigateCommitTypeWebFrameClient() : last_commit_type_(kWebHistoryInertCommit) {} - void DidNavigateWithinPage(WebLocalFrame*, - const WebHistoryItem&, + void DidNavigateWithinPage(const WebHistoryItem&, WebHistoryCommitType type, bool) override { last_commit_type_ = type;
diff --git a/third_party/WebKit/public/web/WebFrameClient.h b/third_party/WebKit/public/web/WebFrameClient.h index 64cb6978..5c1d01e 100644 --- a/third_party/WebKit/public/web/WebFrameClient.h +++ b/third_party/WebKit/public/web/WebFrameClient.h
@@ -418,8 +418,7 @@ // The navigation resulted in no change to the documents within the page. // For example, the navigation may have just resulted in scrolling to a // named anchor or a PopState event may have been dispatched. - virtual void DidNavigateWithinPage(WebLocalFrame*, - const WebHistoryItem&, + virtual void DidNavigateWithinPage(const WebHistoryItem&, WebHistoryCommitType, bool content_initiated) {}
diff --git a/tools/mb/mb_config.pyl b/tools/mb/mb_config.pyl index dc2c81e..79009a2 100644 --- a/tools/mb/mb_config.pyl +++ b/tools/mb/mb_config.pyl
@@ -120,6 +120,7 @@ 'Chromium Mac 10.9 Goma Canary (clobber)': 'release_bot', 'Chromium Mac 10.9 Goma Canary (dbg)': 'debug_bot', 'Chromium Mac 10.9 Goma Canary (dbg)(clobber)': 'debug_bot', + 'Chromium Mac Goma Canary LocalOutputCache': 'release_bot', 'Chromium Win PGO Builder': { '1': 'official_optimize_chrome_pgo_phase_1_x86', '2': 'official_optimize_chrome_pgo_phase_2_x86', @@ -143,6 +144,7 @@ 'CrWinClangGoma': 'clang_official_optimize_release_bot_minimal_symbols_x86', 'CrWinGoma': 'release_bot_x86', 'CrWinGoma(dll)': 'shared_release_bot_x86', + 'CrWinGoma(loc)': 'shared_release_bot_x86', 'ClangToTAndroidASan': 'android_clang_tot_asan', 'ClangToTAndroid (dbg)': 'android_clang_tot_dbg', 'ClangToTAndroid': 'android_clang_tot_release',
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml index 28d3fee..d88b5df2 100644 --- a/tools/metrics/histograms/histograms.xml +++ b/tools/metrics/histograms/histograms.xml
@@ -47041,6 +47041,15 @@ </summary> </histogram> +<histogram name="PageLoad.Internal.PageLoadTimingStatus" + enum="PageLoadTimingStatus"> + <owner>bmcquade@chromium.org</owner> + <summary> + The status of PageLoadTiming structs received from the render process over + IPC. + </summary> +</histogram> + <histogram name="PageLoad.Internal.Prerender" enum="BooleanHit"> <owner>bmcquade@chromium.org</owner> <summary> @@ -94891,7 +94900,7 @@ <int value="1184" label="DocumentCreateEventWheelEvent"/> <int value="1185" label="DocumentCreateEventMediaKeyEvent"/> <int value="1186" label="DocumentCreateEventTrackEvent"/> - <int value="1187" label="DocumentCreateEventWebKitAnimationEvent"/> + <int value="1187" label="OBSOLETE_DocumentCreateEventWebKitAnimationEvent"/> <int value="1188" label="DocumentCreateEventMutationEvents"/> <int value="1189" label="DocumentCreateEventOrientationEvent"/> <int value="1190" label="DocumentCreateEventSVGEvents"/> @@ -105795,6 +105804,7 @@ <int value="12" label="Loading not accepted"/> <int value="13" label="Queue update failed"/> <int value="14" label="Background scheduler canceled processing"/> + <int value="15" label="Saved after timeout on last retry"/> </enum> <enum name="OfflinePagesBackgroundSavePageResult" type="int"> @@ -106533,6 +106543,30 @@ <int value="5" label="Successful first layout (backgrounded)"/> </enum> +<enum name="PageLoadTimingStatus" type="int"> + <summary>Status of PageLoadTimings received from the render process</summary> + <int value="0" label="Valid"/> + <int value="1" label="Empty timing"/> + <int value="2" label="Null navigation start"/> + <int value="3" label="Script load longer than parse duration"/> + <int value="4" label="Script execution longer than parse duration"/> + <int value="5" + label="Script load from doc.write longer than total script load"/> + <int value="6" + label="Script execution from doc.write longer than total script + execution"/> + <int value="7" label="Invalid order - response start / parse start"/> + <int value="8" label="Invalid order - parse start / parse stop"/> + <int value="9" label="Invalid order - parse stop / dom content loaded"/> + <int value="10" label="Invalid order - dom content loaded / load"/> + <int value="11" label="Invalid order - parse start / first layout"/> + <int value="12" label="Invalid order - first layout / first paint"/> + <int value="13" label="Invalid order - first paint / first text paint"/> + <int value="14" label="Invalid order - first paint / first image paint"/> + <int value="15" label="Invalid order - first paint / first contentful paint"/> + <int value="16" label="Invalid order - first paint / first meaningful paint"/> +</enum> + <enum name="PageScaleFactorRange" type="int"> <int value="0" label="<25%"/> <int value="1" label="25-49%"/> @@ -107415,6 +107449,8 @@ <enum name="PaymentRequestNoShowReason" type="int"> <int value="0" label="NoMatchingPaymentMethod"/> <int value="1" label="NoSupportedPaymentMethod"/> + <int value="2" label="ConcurrentRequests"/> + <int value="3" label="ReasonOther"/> </enum> <enum name="PaymentRequestPaymentMethods" type="int">
diff --git a/tools/perf/page_sets/system_health/system_health_story.py b/tools/perf/page_sets/system_health/system_health_story.py index 5ae3fe1b..aea6f800 100644 --- a/tools/perf/page_sets/system_health/system_health_story.py +++ b/tools/perf/page_sets/system_health/system_health_story.py
@@ -39,6 +39,8 @@ """ def CanRunStory(self, story): + if self._finder_options.run_disabled_tests: + return True return story.CanRun(self.possible_browser)
diff --git a/tools/win/DebugVisualizers/chrome.natvis b/tools/win/DebugVisualizers/chrome.natvis index 8ed8e1d..cc3155c7 100644 --- a/tools/win/DebugVisualizers/chrome.natvis +++ b/tools/win/DebugVisualizers/chrome.natvis
@@ -72,6 +72,10 @@ <Item Name="RefCount">((base::subtle::RefCountedBase*)ptr_)->ref_count_</Item> </Expand> </Type> + <Type Name="base::Optional<*>"> + <DisplayString Condition="storage_.is_null_">(null)</DisplayString> + <DisplayString>{storage_.value_}</DisplayString> + </Type> <Type Name="base::RefCounted<*>"> <DisplayString>RefCount: {ref_count_}</DisplayString> <Expand>
diff --git a/tools/win/DebugVisualizers/webkit.natvis b/tools/win/DebugVisualizers/webkit.natvis index 1abddea9..2d78312 100644 --- a/tools/win/DebugVisualizers/webkit.natvis +++ b/tools/win/DebugVisualizers/webkit.natvis
@@ -1,111 +1,118 @@ <?xml version="1.0" encoding="utf-8" ?> <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> - <Type Name="blink::Member<*>"> - <DisplayString Condition="m_raw == 0">null</DisplayString> - <DisplayString>{*m_raw}</DisplayString> + <Type Name="blink::MemberBase<*>"> + <DisplayString Condition="raw_ == 0">null</DisplayString> + <DisplayString>{*raw_}</DisplayString> <Expand> - <Item Name="m_raw">m_raw</Item> + <Item Name="Raw">raw_</Item> + </Expand> + </Type> + <Type Name="blink::PersistentBase<*>"> + <DisplayString Condition="raw_ == 0">null</DisplayString> + <DisplayString>{*raw_}</DisplayString> + <Expand> + <Item Name="Raw">raw_</Item> </Expand> </Type> <Type Name="WTF::String"> - <DisplayString Condition="m_impl.m_ptr == 0">(null)</DisplayString> - <DisplayString IncludeView="bare">{*m_impl.m_ptr,view(bare)}</DisplayString> - <DisplayString>{*m_impl.m_ptr}</DisplayString> + <DisplayString Condition="impl_.ptr_ == 0">(null)</DisplayString> + <DisplayString IncludeView="bare">{*impl_.ptr_,view(bare)}</DisplayString> + <DisplayString>{*impl_.ptr_}</DisplayString> <Expand> - <Item Name="Impl">m_impl.m_ptr</Item> + <Item Name="Impl">impl_.ptr_</Item> </Expand> </Type> <Type Name="WTF::StringImpl"> <DisplayString IncludeView="bare" - Condition="m_is8Bit">{(this+1),[m_length]sb}</DisplayString> + Condition="is8_bit_">{(this+1),[length_]sb}</DisplayString> <DisplayString - Condition="m_is8Bit">[{m_length}] {(this+1),[m_length]s}</DisplayString> - <DisplayString IncludeView="bare">{(this+1),[m_length]sub}</DisplayString> - <DisplayString>[{m_length}] {(this+1),[m_length]su}</DisplayString> + Condition="is8_bit_">[{length_}] {(this+1),[length_]s}</DisplayString> + <DisplayString IncludeView="bare">{(this+1),[length_]sub}</DisplayString> + <DisplayString>[{length_}] {(this+1),[length_]su}</DisplayString> <Expand> - <Item Name="Length">m_length</Item> - <Item Name="Hash">m_hash</Item> - <Item Name="AsciiText" Condition="m_is8Bit">(this+1),[m_length]s</Item> - <Item Name="UnicodeText" Condition="!m_is8Bit">(this+1),[m_length]su</Item> + <Item Name="Length">length_</Item> + <Item Name="Hash">hash_</Item> + <Item Name="AsciiText" Condition="is8_bit_">(this+1),[length_]s</Item> + <Item Name="UnicodeText" Condition="!is8_bit_">(this+1),[length_]su</Item> </Expand> </Type> <Type Name="WTF::AtomicString"> - <DisplayString IncludeView="bare">{m_string,view(bare)}</DisplayString> - <DisplayString>{m_string}</DisplayString> + <DisplayString IncludeView="bare">{string_,view(bare)}</DisplayString> + <DisplayString>{string_}</DisplayString> </Type> <Type Name="WTF::Vector<*>"> - <DisplayString Condition="m_size==0">(empty)</DisplayString> - <DisplayString Condition="m_size==1">[{m_size}] {m_buffer,1}</DisplayString> - <DisplayString Condition="m_size==2">[{m_size}] {m_buffer,2}</DisplayString> - <DisplayString Condition="m_size==3">[{m_size}] {m_buffer,3}</DisplayString> - <DisplayString Condition="m_size==4">[{m_size}] {m_buffer,4}</DisplayString> + <DisplayString Condition="size_==0">(empty)</DisplayString> + <DisplayString Condition="size_==1">[{size_}] {buffer_,1}</DisplayString> + <DisplayString Condition="size_==2">[{size_}] {buffer_,2}</DisplayString> + <DisplayString Condition="size_==3">[{size_}] {buffer_,3}</DisplayString> + <DisplayString Condition="size_==4">[{size_}] {buffer_,4}</DisplayString> <DisplayString - Condition="m_size>=5">[{m_size}] {m_buffer,4}...</DisplayString> + Condition="size_>=5">[{size_}] {buffer_,4}...</DisplayString> <Expand> - <Item Name="Buffer">m_buffer</Item> - <Item Name="Size">m_size</Item> - <Item Name="Capacity">m_capacity</Item> - <ArrayItems Condition="m_size>0"> - <Size>m_size</Size> - <ValuePointer>m_buffer</ValuePointer> + <Item Name="Buffer">buffer_</Item> + <Item Name="Size">size_</Item> + <Item Name="Capacity">capacity_</Item> + <ArrayItems Condition="size_>0"> + <Size>size_</Size> + <ValuePointer>buffer_</ValuePointer> </ArrayItems> </Expand> </Type> <Type Name="WTF::HashTable<*>"> - <DisplayString>keyCount={m_keyCount}, tableSize={m_tableSize}</DisplayString> + <DisplayString>keyCount={key_count_}, tableSize={table_size_}</DisplayString> <Expand> - <ArrayItems Condition="m_tableSize>0"> - <Size>m_tableSize</Size> - <ValuePointer>m_table</ValuePointer> + <ArrayItems Condition="table_size_>0"> + <Size>table_size_</Size> + <ValuePointer>table_</ValuePointer> </ArrayItems> </Expand> </Type> <Type Name="WTF::RefPtr<*>"> <AlternativeType Name="WTF::PassRefPtr<*>"/> - <DisplayString Condition="m_ptr == 0">null</DisplayString> - <DisplayString>{*m_ptr}</DisplayString> + <DisplayString Condition="ptr_ == 0">null</DisplayString> + <DisplayString>{*ptr_}</DisplayString> <Expand> - <Item Name="Ptr">m_ptr</Item> + <Item Name="Ptr">ptr_</Item> </Expand> </Type> <Type Name="blink::LayoutUnit"> - <DisplayString>{(float)m_value / kFixedPointDenominator}</DisplayString> + <DisplayString>{(float)value_ / 64}</DisplayString> <Expand> - <Item Name="FloatVal">(float)m_value / kFixedPointDenominator</Item> - <Item Name="RawVal">m_value</Item> + <Item Name="FloatVal">(float)value_ / 64</Item> + <Item Name="RawVal">value_</Item> </Expand> </Type> <Type Name="blink::LayoutSize"> <AlternativeType Name="blink::IntSize"/> <AlternativeType Name="blink::FloatSize"/> - <DisplayString>({m_width}, {m_height})</DisplayString> + <DisplayString>({width_}, {height_})</DisplayString> <Expand> - <Item Name="Width">m_width</Item> - <Item Name="Height">m_height</Item> + <Item Name="Width">width_</Item> + <Item Name="Height">height_</Item> </Expand> </Type> <Type Name="blink::LayoutPoint"> <AlternativeType Name="blink::IntPoint"/> <AlternativeType Name="blink::FloatPoint"/> - <DisplayString>({m_x}, {m_y})</DisplayString> + <DisplayString>({x_}, {y_})</DisplayString> <Expand> - <Item Name="X">m_x</Item> - <Item Name="Y">m_y</Item> + <Item Name="X">x_</Item> + <Item Name="Y">y_</Item> </Expand> </Type> <Type Name="blink::LayoutRect"> <AlternativeType Name="blink::IntRect"/> <AlternativeType Name="blink::FloatRect"/> - <DisplayString>({m_location.m_x}, {m_location.m_y}) x ({m_size.m_width}, {m_size.m_height})</DisplayString> + <DisplayString>({location_.x_}, {location_.y_}) x ({size_.width_}, {size_.height_})</DisplayString> <Expand> - <Item Name="Location">m_location</Item> - <Item Name="Size">m_size</Item> + <Item Name="Location">location_</Item> + <Item Name="Size">size_</Item> </Expand> </Type> <Type Name="blink::Length"> - <DisplayString Condition="m_isFloat">{(blink::LengthType)m_type} {m_floatValue}</DisplayString> - <DisplayString>{(blink::LengthType)m_type} {m_intValue}</DisplayString> + <DisplayString Condition="is_float_">{(blink::LengthType)type_} {float_value_}</DisplayString> + <DisplayString>{(blink::LengthType)type_} {int_value_}</DisplayString> </Type> <Type Name="blink::WebRect"> <AlternativeType Name="blink::WebFloatRect"/> @@ -133,59 +140,59 @@ </Type> <!-- Component build version --> <Type Name="blink::WebString"> - <DisplayString>{(blink_platform.dll!WTF::StringImpl*)(m_private.m_storage)}</DisplayString> + <DisplayString>{(blink_platform.dll!WTF::StringImpl*)(private_.storage_)}</DisplayString> </Type> <!-- Non-component build version --> - <Type Name="blink::WebString"> - <DisplayString>{(WTF::StringImpl*)(m_private.m_storage)}</DisplayString> + <Type Name="blink::WebString" Priority="Low"> + <DisplayString>{(WTF::StringImpl*)(private_.storage_)}</DisplayString> </Type> <!-- DOM --> <Type Name="blink::QualifiedName"> - <DisplayString Condition="m_impl.m_ptr == 0">(null)</DisplayString> - <DisplayString>{*m_impl.m_ptr}</DisplayString> + <DisplayString Condition="impl_.ptr_ == 0">(null)</DisplayString> + <DisplayString>{*impl_.ptr_}</DisplayString> </Type> <Type Name="blink::QualifiedName::QualifiedNameImpl"> - <DisplayString>{m_localName,view(bare)}</DisplayString> + <DisplayString>{local_name_,view(bare)}</DisplayString> </Type> <Type Name="blink::CharacterData"> - <DisplayString>{m_data,view(bare)}</DisplayString> + <DisplayString>{data_,view(bare)}</DisplayString> </Type> <Type Name="blink::ContainerNode"> <Expand> <LinkedListItems> - <HeadPointer>m_firstChild.m_raw</HeadPointer> - <NextPointer>m_next.m_raw</NextPointer> + <HeadPointer>first_child_.raw_</HeadPointer> + <NextPointer>next_.raw_</NextPointer> <ValueNode>this</ValueNode> </LinkedListItems> </Expand> </Type> <Type Name="blink::Element"> - <DisplayString Condition="m_firstChild.m_raw != 0"><{m_tagName}>{m_firstChild}</DisplayString> - <DisplayString><{m_tagName}></DisplayString> + <DisplayString Condition="first_child_.raw_ != 0"><{tag_name_}>{first_child_}</DisplayString> + <DisplayString><{tag_name_}></DisplayString> </Type> <!-- Layout: LayoutObject --> <Type Name="blink::LayoutObject"> - <DisplayString Condition="m_bitfields.m_isAnonymous">Anonymous</DisplayString> - <DisplayString>{m_node}</DisplayString> + <DisplayString Condition="bitfields_.m_IsAnonymous">Anonymous</DisplayString> + <DisplayString>{node_}</DisplayString> </Type> <Type Name="blink::LayoutObjectChildList"> <Expand> <LinkedListItems> - <HeadPointer>m_firstChild</HeadPointer> - <NextPointer>m_next</NextPointer> + <HeadPointer>first_child_</HeadPointer> + <NextPointer>next_</NextPointer> <ValueNode>this</ValueNode> </LinkedListItems> </Expand> </Type> <!-- Layout: InlineBox --> <Type Name="blink::InlineBox"> - <DisplayString>{m_layoutObject}</DisplayString> + <DisplayString>{line_layout_item_}</DisplayString> </Type> <Type Name="blink::InlineFlowBox"> <Expand> <LinkedListItems> - <HeadPointer>m_firstChild</HeadPointer> - <NextPointer>m_next</NextPointer> + <HeadPointer>first_child_</HeadPointer> + <NextPointer>next_</NextPointer> <ValueNode>this</ValueNode> </LinkedListItems> </Expand> @@ -193,49 +200,71 @@ <Type Name="blink::LineBoxList"> <Expand> <LinkedListItems> - <HeadPointer>m_firstLineBox</HeadPointer> - <NextPointer>m_nextLineBox</NextPointer> + <HeadPointer>first_line_box_</HeadPointer> + <NextPointer>next_line_box_</NextPointer> <ValueNode>this</ValueNode> </LinkedListItems> </Expand> </Type> <Type Name="blink::LineLayoutItem"> - <DisplayString>{m_layoutObject}</DisplayString> + <DisplayString>{layout_object_}</DisplayString> + </Type> + <!-- Layout: LayoutNG --> + <Type Name="blink::NGBlockNode"> + <DisplayString>{layout_box_}</DisplayString> + </Type> + <Type Name="blink::NGFragment"> + <DisplayString>{physical_fragment_}</DisplayString> + </Type> + <Type Name="blink::NGPhysicalFragment"> + <DisplayString>{(blink::NGPhysicalFragment::NGFragmentType)type_} {layout_object_} {size_} {offset_}</DisplayString> + </Type> + <Type Name="blink::NGLogicalOffset"> + <DisplayString>({inline_offset}, {block_offset})</DisplayString> + </Type> + <Type Name="blink::NGLogicalSize"> + <DisplayString>({inline_size} x {block_size})</DisplayString> + </Type> + <Type Name="blink::NGPhysicalOffset"> + <DisplayString>({left}, {top})</DisplayString> + </Type> + <Type Name="blink::NGPhysicalSize"> + <DisplayString>({width} x {height})</DisplayString> </Type> <!-- Layout: TextRun --> <Type Name="blink::TextRun"> - <DisplayString Condition="m_is8Bit">{m_data.characters8,[m_len]s}</DisplayString> - <DisplayString>{(m_data.characters16),[m_len]su}</DisplayString> + <DisplayString Condition="is8_bit_">{data_.characters8,[len_]s}</DisplayString> + <DisplayString>{(data_.characters16),[len_]su}</DisplayString> </Type> <Type Name="blink::BidiRun"> - <DisplayString>{*m_object} {m_start}-{m_stop}</DisplayString> + <DisplayString>{*box_} {start_}-{stop_}</DisplayString> </Type> <!-- Fonts --> <Type Name="blink::Font"> - <DisplayString>{m_fontDescription}</DisplayString> + <DisplayString>{font_description_}</DisplayString> </Type> <Type Name="blink::FontDescription"> - <DisplayString>{m_computedSize}px {m_familyList}</DisplayString> + <DisplayString>{computed_size_}px {family_list_}</DisplayString> </Type> <Type Name="blink::FontFamily"> - <DisplayString Condition="m_next.m_ptr == 0">{m_family,view(bare)}</DisplayString> - <DisplayString>{m_family,view(bare)}, {m_next}</DisplayString> + <DisplayString Condition="next_.ptr_ == 0">{family_,view(bare)}</DisplayString> + <DisplayString>{family_,view(bare)}, {next_}</DisplayString> </Type> <Type Name="blink::SharedFontFamily"> - <DisplayString Condition="m_next.m_ptr == 0">{m_family,view(bare)}</DisplayString> - <DisplayString>{m_family,view(bare)}, {m_next}</DisplayString> + <DisplayString Condition="next_.ptr_ == 0">{family_,view(bare)}</DisplayString> + <DisplayString>{family_,view(bare)}, {next_}</DisplayString> <Expand> <LinkedListItems> <HeadPointer>this</HeadPointer> - <NextPointer>m_next.m_ptr</NextPointer> + <NextPointer>next_.ptr_</NextPointer> <ValueNode>this</ValueNode> </LinkedListItems> </Expand> </Type> <Type Name="blink::SimpleFontData"> - <DisplayString>{m_platformData}</DisplayString> + <DisplayString>{platform_data_}</DisplayString> </Type> <Type Name="blink::FontPlatformData"> - <DisplayString>{*m_typeface.m_ptr}, {m_textSize}px</DisplayString> + <DisplayString>{*typeface_.ptr_}, {text_size_}px</DisplayString> </Type> </AutoVisualizer> \ No newline at end of file
diff --git a/ui/file_manager/file_manager/foreground/js/actions_model.js b/ui/file_manager/file_manager/foreground/js/actions_model.js index 8cdff4d7..1424a91c 100644 --- a/ui/file_manager/file_manager/foreground/js/actions_model.js +++ b/ui/file_manager/file_manager/foreground/js/actions_model.js
@@ -549,14 +549,6 @@ }; /** - * @const {!Array<string>} - */ -ActionsModel.METADATA_PREFETCH_PROPERTY_NAMES = [ - 'hosted', - 'pinned' -]; - -/** * @return {!Promise} */ ActionsModel.prototype.initialize = function() {
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 453fa7f..9a1958b5 100644 --- a/ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp +++ b/ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp
@@ -45,14 +45,35 @@ 'target_name': 'dialog_type', 'includes': ['../../../compile_js2.gypi'], }, -# { -# 'target_name': 'directory_contents', -# 'includes': ['../../../compile_js2.gypi'], -# }, -# { -# 'target_name': 'directory_model', -# 'includes': ['../../../compile_js2.gypi'], -# }, + { + 'target_name': 'directory_contents', + 'dependencies': [ + '../../common/js/compiled_resources2.gyp:async_util', + '../../common/js/compiled_resources2.gyp:metrics', + '../../common/js/compiled_resources2.gyp:util', + '../../common/js/compiled_resources2.gyp:volume_manager_common', + '<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr', + '<(DEPTH)/ui/webui/resources/js/cr/ui/compiled_resources2.gyp:array_data_model', + '<(EXTERNS_GYP):file_manager_private', + 'constants', + 'file_list_model', + 'metadata/compiled_resources2.gyp:metadata_model', + ], + 'includes': ['../../../compile_js2.gypi'], + }, + { + 'target_name': 'directory_model', + 'dependencies': [ + '../../common/js/compiled_resources2.gyp:importer_common', + '../../background/js/compiled_resources2.gyp:file_operation_manager', + '../../common/js/compiled_resources2.gyp:metrics', + 'directory_contents', + 'file_watcher', + 'ui/compiled_resources2.gyp:file_list_selection_model', + 'volume_manager_wrapper', + ], + 'includes': ['../../../compile_js2.gypi'], + }, # { # 'target_name': 'directory_tree_naming_controller', # 'includes': ['../../../compile_js2.gypi'], @@ -101,10 +122,17 @@ # 'target_name': 'file_transfer_controller', # 'includes': ['../../../compile_js2.gypi'], # }, -# { -# 'target_name': 'file_watcher', -# 'includes': ['../../../compile_js2.gypi'], -# }, + { + 'target_name': 'file_watcher', + 'dependencies': [ + '../../common/js/compiled_resources2.gyp:async_util', + '../../common/js/compiled_resources2.gyp:util', + '../../common/js/compiled_resources2.gyp:volume_manager_common', + '<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:assert', + '<(EXTERNS_GYP):file_manager_private', + ], + 'includes': ['../../../compile_js2.gypi'], + }, { 'target_name': 'folder_shortcuts_data_model', 'dependencies': [ @@ -133,10 +161,18 @@ ], 'includes': ['../../../compile_js2.gypi'], }, -# { -# 'target_name': 'list_thumbnail_loader', -# 'includes': ['../../../compile_js2.gypi'], -# }, + { + 'target_name': 'list_thumbnail_loader', + 'dependencies': [ + '../../common/js/compiled_resources2.gyp:volume_manager_common', + 'directory_model', + 'file_list_model', + 'metadata/compiled_resources2.gyp:thumbnail_model', + 'thumbnail_loader', + 'volume_manager_wrapper', + ], + 'includes': ['../../../compile_js2.gypi'], + }, # { # 'target_name': 'main', # 'includes': ['../../../compile_js2.gypi'],
diff --git a/ui/file_manager/file_manager/foreground/js/constants.js b/ui/file_manager/file_manager/foreground/js/constants.js index cec18d1..e094559e 100644 --- a/ui/file_manager/file_manager/foreground/js/constants.js +++ b/ui/file_manager/file_manager/foreground/js/constants.js
@@ -9,6 +9,11 @@ var constants = {}; /** + * @const {!Array<string>} + */ +constants.ACTIONS_MODEL_METADATA_PREFETCH_PROPERTY_NAMES = ['hosted', 'pinned']; + +/** * The list of executable file extensions. * * @const @@ -22,3 +27,28 @@ '.jar', '.msi', ]); + +/** + * These metadata is expected to be cached to accelerate computeAdditional. + * See: crbug.com/458915. + * @const {!Array<string>} + */ +constants.FILE_SELECTION_METADATA_PREFETCH_PROPERTY_NAMES = [ + 'availableOffline', + 'contentMimeType', +]; + +/** + * Metadata property names used by FileTable and FileGrid. + * These metadata is expected to be cached. + * @const {!Array<string>} + */ +constants.LIST_CONTAINER_METADATA_PREFETCH_PROPERTY_NAMES = [ + 'availableOffline', + 'contentMimeType', + 'customIconUrl', + 'hosted', + 'modificationTime', + 'shared', + 'size', +];
diff --git a/ui/file_manager/file_manager/foreground/js/directory_contents.js b/ui/file_manager/file_manager/foreground/js/directory_contents.js index 85ca5c7..c380e53 100644 --- a/ui/file_manager/file_manager/foreground/js/directory_contents.js +++ b/ui/file_manager/file_manager/foreground/js/directory_contents.js
@@ -430,18 +430,19 @@ FileListContext.createPrefetchPropertyNames_ = function() { var set = {}; for (var i = 0; - i < ListContainer.METADATA_PREFETCH_PROPERTY_NAMES.length; + i < constants.LIST_CONTAINER_METADATA_PREFETCH_PROPERTY_NAMES.length; i++) { - set[ListContainer.METADATA_PREFETCH_PROPERTY_NAMES[i]] = true; - } - for (var i = 0; i < ActionsModel.METADATA_PREFETCH_PROPERTY_NAMES.length; - i++) { - set[ActionsModel.METADATA_PREFETCH_PROPERTY_NAMES[i]] = true; + set[constants.LIST_CONTAINER_METADATA_PREFETCH_PROPERTY_NAMES[i]] = true; } for (var i = 0; - i < FileSelection.METADATA_PREFETCH_PROPERTY_NAMES.length; + i < constants.ACTIONS_MODEL_METADATA_PREFETCH_PROPERTY_NAMES.length; i++) { - set[FileSelection.METADATA_PREFETCH_PROPERTY_NAMES[i]] = true; + set[constants.ACTIONS_MODEL_METADATA_PREFETCH_PROPERTY_NAMES[i]] = true; + } + for (var i = 0; + i < constants.FILE_SELECTION_METADATA_PREFETCH_PROPERTY_NAMES.length; + i++) { + set[constants.FILE_SELECTION_METADATA_PREFETCH_PROPERTY_NAMES[i]] = true; } return Object.keys(set); };
diff --git a/ui/file_manager/file_manager/foreground/js/file_selection.js b/ui/file_manager/file_manager/foreground/js/file_selection.js index 1ee0e33..fa7a052 100644 --- a/ui/file_manager/file_manager/foreground/js/file_selection.js +++ b/ui/file_manager/file_manager/foreground/js/file_selection.js
@@ -77,35 +77,27 @@ FileSelection.prototype.computeAdditional = function(metadataModel) { if (!this.additionalPromise_) { - this.additionalPromise_ = metadataModel.get( - this.entries, - FileSelection.METADATA_PREFETCH_PROPERTY_NAMES) - .then(function(props) { - var present = props.filter(function(p) { - // If no availableOffline property, then assume it's available. - return !('availableOffline' in p) || p.availableOffline; - }); - this.allFilesPresent = present.length === props.length; - this.mimeTypes = props.map(function(value) { - return value.contentMimeType || ''; - }); - return true; - }.bind(this)); + this.additionalPromise_ = + metadataModel + .get( + this.entries, + constants.FILE_SELECTION_METADATA_PREFETCH_PROPERTY_NAMES) + .then(function(props) { + var present = props.filter(function(p) { + // If no availableOffline property, then assume it's available. + return !('availableOffline' in p) || p.availableOffline; + }); + this.allFilesPresent = present.length === props.length; + this.mimeTypes = props.map(function(value) { + return value.contentMimeType || ''; + }); + return true; + }.bind(this)); } return this.additionalPromise_; }; /** - * These metadata is expected to be cached to accelerate computeAdditional. - * See: crbug.com/458915. - * @const {!Array<string>} - */ -FileSelection.METADATA_PREFETCH_PROPERTY_NAMES = [ - 'availableOffline', - 'contentMimeType', -]; - -/** * This object encapsulates everything related to current selection. * * @param {!FileManager} fileManager File manager instance.
diff --git a/ui/file_manager/file_manager/foreground/js/file_watcher.js b/ui/file_manager/file_manager/foreground/js/file_watcher.js index 2eeb626..8314efe 100644 --- a/ui/file_manager/file_manager/foreground/js/file_watcher.js +++ b/ui/file_manager/file_manager/foreground/js/file_watcher.js
@@ -34,7 +34,7 @@ /** * Called when a file in the watched directory is changed. - * @param {Event} event Change event. + * @param {FileWatchEvent} event Change event. * @private */ FileWatcher.prototype.onDirectoryChanged_ = function(event) {
diff --git a/ui/file_manager/file_manager/foreground/js/ui/compiled_resources2.gyp b/ui/file_manager/file_manager/foreground/js/ui/compiled_resources2.gyp index 83c5428..6629da8 100644 --- a/ui/file_manager/file_manager/foreground/js/ui/compiled_resources2.gyp +++ b/ui/file_manager/file_manager/foreground/js/ui/compiled_resources2.gyp
@@ -80,10 +80,21 @@ ], 'includes': ['../../../../compile_js2.gypi'], }, -# { -# 'target_name': 'file_grid', -# 'includes': ['../../../../compile_js2.gypi'], -# }, + { + 'target_name': 'file_grid', + 'dependencies': [ + '../../../background/js/compiled_resources2.gyp:import_history', + '../../../common/js/compiled_resources2.gyp:async_util', + '../../../common/js/compiled_resources2.gyp:file_type', + '../../../common/js/compiled_resources2.gyp:util', + '../compiled_resources2.gyp:list_thumbnail_loader', + '../metadata/compiled_resources2.gyp:metadata_model', + '<(DEPTH)/ui/webui/resources/js/cr/ui/compiled_resources2.gyp:grid', + 'drag_selector', + 'file_table_list', + ], + 'includes': ['../../../../compile_js2.gypi'], + }, { 'target_name': 'file_list_selection_model', 'dependencies': [ @@ -114,10 +125,20 @@ ], 'includes': ['../../../../compile_js2.gypi'], }, -# { -# 'target_name': 'file_table', -# 'includes': ['../../../../compile_js2.gypi'], -# }, + { + 'target_name': 'file_table', + 'dependencies': [ + '../../../background/js/compiled_resources2.gyp:import_history', + '../compiled_resources2.gyp:file_list_model', + '../compiled_resources2.gyp:list_thumbnail_loader', + '<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr', + '<(DEPTH)/ui/webui/resources/js/cr/ui/compiled_resources2.gyp:table', + 'drag_selector', + 'file_metadata_formatter', + 'file_table_list', + ], + 'includes': ['../../../../compile_js2.gypi'], + }, { 'target_name': 'file_table_list', 'dependencies': [ @@ -162,10 +183,15 @@ ], 'includes': ['../../../../compile_js2.gypi'], }, -# { -# 'target_name': 'list_container', -# 'includes': ['../../../../compile_js2.gypi'], -# }, + { + 'target_name': 'list_container', + 'dependencies': [ + '<(DEPTH)/ui/webui/resources/js/cr/ui/compiled_resources2.gyp:list_item', + 'file_grid', + 'file_table', + ], + 'includes': ['../../../../compile_js2.gypi'], + }, { 'target_name': 'location_line', 'dependencies': [
diff --git a/ui/file_manager/file_manager/foreground/js/ui/list_container.js b/ui/file_manager/file_manager/foreground/js/ui/list_container.js index fed73f5..8559fd7d 100644 --- a/ui/file_manager/file_manager/foreground/js/ui/list_container.js +++ b/ui/file_manager/file_manager/foreground/js/ui/list_container.js
@@ -134,21 +134,6 @@ THUMBNAIL: 'thumb' }; -/** - * Metadata property names used by FileTable and FileGrid. - * These metadata is expected to be cached. - * @const {!Array<string>} - */ -ListContainer.METADATA_PREFETCH_PROPERTY_NAMES = [ - 'availableOffline', - 'contentMimeType', - 'customIconUrl', - 'hosted', - 'modificationTime', - 'shared', - 'size', -]; - ListContainer.prototype = /** @struct */ { /** * @return {!FileTable|!FileGrid}
diff --git a/ui/webui/resources/js/cr/ui/compiled_resources2.gyp b/ui/webui/resources/js/cr/ui/compiled_resources2.gyp index 912060a..6f0eb1d 100644 --- a/ui/webui/resources/js/cr/ui/compiled_resources2.gyp +++ b/ui/webui/resources/js/cr/ui/compiled_resources2.gyp
@@ -73,6 +73,13 @@ 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], }, { + 'target_name': 'grid', + 'dependencies': [ + 'list', + ], + 'includes': ['../../../../../../third_party/closure_compiler/compile_js2.gypi'], + }, + { 'target_name': 'list', 'dependencies': [ 'array_data_model',