edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Kevin Carhart <kevin@carhart.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] explanation of patch 20170813
Date: Sun, 13 Aug 2017 21:54:32 -0700 (PDT)	[thread overview]
Message-ID: <alpine.LRH.2.03.1708132145140.29819@carhart.net> (raw)
In-Reply-To: <20170713220453.eklhad@comcast.net>

On Sun, 13 Aug 2017, Karl Dahlke wrote:

> Indeed you do, but yours takes no arguments, and the one in acid is given 2 arguments.
> Something doesn't line up.
>
> Karl Dahlke
>

Ok, I researched this a little and wrote a patch.  Here are some notes on 
what is going on.

What's defaultView?

document.defaultView just returns window.

Why does the acid3 test say document.defaultView.getComputedStyle?

According to MDN, this is redundant.  So I just put in code so that
document.defaultView.getComputedStyle
will call window.getComputedStyle and proceed.

What is the point of window.getComputedStyle?

I think the point is that there is supposed to be a cascading effect in 
the values of styles.  As the comment says "whether removing an element 
that is the last child correctly recomputes styles for the new last child"

Why are there two arguments and what do the arguments do?

Here's the syntax for window.getComputedStyle, from MDN:
var style = window.getComputedStyle(element[, pseudoElt]);

The first argument is the element to return the styles for.  The second 
argument is optional.  It refers to pseudoelements.  I'm leaving aside 
what those are, for now.

Onwards and upwards.... this doesn't make test zero pass yet, but it's 
important to fix.  The element called 'penultimate' isn't working 
correctly, but there is no longer a syntactical problem trying to say:

document.defaultView.getComputedStyle(penultimate, '').whiteSpace

Kevin


      parent reply	other threads:[~2017-08-14  4:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-13 11:31 [Edbrowse-dev] jspool Karl Dahlke
2017-08-13 21:29 ` Kevin Carhart
     [not found]   ` <20170713174445.eklhad@comcast.net>
2017-08-13 23:01     ` Kevin Carhart
     [not found]       ` <20170713191620.eklhad@comcast.net>
2017-08-13 23:38         ` [Edbrowse-dev] test #0 Kevin Carhart
2017-08-14  0:54           ` Karl Dahlke
2017-08-14  0:59             ` Kevin Carhart
     [not found]               ` <20170713220453.eklhad@comcast.net>
2017-08-14  4:54                 ` Kevin Carhart [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LRH.2.03.1708132145140.29819@carhart.net \
    --to=kevin@carhart.net \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).