mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision bb1f35100ad0aedeeb6897dd640b360f80498027
This commit is contained in:
parent
3a3a7cdc22
commit
210ff0c02a
35 changed files with 1957 additions and 43 deletions
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<title>'transform-origin' on <svg> being direct descendant of shadow root</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-origin-property">
|
||||
<template>
|
||||
<style>
|
||||
#target {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
background-color: green;
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
</style>
|
||||
<svg id="target"></svg>
|
||||
</template>
|
||||
<div style="position: relative; height: 100px">
|
||||
<div style="width: 100px; height: 100px; background-color: red; position: absolute"></div>
|
||||
<div style="position: absolute" id="wrapper"></div>
|
||||
</div>
|
||||
<script>
|
||||
setup(function() {
|
||||
const wrapper = document.querySelector('#wrapper');
|
||||
wrapper.attachShadow({mode: "open"});
|
||||
wrapper.shadowRoot.appendChild(
|
||||
document.querySelector("template").content.cloneNode(true));
|
||||
});
|
||||
|
||||
test(function() {
|
||||
const wrapper = document.querySelector('#wrapper');
|
||||
const target = wrapper.shadowRoot.getElementById('target');
|
||||
assert_equals(getComputedStyle(target, null).transformOrigin, '50px 50px');
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue