Automatic update from web-platform-tests [iframe] Remove `.tentative` from tests The CSS spec[1] has landed. [1]: https://drafts.csswg.org/css-sizing-4/#responsive-iframes Bug: 418397278 Change-Id: If60c3bf1c0a6af92f10eec4b630b532e70b0dac4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7843735 Commit-Queue: Kent Tamura <tkent@chromium.org> Auto-Submit: Koji Ishii <kojii@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/main@{#1630448} -- wpt-commits: 27020cc7ede3b18041a5560e6a2feb54bd4e1913 wpt-pr: 59872
36 lines
1.5 KiB
HTML
36 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<title>Test `frame-sizing` values and `writing-mode`s.</title>
|
|
<link rel="author" href="mailto:kojii@chromium.org">
|
|
<link rel="help" href="https://drafts.csswg.org/css-sizing/">
|
|
<meta name="variant" content="?value=,300,150">
|
|
<meta name="variant" content="?value=content-height,300,200">
|
|
<meta name="variant" content="?value=content-block-size,300,200">
|
|
<meta name="variant" content="?value=content-inline-size,300,200,vertical-rl">
|
|
<meta name="variant" content="?value=content-width,400,150">
|
|
<meta name="variant" content="?value=content-inline-size,400,150">
|
|
<meta name="variant" content="?value=content-block-size,400,150,vertical-rl">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<div id="log"></div>
|
|
<iframe id="target" frameborder=0 src="resources/iframe-contents-400x200root.html">
|
|
</iframe>
|
|
<script>
|
|
const target = document.getElementById('target');
|
|
const params = new URLSearchParams(window.location.search);
|
|
const values = params.get('value');
|
|
const [value, width, height, writing_mode] = values.split(',');
|
|
if (value) {
|
|
target.style.setProperty('frame-sizing', value);
|
|
}
|
|
if (writing_mode) {
|
|
target.style.writingMode = writing_mode;
|
|
}
|
|
|
|
async_test(t => {
|
|
window.addEventListener('load', t.step_func_done(() => {
|
|
assert_array_equals([target.offsetWidth, target.offsetHeight],
|
|
[parseInt(width), parseInt(height)]);
|
|
}));
|
|
}, `Measure target with value=${value} and wm=${writing_mode}`);
|
|
</script>
|