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
row_colindex_4-manual.html
<!doctype html>
<html>
  <head>
    <title>row colindex 4</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_ROW"
               ],
               [
                  "property",
                  "objectAttributes",
                  "contains",
                  "colindex:4"
               ]
            ],
            "AXAPI" : [
               [
                  "property",
                  "AXRole",
                  "is",
                  "AXRow"
               ]
            ],
            "IAccessible2" : [
               [
                  "property",
                  "role",
                  "is",
                  "ROLE_SYSTEM_ROW"
               ],
               [
                  "property",
                  "objectAttributes",
                  "contains",
                  "colindex:4"
               ]
            ],
            "MSAA" : [
               [
                  "property",
                  "role",
                  "is",
                  "ROLE_SYSTEM_ROW"
               ]
            ],
            "UIA" : [
               [
                  "property",
                  "ControlType",
                  "is",
                  "DataItem"
               ],
               [
                  "property",
                  "Column",
                  "is",
                  "3"
               ]
            ]
         },
         "title" : "step 1",
         "type" : "test"
      },
      {
         "element" : "cell",
         "test" : {
            "ATK" : [
               [
                  "property",
                  "role",
                  "is",
                  "ROLE_TABLE_CELL"
               ],
               [
                  "result",
                  "atk_table_cell_get_position()",
                  "contains",
                  "column=3"
               ]
            ],
            "AXAPI" : [
               [
                  "property",
                  "AXRole",
                  "is",
                  "AXCell"
               ],
               [
                  "property",
                  "AXARIAColumnIndex",
                  "is",
                  "4"
               ]
            ],
            "UIA" : [
               [
                  "property",
                  "ControlType",
                  "is",
                  "DataItem"
               ],
               [
                  "property",
                  "Column",
                  "is",
                  "3"
               ]
            ]
         },
         "title" : "step 2",
         "type" : "test"
      }
   ],
   "title" : "row colindex 4"
}

    ) ;
    </script>
  </head>
  <body>
  <p>This test examines the ARIA properties for row colindex 4.</p>
    <div role="table">
    <div id="test" role="row" aria-colindex="4">
      <div id="cell" role="cell">test cell</div>
    </div>
  </div>

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