
Philippe Le Hégaret,
Interaction Domain Leader
W3C
W3C Conference, November 2011
<style>
#div1 {
display: inline;
position: relative;
top: 20px;
}
</style>
<div id="div1">
A
<div id="div2">B</div>
C
</div>
<style>
span {
position: relative;
top: 20px;
}
</style>
<span>
A
<div id="div2">B</div>
C
</span>
| Test Name | IE9 | Inkscape | Batik 1.8pre | GPAC | Firefox | Opera | Abbra | WebKit |
|---|---|---|---|---|---|---|---|---|
| coords-units-03-b | Pass | Pass | Pass | Unknown | Pass | Pass | Pass | Fail |
| coords-viewattr-01-b | Pass | Fail | Pass | Unknown | Pass | Pass | Fail | Fail |
| coords-viewattr-02-b | Pass | Partial | Pass | Unknown | Pass | Pass | Partial | Fail |
| coords-viewattr-03-b | Pass | Pass | Pass | Unknown | Pass | Pass | Partial | Pass |
| extend-namespace-01-f | Pass | NA | Pass | Unknown | Pass | Pass | Pass | Pass |
| filters-blend-01-b | Fail | Partial | Pass | Unknown | Pass | Pass | Fail | Pass |
| filters-color-01-b | Fail | Partial | Pass | Unknown | Pass | Pass | Fail | Pass |
| filters-color-02-b | Fail | Pass | Pass | Unknown | Pass | Pass | Fail | Pass |
| filters-composite-03-f | Fail | Partial | Pass | Unknown | Fail | Pass | Fail | Fail |
| painting-render-02-b | Fail | Fail | Fail | Unknown | Fail | Fail | Pass [4] | Fail |
| painting-stroke-10-t | Pass | Fail | Pass | Partial | Pass | Fail | Fail | Fail |
<script src="/resources/testharness.js"> </script> <script src="/resources/testharnessreport.js"> </script>
<p id="MyE">This is <span>test</span>.</p>
<div id='log'></div>
<script>
test(
function() {
var myE = document.getElementById("MyE");
assert_true(!!MyE.firstElementChild);
},
"firstElementChild must exist"
);
</script>
Found 4 tests
| Result | Test Name |
|---|---|
| Pass | firstElementChild must exist |
| Pass | firstElementChild must return null if no child element |
| Pass | firstElementChild must return the first element child |
| Pass | firstElementChild must be dynamically updated |
var t = async_test("Simple test");
function run() {
t.step(
function () {
assert_true(!!MyE.firstElementChild);
}
);
t.done();
};
window.onload = run;
| Test | Reference |
|---|---|
|
Hello World! |
Hello World! |
<style>
#E:first-letter { color: red; }
</style>
<p id='E'>
Hello World!
</p>
|
<p> <span style='color:red'>H</span>ello World! </p> |
| Test | Reference |
|---|---|
| OLLEH | HELLO |
<bdo dir="rtl">OLLEH</bdo> |
<span dir="llr">HELLO</span> |
Iconify this window and restore it.
If the square is still red, please indicate that the test has failed.