From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: CSS contrast (#30295) (was Re: Heads-up: Emacs 26.1 RC1) Date: Wed, 21 Mar 2018 12:52:15 +0700 Message-ID: References: <83muz2lfo9.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1521611474 32649 195.159.176.226 (21 Mar 2018 05:51:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2018 05:51:14 +0000 (UTC) Cc: Eli Zaretskii , John Wiegley , Tom Tromey , Emacs Development To: Richard Copley Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 21 06:51:09 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eyWeS-0008Ma-Ou for ged-emacs-devel@m.gmane.org; Wed, 21 Mar 2018 06:51:08 +0100 Original-Received: from localhost ([::1]:53033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyWgV-0007Bv-Mw for ged-emacs-devel@m.gmane.org; Wed, 21 Mar 2018 01:53:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyWfz-0007Bm-Du for emacs-devel@gnu.org; Wed, 21 Mar 2018 01:52:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyWfy-0003rY-HO for emacs-devel@gnu.org; Wed, 21 Mar 2018 01:52:43 -0400 Original-Received: from mail-ot0-x236.google.com ([2607:f8b0:4003:c0f::236]:42158) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eyWfs-0003jq-Sm; Wed, 21 Mar 2018 01:52:36 -0400 Original-Received: by mail-ot0-x236.google.com with SMTP id v23-v6so4429866oth.9; Tue, 20 Mar 2018 22:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=KvEeNLtpTythJ4/orx0lVB1Pkv/526p6WqOeqXf/KDg=; b=QMJPWI0eP1vaQZD6PytjFkDWMneLYdHeX0IGpNyKBZB/d17+LusJxISu3iO9RWCFX0 8+9P/rP1UbLX1ue5xfvGdQ+akw/7i26iC5QZhtA4mY0tx2UjFYdaRwZHzMO6Gq1Jo6tZ epp3OmIirkux0wwP8jMJat9teuIiVwrIp1FCb4V2hxLQxt1d+nXb09ypxRh1P0c9iv6B Hu10LxrYZ9d0K6O6dv7+xHHuNl9HcPy23POxqIzVukTRxE6tnDJzPn4n5zl0MKcZX7fh s09okkMEJqT3cuwKD5DDK7mQeT4z3WB0JwUVSa0fEFupJmCia+qMCboAqI6pF3kteC9R Ca3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=KvEeNLtpTythJ4/orx0lVB1Pkv/526p6WqOeqXf/KDg=; b=QM5jwO22DEc0u+jHGT89uLFrIHopHSM0X9N353lGVvGMuvv/s+b9f0zQt4i+82w1Kc pg6XA+zDNrbZDFgIW7EazZX2I28I0+EtzLokh/fptQ1eyzlMTnQGLfuML/GW4tcWvqib FzR3kNM5uhCRi0ErqJqc/ZEqkMGMPLhijkrMEg4hbPpmR63/RmGvx1zuK6ZSFJNGNGF8 82E/DLj8y387svQ9h82JQq5Ems1h59FO+qLOijtVh16K7y7+oNQ425j1lwlrEr9leW04 suF6xzYTk02YLoTye7Z6xDB6uqWdMz+zqchdAEpWa/rieHJbPYUHaJVlI8EUYZA+nkck 58rw== X-Gm-Message-State: AElRT7Fm5zQOdlfVHfeC3ucxjpdzmZjXA96L0XSRO39u3d6q2HVKQVip rbKvg+wYgaxt3k/w1Ef4CAQa1k7Gage452Tuq4k= X-Google-Smtp-Source: AG47ELsVVAWunKOvT82vfx1ZePV6fy4FMdsud8wLC5ikSVpc2V02MxSpZvmJzpYcWPp6cnWVeTho+MzCJ/cQiP/+tqg= X-Received: by 2002:a9d:2328:: with SMTP id j37-v6mr10486789otb.355.1521611555935; Tue, 20 Mar 2018 22:52:35 -0700 (PDT) Original-Received: by 10.74.186.8 with HTTP; Tue, 20 Mar 2018 22:52:15 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: udMjzrU6g69gStsNozQiW1HnwW4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223873 Archived-At: On Wed, Mar 21, 2018 at 2:56 AM, Richard Copley wrote: > Patch 1 is a small fix for the current formula using color-distance. > Patch 2 uses luminance as in Tom's original patch. > I think patch 2 gives better contrast. Why not use the WCAG contrast ratio formula? https://www.w3.org/TR/WCAG20/#visual-audio-contrast (Except that, if implemented literally, it will probably not fit the trivial change threshold.)