marco-c/autowebcompat

Alignment Graph in xpert

sagarvijaygupta opened this issue · 1 comments

As mentioned in #226

In the AlignmentGraph they check for the matched nodes:

  1. They create an AlignmentGraph for two doms where they create a vMap (mapping from xPath to node), then sort the vertices based on Area and DOM hierarchy, and add nodes as a pair of (parent, node) when parent contains the node (node is inside the parent visually and considering large number of factors). Similarly add siblings who have same parent.
  2. For all pair of matched nodes they compare their parents and siblings for large variety of criteria including different alignments, different parents, vfill, hfill etc considering many size differences greater than some threshold for both parents and siblings. These return large number of issues to the checker.

Second part of matching is Alignment Graph.
First part of this should be having the coordinates of bounding box for every element on the webpage.

First part of this should be having the coordinates of bounding box for every element on the webpage.

@marco-c this part I think it should be implemented in Crawler itself. I will output the result into a json format from the Crawler.