From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:558:fe21:29:69:252:207:38; helo=resqmta-ch2-06v.sys.comcast.net; envelope-from=eklhad@comcast.net; receiver= Received: from resqmta-ch2-06v.sys.comcast.net (resqmta-ch2-06v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:38]) by hurricane.the-brannons.com (Postfix) with ESMTPS id F1B5877AAF for ; Tue, 20 Feb 2018 03:55:55 -0800 (PST) Received: from resomta-ch2-09v.sys.comcast.net ([69.252.207.105]) by resqmta-ch2-06v.sys.comcast.net with ESMTP id o6XKejWb7PegLo6XVe0wcs; Tue, 20 Feb 2018 11:56:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1519127813; bh=epWjtig9QMTXO4lANokj7OHtNv0rWxAz7+f4Ku2VgN4=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=EEeqM57R4t4oNFV0raSKjBW7tBnpN5pXau5q98wC1DI2r/jYliorU58b5mvir8ikd /9mr1448ioJaXOJ0fX/fTg79HzgLZwF6J408gc9/iZye+9aC9sh6bwavnBVMHUXLwa V+AKKMbSbUjSDjWtfYiA92nhY1MyRiZn5KkKwIPaYooiUHaK9q1Lt7hOame16iSlPZ t5tUTLUb4YvQFJnpfBEsuFV+0dxoSC9+pXXEmbrjwVIV7bZwyOc8Xvx0th1WdGs+z1 memey7GM3VwQxENQaozn8v4e3NFjloQCjOyWdFcWRJopQkN/kTUFeLRStp9kq+/JMs W7H94qGU6Ctfw== Received: from unknown ([IPv6:2601:408:c300:8f09:21e:4fff:fec2:a0f1]) by resomta-ch2-09v.sys.comcast.net with SMTP id o6XUeaGsUT0bSo6XUe6LNO; Tue, 20 Feb 2018 11:56:53 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.7.1 Date: Tue, 20 Feb 2018 06:56:52 -0500 Message-ID: <20180120065652.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=nextpart-eb-027868 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfPVJ7AUKZckytT2y9bPSiq7UqD52BZcd5ckCbYwf2ZzdskbQMQtCb2p2Czz/82Zi5k/aRnn8xkrmEdvW73T4JA+LRi85nCpxP5peR4WJawPtdv2mPfmJ pVoahVYXXcFPCuOXfU3XOdPUa/2ospzyMSGM6F12lnUtW/lEEnTvnLzU Subject: [Edbrowse-dev] :before :after X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.25 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2018 11:55:56 -0000 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --nextpart-eb-027868 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable This is just me thinking out loud; you can ignore if you like. css can inject text into your document. I had no idea! It's not just colors and fonts and decorations, it can inject words. https://www.w3.org/TR/CSS21/generate.html The first thing you'll notice is that :before is on the wrong side of = the descriptor. It is a bad design that is cast in stone. :before is a selector but it is always true, it doesn't select anything. It is an action, and should be on the right. So we have to move it, functionally, if not physically, to the right. If present, *none* of the directives apply to the current node, except = for content. Content:blah puts blah before, or after, everything under the current = node. p.note:before { content: "Note: " } I need to create a text node, or a span, probably a text node, with = contents blah, and then use either insertBefore or appendChild to paste it in. >>From there it will be rendered and you'll see it as usual. Not too hard, but there is fallout. Here's the really bad news. I don't do any of this stuff, because I didn't think I had to. And that shaves almost 2 minutes off the browse time for stackoverflow, = with its 5,000 selectors. I apply selectors to each node on demand, if and when you access the = style element, and I thought that was really clever, and I guess it is, because I don't spend 2 minutes on stuff that doesn't matter, yet I = still do what needs to be done on demand, but, I'm not injecting snippets of text before or after elements, and that changes the way the document might read. All this may have to wait until after 3.7.2, because right now I'm not = even sure how to procede. BTW, I still hope we can cut 3.7.2 on Sunday, assuming we quit finding = bugs, or at least problematic bugs. Karl Dahlke --nextpart-eb-027868--