Index: LayoutTests/http/tests/css/pending-stylesheet-offset-width.html |
diff --git a/LayoutTests/http/tests/css/pending-stylesheet-offset-width.html b/LayoutTests/http/tests/css/pending-stylesheet-offset-width.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..403e74882e9eae93efb40dd86d2f0ff62dd3587a |
--- /dev/null |
+++ b/LayoutTests/http/tests/css/pending-stylesheet-offset-width.html |
@@ -0,0 +1,12 @@ |
+<!DOCTYPE html> |
+<script src="/js-test-resources/js-test.js"></script> |
+<style> |
+ #t { width: 200px; } |
+</style> |
+<link rel="stylesheet" href="/resources/load-and-stall.php?name=pending-stylesheet-offset-width.css&stallAt=0&stallFor=1"> |
+<div id="t"></div> |
+<script> |
+description("Check that we use the style present asking for offsetWidth, ignoring pending stylesheets."); |
+ |
+shouldBe("t.offsetWidth", "200"); |
+</script> |