www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 252f6320ef08f396ad1146d2ae02bc77c0ad57a1
parent d7d13675586c1fa6dfc34c24020a61e603950948
Author: Emily Eisenberg <emily@khanacademy.org>
Date:   Tue, 22 Sep 2015 10:13:55 -0700

Remove 3px border around rules.

Summary: For some reason, adding `border-style: solid` also adds a 3px
border around elements, which means that all of the rules that we
created are 3px too large. This sets the default size to 0 for all the
edges, which makes them correct.

Test plan:
 - See that `a\rule{0em}{0em}b` produces no visible rule.
 - See the new screenshots look reasonable.

Diffstat:
Mstatic/katex.less | 2+-
Mtest/screenshotter/images/LeftRightStyleSizing-chrome.png | 0
Mtest/screenshotter/images/LeftRightStyleSizing-firefox.png | 0
Mtest/screenshotter/images/Rule-chrome.png | 0
Mtest/screenshotter/images/Rule-firefox.png | 0
5 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/static/katex.less b/static/katex.less @@ -347,7 +347,7 @@ .rule { display: inline-block; - border-style: solid; + border: solid 0; position: relative; } diff --git a/test/screenshotter/images/LeftRightStyleSizing-chrome.png b/test/screenshotter/images/LeftRightStyleSizing-chrome.png Binary files differ. diff --git a/test/screenshotter/images/LeftRightStyleSizing-firefox.png b/test/screenshotter/images/LeftRightStyleSizing-firefox.png Binary files differ. diff --git a/test/screenshotter/images/Rule-chrome.png b/test/screenshotter/images/Rule-chrome.png Binary files differ. diff --git a/test/screenshotter/images/Rule-firefox.png b/test/screenshotter/images/Rule-firefox.png Binary files differ.