Šime Vidas
Member since Apr 14, 2014
- Profile: /members/11806-ime-vidas.htm
- Comments: 16
Recent Blog Comments By Šime Vidas
-
Base Tag HREF Doesn't Affect Document Root-Relative URLs
Posted on Oct 23, 2022 at 9:57 AM
What you call root-relative, the spec calls path-absolute https://url.spec.whatwg.org/#path-absolute-url-string /foo = path-absolute URL string ./foo and foo = path-relative URL string... read more »
-
Desktop Safari Seems To Add Extra Padding To CSS Flexbox Item Inside List Item
Posted on May 30, 2019 at 8:32 PM
Applying list-style-type: none to the LI element fixes the issue for me. The culprit seems to be the list marker. Notice how if you change list-style-type (from disc ) to other values, the space at the end of the first flex item also changes in accordance with the currently rendered mar... read more »
-
Reconsidering "text-overflow: ellipsis" As A Design Smell And Accessibility Concern
Posted on May 27, 2019 at 12:33 AM
I think that this CSS feature is appropriate in situations where the text is merely a preview, something that can be considered optional or an enhancement. An example of this is Gmail on desktop, where each line in the list of email messages includes the beginning of the email body, as much ... read more »
-
Implementing A "Show Password" Checkbox On A Login Form In JavaScript
Posted on Jul 29, 2018 at 7:54 AM
@Šime, I'd just like to clarify that my happy emoji was turned into "??" in my previous comment :-)... read more »
-
Implementing A "Show Password" Checkbox On A Login Form In JavaScript
Posted on Jul 28, 2018 at 10:09 AM
@Ben, It will protect your password from people who don't know how to use DevTools, which is like 99% of people ?? Example scenario: a friend or college uses your computer or smartphone for a few minutes. They land on a login page for whatever reason, and the browser autofills the password... read more »
-
Implementing A "Show Password" Checkbox On A Login Form In JavaScript
Posted on Jul 28, 2018 at 9:39 AM
What should happen when a registered user visits the login page, and the browser autofills the password field? I think, "Show password" should be disabled in this scenario. But how do you detect autofill, reliably?... read more »
-
Margin Collapsing Causes Unexpected Scrollbar With 100vh Body In Webkit
Posted on Jan 13, 2018 at 9:53 AM
For the record, I've opened an issue on the CSS Working Group repository for this: https://github.com/w3c/csswg-drafts/issues/2171... read more »
-
Using The LESS CSS fade Method To Apply Opacity To A HEX Color
Posted on Oct 16, 2017 at 3:31 PM
Note that CSS has an 8-digit hex notation, where the last two digits represent the alpha value. It is supported in Safari, Firefox, and soon Chrome, and you can use it via the PostCSS plugin (I do, works great).... read more »
-
Aggregating Cherry-Picked Lodash Methods In An Application Module In JavaScript
Posted on Aug 7, 2017 at 6:05 AM
@Ben: Yes, I've created a cheat sheet a while ago to keep track of all the different options, and it still serves me well: https://gist.github.com/simevidas/2aeb91d08d698965601f... read more »
-
Aggregating Cherry-Picked Lodash Methods In An Application Module In JavaScript
Posted on Aug 4, 2017 at 12:43 AM
Note that you can skip the braces: import _ from "./lodash-extended"; if you make `_` your default export: export { _ as default };... read more »
-
As A Node.js Novice, I Don't Understand Why Uncaught Exceptions Are So Dangerous
Posted on Apr 20, 2017 at 5:24 PM
Could you clarify why /error1 counts as a caught error? Where is it caught? Does this mean that Node automatically catches all sync errors?... read more »
-
Express.js Middleware Can Be Arbitrarily Nested Within A Route In Node.js
Posted on Apr 7, 2017 at 1:49 PM
One cool feature that I've recently started using is having conditional middleware that only gets executed inside its router for specific paths, e.g. app.use('/ajax', ajax) where ajax is a Router in a separate module, which can then .use() middleware just like app, but that middleware only runs fo... read more »
-
Using Multiple Break Statements In A Single Case Block In JavaScript
Posted on Jan 9, 2016 at 5:09 PM
@Šime, The correct URL: http://tc39.github.io/ecma262/#sec-switch-statement... read more »
-
Using Multiple Break Statements In A Single Case Block In JavaScript
Posted on Jan 9, 2016 at 5:08 PM
A small note regarding the term "case block": According to the spec ( http://www.bennadel.com/blog/2986-using-multiple-break-statements-in-a-single-case-block-in-javascript.htm ), the switch statement contains a *single* case block, which in turn contains one or more case clauses. The case... read more »
-
Be Careful With Compound Conditions In AngularJS (And JavaScript In General)
Posted on Feb 27, 2015 at 1:42 AM
I'm not familiar with Angular concepts and internals, but it seems to me that Angular would be "more compatible" with JavaScript's coercion mechanism if it itself performed coercion in the relevant places.... read more »
-
Finding HTML Comment Nodes In The DOM Using TreeWalker
Posted on Apr 14, 2014 at 11:17 AM
@Ben, You can skip the manual Google search, here's the direct link: http://mdn.io/TreeWalker :)... read more »