Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–6 unchanged (6 lines)
7<script src="/resources/testharness.js"></script>
8<script src="/resources/testharnessreport.js"></script>
9<script src="/resources/testdriver.js?feature=bidi"></script>
10<script src="/resources/testdriver-vendor.js"></script>
11<script src="/generic-sensor/resources/generic-sensor-helpers.js"></script>
12<script src="/generic-sensor/generic-sensor-iframe-tests.sub.js"></script>
13<script src="/generic-sensor/generic-sensor-feature-policy-test.sub.js"></script>
14<script src="resources/sensor-data.js"></script>
15<div id="log"></div>
16<script>
17
18run_generic_sensor_iframe_tests(kRelativeOrientationSensorData, kOrientationReadings);
19</script>
20

After

…lines 1–6 unchanged (6 lines)
7<script src="/resources/testharness.js"></script>
8<script src="/resources/testharnessreport.js"></script>
9<script src="/resources/testdriver.js?feature=bidi"></script>
10<script src="/resources/testdriver-vendor.js"></script>
11<script src="/generic-sensor/resources/generic-sensor-helpers.js"></script>
12<script src="/generic-sensor/generic-sensor-iframe-tests.sub.js"></script>
13<script src="/generic-sensor/generic-sensor-permissions-policy-test.sub.js"></script>
14<script src="resources/sensor-data.js"></script>
15<div id="log"></div>
16<script>
17
18run_generic_sensor_iframe_tests(kRelativeOrientationSensorData, kOrientationReadings);
19</script>
20

Before

document
doctype
<! "<!"
doctype "DOCTYPE"
> ">"
element
start_tag
< "<"
tag_name "meta"
attribute
attribute_name "charset"
= "="
quoted_attribute_value
" "\""
attribute_value "utf-8"
" "\""
> ">"
element
start_tag
< "<"
tag_name "title"
> ">"
text "RelativeOrientationSensor iframe test"
end_tag
</ "</"
tag_name "title"
> ">"
element
start_tag
< "<"
tag_name "meta"
attribute
attribute_name "name"
= "="
quoted_attribute_value
" "\""
attribute_value "timeout"
" "\""
attribute
attribute_name "content"
= "="
quoted_attribute_value
" "\""
attribute_value "long"
" "\""
> ">"
element (+26 nodes collapsed)
element
start_tag
< "<"
tag_name "link"
attribute
attribute_name "rel"
= "="
quoted_attribute_value
" "\""
attribute_value "help"
" "\""
attribute
attribute_name "href"
= "="
quoted_attribute_value
" "\""
attribute_value "https://www.w3.org/TR/orientation-sensor/"
" "\""
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "/resources/testharness.js"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "/resources/testharnessreport.js"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "/resources/testdriver.js?feature=bidi"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "/resources/testdriver-vendor.js"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "/generic-sensor/resources/generic-sensor-helpers.js"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "/generic-sensor/generic-sensor-iframe-tests.sub.js"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "/generic-sensor/generic-sensor-feature-policy-test.sub.js"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "resources/sensor-data.js"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
element
start_tag
< "<"
tag_name "div"
attribute
attribute_name "id"
= "="
quoted_attribute_value
" "\""
attribute_value "log"
" "\""
> ">"
end_tag
</ "</"
tag_name "div"
> ">"
script_element
start_tag
< "<"
tag_name "script"
> ">"
raw_text "\n\nrun_generic_sensor_iframe_tests(kRelativeOrientationSensor"...
end_tag
</ "</"
tag_name "script"
> ">"

After

document
doctype
<! "<!"
doctype "DOCTYPE"
> ">"
element
start_tag
< "<"
tag_name "meta"
attribute
attribute_name "charset"
= "="
quoted_attribute_value
" "\""
attribute_value "utf-8"
" "\""
> ">"
element
start_tag
< "<"
tag_name "title"
> ">"
text "RelativeOrientationSensor iframe test"
end_tag
</ "</"
tag_name "title"
> ">"
element
start_tag
< "<"
tag_name "meta"
attribute
attribute_name "name"
= "="
quoted_attribute_value
" "\""
attribute_value "timeout"
" "\""
attribute
attribute_name "content"
= "="
quoted_attribute_value
" "\""
attribute_value "long"
" "\""
> ">"
element (+26 nodes collapsed)
element
start_tag
< "<"
tag_name "link"
attribute
attribute_name "rel"
= "="
quoted_attribute_value
" "\""
attribute_value "help"
" "\""
attribute
attribute_name "href"
= "="
quoted_attribute_value
" "\""
attribute_value "https://www.w3.org/TR/orientation-sensor/"
" "\""
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "/resources/testharness.js"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "/resources/testharnessreport.js"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "/resources/testdriver.js?feature=bidi"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "/resources/testdriver-vendor.js"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "/generic-sensor/resources/generic-sensor-helpers.js"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "/generic-sensor/generic-sensor-iframe-tests.sub.js"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "/generic-sensor/generic-sensor-permissions-policy-test.sub.j"...
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
script_element
start_tag
< "<"
tag_name "script"
attribute
attribute_name "src"
= "="
quoted_attribute_value
" "\""
attribute_value "resources/sensor-data.js"
" "\""
> ">"
raw_text ""
end_tag
</ "</"
tag_name "script"
> ">"
element
start_tag
< "<"
tag_name "div"
attribute
attribute_name "id"
= "="
quoted_attribute_value
" "\""
attribute_value "log"
" "\""
> ">"
end_tag
</ "</"
tag_name "div"
> ">"
script_element
start_tag
< "<"
tag_name "script"
> ">"
raw_text "\n\nrun_generic_sensor_iframe_tests(kRelativeOrientationSensor"...
end_tag
</ "</"
tag_name "script"
> ">"