https://github.com/web-platform-tests/wpt
Revision 622b6fd97abd374fdd18a783d12a684f3fa98e23 authored by Emil A Eklund on 18 December 2018, 22:56:53 UTC, committed by Philip Jägenstedt on 19 December 2018, 15:14:29 UTC
Change getComputedStyle to return the resolved value for line-height per
the CSSOM specification [1]. Specifically for 'normal' or invalid values
this will return the computed line-height instead of the specified ones.

1) https://drafts.csswg.org/cssom/#resolved-value

Bug: 383409
Test: wpt/css/cssom/line-height-resolved-value.html
Change-Id: Id58fdc700605779a7f34ccbefb62290e3eea1117
1 parent 712c9f2
Raw File
Tip revision: 622b6fd97abd374fdd18a783d12a684f3fa98e23 authored by Emil A Eklund on 18 December 2018, 22:56:53 UTC
Return resolved-value for ComputedStyle line-height
Tip revision: 622b6fd
cell_aria-rowspan_2_on_td_html_rowspan_3-manual.html
<!doctype html>
<html>
  <head>
    <title>cell aria-rowspan 2 on td html rowspan 3</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
    <link rel="stylesheet" href="/wai-aria/scripts/manual.css">
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <script src="/wai-aria/scripts/ATTAcomm.js"></script>
    <script>
    setup({explicit_timeout: true, explicit_done: true });

    var theTest = new ATTAcomm(
    {
   "steps" : [
      {
         "element" : "test",
         "test" : {
            "ATK" : [
               [
                  "property",
                  "role",
                  "is",
                  "ROLE_TABLE_CELL"
               ],
               [
                  "property",
                  "objectAttributes",
                  "doesNotContain",
                  "rowspan:2"
               ],
               [
                  "result",
                  "atk_table_cell_get_row_column_span()",
                  "doesNotContain",
                  "row_span=2"
               ]
            ],
            "AXAPI" : [
               [
                  "property",
                  "AXRole",
                  "is",
                  "AXCell"
               ],
               [
                  "property",
                  "AXRowIndexRange.length",
                  "isNot",
                  "2"
               ]
            ],
            "IAccessible2" : [
               [
                  "property",
                  "role",
                  "is",
                  "ROLE_SYSTEM_CELL"
               ],
               [
                  "property",
                  "objectAttributes",
                  "doesNotContain",
                  "rowspan:2"
               ]
            ],
            "MSAA" : [
               [
                  "property",
                  "role",
                  "is",
                  "ROLE_SYSTEM_CELL"
               ]
            ],
            "UIA" : [
               [
                  "property",
                  "ControlType",
                  "is",
                  "DataItem"
               ],
               [
                  "property",
                  "TableItem.RowSpan",
                  "isNot",
                  "2"
               ]
            ]
         },
         "title" : "step 1",
         "type" : "test"
      }
   ],
   "title" : "cell aria-rowspan 2 on td html rowspan 3"
}

    ) ;
    </script>
  </head>
  <body>
  <p>This test examines the ARIA properties for cell aria-rowspan 2 on td html rowspan 3.</p>
    <table>
    <tr>
      <td id="test" role="cell" rowspan="3" aria-rowspan="2">test cell</td>
    </tr>
  </table>

  <div id="manualMode"></div>
  <div id="log"></div>
  <div id="ATTAmessages"></div>
  </body>
</html>
back to top