summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-viewport/width.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-viewport/width.html')
-rw-r--r--testing/web-platform/tests/css/css-viewport/width.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-viewport/width.html b/testing/web-platform/tests/css/css-viewport/width.html
new file mode 100644
index 0000000000..b6d9753ea3
--- /dev/null
+++ b/testing/web-platform/tests/css/css-viewport/width.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<style>CSS zoom applies to width when specified and inherited</style>
+<link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-viewport/">
+<link rel="match" href="width-ref.html">
+<style>
+ #parent {
+ width: 100px;
+ background: red;
+ }
+ #child-zoomed {
+ zoom: 2;
+ width: inherit;
+ background: lime;
+ height: 100px;
+ }
+ #child {
+ width: 200px;
+ height: 200px;
+ background: green;
+ }
+</style>
+<p>You should see two squares below. One lime, and one green.</p>
+<div id="parent">
+ <div id="child-zoomed"></div>
+ <div id="child"></div>
+</div>