SShortSingh.
Back to feed

Arabic RTL CSS audit: two of three rules didn't work as intended

0
·4 views

A developer who added Arabic support to their app with a short set of right-to-left CSS rules later audited it and found two of the three did not behave as expected. Testing in Chrome 156 with a probe page showed that the flex-direction rule for the tab bar actually cancelled the mirroring that RTL already applies, so the tab order stayed the same as in English. The text-align rule for inputs was also found to be unnecessary, since direction on an ancestor already aligns the text correctly. The developer shared the measurements and a checklist meant for any app shipping an RTL locale.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

402Proof Adds x402 Pay-Per-Call Payments on XRP Ledger and Xahau

Script Master Labs has published a starter kit showing how APIs can accept per-call x402 payments in XRP or XAH on the XRP Ledger and Xahau. The kit routes payments through its 402Proof facilitator, which verifies and settles native Payment transactions on-chain. Access is partner-keyed, with keys issued to known sellers scoped to their wallet, origin, asset and amount limits. Fees differ by network: on XRPL a $0.01 per-settlement fee accrues to a merchant ledger with loyalty discounts, while on Xahau a flat 0.01 XAH fee is collected in a second payer-signed transaction. The company says 402Proof is currently the only Xahau x402 facilitator it could find, though the rail remains early.

0
ProgrammingDEV Community ·

Typeye Identifies Fonts From Photos Entirely On-Device

Typeye is a new app that identifies the font in a photo, whether captured with a camera or uploaded as an image. Unlike many font identifiers, it runs recognition locally using Core ML, so images never leave the user's phone. The app returns the exact font name or closest matches, along with free alternatives and links to obtain each typeface. It is aimed at designers, developers matching brand fonts, students, and anyone curious about typography, and it is available free at typeye.com without signup.

0
ProgrammingDEV Community ·

MapReduce: A Divide-and-Conquer Model for Processing Massive Datasets

The article explains MapReduce, a way of thinking about and processing datasets too large for a single machine. It likens the approach to splitting a huge library among many workers who each count occurrences of a word in their section. The Map phase emits intermediate key-value pairs from chunks of input in parallel, while the Reduce phase gathers and aggregates those pairs into final results. The piece notes that MapReduce is both a programming model and a distributed computing framework used across clusters of computers. It also outlines helpful background knowledge, such as key-value pairs and distributed file systems like HDFS.

0
ProgrammingDEV Community ·

Trading bot's $10 exposure cap failed after restart, letting $18.60 in orders through

A test of a trading bot's kill switch found that its $10 exposure limit was not enforced after a restart. Exposure was tracked as an in-memory counter that reset to zero on each launch, so the bot placed roughly $9.30 of orders again and ended with $18.60 of resting bids on a mock exchange. The fix reads open orders and positions from the venue at startup and before every loop. A daily-loss stop also passed its unit test but was never called by the live bot. The tests were run on October 25, 2026, against demo and mock exchanges with no real orders sent.