SlideShare a Scribd company logo
1 of 31
What’s new in Web!
Rajesh Kumar
Senior software Developer, Pearson
JavaScript Enthusiast, Mentor, Speaker
Twitter : iamRajace
Linkedin: https://www.linkedin.com/in/rajeshkumar-sampath
Objective
• Baseline
• The dialog element
• Individual CSS transform properties
• New viewport units
• Deep copy in JavaScript
• The :focus-visible pseudo-class
• The Transform Stream interface
• Features of ECMAScript 14
Baseline
What is Baseline
• At Google I/O 2023, Google announced Baseline.
• Baseline helps you to see, whether a feature or API is safe to use in
your site or web applications.
• Everything that is fully supported in the most recent two versions of
major browsers will be part of Baseline.
The Chrome team is collaborating with other browser engines and
the web community to bring more clarity.
<dialog>: The Dialog element
• The <dialog> HTML element represents a dialog box or other
interactive component, such as a dismissible alert, inspector, or
subwindow.
<dialog>: The Dialog element
<dialog>: The Dialog element – open
attribute
Advantage of Native Element
• As a native HTML element, features like focus management, tab
tracking, accessibility and keeping the stacking context are built in.
Individual CSS transform properties
• We might be familiar with writing CSS transforms with three
properties in one line.
• With individual transform properties we can now specify transform
properties individually.
CSS transform properties
Individual CSS transform properties
New viewport units
• Existing units work well on desktop, but it behaves differently on
mobile devices.
• Viewport size is influenced by the presence or absence of dynamic
toolbars.
• These are user interfaces such as address bars and tab bars.
• New CSS units that account for mobile viewports with dynamic
toolbars.
• The large, small, and dynamic viewport units
Viewports
New viewport units
New viewport units
Deep copy in JavaScript
• const original = {id: 1, prop: {name: “Raj"}}
• const deepCopy = JSON.parse(JSON.stringify(original)); /* Old hack */
• const deepCopy = structuredClone(original); /* New way */
The :focus-visible pseudo-class
• The :focus-visible CSS pseudo-class checks if the browser believes
that the focus should be visible.
• We can now specify styles for only when focus should be visible.
• This selector is useful to provide a different focus indicator based on
the user's input modality (mouse vs. keyboard).
The :focus-visible pseudo-class
:focus-visible pseudo-class
The TransformStream interface
• The TransformStream interface of the Streams API makes it possible
to pipe streams into one another.
• TransformStream is a transferable object.
• For example, we can stream data from one place, then compress the
data stream to another location as the data gets passed.
ECMAScript 14 (ES14) / ECMAScript 2023
• ECMAScript 14 (ES14) / ECMAScript 2023 is expected to release in
June/July of 2023.
• Change Array by Copy
• Array find from last
• Hashbang Grammar
• Symbols as WeakMap keys
Array.prototype.toReversed()
Array.prototype.sort(compareFn
)
Array.prototype.toSpliced(star
t, deleteCount, …items)
Array.prototype.with(index,
value)
Array find from last
• Array find from last, a proposal for .findlast() and .findLastIndex()
methods on array and typed array.
Hashbang Grammar#
• A hashbang comment behaves exactly like a single line-only (//)
comment, except that it begins with #! and is only valid at the
absolute start of a script or module.
• When the Unix kernel’s program loader executes a JavaScript
program, the host strips the hashbang to generate a valid source
before passing it down to the engine.
• The JavaScript interpreter will treat it as a normal comment — it only
has semantic meaning to the shell if the script is directly run in a
shell.
• For Example
#!/usr/bin/env node
console.log(‘Hello');
Summary
• Baseline
• The dialog element
• Individual CSS transform properties
• New viewport units
• Deep copy in JavaScript
• The :focus-visible pseudo-class
• The Transform Stream interface
• Features of ECMAScript 14
Question & Answer
Thank you

More Related Content

Similar to What's new in web in 2023

Similar to What's new in web in 2023 (20)

My 70-480 HTML5 certification learning
My 70-480 HTML5 certification learningMy 70-480 HTML5 certification learning
My 70-480 HTML5 certification learning
 
Angular 2 for Java Developers
Angular 2 for Java DevelopersAngular 2 for Java Developers
Angular 2 for Java Developers
 
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
 
Web technologies-course 07.pptx
Web technologies-course 07.pptxWeb technologies-course 07.pptx
Web technologies-course 07.pptx
 
Ballerina- A programming language for the networked world
Ballerina- A programming language for the networked worldBallerina- A programming language for the networked world
Ballerina- A programming language for the networked world
 
Ballerina- A programming language for the networked world
Ballerina- A programming language for the networked worldBallerina- A programming language for the networked world
Ballerina- A programming language for the networked world
 
An evening with React Native
An evening with React NativeAn evening with React Native
An evening with React Native
 
REST easy with API Platform
REST easy with API PlatformREST easy with API Platform
REST easy with API Platform
 
Intro JavaScript
Intro JavaScriptIntro JavaScript
Intro JavaScript
 
Spring MVC framework
Spring MVC frameworkSpring MVC framework
Spring MVC framework
 
The ES6 Conundrum - All Things Open 2015
The ES6 Conundrum - All Things Open 2015The ES6 Conundrum - All Things Open 2015
The ES6 Conundrum - All Things Open 2015
 
Dmytro Kochergin Angular 2 and New Java Script Technologies
Dmytro Kochergin Angular 2 and New Java Script TechnologiesDmytro Kochergin Angular 2 and New Java Script Technologies
Dmytro Kochergin Angular 2 and New Java Script Technologies
 
Webpack Encore - Asset Management for the rest of us
Webpack Encore - Asset Management for the rest of usWebpack Encore - Asset Management for the rest of us
Webpack Encore - Asset Management for the rest of us
 
WEB MODULE 3.pdf
WEB MODULE 3.pdfWEB MODULE 3.pdf
WEB MODULE 3.pdf
 
Apache Drill (ver. 0.2)
Apache Drill (ver. 0.2)Apache Drill (ver. 0.2)
Apache Drill (ver. 0.2)
 
Play Framework and Activator
Play Framework and ActivatorPlay Framework and Activator
Play Framework and Activator
 
JavaScripts & jQuery
JavaScripts & jQueryJavaScripts & jQuery
JavaScripts & jQuery
 
Web development basics (Part-7)
Web development basics (Part-7)Web development basics (Part-7)
Web development basics (Part-7)
 
Developing Lightning Components for Communities.pptx
Developing Lightning Components for Communities.pptxDeveloping Lightning Components for Communities.pptx
Developing Lightning Components for Communities.pptx
 
Frameworks Galore: A Pragmatic Review
Frameworks Galore: A Pragmatic ReviewFrameworks Galore: A Pragmatic Review
Frameworks Galore: A Pragmatic Review
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

What's new in web in 2023

  • 2. Rajesh Kumar Senior software Developer, Pearson JavaScript Enthusiast, Mentor, Speaker Twitter : iamRajace Linkedin: https://www.linkedin.com/in/rajeshkumar-sampath
  • 3. Objective • Baseline • The dialog element • Individual CSS transform properties • New viewport units • Deep copy in JavaScript • The :focus-visible pseudo-class • The Transform Stream interface • Features of ECMAScript 14
  • 5. What is Baseline • At Google I/O 2023, Google announced Baseline. • Baseline helps you to see, whether a feature or API is safe to use in your site or web applications. • Everything that is fully supported in the most recent two versions of major browsers will be part of Baseline. The Chrome team is collaborating with other browser engines and the web community to bring more clarity.
  • 6. <dialog>: The Dialog element • The <dialog> HTML element represents a dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow.
  • 8. <dialog>: The Dialog element – open attribute
  • 9. Advantage of Native Element • As a native HTML element, features like focus management, tab tracking, accessibility and keeping the stacking context are built in.
  • 10. Individual CSS transform properties • We might be familiar with writing CSS transforms with three properties in one line. • With individual transform properties we can now specify transform properties individually.
  • 13. New viewport units • Existing units work well on desktop, but it behaves differently on mobile devices. • Viewport size is influenced by the presence or absence of dynamic toolbars. • These are user interfaces such as address bars and tab bars. • New CSS units that account for mobile viewports with dynamic toolbars. • The large, small, and dynamic viewport units
  • 17. Deep copy in JavaScript • const original = {id: 1, prop: {name: “Raj"}} • const deepCopy = JSON.parse(JSON.stringify(original)); /* Old hack */ • const deepCopy = structuredClone(original); /* New way */
  • 18. The :focus-visible pseudo-class • The :focus-visible CSS pseudo-class checks if the browser believes that the focus should be visible. • We can now specify styles for only when focus should be visible. • This selector is useful to provide a different focus indicator based on the user's input modality (mouse vs. keyboard).
  • 21. The TransformStream interface • The TransformStream interface of the Streams API makes it possible to pipe streams into one another. • TransformStream is a transferable object. • For example, we can stream data from one place, then compress the data stream to another location as the data gets passed.
  • 22. ECMAScript 14 (ES14) / ECMAScript 2023 • ECMAScript 14 (ES14) / ECMAScript 2023 is expected to release in June/July of 2023. • Change Array by Copy • Array find from last • Hashbang Grammar • Symbols as WeakMap keys
  • 27. Array find from last • Array find from last, a proposal for .findlast() and .findLastIndex() methods on array and typed array.
  • 28. Hashbang Grammar# • A hashbang comment behaves exactly like a single line-only (//) comment, except that it begins with #! and is only valid at the absolute start of a script or module. • When the Unix kernel’s program loader executes a JavaScript program, the host strips the hashbang to generate a valid source before passing it down to the engine. • The JavaScript interpreter will treat it as a normal comment — it only has semantic meaning to the shell if the script is directly run in a shell. • For Example #!/usr/bin/env node console.log(‘Hello');
  • 29. Summary • Baseline • The dialog element • Individual CSS transform properties • New viewport units • Deep copy in JavaScript • The :focus-visible pseudo-class • The Transform Stream interface • Features of ECMAScript 14