mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Update web-platform-tests to revision 10168e9a5d44efbc6e7d416d1d454eb9c9f1396c
This commit is contained in:
parent
c88dc51d03
commit
0e1caebaf4
791 changed files with 23381 additions and 5501 deletions
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>Self-Alignment: justify-self - setting values via JS</title>
|
||||
<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" />
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#self-alignment" />
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-justify-self" />
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#typedef-self-position" />
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#typedef-baseline-position" />
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#typedef-overflow-position" />
|
||||
<meta name="assert" content="Check that the computed value is the specified value and the same than the JS value."/>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/css-align/resources/alignment-parsing-utils.js"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
element = document.createElement("div");
|
||||
document.body.appendChild(element);
|
||||
|
||||
let classes = Object.assign({"Auto":"auto", "Normal":"normal", "Stretch":"stretch", "Left":"left",
|
||||
"Right":"right"}, selfPositionClasses, baselineClasses, overflowClasses);
|
||||
|
||||
for (var key in classes) {
|
||||
let specifiedValue = classes[key];
|
||||
test(function() {
|
||||
element.style.justifySelf = "";
|
||||
element.style.justifySelf = specifiedValue;
|
||||
if (specifiedValue === "first baseline")
|
||||
checkValues(element, "justifySelf", "justify-self", "baseline", "baseline");
|
||||
else
|
||||
checkValues(element, "justifySelf", "justify-self", specifiedValue, specifiedValue);
|
||||
}, "Checking justify-self: " + specifiedValue);
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue