ev

What is a developed country and can India become one?

India lags behind in HDI rank mainly because of its low life expectancy and per capita income




ev

EVs: Paving the way for a greener future

According to Ola Electric’s RHP, the Indian electric vehicle market is experiencing remarkable growth. Electric two-wheelers’ (E2Ws) now have a market share of more than 5 per cent. Electric 2Ws have penetrated much faster than smartphones or laptops. They are sold at a premium compared to Internal Combustion Engine (ICE) vehicles. Kochi and Bengaluru have the highest penetration amongst cities.  Compiled by Sai Prabhakar Y




ev

ONGC to revamp 48 aging platforms

Has made an oil discovery in a KG basin block and will augment hydro- carbon volumes established through two earlier finds




ev

Developers given extra time by the Central Government to execute SEZ projects




ev

Cabinet approves easing FDI norms for medical devices sector




ev

Explained | The government package to revive BSNL fortunes

What are the issues that have thwarted the telecom company’s expansion and growth? 




ev

Oil at six-month low | Petrol at breakeven, losses continue on diesel

Brent crude oil was trading at ₹94.91 per barrel on August 18




ev

How does tokenisation prevent online card fraud?

Why has the RBI mandated the generation of a token for online merchant purchases? How will this move keep hackers and scammers at bay? Will it lead to better consumer security?




ev

Boeing to open its second largest campus near Devanahalli

The aeroplane manufacturer says it has invested $200 million to build the campus on 43 acres of land




ev

Tata International appoints Rajeev Singhal as Chief Operating Officer

He assumed office from April 1, 2023 and will report to Tata International Ltd Managing Director Anand Sen, the company said in a statement




ev

Explained | What are the latest revisions to the process for the sale of SIM cards?

The revised norms deal with bulk procurement of SIM cards and require the distributors, franchises and agents selling SIM cards to undergo thorough verification, including a check by the police




ev

#InternationalWomensDay: HimVani Top 10 Women Achievers of Himachal 2017-18

She made broken look beautiful and strong look invincible. She walked with the Universe on her shoulders and made it look like a pair of wings.” The beauty of these lines doesn’t just rest on the words written, they also evoke the true strength women brace. Women have broken the shackles and forged their way […]




ev

Indian Police Force Review | A No-logic Web Series

Created and directed by Rohit Shetty with a story and script by Sandeep Saket and Anusha Nandkumar, Ayush Trivedi, Vidhi Ghodgaonkar, and Sanchit Bedre, the web series Indian Police Force is directed by Rohit Shetty and Sushwanth Prakash. The Indian Police Force is live on OTT (Over-The-Top media service) platform Amazon Prime Video. The series […]

The post Indian Police Force Review | A No-logic Web Series appeared first on TIMES OF ASSAM by Dhruba Jyoti Deka.




ev

Interactive: India vs China - The EV dashboard




ev

A tale of three developers — will the law catch up?




ev

Exports, carbon markets revival can make a difference

The Indian renewable energy industry is in a situation of concern but there is no cause for despondency




ev

Fear and violence, everywhere




ev

BS-VI-ready auto industry gets corona fever




ev

Channapatna sees a revival




ev

A pair of hornbills consumes 90,000 fruits and 17,000 insects a year, reveals forest watcher




ev

On climate finance to developing nations | Explained

Why are developing countries more vulnerable to climate change? How does the United Nations Framework Convention on Climate Change define climate finance? Why have the figures mentioned in the OECD report been called into question? Does India need climate financing?




ev

What is GRAP Stage-2 enforced in Delhi to combat severe air pollution?

The air quality is predicted to be in the ‘very poor’ category for the next six days, according to the Central government’s Air Quality Early Warning System for Delhi




ev

Severe budget crisis sparks concerns over future of UN-led climate dialogue

The UN body is facing budget shortfall of at least €57 million, threatening its ability to conduct climate negotiations and implement agreements




ev

To combat rising air pollution levels, doctors advocate adopting lifestyle changes

Doctors in Delhi are advising residents to wear N95 masks, get vaccinated and opt for work-from-home if possible, if they can’t leave the city, as the national capital battles deteriorating air quality




ev

India working to develop own pure-hydrogen based DRI tech for green-steel making

The process will be unique to the country and the detailed project report so prepared “is under – scrutiny” across ministries, a senior government official aware of the discussions, told businessline.  




ev

AstraZeneca admits rare blood clot risk with Covishield, Vaxzevria vaccines

The WHO has recognised TTS as a rare but serious adverse event linked to specific Covid-19 vaccines.




ev

ICMR releases revised 'Dietary Guidelines for Indians', urges avoiding protein supplements

Low intake of essential nutrients can disrupt metabolism and increase the risk of insulin resistance




ev

Combating superbugs: How Indian drugmakers can address the global shortfall in antibiotic development

Emphasising the importance of expanding access to high-burden regions, the report calls for strategic initiatives to enable the production and distribution of life-saving antibiotics and antifungals




ev

US’ Memorial Sloan Kettering Cancer Centre builds on India-connect at multiple levels 

“In addition to patient care, MSK has been running successful  educational programmes” - Dr Mrinal Gounder, Sarcoma oncologist, and Early drug development specialist at MSK




ev

Bengaluru to host 13th edition of nanotech event in August

Nanotech event to focus on sustainability, climate change, healthcare applications




ev

Raman Research Institute achieve breakthrough in quantum cybersecurity

This innovation has the potential to revolutionise data encryption and security, offering enhanced protection for sensitive information in digital interactions.




ev

Saturn’s moon Titan: Cassini radar reveals hydrocarbon sea details

Recent analyses of Cassini’s radar data reveal detailed characteristics of Titan’s liquid hydrocarbon seas, primarily composed of methane and ethane. 




ev

SpaceX delays launch of first-ever private spacewalk mission

The signature moment of the mission was to be a spacewalk by billionaire Jared Isaacman and SpaceX engineer Sarah Gillis




ev

What are solid-fuel missiles, and why is North Korea developing them?

Solid-fuel missiles, easier to store and faster to launch than liquid-fuel counterparts, represent a strategic leap for Pyongyang’s defence capabilities 




ev

Natural gas futures: Uncertainty prevails

Traders need to wait for strong cues about next leg of trend




ev

Inherit, initial, unset, revert

Today we’re going to take a quick look at a few special CSS keywords you can use on any CSS property: inherit, initial, revert, and unset. Also, we will ask where and when to use them to the greatest effect, and if we need more of those keywords.

The first three were defined in the Cascading Level 3 spec, while revert was added in Cascading Level 4. Despite 4 still being in draft revert is already supported. See also the MDN revert page, Chris Coyier’s page, and my test page

inherit

The inherit keyword explicitly tells an element that it inherits the value for this declaration from its parent. Let’s take this example:

.my-div {
	margin: inherit;
}

.my-div a {
	color: inherit;
}

The second declaration is easiest to explain, and sometimes actually useful. It says that the link colour in the div should be the same as the text colour. The div has a text colour. It’s not specified here, but because color is inherited by default the div gets the text color of its parent. Let’s say it’s black.

Links usually have a different colour. As a CSS programmer you frequently set it, and even if you don’t browsers automatically make it blue for you. Here, however, we explicitly tell the browsers that the link colour should be inherited from its parent, the div. In our example links become black.

(Is this a good idea? Occasionally. But if you remove the colour difference between links and main text, make sure your links are underlined. Your users will thank you.)

Now let’s look at the margin: inherit. Normally margins don’t inherit, and for good reason. The fact that an element has margin-left: 10% does not mean all of its descendents should also get that margin. In fact, you most likely don’t want that. Margins are set on a per-case basis.

This declaration tells the div to use the margin specified on its parent, however. This is an odd thing to specify, and I never saw a practical use case in the wild. Still CSS, being ridiculously powerful, allows it.

In any case, that’s how the inherit keyword works. Using it for font sizes or colours may occasionally be a good idea. In other contexts - rarely.

And keep the difference between inheriting and non-inheriting properties in mind. It’s going to be important later on.

initial

The initial keywords sets the property back to its initial value. This is the value specified in the W3C specification for that property.

Initial values from the spec are a bit of a mixed bag. Some make sense, others don’t, really. float: none and background-color: transparent are examples of the first category. Of course an element does not have a background colour without you specifying one, nor does it float automatically.

Others are historically determined, such as background-repeat: repeat. Back in the Stone Age before CSS all background images repeated, and the CSS1 specification naturally copied this behaviour.

Still others are essentially arbitrary, such as display: inline. Why did W3C opt for inline instead of block? I don’t know, and it doesn’t really matter any more. They had to decide on an initial value, and while inline is somewhat strange, block would be equally strange.

In any case, the initial keyword makes the property revert to this initial value from the specification, whether that makes sense or not.

unset

When we get to the unset value the distinction between inheriting and non-inheriting properties becomes important. unset has a different effect on them.

  • If a property is normally inherited, unset means inherit.
  • If a property is normally not inherited, unset means initial.

revert

revert, the newest of these keywords, also distinguishes between inheriting and non-inheriting properties.

  • If a property is normally inherited, revert means inherit.
  • If a property is normally not inherited, revert reverts to the value specified in the browser style sheet.

all

Finally, we should treat all. It is not a value but a property, or rather, the collection of all CSS properties on an element. It only takes one of the keywords we discussed, and allows you to apply that keyword to all CSS properties. For instance:

.my-div {
	all: initial;
}

Now all CSS properties on the div are set to initial.

Examples

The reaction of my test page to setting the display of all elements to the four keywords is instructive. My test script sets the following style:

body * {
	display: [inherit | initial | unset | revert] !important;
}

The elements react as follows:

  • display: inherit: all elements now inherit their display value from the body. Since the body has display: block all elements get that value, whether that makes sense or not.
  • display: initial: the initial value of display is inline. Therefore all elements get that value, whether that makes sense or not.
  • display: unset: display does not inherit. Therefore this behaves as initial and all elements get display: inline.
  • display: revert: display does not inherit. Therefore the defaults of the browser style sheet are restored, and each element gets its proper display — except for the dl, which I had given a display: grid. This value is now supplanted by the browser-provided block.

Unfortunately the same test page also contains a riddle I don’t understand the behaviour of <button>s when I set color to the four keywords:

  • color: inherit: all elements, including <button>s, now inherit their colour from the body, which is blue. So all text becomes blue.
  • color: initial: since the initial value of color is black, all elements, including <button>s, become black.
  • color: unset: color inherits. Therefore this behaves as inherit and all elements, including <button>s, become blue.
  • color: revert: This is the weird one. All elements become blue, except for <button>s, which become black. I don’t understand why. Since colors inherit, I expected revert to work as inherit and the buttons to also become blue. But apparently the browser style sheet of button {color: black} (more complicated in practice) is given precedence. Yes, revert should remove author styles (the ones we write), and that would cause the black from the browser style sheet to be applied, but only if a property does not inherit — and color does. I don’t know why the browser style sheet is given precedence in this case. So I’m going to cop out and say form elements are weird.

Practical use: almost none

The purpose of both unset and revert is to wipe the slate clean and return to the initial and the browser styles, respectively — except when the property inherits; in that case, inheritance is still respected. initial, meanwhile, wipes the slate even cleaner by also reverting inheriting properties to their initial values.

This would be useful when you create components that should not be influenced by styles defined elsewhere on the page. Wipe the slate clean, start styling from zero. That would help modularisation.

But that’s not how these keywords work. We don’t want to revert to the initial styles (which are sometimes plain weird) but to the browser style sheet. unset comes closest, but it doesn’t touch inherited styles, so it only does half of what we want.

So right now these keywords are useless — except for inherit in a few specific situations usually having to do with font sizes and colours.

New keyword: default

Chris Coyier argues we need a new value which he calls default. It reverts to the browser style sheet in all cases, even for inherited properties. Thus it is a stronger version of revert. I agree. This keyword would be actually useful. For instance:

.my-component,.my-component * {
	all: default;
	font-size: inherit;
	font-family: inherit;
	color: inherit;
}

Now we have a component that’s wiped clean, except that we decide to keep the fonts and colour of the main page. The rest is a blank slate that we can style as we like. That would be a massive boon to modularisation.

New keyword: cascade

For years now I have had the feeling that we need yet another keyword, which I’ll call cascade for now. It would mean “take the previous value in the cascade and apply it here.” For instance:

.my-component h2 {
	font-size: 24px;
}

.my-other-component h2 {
	font-size: 3em;
}

h2#specialCase {
	font-size: clamp(1vw,cascade,3vw)
}

In this (slightly contrived) example I want to clamp the font-size of a special h2 between 1vw and 3vw, with the preferred value being the one defined for the component I’m working in. Here, cascade would mean: take the value the cascade would deliver if this rule didn’t exist. This would make the clamped font size use either 24px or 3em as its preferred value, depending on which component we’re in.

The problem with this example is that it could also use custom properties. Just set --h2size to either 24px or 3em, use it in the clamp, and you’re done.

.my-component h2 {
	--h2size: 24px;
	font-size: var(--h2size);
}

.my-other-component h2 {
	--h2size: 3em;
	font-size: var(--h2size);
}

h2#specialCase {
	font-size: clamp(1vw,var(--h2size),3vw)
}

Still, this is but the latest example I created. I have had this thought many, many times, but because I didn’t keep track of my use cases I’m not sure if all of them could be served by custom properties.

Also, suppose you inherit a very messy CSS code base with dozens of components written at various skill levels. In that case adding custom properties to all components might be impractical, and the cascade keyword might help.

Anyway, I barely managed to convince myself, so professional standard writers will certainly not be impressed. Still, I thought I’d throw it out here to see if anyone else has a use case for cascade that cannot be solved with custom properties.



  • CSS for JavaScripters

ev

IISc study reveals that picolinic acid can block viruses causing SARS-CoV-2 and influenza A

The study describes the compound’s remarkable ability to disrupt the entry of enveloped viruses into the host’s cell and prevent infection




ev

Ram Charan launches the massy trailer of Chiranjeevi’s ‘Bholaa Shankar’

Ram Charan unveils the trailer of his father and superstar Chiranjeevi’s ‘Bholaa Shankar’, directed by Meher Ramesh and also featuring Tamannaah Bhatia, Keerthy Suresh and Sushanth




ev

Govt to constitute high-level committee to monitor implementation of crop loan waiver, says Harish Rao

CM announced unconditional crop loan waiver twice unlike other States, he said 




ev

Chiranjeevi to team up with director Vassishta for his next

Chiranjeevi’s 156th and 157th films announced to coincide with the Telugu superstar’s birthday; one of the films will be directed by Vassishta




ev

A farm walk attempts to revive forgotten, seasonal greens

A weekend farm walk with Shruti Tharayil gets the conversation started on forgotten, seasonal and local greens



  • Life &amp; Style

ev

‘Gandeevadhari Arjuna’ movie review: Slick and well intended, albeit tepidly

Along with noble intentions, director Praveen Sattaru and actor Varun Tej’s slick Telugu thriller drama ‘Gandeevadhari Arjuna’ needed a smarter script




ev

‘Bedurulanka 2012’ movie review: A quirky social satire that’s partly amusing, partly patience testing

Written and directed by first-timer Clax, the Telugu dramedy ‘Bedurulanka 2012,’ starring Kartikeya Gummakonda and Neha Shetty, is an indie-spirited narrative that’s delightful in parts 




ev

Director Shiva Nirvana: ‘Kushi’ will discuss something beyond post-marriage romance, which we have not revealed in the trailer

Ahead of the release of Vijay Deverakonda and Samantha Ruth Prabhu’s ‘Kushi’, director Shiva Nirvana opens up on the Mani Ratnam influence and how he was never inclined to direct romances initially




ev

‘Miss Shetty Mr Polishetty’ movie review: Anushka Shetty, Naveen Polishetty shoulder a simple urban romance with fun moments

Naveen Polishetty’s flair for humour and Anushka Shetty’s restrained act work but the simple, predictable ‘Miss Shetty Mr Polishetty’ needed more emotional heft




ev

Dev Anand @100: Watch ‘C.I.D’, ‘Guide’, ‘Jewel Thief’ and ‘Johny Mera Naam’ on the large screen

To commemorate the 100th birth anniversary of actor Dev Anand, the NFDC-NFAI and Film Heritage Foundation will facilitate the screening of restored 4k versions of ‘C.I.D’, ‘Guide’, ‘Jewel Thief’ and ‘Johny Mera Naam’ in theatres across 30 cities in India




ev

Zonal misclassification: Government waives ₹240 crore property tax penalty levied by BBMP

Penalty was levied for zonal misclassification while paying property tax online




ev

Rakshit Shetty: We believed that ‘Sapta Sagaradaache Ello’ will find takers in Telugu

Ahead of the release of ‘Sapta Sagaralu Dhaati’, the Telugu version of the Kannada romance saga ‘Sapta Sagaradhaache Ello’, Rakshit Shetty, Hemanth Rao and Rukmini Vasanth assert that they believed their film would travel far and wide




ev

Director Vassishta: The audience can expect to see Chiranjeevi in an entertaining fantasy film like ‘Jagadeka Veerudu Athiloka Sundari’

Director Vassishta opens up on his next film starring Chiranjeevi and says it will be a fantasy entertainer, steeped in visual effects, in which the superstar will play a mature character befitting his stature and age




ev

The locals of Parengtar, a village on India-Bhutan border, are reviving the ancient practice of Kholey Dai

The third edition of community-driven, zero-waste Kholey Dai Harvest and Music Festival in Kalimpong’s Parengtar village puts the spotlight on the region’s Rai people and their love for paddy fields, music and dance



  • Life &amp; Style