jfernandez@igalia.com | f119ec1 | 2018-11-23 11:04:23 +0000 | [diff] [blame] | 1 | <!doctype html> |
| 2 | <script src="../../resources/testharness.js"></script> |
| 3 | <script src="../../resources/testharnessreport.js"></script> |
| 4 | <div style="display: grid;"> |
| 5 | <div id="item1"></div> |
| 6 | </div> |
| 7 | <div style="display: grid;"> |
| 8 | <div id="item2" style="align-self: baseline"></div> |
| 9 | </div> |
| 10 | <div style="display: grid;"> |
| 11 | <div id="item3" style="writing-mode: vertical-lr;"></div> |
| 12 | </div> |
| 13 | <script> |
| 14 | test(() => { |
| 15 | document.body.offsetLeft; |
| 16 | var item = document.getElementById("item1"); |
| 17 | item.style.alignSelf = "baseline"; |
| 18 | assert_equals(item.style.alignSelf, "baseline"); |
| 19 | }, "No crash or assertion failure when changing align-self from 'auto' to 'baseline'."); |
| 20 | test(() => { |
| 21 | document.body.offsetLeft; |
| 22 | var item = document.getElementById("item2"); |
| 23 | item.style.alignSelf = "start"; |
| 24 | assert_equals(item.style.alignSelf, "start"); |
| 25 | }, "No crash or assertion failure when changing align-self from 'baseline' to 'start'."); |
| 26 | test(() => { |
| 27 | document.body.offsetLeft; |
| 28 | var item = document.getElementById("item3"); |
| 29 | item.style.writingMode = "horizontal-tb"; |
| 30 | assert_equals(item.style.writingMode, "horizontal-tb"); |
| 31 | }, "No crash or assertion failure when item's writing-mode changes from orthogonal to parallel."); |
| 32 | </script> |