Revision 92a658cfbe24d0e399a51b060f66869f88f49b6c authored by Ian Kilpatrick on 27 March 2018, 05:07:50 UTC, committed by Chromium WPT Sync on 27 March 2018, 05:07:50 UTC
This implements the LayoutFragment.inlineOffset and
LayoutFragment.blockOffset attributes.

The tests added simply re-create the reference by setting these two
attributes in different text directions and writing modes.

Change-Id: I1865403ca12e3b174738ee93320eae5ba16ac292
Bug: 726125
Reviewed-on: https://chromium-review.googlesource.com/971832
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546018}
1 parent c32afde
Raw File
replacement-encodings.html
<!DOCTYPE html>
<title>Encoding API: replacement encoding</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/encodings.js"></script>
<script src="resources/decoding-helpers.js"></script>
<script>

const replacement_labels = [];
encodings_table.forEach(section => {
  section.encodings
         .filter(encoding => encoding.name === 'replacement')
         .forEach(encoding => {
           encoding.labels.forEach(label => { replacement_labels.push(label); })
         });
});

replacement_labels.forEach(label => {
  decode_test(
    label,
    '%41%42%43%61%62%63%31%32%33%A0',
    'U+FFFD',
    `${label} - non-empty input decodes to one replacement character.`);

  decode_test(
    label,
    '',
    '', `${label} - empty input decodes to empty output.`);
});
</script>
back to top