diff options
author | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2020-06-16 08:20:51 +0000 |
---|---|---|
committer | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2020-06-16 10:58:22 +0000 |
commit | 1a24e35f18a311873ee77ffb5f046abea033a341 (patch) | |
tree | 059da1082512802b25780e8610ed0e41e78d681c /tests/wpt/web-platform-tests/css/css-transforms/transform-box/cssbox-view-box.html | |
parent | 19c1f72eb2fe5178311161b6c85a67956a5a69b3 (diff) | |
download | servo-1a24e35f18a311873ee77ffb5f046abea033a341.tar.gz servo-1a24e35f18a311873ee77ffb5f046abea033a341.zip |
Update web-platform-tests to revision 4af6af604800559d2c58cf3561621ae43e28aaa8
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-transforms/transform-box/cssbox-view-box.html')
-rw-r--r-- | tests/wpt/web-platform-tests/css/css-transforms/transform-box/cssbox-view-box.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-transforms/transform-box/cssbox-view-box.html b/tests/wpt/web-platform-tests/css/css-transforms/transform-box/cssbox-view-box.html new file mode 100644 index 00000000000..2336957bf1c --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-transforms/transform-box/cssbox-view-box.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<title>transform-box: view-box (CSS layout)</title> +<link rel="match" href="./reference/cssbox-ref.html"> +<link rel="help" href="https://drafts.csswg.org/css-transforms-1/#transform-box"> +<meta name="assert" content="This should display a square with a black bar at the top whose top-left corner is at 100,100."/> + +<style> +#target { + width: 150px; + height: 200px; + margin-left: 300px; + margin-top: 100px; + background-color: green; + border-left: solid 50px black; + + transform: rotate(90deg); + transform-origin: 0 0; + transform-box: view-box; /* acts like border-box on css boxes */ +} +</style> + +<div id="target"></div> + +<div id="error"></div> +<script> +var refStyle = "view-box"; +var compStyle = getComputedStyle(document.getElementById('target')).transformBox; +if (refStyle != compStyle) + document.getElementById('error').textContent = "Error, got computed style " + compStyle; +</script> |