Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Submit feedback
  • Sign in / Register
T
tangled
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • eriksson monteiro
  • tangled
  • Repository

Switch branch/tag
  • tangled
  • third_party
  • WebKit
  • LayoutTests
  • fast
  • css
  • rgb-float-expected.png
Find file HistoryPermalink
  • Chris Nardi's avatar
    Parse decimals in RGB/RGBA and update rounding · f8e89bb9
    Chris Nardi authored Jan 26, 2018
    CSS Color 4 states that all numbers should be parsed inside of the RGB
    and RGBA functions, instead of only integers as previously defined.
    This change updates our behavior to match this, with non-integers
    rounded to the nearest value. This additionally changes the behavior
    of percentage values, multiplying by 255 and rounding to match the spec
    instead of multiplying by 256 and flooring. The new spec is located at
    https://drafts.csswg.org/css-color-4/#rgb-functions.
    
    Bug: 703898
    Change-Id: I826e92e7f81576240ad9b06f866df3300140b12c
    Reviewed-on: https://chromium-review.googlesource.com/885004Reviewed-by: default avatarEric Willigers <ericwilligers@chromium.org>
    Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
    Commit-Queue: Chris Nardi <cnardi@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#532032}
    f8e89bb9
rgb-float-expected.png 2.85 KB

Download (2.85 KB)

rgb-float-expected.png

Replace rgb-float-expected.png

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.